@arcgis/coding-components 4.32.0-next.31 → 4.32.0-next.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/arcgis-coding-components/{F52SHJIL.js → 4QEVSX32.js} +2 -2
- package/dist/arcgis-coding-components/{O6ZNCYLW.js → 5KIBQW7V.js} +2 -2
- package/dist/arcgis-coding-components/{B7Y55CDO.js → 6EFNXEMU.js} +2 -2
- package/dist/arcgis-coding-components/{AOHIIMTS.js → 6MXULP5I.js} +2 -2
- package/dist/arcgis-coding-components/{FVCKZGO5.js → 7ENMJ5NX.js} +2 -2
- package/dist/arcgis-coding-components/{BYWGERBG.js → 7GB5HUCW.js} +2 -2
- package/dist/arcgis-coding-components/{VGE72NPZ.js → 7UIBAA6T.js} +2 -2
- package/dist/arcgis-coding-components/{O2P5TNQI.js → CQIP7CKQ.js} +2 -2
- package/dist/arcgis-coding-components/{BEQUKABG.js → D3KV4KHS.js} +2 -2
- package/dist/arcgis-coding-components/{RYEX72GK.js → DO5W5H2Q.js} +2 -2
- package/dist/arcgis-coding-components/{7LWOHYTA.js → EWF5XCAC.js} +2 -2
- package/dist/arcgis-coding-components/{6ZKL3ONW.js → G3ZW3ZH2.js} +2 -2
- package/dist/arcgis-coding-components/{XMW5AFWL.js → GGVUUXMY.js} +2 -2
- package/dist/arcgis-coding-components/{B4UEPJB2.js → GWUFXZHC.js} +2 -2
- package/dist/arcgis-coding-components/{AQV5CBHV.js → ILTQUJJ7.js} +2 -2
- package/dist/arcgis-coding-components/{PDMEHQSE.js → MZ44F77W.js} +2 -2
- package/dist/arcgis-coding-components/{IHWHKPRE.js → NGPEE7ML.js} +1 -1
- package/dist/arcgis-coding-components/{7KD2P22H.js → NMKCPVTD.js} +3 -3
- package/dist/arcgis-coding-components/{WH4BQYHH.js → NPWCLFAG.js} +2 -2
- package/dist/arcgis-coding-components/{HG2BFZ55.js → NXUGA42R.js} +2 -2
- package/dist/arcgis-coding-components/{HQVBULZS.js → OSQK6AK2.js} +2 -2
- package/dist/arcgis-coding-components/{ENDK4N5M.js → OXHJP5P2.js} +2 -2
- package/dist/arcgis-coding-components/{QNMCG7YE.js → OZ6PKQ47.js} +1 -1
- package/dist/arcgis-coding-components/{COVJYP2D.js → PQKZG7JY.js} +2 -2
- package/dist/arcgis-coding-components/{D2U7YDTT.js → S5AN66FU.js} +2 -2
- package/dist/arcgis-coding-components/{MNPD6GKG.js → UBUTAWGJ.js} +2 -2
- package/dist/arcgis-coding-components/{UGTO2XBG.js → UNMKZOZP.js} +2 -2
- package/dist/arcgis-coding-components/{H3C7RN6N.js → V3H64D5C.js} +2 -2
- package/dist/arcgis-coding-components/{RAYXHWUS.js → VBPIDHPH.js} +2 -2
- package/dist/arcgis-coding-components/{LF7VULMW.js → VIWAV2YY.js} +2 -2
- package/dist/arcgis-coding-components/{WOG6XN7T.js → WJ7WPQBS.js} +2 -2
- package/dist/arcgis-coding-components/{XNWVKD2N.js → X6NMGH7U.js} +1 -1
- package/dist/arcgis-coding-components/{44TWSZP2.js → XJWK5HZM.js} +1 -1
- package/dist/arcgis-coding-components/{3KNQSUKG.js → Y2KFRCJM.js} +2 -2
- package/dist/arcgis-coding-components/{477NMUFO.js → ZPKOTMSI.js} +2 -2
- package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +14 -14
- package/dist/chunks/arcade-defaults.js +1 -1
- package/dist/chunks/arcade-executor.js +1 -1
- package/dist/chunks/arcade-mode.js +1 -1
- package/dist/chunks/arcade-service-accessors.js +1 -1
- package/dist/chunks/fields.js +1 -1
- package/dist/chunks/language-defaults-base.js +1 -1
- package/dist/chunks/markdown.js +1 -1
- package/dist/chunks/monaco-importer.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/sql-expr-defaults.js +1 -1
- package/dist/chunks/sql-expr-mode.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
- package/dist/components/arcgis-arcade-results/customElement.js +1 -1
- package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
- package/dist/components/arcgis-code-editor/customElement.js +1 -1
- package/dist/components/arcgis-editor-variables/customElement.js +1 -1
- package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
- package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +7 -7
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";(()=>{var e$=Object.defineProperty;var l9=e=>t=>{var r=e[t];if(r)return r();throw new Error("Module not found in bundle: "+t)};var V=(e,t)=>()=>(e&&(t=e(e=0)),t);var u9=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),os=(e,t)=>{for(var r in t)e$(e,r,{get:t[r],enumerable:!0})};function he(e){return typeof tc[e]=="function"?tc[e]=tc[e](globalThis):tc[e]}var tc,et=V(()=>{tc=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},he.add=(e,t,r,n)=>{(n||tc[e]===void 0)&&(tc[e]=t),r&&he(e)},he.cache=tc,he.add("big-integer-warning-enabled",!0),he.add("esri-deprecation-warnings",!0),he.add("esri-tests-disable-screenshots",!1),he.add("esri-tests-use-full-window",!1),he.add("esri-tests-post-to-influx",!0),he.add("esri-cim-animations-enable-status","enabled"),he.add("esri-cim-animations-spotlight",!1),he.add("esri-cim-animations-freeze-time",!1),he.add("enable-feature:multiple-highlights",!1),(()=>{he.add("host-webworker",globalThis.WorkerGlobalScope!==void 0&&self instanceof globalThis.WorkerGlobalScope);let e=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(he.add("host-browser",e),he.add("host-node",typeof globalThis.process=="object"&&globalThis.process.versions?.node&&globalThis.process.versions.v8),he.add("dom",e),he("host-browser")){let t=navigator,r=t.userAgent,n=t.appVersion,i=parseFloat(n);if(he.add("wp",parseFloat(r.split("Windows Phone")[1])||void 0),he.add("msapp",parseFloat(r.split("MSAppHost/")[1])||void 0),he.add("khtml",n.includes("Konqueror")?i:void 0),he.add("edge",parseFloat(r.split("Edge/")[1])||void 0),he.add("opr",parseFloat(r.split("OPR/")[1])||void 0),he.add("webkit",!he("wp")&&!he("edge")&&parseFloat(r.split("WebKit/")[1])||void 0),he.add("chrome",!he("edge")&&!he("opr")&&parseFloat(r.split("Chrome/")[1])||void 0),he.add("android",!he("wp")&&parseFloat(r.split("Android ")[1])||void 0),he.add("safari",!n.includes("Safari")||he("wp")||he("chrome")||he("android")||he("edge")||he("opr")?void 0:parseFloat(n.split("Version/")[1])),he.add("mac",n.includes("Macintosh")),!he("wp")&&/(iPhone|iPod|iPad)/.test(r)){let o=RegExp.$1.replace(/P/,"p"),s=/OS ([\d_]+)/.test(r)?RegExp.$1:"1",c=parseFloat(s.replace(/_/,".").replaceAll("_",""));he.add(o,c),he.add("ios",c)}he("webkit")||(!r.includes("Gecko")||he("wp")||he("khtml")||he("edge")||he.add("mozilla",i),he("mozilla")&&he.add("ff",parseFloat(r.split("Firefox/")[1]||r.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){let e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&he.add("esri-mobile",t),r&&he.add("esri-iPhone",r),he.add("esri-geolocation",!!navigator.geolocation)}he.add("esri-wasm","WebAssembly"in globalThis),he.add("esri-performance-mode-frames-between-render",20),he.add("esri-force-performance-mode",!1),he.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in globalThis,t=globalThis.crossOriginIsolated===!1;return e&&!t}),he.add("wasm-simd",()=>{let e=[0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11];return WebAssembly.validate(new Uint8Array(e))}),he.add("esri-atomics","Atomics"in globalThis),he.add("esri-workers","Worker"in globalThis),he.add("web-feat:cache","caches"in globalThis),he.add("esri-workers-arraybuffer-transfer",!he("safari")||Number(he("safari"))>=12),he.add("workers-pool-size",8),he.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),he.add("featurelayer-simplify-payload-size-factors",[1,1,4]),he.add("featurelayer-fast-triangulation-enabled",!0),he.add("featurelayer-animation-enabled",!0),he.add("featurelayer-snapshot-enabled",!0),he.add("featurelayer-snapshot-point-min-threshold",8e4),he.add("featurelayer-snapshot-point-max-threshold",4e5),he.add("featurelayer-snapshot-point-coverage",.1),he.add("featurelayer-query-max-depth",4),he.add("featurelayer-query-pausing-enabled",!1),he.add("featurelayer-advanced-symbols",!1),he.add("featurelayer-pbf",!0),he.add("featurelayer-pbf-statistics",!1),he.add("feature-layers-workers",!0),he.add("feature-polyline-generalization-factor",1),he.add("mapview-transitions-duration",200),he.add("mapview-essential-goto-duration",200),he.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),he.add("mapserver-pbf-version-support",10.81),he.add("mapservice-popup-identify-max-tolerance",20),he("host-webworker")||he("host-browser")&&(he.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),he.add("esri-image-decode",()=>{if("decode"in new Image){let e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then(()=>{he.add("esri-image-decode",!0,!0,!0)}).catch(()=>{he.add("esri-image-decode",!1,!0,!0)})}return!1}),he.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()});var cu,Vr=V(()=>{cu=class e{constructor(t=1){this._seed=t}set seed(t){this._seed=t??Math.random()*e._m}getInt(){return this._seed=(e._a*this._seed+e._c)%e._m,this._seed}getFloat(){return this.getInt()/(e._m-1)}getIntRange(t,r){return Math.round(this.getFloatRange(t,r))}getFloatRange(t,r){let n=r-t;return t+this.getInt()/e._m*n}};cu._m=2147483647,cu._a=48271,cu._c=0});function rc(e,t,r){if(e==null&&t==null)return!0;if(e==null||t==null||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function G2(e,t,r,n){n=n||ET;let i=Math.max(0,n.last-10);for(let s=i;s<r;++s)if(e[s]===t)return n.last=s,s;let o=Math.min(i,r);for(let s=0;s<o;++s)if(e[s]===t)return n.last=s,s;return-1}function MT(e,t,r=e.length,n=t.length,i,o){if(n===0||r===0)return r;_o.clear();for(let c=0;c<n;++c)_o.add(t[c]);i=i||ET;let s=Math.max(0,i.last-10);for(let c=s;c<r;++c)if(_o.has(e[c])&&(o?.push(e[c]),_o.delete(e[c]),e[c]=e[r-1],--r,--c,_o.size===0||r===0))return _o.clear(),r;for(let c=0;c<s;++c)if(_o.has(e[c])&&(o?.push(e[c]),_o.delete(e[c]),e[c]=e[r-1],--r,--c,_o.size===0||r===0))return _o.clear(),r;return _o.clear(),r}function PT(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function IT(e,t){return e!=null}var UF,Sie,Gm,ET,_o,xie,nc=V(()=>{Vr();UF=1.5,Sie=1/UF;Gm=class{constructor(){this.last=0}},ET=new Gm;_o=new Set;xie=new cu});function AT(e){return e?.constructor?.name==="Int8Array"}function LT(e){return e?.constructor?.name==="Uint8Array"}function kT(e){return e?.constructor?.name==="Uint8ClampedArray"}function OT(e){return e?.constructor?.name==="Int16Array"}function NT(e){return e?.constructor?.name==="Uint16Array"}function RT(e){return e?.constructor?.name==="Int32Array"}function DT(e){return e?.constructor?.name==="Uint32Array"}function $T(e){return e?.constructor?.name==="Float32Array"}function FT(e){return e?.constructor?.name==="Float64Array"}var UT=V(()=>{et()});function v0(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&v0(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&e[r]===void 0&&delete e[r];return e}function qe(e){if(!e||typeof e!="object"||typeof e=="function")return e;let t=GT(e);if(t!=null)return t;if(zT(e))return e.clone();if(WT(e))return e.map(qe);if(BT(e))throw new Error("Trying to clone an unclonable Accessor instance");let r={};for(let n of Object.getOwnPropertyNames(e))r[n]=qe(e[n]);return r}function b0(e){if(!e||typeof e!="object"||typeof e=="function"||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let t=GT(e);if(t!=null)return t;if(WT(e)){let n=!0,i=e.map(o=>{let s=b0(o);return o!=null&&s==null&&(n=!1),s});return n?i:null}if(zT(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(BT(e))return null;let r=new(Object.getPrototypeOf(e)).constructor;for(let n of Object.getOwnPropertyNames(e)){let i=e[n],o=b0(i);if(i!=null&&o==null)return null;r[n]=o}return r}function zT(e){return typeof e.clone=="function"}function WT(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function BT(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function VT(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function GT(e){if(AT(e)||LT(e)||kT(e)||OT(e)||NT(e)||RT(e)||DT(e)||$T(e)||FT(e))return e.slice();if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){let t=new Map;for(let[r,n]of e)t.set(r,qe(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(qe(r));return t}return null}function jm(e,t){return e===t||typeof e=="number"&&isNaN(e)&&typeof t=="number"&&isNaN(t)||typeof e?.getTime=="function"&&typeof t?.getTime=="function"&&e.getTime()===t.getTime()||!1}function jT(e,t){return e===t||(e==null||typeof e=="string"?e===t:typeof e=="number"?e===t||typeof t=="number"&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&rc(e,t):e instanceof Set?t instanceof Set&&zF(e,t):e instanceof Map?t instanceof Map&&WF(e,t):!!VT(e)&&VT(t)&&VF(e,t))}function VF(e,t){if(e===null||t===null)return!1;let r=Object.keys(e);if(t===null||Object.keys(t).length!==r.length)return!1;for(let n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}function zF(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function WF(e,t){if(e.size!==t.size)return!1;for(let[r,n]of e){let i=t.get(r);if(i!==n||i===void 0&&!t.has(r))return!1}return!0}var or=V(()=>{nc();UT()});function HT(e,t,r=!1){return ZT(e,t,r)}function Hi(e,t){if(t!=null)return t[e]||qT(e.split("."),!1,t)}function Hs(e,t,r){let n=e.split("."),i=n.pop(),o=qT(n,!0,r);o&&i&&(o[i]=t)}function qT(e,t,r){let n=r;for(let i of e){if(n==null)return;if(!(i in n)){if(!t)return;n[i]={}}n=n[i]}return n}function ZT(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=n[i],s=t[i];return o===s?n:o===void 0?(n[i]=qe(s),n):(Array.isArray(s)||Array.isArray(n)?(o=o?Array.isArray(o)?n[i]=o.slice():n[i]=[o]:n[i]=[],s&&(Array.isArray(s)||(s=[s]),r?s.forEach(c=>{o.includes(c)||o.push(c)}):n[i]=s.slice())):s&&typeof s=="object"?n[i]=ZT(o,s,r):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=s),n)},e||{}):e}var ds=V(()=>{or()});function YT(e){return e??""}function fs(e,t){return t?e.replaceAll(BF,typeof t=="object"?(r,n)=>YT(Hi(n,t)):(r,n)=>YT(t(n))):e}function JT(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>t?.includes(r)?r:`\\${r}`)}function XT(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var BF,ic=V(()=>{ds();BF=/\{([^}]+)\}/g});var qs,_0,S0,x0,So,Gf,dr,xo,oc=V(()=>{qs=class extends Error{},_0=class extends qs{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},S0=class extends qs{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},x0=class extends qs{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},So=class extends qs{},Gf=class extends qs{constructor(t){super(`Invalid unit ${t}`)}},dr=class extends qs{},xo=class extends qs{constructor(){super("Zone is an abstract class")}}});var Ae,Co,_i,sc,Hm,j2,qm,Zm,Ym,Jm,Xm,Km,Qm,eh,th,rh,nh,ih,oh,sh,H2,ah,ch,lh,uh,dh=V(()=>{Ae="numeric",Co="short",_i="long",sc={year:Ae,month:Ae,day:Ae},Hm={year:Ae,month:Co,day:Ae},j2={year:Ae,month:Co,day:Ae,weekday:Co},qm={year:Ae,month:_i,day:Ae},Zm={year:Ae,month:_i,day:Ae,weekday:_i},Ym={hour:Ae,minute:Ae},Jm={hour:Ae,minute:Ae,second:Ae},Xm={hour:Ae,minute:Ae,second:Ae,timeZoneName:Co},Km={hour:Ae,minute:Ae,second:Ae,timeZoneName:_i},Qm={hour:Ae,minute:Ae,hourCycle:"h23"},eh={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23"},th={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23",timeZoneName:Co},rh={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23",timeZoneName:_i},nh={year:Ae,month:Ae,day:Ae,hour:Ae,minute:Ae},ih={year:Ae,month:Ae,day:Ae,hour:Ae,minute:Ae,second:Ae},oh={year:Ae,month:Co,day:Ae,hour:Ae,minute:Ae},sh={year:Ae,month:Co,day:Ae,hour:Ae,minute:Ae,second:Ae},H2={year:Ae,month:Co,day:Ae,weekday:Co,hour:Ae,minute:Ae},ah={year:Ae,month:_i,day:Ae,hour:Ae,minute:Ae,timeZoneName:Co},ch={year:Ae,month:_i,day:Ae,hour:Ae,minute:Ae,second:Ae,timeZoneName:Co},lh={year:Ae,month:_i,day:Ae,weekday:_i,hour:Ae,minute:Ae,timeZoneName:_i},uh={year:Ae,month:_i,day:Ae,weekday:_i,hour:Ae,minute:Ae,second:Ae,timeZoneName:_i}});var Tr,lu=V(()=>{oc();Tr=class{get type(){throw new xo}get name(){throw new xo}get ianaName(){return this.name}get isUniversal(){throw new xo}offsetName(t,r){throw new xo}formatOffset(t,r){throw new xo}offset(t){throw new xo}equals(t){throw new xo}get isValid(){throw new xo}}});var q2,ac,T0=V(()=>{Zn();lu();q2=null,ac=class e extends Tr{static get instance(){return q2===null&&(q2=new e),q2}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return E0(t,r,n)}formatOffset(t,r){return cc(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}});function GF(e){return P0[e]||(P0[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"})),P0[e]}function HF(e,t){let r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,o,s,c,a,d,h]=n;return[s,i,o,c,a,d,h]}function qF(e,t){let r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],c=jF[o];o==="era"?n[c]=s:Ge(c)||(n[c]=parseInt(s,10))}return n}var P0,jF,M0,er,lc=V(()=>{Zn();lu();P0={};jF={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};M0={},er=class e extends Tr{static create(t){return M0[t]||(M0[t]=new e(t)),M0[t]}static resetCache(){M0={},P0={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=e.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return E0(t,r,n,this.name)}formatOffset(t,r){return cc(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let n=GF(this.name),[i,o,s,c,a,d,h]=n.formatToParts?qF(n,r):HF(n,r);c==="BC"&&(i=-Math.abs(i)+1);let v=jf({year:i,month:o,day:s,hour:a===24?0:a,minute:d,second:h,millisecond:0}),S=+r,M=S%1e3;return S-=M>=0?M:1e3+M,(v-S)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}});function ZF(e,t={}){let r=JSON.stringify([e,t]),n=KT[r];return n||(n=new Intl.ListFormat(e,t),KT[r]=n),n}function Y2(e,t={}){let r=JSON.stringify([e,t]),n=Z2[r];return n||(n=new Intl.DateTimeFormat(e,t),Z2[r]=n),n}function YF(e,t={}){let r=JSON.stringify([e,t]),n=J2[r];return n||(n=new Intl.NumberFormat(e,t),J2[r]=n),n}function JF(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),o=X2[i];return o||(o=new Intl.RelativeTimeFormat(e,t),X2[i]=o),o}function XF(){return fh||(fh=new Intl.DateTimeFormat().resolvedOptions().locale,fh)}function KF(e){let t=QT[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,QT[e]=t}return t}function QF(e){let t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));let r=e.indexOf("-u-");if(r===-1)return[e];{let n,i;try{n=Y2(e).resolvedOptions(),i=e}catch{let a=e.substring(0,r);n=Y2(a).resolvedOptions(),i=a}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function eU(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function tU(e){let t=[];for(let r=1;r<=12;r++){let n=Se.utc(2009,r,1);t.push(e(n))}return t}function rU(e){let t=[];for(let r=1;r<=7;r++){let n=Se.utc(2016,11,13+r);t.push(e(n))}return t}function I0(e,t,r,n){let i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function nU(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}var KT,Z2,J2,X2,fh,QT,K2,Q2,e_,iU,vt,mh=V(()=>{Zn();k0();uc();dc();lc();KT={};Z2={};J2={};X2={};fh=null;QT={};K2=class{constructor(t,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:i,floor:o,...s}=n;if(!r||Object.keys(s).length>0){let c={useGrouping:!1,...n};n.padTo>0&&(c.minimumIntegerDigits=n.padTo),this.inf=YF(t,c)}}format(t){if(this.inf){let r=this.floor?Math.floor(t):t;return this.inf.format(r)}else{let r=this.floor?Math.floor(t):Hf(t,3);return sr(r,this.padTo)}}},Q2=class{constructor(t,r,n){this.opts=n,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){let s=-1*(t.offset/60),c=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&er.create(c).valid?(i=c,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);let o={...this.opts};o.timeZone=o.timeZone||i,this.dtf=Y2(r,o)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(r=>{if(r.type==="timeZoneName"){let n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):t}resolvedOptions(){return this.dtf.resolvedOptions()}},e_=class{constructor(t,r,n){this.opts={style:"long",...n},!r&&A0()&&(this.rtf=JF(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):e6(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}},iU={firstDay:1,minimalDays:4,weekend:[6,7]},vt=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,r,n,i,o=!1){let s=t||bt.defaultLocale,c=s||(o?"en-US":XF()),a=r||bt.defaultNumberingSystem,d=n||bt.defaultOutputCalendar,h=ph(i)||bt.defaultWeekSettings;return new e(c,a,d,h,s)}static resetCache(){fh=null,Z2={},J2={},X2={}}static fromObject({locale:t,numberingSystem:r,outputCalendar:n,weekSettings:i}={}){return e.create(t,r,n,i)}constructor(t,r,n,i,o){let[s,c,a]=QF(t);this.locale=s,this.numberingSystem=r||c||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=eU(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=nU(this)),this.fastNumbersCached}listingMode(){let t=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&r?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,ph(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,r=!1){return I0(this,t,t_,()=>{let n=r?{month:t,day:"numeric"}:{month:t},i=r?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=tU(o=>this.extract(o,n,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1){return I0(this,t,r_,()=>{let n=r?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=r?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=rU(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return I0(this,void 0,()=>n_,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Se.utc(2016,11,13,9),Se.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return I0(this,t,i_,()=>{let r={era:t};return this.eraCache[t]||(this.eraCache[t]=[Se.utc(-40,1,1),Se.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[t]})}extract(t,r,n){let i=this.dtFormatter(t,r),o=i.formatToParts(),s=o.find(c=>c.type.toLowerCase()===n);return s?s.value:null}numberFormatter(t={}){return new K2(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new Q2(t,this.intl,r)}relFormatter(t={}){return new e_(this.intl,this.isEnglish(),t)}listFormatter(t={}){return ZF(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:L0()?KF(this.locale):iU}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}});var s_,At,qf=V(()=>{Zn();lu();s_=null,At=class e extends Tr{static get utcInstance(){return s_===null&&(s_=new e(0)),s_}static instance(t){return t===0?e.utcInstance:new e(t)}static parseSpecifier(t){if(t){let r=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new e(uu(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${cc(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${cc(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return cc(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}});var Zf,a_=V(()=>{lu();Zf=class extends Tr{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}});function To(e,t){let r;if(Ge(e)||e===null)return t;if(e instanceof Tr)return e;if(t6(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?ac.instance:n==="utc"||n==="gmt"?At.utcInstance:At.parseSpecifier(n)||er.create(e)}else return Eo(e)?At.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Zf(e)}var O0=V(()=>{lu();lc();qf();a_();Zn();T0()});function n6(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(e[r].search(c_.hanidec)!==-1)t+=oU.indexOf(e[r]);else for(let i in r6){let[o,s]=r6[i];n>=o&&n<=s&&(t+=n-o)}}return parseInt(t,10)}else return t}function i6(){Yf={}}function qi({numberingSystem:e},t=""){let r=e||"latn";return Yf[r]||(Yf[r]={}),Yf[r][t]||(Yf[r][t]=new RegExp(`${c_[r]}${t}`)),Yf[r][t]}var c_,r6,oU,Yf,l_=V(()=>{c_={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},r6={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},oU=c_.hanidec.replace(/[\[|\]]/g,"").split("");Yf={}});var o6,s6,a6,c6,l6,u6,d6,f6,bt,uc=V(()=>{T0();lc();mh();dc();O0();Zn();l_();o6=()=>Date.now(),s6="system",a6=null,c6=null,l6=null,u6=60,f6=null,bt=class{static get now(){return o6}static set now(t){o6=t}static set defaultZone(t){s6=t}static get defaultZone(){return To(s6,ac.instance)}static get defaultLocale(){return a6}static set defaultLocale(t){a6=t}static get defaultNumberingSystem(){return c6}static set defaultNumberingSystem(t){c6=t}static get defaultOutputCalendar(){return l6}static set defaultOutputCalendar(t){l6=t}static get defaultWeekSettings(){return f6}static set defaultWeekSettings(t){f6=ph(t)}static get twoDigitCutoffYear(){return u6}static set twoDigitCutoffYear(t){u6=t%100}static get throwOnInvalid(){return d6}static set throwOnInvalid(t){d6=t}static resetCaches(){vt.resetCache(),er.resetCache(),Se.resetCache(),i6()}}});var nn,hh=V(()=>{nn=class{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}});function Zi(e,t){return new nn("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function N0(e,t,r){let n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let i=n.getUTCDay();return i===0?7:i}function h6(e,t,r){return r+(fu(e)?m6:p6)[t-1]}function g6(e,t){let r=fu(e)?m6:p6,n=r.findIndex(o=>o<t),i=t-r[n];return{month:n+1,day:i}}function R0(e,t){return(e-t+7)%7+1}function gh(e,t=4,r=1){let{year:n,month:i,day:o}=e,s=h6(n,i,o),c=R0(N0(n,i,o),r),a=Math.floor((s-c+14-t)/7),d;return a<1?(d=n-1,a=du(d,t,r)):a>du(n,t,r)?(d=n+1,a=1):d=n,{weekYear:d,weekNumber:a,weekday:c,...yh(e)}}function u_(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=R0(N0(n,1,t),r),c=fc(n),a=i*7+o-s-7+t,d;a<1?(d=n-1,a+=fc(d)):a>c?(d=n+1,a-=fc(n)):d=n;let{month:h,day:g}=g6(d,a);return{year:d,month:h,day:g,...yh(e)}}function D0(e){let{year:t,month:r,day:n}=e,i=h6(t,r,n);return{year:t,ordinal:i,...yh(e)}}function d_(e){let{year:t,ordinal:r}=e,{month:n,day:i}=g6(t,r);return{year:t,month:n,day:i,...yh(e)}}function f_(e,t){if(!Ge(e.localWeekday)||!Ge(e.localWeekNumber)||!Ge(e.localWeekYear)){if(!Ge(e.weekday)||!Ge(e.weekNumber)||!Ge(e.weekYear))throw new So("Cannot mix locale-based week fields with ISO-based week fields");return Ge(e.localWeekday)||(e.weekday=e.localWeekday),Ge(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Ge(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function w6(e,t=4,r=1){let n=wh(e.weekYear),i=Si(e.weekNumber,1,du(e.weekYear,t,r)),o=Si(e.weekday,1,7);return n?i?o?!1:Zi("weekday",e.weekday):Zi("week",e.weekNumber):Zi("weekYear",e.weekYear)}function y6(e){let t=wh(e.year),r=Si(e.ordinal,1,fc(e.year));return t?r?!1:Zi("ordinal",e.ordinal):Zi("year",e.year)}function p_(e){let t=wh(e.year),r=Si(e.month,1,12),n=Si(e.day,1,Jf(e.year,e.month));return t?r?n?!1:Zi("day",e.day):Zi("month",e.month):Zi("year",e.year)}function m_(e){let{hour:t,minute:r,second:n,millisecond:i}=e,o=Si(t,0,23)||t===24&&r===0&&n===0&&i===0,s=Si(r,0,59),c=Si(n,0,59),a=Si(i,0,999);return o?s?c?a?!1:Zi("millisecond",i):Zi("second",n):Zi("minute",r):Zi("hour",t)}var p6,m6,h_=V(()=>{Zn();hh();oc();p6=[0,31,59,90,120,151,181,212,243,273,304,334],m6=[0,31,60,91,121,152,182,213,244,274,305,335]});function Ge(e){return typeof e>"u"}function Eo(e){return typeof e=="number"}function wh(e){return typeof e=="number"&&e%1===0}function t6(e){return typeof e=="string"}function v6(e){return Object.prototype.toString.call(e)==="[object Date]"}function A0(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function L0(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function _6(e){return Array.isArray(e)?e:[e]}function g_(e,t,r){if(e.length!==0)return e.reduce((n,i)=>{let o=[t(i),i];return n&&r(n[0],o[0])===n[0]?n:o},null)[1]}function S6(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function pc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ph(e){if(e==null)return null;if(typeof e!="object")throw new dr("Week settings must be an object");if(!Si(e.firstDay,1,7)||!Si(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Si(t,1,7)))throw new dr("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Si(e,t,r){return wh(e)&&e>=t&&e<=r}function sU(e,t){return e-t*Math.floor(e/t)}function sr(e,t=2){let r=e<0,n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function Zs(e){if(!(Ge(e)||e===null||e===""))return parseInt(e,10)}function mc(e){if(!(Ge(e)||e===null||e===""))return parseFloat(e)}function bh(e){if(!(Ge(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function Hf(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function fu(e){return e%4===0&&(e%100!==0||e%400===0)}function fc(e){return fu(e)?366:365}function Jf(e,t){let r=sU(t-1,12)+1,n=e+(t-r)/12;return r===2?fu(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function jf(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 b6(e,t,r){return-R0(N0(e,1,t),r)+t-1}function du(e,t=4,r=1){let n=b6(e,t,r),i=b6(e+1,t,r);return(fc(e)-n+i)/7}function vh(e){return e>99?e:e>bt.twoDigitCutoffYear?1900+e:2e3+e}function E0(e,t,r,n=null){let i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);let s={timeZoneName:t,...o},c=new Intl.DateTimeFormat(r,s).formatToParts(i).find(a=>a.type.toLowerCase()==="timezonename");return c?c.value:null}function uu(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);let n=parseInt(t,10)||0,i=r<0||Object.is(r,-0)?-n:n;return r*60+i}function w_(e){let t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new dr(`Invalid unit value ${e}`);return t}function Xf(e,t){let r={};for(let n in e)if(pc(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=w_(i)}return r}function cc(e,t){let r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${sr(r,2)}:${sr(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${sr(r,2)}${sr(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function yh(e){return S6(e,["hour","minute","second","millisecond"])}var Zn=V(()=>{oc();uc();h_()});function t_(e){switch(e){case"narrow":return[...cU];case"short":return[...y_];case"long":return[...aU];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}function r_(e){switch(e){case"narrow":return[...lU];case"short":return[...v_];case"long":return[...b_];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function i_(e){switch(e){case"narrow":return[...fU];case"short":return[...dU];case"long":return[...uU];default:return null}}function x6(e){return n_[e.hour<12?0:1]}function C6(e,t){return r_(t)[e.weekday-1]}function T6(e,t){return t_(t)[e.month-1]}function E6(e,t){return i_(t)[e.year<0?0:1]}function e6(e,t,r="always",n=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){let g=e==="days";switch(t){case 1:return g?"tomorrow":`next ${i[e][0]}`;case-1:return g?"yesterday":`last ${i[e][0]}`;case 0:return g?"today":`this ${i[e][0]}`;default:}}let s=Object.is(t,-0)||t<0,c=Math.abs(t),a=c===1,d=i[e],h=n?a?d[1]:d[2]||d[1]:a?i[e][0]:e;return s?`${c} ${h} ago`:`in ${c} ${h}`}var aU,y_,cU,b_,v_,lU,n_,uU,dU,fU,k0=V(()=>{dh();Zn();aU=["January","February","March","April","May","June","July","August","September","October","November","December"],y_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],cU=["J","F","M","A","M","J","J","A","S","O","N","D"];b_=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],v_=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],lU=["M","T","W","T","F","S","S"];n_=["AM","PM"],uU=["Before Christ","Anno Domini"],dU=["BC","AD"],fU=["B","A"]});function M6(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}var pU,on,_h=V(()=>{k0();dh();Zn();pU={D:sc,DD:Hm,DDD:qm,DDDD:Zm,t:Ym,tt:Jm,ttt:Xm,tttt:Km,T:Qm,TT:eh,TTT:th,TTTT:rh,f:nh,ff:oh,fff:ah,ffff:lh,F:ih,FF:sh,FFF:ch,FFFF:uh},on=class e{static create(t,r={}){return new e(t,r)}static parseFormat(t){let r=null,n="",i=!1,o=[];for(let s=0;s<t.length;s++){let c=t.charAt(s);c==="'"?(n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),r=null,n="",i=!i):i||c===r?n+=c:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=c,r=c)}return n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(t){return pU[t]}constructor(t,r){this.opts=r,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...r}).format()}dtFormatter(t,r={}){return this.loc.dtFormatter(t,{...this.opts,...r})}formatDateTime(t,r){return this.dtFormatter(t,r).format()}formatDateTimeParts(t,r){return this.dtFormatter(t,r).formatToParts()}formatInterval(t,r){return this.dtFormatter(t.start,r).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,r){return this.dtFormatter(t,r).resolvedOptions()}num(t,r=0){if(this.opts.forceSimple)return sr(t,r);let n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,r){let n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(S,M)=>this.loc.extract(t,S,M),s=S=>t.isOffsetFixed&&t.offset===0&&S.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,S.format):"",c=()=>n?x6(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(S,M)=>n?T6(t,S):o(M?{month:S}:{month:S,day:"numeric"},"month"),d=(S,M)=>n?C6(t,S):o(M?{weekday:S}:{weekday:S,month:"long",day:"numeric"},"weekday"),h=S=>{let M=e.macroTokenToFormatOpts(S);return M?this.formatWithSystemDefault(t,M):S},g=S=>n?E6(t,S):o({era:S},"era"),v=S=>{switch(S){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return c();case"d":return i?o({day:"numeric"},"day"):this.num(t.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(t.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(t.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return h(S)}};return M6(e.parseFormat(r),v)}formatDurationFromString(t,r){let n=a=>{switch(a[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=a=>d=>{let h=n(d);return h?this.num(a.get(h),d.length):d},o=e.parseFormat(r),s=o.reduce((a,{literal:d,val:h})=>d?a:a.concat(h),[]),c=t.shiftTo(...s.map(n).filter(a=>a));return M6(o,i(c))}}});function Qf(...e){let t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function ep(...e){return t=>e.reduce(([r,n,i],o)=>{let[s,c,a]=o(t,i);return[{...r,...s},c||n,a]},[{},null,1]).slice(0,2)}function tp(e,...t){if(e==null)return[null,null];for(let[r,n]of t){let i=r.exec(e);if(i)return n(i)}return[null,null]}function A6(...e){return(t,r)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=Zs(t[r+i]);return[n,null,r+i]}}function Kf(e,t,r){let n=e[t];return Ge(n)?r:Zs(n)}function SU(e,t){return[{year:Kf(e,t),month:Kf(e,t+1,1),day:Kf(e,t+2,1)},null,t+3]}function rp(e,t){return[{hours:Kf(e,t,0),minutes:Kf(e,t+1,0),seconds:Kf(e,t+2,0),milliseconds:bh(e[t+3])},null,t+4]}function Sh(e,t){let r=!e[t]&&!e[t+1],n=uu(e[t+1],e[t+2]),i=r?null:At.instance(n);return[{},i,t+3]}function xh(e,t){let r=e[t]?er.create(e[t]):null;return[{},r,t+1]}function TU(e){let[t,r,n,i,o,s,c,a,d]=e,h=t[0]==="-",g=a&&a[0]==="-",v=(S,M=!1)=>S!==void 0&&(M||S&&h)?-S:S;return[{years:v(mc(r)),months:v(mc(n)),weeks:v(mc(i)),days:v(mc(o)),hours:v(mc(s)),minutes:v(mc(c)),seconds:v(mc(a),a==="-0"),milliseconds:v(bh(d),g)}]}function x_(e,t,r,n,i,o,s){let c={year:t.length===2?vh(Zs(t)):Zs(t),month:y_.indexOf(r)+1,day:Zs(n),hour:Zs(i),minute:Zs(o)};return s&&(c.second=Zs(s)),e&&(c.weekday=e.length>3?b_.indexOf(e)+1:v_.indexOf(e)+1),c}function PU(e){let[,t,r,n,i,o,s,c,a,d,h,g]=e,v=x_(t,i,n,r,o,s,c),S;return a?S=EU[a]:d?S=0:S=uu(h,g),[v,new At(S)]}function IU(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function P6(e){let[,t,r,n,i,o,s,c]=e;return[x_(t,i,n,r,o,s,c),At.utcInstance]}function OU(e){let[,t,r,n,i,o,s,c]=e;return[x_(t,c,r,n,i,o,s),At.utcInstance]}function R6(e){return tp(e,[NU,N6],[RU,FU],[DU,UU],[$U,VU])}function D6(e){return tp(IU(e),[MU,PU])}function $6(e){return tp(e,[AU,P6],[LU,P6],[kU,OU])}function F6(e){return tp(e,[CU,TU])}function U6(e){return tp(e,[xU,zU])}function V6(e){return tp(e,[WU,N6],[BU,GU])}var I6,L6,mU,__,k6,S_,hU,gU,wU,yU,bU,vU,O6,_U,xU,CU,EU,MU,AU,LU,kU,NU,RU,DU,$U,N6,FU,UU,VU,zU,WU,BU,GU,C_=V(()=>{Zn();k0();qf();lc();I6=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;L6=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,mU=`(?:${L6.source}?(?:\\[(${I6.source})\\])?)?`,__=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,k6=RegExp(`${__.source}${mU}`),S_=RegExp(`(?:T${k6.source})?`),hU=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,gU=/(\d{4})-?W(\d\d)(?:-?(\d))?/,wU=/(\d{4})-?(\d{3})/,yU=A6("weekYear","weekNumber","weekDay"),bU=A6("year","ordinal"),vU=/(\d{4})-(\d\d)-(\d\d)/,O6=RegExp(`${__.source} ?(?:${L6.source}|(${I6.source}))?`),_U=RegExp(`(?: ${O6.source})?`);xU=RegExp(`^T?${__.source}$`),CU=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;EU={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};MU=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;AU=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,LU=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,kU=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;NU=Qf(hU,S_),RU=Qf(gU,S_),DU=Qf(wU,S_),$U=Qf(k6),N6=ep(SU,rp,Sh,xh),FU=ep(yU,rp,Sh,xh),UU=ep(bU,rp,Sh,xh),VU=ep(rp,Sh,xh);zU=ep(rp);WU=Qf(vU,_U),BU=Qf(O6),GU=ep(rp,Sh,xh)});function hc(e,t,r=!1){let n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new ar(n)}function G6(e,t){let r=t.milliseconds??0;for(let n of qU.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function W6(e,t){let r=G6(e,t)<0?-1:1;pu.reduceRight((n,i)=>{if(Ge(t[i]))return n;if(n){let o=t[n]*r,s=e[i][n],c=Math.floor(o/s);t[i]+=c*r,t[n]-=c*s*r}return i},null),pu.reduce((n,i)=>{if(Ge(t[i]))return n;if(n){let o=t[n]%1;t[n]-=o,t[i]+=o*e[n][i]}return i},null)}function ZU(e){let t={};for(let[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}var z6,B6,jU,Yi,np,HU,pu,qU,ar,Ch=V(()=>{oc();_h();hh();mh();C_();Zn();uc();dc();z6="Invalid Duration",B6={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},jU={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...B6},Yi=146097/400,np=146097/4800,HU={years:{quarters:4,months:12,weeks:Yi/7,days:Yi,hours:Yi*24,minutes:Yi*24*60,seconds:Yi*24*60*60,milliseconds:Yi*24*60*60*1e3},quarters:{months:3,weeks:Yi/28,days:Yi/4,hours:Yi*24/4,minutes:Yi*24*60/4,seconds:Yi*24*60*60/4,milliseconds:Yi*24*60*60*1e3/4},months:{weeks:np/7,days:np,hours:np*24,minutes:np*24*60,seconds:np*24*60*60,milliseconds:np*24*60*60*1e3},...B6},pu=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],qU=pu.slice(0).reverse();ar=class e{constructor(t){let r=t.conversionAccuracy==="longterm"||!1,n=r?HU:jU;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||vt.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,r){return e.fromObject({milliseconds:t},r)}static fromObject(t,r={}){if(t==null||typeof t!="object")throw new dr(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:Xf(t,e.normalizeUnit),loc:vt.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if(Eo(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t=="object")return e.fromObject(t);throw new dr(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){let[n]=F6(t);return n?e.fromObject(n,r):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,r){let[n]=U6(t);return n?e.fromObject(n,r):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,r=null){if(!t)throw new dr("need to specify a reason the Duration is invalid");let n=t instanceof nn?t:new nn(t,r);if(bt.throwOnInvalid)throw new x0(n);return new e({invalid:n})}static normalizeUnit(t){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!r)throw new Gf(t);return r}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,r={}){let n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?on.create(this.loc,n).formatDurationFromString(this,t):z6}toHuman(t={}){if(!this.isValid)return z6;let r=pu.map(n=>{let i=this.values[n];return Ge(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:n.slice(0,-1)}).format(i)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=Hf(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Se.fromMillis(r,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?G6(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let r=e.fromDurationLike(t),n={};for(let i of pu)(pc(r.values,i)||pc(this.values,i))&&(n[i]=r.get(i)+this.get(i));return hc(this,{values:n},!0)}minus(t){if(!this.isValid)return this;let r=e.fromDurationLike(t);return this.plus(r.negate())}mapUnits(t){if(!this.isValid)return this;let r={};for(let n of Object.keys(this.values))r[n]=w_(t(this.values[n],n));return hc(this,{values:r},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r={...this.values,...Xf(t,e.normalizeUnit)};return hc(this,{values:r})}reconfigure({locale:t,numberingSystem:r,conversionAccuracy:n,matrix:i}={}){let s={loc:this.loc.clone({locale:t,numberingSystem:r}),matrix:i,conversionAccuracy:n};return hc(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return W6(this.matrix,t),hc(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=ZU(this.normalize().shiftToAll().toObject());return hc(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(s=>e.normalizeUnit(s));let r={},n={},i=this.toObject(),o;for(let s of pu)if(t.indexOf(s)>=0){o=s;let c=0;for(let d in n)c+=this.matrix[d][s]*n[d],n[d]=0;Eo(i[s])&&(c+=i[s]);let a=Math.trunc(c);r[s]=a,n[s]=(c*1e3-a*1e3)/1e3}else Eo(i[s])&&(n[s]=i[s]);for(let s in n)n[s]!==0&&(r[o]+=s===o?n[s]:n[s]/this.matrix[o][s]);return W6(this.matrix,r),hc(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let t={};for(let r of Object.keys(this.values))t[r]=this.values[r]===0?0:-this.values[r];return hc(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function r(n,i){return n===void 0||n===0?i===void 0||i===0:n===i}for(let n of pu)if(!r(this.values[n],t.values[n]))return!1;return!0}}});function YU(e,t){return!e||!e.isValid?Ys.invalid("missing or invalid start"):!t||!t.isValid?Ys.invalid("missing or invalid end"):t<e?Ys.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}var ip,Ys,T_=V(()=>{dc();Ch();uc();oc();hh();_h();dh();ip="Invalid Interval";Ys=class e{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,r=null){if(!t)throw new dr("need to specify a reason the Interval is invalid");let n=t instanceof nn?t:new nn(t,r);if(bt.throwOnInvalid)throw new S0(n);return new e({invalid:n})}static fromDateTimes(t,r){let n=op(t),i=op(r),o=YU(n,i);return o??new e({start:n,end:i})}static after(t,r){let n=ar.fromDurationLike(r),i=op(t);return e.fromDateTimes(i,i.plus(n))}static before(t,r){let n=ar.fromDurationLike(r),i=op(t);return e.fromDateTimes(i.minus(n),i)}static fromISO(t,r){let[n,i]=(t||"").split("/",2);if(n&&i){let o,s;try{o=Se.fromISO(n,r),s=o.isValid}catch{s=!1}let c,a;try{c=Se.fromISO(i,r),a=c.isValid}catch{a=!1}if(s&&a)return e.fromDateTimes(o,c);if(s){let d=ar.fromISO(i,r);if(d.isValid)return e.after(o,d)}else if(a){let d=ar.fromISO(n,r);if(d.isValid)return e.before(c,d)}}return e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",r){if(!this.isValid)return NaN;let n=this.start.startOf(t,r),i;return r?.useLocaleWeeks?i=this.end.reconfigure({locale:n.locale}):i=this.end,i=i.startOf(t,r),Math.floor(i.diff(n,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:r}={}){return this.isValid?e.fromDateTimes(t||this.s,r||this.e):this}splitAt(...t){if(!this.isValid)return[];let r=t.map(op).filter(s=>this.contains(s)).sort((s,c)=>s.toMillis()-c.toMillis()),n=[],{s:i}=this,o=0;for(;i<this.e;){let s=r[o]||this.e,c=+s>+this.e?this.e:s;n.push(e.fromDateTimes(i,c)),i=c,o+=1}return n}splitBy(t){let r=ar.fromDurationLike(t);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,i=1,o,s=[];for(;n<this.e;){let c=this.start.plus(r.mapUnits(a=>a*i));o=+c>+this.e?this.e:c,s.push(e.fromDateTimes(n,o)),n=o,i+=1}return s}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;let r=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return r>=n?null:e.fromDateTimes(r,n)}union(t){if(!this.isValid)return this;let r=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return e.fromDateTimes(r,n)}static merge(t){let[r,n]=t.sort((i,o)=>i.s-o.s).reduce(([i,o],s)=>o?o.overlaps(s)||o.abutsStart(s)?[i,o.union(s)]:[i.concat([o]),s]:[i,s],[[],null]);return n&&r.push(n),r}static xor(t){let r=null,n=0,i=[],o=t.map(a=>[{time:a.s,type:"s"},{time:a.e,type:"e"}]),s=Array.prototype.concat(...o),c=s.sort((a,d)=>a.time-d.time);for(let a of c)n+=a.type==="s"?1:-1,n===1?r=a.time:(r&&+r!=+a.time&&i.push(e.fromDateTimes(r,a.time)),r=null);return e.merge(i)}difference(...t){return e.xor([this].concat(t)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:ip}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=sc,r={}){return this.isValid?on.create(this.s.loc.clone(r),t).formatInterval(this):ip}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:ip}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ip}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:ip}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:ip}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):ar.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}}});var Js,E_=V(()=>{dc();uc();mh();lc();O0();Zn();Js=class{static hasDST(t=bt.defaultZone){let r=Se.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return er.isValidZone(t)}static normalizeZone(t){return To(t,bt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:r=null}={}){return(r||vt.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:r=null}={}){return(r||vt.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:r=null}={}){return(r||vt.create(t)).getWeekendDays().slice()}static months(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||vt.create(r,n,o)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||vt.create(r,n,o)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||vt.create(r,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||vt.create(r,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return vt.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return vt.create(r,null,"gregory").eras(t)}static features(){return{relative:A0(),localeWeek:L0()}}}});function j6(e,t){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(ar.fromMillis(n).as("days"))}function JU(e,t,r){let n=[["years",(a,d)=>d.year-a.year],["quarters",(a,d)=>d.quarter-a.quarter+(d.year-a.year)*4],["months",(a,d)=>d.month-a.month+(d.year-a.year)*12],["weeks",(a,d)=>{let h=j6(a,d);return(h-h%7)/7}],["days",j6]],i={},o=e,s,c;for(let[a,d]of n)r.indexOf(a)>=0&&(s=a,i[a]=d(e,t),c=o.plus(i),c>t?(i[a]--,e=o.plus(i),e>t&&(c=e,i[a]--,e=o.plus(i))):e=c);return[e,i,c,s]}function H6(e,t,r,n){let[i,o,s,c]=JU(e,t,r),a=t-i,d=r.filter(g=>["hours","minutes","seconds","milliseconds"].indexOf(g)>=0);d.length===0&&(s<t&&(s=i.plus({[c]:1})),s!==i&&(o[c]=(o[c]||0)+a/(s-i)));let h=ar.fromObject(o,n);return d.length>0?ar.fromMillis(a,n).shiftTo(...d).plus(h):h}var q6=V(()=>{Ch()});function xt(e,t=r=>r){return{regex:e,deser:([r])=>t(n6(r))}}function QU(e){return e.replace(/\./g,"\\.?").replace(X6,J6)}function Z6(e){return e.replace(/\./g,"").replace(X6," ").toLowerCase()}function Mo(e,t){return e===null?null:{regex:RegExp(e.map(QU).join("|")),deser:([r])=>e.findIndex(n=>Z6(r)===Z6(n))+t}}function Y6(e,t){return{regex:e,deser:([,r,n])=>uu(r,n),groups:t}}function $0(e){return{regex:e,deser:([t])=>t}}function eV(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function tV(e,t){let r=qi(t),n=qi(t,"{2}"),i=qi(t,"{3}"),o=qi(t,"{4}"),s=qi(t,"{6}"),c=qi(t,"{1,2}"),a=qi(t,"{1,3}"),d=qi(t,"{1,6}"),h=qi(t,"{1,9}"),g=qi(t,"{2,4}"),v=qi(t,"{4,6}"),S=R=>({regex:RegExp(eV(R.val)),deser:([B])=>B,literal:!0}),I=(R=>{if(e.literal)return S(R);switch(R.val){case"G":return Mo(t.eras("short"),0);case"GG":return Mo(t.eras("long"),0);case"y":return xt(d);case"yy":return xt(g,vh);case"yyyy":return xt(o);case"yyyyy":return xt(v);case"yyyyyy":return xt(s);case"M":return xt(c);case"MM":return xt(n);case"MMM":return Mo(t.months("short",!0),1);case"MMMM":return Mo(t.months("long",!0),1);case"L":return xt(c);case"LL":return xt(n);case"LLL":return Mo(t.months("short",!1),1);case"LLLL":return Mo(t.months("long",!1),1);case"d":return xt(c);case"dd":return xt(n);case"o":return xt(a);case"ooo":return xt(i);case"HH":return xt(n);case"H":return xt(c);case"hh":return xt(n);case"h":return xt(c);case"mm":return xt(n);case"m":return xt(c);case"q":return xt(c);case"qq":return xt(n);case"s":return xt(c);case"ss":return xt(n);case"S":return xt(a);case"SSS":return xt(i);case"u":return $0(h);case"uu":return $0(c);case"uuu":return xt(r);case"a":return Mo(t.meridiems(),0);case"kkkk":return xt(o);case"kk":return xt(g,vh);case"W":return xt(c);case"WW":return xt(n);case"E":case"c":return xt(r);case"EEE":return Mo(t.weekdays("short",!1),1);case"EEEE":return Mo(t.weekdays("long",!1),1);case"ccc":return Mo(t.weekdays("short",!0),1);case"cccc":return Mo(t.weekdays("long",!0),1);case"Z":case"ZZ":return Y6(new RegExp(`([+-]${c.source})(?::(${n.source}))?`),2);case"ZZZ":return Y6(new RegExp(`([+-]${c.source})(${n.source})?`),2);case"z":return $0(/[a-z_+-/]{1,256}?/i);case" ":return $0(/[^\S\n\r]/);default:return S(R)}})(e)||{invalidReason:XU};return I.token=e,I}function nV(e,t,r){let{type:n,value:i}=e;if(n==="literal"){let a=/^\s+$/.test(i);return{literal:!a,val:a?" ":i}}let o=t[n],s=n;n==="hour"&&(t.hour12!=null?s=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?s="hour12":s="hour24":s=r.hour12?"hour12":"hour24");let c=rV[s];if(typeof c=="object"&&(c=c[o]),c)return{literal:!1,val:c}}function iV(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function oV(e,t,r){let n=e.match(t);if(n){let i={},o=1;for(let s in r)if(pc(r,s)){let c=r[s],a=c.groups?c.groups+1:1;!c.literal&&c.token&&(i[c.token.val[0]]=c.deser(n.slice(o,o+a))),o+=a}return[n,i]}else return[n,{}]}function sV(e){let t=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,n;return Ge(e.z)||(r=er.create(e.z)),Ge(e.Z)||(r||(r=new At(e.Z)),n=e.Z),Ge(e.q)||(e.M=(e.q-1)*3+1),Ge(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),Ge(e.u)||(e.S=bh(e.u)),[Object.keys(e).reduce((o,s)=>{let c=t(s);return c&&(o[c]=e[s]),o},{}),r,n]}function aV(){return M_||(M_=Se.fromMillis(1555555555555)),M_}function cV(e,t){if(e.literal)return e;let r=on.macroTokenToFormatOpts(e.val),n=A_(r,t);return n==null||n.includes(void 0)?e:n}function P_(e,t){return Array.prototype.concat(...e.map(r=>cV(r,t)))}function I_(e,t,r){return new Th(e,r).explainFromTokens(t)}function K6(e,t,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=I_(e,t,r);return[n,i,o,s]}function A_(e,t){if(!e)return null;let n=on.create(t,e).dtFormatter(aV()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>nV(s,e,o))}var XU,KU,J6,X6,rV,M_,Th,Q6=V(()=>{Zn();_h();qf();lc();dc();l_();oc();XU="missing Intl.DateTimeFormat.formatToParts support";KU="\xA0",J6=`[ ${KU}]`,X6=new RegExp(J6,"g");rV={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};M_=null;Th=class{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=P_(on.parseFormat(r),t),this.units=this.tokens.map(n=>tV(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=iV(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){let[r,n]=oV(t,this.regex,this.handlers),[i,o,s]=n?sV(n):[null,null,void 0];if(pc(n,"a")&&pc(n,"H"))throw new So("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:i,zone:o,specificOffset:s}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}});function Eh(e){return new nn("unsupported zone",`the zone "${e.name}" is not supported`)}function k_(e){return e.weekData===null&&(e.weekData=gh(e.c)),e.weekData}function O_(e){return e.localWeekData===null&&(e.localWeekData=gh(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function mu(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Se({...r,...t,old:r})}function aE(e,t,r){let n=e-t*60*1e3,i=r.offset(n);if(t===i)return[n,t];n-=(i-t)*60*1e3;let o=r.offset(n);return i===o?[n,i]:[e-Math.min(i,o)*60*1e3,Math.max(i,o)]}function F0(e,t){e+=t*60*1e3;let r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function V0(e,t,r){return aE(jf(e),t,r)}function tE(e,t){let r=e.o,n=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:i,day:Math.min(e.c.day,Jf(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=ar.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),c=jf(o),[a,d]=aE(c,r,e.zone);return s!==0&&(a+=s,d=e.zone.offset(a)),{ts:a,o:d}}function sp(e,t,r,n,i,o){let{setZone:s,zone:c}=r;if(e&&Object.keys(e).length!==0||t){let a=t||c,d=Se.fromObject(e,{...r,zone:a,specificOffset:o});return s?d:d.setZone(c)}else return Se.invalid(new nn("unparsable",`the input "${i}" can't be parsed as ${n}`))}function U0(e,t,r=!0){return e.isValid?on.create(vt.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function N_(e,t){let r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=sr(e.c.year,r?6:4),t?(n+="-",n+=sr(e.c.month),n+="-",n+=sr(e.c.day)):(n+=sr(e.c.month),n+=sr(e.c.day)),n}function rE(e,t,r,n,i,o){let s=sr(e.c.hour);return t?(s+=":",s+=sr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=":")):s+=sr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=sr(e.c.second),(e.c.millisecond!==0||!n)&&(s+=".",s+=sr(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!o?s+="Z":e.o<0?(s+="-",s+=sr(Math.trunc(-e.o/60)),s+=":",s+=sr(Math.trunc(-e.o%60))):(s+="+",s+=sr(Math.trunc(e.o/60)),s+=":",s+=sr(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}function pV(e){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new Gf(e);return t}function nE(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return pV(e)}}function mV(e){return W0[e]||(z0===void 0&&(z0=bt.now()),W0[e]=e.offset(z0)),W0[e]}function iE(e,t){let r=To(t.zone,bt.defaultZone);if(!r.isValid)return Se.invalid(Eh(r));let n=vt.fromObject(t),i,o;if(Ge(e.year))i=bt.now();else{for(let a of lE)Ge(e[a])&&(e[a]=cE[a]);let s=p_(e)||m_(e);if(s)return Se.invalid(s);let c=mV(r);[i,o]=V0(e,c,r)}return new Se({ts:i,zone:r,loc:n,o})}function oE(e,t,r){let n=Ge(r.round)?!0:r.round,i=(s,c)=>(s=Hf(s,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(s,c)),o=s=>r.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(r.unit)return i(o(r.unit),r.unit);for(let s of r.units){let c=o(s);if(Math.abs(c)>=1)return i(c,s)}return i(e>t?-0:0,r.units[r.units.length-1])}function sE(e){let t={},r;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}function op(e){if(Se.isDateTime(e))return e;if(e&&e.valueOf&&Eo(e.valueOf()))return Se.fromJSDate(e);if(e&&typeof e=="object")return Se.fromObject(e);throw new dr(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var L_,eE,cE,lV,uV,lE,dV,fV,z0,W0,Se,dc=V(()=>{Ch();T_();uc();E_();_h();qf();mh();Zn();O0();q6();C_();Q6();h_();dh();oc();hh();L_="Invalid DateTime",eE=864e13;cE={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},lV={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},uV={ordinal:1,hour:0,minute:0,second:0,millisecond:0},lE=["year","month","day","hour","minute","second","millisecond"],dV=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],fV=["year","ordinal","hour","minute","second","millisecond"];W0={},Se=class e{constructor(t){let r=t.zone||bt.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new nn("invalid input"):null)||(r.isValid?null:Eh(r));this.ts=Ge(t.ts)?bt.now():t.ts;let i=null,o=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(r))[i,o]=[t.old.c,t.old.o];else{let c=Eo(t.o)&&!t.old?t.o:r.offset(this.ts);i=F0(this.ts,c),n=Number.isNaN(i.year)?new nn("invalid input"):null,i=n?null:i,o=n?null:c}this._zone=r,this.loc=t.loc||vt.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){let[t,r]=sE(arguments),[n,i,o,s,c,a,d]=r;return iE({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},t)}static utc(){let[t,r]=sE(arguments),[n,i,o,s,c,a,d]=r;return t.zone=At.utcInstance,iE({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},t)}static fromJSDate(t,r={}){let n=v6(t)?t.valueOf():NaN;if(Number.isNaN(n))return e.invalid("invalid input");let i=To(r.zone,bt.defaultZone);return i.isValid?new e({ts:n,zone:i,loc:vt.fromObject(r)}):e.invalid(Eh(i))}static fromMillis(t,r={}){if(Eo(t))return t<-eE||t>eE?e.invalid("Timestamp out of range"):new e({ts:t,zone:To(r.zone,bt.defaultZone),loc:vt.fromObject(r)});throw new dr(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(Eo(t))return new e({ts:t*1e3,zone:To(r.zone,bt.defaultZone),loc:vt.fromObject(r)});throw new dr("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};let n=To(r.zone,bt.defaultZone);if(!n.isValid)return e.invalid(Eh(n));let i=vt.fromObject(r),o=Xf(t,nE),{minDaysInFirstWeek:s,startOfWeek:c}=f_(o,i),a=bt.now(),d=Ge(r.specificOffset)?n.offset(a):r.specificOffset,h=!Ge(o.ordinal),g=!Ge(o.year),v=!Ge(o.month)||!Ge(o.day),S=g||v,M=o.weekYear||o.weekNumber;if((S||h)&&M)throw new So("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(v&&h)throw new So("Can't mix ordinal dates with month/day");let I=M||o.weekday&&!S,R,B,F=F0(a,d);I?(R=dV,B=lV,F=gh(F,s,c)):h?(R=fV,B=uV,F=D0(F)):(R=lE,B=cE);let G=!1;for(let xe of R){let ke=o[xe];Ge(ke)?G?o[xe]=B[xe]:o[xe]=F[xe]:G=!0}let J=I?w6(o,s,c):h?y6(o):p_(o),re=J||m_(o);if(re)return e.invalid(re);let de=I?u_(o,s,c):h?d_(o):o,[W,me]=V0(de,d,n),Le=new e({ts:W,zone:n,o:me,loc:i});return o.weekday&&S&&t.weekday!==Le.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${Le.toISO()}`):Le.isValid?Le:e.invalid(Le.invalid)}static fromISO(t,r={}){let[n,i]=R6(t);return sp(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=D6(t);return sp(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=$6(t);return sp(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(Ge(t)||Ge(r))throw new dr("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=vt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[c,a,d,h]=K6(s,t,r);return h?e.invalid(h):sp(c,a,n,`format ${r}`,t,d)}static fromString(t,r,n={}){return e.fromFormat(t,r,n)}static fromSQL(t,r={}){let[n,i]=V6(t);return sp(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new dr("need to specify a reason the DateTime is invalid");let n=t instanceof nn?t:new nn(t,r);if(bt.throwOnInvalid)throw new _0(n);return new e({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){let n=A_(t,vt.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(t,r={}){return P_(on.parseFormat(t),vt.fromObject(r)).map(i=>i.val).join("")}static resetCache(){z0=void 0,W0={}}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?k_(this).weekYear:NaN}get weekNumber(){return this.isValid?k_(this).weekNumber:NaN}get weekday(){return this.isValid?k_(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?O_(this).weekday:NaN}get localWeekNumber(){return this.isValid?O_(this).weekNumber:NaN}get localWeekYear(){return this.isValid?O_(this).weekYear:NaN}get ordinal(){return this.isValid?D0(this.c).ordinal:NaN}get monthShort(){return this.isValid?Js.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Js.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Js.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Js.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let t=864e5,r=6e4,n=jf(this.c),i=this.zone.offset(n-t),o=this.zone.offset(n+t),s=this.zone.offset(n-i*r),c=this.zone.offset(n-o*r);if(s===c)return[this];let a=n-s*r,d=n-c*r,h=F0(a,s),g=F0(d,c);return h.hour===g.hour&&h.minute===g.minute&&h.second===g.second&&h.millisecond===g.millisecond?[mu(this,{ts:a}),mu(this,{ts:d})]:[this]}get isInLeapYear(){return fu(this.year)}get daysInMonth(){return Jf(this.year,this.month)}get daysInYear(){return this.isValid?fc(this.year):NaN}get weeksInWeekYear(){return this.isValid?du(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?du(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:r,numberingSystem:n,calendar:i}=on.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(t=0,r={}){return this.setZone(At.instance(t),r)}toLocal(){return this.setZone(bt.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=To(t,bt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(r||n){let o=t.offset(this.ts),s=this.toObject();[i]=V0(s,o,t)}return mu(this,{ts:i,zone:t})}else return e.invalid(Eh(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return mu(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let r=Xf(t,nE),{minDaysInFirstWeek:n,startOfWeek:i}=f_(r,this.loc),o=!Ge(r.weekYear)||!Ge(r.weekNumber)||!Ge(r.weekday),s=!Ge(r.ordinal),c=!Ge(r.year),a=!Ge(r.month)||!Ge(r.day),d=c||a,h=r.weekYear||r.weekNumber;if((d||s)&&h)throw new So("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new So("Can't mix ordinal dates with month/day");let g;o?g=u_({...gh(this.c,n,i),...r},n,i):Ge(r.ordinal)?(g={...this.toObject(),...r},Ge(r.day)&&(g.day=Math.min(Jf(g.year,g.month),g.day))):g=d_({...D0(this.c),...r});let[v,S]=V0(g,this.o,this.zone);return mu(this,{ts:v,o:S})}plus(t){if(!this.isValid)return this;let r=ar.fromDurationLike(t);return mu(this,tE(this,r))}minus(t){if(!this.isValid)return this;let r=ar.fromDurationLike(t).negate();return mu(this,tE(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=ar.normalizeUnit(t);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break;case"milliseconds":break}if(i==="weeks")if(r){let o=this.loc.getStartOfWeek(),{weekday:s}=this;s<o&&(n.weekNumber=this.weekNumber-1),n.weekday=o}else n.weekday=1;if(i==="quarters"){let o=Math.ceil(this.month/3);n.month=(o-1)*3+1}return this.set(n)}endOf(t,r){return this.isValid?this.plus({[t]:1}).startOf(t,r).minus(1):this}toFormat(t,r={}){return this.isValid?on.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):L_}toLocaleString(t=sc,r={}){return this.isValid?on.create(this.loc.clone(r),t).formatDateTime(this):L_}toLocaleParts(t={}){return this.isValid?on.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;let s=t==="extended",c=N_(this,s);return c+="T",c+=rE(this,s,r,n,i,o),c}toISODate({format:t="extended"}={}){return this.isValid?N_(this,t==="extended"):null}toISOWeekDate(){return U0(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:o=!1,format:s="extended"}={}){return this.isValid?(i?"T":"")+rE(this,s==="extended",r,t,n,o):null}toRFC2822(){return U0(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return U0(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?N_(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(r||t)&&(n&&(i+=" "),r?i+="z":t&&(i+="ZZ")),U0(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():L_}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};let r={...this.c};return t.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,r="milliseconds",n={}){if(!this.isValid||!t.isValid)return ar.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=_6(r).map(ar.normalizeUnit),s=t.valueOf()>this.valueOf(),c=s?this:t,a=s?t:this,d=H6(c,a,o,i);return s?d.negate():d}diffNow(t="milliseconds",r={}){return this.diff(e.now(),t,r)}until(t){return this.isValid?Ys.fromDateTimes(this,t):this}hasSame(t,r,n){if(!this.isValid)return!1;let i=t.valueOf(),o=this.setZone(t.zone,{keepLocalTime:!0});return o.startOf(r,n)<=i&&i<=o.endOf(r,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;let r=t.base||e.fromObject({},{zone:this.zone}),n=t.padding?this<r?-t.padding:t.padding:0,i=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(i=t.unit,o=void 0),oE(r,this.plus(n),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?oE(t.base||e.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(e.isDateTime))throw new dr("min requires all arguments be DateTimes");return g_(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new dr("max requires all arguments be DateTimes");return g_(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=vt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return I_(s,t,r)}static fromStringExplain(t,r,n={}){return e.fromFormatExplain(t,r,n)}static buildFormatParser(t,r={}){let{locale:n=null,numberingSystem:i=null}=r,o=vt.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new Th(o,t)}static fromFormatParser(t,r,n={}){if(Ge(t)||Ge(r))throw new dr("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,s=vt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!s.equals(r.locale))throw new dr(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:c,zone:a,specificOffset:d,invalidReason:h}=r.explainFromTokens(t);return h?e.invalid(h):sp(c,a,n,`format ${r.format}`,t,d)}static get DATE_SHORT(){return sc}static get DATE_MED(){return Hm}static get DATE_MED_WITH_WEEKDAY(){return j2}static get DATE_FULL(){return qm}static get DATE_HUGE(){return Zm}static get TIME_SIMPLE(){return Ym}static get TIME_WITH_SECONDS(){return Jm}static get TIME_WITH_SHORT_OFFSET(){return Xm}static get TIME_WITH_LONG_OFFSET(){return Km}static get TIME_24_SIMPLE(){return Qm}static get TIME_24_WITH_SECONDS(){return eh}static get TIME_24_WITH_SHORT_OFFSET(){return th}static get TIME_24_WITH_LONG_OFFSET(){return rh}static get DATETIME_SHORT(){return nh}static get DATETIME_SHORT_WITH_SECONDS(){return ih}static get DATETIME_MED(){return oh}static get DATETIME_MED_WITH_SECONDS(){return sh}static get DATETIME_MED_WITH_WEEKDAY(){return H2}static get DATETIME_FULL(){return ah}static get DATETIME_FULL_WITH_SECONDS(){return ch}static get DATETIME_HUGE(){return lh}static get DATETIME_HUGE_WITH_SECONDS(){return uh}}});var In=V(()=>{dc();Ch();T_();E_();lu();qf();lc();a_();T0();uc()});function hu(e){return e instanceof Tr?e===zr.instance:e?.toString().toLowerCase()==="unknown"}function B0(e){return hu(e)?zr.instance:e}var zr,Mh=V(()=>{In();zr=class{};zr.instance=new er("Etc/UTC")});function ap(e,t,r){return e<t?e-t:e>r?e-r:0}function cp(e,t,r){return e<t?t:e>r?r:e}function Po(e,t=!0){if(e instanceof Tr)return e;if(e.toLowerCase()==="system")return"system";if(e.toLowerCase()==="utc")return"UTC";if(e.toLowerCase()==="unknown")return zr.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){let n=At.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(n)return n}let r=er.create(e);if(!r.isValid){if(t)throw new R_(G0.TimeZoneNotRecognized);return null}return r}var G0,hV,R_,Ph,uE=V(()=>{ic();Mh();In();(function(e){e.TimeZoneNotRecognized="TimeZoneNotRecognized"})(G0||(G0={}));hV={[G0.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},R_=class e extends Error{constructor(t,r){super(fs(hV[t],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};Ph=class e{constructor(t){this._date=t,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(t=0,r=1,n=1,i=0,o=0,s=0,c=0,a){if(isNaN(t)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||isNaN(s)||isNaN(c))return null;let d=Se.local(t,r).daysInMonth,h=Se.fromObject({day:cp(n,1,d),year:t,month:cp(r,1,12),hour:cp(i,0,23),minute:cp(o,0,59),second:cp(s,0,59),millisecond:cp(c,0,999)},{zone:Po(a)});return h=h.plus({months:ap(r,1,12),days:ap(n,1,d),hours:ap(i,0,23),minutes:ap(o,0,59),seconds:ap(s,0,59),milliseconds:ap(c,0,999)}),new e(h)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(t,r){let n=Po(r);return t.isUnknownTimeZone||n===zr.instance?e.fromParts(t.year,t.monthJS+1,t.day,t.hour,t.minute,t.second,t.millisecond,n):new e(t._date.setZone(n))}static dateJSToArcadeDate(t){return new e(Se.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,r="system"){let n=Po(r);return new e(Se.fromJSDate(t,{zone:n}))}static unknownEpochToArcadeDate(t){return new e(Se.fromMillis(t,{zone:zr.instance}))}static unknownDateJSToArcadeDate(t){return new e(Se.fromMillis(t.getTime(),{zone:zr.instance}))}static epochToArcadeDate(t,r="system"){let n=Po(r);return new e(Se.fromMillis(t,{zone:n}))}static dateTimeToArcadeDate(t){return new e(t)}clone(){return new e(this._date)}changeTimeZone(t){let r=Po(t);return e.dateTimeToArcadeDate(this._date.setZone(r))}static dateTimeAndZoneToArcadeDate(t,r){let n=Po(r);return t.zone===zr.instance||n===zr.instance?e.fromParts(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond,n):new e(t.setZone(n))}static nowToArcadeDate(t){let r=Po(t);return new e(Se.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new e(Se.utc())}get isSystem(){return this.timeZone==="system"||this.timeZone===e.systemTimeZoneCanonicalName}equals(t){return this.isSystem&&t.isSystem?this.toNumber()===t.toNumber():this.isUnknownTimeZone===t.isUnknownTimeZone&&this._date.equals(t._date)}get isUnknownTimeZone(){return this._date.zone===zr.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let t=this._date.weekday;return t>6&&(t=0),t}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if(this._date.zone.type==="system")return"system";let t=this.zone;return t.type==="fixed"?t.fixed===0?"UTC":t.formatOffset(0,"short"):t.name}stringify(){return JSON.stringify(this.toJSDate())}plus(t){return new e(this._date.plus(t))}diff(t,r="milliseconds"){return this._date.diff(t._date,r)[r]}toISODate(){return this._date.toISODate()}toISOString(t){return t?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(t,r){return this._date.toISOTime({suppressMilliseconds:t,includeOffset:r&&!this.isUnknownTimeZone})}toFormat(t,r){return this.isUnknownTimeZone&&(t=t.replaceAll("Z","")),this._date.toFormat(t,r)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new e(this._date.toUTC())}toLocal(){return new e(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(t){if(!t)return null;let r=Se.fromISO(t,{setZone:!0});return new e(r)}}});function Ct(e){return e?{remove(){e&&(e(),e=void 0)}}:gV}function wV(e){e.forEach(t=>t?.remove())}function gu(e){return Ct(()=>wV(e))}var gV,oi=V(()=>{gV={remove:()=>{}}});function fE(){let e=D_?.getAttribute("lang"),t=globalThis.navigator?.language;return bV??e??t??"en"}function Ji(){return Ih===void 0&&(Ih=fE()),Ih}function $_(e){return j0.push(e),Ct(()=>j0.splice(j0.indexOf(e),1))}function lp(e){return H0.push(e),Ct(()=>H0.splice(H0.indexOf(e),1))}function dE(){let e=yV??fE();Ih!==e&&([...H0].forEach(t=>t(e)),Ih=e,[...j0].forEach(t=>t(e)))}var yV,Ih,bV,D_,j0,H0,gc=V(()=>{oi();bV=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,D_=globalThis.document?.documentElement;j0=[];H0=[];globalThis.addEventListener?.("languagechange",dE),D_&&new MutationObserver(()=>{dE()}).observe(D_,{attributeFilter:["lang"]})});function pE(e){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let t="",r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(let n of e.match(r)||[])switch(n){case"D":t+="d";break;case"DD":t+="dd";break;case"DDD":t+="o";break;case"d":t+="c";break;case"ddd":t+="ccc";break;case"dddd":t+="cccc";break;case"M":t+="L";break;case"MM":t+="LL";break;case"MMM":t+="LLL";break;case"MMMM":t+="LLLL";break;case"YY":t+="yy";break;case"Y":case"YYYY":t+="yyyy";break;case"Q":t+="q";break;case"X":case"x":t+=n;break;default:n.length>=2&&n.slice(0,1)==="["&&n.slice(-1)==="]"?t+=`'${n.slice(1,-1)}'`:t+=`'${n}'`}return t}var sn,Ah=V(()=>{uE();gc();In();sn=class e{constructor(t,r,n){this._year=t,this._month=r,this._day=n,this.declaredRootClass="esri.core.sql.dateonly"}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(t){return t instanceof e&&t.day===this.day&&t.month===this.month&&t.year===this.year}clone(){return new e(this._year,this._month,this._day)}toDateTime(t){return Se.fromObject({day:this.day,month:this.month,year:this.year},{zone:Po(t)})}toDateTimeLuxon(t){return Se.fromObject({day:this.day,month:this.month,year:this.year},{zone:Po(t)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(t=null,r=!0){if(t===null||t==="")return this.toString();if(r&&(t=pE(t)),!t)return"";let n=this.toDateTime("unknown");return Ph.dateTimeToArcadeDate(n).toFormat(t,{locale:Ji(),numberingSystem:"latn"})}toArcadeDate(){let t=this.toDateTime("unknown");return Ph.dateTimeToArcadeDate(t)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(t,r){return e.fromDateTime(this.toUTCDateTime().plus({[t]:r}))}toUTCDateTime(){return Se.utc(this.year,this.month,this.day,0,0,0,0)}difference(t,r){switch(r.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return r==="M"?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}static fromMilliseconds(t){let r=Se.fromMillis(t,{zone:At.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromSeconds(t){let r=Se.fromSeconds(t,{zone:At.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromReader(t){if(!t)return null;let r=t.split("-");return r.length!==3?null:new e(parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10))}static fromParts(t,r,n){let i=new e(t,r,n);return i.isValid===!1?null:i}static fromDateJS(t){return e.fromParts(t.getFullYear(),t.getMonth()+1,t.getDay())}static fromDateTime(t){return e.fromParts(t.year,t.month,t.day)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,r=null){if(t===""||t===null)return null;let n=[];if(r)(r=pE(r))&&n.push(r);else if(r===null||r===""){let i=Se.fromISO(t,{setZone:!0});return i.isValid?e.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=Se.fromFormat(t,r??i);if(o.isValid)return new e(o.year,o.month,o.day)}return null}static fromNow(t="system"){let r=Se.fromJSDate(new Date).setZone(Po(t));return new e(r.year,r.month,r.day)}}});var te,vV,ae,wc=V(()=>{ic();(function(e){e.InvalidFunctionParameters="InvalidFunctionParameters",e.InvalidValueForAggregateFunction="InvalidValueForAggregateFunction",e.UnsupportedSqlFunction="UnsupportedSqlFunction",e.UnsupportedOperator="UnsupportedOperator",e.UnsupportedSyntax="UnsupportedSyntax",e.UnsupportedIsRhs="UnsupportedIsRhs",e.UnsupportedIsLhs="UnsupportedIsLhs",e.InvalidDataType="InvalidDataType",e.CannotCastValue="CannotCastValue",e.FunctionNotRecognized="FunctionNotRecognized",e.InvalidTime="InvalidTime",e.InvalidParameterCount="InvalidParameterCount",e.InvalidTimeStamp="InvalidTimeStamp",e.InvalidDate="InvalidDate",e.InvalidOperator="InvalidOperator",e.IllegalInterval="IllegalInterval",e.YearMonthIntervals="YearMonthIntervals",e.PrimarySecondaryQualifiers="PrimarySecondaryQualifiers",e.MissingStatisticParameters="MissingStatisticParameters"})(te||(te={}));vV={[te.InvalidValueForAggregateFunction]:"Invalid value used in aggregate function",[te.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[te.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[te.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[te.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[te.UnsupportedOperator]:"Unsupported operator - {operator}",[te.UnsupportedSyntax]:"Unsupported syntax - {node}",[te.UnsupportedSqlFunction]:"Sql function not found = {function}",[te.InvalidDataType]:"Invalid sql data type",[te.InvalidDate]:"Invalid date encountered",[te.InvalidOperator]:"Invalid operator encountered",[te.InvalidTime]:"Invalid time encountered",[te.IllegalInterval]:"Illegal interval",[te.FunctionNotRecognized]:"Function not recognized",[te.InvalidTimeStamp]:"Invalid timestamp encountered",[te.InvalidParameterCount]:"Invalid parameter count for call to {name}",[te.PrimarySecondaryQualifiers]:"Primary and Secondary SqlInterval qualifiers not supported",[te.YearMonthIntervals]:"Year-Month Intervals not supported",[te.CannotCastValue]:"Cannot cast value to the required data type"},ae=class e extends Error{constructor(t,r){super(fs(vV[t],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}});function mE(e){return Number.isNaN(e)||e===0?e:Math.trunc(e)}var yn,Lh=V(()=>{In();yn=class e{constructor(t){this._timeStampOffset=t,this._date=null}toDateTime(){return this._date??(this._date=Se.fromISO(this._timeStampOffset,{setZone:!0})),this._date}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return mE(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return mE(this.toDateTime().offset%60)}toMilliseconds(){return this.toDateTime().toMillis()}get hour(){return this.toDateTime().hour}get minute(){return this.toDateTime().minute}get second(){return this.toDateTime().second}get day(){return this.toDateTime().day}get month(){return this.toDateTime().month}get year(){return this.toDateTime().year}startOfDay(){return e.fromDateTime(this.toDateTime().startOf("day"))}static fromJSDate(t){return new e(Se.fromJSDate(t).toISO({includeOffset:!0}))}static fromDateTime(t){return new e(t.toISO({includeOffset:!0}))}static fromParts(t,r,n=0,i=0,o=0,s=0,c=0,a=!1,d=0,h=0){let g=`${t.toString().padStart(4,"0")}-${r.toString().padStart(2,"0")}-${n.toString().padStart(2,"0")}`,v="";s<10&&(v="0");let S=`${i.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${v+s.toString()}`;c!==0&&(S+="."+c.toString().padStart(3,"0"));let M=`${a?"-":"+"}${d.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`;return new e(g+"T"+S+M)}toStorageFormat(){return this._timeStampOffset}toString(){return this._timeStampOffset}toSQLValue(){let t=this.toDateTime().toSQL({includeOffset:!0,includeOffsetSpace:!0});return t&&(t=t.replace(".000","")),t}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}addMilliseconds(t){let r=this.toDateTime().plus(t);return e.fromDateTime(r)}}});function N(e,t,r,n){var i,o=arguments.length,s=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}var pt=V(()=>{});var q0,F_=V(()=>{q0="20241128"});var Tt,yc=V(()=>{et();ds();F_();Tt={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(HT(Tt,globalThis.esriConfig,!0),delete Tt.has),!Tt.assetsPath){{let e="4.32.0";Tt.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${q0}/assets`}Tt.defaultAssetsPath=Tt.assetsPath}});function _V(e,t,...r){console[e](`[${t}]`,...r)}function SV(...e){return XT(JSON.stringify(e,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var hE,ct,tt=V(()=>{yc();et();ic();hE={info:0,warn:1,error:2,none:3},ct=class e{constructor(t){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},t.level!=null&&(this.level=t.level),t.writer!=null&&(this.writer=t.writer),this._module=t.module,e._loggers.set(this.module,this);let r=this.module.lastIndexOf(".");r!==-1&&(this._parent=e.getLogger(this.module.slice(0,r)))}get module(){return this._module}get parent(){return this._parent}error(...t){this._log("error","always",...t)}warn(...t){this._log("warn","always",...t)}info(...t){this._log("info","always",...t)}errorOnce(...t){this._log("error","once",...t)}warnOnce(...t){this._log("warn","once",...t)}infoOnce(...t){this._log("info","once",...t)}errorOncePerTick(...t){this._log("error","oncePerTick",...t)}warnOncePerTick(...t){this._log("warn","oncePerTick",...t)}infoOncePerTick(...t){this._log("info","oncePerTick",...t)}get test(){}static get test(){}static getLogger(t){return t=typeof t!="string"?t.declaredClass:t,e._loggers.get(t)||new e({module:t})}_log(t,r,...n){if(this._matchLevel(t)){if(r!=="always"&&!e._throttlingDisabled){let i=SV(n),o=this._loggedMessages[t].get(i);if(r==="once"&&o!=null||r==="oncePerTick"&&o&&o>=e._tickCounter)return;this._loggedMessages[t].set(i,e._tickCounter),e._scheduleTickCounterIncrement()}for(let i of Tt.log.interceptors)if(i(t,this.module,...n))return;this._inheritedWriter()(t,this.module,...n)}}_parentWithMember(t,r){let n=this;for(;n!=null;){let i=n[t];if(i!=null)return i;n=n.parent}return r}_inheritedWriter(){return this._parentWithMember("writer",_V)}_matchLevel(t){let r=Tt.log.level||"warn";return hE[this._parentWithMember("level",r)]<=hE[t]}static _scheduleTickCounterIncrement(){e._tickCounterScheduled||(e._tickCounterScheduled=!0,Promise.resolve().then(()=>{e._tickCounter++,e._tickCounterScheduled=!1}))}};ct._loggers=new Map,ct._tickCounter=0,ct._tickCounterScheduled=!1,ct._throttlingDisabled=!1});function Z0(e,t,r){let n=e.get(t);if(n!==void 0)return n;let i=r();return e.set(t,i),i}var U_=V(()=>{});function xV(e){return e==null?e:new Date(e)}function CV(e){return e==null?e:!!e}function TV(e){return e==null?e:e.toString()}function B_(e,t=0){return e==null?e:(e=parseFloat(e),isNaN(e)?t:e)}function EV(e){return e==null?e:Math.round(parseFloat(e))}function MV(e){return null}function wE(e,t){return r=>{let n=e(r);return t.step!=null&&(n=Math.round(n/t.step)*t.step),t.min!=null&&(n=Math.max(t.min,n)),t.max!=null&&(n=Math.min(t.max,n)),n}}function yE(e){return e?.constructor&&e.constructor.__accessorMetadata__!==void 0}function Y0(e,t){return t!=null&&e&&!(t instanceof e)}function bE(e){return e&&"isCollection"in e}function gE(e){return e?.Type?typeof e.Type=="function"?e.Type:e.Type.base:null}function PV(e,t){if(!t?.constructor||!bE(t.constructor))return V_(e,t)?t:new e(t);let r=gE(e.prototype.itemType),n=gE(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(V_(e,t),t):new e(t):t}function V_(e,t){return!!yE(t)&&(up().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+J0(e)+"'"),!0)}function G_(e,t){return t==null?t:bE(e)?PV(e,t):Y0(e,t)?V_(e,t)?t:new e(t):t}function J0(e){return e?.prototype?.declaredClass||"unknown"}function AV(e){switch(e){case Number:return t=>B_(t);case ai:return EV;case Boolean:return CV;case String:return TV;case Date:return xV;case Oh:return MV;default:return Z0(IV,e,()=>G_.bind(null,e))}}function si(e,t){let r=AV(e);return arguments.length===1?r:r(t)}function dp(e,t,r){return arguments.length===1?dp.bind(null,e):t&&(Array.isArray(t)?t.map(n=>e(n,r)):[e(t,r)])}function vE(e,t){return arguments.length===1?dp(r=>si(e,r)):dp(r=>si(e,r),t)}function _E(e,t,r){return t!==0&&Array.isArray(r)?r.map(n=>_E(e,t-1,n)):e(r)}function kh(e,t,r){if(arguments.length===2)return o=>kh(e,t,o);if(!r)return r;r=_E(e,t,r);let n=t,i=r;for(;n>0&&Array.isArray(i);)n--,i=i[0];if(i!==void 0)for(let o=0;o<n;o++)r=[r];return r}function SE(e,t,r){return arguments.length===2?kh(n=>si(e,n),t):kh(n=>si(e,n),t,r)}function X0(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!(r==="string"||r==="number"||r==="function"&&e.length>1)})}function K0(e,t){if(arguments.length===2)return K0(e).call(null,t);let r=new Set,n=e.filter(c=>typeof c!="function"),i=e.filter(c=>typeof c=="function");for(let c of e)typeof c!="string"&&typeof c!="number"||r.add(c);let o=null,s=null;return(c,a)=>{if(c==null)return c;let d=typeof c,h=d==="string"||d==="number";return h&&(r.has(c)||i.some(g=>d==="string"&&g===String||d==="number"&&g===Number))||d==="object"&&i.some(g=>!Y0(c,g))?c:(h&&n.length?(o||(o=n.map(g=>typeof g=="string"?`'${g}'`:`${g}`).join(", ")),up().error("Accessor#set",`'${c}' is not a valid value for this property, only the following values are valid: ${o}`)):typeof c=="object"&&i.length?(s||(s=i.map(g=>J0(g)).join(", ")),up().error("Accessor#set",`'${c}' is not a valid value for this property, value must be one of ${s}`)):up().error("Accessor#set",`'${c}' is not a valid value for this property`),a&&(a.valid=!1),null)}}function Io(e,t){if(arguments.length===2)return Io(e).call(null,t);let r={},n=[],i=[];for(let a in e.typeMap){let d=e.typeMap[a];r[a]=si(d),n.push(J0(d)),i.push(a)}let o=()=>`'${n.join("', '")}'`,s=()=>`'${i.join("', '")}'`,c=typeof e.key=="string"?a=>a[e.key]:e.key;return a=>{if(e.base&&!Y0(e.base,a)||a==null)return a;let d=c(a)||e.defaultKeyValue,h=r[d];if(!h)return up().error("Accessor#set",`Invalid property value, value needs to be one of ${o()}, or a plain object that can autocast (having .type = ${s()})`),null;if(!Y0(e.typeMap[d],a))return a;if(typeof e.key=="string"&&!yE(a)){let g={};for(let v in a)v!==e.key&&(g[v]=a[v]);return h(g)}return h(a)}}function xE(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function j_(e){switch(e.type){case"native":return si(e.value);case"array":return dp(j_(e.value));case"one-of":return LV(e);default:return null}}function LV(e){let t=null;return(r,n)=>W_(r,e)?r:(t==null&&(t=z_(e)),up().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}function z_(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case ai:return"integer";case Date:return"date";case Oh:return"null";default:return J0(e.value)}case"array":return`array of ${z_(e.value)}`;case"one-of":{let t=e.values.map(r=>z_(r));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function W_(e,t){if(e==null)return!0;switch(t.type){case"native":switch(t.value){case Number:case ai:return typeof e=="number";case Boolean:return typeof e=="boolean";case String:return typeof e=="string";case Oh:return e===null}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(r=>!W_(r,t.value));case"one-of":return t.values.some(r=>W_(e,r))}}var up,IV,ai,Oh,Xi=V(()=>{et();tt();U_();up=()=>ct.getLogger("esri.core.accessorSupport.ensureTypes");IV=new WeakMap;ai=class{},Oh=class{}});function xi(e){return e.__accessor__??null}function TE(e,t){return e?.metadata?.[t]!=null}function fp(e,t,r){return r?Q0(e,t,{policy:r,path:""}):Q0(e,t,null)}function Q0(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=i,s=null,c="merge";if(r&&(s=r.path?`${r.path}.${i}`:i,c=r.policy(s)),c==="replace"||c==="replace-arrays"&&Array.isArray(n[o]))return n[o]=t[o],n;if(n[o]===void 0)return n[o]=qe(t[o]),n;let a=n[o],d=t[o];if(a===d)return n;if(Array.isArray(d)||Array.isArray(n))a=a?Array.isArray(a)?n[o]=a.slice():n[o]=[a]:n[o]=[],d&&(Array.isArray(d)||(d=[d]),d.forEach(h=>{a.includes(h)||a.push(h)}));else if(d&&typeof d=="object")if(r){let h=r.path;r.path=s,n[o]=Q0(a,d,r),r.path=h}else n[o]=Q0(a,d,null);else n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[o]=d);return n},e||{}):e}function ew(e){return Array.isArray(e)?e:e.split(".")}function CE(e){return e.includes(",")?e.split(",").map(t=>t.trim()):[e.trim()]}function kV(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...CE(r));return t}return CE(e)}function H_(e,t,r,n){let i=kV(t);if(i.length!==1){let o=i.map(s=>n(e,s,r));return gu(o)}return n(e,i[0],r)}var Xs=V(()=>{oi();or()});function EE(e,t){let r=e[e.length-1]==="?"?e.slice(0,-1):e;if(t.getItemAt!=null||Array.isArray(t)){let i=parseInt(r,10);if(!isNaN(i))return Array.isArray(t)?t[i]:t.at(i)}let n=xi(t);return TE(n,r)?n.get(r):t[r]}function ME(e,t,r){if(e==null)return e;let n=EE(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:ME(n,t,r+1)}function wu(e,t,r=0){return typeof t!="string"||t.includes(".")?ME(e,ew(t),r):EE(t,e)}function ps(e,t){return wu(e,t)}function q_(e,t){return wu(t,e)!==void 0}var yu=V(()=>{Xs()});function bc(e){let t=e.constructor.__accessorMetadata__,r=Object.prototype.hasOwnProperty.call(e.constructor,"__accessorMetadata__");if(t){if(!r){t=Object.create(t);for(let n in t)t[n]=qe(t[n]);Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0})}}else t={},Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0});return e.constructor.__accessorMetadata__}function pp(e,t){let r=bc(e),n=r[t];return n||(n=r[t]={}),n}function PE(e,t){return fp(e,t,NV)}function NV(e){return OV.test(e)?"replace":"merge"}var OV,mp=V(()=>{or();Xs();OV=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function RV(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(Hi(n,t)??"").toString())}var hp,Z_=V(()=>{ds();hp=class{constructor(t,r,n=void 0){this.name=t,this.details=n,this.message=(r&&RV(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var We,An=V(()=>{or();tt();Z_();We=class e extends hp{constructor(t,r,n){super(t,r,n)}toJSON(){if(this.details!=null)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(t,r)=>{if(r&&typeof r=="object"&&typeof r.toJSON=="function")return r;try{return qe(r)}catch{return"[object]"}}))}}catch(t){throw ct.getLogger("esri.core.Error").error(t),t}return{name:this.name,message:this.message,details:this.details}}static fromJSON(t){return new e(t.name,t.message,t.details)}};We.prototype.type="error"});function gp(e,t,r){if(e&&t)if(typeof t=="object")for(let n of Object.getOwnPropertyNames(t))gp(e,n,t[n]);else{if(t.includes(".")){let i=t.split("."),o=i.splice(-1,1)[0];return void gp(ps(e,i),o,r)}let n=e.__accessor__;n!=null&&DV(t,n),e[t]=r}}function DV(e,t){if(he("esri-unknown-property-errors")&&!$V(e,t))throw new We("set:unknown-property",FV(e,t))}function $V(e,t){return t.metadata[e]!=null}function FV(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}var Y_=V(()=>{An();et();tt();yu()});function z(e={}){return(t,r)=>{if(t===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${t.name}.${r}. Accessor does not support static properties.`);let n=Object.getOwnPropertyDescriptor(t,r),i=pp(t,r);n&&(n.get||n.set?(i.get=n.get||i.get,i.set=n.set||i.set):"value"in n&&("value"in e&&ct.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${t.constructor.name}" already defined in the metadata`,e),i.value=e.value=n.value)),e.readOnly!=null&&(i.readOnly=e.readOnly);let o=e.aliasOf;if(o){let a=typeof o=="string"?o:o.source,d=typeof o=="string"?null:o.overridable===!0,h;i.dependsOn=[a],i.get=function(){let g=ps(this,a);if(typeof g=="function"){h||(h=a.split(".").slice(0,-1).join("."));let v=ps(this,h);v&&(g=g.bind(v))}return g},i.readOnly||(i.set=d?function(g){this._override(r,g)}:function(g){gp(this,a,g)})}let s=e.type,c=e.types;if(!i.cast){let a;s?a=UV(s):c&&(a=Array.isArray(c)?dp(Io(c[0])):Io(c)),e.cast=VV(e.cast,a)}PE(i,e),e.range&&(i.cast=wE(i.cast,e.range))}}function tw(e,t,r){let n=pp(e,r);n.json||(n.json={});let i=n.json;return t!==void 0&&(i.origins||(i.origins={}),i.origins[t]||(i.origins[t]={}),i=i.origins[t]),i}function UV(e){let t=0,r=e;if(xE(e))return j_(e);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],t++;let n=r;if(X0(n))return t===0?K0(n):kh(K0(n),t);if(t===1)return vE(n);if(t>1)return SE(n,t);let i=e;return i.from?i.from:si(i)}function VV(e,t){if(e||t)return e?t?(r,n)=>t(e(r,n),n):e:t}var mt=V(()=>{tt();Xi();yu();mp();Y_()});var rw,J_=V(()=>{rw=Symbol("Accessor-beforeDestroy")});var an,Nh=V(()=>{(function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"})(an||(an={}))});var ht,nw=V(()=>{(function(e){e[e.Dirty=1]="Dirty",e[e.Overridden=2]="Overridden",e[e.Computing=4]="Computing",e[e.NonNullable=8]="NonNullable",e[e.HasDefaultValue=16]="HasDefaultValue",e[e.DepTrackingInitialized=32]="DepTrackingInitialized",e[e.AutoTracked=64]="AutoTracked",e[e.ExplicitlyTracking=128]="ExplicitlyTracking"})(ht||(ht={}))});var ms,Rh=V(()=>{ms=class{constructor(t){this.accessed=void 0,this._handles=void 0,this._observer=t}destroy(){this.accessed?.clear(),this.clear()}onAccessed(t){this._observer!=null&&t!==this._observer&&(this.accessed==null&&(this.accessed=new Set),this.accessed.add(t))}onTrackingEnd(){this._observer!=null&&(this.clear(),this.accessed!=null&&(this._handles==null&&(this._handles=[]),this.accessed.forEach(t=>{this._handles.push(t.observe(this._observer))}),this.accessed.clear()))}clear(){if(this._handles!=null){for(let t=0;t<this._handles.length;++t)this._handles[t].remove();this._handles.length=0}}}});function Je(e){$h.onAccessed(e)}function Ao(e,t,r){if(iw)return X_(e,t,r);let n=null;return LE(e),n=t.call(r),kE(),n}function AE(e,t){return Ao(sw,e,t)}function X_(e,t,r){let n=iw;iw=!0,LE(e);let i=null;try{i=t.call(r)}catch(o){ow&&ct.getLogger("esri.core.accessorSupport.tracking").error(o)}return kE(),iw=n,i}function LE(e){$h=e,Dh.push(e)}function kE(){let e=Dh.length;if(e>1){let t=Dh.pop();$h=Dh[e-2],t.onTrackingEnd()}else if(e===1){let t=Dh.pop();$h=sw,t.onTrackingEnd()}else $h=sw}function K_(e,t){if(t.flags&ht.DepTrackingInitialized)return;t.flags|=ht.DepTrackingInitialized;let r=ow;ow=!1,t.flags&ht.AutoTracked?X_(t.trackingTarget,t.metadata.get,e):Q_(e,t),ow=r}function Q_(e,t){t.flags&ht.ExplicitlyTracking||(t.flags|=ht.ExplicitlyTracking,X_(t.trackingTarget,()=>{let r=t.metadata.dependsOn||zV;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=ew(n);for(let o=0,s=e;o<i.length&&s!=null&&typeof s=="object";++o)s=IE(s,i[o],o!==i.length-1)}else IE(e,n,!1)}),t.flags&=~ht.ExplicitlyTracking)}function IE(e,t,r){let n=t[t.length-1]==="?"?t.slice(0,-1):t;if(e.getItemAt!=null||Array.isArray(e)){let o=parseInt(n,10);if(!isNaN(o))return Array.isArray(e)?e[o]:e.at(o)}let i=xi(e);if(i){let o=i.propertiesByName.get(n);o&&(Je(o),K_(e,o))}return r?e[n]:void 0}var sw,Dh,$h,iw,ow,zV,bu=V(()=>{et();tt();Xs();nw();Rh();sw=new ms,Dh=[],$h=sw;iw=!1,ow=!1;zV=[]});function OE(e){if(e.json&&e.json.origins){let t=e.json.origins,r={"web-document":["web-scene","web-map"]};for(let n in r)if(t[n]){let i=t[n];r[n].forEach(o=>{t[o]=i}),delete t[n]}}}var NE=V(()=>{});var Fh,RE=V(()=>{Z_();Fh=class extends hp{constructor(t,r,n){super(t,r,n)}};Fh.prototype.type="warning"});function aw(e){return!!e&&e.prototype?.declaredClass&&e.prototype.declaredClass.indexOf("esri.core.Collection")===0}var eS=V(()=>{});function rS(e,t,r){e&&(!r&&!t.read||t.read?.reader||t.read?.enabled===!1||GV(e)&&Hs("read.reader",nS(e),t))}function nS(e){let t=e.ndimArray??0;if(t>1)return BV(e);if(t===1)return DE(e);if("type"in e&&FE(e.type)){let r=e.type.prototype?.itemType?.Type,n=DE(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let c=n(i,o,s);return c&&new e.type(c)}}return iS(e)}function iS(e){return"type"in e?WV(e.type):jV(e.types)}function WV(e){return e.prototype.read?(t,r,n)=>{if(t==null)return t;let i=typeof t;if(i!=="object")return void tS().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${i}'`);let o=new e;return o.read(t,n),o}:e.fromJSON}function $E(e,t,r,n){return n!==0&&Array.isArray(t)?t.map(i=>$E(e,i,r,n-1)):e(t,void 0,r)}function BV(e){let t=iS(e),r=$E.bind(null,t),n=e.ndimArray??0;return(i,o,s)=>{if(i==null)return i;i=r(i,s,n);let c=n,a=i;for(;c>0&&Array.isArray(a);)c--,a=a[0];if(a!==void 0)for(let d=0;d<c;d++)i=[i];return i}}function DE(e){let t=iS(e);return(r,n,i)=>{if(r==null)return r;if(Array.isArray(r)){let s=[];for(let c of r){let a=t(c,void 0,i);a!==void 0&&s.push(a)}return s}let o=t(r,void 0,i);return o!==void 0?[o]:void 0}}function FE(e){if(!aw(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&(typeof t.Type=="function"?oS(t.Type):UE(t.Type))}function GV(e){return"types"in e?UE(e.types):oS(e.type)}function oS(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||FE(e))}function UE(e){for(let t in e.typeMap)if(!oS(e.typeMap[t]))return!1;return!0}function jV(e){let t=null,r=e.errorContext??"type",n=e.validate;return(i,o,s)=>{if(i==null)return i;let c=typeof i;if(c!=="object")return void tS().error(`Expected JSON value of type 'object' to deserialize, but got '${c}'`);t||(t=HV(e));let a=e.key;if(typeof a!="string")return;let d=i[a],h=d?t[d]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!h){let v=`Type '${d||"unknown"}' is not supported`;return s?.messages&&i&&s.messages.push(new Fh(`${r}:unsupported`,v,{definition:i,context:s})),void tS().error(v)}let g=new h;return g.read(i,s),n?n(g):g}}function HV(e){let t={};for(let r in e.typeMap){let n=e.typeMap[r],i=bc(n.prototype);if(typeof e.key=="function")continue;let o=i[e.key];if(!o)continue;if(o.json?.type&&Array.isArray(o.json.type)&&o.json.type.length===1&&typeof o.json.type[0]=="string"){t[o.json.type[0]]=n;continue}let s=o.json?.write;if(!s?.writer){t[r]=n;continue}let c=s.target,a=typeof c=="string"?c:e.key,d={};s.writer(r,d,a),d[a]&&(t[d[a]]=n)}return t}var tS,sS=V(()=>{tt();ds();RE();mp();eS();tS=()=>ct.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function BE(e){if(e.json||(e.json={}),zE(e.json),WE(e.json),VE(e.json),e.json.origins)for(let t in e.json.origins)zE(e.json.origins[t]),WE(e.json.origins[t]),VE(e.json.origins[t]);return!0}function VE(e){e.name&&(e.read&&typeof e.read=="object"?e.read.source===void 0&&(e.read.source=e.name):e.read={source:e.name},e.write&&typeof e.write=="object"?e.write.target===void 0&&(e.write.target=e.name):e.write={target:e.name})}function zE(e){typeof e.read=="boolean"?e.read={enabled:e.read}:typeof e.read=="function"?e.read={enabled:!0,reader:e.read}:e.read&&typeof e.read=="object"&&e.read.enabled===void 0&&(e.read.enabled=!0)}function WE(e){typeof e.write=="boolean"?e.write={enabled:e.write}:typeof e.write=="function"?e.write={enabled:!0,writer:e.write}:e.write&&typeof e.write=="object"&&e.write.enabled===void 0&&(e.write.enabled=!0)}var GE=V(()=>{});function aS(e,t){if(!t.write||t.write.writer||t.write.enabled===!1&&!t.write.overridePolicy)return;let r=e?.ndimArray??0;e&&(r===1||"type"in e&&aw(e.type))?t.write.writer=JV:r>1?t.write.writer=XV(r):t.types?Array.isArray(t.types)?t.write.writer=ZV(t.types[0]):t.write.writer=qV(t.types):t.write.writer=Uh}function qV(e){return(t,r,n,i)=>t?jE(t,e,i)?Uh(t,r,n,i):void 0:Uh(t,r,n,i)}function jE(e,t,r){for(let n in t.typeMap)if(e instanceof t.typeMap[n])return!0;if(r?.messages){let n=t.errorContext??"type",i=`Values of type '${(typeof t.key!="function"?e[t.key]:e.declaredClass)??"Unknown"}' cannot be written`;r&&r.messages&&e&&r.messages.push(new We(`${n}:unsupported`,i,{definition:e,context:r})),ct.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function ZV(e){return(t,r,n,i)=>!t||!Array.isArray(t)?Uh(t,r,n,i):Uh(t.filter(o=>jE(o,e,i)),r,n,i)}function Uh(e,t,r,n){Hs(r,cw(e,n),t)}function cw(e,t){return e&&typeof e.write=="function"?e.write({},t):e&&typeof e.toJSON=="function"?e.toJSON():typeof e=="number"?YV(e):e}function YV(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function JV(e,t,r,n){let i;e===null?i=null:e&&typeof e.map=="function"?(i=e.map(o=>cw(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[cw(e,n)],Hs(r,i,t)}function HE(e,t,r){return r!==0&&Array.isArray(e)?e.map(n=>HE(n,t,r-1)):cw(e,t)}function XV(e){return(t,r,n,i)=>{let o;if(t===null)o=null;else{o=HE(t,i,e);let s=e,c=o;for(;s>0&&Array.isArray(c);)s--,c=c[0];if(c!==void 0)for(let a=0;a<s;a++)o=[o]}Hs(n,o,r)}}var qE=V(()=>{An();tt();ds();eS()});function ZE(e,t){return lS(e,"any",t?.origin)}function lw(e,t){return lS(e,"read",t?.origin)}function YE(e,t){return lS(e,"write",t?.origin)}function lS(e,t,r){let n=e?.json;if(n?.origins&&r){let i;i=r==="link-chart"?n.origins[r]&&(t==="any"||t in n.origins[r])?n.origins[r]:n.origins["web-map"]:n.origins[r],i&&(t==="any"||t in i)&&(n=i)}return n}function KV(e){let t=QV(e);if(e.json.origins)for(let r in e.json.origins){let n=e.json.origins[r],i=n.types?ez(n):t;rS(i,n,!1),n.types&&!n.write&&e.json.write?.enabled&&(n.write={...e.json.write}),aS(i,n)}rS(t,e.json,!0),aS(t,e.json)}function QV(e){return e.json.types?cS(e.json):e.type?JE(e):cS(e)}function ez(e){return e.type?JE(e):cS(e)}function JE(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!X0(r);)r=r[0],t++;return{type:r,ndimArray:t}}function cS(e){if(!e.types)return;let t=0,r=e.types;for(;Array.isArray(r);)r=r[0],t++;return{types:r,ndimArray:t}}function XE(e){BE(e)&&(OE(e),KV(e))}var uw=V(()=>{Xi();NE();sS();GE();qE()});function Ie(e){return t=>{e??(e="esri.core.Accessor"),t.prototype.declaredClass=e,rz(t);let r=[],n=[],i=t.prototype;for(;i;)i.hasOwnProperty("initialize")&&!uS.has(i.initialize)&&(uS.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!dS.has(i.destroy)&&(dS.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);uS.clear(),dS.clear();let o=class extends t{constructor(...c){if(super(...c),this.constructor===o&&typeof this.postscript=="function"){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let a=r.length-1;a>=0;a--)r[a].call(this)}}),n.length){let a=!1,d=this[rw];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!a){a=!0,d.call(this);for(let h=0;h<n.length;h++)n[h].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};o.__accessorMetadata__=bc(t.prototype),o.prototype.declaredClass=e;let s=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(o,"name",{value:s,configurable:!0}),o}}function tz(e,t){return t.get==null?function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n===void 0)return;r.mutable&&Je(n);let i=r.store;return i.has(e)?i.get(e):n.metadata.value}:function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n!==void 0)return n.getComputed(r)}}function rz(e){let t=e.prototype,r=bc(t),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];XE(o),n[i]={enumerable:!0,configurable:!0,get:tz(i,o),set(s){let c=this.__accessor__;if(c!==void 0){if(c.mutable)return c.initialized&&o.readOnly?KE("read-only",i):c.lifecycle===an.CONSTRUCTED&&o.constructOnly?KE("construct-only",i):void c.set(i,s)}else Object.defineProperty(this,i,{enumerable:!0,configurable:!0,writable:!0,value:s})}}}Object.defineProperties(e.prototype,n)}var uS,dS,KE,ut=V(()=>{et();tt();J_();Nh();mp();bu();uw();uS=new Set,dS=new Set;KE=(e,t)=>{ct.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}});function fS(e){return e!=null&&typeof e[Symbol.iterator]=="function"}var QE=V(()=>{});function dw(e){return e||"_default_"}function e8(e){for(let t of e)t instanceof wp?t.removeAll():t.remove()}function t8(e){return e!=null&&(!!e.remove||e instanceof wp)}var wp,r8=V(()=>{QE();wp=class{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let t=0;return this._groups.forEach(r=>{t+=r.length}),t}add(t,r){if(fS(t)){let n=this._getOrCreateGroup(r);for(let i of t)t8(i)&&n.push(i)}else t8(t)&&this._getOrCreateGroup(r).push(t);return this}forEach(t,r){if(typeof t=="function")this._groups.forEach(n=>n.forEach(t));else{let n=this._getGroup(t);n&&r&&n.forEach(r)}}has(t){return this._groups.has(dw(t))}remove(t){if(typeof t!="string"&&fS(t)){for(let r of t)this.remove(r);return this}return this.has(t)?(e8(this._getGroup(t)),this._groups.delete(dw(t)),this):this}removeAll(){return this._groups.forEach(e8),this._groups.clear(),this}removeReference(t){return this._groups.delete(t),this}_getOrCreateGroup(t){if(this.has(t))return this._getGroup(t);let r=[];return this._groups.set(dw(t),r),r}_getGroup(t){return this._groups.get(dw(t))}}});function n8(e,t){if(e==null)throw new Error(t??"value is None")}function Vh(e){return e?.destroy(),null}function zh(e){return e?.remove(),null}function i8(e){return e?.abort(),null}var vc=V(()=>{});function nz(e){return e?.release&&typeof e.release=="function"}function iz(e){return e?.acquire&&typeof e.acquire=="function"}var Lo,Wh=V(()=>{Lo=class e{constructor(t,r,n,i=1,o=0){this._ctor=t,this._acquireFunction=r,this._releaseFunction=n,this.allocationSize=i,this._pool=new Array(o),this._initialSize=o;for(let s=0;s<o;s++)this._pool[s]=new this._ctor;this.allocationSize=Math.max(i,1)}destroy(){this.prune(0)}acquire(...t){let r;if(e.test.disabled)r=new this._ctor;else{if(this._pool.length===0){let n=this.allocationSize;for(let i=0;i<n;i++)this._pool[i]=new this._ctor}r=this._pool.pop()}return this._acquireFunction?this._acquireFunction(r,...t):iz(r)&&r.acquire(...t),r}release(t){t&&!e.test.disabled&&(this._releaseFunction?this._releaseFunction(t):nz(t)&&t.release(),this._pool.push(t))}prune(t=this._initialSize){if(!(t>=this._pool.length)){for(let r=t;r<this._pool.length;++r){let n=this._pool[r];this._dispose(n)}this._pool.length=t}}_dispose(t){t.dispose&&typeof t.dispose=="function"&&t.dispose()}};Lo.test={disabled:!1}});var fw,o8=V(()=>{nc();fw=class{constructor(t,r){this._observers=t,this._observer=r}remove(){PT(this._observers,this._observer)}}});var yp,oz,pS=V(()=>{oi();o8();yp=class{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return oz;this._observers==null&&(this._observers=[]);let r=this._observers,n=!1,i=!1,o=r.length;for(let s=0;s<o;++s){let c=r[s];if(c.destroyed)i=!0;else if(c===t){n=!0;break}}return n||(r.push(t),i&&this._removeDestroyedObservers()),new fw(r,t)}_removeDestroyedObservers(){let t=this._observers;if(!t||t.length===0)return;let r=t.length,n=0;for(let i=0;i<r;++i){for(;i+n<r&&t[i+n].destroyed;)++n;if(n>0){if(!(i+n<r))break;t[i]=t[i+n]}}t.length=r-n}destroy(){if(this.destroyed)return;this.destroyed=!0;let t=this._observers;if(t!=null){for(let r of t)r.onCommitted();this._observers=null}}},oz=Ct()});function pw(e){switch(e){case"defaults":return st.DEFAULTS;case"service":return st.SERVICE;case"portal-item":return st.PORTAL_ITEM;case"web-scene":return st.WEB_SCENE;case"web-map":return st.WEB_MAP;case"link-chart":return st.LINK_CHART;case"user":return st.USER;default:return null}}function mw(e){switch(e){case st.DEFAULTS:return"defaults";case st.SERVICE:return"service";case st.PORTAL_ITEM:return"portal-item";case st.WEB_SCENE:return"web-scene";case st.WEB_MAP:return"web-map";case st.LINK_CHART:return"link-chart";case st.USER:return"user"}}function s8(e){return mw(e)}var st,Fce,_c=V(()=>{(function(e){e[e.DEFAULTS=0]="DEFAULTS",e[e.COMPUTED=1]="COMPUTED",e[e.SERVICE=2]="SERVICE",e[e.PORTAL_ITEM=3]="PORTAL_ITEM",e[e.WEB_SCENE=4]="WEB_SCENE",e[e.WEB_MAP=5]="WEB_MAP",e[e.LINK_CHART=6]="LINK_CHART",e[e.USER=7]="USER"})(st||(st={}));Fce=st.USER+1});var Bh,a8=V(()=>{pS();_c();bu();nw();Rh();Bh=class extends yp{constructor(t,r){super(),this.propertyName=t,this.metadata=r,this.trackingTarget=new ms(this),this.flags=0,this.flags=ht.Dirty|(r.nonNullable?ht.NonNullable:0)|(r.hasOwnProperty("value")?ht.HasDefaultValue:0)|(r.get===void 0?ht.DepTrackingInitialized:0)|(r.dependsOn===void 0?ht.AutoTracked:0)}destroy(){this.flags&ht.Dirty&&this.onCommitted(),super.destroy(),this.trackingTarget.destroy()}getComputed(t){t.mutable&&Je(this);let r=t.store,n=this.propertyName,i=this.flags,o=r.get(n);if(i&ht.Computing||~i&ht.Dirty&&r.has(n))return o;this.flags|=ht.Computing;let s=t.host,c;i&ht.AutoTracked?c=Ao(this.trackingTarget,this.metadata.get,s):(Q_(s,this),c=this.metadata.get.call(s)),this.flags|=ht.DepTrackingInitialized,r.set(n,c,st.COMPUTED);let a=r.get(n);return a===o?this.flags&=~ht.Dirty:AE(this.commit,this),this.flags&=~ht.Computing,a}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~ht.Dirty,this.onCommitted()}onInvalidated(){~this.flags&ht.Overridden&&(this.flags|=ht.Dirty);let t=this._observers;if(t&&t.length>0)for(let r of t)r.onInvalidated()}onCommitted(){let t=this._observers;if(t&&t.length>0){let r=t.slice();for(let n of r)n.onCommitted()}}}});var hw,c8=V(()=>{or();_c();hw=class e{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){let r=new e;return this._values.forEach((n,i)=>{t&&t.has(i)||r.set(i,qe(n))}),r}get(t){return this._values.get(t)}originOf(){return st.USER}keys(){return[...this._values.keys()]}set(t,r){this._values.set(t,r)}delete(t){this._values.delete(t)}has(t){return this._values.has(t)}forEach(t){this._values.forEach(t)}}});function gw(e,t,r){return e!==void 0}function l8(e,t,r,n){return e!==void 0&&(!(r==null&&e.flags&ht.NonNullable)||(n.lifecycle,an.INITIALIZING,!1))}var ww,hS,mS,u8=V(()=>{et();or();tt();Wh();Nh();a8();_c();c8();bu();nw();Rh();ww=class{constructor(t){this.host=t,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=an.INITIALIZING,this.store=new hw,this.mutable=!0,this._origin=st.USER;let r=this.host.constructor.__accessorMetadata__;for(let n in r){let i=new Bh(n,r[n]);this.propertiesByName.set(n,i)}this.metadata=r}initialize(){this.lifecycle=an.CONSTRUCTING}constructed(){this.lifecycle=an.CONSTRUCTED}destroy(){this.lifecycle=an.DESTROYED,this.propertiesByName.forEach(t=>t.destroy())}get initialized(){return this.lifecycle!==an.INITIALIZING}get(t){let r=this.propertiesByName.get(t);if(r.metadata.get)return r.getComputed(this);this.mutable&&Je(r);let n=this.store;return n.has(t)?n.get(t):r.metadata.value}originOf(t){let r=this.store.originOf(t);if(r===void 0){let n=this.propertiesByName.get(t);if(n!==void 0&&n.flags&ht.HasDefaultValue)return"defaults"}return mw(r)}has(t){return this.propertiesByName.has(t)&&this.store.has(t)}keys(){return[...this.propertiesByName.keys()]}internalGet(t){let r=this.propertiesByName.get(t);if(gw(r))return this.store.has(t)?this.store.get(t):r.metadata.value}internalSet(t,r){let n=this.propertiesByName.get(t);gw(n)&&this._internalSet(n,r)}getDependsInfo(t,r,n){let i=this.propertiesByName.get(r);if(!gw(i))return"";let o=new ms,s=Ao(o,()=>i.metadata.get?.call(t)),c=`${n}${t.declaredClass.split(".").pop()}.${r}: ${s}
|
|
1
|
+
"use strict";(()=>{var e$=Object.defineProperty;var l9=e=>t=>{var r=e[t];if(r)return r();throw new Error("Module not found in bundle: "+t)};var V=(e,t)=>()=>(e&&(t=e(e=0)),t);var u9=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),os=(e,t)=>{for(var r in t)e$(e,r,{get:t[r],enumerable:!0})};function he(e){return typeof tc[e]=="function"?tc[e]=tc[e](globalThis):tc[e]}var tc,et=V(()=>{tc=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},he.add=(e,t,r,n)=>{(n||tc[e]===void 0)&&(tc[e]=t),r&&he(e)},he.cache=tc,he.add("big-integer-warning-enabled",!0),he.add("esri-deprecation-warnings",!0),he.add("esri-tests-disable-screenshots",!1),he.add("esri-tests-use-full-window",!1),he.add("esri-tests-post-to-influx",!0),he.add("esri-cim-animations-enable-status","enabled"),he.add("esri-cim-animations-spotlight",!1),he.add("esri-cim-animations-freeze-time",!1),he.add("enable-feature:multiple-highlights",!1),(()=>{he.add("host-webworker",globalThis.WorkerGlobalScope!==void 0&&self instanceof globalThis.WorkerGlobalScope);let e=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(he.add("host-browser",e),he.add("host-node",typeof globalThis.process=="object"&&globalThis.process.versions?.node&&globalThis.process.versions.v8),he.add("dom",e),he("host-browser")){let t=navigator,r=t.userAgent,n=t.appVersion,i=parseFloat(n);if(he.add("wp",parseFloat(r.split("Windows Phone")[1])||void 0),he.add("msapp",parseFloat(r.split("MSAppHost/")[1])||void 0),he.add("khtml",n.includes("Konqueror")?i:void 0),he.add("edge",parseFloat(r.split("Edge/")[1])||void 0),he.add("opr",parseFloat(r.split("OPR/")[1])||void 0),he.add("webkit",!he("wp")&&!he("edge")&&parseFloat(r.split("WebKit/")[1])||void 0),he.add("chrome",!he("edge")&&!he("opr")&&parseFloat(r.split("Chrome/")[1])||void 0),he.add("android",!he("wp")&&parseFloat(r.split("Android ")[1])||void 0),he.add("safari",!n.includes("Safari")||he("wp")||he("chrome")||he("android")||he("edge")||he("opr")?void 0:parseFloat(n.split("Version/")[1])),he.add("mac",n.includes("Macintosh")),!he("wp")&&/(iPhone|iPod|iPad)/.test(r)){let o=RegExp.$1.replace(/P/,"p"),s=/OS ([\d_]+)/.test(r)?RegExp.$1:"1",c=parseFloat(s.replace(/_/,".").replaceAll("_",""));he.add(o,c),he.add("ios",c)}he("webkit")||(!r.includes("Gecko")||he("wp")||he("khtml")||he("edge")||he.add("mozilla",i),he("mozilla")&&he.add("ff",parseFloat(r.split("Firefox/")[1]||r.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){let e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&he.add("esri-mobile",t),r&&he.add("esri-iPhone",r),he.add("esri-geolocation",!!navigator.geolocation)}he.add("esri-wasm","WebAssembly"in globalThis),he.add("esri-performance-mode-frames-between-render",20),he.add("esri-force-performance-mode",!1),he.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in globalThis,t=globalThis.crossOriginIsolated===!1;return e&&!t}),he.add("wasm-simd",()=>{let e=[0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11];return WebAssembly.validate(new Uint8Array(e))}),he.add("esri-atomics","Atomics"in globalThis),he.add("esri-workers","Worker"in globalThis),he.add("web-feat:cache","caches"in globalThis),he.add("esri-workers-arraybuffer-transfer",!he("safari")||Number(he("safari"))>=12),he.add("workers-pool-size",8),he.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),he.add("featurelayer-simplify-payload-size-factors",[1,1,4]),he.add("featurelayer-fast-triangulation-enabled",!0),he.add("featurelayer-animation-enabled",!0),he.add("featurelayer-snapshot-enabled",!0),he.add("featurelayer-snapshot-point-min-threshold",8e4),he.add("featurelayer-snapshot-point-max-threshold",4e5),he.add("featurelayer-snapshot-point-coverage",.1),he.add("featurelayer-query-max-depth",4),he.add("featurelayer-query-pausing-enabled",!1),he.add("featurelayer-advanced-symbols",!1),he.add("featurelayer-pbf",!0),he.add("featurelayer-pbf-statistics",!1),he.add("feature-layers-workers",!0),he.add("feature-polyline-generalization-factor",1),he.add("mapview-transitions-duration",200),he.add("mapview-essential-goto-duration",200),he.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),he.add("mapserver-pbf-version-support",10.81),he.add("mapservice-popup-identify-max-tolerance",20),he("host-webworker")||he("host-browser")&&(he.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),he.add("esri-image-decode",()=>{if("decode"in new Image){let e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then(()=>{he.add("esri-image-decode",!0,!0,!0)}).catch(()=>{he.add("esri-image-decode",!1,!0,!0)})}return!1}),he.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()});var cu,Vr=V(()=>{cu=class e{constructor(t=1){this._seed=t}set seed(t){this._seed=t??Math.random()*e._m}getInt(){return this._seed=(e._a*this._seed+e._c)%e._m,this._seed}getFloat(){return this.getInt()/(e._m-1)}getIntRange(t,r){return Math.round(this.getFloatRange(t,r))}getFloatRange(t,r){let n=r-t;return t+this.getInt()/e._m*n}};cu._m=2147483647,cu._a=48271,cu._c=0});function rc(e,t,r){if(e==null&&t==null)return!0;if(e==null||t==null||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function G2(e,t,r,n){n=n||ET;let i=Math.max(0,n.last-10);for(let s=i;s<r;++s)if(e[s]===t)return n.last=s,s;let o=Math.min(i,r);for(let s=0;s<o;++s)if(e[s]===t)return n.last=s,s;return-1}function MT(e,t,r=e.length,n=t.length,i,o){if(n===0||r===0)return r;_o.clear();for(let c=0;c<n;++c)_o.add(t[c]);i=i||ET;let s=Math.max(0,i.last-10);for(let c=s;c<r;++c)if(_o.has(e[c])&&(o?.push(e[c]),_o.delete(e[c]),e[c]=e[r-1],--r,--c,_o.size===0||r===0))return _o.clear(),r;for(let c=0;c<s;++c)if(_o.has(e[c])&&(o?.push(e[c]),_o.delete(e[c]),e[c]=e[r-1],--r,--c,_o.size===0||r===0))return _o.clear(),r;return _o.clear(),r}function PT(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function IT(e,t){return e!=null}var UF,Sie,Gm,ET,_o,xie,nc=V(()=>{Vr();UF=1.5,Sie=1/UF;Gm=class{constructor(){this.last=0}},ET=new Gm;_o=new Set;xie=new cu});function AT(e){return e?.constructor?.name==="Int8Array"}function LT(e){return e?.constructor?.name==="Uint8Array"}function kT(e){return e?.constructor?.name==="Uint8ClampedArray"}function OT(e){return e?.constructor?.name==="Int16Array"}function NT(e){return e?.constructor?.name==="Uint16Array"}function RT(e){return e?.constructor?.name==="Int32Array"}function DT(e){return e?.constructor?.name==="Uint32Array"}function $T(e){return e?.constructor?.name==="Float32Array"}function FT(e){return e?.constructor?.name==="Float64Array"}var UT=V(()=>{et()});function v0(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&v0(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&e[r]===void 0&&delete e[r];return e}function qe(e){if(!e||typeof e!="object"||typeof e=="function")return e;let t=GT(e);if(t!=null)return t;if(zT(e))return e.clone();if(WT(e))return e.map(qe);if(BT(e))throw new Error("Trying to clone an unclonable Accessor instance");let r={};for(let n of Object.getOwnPropertyNames(e))r[n]=qe(e[n]);return r}function b0(e){if(!e||typeof e!="object"||typeof e=="function"||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let t=GT(e);if(t!=null)return t;if(WT(e)){let n=!0,i=e.map(o=>{let s=b0(o);return o!=null&&s==null&&(n=!1),s});return n?i:null}if(zT(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(BT(e))return null;let r=new(Object.getPrototypeOf(e)).constructor;for(let n of Object.getOwnPropertyNames(e)){let i=e[n],o=b0(i);if(i!=null&&o==null)return null;r[n]=o}return r}function zT(e){return typeof e.clone=="function"}function WT(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function BT(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function VT(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function GT(e){if(AT(e)||LT(e)||kT(e)||OT(e)||NT(e)||RT(e)||DT(e)||$T(e)||FT(e))return e.slice();if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){let t=new Map;for(let[r,n]of e)t.set(r,qe(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(qe(r));return t}return null}function jm(e,t){return e===t||typeof e=="number"&&isNaN(e)&&typeof t=="number"&&isNaN(t)||typeof e?.getTime=="function"&&typeof t?.getTime=="function"&&e.getTime()===t.getTime()||!1}function jT(e,t){return e===t||(e==null||typeof e=="string"?e===t:typeof e=="number"?e===t||typeof t=="number"&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&rc(e,t):e instanceof Set?t instanceof Set&&zF(e,t):e instanceof Map?t instanceof Map&&WF(e,t):!!VT(e)&&VT(t)&&VF(e,t))}function VF(e,t){if(e===null||t===null)return!1;let r=Object.keys(e);if(t===null||Object.keys(t).length!==r.length)return!1;for(let n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}function zF(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function WF(e,t){if(e.size!==t.size)return!1;for(let[r,n]of e){let i=t.get(r);if(i!==n||i===void 0&&!t.has(r))return!1}return!0}var or=V(()=>{nc();UT()});function HT(e,t,r=!1){return ZT(e,t,r)}function Hi(e,t){if(t!=null)return t[e]||qT(e.split("."),!1,t)}function Hs(e,t,r){let n=e.split("."),i=n.pop(),o=qT(n,!0,r);o&&i&&(o[i]=t)}function qT(e,t,r){let n=r;for(let i of e){if(n==null)return;if(!(i in n)){if(!t)return;n[i]={}}n=n[i]}return n}function ZT(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=n[i],s=t[i];return o===s?n:o===void 0?(n[i]=qe(s),n):(Array.isArray(s)||Array.isArray(n)?(o=o?Array.isArray(o)?n[i]=o.slice():n[i]=[o]:n[i]=[],s&&(Array.isArray(s)||(s=[s]),r?s.forEach(c=>{o.includes(c)||o.push(c)}):n[i]=s.slice())):s&&typeof s=="object"?n[i]=ZT(o,s,r):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=s),n)},e||{}):e}var ds=V(()=>{or()});function YT(e){return e??""}function fs(e,t){return t?e.replaceAll(BF,typeof t=="object"?(r,n)=>YT(Hi(n,t)):(r,n)=>YT(t(n))):e}function JT(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>t?.includes(r)?r:`\\${r}`)}function XT(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var BF,ic=V(()=>{ds();BF=/\{([^}]+)\}/g});var qs,_0,S0,x0,So,Gf,dr,xo,oc=V(()=>{qs=class extends Error{},_0=class extends qs{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},S0=class extends qs{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},x0=class extends qs{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},So=class extends qs{},Gf=class extends qs{constructor(t){super(`Invalid unit ${t}`)}},dr=class extends qs{},xo=class extends qs{constructor(){super("Zone is an abstract class")}}});var Ae,Co,_i,sc,Hm,j2,qm,Zm,Ym,Jm,Xm,Km,Qm,eh,th,rh,nh,ih,oh,sh,H2,ah,ch,lh,uh,dh=V(()=>{Ae="numeric",Co="short",_i="long",sc={year:Ae,month:Ae,day:Ae},Hm={year:Ae,month:Co,day:Ae},j2={year:Ae,month:Co,day:Ae,weekday:Co},qm={year:Ae,month:_i,day:Ae},Zm={year:Ae,month:_i,day:Ae,weekday:_i},Ym={hour:Ae,minute:Ae},Jm={hour:Ae,minute:Ae,second:Ae},Xm={hour:Ae,minute:Ae,second:Ae,timeZoneName:Co},Km={hour:Ae,minute:Ae,second:Ae,timeZoneName:_i},Qm={hour:Ae,minute:Ae,hourCycle:"h23"},eh={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23"},th={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23",timeZoneName:Co},rh={hour:Ae,minute:Ae,second:Ae,hourCycle:"h23",timeZoneName:_i},nh={year:Ae,month:Ae,day:Ae,hour:Ae,minute:Ae},ih={year:Ae,month:Ae,day:Ae,hour:Ae,minute:Ae,second:Ae},oh={year:Ae,month:Co,day:Ae,hour:Ae,minute:Ae},sh={year:Ae,month:Co,day:Ae,hour:Ae,minute:Ae,second:Ae},H2={year:Ae,month:Co,day:Ae,weekday:Co,hour:Ae,minute:Ae},ah={year:Ae,month:_i,day:Ae,hour:Ae,minute:Ae,timeZoneName:Co},ch={year:Ae,month:_i,day:Ae,hour:Ae,minute:Ae,second:Ae,timeZoneName:Co},lh={year:Ae,month:_i,day:Ae,weekday:_i,hour:Ae,minute:Ae,timeZoneName:_i},uh={year:Ae,month:_i,day:Ae,weekday:_i,hour:Ae,minute:Ae,second:Ae,timeZoneName:_i}});var Tr,lu=V(()=>{oc();Tr=class{get type(){throw new xo}get name(){throw new xo}get ianaName(){return this.name}get isUniversal(){throw new xo}offsetName(t,r){throw new xo}formatOffset(t,r){throw new xo}offset(t){throw new xo}equals(t){throw new xo}get isValid(){throw new xo}}});var q2,ac,T0=V(()=>{Zn();lu();q2=null,ac=class e extends Tr{static get instance(){return q2===null&&(q2=new e),q2}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return E0(t,r,n)}formatOffset(t,r){return cc(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}});function GF(e){return P0[e]||(P0[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"})),P0[e]}function HF(e,t){let r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,o,s,c,a,d,h]=n;return[s,i,o,c,a,d,h]}function qF(e,t){let r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],c=jF[o];o==="era"?n[c]=s:Ge(c)||(n[c]=parseInt(s,10))}return n}var P0,jF,M0,er,lc=V(()=>{Zn();lu();P0={};jF={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};M0={},er=class e extends Tr{static create(t){return M0[t]||(M0[t]=new e(t)),M0[t]}static resetCache(){M0={},P0={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=e.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return E0(t,r,n,this.name)}formatOffset(t,r){return cc(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let n=GF(this.name),[i,o,s,c,a,d,h]=n.formatToParts?qF(n,r):HF(n,r);c==="BC"&&(i=-Math.abs(i)+1);let v=jf({year:i,month:o,day:s,hour:a===24?0:a,minute:d,second:h,millisecond:0}),S=+r,M=S%1e3;return S-=M>=0?M:1e3+M,(v-S)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}});function ZF(e,t={}){let r=JSON.stringify([e,t]),n=KT[r];return n||(n=new Intl.ListFormat(e,t),KT[r]=n),n}function Y2(e,t={}){let r=JSON.stringify([e,t]),n=Z2[r];return n||(n=new Intl.DateTimeFormat(e,t),Z2[r]=n),n}function YF(e,t={}){let r=JSON.stringify([e,t]),n=J2[r];return n||(n=new Intl.NumberFormat(e,t),J2[r]=n),n}function JF(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),o=X2[i];return o||(o=new Intl.RelativeTimeFormat(e,t),X2[i]=o),o}function XF(){return fh||(fh=new Intl.DateTimeFormat().resolvedOptions().locale,fh)}function KF(e){let t=QT[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,QT[e]=t}return t}function QF(e){let t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));let r=e.indexOf("-u-");if(r===-1)return[e];{let n,i;try{n=Y2(e).resolvedOptions(),i=e}catch{let a=e.substring(0,r);n=Y2(a).resolvedOptions(),i=a}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function eU(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function tU(e){let t=[];for(let r=1;r<=12;r++){let n=Se.utc(2009,r,1);t.push(e(n))}return t}function rU(e){let t=[];for(let r=1;r<=7;r++){let n=Se.utc(2016,11,13+r);t.push(e(n))}return t}function I0(e,t,r,n){let i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function nU(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}var KT,Z2,J2,X2,fh,QT,K2,Q2,e_,iU,vt,mh=V(()=>{Zn();k0();uc();dc();lc();KT={};Z2={};J2={};X2={};fh=null;QT={};K2=class{constructor(t,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:i,floor:o,...s}=n;if(!r||Object.keys(s).length>0){let c={useGrouping:!1,...n};n.padTo>0&&(c.minimumIntegerDigits=n.padTo),this.inf=YF(t,c)}}format(t){if(this.inf){let r=this.floor?Math.floor(t):t;return this.inf.format(r)}else{let r=this.floor?Math.floor(t):Hf(t,3);return sr(r,this.padTo)}}},Q2=class{constructor(t,r,n){this.opts=n,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){let s=-1*(t.offset/60),c=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&er.create(c).valid?(i=c,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);let o={...this.opts};o.timeZone=o.timeZone||i,this.dtf=Y2(r,o)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map(r=>{if(r.type==="timeZoneName"){let n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):t}resolvedOptions(){return this.dtf.resolvedOptions()}},e_=class{constructor(t,r,n){this.opts={style:"long",...n},!r&&A0()&&(this.rtf=JF(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):e6(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}},iU={firstDay:1,minimalDays:4,weekend:[6,7]},vt=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,r,n,i,o=!1){let s=t||bt.defaultLocale,c=s||(o?"en-US":XF()),a=r||bt.defaultNumberingSystem,d=n||bt.defaultOutputCalendar,h=ph(i)||bt.defaultWeekSettings;return new e(c,a,d,h,s)}static resetCache(){fh=null,Z2={},J2={},X2={}}static fromObject({locale:t,numberingSystem:r,outputCalendar:n,weekSettings:i}={}){return e.create(t,r,n,i)}constructor(t,r,n,i,o){let[s,c,a]=QF(t);this.locale=s,this.numberingSystem=r||c||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=eU(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=nU(this)),this.fastNumbersCached}listingMode(){let t=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&r?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,ph(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,r=!1){return I0(this,t,t_,()=>{let n=r?{month:t,day:"numeric"}:{month:t},i=r?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=tU(o=>this.extract(o,n,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1){return I0(this,t,r_,()=>{let n=r?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=r?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=rU(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return I0(this,void 0,()=>n_,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Se.utc(2016,11,13,9),Se.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return I0(this,t,i_,()=>{let r={era:t};return this.eraCache[t]||(this.eraCache[t]=[Se.utc(-40,1,1),Se.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[t]})}extract(t,r,n){let i=this.dtFormatter(t,r),o=i.formatToParts(),s=o.find(c=>c.type.toLowerCase()===n);return s?s.value:null}numberFormatter(t={}){return new K2(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new Q2(t,this.intl,r)}relFormatter(t={}){return new e_(this.intl,this.isEnglish(),t)}listFormatter(t={}){return ZF(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:L0()?KF(this.locale):iU}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}});var s_,At,qf=V(()=>{Zn();lu();s_=null,At=class e extends Tr{static get utcInstance(){return s_===null&&(s_=new e(0)),s_}static instance(t){return t===0?e.utcInstance:new e(t)}static parseSpecifier(t){if(t){let r=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new e(uu(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${cc(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${cc(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return cc(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}});var Zf,a_=V(()=>{lu();Zf=class extends Tr{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}});function To(e,t){let r;if(Ge(e)||e===null)return t;if(e instanceof Tr)return e;if(t6(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?ac.instance:n==="utc"||n==="gmt"?At.utcInstance:At.parseSpecifier(n)||er.create(e)}else return Eo(e)?At.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new Zf(e)}var O0=V(()=>{lu();lc();qf();a_();Zn();T0()});function n6(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(e[r].search(c_.hanidec)!==-1)t+=oU.indexOf(e[r]);else for(let i in r6){let[o,s]=r6[i];n>=o&&n<=s&&(t+=n-o)}}return parseInt(t,10)}else return t}function i6(){Yf={}}function qi({numberingSystem:e},t=""){let r=e||"latn";return Yf[r]||(Yf[r]={}),Yf[r][t]||(Yf[r][t]=new RegExp(`${c_[r]}${t}`)),Yf[r][t]}var c_,r6,oU,Yf,l_=V(()=>{c_={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},r6={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},oU=c_.hanidec.replace(/[\[|\]]/g,"").split("");Yf={}});var o6,s6,a6,c6,l6,u6,d6,f6,bt,uc=V(()=>{T0();lc();mh();dc();O0();Zn();l_();o6=()=>Date.now(),s6="system",a6=null,c6=null,l6=null,u6=60,f6=null,bt=class{static get now(){return o6}static set now(t){o6=t}static set defaultZone(t){s6=t}static get defaultZone(){return To(s6,ac.instance)}static get defaultLocale(){return a6}static set defaultLocale(t){a6=t}static get defaultNumberingSystem(){return c6}static set defaultNumberingSystem(t){c6=t}static get defaultOutputCalendar(){return l6}static set defaultOutputCalendar(t){l6=t}static get defaultWeekSettings(){return f6}static set defaultWeekSettings(t){f6=ph(t)}static get twoDigitCutoffYear(){return u6}static set twoDigitCutoffYear(t){u6=t%100}static get throwOnInvalid(){return d6}static set throwOnInvalid(t){d6=t}static resetCaches(){vt.resetCache(),er.resetCache(),Se.resetCache(),i6()}}});var nn,hh=V(()=>{nn=class{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}});function Zi(e,t){return new nn("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function N0(e,t,r){let n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let i=n.getUTCDay();return i===0?7:i}function h6(e,t,r){return r+(fu(e)?m6:p6)[t-1]}function g6(e,t){let r=fu(e)?m6:p6,n=r.findIndex(o=>o<t),i=t-r[n];return{month:n+1,day:i}}function R0(e,t){return(e-t+7)%7+1}function gh(e,t=4,r=1){let{year:n,month:i,day:o}=e,s=h6(n,i,o),c=R0(N0(n,i,o),r),a=Math.floor((s-c+14-t)/7),d;return a<1?(d=n-1,a=du(d,t,r)):a>du(n,t,r)?(d=n+1,a=1):d=n,{weekYear:d,weekNumber:a,weekday:c,...yh(e)}}function u_(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=R0(N0(n,1,t),r),c=fc(n),a=i*7+o-s-7+t,d;a<1?(d=n-1,a+=fc(d)):a>c?(d=n+1,a-=fc(n)):d=n;let{month:h,day:g}=g6(d,a);return{year:d,month:h,day:g,...yh(e)}}function D0(e){let{year:t,month:r,day:n}=e,i=h6(t,r,n);return{year:t,ordinal:i,...yh(e)}}function d_(e){let{year:t,ordinal:r}=e,{month:n,day:i}=g6(t,r);return{year:t,month:n,day:i,...yh(e)}}function f_(e,t){if(!Ge(e.localWeekday)||!Ge(e.localWeekNumber)||!Ge(e.localWeekYear)){if(!Ge(e.weekday)||!Ge(e.weekNumber)||!Ge(e.weekYear))throw new So("Cannot mix locale-based week fields with ISO-based week fields");return Ge(e.localWeekday)||(e.weekday=e.localWeekday),Ge(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),Ge(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function w6(e,t=4,r=1){let n=wh(e.weekYear),i=Si(e.weekNumber,1,du(e.weekYear,t,r)),o=Si(e.weekday,1,7);return n?i?o?!1:Zi("weekday",e.weekday):Zi("week",e.weekNumber):Zi("weekYear",e.weekYear)}function y6(e){let t=wh(e.year),r=Si(e.ordinal,1,fc(e.year));return t?r?!1:Zi("ordinal",e.ordinal):Zi("year",e.year)}function p_(e){let t=wh(e.year),r=Si(e.month,1,12),n=Si(e.day,1,Jf(e.year,e.month));return t?r?n?!1:Zi("day",e.day):Zi("month",e.month):Zi("year",e.year)}function m_(e){let{hour:t,minute:r,second:n,millisecond:i}=e,o=Si(t,0,23)||t===24&&r===0&&n===0&&i===0,s=Si(r,0,59),c=Si(n,0,59),a=Si(i,0,999);return o?s?c?a?!1:Zi("millisecond",i):Zi("second",n):Zi("minute",r):Zi("hour",t)}var p6,m6,h_=V(()=>{Zn();hh();oc();p6=[0,31,59,90,120,151,181,212,243,273,304,334],m6=[0,31,60,91,121,152,182,213,244,274,305,335]});function Ge(e){return typeof e>"u"}function Eo(e){return typeof e=="number"}function wh(e){return typeof e=="number"&&e%1===0}function t6(e){return typeof e=="string"}function v6(e){return Object.prototype.toString.call(e)==="[object Date]"}function A0(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function L0(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function _6(e){return Array.isArray(e)?e:[e]}function g_(e,t,r){if(e.length!==0)return e.reduce((n,i)=>{let o=[t(i),i];return n&&r(n[0],o[0])===n[0]?n:o},null)[1]}function S6(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function pc(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function ph(e){if(e==null)return null;if(typeof e!="object")throw new dr("Week settings must be an object");if(!Si(e.firstDay,1,7)||!Si(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Si(t,1,7)))throw new dr("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Si(e,t,r){return wh(e)&&e>=t&&e<=r}function sU(e,t){return e-t*Math.floor(e/t)}function sr(e,t=2){let r=e<0,n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function Zs(e){if(!(Ge(e)||e===null||e===""))return parseInt(e,10)}function mc(e){if(!(Ge(e)||e===null||e===""))return parseFloat(e)}function bh(e){if(!(Ge(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function Hf(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function fu(e){return e%4===0&&(e%100!==0||e%400===0)}function fc(e){return fu(e)?366:365}function Jf(e,t){let r=sU(t-1,12)+1,n=e+(t-r)/12;return r===2?fu(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function jf(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 b6(e,t,r){return-R0(N0(e,1,t),r)+t-1}function du(e,t=4,r=1){let n=b6(e,t,r),i=b6(e+1,t,r);return(fc(e)-n+i)/7}function vh(e){return e>99?e:e>bt.twoDigitCutoffYear?1900+e:2e3+e}function E0(e,t,r,n=null){let i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);let s={timeZoneName:t,...o},c=new Intl.DateTimeFormat(r,s).formatToParts(i).find(a=>a.type.toLowerCase()==="timezonename");return c?c.value:null}function uu(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);let n=parseInt(t,10)||0,i=r<0||Object.is(r,-0)?-n:n;return r*60+i}function w_(e){let t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new dr(`Invalid unit value ${e}`);return t}function Xf(e,t){let r={};for(let n in e)if(pc(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=w_(i)}return r}function cc(e,t){let r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${sr(r,2)}:${sr(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${sr(r,2)}${sr(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function yh(e){return S6(e,["hour","minute","second","millisecond"])}var Zn=V(()=>{oc();uc();h_()});function t_(e){switch(e){case"narrow":return[...cU];case"short":return[...y_];case"long":return[...aU];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}function r_(e){switch(e){case"narrow":return[...lU];case"short":return[...v_];case"long":return[...b_];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function i_(e){switch(e){case"narrow":return[...fU];case"short":return[...dU];case"long":return[...uU];default:return null}}function x6(e){return n_[e.hour<12?0:1]}function C6(e,t){return r_(t)[e.weekday-1]}function T6(e,t){return t_(t)[e.month-1]}function E6(e,t){return i_(t)[e.year<0?0:1]}function e6(e,t,r="always",n=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(e)===-1;if(r==="auto"&&o){let g=e==="days";switch(t){case 1:return g?"tomorrow":`next ${i[e][0]}`;case-1:return g?"yesterday":`last ${i[e][0]}`;case 0:return g?"today":`this ${i[e][0]}`;default:}}let s=Object.is(t,-0)||t<0,c=Math.abs(t),a=c===1,d=i[e],h=n?a?d[1]:d[2]||d[1]:a?i[e][0]:e;return s?`${c} ${h} ago`:`in ${c} ${h}`}var aU,y_,cU,b_,v_,lU,n_,uU,dU,fU,k0=V(()=>{dh();Zn();aU=["January","February","March","April","May","June","July","August","September","October","November","December"],y_=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],cU=["J","F","M","A","M","J","J","A","S","O","N","D"];b_=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],v_=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],lU=["M","T","W","T","F","S","S"];n_=["AM","PM"],uU=["Before Christ","Anno Domini"],dU=["BC","AD"],fU=["B","A"]});function M6(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}var pU,on,_h=V(()=>{k0();dh();Zn();pU={D:sc,DD:Hm,DDD:qm,DDDD:Zm,t:Ym,tt:Jm,ttt:Xm,tttt:Km,T:Qm,TT:eh,TTT:th,TTTT:rh,f:nh,ff:oh,fff:ah,ffff:lh,F:ih,FF:sh,FFF:ch,FFFF:uh},on=class e{static create(t,r={}){return new e(t,r)}static parseFormat(t){let r=null,n="",i=!1,o=[];for(let s=0;s<t.length;s++){let c=t.charAt(s);c==="'"?(n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),r=null,n="",i=!i):i||c===r?n+=c:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=c,r=c)}return n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(t){return pU[t]}constructor(t,r){this.opts=r,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...r}).format()}dtFormatter(t,r={}){return this.loc.dtFormatter(t,{...this.opts,...r})}formatDateTime(t,r){return this.dtFormatter(t,r).format()}formatDateTimeParts(t,r){return this.dtFormatter(t,r).formatToParts()}formatInterval(t,r){return this.dtFormatter(t.start,r).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,r){return this.dtFormatter(t,r).resolvedOptions()}num(t,r=0){if(this.opts.forceSimple)return sr(t,r);let n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,r){let n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(S,M)=>this.loc.extract(t,S,M),s=S=>t.isOffsetFixed&&t.offset===0&&S.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,S.format):"",c=()=>n?x6(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(S,M)=>n?T6(t,S):o(M?{month:S}:{month:S,day:"numeric"},"month"),d=(S,M)=>n?C6(t,S):o(M?{weekday:S}:{weekday:S,month:"long",day:"numeric"},"weekday"),h=S=>{let M=e.macroTokenToFormatOpts(S);return M?this.formatWithSystemDefault(t,M):S},g=S=>n?E6(t,S):o({era:S},"era"),v=S=>{switch(S){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return c();case"d":return i?o({day:"numeric"},"day"):this.num(t.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(t.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(t.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return h(S)}};return M6(e.parseFormat(r),v)}formatDurationFromString(t,r){let n=a=>{switch(a[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=a=>d=>{let h=n(d);return h?this.num(a.get(h),d.length):d},o=e.parseFormat(r),s=o.reduce((a,{literal:d,val:h})=>d?a:a.concat(h),[]),c=t.shiftTo(...s.map(n).filter(a=>a));return M6(o,i(c))}}});function Qf(...e){let t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function ep(...e){return t=>e.reduce(([r,n,i],o)=>{let[s,c,a]=o(t,i);return[{...r,...s},c||n,a]},[{},null,1]).slice(0,2)}function tp(e,...t){if(e==null)return[null,null];for(let[r,n]of t){let i=r.exec(e);if(i)return n(i)}return[null,null]}function A6(...e){return(t,r)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=Zs(t[r+i]);return[n,null,r+i]}}function Kf(e,t,r){let n=e[t];return Ge(n)?r:Zs(n)}function SU(e,t){return[{year:Kf(e,t),month:Kf(e,t+1,1),day:Kf(e,t+2,1)},null,t+3]}function rp(e,t){return[{hours:Kf(e,t,0),minutes:Kf(e,t+1,0),seconds:Kf(e,t+2,0),milliseconds:bh(e[t+3])},null,t+4]}function Sh(e,t){let r=!e[t]&&!e[t+1],n=uu(e[t+1],e[t+2]),i=r?null:At.instance(n);return[{},i,t+3]}function xh(e,t){let r=e[t]?er.create(e[t]):null;return[{},r,t+1]}function TU(e){let[t,r,n,i,o,s,c,a,d]=e,h=t[0]==="-",g=a&&a[0]==="-",v=(S,M=!1)=>S!==void 0&&(M||S&&h)?-S:S;return[{years:v(mc(r)),months:v(mc(n)),weeks:v(mc(i)),days:v(mc(o)),hours:v(mc(s)),minutes:v(mc(c)),seconds:v(mc(a),a==="-0"),milliseconds:v(bh(d),g)}]}function x_(e,t,r,n,i,o,s){let c={year:t.length===2?vh(Zs(t)):Zs(t),month:y_.indexOf(r)+1,day:Zs(n),hour:Zs(i),minute:Zs(o)};return s&&(c.second=Zs(s)),e&&(c.weekday=e.length>3?b_.indexOf(e)+1:v_.indexOf(e)+1),c}function PU(e){let[,t,r,n,i,o,s,c,a,d,h,g]=e,v=x_(t,i,n,r,o,s,c),S;return a?S=EU[a]:d?S=0:S=uu(h,g),[v,new At(S)]}function IU(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function P6(e){let[,t,r,n,i,o,s,c]=e;return[x_(t,i,n,r,o,s,c),At.utcInstance]}function OU(e){let[,t,r,n,i,o,s,c]=e;return[x_(t,c,r,n,i,o,s),At.utcInstance]}function R6(e){return tp(e,[NU,N6],[RU,FU],[DU,UU],[$U,VU])}function D6(e){return tp(IU(e),[MU,PU])}function $6(e){return tp(e,[AU,P6],[LU,P6],[kU,OU])}function F6(e){return tp(e,[CU,TU])}function U6(e){return tp(e,[xU,zU])}function V6(e){return tp(e,[WU,N6],[BU,GU])}var I6,L6,mU,__,k6,S_,hU,gU,wU,yU,bU,vU,O6,_U,xU,CU,EU,MU,AU,LU,kU,NU,RU,DU,$U,N6,FU,UU,VU,zU,WU,BU,GU,C_=V(()=>{Zn();k0();qf();lc();I6=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;L6=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,mU=`(?:${L6.source}?(?:\\[(${I6.source})\\])?)?`,__=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,k6=RegExp(`${__.source}${mU}`),S_=RegExp(`(?:T${k6.source})?`),hU=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,gU=/(\d{4})-?W(\d\d)(?:-?(\d))?/,wU=/(\d{4})-?(\d{3})/,yU=A6("weekYear","weekNumber","weekDay"),bU=A6("year","ordinal"),vU=/(\d{4})-(\d\d)-(\d\d)/,O6=RegExp(`${__.source} ?(?:${L6.source}|(${I6.source}))?`),_U=RegExp(`(?: ${O6.source})?`);xU=RegExp(`^T?${__.source}$`),CU=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;EU={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};MU=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;AU=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,LU=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,kU=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;NU=Qf(hU,S_),RU=Qf(gU,S_),DU=Qf(wU,S_),$U=Qf(k6),N6=ep(SU,rp,Sh,xh),FU=ep(yU,rp,Sh,xh),UU=ep(bU,rp,Sh,xh),VU=ep(rp,Sh,xh);zU=ep(rp);WU=Qf(vU,_U),BU=Qf(O6),GU=ep(rp,Sh,xh)});function hc(e,t,r=!1){let n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new ar(n)}function G6(e,t){let r=t.milliseconds??0;for(let n of qU.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function W6(e,t){let r=G6(e,t)<0?-1:1;pu.reduceRight((n,i)=>{if(Ge(t[i]))return n;if(n){let o=t[n]*r,s=e[i][n],c=Math.floor(o/s);t[i]+=c*r,t[n]-=c*s*r}return i},null),pu.reduce((n,i)=>{if(Ge(t[i]))return n;if(n){let o=t[n]%1;t[n]-=o,t[i]+=o*e[n][i]}return i},null)}function ZU(e){let t={};for(let[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}var z6,B6,jU,Yi,np,HU,pu,qU,ar,Ch=V(()=>{oc();_h();hh();mh();C_();Zn();uc();dc();z6="Invalid Duration",B6={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},jU={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...B6},Yi=146097/400,np=146097/4800,HU={years:{quarters:4,months:12,weeks:Yi/7,days:Yi,hours:Yi*24,minutes:Yi*24*60,seconds:Yi*24*60*60,milliseconds:Yi*24*60*60*1e3},quarters:{months:3,weeks:Yi/28,days:Yi/4,hours:Yi*24/4,minutes:Yi*24*60/4,seconds:Yi*24*60*60/4,milliseconds:Yi*24*60*60*1e3/4},months:{weeks:np/7,days:np,hours:np*24,minutes:np*24*60,seconds:np*24*60*60,milliseconds:np*24*60*60*1e3},...B6},pu=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],qU=pu.slice(0).reverse();ar=class e{constructor(t){let r=t.conversionAccuracy==="longterm"||!1,n=r?HU:jU;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||vt.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,r){return e.fromObject({milliseconds:t},r)}static fromObject(t,r={}){if(t==null||typeof t!="object")throw new dr(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:Xf(t,e.normalizeUnit),loc:vt.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if(Eo(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t=="object")return e.fromObject(t);throw new dr(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){let[n]=F6(t);return n?e.fromObject(n,r):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,r){let[n]=U6(t);return n?e.fromObject(n,r):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,r=null){if(!t)throw new dr("need to specify a reason the Duration is invalid");let n=t instanceof nn?t:new nn(t,r);if(bt.throwOnInvalid)throw new x0(n);return new e({invalid:n})}static normalizeUnit(t){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!r)throw new Gf(t);return r}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,r={}){let n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?on.create(this.loc,n).formatDurationFromString(this,t):z6}toHuman(t={}){if(!this.isValid)return z6;let r=pu.map(n=>{let i=this.values[n];return Ge(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:n.slice(0,-1)}).format(i)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=Hf(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Se.fromMillis(r,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?G6(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let r=e.fromDurationLike(t),n={};for(let i of pu)(pc(r.values,i)||pc(this.values,i))&&(n[i]=r.get(i)+this.get(i));return hc(this,{values:n},!0)}minus(t){if(!this.isValid)return this;let r=e.fromDurationLike(t);return this.plus(r.negate())}mapUnits(t){if(!this.isValid)return this;let r={};for(let n of Object.keys(this.values))r[n]=w_(t(this.values[n],n));return hc(this,{values:r},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r={...this.values,...Xf(t,e.normalizeUnit)};return hc(this,{values:r})}reconfigure({locale:t,numberingSystem:r,conversionAccuracy:n,matrix:i}={}){let s={loc:this.loc.clone({locale:t,numberingSystem:r}),matrix:i,conversionAccuracy:n};return hc(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return W6(this.matrix,t),hc(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=ZU(this.normalize().shiftToAll().toObject());return hc(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(s=>e.normalizeUnit(s));let r={},n={},i=this.toObject(),o;for(let s of pu)if(t.indexOf(s)>=0){o=s;let c=0;for(let d in n)c+=this.matrix[d][s]*n[d],n[d]=0;Eo(i[s])&&(c+=i[s]);let a=Math.trunc(c);r[s]=a,n[s]=(c*1e3-a*1e3)/1e3}else Eo(i[s])&&(n[s]=i[s]);for(let s in n)n[s]!==0&&(r[o]+=s===o?n[s]:n[s]/this.matrix[o][s]);return W6(this.matrix,r),hc(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let t={};for(let r of Object.keys(this.values))t[r]=this.values[r]===0?0:-this.values[r];return hc(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function r(n,i){return n===void 0||n===0?i===void 0||i===0:n===i}for(let n of pu)if(!r(this.values[n],t.values[n]))return!1;return!0}}});function YU(e,t){return!e||!e.isValid?Ys.invalid("missing or invalid start"):!t||!t.isValid?Ys.invalid("missing or invalid end"):t<e?Ys.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}var ip,Ys,T_=V(()=>{dc();Ch();uc();oc();hh();_h();dh();ip="Invalid Interval";Ys=class e{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,r=null){if(!t)throw new dr("need to specify a reason the Interval is invalid");let n=t instanceof nn?t:new nn(t,r);if(bt.throwOnInvalid)throw new S0(n);return new e({invalid:n})}static fromDateTimes(t,r){let n=op(t),i=op(r),o=YU(n,i);return o??new e({start:n,end:i})}static after(t,r){let n=ar.fromDurationLike(r),i=op(t);return e.fromDateTimes(i,i.plus(n))}static before(t,r){let n=ar.fromDurationLike(r),i=op(t);return e.fromDateTimes(i.minus(n),i)}static fromISO(t,r){let[n,i]=(t||"").split("/",2);if(n&&i){let o,s;try{o=Se.fromISO(n,r),s=o.isValid}catch{s=!1}let c,a;try{c=Se.fromISO(i,r),a=c.isValid}catch{a=!1}if(s&&a)return e.fromDateTimes(o,c);if(s){let d=ar.fromISO(i,r);if(d.isValid)return e.after(o,d)}else if(a){let d=ar.fromISO(n,r);if(d.isValid)return e.before(c,d)}}return e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",r){if(!this.isValid)return NaN;let n=this.start.startOf(t,r),i;return r?.useLocaleWeeks?i=this.end.reconfigure({locale:n.locale}):i=this.end,i=i.startOf(t,r),Math.floor(i.diff(n,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:r}={}){return this.isValid?e.fromDateTimes(t||this.s,r||this.e):this}splitAt(...t){if(!this.isValid)return[];let r=t.map(op).filter(s=>this.contains(s)).sort((s,c)=>s.toMillis()-c.toMillis()),n=[],{s:i}=this,o=0;for(;i<this.e;){let s=r[o]||this.e,c=+s>+this.e?this.e:s;n.push(e.fromDateTimes(i,c)),i=c,o+=1}return n}splitBy(t){let r=ar.fromDurationLike(t);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,i=1,o,s=[];for(;n<this.e;){let c=this.start.plus(r.mapUnits(a=>a*i));o=+c>+this.e?this.e:c,s.push(e.fromDateTimes(n,o)),n=o,i+=1}return s}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;let r=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return r>=n?null:e.fromDateTimes(r,n)}union(t){if(!this.isValid)return this;let r=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return e.fromDateTimes(r,n)}static merge(t){let[r,n]=t.sort((i,o)=>i.s-o.s).reduce(([i,o],s)=>o?o.overlaps(s)||o.abutsStart(s)?[i,o.union(s)]:[i.concat([o]),s]:[i,s],[[],null]);return n&&r.push(n),r}static xor(t){let r=null,n=0,i=[],o=t.map(a=>[{time:a.s,type:"s"},{time:a.e,type:"e"}]),s=Array.prototype.concat(...o),c=s.sort((a,d)=>a.time-d.time);for(let a of c)n+=a.type==="s"?1:-1,n===1?r=a.time:(r&&+r!=+a.time&&i.push(e.fromDateTimes(r,a.time)),r=null);return e.merge(i)}difference(...t){return e.xor([this].concat(t)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:ip}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=sc,r={}){return this.isValid?on.create(this.s.loc.clone(r),t).formatInterval(this):ip}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:ip}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:ip}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:ip}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:ip}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):ar.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}}});var Js,E_=V(()=>{dc();uc();mh();lc();O0();Zn();Js=class{static hasDST(t=bt.defaultZone){let r=Se.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return er.isValidZone(t)}static normalizeZone(t){return To(t,bt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:r=null}={}){return(r||vt.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:r=null}={}){return(r||vt.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:r=null}={}){return(r||vt.create(t)).getWeekendDays().slice()}static months(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||vt.create(r,n,o)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||vt.create(r,n,o)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||vt.create(r,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||vt.create(r,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return vt.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return vt.create(r,null,"gregory").eras(t)}static features(){return{relative:A0(),localeWeek:L0()}}}});function j6(e,t){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(ar.fromMillis(n).as("days"))}function JU(e,t,r){let n=[["years",(a,d)=>d.year-a.year],["quarters",(a,d)=>d.quarter-a.quarter+(d.year-a.year)*4],["months",(a,d)=>d.month-a.month+(d.year-a.year)*12],["weeks",(a,d)=>{let h=j6(a,d);return(h-h%7)/7}],["days",j6]],i={},o=e,s,c;for(let[a,d]of n)r.indexOf(a)>=0&&(s=a,i[a]=d(e,t),c=o.plus(i),c>t?(i[a]--,e=o.plus(i),e>t&&(c=e,i[a]--,e=o.plus(i))):e=c);return[e,i,c,s]}function H6(e,t,r,n){let[i,o,s,c]=JU(e,t,r),a=t-i,d=r.filter(g=>["hours","minutes","seconds","milliseconds"].indexOf(g)>=0);d.length===0&&(s<t&&(s=i.plus({[c]:1})),s!==i&&(o[c]=(o[c]||0)+a/(s-i)));let h=ar.fromObject(o,n);return d.length>0?ar.fromMillis(a,n).shiftTo(...d).plus(h):h}var q6=V(()=>{Ch()});function xt(e,t=r=>r){return{regex:e,deser:([r])=>t(n6(r))}}function QU(e){return e.replace(/\./g,"\\.?").replace(X6,J6)}function Z6(e){return e.replace(/\./g,"").replace(X6," ").toLowerCase()}function Mo(e,t){return e===null?null:{regex:RegExp(e.map(QU).join("|")),deser:([r])=>e.findIndex(n=>Z6(r)===Z6(n))+t}}function Y6(e,t){return{regex:e,deser:([,r,n])=>uu(r,n),groups:t}}function $0(e){return{regex:e,deser:([t])=>t}}function eV(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function tV(e,t){let r=qi(t),n=qi(t,"{2}"),i=qi(t,"{3}"),o=qi(t,"{4}"),s=qi(t,"{6}"),c=qi(t,"{1,2}"),a=qi(t,"{1,3}"),d=qi(t,"{1,6}"),h=qi(t,"{1,9}"),g=qi(t,"{2,4}"),v=qi(t,"{4,6}"),S=R=>({regex:RegExp(eV(R.val)),deser:([B])=>B,literal:!0}),I=(R=>{if(e.literal)return S(R);switch(R.val){case"G":return Mo(t.eras("short"),0);case"GG":return Mo(t.eras("long"),0);case"y":return xt(d);case"yy":return xt(g,vh);case"yyyy":return xt(o);case"yyyyy":return xt(v);case"yyyyyy":return xt(s);case"M":return xt(c);case"MM":return xt(n);case"MMM":return Mo(t.months("short",!0),1);case"MMMM":return Mo(t.months("long",!0),1);case"L":return xt(c);case"LL":return xt(n);case"LLL":return Mo(t.months("short",!1),1);case"LLLL":return Mo(t.months("long",!1),1);case"d":return xt(c);case"dd":return xt(n);case"o":return xt(a);case"ooo":return xt(i);case"HH":return xt(n);case"H":return xt(c);case"hh":return xt(n);case"h":return xt(c);case"mm":return xt(n);case"m":return xt(c);case"q":return xt(c);case"qq":return xt(n);case"s":return xt(c);case"ss":return xt(n);case"S":return xt(a);case"SSS":return xt(i);case"u":return $0(h);case"uu":return $0(c);case"uuu":return xt(r);case"a":return Mo(t.meridiems(),0);case"kkkk":return xt(o);case"kk":return xt(g,vh);case"W":return xt(c);case"WW":return xt(n);case"E":case"c":return xt(r);case"EEE":return Mo(t.weekdays("short",!1),1);case"EEEE":return Mo(t.weekdays("long",!1),1);case"ccc":return Mo(t.weekdays("short",!0),1);case"cccc":return Mo(t.weekdays("long",!0),1);case"Z":case"ZZ":return Y6(new RegExp(`([+-]${c.source})(?::(${n.source}))?`),2);case"ZZZ":return Y6(new RegExp(`([+-]${c.source})(${n.source})?`),2);case"z":return $0(/[a-z_+-/]{1,256}?/i);case" ":return $0(/[^\S\n\r]/);default:return S(R)}})(e)||{invalidReason:XU};return I.token=e,I}function nV(e,t,r){let{type:n,value:i}=e;if(n==="literal"){let a=/^\s+$/.test(i);return{literal:!a,val:a?" ":i}}let o=t[n],s=n;n==="hour"&&(t.hour12!=null?s=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?s="hour12":s="hour24":s=r.hour12?"hour12":"hour24");let c=rV[s];if(typeof c=="object"&&(c=c[o]),c)return{literal:!1,val:c}}function iV(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function oV(e,t,r){let n=e.match(t);if(n){let i={},o=1;for(let s in r)if(pc(r,s)){let c=r[s],a=c.groups?c.groups+1:1;!c.literal&&c.token&&(i[c.token.val[0]]=c.deser(n.slice(o,o+a))),o+=a}return[n,i]}else return[n,{}]}function sV(e){let t=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,n;return Ge(e.z)||(r=er.create(e.z)),Ge(e.Z)||(r||(r=new At(e.Z)),n=e.Z),Ge(e.q)||(e.M=(e.q-1)*3+1),Ge(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),Ge(e.u)||(e.S=bh(e.u)),[Object.keys(e).reduce((o,s)=>{let c=t(s);return c&&(o[c]=e[s]),o},{}),r,n]}function aV(){return M_||(M_=Se.fromMillis(1555555555555)),M_}function cV(e,t){if(e.literal)return e;let r=on.macroTokenToFormatOpts(e.val),n=A_(r,t);return n==null||n.includes(void 0)?e:n}function P_(e,t){return Array.prototype.concat(...e.map(r=>cV(r,t)))}function I_(e,t,r){return new Th(e,r).explainFromTokens(t)}function K6(e,t,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=I_(e,t,r);return[n,i,o,s]}function A_(e,t){if(!e)return null;let n=on.create(t,e).dtFormatter(aV()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>nV(s,e,o))}var XU,KU,J6,X6,rV,M_,Th,Q6=V(()=>{Zn();_h();qf();lc();dc();l_();oc();XU="missing Intl.DateTimeFormat.formatToParts support";KU="\xA0",J6=`[ ${KU}]`,X6=new RegExp(J6,"g");rV={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};M_=null;Th=class{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=P_(on.parseFormat(r),t),this.units=this.tokens.map(n=>tV(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=iV(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){let[r,n]=oV(t,this.regex,this.handlers),[i,o,s]=n?sV(n):[null,null,void 0];if(pc(n,"a")&&pc(n,"H"))throw new So("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:i,zone:o,specificOffset:s}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}});function Eh(e){return new nn("unsupported zone",`the zone "${e.name}" is not supported`)}function k_(e){return e.weekData===null&&(e.weekData=gh(e.c)),e.weekData}function O_(e){return e.localWeekData===null&&(e.localWeekData=gh(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function mu(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Se({...r,...t,old:r})}function aE(e,t,r){let n=e-t*60*1e3,i=r.offset(n);if(t===i)return[n,t];n-=(i-t)*60*1e3;let o=r.offset(n);return i===o?[n,i]:[e-Math.min(i,o)*60*1e3,Math.max(i,o)]}function F0(e,t){e+=t*60*1e3;let r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function V0(e,t,r){return aE(jf(e),t,r)}function tE(e,t){let r=e.o,n=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:i,day:Math.min(e.c.day,Jf(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=ar.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),c=jf(o),[a,d]=aE(c,r,e.zone);return s!==0&&(a+=s,d=e.zone.offset(a)),{ts:a,o:d}}function sp(e,t,r,n,i,o){let{setZone:s,zone:c}=r;if(e&&Object.keys(e).length!==0||t){let a=t||c,d=Se.fromObject(e,{...r,zone:a,specificOffset:o});return s?d:d.setZone(c)}else return Se.invalid(new nn("unparsable",`the input "${i}" can't be parsed as ${n}`))}function U0(e,t,r=!0){return e.isValid?on.create(vt.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function N_(e,t){let r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=sr(e.c.year,r?6:4),t?(n+="-",n+=sr(e.c.month),n+="-",n+=sr(e.c.day)):(n+=sr(e.c.month),n+=sr(e.c.day)),n}function rE(e,t,r,n,i,o){let s=sr(e.c.hour);return t?(s+=":",s+=sr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=":")):s+=sr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=sr(e.c.second),(e.c.millisecond!==0||!n)&&(s+=".",s+=sr(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!o?s+="Z":e.o<0?(s+="-",s+=sr(Math.trunc(-e.o/60)),s+=":",s+=sr(Math.trunc(-e.o%60))):(s+="+",s+=sr(Math.trunc(e.o/60)),s+=":",s+=sr(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}function pV(e){let t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new Gf(e);return t}function nE(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return pV(e)}}function mV(e){return W0[e]||(z0===void 0&&(z0=bt.now()),W0[e]=e.offset(z0)),W0[e]}function iE(e,t){let r=To(t.zone,bt.defaultZone);if(!r.isValid)return Se.invalid(Eh(r));let n=vt.fromObject(t),i,o;if(Ge(e.year))i=bt.now();else{for(let a of lE)Ge(e[a])&&(e[a]=cE[a]);let s=p_(e)||m_(e);if(s)return Se.invalid(s);let c=mV(r);[i,o]=V0(e,c,r)}return new Se({ts:i,zone:r,loc:n,o})}function oE(e,t,r){let n=Ge(r.round)?!0:r.round,i=(s,c)=>(s=Hf(s,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(s,c)),o=s=>r.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(r.unit)return i(o(r.unit),r.unit);for(let s of r.units){let c=o(s);if(Math.abs(c)>=1)return i(c,s)}return i(e>t?-0:0,r.units[r.units.length-1])}function sE(e){let t={},r;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}function op(e){if(Se.isDateTime(e))return e;if(e&&e.valueOf&&Eo(e.valueOf()))return Se.fromJSDate(e);if(e&&typeof e=="object")return Se.fromObject(e);throw new dr(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var L_,eE,cE,lV,uV,lE,dV,fV,z0,W0,Se,dc=V(()=>{Ch();T_();uc();E_();_h();qf();mh();Zn();O0();q6();C_();Q6();h_();dh();oc();hh();L_="Invalid DateTime",eE=864e13;cE={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},lV={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},uV={ordinal:1,hour:0,minute:0,second:0,millisecond:0},lE=["year","month","day","hour","minute","second","millisecond"],dV=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],fV=["year","ordinal","hour","minute","second","millisecond"];W0={},Se=class e{constructor(t){let r=t.zone||bt.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new nn("invalid input"):null)||(r.isValid?null:Eh(r));this.ts=Ge(t.ts)?bt.now():t.ts;let i=null,o=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(r))[i,o]=[t.old.c,t.old.o];else{let c=Eo(t.o)&&!t.old?t.o:r.offset(this.ts);i=F0(this.ts,c),n=Number.isNaN(i.year)?new nn("invalid input"):null,i=n?null:i,o=n?null:c}this._zone=r,this.loc=t.loc||vt.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){let[t,r]=sE(arguments),[n,i,o,s,c,a,d]=r;return iE({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},t)}static utc(){let[t,r]=sE(arguments),[n,i,o,s,c,a,d]=r;return t.zone=At.utcInstance,iE({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},t)}static fromJSDate(t,r={}){let n=v6(t)?t.valueOf():NaN;if(Number.isNaN(n))return e.invalid("invalid input");let i=To(r.zone,bt.defaultZone);return i.isValid?new e({ts:n,zone:i,loc:vt.fromObject(r)}):e.invalid(Eh(i))}static fromMillis(t,r={}){if(Eo(t))return t<-eE||t>eE?e.invalid("Timestamp out of range"):new e({ts:t,zone:To(r.zone,bt.defaultZone),loc:vt.fromObject(r)});throw new dr(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(Eo(t))return new e({ts:t*1e3,zone:To(r.zone,bt.defaultZone),loc:vt.fromObject(r)});throw new dr("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};let n=To(r.zone,bt.defaultZone);if(!n.isValid)return e.invalid(Eh(n));let i=vt.fromObject(r),o=Xf(t,nE),{minDaysInFirstWeek:s,startOfWeek:c}=f_(o,i),a=bt.now(),d=Ge(r.specificOffset)?n.offset(a):r.specificOffset,h=!Ge(o.ordinal),g=!Ge(o.year),v=!Ge(o.month)||!Ge(o.day),S=g||v,M=o.weekYear||o.weekNumber;if((S||h)&&M)throw new So("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(v&&h)throw new So("Can't mix ordinal dates with month/day");let I=M||o.weekday&&!S,R,B,F=F0(a,d);I?(R=dV,B=lV,F=gh(F,s,c)):h?(R=fV,B=uV,F=D0(F)):(R=lE,B=cE);let G=!1;for(let xe of R){let ke=o[xe];Ge(ke)?G?o[xe]=B[xe]:o[xe]=F[xe]:G=!0}let J=I?w6(o,s,c):h?y6(o):p_(o),re=J||m_(o);if(re)return e.invalid(re);let de=I?u_(o,s,c):h?d_(o):o,[W,me]=V0(de,d,n),Le=new e({ts:W,zone:n,o:me,loc:i});return o.weekday&&S&&t.weekday!==Le.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${Le.toISO()}`):Le.isValid?Le:e.invalid(Le.invalid)}static fromISO(t,r={}){let[n,i]=R6(t);return sp(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=D6(t);return sp(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=$6(t);return sp(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(Ge(t)||Ge(r))throw new dr("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=vt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[c,a,d,h]=K6(s,t,r);return h?e.invalid(h):sp(c,a,n,`format ${r}`,t,d)}static fromString(t,r,n={}){return e.fromFormat(t,r,n)}static fromSQL(t,r={}){let[n,i]=V6(t);return sp(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new dr("need to specify a reason the DateTime is invalid");let n=t instanceof nn?t:new nn(t,r);if(bt.throwOnInvalid)throw new _0(n);return new e({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){let n=A_(t,vt.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(t,r={}){return P_(on.parseFormat(t),vt.fromObject(r)).map(i=>i.val).join("")}static resetCache(){z0=void 0,W0={}}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?k_(this).weekYear:NaN}get weekNumber(){return this.isValid?k_(this).weekNumber:NaN}get weekday(){return this.isValid?k_(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?O_(this).weekday:NaN}get localWeekNumber(){return this.isValid?O_(this).weekNumber:NaN}get localWeekYear(){return this.isValid?O_(this).weekYear:NaN}get ordinal(){return this.isValid?D0(this.c).ordinal:NaN}get monthShort(){return this.isValid?Js.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Js.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Js.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Js.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let t=864e5,r=6e4,n=jf(this.c),i=this.zone.offset(n-t),o=this.zone.offset(n+t),s=this.zone.offset(n-i*r),c=this.zone.offset(n-o*r);if(s===c)return[this];let a=n-s*r,d=n-c*r,h=F0(a,s),g=F0(d,c);return h.hour===g.hour&&h.minute===g.minute&&h.second===g.second&&h.millisecond===g.millisecond?[mu(this,{ts:a}),mu(this,{ts:d})]:[this]}get isInLeapYear(){return fu(this.year)}get daysInMonth(){return Jf(this.year,this.month)}get daysInYear(){return this.isValid?fc(this.year):NaN}get weeksInWeekYear(){return this.isValid?du(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?du(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:r,numberingSystem:n,calendar:i}=on.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(t=0,r={}){return this.setZone(At.instance(t),r)}toLocal(){return this.setZone(bt.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=To(t,bt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(r||n){let o=t.offset(this.ts),s=this.toObject();[i]=V0(s,o,t)}return mu(this,{ts:i,zone:t})}else return e.invalid(Eh(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return mu(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let r=Xf(t,nE),{minDaysInFirstWeek:n,startOfWeek:i}=f_(r,this.loc),o=!Ge(r.weekYear)||!Ge(r.weekNumber)||!Ge(r.weekday),s=!Ge(r.ordinal),c=!Ge(r.year),a=!Ge(r.month)||!Ge(r.day),d=c||a,h=r.weekYear||r.weekNumber;if((d||s)&&h)throw new So("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new So("Can't mix ordinal dates with month/day");let g;o?g=u_({...gh(this.c,n,i),...r},n,i):Ge(r.ordinal)?(g={...this.toObject(),...r},Ge(r.day)&&(g.day=Math.min(Jf(g.year,g.month),g.day))):g=d_({...D0(this.c),...r});let[v,S]=V0(g,this.o,this.zone);return mu(this,{ts:v,o:S})}plus(t){if(!this.isValid)return this;let r=ar.fromDurationLike(t);return mu(this,tE(this,r))}minus(t){if(!this.isValid)return this;let r=ar.fromDurationLike(t).negate();return mu(this,tE(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=ar.normalizeUnit(t);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break;case"milliseconds":break}if(i==="weeks")if(r){let o=this.loc.getStartOfWeek(),{weekday:s}=this;s<o&&(n.weekNumber=this.weekNumber-1),n.weekday=o}else n.weekday=1;if(i==="quarters"){let o=Math.ceil(this.month/3);n.month=(o-1)*3+1}return this.set(n)}endOf(t,r){return this.isValid?this.plus({[t]:1}).startOf(t,r).minus(1):this}toFormat(t,r={}){return this.isValid?on.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):L_}toLocaleString(t=sc,r={}){return this.isValid?on.create(this.loc.clone(r),t).formatDateTime(this):L_}toLocaleParts(t={}){return this.isValid?on.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;let s=t==="extended",c=N_(this,s);return c+="T",c+=rE(this,s,r,n,i,o),c}toISODate({format:t="extended"}={}){return this.isValid?N_(this,t==="extended"):null}toISOWeekDate(){return U0(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:o=!1,format:s="extended"}={}){return this.isValid?(i?"T":"")+rE(this,s==="extended",r,t,n,o):null}toRFC2822(){return U0(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return U0(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?N_(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(r||t)&&(n&&(i+=" "),r?i+="z":t&&(i+="ZZ")),U0(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():L_}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};let r={...this.c};return t.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,r="milliseconds",n={}){if(!this.isValid||!t.isValid)return ar.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=_6(r).map(ar.normalizeUnit),s=t.valueOf()>this.valueOf(),c=s?this:t,a=s?t:this,d=H6(c,a,o,i);return s?d.negate():d}diffNow(t="milliseconds",r={}){return this.diff(e.now(),t,r)}until(t){return this.isValid?Ys.fromDateTimes(this,t):this}hasSame(t,r,n){if(!this.isValid)return!1;let i=t.valueOf(),o=this.setZone(t.zone,{keepLocalTime:!0});return o.startOf(r,n)<=i&&i<=o.endOf(r,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;let r=t.base||e.fromObject({},{zone:this.zone}),n=t.padding?this<r?-t.padding:t.padding:0,i=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(i=t.unit,o=void 0),oE(r,this.plus(n),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?oE(t.base||e.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(e.isDateTime))throw new dr("min requires all arguments be DateTimes");return g_(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new dr("max requires all arguments be DateTimes");return g_(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=vt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return I_(s,t,r)}static fromStringExplain(t,r,n={}){return e.fromFormatExplain(t,r,n)}static buildFormatParser(t,r={}){let{locale:n=null,numberingSystem:i=null}=r,o=vt.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new Th(o,t)}static fromFormatParser(t,r,n={}){if(Ge(t)||Ge(r))throw new dr("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,s=vt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!s.equals(r.locale))throw new dr(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:c,zone:a,specificOffset:d,invalidReason:h}=r.explainFromTokens(t);return h?e.invalid(h):sp(c,a,n,`format ${r.format}`,t,d)}static get DATE_SHORT(){return sc}static get DATE_MED(){return Hm}static get DATE_MED_WITH_WEEKDAY(){return j2}static get DATE_FULL(){return qm}static get DATE_HUGE(){return Zm}static get TIME_SIMPLE(){return Ym}static get TIME_WITH_SECONDS(){return Jm}static get TIME_WITH_SHORT_OFFSET(){return Xm}static get TIME_WITH_LONG_OFFSET(){return Km}static get TIME_24_SIMPLE(){return Qm}static get TIME_24_WITH_SECONDS(){return eh}static get TIME_24_WITH_SHORT_OFFSET(){return th}static get TIME_24_WITH_LONG_OFFSET(){return rh}static get DATETIME_SHORT(){return nh}static get DATETIME_SHORT_WITH_SECONDS(){return ih}static get DATETIME_MED(){return oh}static get DATETIME_MED_WITH_SECONDS(){return sh}static get DATETIME_MED_WITH_WEEKDAY(){return H2}static get DATETIME_FULL(){return ah}static get DATETIME_FULL_WITH_SECONDS(){return ch}static get DATETIME_HUGE(){return lh}static get DATETIME_HUGE_WITH_SECONDS(){return uh}}});var In=V(()=>{dc();Ch();T_();E_();lu();qf();lc();a_();T0();uc()});function hu(e){return e instanceof Tr?e===zr.instance:e?.toString().toLowerCase()==="unknown"}function B0(e){return hu(e)?zr.instance:e}var zr,Mh=V(()=>{In();zr=class{};zr.instance=new er("Etc/UTC")});function ap(e,t,r){return e<t?e-t:e>r?e-r:0}function cp(e,t,r){return e<t?t:e>r?r:e}function Po(e,t=!0){if(e instanceof Tr)return e;if(e.toLowerCase()==="system")return"system";if(e.toLowerCase()==="utc")return"UTC";if(e.toLowerCase()==="unknown")return zr.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){let n=At.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(n)return n}let r=er.create(e);if(!r.isValid){if(t)throw new R_(G0.TimeZoneNotRecognized);return null}return r}var G0,hV,R_,Ph,uE=V(()=>{ic();Mh();In();(function(e){e.TimeZoneNotRecognized="TimeZoneNotRecognized"})(G0||(G0={}));hV={[G0.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},R_=class e extends Error{constructor(t,r){super(fs(hV[t],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};Ph=class e{constructor(t){this._date=t,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(t=0,r=1,n=1,i=0,o=0,s=0,c=0,a){if(isNaN(t)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||isNaN(s)||isNaN(c))return null;let d=Se.local(t,r).daysInMonth,h=Se.fromObject({day:cp(n,1,d),year:t,month:cp(r,1,12),hour:cp(i,0,23),minute:cp(o,0,59),second:cp(s,0,59),millisecond:cp(c,0,999)},{zone:Po(a)});return h=h.plus({months:ap(r,1,12),days:ap(n,1,d),hours:ap(i,0,23),minutes:ap(o,0,59),seconds:ap(s,0,59),milliseconds:ap(c,0,999)}),new e(h)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(t,r){let n=Po(r);return t.isUnknownTimeZone||n===zr.instance?e.fromParts(t.year,t.monthJS+1,t.day,t.hour,t.minute,t.second,t.millisecond,n):new e(t._date.setZone(n))}static dateJSToArcadeDate(t){return new e(Se.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,r="system"){let n=Po(r);return new e(Se.fromJSDate(t,{zone:n}))}static unknownEpochToArcadeDate(t){return new e(Se.fromMillis(t,{zone:zr.instance}))}static unknownDateJSToArcadeDate(t){return new e(Se.fromMillis(t.getTime(),{zone:zr.instance}))}static epochToArcadeDate(t,r="system"){let n=Po(r);return new e(Se.fromMillis(t,{zone:n}))}static dateTimeToArcadeDate(t){return new e(t)}clone(){return new e(this._date)}changeTimeZone(t){let r=Po(t);return e.dateTimeToArcadeDate(this._date.setZone(r))}static dateTimeAndZoneToArcadeDate(t,r){let n=Po(r);return t.zone===zr.instance||n===zr.instance?e.fromParts(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond,n):new e(t.setZone(n))}static nowToArcadeDate(t){let r=Po(t);return new e(Se.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new e(Se.utc())}get isSystem(){return this.timeZone==="system"||this.timeZone===e.systemTimeZoneCanonicalName}equals(t){return this.isSystem&&t.isSystem?this.toNumber()===t.toNumber():this.isUnknownTimeZone===t.isUnknownTimeZone&&this._date.equals(t._date)}get isUnknownTimeZone(){return this._date.zone===zr.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let t=this._date.weekday;return t>6&&(t=0),t}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if(this._date.zone.type==="system")return"system";let t=this.zone;return t.type==="fixed"?t.fixed===0?"UTC":t.formatOffset(0,"short"):t.name}stringify(){return JSON.stringify(this.toJSDate())}plus(t){return new e(this._date.plus(t))}diff(t,r="milliseconds"){return this._date.diff(t._date,r)[r]}toISODate(){return this._date.toISODate()}toISOString(t){return t?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(t,r){return this._date.toISOTime({suppressMilliseconds:t,includeOffset:r&&!this.isUnknownTimeZone})}toFormat(t,r){return this.isUnknownTimeZone&&(t=t.replaceAll("Z","")),this._date.toFormat(t,r)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new e(this._date.toUTC())}toLocal(){return new e(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(t){if(!t)return null;let r=Se.fromISO(t,{setZone:!0});return new e(r)}}});function Ct(e){return e?{remove(){e&&(e(),e=void 0)}}:gV}function wV(e){e.forEach(t=>t?.remove())}function gu(e){return Ct(()=>wV(e))}var gV,oi=V(()=>{gV={remove:()=>{}}});function fE(){let e=D_?.getAttribute("lang"),t=globalThis.navigator?.language;return bV??e??t??"en"}function Ji(){return Ih===void 0&&(Ih=fE()),Ih}function $_(e){return j0.push(e),Ct(()=>j0.splice(j0.indexOf(e),1))}function lp(e){return H0.push(e),Ct(()=>H0.splice(H0.indexOf(e),1))}function dE(){let e=yV??fE();Ih!==e&&([...H0].forEach(t=>t(e)),Ih=e,[...j0].forEach(t=>t(e)))}var yV,Ih,bV,D_,j0,H0,gc=V(()=>{oi();bV=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,D_=globalThis.document?.documentElement;j0=[];H0=[];globalThis.addEventListener?.("languagechange",dE),D_&&new MutationObserver(()=>{dE()}).observe(D_,{attributeFilter:["lang"]})});function pE(e){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let t="",r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(let n of e.match(r)||[])switch(n){case"D":t+="d";break;case"DD":t+="dd";break;case"DDD":t+="o";break;case"d":t+="c";break;case"ddd":t+="ccc";break;case"dddd":t+="cccc";break;case"M":t+="L";break;case"MM":t+="LL";break;case"MMM":t+="LLL";break;case"MMMM":t+="LLLL";break;case"YY":t+="yy";break;case"Y":case"YYYY":t+="yyyy";break;case"Q":t+="q";break;case"X":case"x":t+=n;break;default:n.length>=2&&n.slice(0,1)==="["&&n.slice(-1)==="]"?t+=`'${n.slice(1,-1)}'`:t+=`'${n}'`}return t}var sn,Ah=V(()=>{uE();gc();In();sn=class e{constructor(t,r,n){this._year=t,this._month=r,this._day=n,this.declaredRootClass="esri.core.sql.dateonly"}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(t){return t instanceof e&&t.day===this.day&&t.month===this.month&&t.year===this.year}clone(){return new e(this._year,this._month,this._day)}toDateTime(t){return Se.fromObject({day:this.day,month:this.month,year:this.year},{zone:Po(t)})}toDateTimeLuxon(t){return Se.fromObject({day:this.day,month:this.month,year:this.year},{zone:Po(t)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(t=null,r=!0){if(t===null||t==="")return this.toString();if(r&&(t=pE(t)),!t)return"";let n=this.toDateTime("unknown");return Ph.dateTimeToArcadeDate(n).toFormat(t,{locale:Ji(),numberingSystem:"latn"})}toArcadeDate(){let t=this.toDateTime("unknown");return Ph.dateTimeToArcadeDate(t)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(t,r){return e.fromDateTime(this.toUTCDateTime().plus({[t]:r}))}toUTCDateTime(){return Se.utc(this.year,this.month,this.day,0,0,0,0)}difference(t,r){switch(r.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return r==="M"?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}static fromMilliseconds(t){let r=Se.fromMillis(t,{zone:At.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromSeconds(t){let r=Se.fromSeconds(t,{zone:At.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromReader(t){if(!t)return null;let r=t.split("-");return r.length!==3?null:new e(parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10))}static fromParts(t,r,n){let i=new e(t,r,n);return i.isValid===!1?null:i}static fromDateJS(t){return e.fromParts(t.getFullYear(),t.getMonth()+1,t.getDay())}static fromDateTime(t){return e.fromParts(t.year,t.month,t.day)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,r=null){if(t===""||t===null)return null;let n=[];if(r)(r=pE(r))&&n.push(r);else if(r===null||r===""){let i=Se.fromISO(t,{setZone:!0});return i.isValid?e.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=Se.fromFormat(t,r??i);if(o.isValid)return new e(o.year,o.month,o.day)}return null}static fromNow(t="system"){let r=Se.fromJSDate(new Date).setZone(Po(t));return new e(r.year,r.month,r.day)}}});var te,vV,ae,wc=V(()=>{ic();(function(e){e.InvalidFunctionParameters="InvalidFunctionParameters",e.InvalidValueForAggregateFunction="InvalidValueForAggregateFunction",e.UnsupportedSqlFunction="UnsupportedSqlFunction",e.UnsupportedOperator="UnsupportedOperator",e.UnsupportedSyntax="UnsupportedSyntax",e.UnsupportedIsRhs="UnsupportedIsRhs",e.UnsupportedIsLhs="UnsupportedIsLhs",e.InvalidDataType="InvalidDataType",e.CannotCastValue="CannotCastValue",e.FunctionNotRecognized="FunctionNotRecognized",e.InvalidTime="InvalidTime",e.InvalidParameterCount="InvalidParameterCount",e.InvalidTimeStamp="InvalidTimeStamp",e.InvalidDate="InvalidDate",e.InvalidOperator="InvalidOperator",e.IllegalInterval="IllegalInterval",e.YearMonthIntervals="YearMonthIntervals",e.PrimarySecondaryQualifiers="PrimarySecondaryQualifiers",e.MissingStatisticParameters="MissingStatisticParameters"})(te||(te={}));vV={[te.InvalidValueForAggregateFunction]:"Invalid value used in aggregate function",[te.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[te.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[te.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[te.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[te.UnsupportedOperator]:"Unsupported operator - {operator}",[te.UnsupportedSyntax]:"Unsupported syntax - {node}",[te.UnsupportedSqlFunction]:"Sql function not found = {function}",[te.InvalidDataType]:"Invalid sql data type",[te.InvalidDate]:"Invalid date encountered",[te.InvalidOperator]:"Invalid operator encountered",[te.InvalidTime]:"Invalid time encountered",[te.IllegalInterval]:"Illegal interval",[te.FunctionNotRecognized]:"Function not recognized",[te.InvalidTimeStamp]:"Invalid timestamp encountered",[te.InvalidParameterCount]:"Invalid parameter count for call to {name}",[te.PrimarySecondaryQualifiers]:"Primary and Secondary SqlInterval qualifiers not supported",[te.YearMonthIntervals]:"Year-Month Intervals not supported",[te.CannotCastValue]:"Cannot cast value to the required data type"},ae=class e extends Error{constructor(t,r){super(fs(vV[t],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}});function mE(e){return Number.isNaN(e)||e===0?e:Math.trunc(e)}var yn,Lh=V(()=>{In();yn=class e{constructor(t){this._timeStampOffset=t,this._date=null}toDateTime(){return this._date??(this._date=Se.fromISO(this._timeStampOffset,{setZone:!0})),this._date}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return mE(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return mE(this.toDateTime().offset%60)}toMilliseconds(){return this.toDateTime().toMillis()}get hour(){return this.toDateTime().hour}get minute(){return this.toDateTime().minute}get second(){return this.toDateTime().second}get day(){return this.toDateTime().day}get month(){return this.toDateTime().month}get year(){return this.toDateTime().year}startOfDay(){return e.fromDateTime(this.toDateTime().startOf("day"))}static fromJSDate(t){return new e(Se.fromJSDate(t).toISO({includeOffset:!0}))}static fromDateTime(t){return new e(t.toISO({includeOffset:!0}))}static fromParts(t,r,n=0,i=0,o=0,s=0,c=0,a=!1,d=0,h=0){let g=`${t.toString().padStart(4,"0")}-${r.toString().padStart(2,"0")}-${n.toString().padStart(2,"0")}`,v="";s<10&&(v="0");let S=`${i.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${v+s.toString()}`;c!==0&&(S+="."+c.toString().padStart(3,"0"));let M=`${a?"-":"+"}${d.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`;return new e(g+"T"+S+M)}toStorageFormat(){return this._timeStampOffset}toString(){return this._timeStampOffset}toSQLValue(){let t=this.toDateTime().toSQL({includeOffset:!0,includeOffsetSpace:!0});return t&&(t=t.replace(".000","")),t}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}addMilliseconds(t){let r=this.toDateTime().plus(t);return e.fromDateTime(r)}}});function N(e,t,r,n){var i,o=arguments.length,s=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(i=e[c])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}var pt=V(()=>{});var q0,F_=V(()=>{q0="20241130"});var Tt,yc=V(()=>{et();ds();F_();Tt={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(HT(Tt,globalThis.esriConfig,!0),delete Tt.has),!Tt.assetsPath){{let e="4.32.0";Tt.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${q0}/assets`}Tt.defaultAssetsPath=Tt.assetsPath}});function _V(e,t,...r){console[e](`[${t}]`,...r)}function SV(...e){return XT(JSON.stringify(e,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var hE,ct,tt=V(()=>{yc();et();ic();hE={info:0,warn:1,error:2,none:3},ct=class e{constructor(t){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},t.level!=null&&(this.level=t.level),t.writer!=null&&(this.writer=t.writer),this._module=t.module,e._loggers.set(this.module,this);let r=this.module.lastIndexOf(".");r!==-1&&(this._parent=e.getLogger(this.module.slice(0,r)))}get module(){return this._module}get parent(){return this._parent}error(...t){this._log("error","always",...t)}warn(...t){this._log("warn","always",...t)}info(...t){this._log("info","always",...t)}errorOnce(...t){this._log("error","once",...t)}warnOnce(...t){this._log("warn","once",...t)}infoOnce(...t){this._log("info","once",...t)}errorOncePerTick(...t){this._log("error","oncePerTick",...t)}warnOncePerTick(...t){this._log("warn","oncePerTick",...t)}infoOncePerTick(...t){this._log("info","oncePerTick",...t)}get test(){}static get test(){}static getLogger(t){return t=typeof t!="string"?t.declaredClass:t,e._loggers.get(t)||new e({module:t})}_log(t,r,...n){if(this._matchLevel(t)){if(r!=="always"&&!e._throttlingDisabled){let i=SV(n),o=this._loggedMessages[t].get(i);if(r==="once"&&o!=null||r==="oncePerTick"&&o&&o>=e._tickCounter)return;this._loggedMessages[t].set(i,e._tickCounter),e._scheduleTickCounterIncrement()}for(let i of Tt.log.interceptors)if(i(t,this.module,...n))return;this._inheritedWriter()(t,this.module,...n)}}_parentWithMember(t,r){let n=this;for(;n!=null;){let i=n[t];if(i!=null)return i;n=n.parent}return r}_inheritedWriter(){return this._parentWithMember("writer",_V)}_matchLevel(t){let r=Tt.log.level||"warn";return hE[this._parentWithMember("level",r)]<=hE[t]}static _scheduleTickCounterIncrement(){e._tickCounterScheduled||(e._tickCounterScheduled=!0,Promise.resolve().then(()=>{e._tickCounter++,e._tickCounterScheduled=!1}))}};ct._loggers=new Map,ct._tickCounter=0,ct._tickCounterScheduled=!1,ct._throttlingDisabled=!1});function Z0(e,t,r){let n=e.get(t);if(n!==void 0)return n;let i=r();return e.set(t,i),i}var U_=V(()=>{});function xV(e){return e==null?e:new Date(e)}function CV(e){return e==null?e:!!e}function TV(e){return e==null?e:e.toString()}function B_(e,t=0){return e==null?e:(e=parseFloat(e),isNaN(e)?t:e)}function EV(e){return e==null?e:Math.round(parseFloat(e))}function MV(e){return null}function wE(e,t){return r=>{let n=e(r);return t.step!=null&&(n=Math.round(n/t.step)*t.step),t.min!=null&&(n=Math.max(t.min,n)),t.max!=null&&(n=Math.min(t.max,n)),n}}function yE(e){return e?.constructor&&e.constructor.__accessorMetadata__!==void 0}function Y0(e,t){return t!=null&&e&&!(t instanceof e)}function bE(e){return e&&"isCollection"in e}function gE(e){return e?.Type?typeof e.Type=="function"?e.Type:e.Type.base:null}function PV(e,t){if(!t?.constructor||!bE(t.constructor))return V_(e,t)?t:new e(t);let r=gE(e.prototype.itemType),n=gE(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(V_(e,t),t):new e(t):t}function V_(e,t){return!!yE(t)&&(up().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+J0(e)+"'"),!0)}function G_(e,t){return t==null?t:bE(e)?PV(e,t):Y0(e,t)?V_(e,t)?t:new e(t):t}function J0(e){return e?.prototype?.declaredClass||"unknown"}function AV(e){switch(e){case Number:return t=>B_(t);case ai:return EV;case Boolean:return CV;case String:return TV;case Date:return xV;case Oh:return MV;default:return Z0(IV,e,()=>G_.bind(null,e))}}function si(e,t){let r=AV(e);return arguments.length===1?r:r(t)}function dp(e,t,r){return arguments.length===1?dp.bind(null,e):t&&(Array.isArray(t)?t.map(n=>e(n,r)):[e(t,r)])}function vE(e,t){return arguments.length===1?dp(r=>si(e,r)):dp(r=>si(e,r),t)}function _E(e,t,r){return t!==0&&Array.isArray(r)?r.map(n=>_E(e,t-1,n)):e(r)}function kh(e,t,r){if(arguments.length===2)return o=>kh(e,t,o);if(!r)return r;r=_E(e,t,r);let n=t,i=r;for(;n>0&&Array.isArray(i);)n--,i=i[0];if(i!==void 0)for(let o=0;o<n;o++)r=[r];return r}function SE(e,t,r){return arguments.length===2?kh(n=>si(e,n),t):kh(n=>si(e,n),t,r)}function X0(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!(r==="string"||r==="number"||r==="function"&&e.length>1)})}function K0(e,t){if(arguments.length===2)return K0(e).call(null,t);let r=new Set,n=e.filter(c=>typeof c!="function"),i=e.filter(c=>typeof c=="function");for(let c of e)typeof c!="string"&&typeof c!="number"||r.add(c);let o=null,s=null;return(c,a)=>{if(c==null)return c;let d=typeof c,h=d==="string"||d==="number";return h&&(r.has(c)||i.some(g=>d==="string"&&g===String||d==="number"&&g===Number))||d==="object"&&i.some(g=>!Y0(c,g))?c:(h&&n.length?(o||(o=n.map(g=>typeof g=="string"?`'${g}'`:`${g}`).join(", ")),up().error("Accessor#set",`'${c}' is not a valid value for this property, only the following values are valid: ${o}`)):typeof c=="object"&&i.length?(s||(s=i.map(g=>J0(g)).join(", ")),up().error("Accessor#set",`'${c}' is not a valid value for this property, value must be one of ${s}`)):up().error("Accessor#set",`'${c}' is not a valid value for this property`),a&&(a.valid=!1),null)}}function Io(e,t){if(arguments.length===2)return Io(e).call(null,t);let r={},n=[],i=[];for(let a in e.typeMap){let d=e.typeMap[a];r[a]=si(d),n.push(J0(d)),i.push(a)}let o=()=>`'${n.join("', '")}'`,s=()=>`'${i.join("', '")}'`,c=typeof e.key=="string"?a=>a[e.key]:e.key;return a=>{if(e.base&&!Y0(e.base,a)||a==null)return a;let d=c(a)||e.defaultKeyValue,h=r[d];if(!h)return up().error("Accessor#set",`Invalid property value, value needs to be one of ${o()}, or a plain object that can autocast (having .type = ${s()})`),null;if(!Y0(e.typeMap[d],a))return a;if(typeof e.key=="string"&&!yE(a)){let g={};for(let v in a)v!==e.key&&(g[v]=a[v]);return h(g)}return h(a)}}function xE(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function j_(e){switch(e.type){case"native":return si(e.value);case"array":return dp(j_(e.value));case"one-of":return LV(e);default:return null}}function LV(e){let t=null;return(r,n)=>W_(r,e)?r:(t==null&&(t=z_(e)),up().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}function z_(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case ai:return"integer";case Date:return"date";case Oh:return"null";default:return J0(e.value)}case"array":return`array of ${z_(e.value)}`;case"one-of":{let t=e.values.map(r=>z_(r));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function W_(e,t){if(e==null)return!0;switch(t.type){case"native":switch(t.value){case Number:case ai:return typeof e=="number";case Boolean:return typeof e=="boolean";case String:return typeof e=="string";case Oh:return e===null}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(r=>!W_(r,t.value));case"one-of":return t.values.some(r=>W_(e,r))}}var up,IV,ai,Oh,Xi=V(()=>{et();tt();U_();up=()=>ct.getLogger("esri.core.accessorSupport.ensureTypes");IV=new WeakMap;ai=class{},Oh=class{}});function xi(e){return e.__accessor__??null}function TE(e,t){return e?.metadata?.[t]!=null}function fp(e,t,r){return r?Q0(e,t,{policy:r,path:""}):Q0(e,t,null)}function Q0(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=i,s=null,c="merge";if(r&&(s=r.path?`${r.path}.${i}`:i,c=r.policy(s)),c==="replace"||c==="replace-arrays"&&Array.isArray(n[o]))return n[o]=t[o],n;if(n[o]===void 0)return n[o]=qe(t[o]),n;let a=n[o],d=t[o];if(a===d)return n;if(Array.isArray(d)||Array.isArray(n))a=a?Array.isArray(a)?n[o]=a.slice():n[o]=[a]:n[o]=[],d&&(Array.isArray(d)||(d=[d]),d.forEach(h=>{a.includes(h)||a.push(h)}));else if(d&&typeof d=="object")if(r){let h=r.path;r.path=s,n[o]=Q0(a,d,r),r.path=h}else n[o]=Q0(a,d,null);else n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[o]=d);return n},e||{}):e}function ew(e){return Array.isArray(e)?e:e.split(".")}function CE(e){return e.includes(",")?e.split(",").map(t=>t.trim()):[e.trim()]}function kV(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...CE(r));return t}return CE(e)}function H_(e,t,r,n){let i=kV(t);if(i.length!==1){let o=i.map(s=>n(e,s,r));return gu(o)}return n(e,i[0],r)}var Xs=V(()=>{oi();or()});function EE(e,t){let r=e[e.length-1]==="?"?e.slice(0,-1):e;if(t.getItemAt!=null||Array.isArray(t)){let i=parseInt(r,10);if(!isNaN(i))return Array.isArray(t)?t[i]:t.at(i)}let n=xi(t);return TE(n,r)?n.get(r):t[r]}function ME(e,t,r){if(e==null)return e;let n=EE(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:ME(n,t,r+1)}function wu(e,t,r=0){return typeof t!="string"||t.includes(".")?ME(e,ew(t),r):EE(t,e)}function ps(e,t){return wu(e,t)}function q_(e,t){return wu(t,e)!==void 0}var yu=V(()=>{Xs()});function bc(e){let t=e.constructor.__accessorMetadata__,r=Object.prototype.hasOwnProperty.call(e.constructor,"__accessorMetadata__");if(t){if(!r){t=Object.create(t);for(let n in t)t[n]=qe(t[n]);Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0})}}else t={},Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0});return e.constructor.__accessorMetadata__}function pp(e,t){let r=bc(e),n=r[t];return n||(n=r[t]={}),n}function PE(e,t){return fp(e,t,NV)}function NV(e){return OV.test(e)?"replace":"merge"}var OV,mp=V(()=>{or();Xs();OV=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function RV(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(Hi(n,t)??"").toString())}var hp,Z_=V(()=>{ds();hp=class{constructor(t,r,n=void 0){this.name=t,this.details=n,this.message=(r&&RV(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var We,An=V(()=>{or();tt();Z_();We=class e extends hp{constructor(t,r,n){super(t,r,n)}toJSON(){if(this.details!=null)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(t,r)=>{if(r&&typeof r=="object"&&typeof r.toJSON=="function")return r;try{return qe(r)}catch{return"[object]"}}))}}catch(t){throw ct.getLogger("esri.core.Error").error(t),t}return{name:this.name,message:this.message,details:this.details}}static fromJSON(t){return new e(t.name,t.message,t.details)}};We.prototype.type="error"});function gp(e,t,r){if(e&&t)if(typeof t=="object")for(let n of Object.getOwnPropertyNames(t))gp(e,n,t[n]);else{if(t.includes(".")){let i=t.split("."),o=i.splice(-1,1)[0];return void gp(ps(e,i),o,r)}let n=e.__accessor__;n!=null&&DV(t,n),e[t]=r}}function DV(e,t){if(he("esri-unknown-property-errors")&&!$V(e,t))throw new We("set:unknown-property",FV(e,t))}function $V(e,t){return t.metadata[e]!=null}function FV(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}var Y_=V(()=>{An();et();tt();yu()});function z(e={}){return(t,r)=>{if(t===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${t.name}.${r}. Accessor does not support static properties.`);let n=Object.getOwnPropertyDescriptor(t,r),i=pp(t,r);n&&(n.get||n.set?(i.get=n.get||i.get,i.set=n.set||i.set):"value"in n&&("value"in e&&ct.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${t.constructor.name}" already defined in the metadata`,e),i.value=e.value=n.value)),e.readOnly!=null&&(i.readOnly=e.readOnly);let o=e.aliasOf;if(o){let a=typeof o=="string"?o:o.source,d=typeof o=="string"?null:o.overridable===!0,h;i.dependsOn=[a],i.get=function(){let g=ps(this,a);if(typeof g=="function"){h||(h=a.split(".").slice(0,-1).join("."));let v=ps(this,h);v&&(g=g.bind(v))}return g},i.readOnly||(i.set=d?function(g){this._override(r,g)}:function(g){gp(this,a,g)})}let s=e.type,c=e.types;if(!i.cast){let a;s?a=UV(s):c&&(a=Array.isArray(c)?dp(Io(c[0])):Io(c)),e.cast=VV(e.cast,a)}PE(i,e),e.range&&(i.cast=wE(i.cast,e.range))}}function tw(e,t,r){let n=pp(e,r);n.json||(n.json={});let i=n.json;return t!==void 0&&(i.origins||(i.origins={}),i.origins[t]||(i.origins[t]={}),i=i.origins[t]),i}function UV(e){let t=0,r=e;if(xE(e))return j_(e);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],t++;let n=r;if(X0(n))return t===0?K0(n):kh(K0(n),t);if(t===1)return vE(n);if(t>1)return SE(n,t);let i=e;return i.from?i.from:si(i)}function VV(e,t){if(e||t)return e?t?(r,n)=>t(e(r,n),n):e:t}var mt=V(()=>{tt();Xi();yu();mp();Y_()});var rw,J_=V(()=>{rw=Symbol("Accessor-beforeDestroy")});var an,Nh=V(()=>{(function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"})(an||(an={}))});var ht,nw=V(()=>{(function(e){e[e.Dirty=1]="Dirty",e[e.Overridden=2]="Overridden",e[e.Computing=4]="Computing",e[e.NonNullable=8]="NonNullable",e[e.HasDefaultValue=16]="HasDefaultValue",e[e.DepTrackingInitialized=32]="DepTrackingInitialized",e[e.AutoTracked=64]="AutoTracked",e[e.ExplicitlyTracking=128]="ExplicitlyTracking"})(ht||(ht={}))});var ms,Rh=V(()=>{ms=class{constructor(t){this.accessed=void 0,this._handles=void 0,this._observer=t}destroy(){this.accessed?.clear(),this.clear()}onAccessed(t){this._observer!=null&&t!==this._observer&&(this.accessed==null&&(this.accessed=new Set),this.accessed.add(t))}onTrackingEnd(){this._observer!=null&&(this.clear(),this.accessed!=null&&(this._handles==null&&(this._handles=[]),this.accessed.forEach(t=>{this._handles.push(t.observe(this._observer))}),this.accessed.clear()))}clear(){if(this._handles!=null){for(let t=0;t<this._handles.length;++t)this._handles[t].remove();this._handles.length=0}}}});function Je(e){$h.onAccessed(e)}function Ao(e,t,r){if(iw)return X_(e,t,r);let n=null;return LE(e),n=t.call(r),kE(),n}function AE(e,t){return Ao(sw,e,t)}function X_(e,t,r){let n=iw;iw=!0,LE(e);let i=null;try{i=t.call(r)}catch(o){ow&&ct.getLogger("esri.core.accessorSupport.tracking").error(o)}return kE(),iw=n,i}function LE(e){$h=e,Dh.push(e)}function kE(){let e=Dh.length;if(e>1){let t=Dh.pop();$h=Dh[e-2],t.onTrackingEnd()}else if(e===1){let t=Dh.pop();$h=sw,t.onTrackingEnd()}else $h=sw}function K_(e,t){if(t.flags&ht.DepTrackingInitialized)return;t.flags|=ht.DepTrackingInitialized;let r=ow;ow=!1,t.flags&ht.AutoTracked?X_(t.trackingTarget,t.metadata.get,e):Q_(e,t),ow=r}function Q_(e,t){t.flags&ht.ExplicitlyTracking||(t.flags|=ht.ExplicitlyTracking,X_(t.trackingTarget,()=>{let r=t.metadata.dependsOn||zV;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=ew(n);for(let o=0,s=e;o<i.length&&s!=null&&typeof s=="object";++o)s=IE(s,i[o],o!==i.length-1)}else IE(e,n,!1)}),t.flags&=~ht.ExplicitlyTracking)}function IE(e,t,r){let n=t[t.length-1]==="?"?t.slice(0,-1):t;if(e.getItemAt!=null||Array.isArray(e)){let o=parseInt(n,10);if(!isNaN(o))return Array.isArray(e)?e[o]:e.at(o)}let i=xi(e);if(i){let o=i.propertiesByName.get(n);o&&(Je(o),K_(e,o))}return r?e[n]:void 0}var sw,Dh,$h,iw,ow,zV,bu=V(()=>{et();tt();Xs();nw();Rh();sw=new ms,Dh=[],$h=sw;iw=!1,ow=!1;zV=[]});function OE(e){if(e.json&&e.json.origins){let t=e.json.origins,r={"web-document":["web-scene","web-map"]};for(let n in r)if(t[n]){let i=t[n];r[n].forEach(o=>{t[o]=i}),delete t[n]}}}var NE=V(()=>{});var Fh,RE=V(()=>{Z_();Fh=class extends hp{constructor(t,r,n){super(t,r,n)}};Fh.prototype.type="warning"});function aw(e){return!!e&&e.prototype?.declaredClass&&e.prototype.declaredClass.indexOf("esri.core.Collection")===0}var eS=V(()=>{});function rS(e,t,r){e&&(!r&&!t.read||t.read?.reader||t.read?.enabled===!1||GV(e)&&Hs("read.reader",nS(e),t))}function nS(e){let t=e.ndimArray??0;if(t>1)return BV(e);if(t===1)return DE(e);if("type"in e&&FE(e.type)){let r=e.type.prototype?.itemType?.Type,n=DE(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let c=n(i,o,s);return c&&new e.type(c)}}return iS(e)}function iS(e){return"type"in e?WV(e.type):jV(e.types)}function WV(e){return e.prototype.read?(t,r,n)=>{if(t==null)return t;let i=typeof t;if(i!=="object")return void tS().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${i}'`);let o=new e;return o.read(t,n),o}:e.fromJSON}function $E(e,t,r,n){return n!==0&&Array.isArray(t)?t.map(i=>$E(e,i,r,n-1)):e(t,void 0,r)}function BV(e){let t=iS(e),r=$E.bind(null,t),n=e.ndimArray??0;return(i,o,s)=>{if(i==null)return i;i=r(i,s,n);let c=n,a=i;for(;c>0&&Array.isArray(a);)c--,a=a[0];if(a!==void 0)for(let d=0;d<c;d++)i=[i];return i}}function DE(e){let t=iS(e);return(r,n,i)=>{if(r==null)return r;if(Array.isArray(r)){let s=[];for(let c of r){let a=t(c,void 0,i);a!==void 0&&s.push(a)}return s}let o=t(r,void 0,i);return o!==void 0?[o]:void 0}}function FE(e){if(!aw(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&(typeof t.Type=="function"?oS(t.Type):UE(t.Type))}function GV(e){return"types"in e?UE(e.types):oS(e.type)}function oS(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||FE(e))}function UE(e){for(let t in e.typeMap)if(!oS(e.typeMap[t]))return!1;return!0}function jV(e){let t=null,r=e.errorContext??"type",n=e.validate;return(i,o,s)=>{if(i==null)return i;let c=typeof i;if(c!=="object")return void tS().error(`Expected JSON value of type 'object' to deserialize, but got '${c}'`);t||(t=HV(e));let a=e.key;if(typeof a!="string")return;let d=i[a],h=d?t[d]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!h){let v=`Type '${d||"unknown"}' is not supported`;return s?.messages&&i&&s.messages.push(new Fh(`${r}:unsupported`,v,{definition:i,context:s})),void tS().error(v)}let g=new h;return g.read(i,s),n?n(g):g}}function HV(e){let t={};for(let r in e.typeMap){let n=e.typeMap[r],i=bc(n.prototype);if(typeof e.key=="function")continue;let o=i[e.key];if(!o)continue;if(o.json?.type&&Array.isArray(o.json.type)&&o.json.type.length===1&&typeof o.json.type[0]=="string"){t[o.json.type[0]]=n;continue}let s=o.json?.write;if(!s?.writer){t[r]=n;continue}let c=s.target,a=typeof c=="string"?c:e.key,d={};s.writer(r,d,a),d[a]&&(t[d[a]]=n)}return t}var tS,sS=V(()=>{tt();ds();RE();mp();eS();tS=()=>ct.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function BE(e){if(e.json||(e.json={}),zE(e.json),WE(e.json),VE(e.json),e.json.origins)for(let t in e.json.origins)zE(e.json.origins[t]),WE(e.json.origins[t]),VE(e.json.origins[t]);return!0}function VE(e){e.name&&(e.read&&typeof e.read=="object"?e.read.source===void 0&&(e.read.source=e.name):e.read={source:e.name},e.write&&typeof e.write=="object"?e.write.target===void 0&&(e.write.target=e.name):e.write={target:e.name})}function zE(e){typeof e.read=="boolean"?e.read={enabled:e.read}:typeof e.read=="function"?e.read={enabled:!0,reader:e.read}:e.read&&typeof e.read=="object"&&e.read.enabled===void 0&&(e.read.enabled=!0)}function WE(e){typeof e.write=="boolean"?e.write={enabled:e.write}:typeof e.write=="function"?e.write={enabled:!0,writer:e.write}:e.write&&typeof e.write=="object"&&e.write.enabled===void 0&&(e.write.enabled=!0)}var GE=V(()=>{});function aS(e,t){if(!t.write||t.write.writer||t.write.enabled===!1&&!t.write.overridePolicy)return;let r=e?.ndimArray??0;e&&(r===1||"type"in e&&aw(e.type))?t.write.writer=JV:r>1?t.write.writer=XV(r):t.types?Array.isArray(t.types)?t.write.writer=ZV(t.types[0]):t.write.writer=qV(t.types):t.write.writer=Uh}function qV(e){return(t,r,n,i)=>t?jE(t,e,i)?Uh(t,r,n,i):void 0:Uh(t,r,n,i)}function jE(e,t,r){for(let n in t.typeMap)if(e instanceof t.typeMap[n])return!0;if(r?.messages){let n=t.errorContext??"type",i=`Values of type '${(typeof t.key!="function"?e[t.key]:e.declaredClass)??"Unknown"}' cannot be written`;r&&r.messages&&e&&r.messages.push(new We(`${n}:unsupported`,i,{definition:e,context:r})),ct.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function ZV(e){return(t,r,n,i)=>!t||!Array.isArray(t)?Uh(t,r,n,i):Uh(t.filter(o=>jE(o,e,i)),r,n,i)}function Uh(e,t,r,n){Hs(r,cw(e,n),t)}function cw(e,t){return e&&typeof e.write=="function"?e.write({},t):e&&typeof e.toJSON=="function"?e.toJSON():typeof e=="number"?YV(e):e}function YV(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function JV(e,t,r,n){let i;e===null?i=null:e&&typeof e.map=="function"?(i=e.map(o=>cw(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[cw(e,n)],Hs(r,i,t)}function HE(e,t,r){return r!==0&&Array.isArray(e)?e.map(n=>HE(n,t,r-1)):cw(e,t)}function XV(e){return(t,r,n,i)=>{let o;if(t===null)o=null;else{o=HE(t,i,e);let s=e,c=o;for(;s>0&&Array.isArray(c);)s--,c=c[0];if(c!==void 0)for(let a=0;a<s;a++)o=[o]}Hs(n,o,r)}}var qE=V(()=>{An();tt();ds();eS()});function ZE(e,t){return lS(e,"any",t?.origin)}function lw(e,t){return lS(e,"read",t?.origin)}function YE(e,t){return lS(e,"write",t?.origin)}function lS(e,t,r){let n=e?.json;if(n?.origins&&r){let i;i=r==="link-chart"?n.origins[r]&&(t==="any"||t in n.origins[r])?n.origins[r]:n.origins["web-map"]:n.origins[r],i&&(t==="any"||t in i)&&(n=i)}return n}function KV(e){let t=QV(e);if(e.json.origins)for(let r in e.json.origins){let n=e.json.origins[r],i=n.types?ez(n):t;rS(i,n,!1),n.types&&!n.write&&e.json.write?.enabled&&(n.write={...e.json.write}),aS(i,n)}rS(t,e.json,!0),aS(t,e.json)}function QV(e){return e.json.types?cS(e.json):e.type?JE(e):cS(e)}function ez(e){return e.type?JE(e):cS(e)}function JE(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!X0(r);)r=r[0],t++;return{type:r,ndimArray:t}}function cS(e){if(!e.types)return;let t=0,r=e.types;for(;Array.isArray(r);)r=r[0],t++;return{types:r,ndimArray:t}}function XE(e){BE(e)&&(OE(e),KV(e))}var uw=V(()=>{Xi();NE();sS();GE();qE()});function Ie(e){return t=>{e??(e="esri.core.Accessor"),t.prototype.declaredClass=e,rz(t);let r=[],n=[],i=t.prototype;for(;i;)i.hasOwnProperty("initialize")&&!uS.has(i.initialize)&&(uS.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!dS.has(i.destroy)&&(dS.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);uS.clear(),dS.clear();let o=class extends t{constructor(...c){if(super(...c),this.constructor===o&&typeof this.postscript=="function"){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let a=r.length-1;a>=0;a--)r[a].call(this)}}),n.length){let a=!1,d=this[rw];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!a){a=!0,d.call(this);for(let h=0;h<n.length;h++)n[h].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};o.__accessorMetadata__=bc(t.prototype),o.prototype.declaredClass=e;let s=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(o,"name",{value:s,configurable:!0}),o}}function tz(e,t){return t.get==null?function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n===void 0)return;r.mutable&&Je(n);let i=r.store;return i.has(e)?i.get(e):n.metadata.value}:function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n!==void 0)return n.getComputed(r)}}function rz(e){let t=e.prototype,r=bc(t),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];XE(o),n[i]={enumerable:!0,configurable:!0,get:tz(i,o),set(s){let c=this.__accessor__;if(c!==void 0){if(c.mutable)return c.initialized&&o.readOnly?KE("read-only",i):c.lifecycle===an.CONSTRUCTED&&o.constructOnly?KE("construct-only",i):void c.set(i,s)}else Object.defineProperty(this,i,{enumerable:!0,configurable:!0,writable:!0,value:s})}}}Object.defineProperties(e.prototype,n)}var uS,dS,KE,ut=V(()=>{et();tt();J_();Nh();mp();bu();uw();uS=new Set,dS=new Set;KE=(e,t)=>{ct.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}});function fS(e){return e!=null&&typeof e[Symbol.iterator]=="function"}var QE=V(()=>{});function dw(e){return e||"_default_"}function e8(e){for(let t of e)t instanceof wp?t.removeAll():t.remove()}function t8(e){return e!=null&&(!!e.remove||e instanceof wp)}var wp,r8=V(()=>{QE();wp=class{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let t=0;return this._groups.forEach(r=>{t+=r.length}),t}add(t,r){if(fS(t)){let n=this._getOrCreateGroup(r);for(let i of t)t8(i)&&n.push(i)}else t8(t)&&this._getOrCreateGroup(r).push(t);return this}forEach(t,r){if(typeof t=="function")this._groups.forEach(n=>n.forEach(t));else{let n=this._getGroup(t);n&&r&&n.forEach(r)}}has(t){return this._groups.has(dw(t))}remove(t){if(typeof t!="string"&&fS(t)){for(let r of t)this.remove(r);return this}return this.has(t)?(e8(this._getGroup(t)),this._groups.delete(dw(t)),this):this}removeAll(){return this._groups.forEach(e8),this._groups.clear(),this}removeReference(t){return this._groups.delete(t),this}_getOrCreateGroup(t){if(this.has(t))return this._getGroup(t);let r=[];return this._groups.set(dw(t),r),r}_getGroup(t){return this._groups.get(dw(t))}}});function n8(e,t){if(e==null)throw new Error(t??"value is None")}function Vh(e){return e?.destroy(),null}function zh(e){return e?.remove(),null}function i8(e){return e?.abort(),null}var vc=V(()=>{});function nz(e){return e?.release&&typeof e.release=="function"}function iz(e){return e?.acquire&&typeof e.acquire=="function"}var Lo,Wh=V(()=>{Lo=class e{constructor(t,r,n,i=1,o=0){this._ctor=t,this._acquireFunction=r,this._releaseFunction=n,this.allocationSize=i,this._pool=new Array(o),this._initialSize=o;for(let s=0;s<o;s++)this._pool[s]=new this._ctor;this.allocationSize=Math.max(i,1)}destroy(){this.prune(0)}acquire(...t){let r;if(e.test.disabled)r=new this._ctor;else{if(this._pool.length===0){let n=this.allocationSize;for(let i=0;i<n;i++)this._pool[i]=new this._ctor}r=this._pool.pop()}return this._acquireFunction?this._acquireFunction(r,...t):iz(r)&&r.acquire(...t),r}release(t){t&&!e.test.disabled&&(this._releaseFunction?this._releaseFunction(t):nz(t)&&t.release(),this._pool.push(t))}prune(t=this._initialSize){if(!(t>=this._pool.length)){for(let r=t;r<this._pool.length;++r){let n=this._pool[r];this._dispose(n)}this._pool.length=t}}_dispose(t){t.dispose&&typeof t.dispose=="function"&&t.dispose()}};Lo.test={disabled:!1}});var fw,o8=V(()=>{nc();fw=class{constructor(t,r){this._observers=t,this._observer=r}remove(){PT(this._observers,this._observer)}}});var yp,oz,pS=V(()=>{oi();o8();yp=class{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return oz;this._observers==null&&(this._observers=[]);let r=this._observers,n=!1,i=!1,o=r.length;for(let s=0;s<o;++s){let c=r[s];if(c.destroyed)i=!0;else if(c===t){n=!0;break}}return n||(r.push(t),i&&this._removeDestroyedObservers()),new fw(r,t)}_removeDestroyedObservers(){let t=this._observers;if(!t||t.length===0)return;let r=t.length,n=0;for(let i=0;i<r;++i){for(;i+n<r&&t[i+n].destroyed;)++n;if(n>0){if(!(i+n<r))break;t[i]=t[i+n]}}t.length=r-n}destroy(){if(this.destroyed)return;this.destroyed=!0;let t=this._observers;if(t!=null){for(let r of t)r.onCommitted();this._observers=null}}},oz=Ct()});function pw(e){switch(e){case"defaults":return st.DEFAULTS;case"service":return st.SERVICE;case"portal-item":return st.PORTAL_ITEM;case"web-scene":return st.WEB_SCENE;case"web-map":return st.WEB_MAP;case"link-chart":return st.LINK_CHART;case"user":return st.USER;default:return null}}function mw(e){switch(e){case st.DEFAULTS:return"defaults";case st.SERVICE:return"service";case st.PORTAL_ITEM:return"portal-item";case st.WEB_SCENE:return"web-scene";case st.WEB_MAP:return"web-map";case st.LINK_CHART:return"link-chart";case st.USER:return"user"}}function s8(e){return mw(e)}var st,Fce,_c=V(()=>{(function(e){e[e.DEFAULTS=0]="DEFAULTS",e[e.COMPUTED=1]="COMPUTED",e[e.SERVICE=2]="SERVICE",e[e.PORTAL_ITEM=3]="PORTAL_ITEM",e[e.WEB_SCENE=4]="WEB_SCENE",e[e.WEB_MAP=5]="WEB_MAP",e[e.LINK_CHART=6]="LINK_CHART",e[e.USER=7]="USER"})(st||(st={}));Fce=st.USER+1});var Bh,a8=V(()=>{pS();_c();bu();nw();Rh();Bh=class extends yp{constructor(t,r){super(),this.propertyName=t,this.metadata=r,this.trackingTarget=new ms(this),this.flags=0,this.flags=ht.Dirty|(r.nonNullable?ht.NonNullable:0)|(r.hasOwnProperty("value")?ht.HasDefaultValue:0)|(r.get===void 0?ht.DepTrackingInitialized:0)|(r.dependsOn===void 0?ht.AutoTracked:0)}destroy(){this.flags&ht.Dirty&&this.onCommitted(),super.destroy(),this.trackingTarget.destroy()}getComputed(t){t.mutable&&Je(this);let r=t.store,n=this.propertyName,i=this.flags,o=r.get(n);if(i&ht.Computing||~i&ht.Dirty&&r.has(n))return o;this.flags|=ht.Computing;let s=t.host,c;i&ht.AutoTracked?c=Ao(this.trackingTarget,this.metadata.get,s):(Q_(s,this),c=this.metadata.get.call(s)),this.flags|=ht.DepTrackingInitialized,r.set(n,c,st.COMPUTED);let a=r.get(n);return a===o?this.flags&=~ht.Dirty:AE(this.commit,this),this.flags&=~ht.Computing,a}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~ht.Dirty,this.onCommitted()}onInvalidated(){~this.flags&ht.Overridden&&(this.flags|=ht.Dirty);let t=this._observers;if(t&&t.length>0)for(let r of t)r.onInvalidated()}onCommitted(){let t=this._observers;if(t&&t.length>0){let r=t.slice();for(let n of r)n.onCommitted()}}}});var hw,c8=V(()=>{or();_c();hw=class e{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){let r=new e;return this._values.forEach((n,i)=>{t&&t.has(i)||r.set(i,qe(n))}),r}get(t){return this._values.get(t)}originOf(){return st.USER}keys(){return[...this._values.keys()]}set(t,r){this._values.set(t,r)}delete(t){this._values.delete(t)}has(t){return this._values.has(t)}forEach(t){this._values.forEach(t)}}});function gw(e,t,r){return e!==void 0}function l8(e,t,r,n){return e!==void 0&&(!(r==null&&e.flags&ht.NonNullable)||(n.lifecycle,an.INITIALIZING,!1))}var ww,hS,mS,u8=V(()=>{et();or();tt();Wh();Nh();a8();_c();c8();bu();nw();Rh();ww=class{constructor(t){this.host=t,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=an.INITIALIZING,this.store=new hw,this.mutable=!0,this._origin=st.USER;let r=this.host.constructor.__accessorMetadata__;for(let n in r){let i=new Bh(n,r[n]);this.propertiesByName.set(n,i)}this.metadata=r}initialize(){this.lifecycle=an.CONSTRUCTING}constructed(){this.lifecycle=an.CONSTRUCTED}destroy(){this.lifecycle=an.DESTROYED,this.propertiesByName.forEach(t=>t.destroy())}get initialized(){return this.lifecycle!==an.INITIALIZING}get(t){let r=this.propertiesByName.get(t);if(r.metadata.get)return r.getComputed(this);this.mutable&&Je(r);let n=this.store;return n.has(t)?n.get(t):r.metadata.value}originOf(t){let r=this.store.originOf(t);if(r===void 0){let n=this.propertiesByName.get(t);if(n!==void 0&&n.flags&ht.HasDefaultValue)return"defaults"}return mw(r)}has(t){return this.propertiesByName.has(t)&&this.store.has(t)}keys(){return[...this.propertiesByName.keys()]}internalGet(t){let r=this.propertiesByName.get(t);if(gw(r))return this.store.has(t)?this.store.get(t):r.metadata.value}internalSet(t,r){let n=this.propertiesByName.get(t);gw(n)&&this._internalSet(n,r)}getDependsInfo(t,r,n){let i=this.propertiesByName.get(r);if(!gw(i))return"";let o=new ms,s=Ao(o,()=>i.metadata.get?.call(t)),c=`${n}${t.declaredClass.split(".").pop()}.${r}: ${s}
|
|
2
2
|
`,a=o.accessed??new Set;if(a.size===0)return c;n+=" ";for(let d of a)d instanceof Bh&&(c+=`${n}${d.propertyName}: undefined
|
|
3
|
-
`);return c}setAtOrigin(t,r,n){let i=this.propertiesByName.get(t);if(gw(i))return this._setAtOrigin(i,r,n)}isOverridden(t){let r=this.propertiesByName.get(t);return r!==void 0&&!!(r.flags&ht.Overridden)}clearOverride(t){let r=this.propertiesByName.get(t);r&&r.flags&ht.Overridden&&(r.flags&=~ht.Overridden,r.notifyChange())}override(t,r){let n=this.propertiesByName.get(t);if(!l8(n,t,r,this))return;let i=n.metadata.cast;if(i){let o=this._cast(i,r),{valid:s,value:c}=o;if(mS.release(o),!s)return;r=c}n.flags|=ht.Overridden,this._internalSet(n,r)}set(t,r){let n=this.propertiesByName.get(t);if(!l8(n,t,r,this))return;let i=n.metadata.cast;if(i){let s=this._cast(i,r),{valid:c,value:a}=s;if(mS.release(s),!c)return;r=a}let o=n.metadata.set;o?o.call(this.host,r):this._internalSet(n,r)}setDefaultOrigin(t){this._origin=pw(t)}getDefaultOrigin(){return mw(this._origin)}notifyChange(t){let r=this.propertiesByName.get(t);r!==void 0&&r.notifyChange()}invalidate(t){let r=this.propertiesByName.get(t);r!==void 0&&r.invalidate()}commit(t){let r=this.propertiesByName.get(t);r!==void 0&&r.commit()}_internalSet(t,r){let n=this.lifecycle!==an.INITIALIZING?this._origin:st.DEFAULTS;this._setAtOrigin(t,r,n)}_setAtOrigin(t,r,n){let i=this.store,o=t.propertyName;i.has(o,n)&&jm(r,i.get(o))&&~t.flags&ht.Overridden&&n===i.originOf(o)||(t.invalidate(),i.set(o,r,n),t.commit(),K_(this.host,t))}_cast(t,r){let n=mS.acquire();return n.valid=!0,n.value=r,t&&(n.value=t.call(this.host,r,n)),n}},hS=class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}},mS=new Lo(hS)});function gS(){return sz}var sz,d8,f8=V(()=>{(function(e){e[e.Ignore=0]="Ignore",e[e.Destroy=1]="Destroy",e[e.ThrowError=2]="ThrowError"})(d8||(d8={}))});function az(e){e.length=0}var Yn,wS,yw=V(()=>{Wh();Yn=class{constructor(t=50,r=50){this._pool=new Lo(Array,void 0,az,r,t)}acquire(){return this._pool.acquire()}release(t){this._pool.release(t)}prune(){this._pool.prune(0)}static acquire(){return wS.acquire()}static release(t){return wS.release(t)}static prune(){wS.prune()}},wS=new Yn(100)});var bw,p8=V(()=>{Wh();bw=class extends Lo{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...t){let r=super.acquire(...t);return this._set.delete(r),r}release(t){t&&!this._set.has(t)&&(super.release(t),this._set.add(t))}_dispose(t){this._set.delete(t),super._dispose(t)}}});function yS(e){vw.push(e),vw.length===1&&queueMicrotask(()=>{let t=vw.slice();vw.length=0;for(let r of t)r()})}var vw,m8=V(()=>{vw=[]});var Gh,h8=V(()=>{Gh=class{constructor(t,r=30){this.name=t,this._counter=0,this._samples=new Array(r)}push(t){t!=null&&(this._samples[++this._counter%this._samples.length]=t)}set(t){t!=null&&(this._samples[this._counter%this._samples.length]=t)}get median(){return this._samples.slice().sort((t,r)=>t-r)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((t,r)=>t+r,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}});var bS,vS,g8=V(()=>{(function(e){let t=(o,s,c,a)=>{let d=s,h=s,g=c>>>1,v=o[d-1];for(;h<=g;){h=d<<1,h<c&&a(o[h-1],o[h])<0&&++h;let S=o[h-1];if(a(S,v)<=0)break;o[d-1]=S,d=h}o[d-1]=v},r=(o,s)=>o<s?-1:o>s?1:0;function n(o,s,c,a){s===void 0&&(s=0),c===void 0&&(c=o.length),a===void 0&&(a=r);for(let h=c>>>1;h>s;h--)t(o,h,c,a);let d=s+1;for(let h=c-1;h>s;h--){let g=o[s];o[s]=o[h],o[h]=g,t(o,d,h,a)}}function*i(o,s,c,a){s===void 0&&(s=0),c===void 0&&(c=o.length),a===void 0&&(a=r);for(let h=c>>>1;h>s;h--)t(o,h,c,a),yield;let d=s+1;for(let h=c-1;h>s;h--){let g=o[s];o[s]=o[h],o[h]=g,t(o,d,h,a),yield}}e.sort=n,e.iterableSort=i})(bS||(bS={}));vS=bS});function w8(e){e.data.length>cz*e.length&&(e.data.length=Math.floor(e.length*lz))}var cz,lz,jh,y8=V(()=>{nc();g8();cz=1.5,lz=1.1,jh=class{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new Gm,t&&(t.initialSize&&(this.data=new Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),t.deallocator!==void 0&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>w8(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){let r=new Array;for(let n=0;n<this._length;n++){let i=this.data[n];t(i)&&r.push(i)}return r}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,r){let n=this.data.indexOf(t,r);return n!==-1&&n<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let r=t;r<this._length;++r)this.data[r]=this._deallocator(this.data[r]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,r=t.length){for(let n=0;n<r;n++)this.data[this._length++]=t[n]}fill(t,r){for(let n=0;n<r;n++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,w8(this)}pop(){if(this.length===0)return;let t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){let r=G2(this.data,t,this.length,this._hint);if(r!==-1)return this.data.splice(r,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex(G2(this.data,t,this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,r=t.length,n){this.length=MT(this.data,t,this.length,r,this._hint,n),this._shrink()}front(){if(this.length!==0)return this.data[0]}back(){if(this.length!==0)return this.data[this.length-1]}swapElements(t,r){if(t>=this.length||r>=this.length||t===r)return;let n=this.data[t];this.data[t]=this.data[r],this.data[r]=n}sort(t){vS.sort(this.data,0,this.length,t)}iterableSort(t){return vS.iterableSort(this.data,0,this.length,t)}some(t,r){for(let n=0;n<this.length;++n)if(t.call(r,this.data[n],n,this.data))return!0;return!1}find(t,r){let{data:n,length:i}=this;for(let o=0;o<i;++o)if(t.call(r,n[o]))return n[o]}filterInPlace(t,r){let n=0;for(let i=0;i<this._length;++i){let o=this.data[i];t.call(r,o,i,this.data)&&(this.data[i]=this.data[n],this.data[n]=o,n++)}if(this._deallocator)for(let i=n;i<this._length;i++)this.data[i]=this._deallocator(this.data[i]);return this._length=n,this._shrink(),this}forAll(t,r){let{data:n,length:i}=this;for(let o=0;o<i;++o)t.call(r,n[o],o,n)}forEach(t,r){this.data.slice(0,this.length).forEach(t,r)}map(t,r){let n=new Array(this.length);for(let i=0;i<this.length;++i)n[i]=t.call(r,this.data[i],i,this.data);return n}reduce(t,r){let n=r;for(let i=0;i<this.length;++i)n=t(n,this.data[i],i,this.data);return n}has(t){let r=this.length,n=this.data;for(let i=0;i<r;++i)if(n[i]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;t++)yield this.data[t]}}});function uz(e){return{setTimeout:(t,r)=>{let n=e.setTimeout(t,r);return Ct(()=>e.clearTimeout(n))}}}var b8,v8=V(()=>{oi();b8=uz(globalThis)});function Hh(e){return dz(e)||_8(e)}function dz(e){return e!=null&&typeof e=="object"&&"on"in e&&typeof e.on=="function"}function _8(e){return e!=null&&typeof e=="object"&&"addEventListener"in e&&typeof e.addEventListener=="function"}function Sc(e,t,r){if(!Hh(e))throw new TypeError("target is not a Evented or EventTarget object");return _8(e)?fz(e,t,r):e.on(t,r)}function fz(e,t,r,n){if(Array.isArray(t)){let i=t.slice();for(let o of i)e.addEventListener(o,r,n);return Ct(()=>{for(let o of i)e.removeEventListener(o,r,n)})}return e.addEventListener(t,r,n),Ct(()=>e.removeEventListener(t,r,n))}function S8(e,t,r){if(!Hh(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);let n=Sc(e,t,i=>{n.remove(),r.call(e,i)});return n}var qh=V(()=>{oi()});function hs(e="Aborted"){return new We("AbortError",e)}function _w(e){return e instanceof AbortSignal?e:e?.signal??void 0}function Ks(e){let t=_w(e);return t!=null&&t.aborted}function _S(e){if(!Zh(e))throw e}function Ci(e,t){let r=_w(e);if(r!=null){if(!r.aborted)return S8(r,"abort",()=>t());t()}}function Zh(e){return e?.name==="AbortError"}function pz(e,t=void 0,r){let n=new AbortController;return Ci(r,()=>n.abort()),new Promise((i,o)=>{let s=setTimeout(()=>{s=0,i(t)},e);Ci(n,()=>{s&&(clearTimeout(s),o(hs()))})})}function mz(e){return e&&typeof e.then=="function"}function x8(e){return mz(e)?e:Promise.resolve(e)}function C8(e,t=-1){let r,n,i,o,s=null,c=(...a)=>{if(r){n=a,o&&o.reject(hs()),o=ci();let v=o.promise;if(s){let S=s;s=null,S.abort()}return v}if(i=o||ci(),o=null,t>0){let v=new AbortController;r=x8(e(...a,v.signal));let S=r;pz(t).then(()=>{r===S&&(o?v.abort():s=v)})}else r=1,r=x8(e(...a));let d=()=>{let v=n;n=i=r=s=null,v!=null&&c(...v)},h=r,g=i;return h.then(d,d),h.then(g.resolve,g.reject),g.promise};return c}function ci(){let e,t,r=new Promise((i,o)=>{e=i,t=o}),n=i=>{e(i)};return n.resolve=i=>e(i),n.reject=i=>t(i),n.timeout=(i,o)=>b8.setTimeout(()=>n.reject(o),i),n.promise=r,n}var ko=V(()=>{v8();An();qh();tt();vc()});var T8=V(()=>{});function hz(){Jh!=null&&(cancelAnimationFrame(Jh),Jh=requestAnimationFrame(P8))}function Cw(e){let t=new SS(e);return CS.push(t),xw.willDispatch||(xw.willDispatch=!0,yS(A8)),t}function gz(e=!1){bp.forAll(t=>{t.removed=!0}),e&&I8()}function P8(){let e=performance.now();Jh=null,Jh=bp.some(r=>!r.paused&&!r.removed)?requestAnimationFrame(P8):null,xw.executeFrameTasks(e)}function wz(e){let t=e-E8;E8=e;let r=M8>0?M8:1e3/60,n=Math.max(0,t-r);Yh.time=e,Yh.frameDuration=r-n;for(let i=0;i<xS.length;i++){let o=performance.now(),s=xS[i];bp.forAll(c=>{c.paused||c.removed||(i===0&&c.ticks++,c.phases[s]&&(Yh.elapsedFrameTime=performance.now()-e,Yh.deltaTime=c.ticks===0?0:t,c.phases[s]?.call(c,Yh)))}),vz[i].push(performance.now()-o)}I8(),_z.push(performance.now()-e)}function I8(){bp.forAll(e=>{e.removed&&Sw.push(e)}),bp.removeUnorderedMany(Sw.data,Sw.length),Sw.clear()}function A8(){for(;CS.length;){let e=CS.shift();e.isActive&&e.callback()}xw.willDispatch=!1}function yz(e=1,t){let r=ci(),n=()=>{Ks(t)?r.reject(hs()):e===0?r():(--e,yS(()=>n()))};return n(),r.promise}function bz(e){return yz(1,e)}async function L8(e){await bz(e),await new Promise(t=>requestAnimationFrame(()=>{e?.aborted||t()}))}var SS,E8,M8,Yh,xS,CS,bp,xw,Jh,Sw,vz,_z,Tw=V(()=>{m8();h8();y8();ko();T8();SS=class{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}},E8=0,M8=0,Yh={time:0,deltaTime:0,elapsedFrameTime:0,frameDuration:0},xS=["prepare","preRender","render","postRender","update","finish"],CS=[],bp=new jh;xw={frameTasks:bp,willDispatch:!1,clearFrameTasks:gz,dispatch:A8,executeFrameTasks:wz,reschedule:hz};Jh=null;Sw=new jh;vz=xS.map(e=>new Gh(e)),_z=new Gh("total")});function k8(e,t){if(!t)return e;for(let r of t)r!=null&&e.add(r);return e}function O8(e,t){let r=new Set;return k8(r,e),k8(r,t),r}var TS=V(()=>{});function Ew(){return++Sz}var Sz,N8=V(()=>{Sz=0});function xz(){}var vu,ES,R8,MS=V(()=>{Rh();vu=class extends ms{constructor(t){super(new ES(t)),this._observer&&R8.register(this,new WeakRef(this._observer),this)}destroy(){this._observer&&R8.unregister(this._observer),this.accessed?.clear(),this.clear(),this._observer?.destroy()}},ES=class{constructor(t){this._notify=t,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;let t=this._invalidCount;if(t===1)return this._invalidCount=0,void this._notify();this._invalidCount=t>0?t-1:0}destroy(){this.destroyed=!0,this._notify=xz}},R8=new FinalizationRegistry(e=>{e.deref()?.destroy()})});function IS(e,t){let r=new vu(o),n=null,i=!1;function o(){if(!r||i)return;if(PS)return void Cz(o);let c=n;r.clear(),PS=!0,i=!0,n=Ao(r,e),i=!1,PS=!1,t(n,c),Tz()}function s(){r&&(r.destroy(),r=null,n=null)}return i=!0,n=Ao(r,e),i=!1,Ct(s)}function AS(e,t){let r=new vu(i),n=null;function i(){t(n,s)}function o(){r&&(r.destroy(),r=null),n=null}function s(){return r?(r.clear(),n=Ao(r,e),n):null}return s(),Ct(o)}function Cz(e){Mw.includes(e)||Mw.unshift(e)}function Tz(){for(;Mw.length;)Mw.pop()()}var PS,Mw,LS=V(()=>{oi();bu();MS();PS=!1,Mw=[]});function Aw(e){xc.delete(e),xc.add(e),Iw||(Iw=Cw(Mz))}function Ez(e){if(e.removed)return;let t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function D8(e){for(let t of xc.values())t.target===e&&(t.removed=!0)}function Mz(){let e=10;for(;Iw&&e--;){Iw=null;let t=Pz(),r=Pw.acquire();for(let n of t){let i=n.uid;Ez(n),i===n.uid&&n.removed&&r.push(n)}for(let n of xc)n.removed&&(r.push(n),xc.delete(n));for(let n of r)_u.pool.release(n);Pw.release(r),Pw.release(t),Iz.forEach(n=>n())}}function Pz(){let e=Pw.acquire();e.length=xc.size;let t=0;for(let r of xc)e[t]=r,++t;return xc.clear(),e}function Az(e,t,r){let n=H_(e,t,r,(i,o,s)=>{let c,a,d=AS(()=>wu(i,o),(h,g)=>{i.__accessor__?.lifecycle===an.DESTROYED||c&&c.uid!==a?n.remove():(c||(c=_u.acquireUntracked(h,s,g,i,o),a=c.uid),Aw(c))});return Ct(()=>{d.remove(),c&&(c.uid!==a||c.removed||(c.removed=!0,Aw(c)),c=null),n=d=null})});return n}function Lz(e,t,r){let n=H_(e,t,r,(i,o,s)=>{let c=!1;return IS(()=>wu(i,o),(a,d)=>{i.__accessor__.lifecycle!==an.DESTROYED?c||(c=!0,jm(d,a)||s.call(i,a,d,o,i),c=!1):n.remove()})});return n}function $8(e,t,r,n=!1){return e.__accessor__&&e.__accessor__.lifecycle!==an.DESTROYED?n?Lz(e,t,r):Az(e,t,r):Ct()}function kz(e,t,r){let n,i,o=AS(e,(s,c)=>{n&&n.uid!==i?o.remove():(n||(n=_u.acquireTracked(s,t,c,r),i=n.uid),Aw(n))});return Ct(()=>{o.remove(),n&&(n.uid!==i||n.removed||(n.removed=!0,Aw(n)),n=null),o=null})}function Oz(e,t,r){let n=!1;return IS(e,(i,o)=>{n||(n=!0,r(o,i)||t(i,o),n=!1)})}function F8(e,t,r=!1,n=jT){return r?Oz(e,t,n):kz(e,t,n)}var Xh,_u,Pw,xc,Iw,Iz,kS=V(()=>{yw();oi();or();p8();Tw();TS();N8();yu();Nh();LS();Xs();(function(e){e[e.Untracked=0]="Untracked",e[e.Tracked=1]="Tracked"})(Xh||(Xh={}));_u=class{constructor(){this.uid=Ew(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static acquireUntracked(t,r,n,i,o){return this.pool.acquire(Xh.Untracked,t,r,n,i,o,jm)}static acquireTracked(t,r,n,i){return this.pool.acquire(Xh.Tracked,t,r,n,null,null,i)}notify(t,r){this.type===Xh.Untracked?this.callback.call(this.target,t,r,this.path,this.target):this.callback.call(null,t,r,void 0,void 0)}acquire(t,r,n,i,o,s,c){this.uid=Ew(),this.removed=!1,this.type=t,this.oldValue=r,this.callback=n,this.getValue=i,this.target=o,this.path=s,this.equals=c}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=Ew(),this.removed=!0}};_u.pool=new bw(_u);Pw=new Yn,xc=new Set;Iz=new Set});function Nz(e){if(e==null)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case"object":return e.constructor?.__accessorMetadata__||e instanceof Date?{type:e.constructor,value:e}:e;case"boolean":return{type:Boolean,value:e};case"string":return{type:String,value:e};case"number":return{type:Number,value:e};case"function":return{type:e,value:null};default:return}}var U8,V8,gs,OS,Wr,Cc=V(()=>{r8();vc();J_();yu();Nh();mp();u8();Y_();f8();kS();mt();ut();gs=Symbol("Accessor-Handles"),OS=Symbol("Accessor-Initialized"),Wr=class e{static createSubclass(t={}){if(Array.isArray(t))throw new Error("Multi-inheritance unsupported since 4.16");let{properties:r,declaredClass:n,constructor:i}=t;delete t.declaredClass,delete t.properties,delete t.constructor;let o=this;class s extends o{constructor(...a){super(...a),this.inherited=null,i&&i.apply(this,a)}}bc(s.prototype);for(let c in t){let a=t[c];s.prototype[c]=typeof a=="function"?function(...d){let h=this.inherited,g;this.inherited=function(...v){if(o.prototype[c])return o.prototype[c].apply(this,v)};try{g=a.apply(this,d)}catch(v){throw this.inherited=h,v}return this.inherited=h,g}:t[c]}for(let c in r){let a=Nz(r[c]);z(a)(s.prototype,c)}return Ie(n)(s)}static freeze(t){return t instanceof e?t.__accessor__.mutable=!1:Object.freeze(t),t}static isFrozen(t){return t instanceof e?!t.__accessor__.mutable:Object.isFrozen(t)}constructor(...t){if(this[U8]=null,this[V8]=!1,this.constructor===e)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");let r=new ww(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:r}),t.length>0&&(r.ctorArgs=this.normalizeCtorArgs?.apply(this,t)??t[0]),gS()?.onInstanceConstruct(this)}postscript(){let t=this.__accessor__,r=t.ctorArgs;t.initialize(),r&&(this.set(r),t.ctorArgs=null),t.constructed(),this.initialize(),this[OS]=!0}initialize(){}[rw](){this[gs]=Vh(this[gs])}destroy(){this.destroyed||(D8(this),this.__accessor__.destroy(),gS()?.onInstanceDestroy(this))}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[OS]}get destroyed(){return this.__accessor__?.lifecycle===an.DESTROYED||!1}commitProperty(t){ps(this,t)}hasOwnProperty(t){return this.__accessor__?this.__accessor__.has(t):Object.prototype.hasOwnProperty.call(this,t)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(t,r){return gp(this,t,r),this}watch(t,r,n){return $8(this,t,r,n)}addHandles(t,r){if(this.destroyed){let n=Array.isArray(t)?t:[t];for(let i of n)i.remove();return}(this[gs]??(this[gs]=new wp)).add(t,r)}removeHandles(t){this[gs]?.remove(t)}removeAllHandles(){this[gs]?.removeAll()}removeHandlesReference(t){this[gs]?.removeReference(t)}hasHandles(t){return this[gs]?.has(t)===!0}_override(t,r){r===void 0?this.__accessor__.clearOverride(t):this.__accessor__.override(t,r)}_clearOverride(t){return this.__accessor__.clearOverride(t)}_overrideIfSome(t,r){r==null?this.__accessor__.clearOverride(t):this.__accessor__.override(t,r)}_isOverridden(t){return this.__accessor__.isOverridden(t)}notifyChange(t){this.__accessor__.notifyChange(t)}_get(t){return this.__accessor__.internalGet(t)}_set(t,r){return this.__accessor__.internalSet(t,r),this}};U8=gs,V8=OS});var Lw,NS,z8=V(()=>{or();_c();Lw=class e{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){let r=new e;return this._values.forEach((n,i)=>{t&&t.has(i)||r.set(i,qe(n.value),n.origin)}),r}get(t,r){r=this._normalizeOrigin(r);let n=this._values.get(t);return r==null||n?.origin===r?n?.value:void 0}originOf(t){return this._values.get(t)?.origin??st.USER}keys(t){t=this._normalizeOrigin(t);let r=[...this._values.keys()];return t==null?r:r.filter(n=>this._values.get(n)?.origin===t)}set(t,r,n){if((n=this._normalizeOrigin(n))===st.DEFAULTS){let i=this._values.get(t);if(i?.origin!=null&&i.origin>n)return}this._values.set(t,new NS(r,n))}delete(t,r){(r=this._normalizeOrigin(r))!=null&&this._values.get(t)?.origin!==r||this._values.delete(t)}has(t,r){return(r=this._normalizeOrigin(r))!=null?this._values.get(t)?.origin===r:this._values.has(t)}forEach(t){this._values.forEach(({value:r},n)=>t(r,n))}_normalizeOrigin(t){if(t!=null)return t===st.DEFAULTS?t:st.USER}},NS=class{constructor(t,r){this.value=t,this.origin=r}}});function W8(e,t,r){t.keys().forEach(i=>{r.set(i,t.get(i),st.DEFAULTS)});let n=e.metadata;Object.keys(n).forEach(i=>{e.internalGet(i)&&r.set(i,e.internalGet(i),st.DEFAULTS)})}var B8=V(()=>{_c()});function Rz(e,t,r){if(!e?.read||e.read.enabled===!1||!e.read.source)return!1;let n=e.read.source;if(typeof n=="string"){if(n===t||n.includes(".")&&n.indexOf(t)===0&&q_(n,r))return!0}else for(let i of n)if(i===t||i.includes(".")&&i.indexOf(t)===0&&q_(i,r))return!0;return!1}function Dz(e){return e&&(!e.read||e.read.enabled!==!1&&!e.read.source)}function $z(e,t,r,n,i){let o=lw(t[r],i);Dz(o)&&(e[r]=!0);for(let s of Object.getOwnPropertyNames(t))o=lw(t[s],i),Rz(o,r,n)&&(e[s]=!0)}function Fz(e,t,r,n){let i=r.metadata,o=ZE(i[t],n),s=o?.default;if(s===void 0)return;let c=typeof s=="function"?s.call(e,t,n):s;c!==void 0&&r.set(t,c)}function G8(e,t,r=Uz){if(!t||typeof t!="object")return;let n=xi(e),i=n.metadata,o={};for(let s of Object.getOwnPropertyNames(t))$z(o,i,s,t,r);n.setDefaultOrigin(r.origin);for(let s of Object.getOwnPropertyNames(o)){let c=lw(i[s],r).read,a=c?.source,d;d=a&&typeof a=="string"?wu(t,a):t[s],c?.reader&&(d=c.reader.call(e,d,t,r)),d!==void 0&&n.set(s,d)}if(!r||!r.ignoreDefaults){n.setDefaultOrigin("defaults");for(let s of Object.getOwnPropertyNames(i))o[s]||Fz(e,s,n,r)}n.setDefaultOrigin("user")}var Uz,j8=V(()=>{yu();Xs();uw();Uz={origin:"service"}});function Vz(e,t,r,n,i){let o={};return t.write?.writer?.call(e,n,o,r,i),o}function zz(e,t,r,n,i,o){if(!n?.write)return!1;let s=ps(e,r);if(!i&&n.write.overridePolicy){let c=n.write.overridePolicy.call(e,s,r,o??void 0);c!==void 0&&(i=c)}if(i||(i=n.write),!i||i.enabled===!1||i.layerContainerTypes&&o?.layerContainerType&&!i.layerContainerTypes.includes(o.layerContainerType))return!1;if((s===null&&!i.allowNull&&!i.writerEnsuresNonNull||s===void 0)&&i.isRequired){let c=new We("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return c&&o?.messages?o.messages.push(c):c&&!o&&ct.getLogger("esri.core.accessorSupport.write").error(c.name,c.message),!1}return!(s===void 0||s===null&&!i.allowNull&&!i.writerEnsuresNonNull||!i.alwaysWriteDefaults&&(!t.store.multipleOriginsSupported||t.store.originOf(r)===st.DEFAULTS)&&Wz(e,r,o,n,s)||!i.ignoreOrigin&&o?.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<pw(o.origin))}function Wz(e,t,r,n,i){let o=n.default;if(o===void 0)return!1;if(n.defaultEquals!=null)return n.defaultEquals(i);if(typeof o=="function"){if(Array.isArray(i)){let s=o.call(e,t,r??void 0);return rc(s,i)}return!1}return o===i}function H8(e,t,r){if(e&&typeof e.toJSON=="function"&&(!e.toJSON.isDefaultToJSON||!e.write))return fp(t,e.toJSON(r));let n=xi(e),i=n.metadata;for(let o in i){let s=YE(i[o],r);if(!zz(e,n,o,s,void 0,r))continue;let c=ps(e,o),a=Vz(e,s,s.write&&typeof s.write.target=="string"?s.write.target:o,c,r);Object.keys(a).length>0&&(t=fp(t,a),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>fp(t,a,()=>"replace-arrays"))),r?.writtenProperties&&r.writtenProperties.push({target:e,propName:o,oldOrigin:s8(n.store.originOf(o)),newOrigin:r.origin}))}return t}var q8=V(()=>{nc();An();tt();yu();_c();Xs();uw()});function Gz(e,t){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");let r=new this;return r.read(e,t),r}function Kh(e){return e&&typeof e=="object"&&"toJSON"in e&&typeof e.toJSON=="function"}var Bz,lt,Er=V(()=>{pt();Cc();z8();B8();j8();Xs();q8();ut();Bz=e=>{let t=class extends e{constructor(...r){super(...r);let n=xi(this),i=n.store,o=new Lw;n.store=o,W8(n,i,o)}read(r,n){G8(this,r,n)}write(r,n){return H8(this,r??{},n)}toJSON(r){return this.write({},r)}static fromJSON(r,n){return Gz.call(this,r,n)}};return t=N([Ie("esri.core.JSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};lt=class extends Bz(Wr){};lt=N([Ie("esri.core.JSONSupport")],lt)});function Ti(e,t,r){let n,i;return t===void 0||Array.isArray(t)?(i=e,r=t,n=[void 0]):(i=t,n=Array.isArray(e)?e:[e]),(o,s)=>{let c=o.constructor.prototype;n.forEach(a=>{let d=tw(o,a,i);d.read&&typeof d.read=="object"||(d.read={}),d.read.reader=c[s],r&&(d.read.source=(d.read.source||[]).concat(r))})}}var vp=V(()=>{mt()});function jz(e){let t={};for(let r in e)t[e[r]]=r;return t}function Z8(e){let t=[];for(let r in e)t.push(r);return t.sort(),t}function Ki(){return function(e,t){return new Mr(e,{ignoreUnknown:!0,...t})}}var Mr,Ei=V(()=>{ds();Mr=class{constructor(t,r={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=t,this._options=r,this.apiValues=[],this.jsonValues=[],this._apiToJSON=jz(t),this.apiValues=Z8(this._apiToJSON),this.jsonValues=Z8(this._jsonToAPI),this.read=n=>this.fromJSON(n),this.write=(n,i,o)=>{let s=this.toJSON(n);s!==void 0&&Hs(o,s,i)},this.write.isJSONMapWriter=!0}toJSON(t){if(t==null)return null;if(this._apiToJSON.hasOwnProperty(t)){let r=this._apiToJSON[t];return this._options.useNumericKeys?+r:r}return this._options.ignoreUnknown?void 0:t}fromJSON(t){return t!=null&&this._jsonToAPI.hasOwnProperty(t)?this._jsonToAPI[t]:this._options.ignoreUnknown?void 0:t}}});var Qh,Oo,kw,Ow,Nw=V(()=>{Qh=class{constructor(t,r,n,i,o,s){this.semiMajorAxis=t,this.flattening=r,this.outerAtmosphereRimWidth=n,this.atmosphereHeight=i,this.scaleHeight=o;let c=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*c,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=s||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}},Oo=new Qh(6378137,1/298.257223563,3e5,1e5,.085,.006694379990137799),kw=new Qh(3396190,1/169.8944472236118,23e4,6e4,.111),Ow=new Qh(1737400,0,0,0,0)});function Rw(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function RS(e){let 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}var Dw=V(()=>{});function Y8(e){let t=new Uint8Array(e),r="";for(let n=0;n<t.length;n++)r+=String.fromCharCode(t[n]);return btoa(r)}var J8=V(()=>{});function rW(){let e=Ln.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${`${Ln.scheme}://${Ln.host}${Ln.port!=null?`:${Ln.port}`:""}`}${t}`}function Tc(e){if(!e)return null;let t={path:null,query:null},r=new kn(e),n=e.indexOf("?");return r.query===null?t.path=e:(t.path=e.slice(0,n),t.query=Ec(r.query)),r.fragment&&(t.hash=r.fragment,r.query===null&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function Ec(e){let t=e.split("&"),r={};for(let n of t){if(!n)continue;let i=n.indexOf("="),o,s;i<0?(o=decodeURIComponent(n),s=""):(o=decodeURIComponent(n.slice(0,i)),s=decodeURIComponent(n.slice(i+1)));let c=r[o];typeof c=="string"&&(c=r[o]=[c]),Array.isArray(c)?c.push(s):r[o]=s}return r}function Su(e,t){return e?t&&typeof t=="function"?Object.keys(e).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r]))).join("&"):Object.keys(e).map(r=>{let n=e[r];if(n==null)return"";let i=encodeURIComponent(r)+"=",o=t?.[r];return o?i+encodeURIComponent(o(n)):Array.isArray(n)?n.map(s=>Kh(s)?i+encodeURIComponent(JSON.stringify(s)):i+encodeURIComponent(s)).join("&"):Kh(n)?i+encodeURIComponent(JSON.stringify(n)):i+encodeURIComponent(n)}).filter(r=>r).join("&"):""}function eM(e=!1){let t,r=_p.proxyUrl;if(typeof e=="string"){t=iW(e);let n=Sp(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw Hz().warn(X8),new We("urlUtils:proxy-not-set",X8);return t&&DS()&&(r=Gw(r)),Tc(r)}function tM(e){let t=e.indexOf("?");return t!==-1?(eg.path=e.slice(0,t),eg.query=e.slice(t+1)):(eg.path=e,eg.query=null),eg}function rM(e){return e=(e=oM(e=lW(e=tM(e).path),!0)).toLowerCase()}function nM(e){let t={proxyUrl:e.proxyUrl,urlPrefix:rM(e.urlPrefix)},r=_p.proxyRules,n=t.urlPrefix,i=r.length;for(let o=0;o<r.length;o++){let s=r[o].urlPrefix;if(n.indexOf(s)===0){if(n.length===s.length)return-1;i=o;break}s.indexOf(n)===0&&(i=o+1)}return r.splice(i,0,t),i}function Sp(e){let t=_p.proxyRules,r=rM(e);for(let n=0;n<t.length;n++)if(r.indexOf(t[n].urlPrefix)===0)return t[n]}function FS(e,t=_p.interceptors){let r=n=>n==null||n instanceof RegExp&&n.test(e)||typeof n=="string"&&e.startsWith(n);if(t){for(let n of t)if(Array.isArray(n.urls)){if(n.urls.some(r))return n}else if(r(n.urls))return n}return null}function Jn(e,t,r=!1){if(!e||!t)return!1;let n=$S(e),i=$S(t);return!(!r&&n.scheme!==i.scheme)&&n.host!=null&&i.host!=null&&n.host.toLowerCase()===i.host.toLowerCase()&&n.port===i.port}function Uw(e){if(typeof e=="string"){if(!iM(e))return!0;e=$S(e)}if(Jn(e,Ln))return!0;let t=_p.trustedServers||[];for(let r=0;r<t.length;r++){let n=nW(t[r]);for(let i=0;i<n.length;i++)if(Jn(e,n[i]))return!0}return!1}function nW(e){return $w[e]||(VS(e)||Pc(e)?$w[e]=[new kn(Mc(e))]:$w[e]=[new kn(`http://${e}`),new kn(`https://${e}`)]),$w[e]}function Mc(e,t=tW,r){return Pc(e)?r?.preserveProtocolRelative?e:Ln.scheme==="http"&&Ln.authority===li(e).slice(2)?`http:${e}`:`https:${e}`:VS(e)?e:US(e[0]==="/"?cW(t):t,e)}function Vw(e){return e=fW(e=dW(e=uW(e=Mc(e=e.trim()))))}function US(...e){let t=e.filter(IT);if(!t?.length)return;let r=[];if(iM(t[0])){let i=t[0],o=i.indexOf("//");o!==-1&&(r.push(i.slice(0,o+1)),sW(t[0])&&(r[0]+="/"),t[0]=i.slice(o+2))}else t[0][0]==="/"&&r.push("");let n=t.reduce((i,o)=>o?i.concat(o.split("/")):i,[]);for(let i=0;i<n.length;i++){let o=n[i];o===".."&&r.length>0&&r[r.length-1]!==".."?r.pop():(!o&&i===n.length-1||o&&(o!=="."||r.length===0))&&r.push(o)}return r.join("/")}function li(e,t=!1){if(e==null||zw(e)||Ww(e))return null;let r=e.indexOf("://");if(r===-1&&Pc(e))r=2;else{if(r===-1)return null;r+=3}let n=e.indexOf("/",r);return n!==-1&&(e=e.slice(0,n)),t&&(e=oM(e,!0)),e}function iM(e){return Pc(e)||VS(e)}function zw(e){return e!=null&&e.slice(0,5)==="blob:"}function Ww(e){return e!=null&&e.slice(0,5)==="data:"}function Bw(e){return Y8(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function Pc(e){return e!=null&&e[0]==="/"&&e[1]==="/"}function VS(e){return e!=null&&K8.test(e)}function iW(e){return e!=null&&qz.test(e)||Ln.scheme==="https"&&Pc(e)}function oW(e){return e!=null&&Q8.test(e)||Ln.scheme==="http"&&Pc(e)}function sW(e){return e!=null&&Zz.test(e)}function Gw(e){return Pc(e)?`https:${e}`:e.replace(Q8,"https:")}function aW(){return Ln.scheme==="http"}function DS(){return Ln.scheme==="https"}function oM(e,t=!1){return Pc(e)?e.slice(2):(e=e.replace(K8,""),t&&e.length>1&&e[0]==="/"&&e[1]==="/"&&(e=e.slice(2)),e)}function cW(e){let t=e.indexOf("//"),r=e.indexOf("/",t+2);return r===-1?e:e.slice(0,r)}function lW(e){return e.endsWith("/")?e:`${e}/`}function uW(e){if(/^https?:\/\//i.test(e)){let t=tM(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}function dW(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}function fW(e){let t=_p.httpsDomains;if(!oW(e))return e;let r=e.indexOf("/",7),n;if(n=r===-1?e:e.slice(0,r),n=n.toLowerCase().slice(7),Yz.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return aW()&&n===Ln.authority&&!Jz.test(e)||(DS()&&n===Ln.authority||t&&t.some(i=>n===i||n.endsWith(`.${i}`))||DS()&&!Sp(e))&&(e=Gw(e)),e}function $S(e){return typeof e=="string"?new kn(Mc(e)):(e.scheme||(e.scheme=Ln.scheme),e)}function xp(e,t){if(!t)return e;let r=Tc(e),n=r.query||{};for(let[o,s]of Object.entries(t))s!=null&&(n[o]=s);let i=Su(n);return i?`${r.path}?${i}`:r.path}var Hz,_p,X8,K8,Q8,qz,Zz,Yz,Jz,Xz,Kz,kn,$w,Qz,Ln,eW,tW,Fw,eg,Ic=V(()=>{yc();nc();An();Er();tt();Dw();J8();Hz=()=>ct.getLogger("esri.core.urlUtils"),_p=Tt.request,X8="esri/config: esriConfig.request.proxyUrl is not set.",K8=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,Q8=/^\s*http:/i,qz=/^\s*https:/i,Zz=/^\s*file:/i,Yz=/:\d+$/,Jz=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,Xz=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),Kz=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$"),kn=class{constructor(t=""){this.uri=t,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let r=this.uri.match(Xz);this.scheme=r[2]||(r[1]?"":null),this.authority=r[4]||(r[3]?"":null),this.path=r[5],this.query=r[7]||(r[6]?"":null),this.fragment=r[9]||(r[8]?"":null),this.authority!=null&&(r=this.authority.match(Kz),this.user=r[3]||null,this.password=r[4]||null,this.host=r[6]||r[7],this.port=r[9]||null)}toString(){return this.uri}},$w={},Qz=new kn(Tt.applicationUrl),Ln=Qz,eW=rW(),tW=eW,Fw=()=>Ln;eg={path:"",query:""}});function sM(e){Br=e}var pW,Br,mW,jw=V(()=>{et();Ic();F_();Symbol.dispose??(Symbol.dispose=Symbol("Symbol.dispose")),Symbol.asyncDispose??(Symbol.asyncDispose=Symbol("Symbol.asyncDispose"));pW="4.32",mW=pW;mW=`4.32.0-next.${q0}`;he("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),he("host-webworker")});function gW(e){let t=li(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!hW.has(t)&&!e.endsWith("/sharing/rest/generateToken")}function aM(e,t){return!(!t&&!Tt.apiKey||!gW(e))}var hW,cM=V(()=>{yc();Ic();hW=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"])});function uM(e,t,r=!1,n){return new Promise((i,o)=>{if(Ks(n))return void o(lM());let s=()=>{d(),o(new Error(`Unable to load ${t}`))},c=()=>{let h=e;d(),i(h)},a=()=>{if(!e)return;let h=e;d(),h.src="",o(lM())},d=()=>{he("esri-image-decode")||(e.removeEventListener("error",s),e.removeEventListener("load",c)),s=null,c=null,e=null,n?.removeEventListener("abort",a),a=null,r&&URL.revokeObjectURL(t)};n?.addEventListener("abort",a),he("esri-image-decode")?e.decode().then(c,s):(e.addEventListener("error",s),e.addEventListener("load",c))})}function lM(){try{return new DOMException("Aborted","AbortError")}catch{let e=new Error;return e.name="AbortError",e}}function dM(){return new Error(wW)}function fM(e){Tt.request.crossOriginNoCorsDomains||(Tt.request.crossOriginNoCorsDomains={});let t=Tt.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[li(r)??""]=0:(t[li("http://"+r)??""]=0,t[li("https://"+r)??""]=0)}function pM(e){let t=Tt.request.crossOriginNoCorsDomains;if(t){let r=li(e);if(r)return r=r.toLowerCase(),!Jn(r,Fw())&&t[r]<Date.now()-36e5}return!1}async function mM(e){let t=Tc(e);e=t.path,t.query?.f==="json"&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}let r=Tt.request.crossOriginNoCorsDomains,n=li(e);r&&n&&(r[n.toLowerCase()]=Date.now())}var wW,hM=V(()=>{yc();et();ko();Ic();wW="Timeout exceeded"});var gM={};os(gM,{execute:()=>yW});function yW(e,t){let r=t.responseType;r?r!=="array-buffer"&&r!=="blob"&&r!=="json"&&r!=="native"&&r!=="native-request-init"&&r!=="text"&&(r="text"):r="json",t.responseType=r;let n=t.signal;return delete t.signal,globalThis.invokeStaticMessage("request",{url:e,options:t},{signal:n}).then(async i=>{let o,s,c,a,d;if(i.data)if(i.data instanceof ArrayBuffer){if(!(r!=="json"&&r!=="text"&&r!=="blob"||(o=new Blob([i.data]),r!=="json"&&r!=="text"||(a=await o.text(),r!=="json")))){try{s=JSON.parse(a||null)}catch(h){let g={...h,url:e,requestOptions:t};throw new We("request:server",h.message,g)}if(s.error){let h={...s.error,url:e,requestOptions:t};throw new We("request:server",s.error.message,h)}}}else r==="native"&&(i.data.signal=n,c=await fetch(i.data.url,i.data),i.httpStatus=c.status);switch(r){case"blob":d=o;break;case"json":d=s;break;case"native":d=c;break;case"text":d=a;break;default:d=i.data}return{data:d,httpStatus:i.httpStatus,requestOptions:t,ssl:i.ssl,url:e}})}var wM=V(()=>{An()});var Cp,xu,Hw=V(()=>{pt();Cc();oi();ut();Cp=class e{constructor(){this._emitter=new e.EventEmitter(this)}emit(t,r){return this._emitter.emit(t,r)}on(t,r){return this._emitter.on(t,r)}once(t,r){return this._emitter.once(t,r)}hasEventListener(t){return this._emitter.hasEventListener(t)}};(function(e){class t{constructor(i=null){this._target=i,this._listenersMap=null}clear(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clear()}emit(i,o){let s=this._listenersMap?.get(i);if(!s)return!1;let c=this._target||this,a=!1;for(let d of s.slice()){let h="deref"in d?d.deref():d;h?h?.call(c,o):a=!0}return a&&(s=s.filter(d=>!("deref"in d)||d.deref()!=null),this._listenersMap.set(i,s)),s.length>0}on(i,o){if(Array.isArray(i)){let c=i.map(a=>this.on(a,o));return gu(c)}if(i.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??(this._listenersMap=new Map);let s=this._listenersMap.get(i)||[];return s.push(o),this._listenersMap.set(i,s),Ct(()=>{let c=this._listenersMap?.get(i),a=c?.indexOf(o)??-1;a>=0&&c.splice(a,1)})}once(i,o){let s=this.on(i,c=>{s.remove(),("deref"in o?o.deref():o)?.call(null,c)});return s}hasEventListener(i){let o=this._listenersMap?.get(i);return o!=null&&o.length>0}}e.EventEmitter=t,e.EventedMixin=n=>{let i=class extends n{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(o,s){return this._emitter.emit(o,s)}on(o,s){return this._emitter.on(o,s)}once(o,s){return this._emitter.once(o,s)}hasEventListener(o){return this._emitter.hasEventListener(o)}};return i=N([Ie("esri.core.Evented")],i),i};let r=class extends Wr{constructor(){super(...arguments),this._emitter=new Cp.EventEmitter(this)}destroy(){this._emitter.clear()}emit(n,i){return this._emitter.emit(n,i)}on(n,i){return this._emitter.on(n,i)}once(n,i){return this._emitter.once(n,i)}hasEventListener(n){return this._emitter.hasEventListener(n)}};r=N([Ie("esri.core.Evented.EventedAccessor")],r),e.EventedAccessor=r})(Cp||(Cp={}));xu=Cp});var zS,yM=V(()=>{zS=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/Bishkek"],["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"]])});function bW(e){return"timeZoneIANA"in e}function vW(e){return e.startsWith("UTC")}function qw(e,t=No){return e?bW(e)?e.timeZoneIANA:_W(e,t):t}function _W(e,t=No){if(!e||!zS.has(e.timeZone))return t;let r=zS.get(e.timeZone);return vW(e.timeZone)||e.respectsDaylightSaving?r:SW(r)}function SW(e){let t=Se.local().setZone(e),r=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return r===0?"Etc/UTC":`Etc/GMT${At.instance(-r).formatOffset(0,"narrow")}`}var No,Cu,Tp,bM,tg=V(()=>{yM();In();No="system",Cu="unknown",Tp="UTC",bM=Intl.DateTimeFormat().resolvedOptions().timeZone});function EW(e){let t=WS.get(e);if(!t){let r=Ji(),n=CW[r]||r,i=Zw(e.timeZone??No),o={...e,timeZone:i};t=new Intl.DateTimeFormat(n,o),WS.set(e,t)}return t}function Ep(e,t=TW){return EW(t).format(e)}function Zw(e){switch(e){case No:return bM;case Cu:return Tp;default:return e}}var ws,rg,ng,ig,Ac,Tu,vM,og,sg,xW,Fde,CW,WS,TW,Yw=V(()=>{Ei();gc();tg();In();ws={year:"numeric",month:"numeric",day:"numeric"},rg={year:"numeric",month:"long",day:"numeric"},ng={year:"numeric",month:"short",day:"numeric"},ig={year:"numeric",month:"long",weekday:"long",day:"numeric"},Ac={hour:"numeric",minute:"numeric"},Tu={...Ac,second:"numeric"},vM={hourCycle:"h23"},og={...Ac,...vM},sg={...Tu,...vM},xW={"short-date":ws,"short-date-short-time":{...ws,...Ac},"short-date-short-time-24":{...ws,...og},"short-date-long-time":{...ws,...Tu},"short-date-long-time-24":{...ws,...sg},"short-date-le":ws,"short-date-le-short-time":{...ws,...Ac},"short-date-le-short-time-24":{...ws,...og},"short-date-le-long-time":{...ws,...Tu},"short-date-le-long-time-24":{...ws,...sg},"long-month-day-year":rg,"long-month-day-year-short-time":{...rg,...Ac},"long-month-day-year-short-time-24":{...rg,...og},"long-month-day-year-long-time":{...rg,...Tu},"long-month-day-year-long-time-24":{...rg,...sg},"day-short-month-year":ng,"day-short-month-year-short-time":{...ng,...Ac},"day-short-month-year-short-time-24":{...ng,...og},"day-short-month-year-long-time":{...ng,...Tu},"day-short-month-year-long-time-24":{...ng,...sg},"long-date":ig,"long-date-short-time":{...ig,...Ac},"long-date-short-time-24":{...ig,...og},"long-date-long-time":{...ig,...Tu},"long-date-long-time-24":{...ig,...sg},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":Ac,"long-time":Tu},Fde=Ki()({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"}),CW={ar:"ar-u-nu-latn-ca-gregory"},WS=new WeakMap,TW=xW["short-date-short-time"];lp(()=>{WS=new WeakMap})});function PW(e){let t=e||_M;if(!Jw.has(t)){let r=Ji(),n=MW[Ji()]||r;Jw.set(t,new Intl.NumberFormat(n,e))}return Jw.get(t)}function Mp(e,t){return Object.is(e,-0)&&(e=0),PW(t).format(e)}var MW,Jw,_M,BS=V(()=>{gc();MW={ar:"ar-u-nu-latn"},Jw=new WeakMap,_M={};lp(()=>{Jw=new WeakMap,_M={}})});function GS(e,t,r={}){let{format:n={}}=r;return fs(e,i=>IW(i,t,n))}function IW(e,t,r){let n,i,o=e.indexOf(":");if(o===-1?n=e.trim():(n=e.slice(0,o).trim(),i=e.slice(o+1).trim()),!n)return"";let s=Hi(n,t);if(s==null)return"";let c=(i?r?.[i]:null)??r?.[n];return c?AW(s,c):i?LW(s,i):jS(s)}function AW(e,t){switch(t.type){case"date":return Ep(e,t.intlOptions);case"number":return Mp(e,t.intlOptions);default:return SM().warn("missing format descriptor for key {key}"),jS(e)}}function LW(e,t){switch(t.toLowerCase()){case"dateformat":return Ep(e);case"numberformat":return Mp(e);default:return SM().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?Ep(e):/^numberformat/i.test(t)?Mp(e):jS(e)}}function jS(e){switch(typeof e){case"string":return e;case"number":return Mp(e);case"boolean":return""+e;default:return e instanceof Date?Ep(e):""}}var SM,HS=V(()=>{tt();ds();ic();Yw();BS();SM=()=>ct.getLogger("esri.intl.substitute")});function CM(e){return e in kW}function TM(e){for(let t of Pp.keys())MM(e.pattern,t)&&Pp.delete(t)}function EM(e){return ag.includes(e)||(TM(e),ag.unshift(e)),Ct(()=>{let t=ag.indexOf(e);t>-1&&(ag.splice(t,1),TM(e))})}async function qS(e){let t=Ji();Pp.has(e)||Pp.set(e,OW(e,t));let r=Pp.get(e);return r&&await NW.add(r),r}function ZS(e){if(!xM.test(e))return null;let t=xM.exec(e);if(t===null)return null;let[,r,n]=t,i=r+(n?"-"+n.toUpperCase():"");return CM(i)?i:CM(r)?r:null}async function OW(e,t){let r=[];for(let n of ag)if(MM(n.pattern,e))try{return await n.fetchMessageBundle(e,t)}catch(i){r.push(i)}throw r.length?new We("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r}):new We("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}function MM(e,t){return typeof e=="string"?t.startsWith(e):e.test(t)}var xM,kW,ag,Pp,NW,cg=V(()=>{An();oi();ko();gc();xM=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,kW={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};ag=[],Pp=new Map;lp(()=>{Pp.clear()});NW=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=ci())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&this._numLoading===0&&(this._dfd.resolve(),this._dfd=null)}}});async function RW(e,t,r,n){let i=t.exec(r);if(!i)throw new We("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);let o=i[1]?`${i[1]}/`:"",s=i[2],c=ZS(n),a=`${o}${s}.json`,d=c?`${o}${s}_${c}.json`:a,h;try{h=await PM(e(d))}catch(g){if(d===a)throw new We("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:g});try{h=await PM(e(a))}catch(v){throw new We("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:v})}}return h}async function PM(e){if(IM.fetchBundleAsset!=null)return IM.fetchBundleAsset(e);let t=await cr(e,{responseType:"text"});return JSON.parse(t.data)}function AM(e){return new YS(e)}var YS,IM,LM=V(()=>{Xw();An();cg();YS=class{constructor({base:t="",pattern:r,location:n=new URL(window.location.href)}){let i;i=typeof n=="string"?o=>new URL(o,new URL(n,window.location.href)).href:n instanceof URL?o=>new URL(o,n).href:n,this.pattern=typeof r=="string"?new RegExp(`^${r}`):r,this.getAssetUrl=i,t=t?t.endsWith("/")?t:t+"/":"",this.matcher=new RegExp(`^${t}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(t,r){return RW(this.getAssetUrl,this.matcher,t,r)}};IM={}});var JS=V(()=>{Yw();BS();HS();gc();cg();cg();LM();Kw();EM(AM({pattern:"esri/",location:Ip}))});function kM(e){return typeof e=="string"?document.getElementById(e):e??null}var OM=V(()=>{});var Lc,XS,KS,NM,RM=V(()=>{pt();Cc();ko();ut();(function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"})(Lc||(Lc={}));XS=class{constructor(){this._resolver=ci(),this._status=Lc.PENDING,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=Lc.RESOLVED,this._cleanUp()},()=>{this._status=Lc.REJECTED,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return this._status===Lc.RESOLVED}isRejected(){return this._status===Lc.REJECTED}isFulfilled(){return this._status!==Lc.PENDING}abort(){this._resolver.reject(hs())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;let t=ci(),r=[...this._resolvingPromises,t.promise],n=this._allPromise=Promise.all(r);n.then(()=>{this.isFulfilled()||this._allPromise!==n||this._resolver.resolve()},i=>{this.isFulfilled()||this._allPromise!==n||Zh(i)||this._resolver.reject(i)}),t.resolve()}},KS=e=>{let t=class extends e{constructor(...r){super(...r),this._promiseProps=new XS,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(r,n){return this._promiseProps.promise.then(()=>this).then(r,n)}catch(r){return this.when(null,r)}addResolvingPromise(r){r&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in r?r.when():r)}};return t=N([Ie("esri.core.Promise")],t),t},NM=class extends KS(Wr){};NM=N([Ie("esri.core.Promise")],NM)});function DW(e){return{ok:!0,value:e}}function $W(e){return{ok:!1,error:e}}function FW(e){return e!=null&&e.ok===!0?e.value:null}function UW(e){return e!=null&&e.ok===!1?e.error:null}var Eu,DM=V(()=>{pt();Cc();vc();ko();mt();ut();Eu=class extends Wr{get value(){return FW(this._result)}get error(){return UW(this._result)}get finished(){return this._result!=null}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=i8(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:r}=this._abortController;this.promise=e(r),this.promise.then(n=>{this._result=DW(n),this._cleanup()},n=>{this._result=$W(n),this._cleanup()}),this._abortHandle=Ci(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=zh(this._abortHandle),this._abortController=null}};N([z()],Eu.prototype,"value",null),N([z()],Eu.prototype,"error",null),N([z()],Eu.prototype,"finished",null),N([z()],Eu.prototype,"promise",void 0),N([z()],Eu.prototype,"_result",void 0),Eu=N([Ie("esri.core.asyncUtils.ReactiveTask")],Eu)});var yt,$M=V(()=>{(function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"})(yt||(yt={}))});function FM(e){return(t,r)=>{t[r]=e}}var UM=V(()=>{});var Qw,VM=V(()=>{pS();Qw=class extends yp{notify(){let t=this._observers;if(t&&t.length>0){let r=t.slice();for(let n of r)n.onInvalidated(),n.onCommitted()}}}});function zM(e){e&&typeof e=="object"&&"destroy"in e&&typeof e.destroy=="function"&&e.destroy()}function QS(e){return e?e instanceof Rc?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function ex(e){if(e?.length)return e[0]}function VW(e,t,r,n){let i=Math.min(e.length-r,t.length-n),o=0;for(;o<i&&e[r+o]===t[n+o];)o++;return o}function WM(e,t,r,n){t&&t.forEach((i,o,s)=>{e.push(i),WM(e,r.call(n,i,o,s),r,n)})}var Qs,rx,nx,Qi,kc,Oc,Nc,tx,zW,Rc,BM=V(()=>{pt();yw();Hw();oi();or();Wh();$M();Tw();Xi();bu();mt();UM();ut();VM();rx=class{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(t){this.defaultPrevented=!1,this.item=t}},nx=class{constructor(t,r,n,i,o){this.target=t,this.added=r,this.removed=n,this.start=i,this.deleteCount=o}},Qi=new Lo(rx,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});kc=new Set,Oc=new Set,Nc=new Set,tx=new Map,zW=0,Rc=Qs=class extends xu.EventedAccessor{static isCollection(e){return e!=null&&e instanceof Qs}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new Qw,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:zW++})}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof Qs?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),this._emitter.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get items(){return Je(this._observable),this._items}set items(e){this._emitBeforeChanges(yt.ADD)||(this._splice(0,this.length,QS(e)),this._emitAfterChanges(yt.ADD))}hasEventListener(e){return!this.destroyed&&(e==="change"?this._chgListeners.length>0:this._emitter.hasEventListener(e))}on(e,t){if(this.destroyed)return Ct();if(e==="change"){let r=this._chgListeners,n={removed:!1,callback:t};return r.push(n),this._notifications&&this._notifications.push({listeners:r.slice(),items:this._items.slice(),changes:[]}),Ct(()=>{n.removed=!0,r.splice(r.indexOf(n),1)})}return this._emitter.on(e,t)}once(e,t){let r="deref"in t?()=>t.deref():()=>t,n=this.on(e,i=>{r()?.call(null,i),n.remove()});return n}add(e,t){if(Je(this._observable),this._emitBeforeChanges(yt.ADD))return this;let r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(yt.ADD),this}addMany(e,t=this._items.length){if(Je(this._observable),!e?.length)return this;if(this._emitBeforeChanges(yt.ADD))return this;let r=this.getNextIndex(t);return this._splice(r,0,QS(e)),this._emitAfterChanges(yt.ADD),this}at(e){if(Je(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if(Je(this._observable),!this.length||this._emitBeforeChanges(yt.REMOVE))return[];let e=this._removeAllRaw();return this._emitAfterChanges(yt.REMOVE),e}_removeAllRaw(){return this.length===0?[]:this._splice(0,this.length)||[]}clone(){return Je(this._observable),this._createNewInstance({items:this._items.map(qe)})}concat(...e){Je(this._observable);let t=e.map(QS);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if(Je(this._observable),!this.length||this._emitBeforeChanges(yt.REMOVE))return;let r=this._splice(0,this.length),n=r.length;for(let i=0;i<n;i++)e.call(t,r[i],i,r);this._emitAfterChanges(yt.REMOVE)}destroyAll(){this.drain(zM)}destroyMany(e){let t=this.removeMany(e);return t.forEach(zM),t}every(e,t){return Je(this._observable),this._items.every(e,t)}filter(e,t){Je(this._observable);let r=arguments.length===2?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:r})}find(e,t){return Je(this._observable),this._items.find(e,t)}findIndex(e,t){return Je(this._observable),this._items.findIndex(e,t)}flatten(e,t){Je(this._observable);let r=[];return WM(r,this,e,t),new Qs(r)}forEach(e,t){return Je(this._observable),this._items.forEach(e,t)}getItemAt(e){return Je(this._observable),this._items[e]}getNextIndex(e){Je(this._observable);let t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return Je(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return Je(this._observable),this._items.indexOf(e,t)}join(e=","){return Je(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return Je(this._observable),this._items.lastIndexOf(e,t)}map(e,t){Je(this._observable);let r=this._items.map(e,t);return new Qs({items:r})}reorder(e,t=this.length-1){Je(this._observable);let r=this.indexOf(e);if(r!==-1){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(yt.MOVE))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(yt.MOVE)}return e}}pop(){if(Je(this._observable),!this.length||this._emitBeforeChanges(yt.REMOVE))return;let e=ex(this._splice(this.length-1,1));return this._emitAfterChanges(yt.REMOVE),e}push(...e){return Je(this._observable),this._emitBeforeChanges(yt.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(yt.ADD)),this.length}reduce(e,t){Je(this._observable);let r=this._items;return arguments.length===2?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){Je(this._observable);let r=this._items;return arguments.length===2?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return Je(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if(Je(this._observable),e<0||e>=this.length||this._emitBeforeChanges(yt.REMOVE))return;let t=ex(this._splice(e,1));return this._emitAfterChanges(yt.REMOVE),t}removeMany(e){if(Je(this._observable),!e?.length||this._emitBeforeChanges(yt.REMOVE))return[];let t=e instanceof Qs?e.toArray():e,r=this._items,n=[],i=t.length;for(let o=0;o<i;o++){let s=t[o],c=r.indexOf(s);if(c>-1){let a=1+VW(t,r,o+1,c+1),d=this._splice(c,a);d&&d.length>0&&n.push.apply(n,d),o+=a-1}}return this._emitAfterChanges(yt.REMOVE),n}reverse(){if(Je(this._observable),this._emitBeforeChanges(yt.MOVE))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(yt.MOVE),this}shift(){if(Je(this._observable),!this.length||this._emitBeforeChanges(yt.REMOVE))return;let e=ex(this._splice(0,1));return this._emitAfterChanges(yt.REMOVE),e}slice(e=0,t=this.length){return Je(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return Je(this._observable),this._items.some(e,t)}sort(e){if(Je(this._observable),!this.length||this._emitBeforeChanges(yt.MOVE))return this;let t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(yt.MOVE),this}splice(e,t,...r){Je(this._observable);let n=(t?yt.REMOVE:0)|(r.length?yt.ADD:0);if(this._emitBeforeChanges(n))return[];let i=this._splice(e,t,r)||[];return this._emitAfterChanges(n),i}toArray(){return Je(this._observable),this._items.slice()}toJSON(){return Je(this._observable),this.toArray()}toLocaleString(){return Je(this._observable),this._items.toLocaleString()}toString(){return Je(this._observable),this._items.toString()}unshift(...e){return Je(this._observable),!e.length||this._emitBeforeChanges(yt.ADD)||(this._splice(0,0,e),this._emitAfterChanges(yt.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){let n=this._items,i=this.itemType,o,s;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=Cw(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(s=n.splice(e,t),this.hasEventListener("before-remove")){let c=Qi.acquire();c.target=this,c.cancellable=!0;for(let a=0,d=s.length;a<d;a++)o=s[a],c.reset(o),this.emit("before-remove",c),c.defaultPrevented&&(s.splice(a,1),n.splice(e,0,o),e+=1,a-=1,d-=1);Qi.release(c)}if(this.length=this._items.length,this.hasEventListener("after-remove")){let c=Qi.acquire();c.target=this,c.cancellable=!1;let a=s.length;for(let d=0;d<a;d++)c.reset(s[d]),this.emit("after-remove",c);Qi.release(c)}}if(r?.length){if(i){let h=[];for(let g of r){let v=i.ensureType(g);v==null&&g!=null||h.push(v)}r=h}let c=this.hasEventListener("before-add"),a=this.hasEventListener("after-add"),d=e===this.length;if(c||a){let h=Qi.acquire();h.target=this,h.cancellable=!0;let g=Qi.acquire();g.target=this,g.cancellable=!1;for(let v of r)c?(h.reset(v),this.emit("before-add",h),h.defaultPrevented||(d?n.push(v):n.splice(e++,0,v),this._set("length",n.length),a&&(g.reset(v),this.emit("after-add",g)))):(d?n.push(v):n.splice(e++,0,v),this._set("length",n.length),g.reset(v),this.emit("after-add",g));Qi.release(g),Qi.release(h)}else{if(d)for(let h of r)n.push(h);else n.splice(e,0,...r);this._set("length",n.length)}}if((r?.length||s?.length)&&this._notifyChangeEvent(r,s),this.hasEventListener("after-splice")){let c=new nx(this,r,s,e,t);this.emit("after-splice",c)}return s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let r=Qi.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,Qi.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=Qi.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),Qi.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;let e=this._notifications;this._notifications=null;for(let t of e){let r=t.changes;kc.clear(),Oc.clear(),Nc.clear();for(let{added:a,removed:d}of r){if(a)if(Nc.size===0&&Oc.size===0)for(let h of a)kc.add(h);else for(let h of a)Oc.has(h)?(Nc.add(h),Oc.delete(h)):Nc.has(h)||kc.add(h);if(d)if(Nc.size===0&&kc.size===0)for(let h of d)Oc.add(h);else for(let h of d)kc.has(h)?kc.delete(h):(Nc.delete(h),Oc.add(h))}let n=Yn.acquire();kc.forEach(a=>{n.push(a)});let i=Yn.acquire();Oc.forEach(a=>{i.push(a)});let o=this._items,s=t.items,c=Yn.acquire();if(Nc.forEach(a=>{s.indexOf(a)!==o.indexOf(a)&&c.push(a)}),t.listeners&&(n.length||i.length||c.length)){let a={target:this,added:n,removed:i,moved:c},d=t.listeners.length;for(let h=0;h<d;h++){let g=t.listeners[h];g.removed||g.callback.call(this,a)}}Yn.release(n),Yn.release(i),Yn.release(c)}kc.clear(),Oc.clear(),Nc.clear()}};Rc.ofType=e=>{if(!e)return Qs;if(tx.has(e))return tx.get(e);let t=null;if(typeof e=="function")t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(let n in e.typeMap){let i=e.typeMap[n].prototype.declaredClass;t?t+=` | ${i}`:t=i}let r=class extends Qs{};return N([FM({Type:e,ensureType:typeof e=="function"?si(e):Io(e)})],r.prototype,"itemType",void 0),r=N([Ie(`esri.core.Collection<${t}>`)],r),tx.set(e,r),r},N([z()],Rc.prototype,"_updating",void 0),N([z()],Rc.prototype,"length",void 0),N([z()],Rc.prototype,"items",null),N([z({readOnly:!0})],Rc.prototype,"updating",null),Rc=Qs=N([Ie("esri.core.Collection")],Rc)});function lg(e,t,r={}){return jM(e,t,r,WW)}function GM(e,t,r={}){return jM(e,t,r,BW)}function jM(e,t,r={},n){let i=null,o=r.once?(s,c)=>{n(s)&&(zh(i),t(s,c))}:(s,c)=>{n(s)&&t(s,c)};if(i=F8(e,o,r.sync,r.equals),r.initial){let s=e();o(s,s)}return i}function WW(e){return!0}function BW(e){return!!e}var ey,ix=V(()=>{DM();BM();qh();oi();vc();ko();kS();LS();ey={sync:!0,initial:!0}});function HM(){if(GW)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=r=>e[r].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}var GW,qM=V(()=>{GW="randomUUID"in crypto});function HW(e){let t="__accessorMetadata__"in e?si(e):e;return function(...r){if(r.push(t),typeof r[2]=="number")throw new Error("Using @cast has parameter decorator is not supported since 4.16");return qW.apply(this,r)}}function qW(e,t,r,n){pp(e,t).cast=n}function ZW(e){return(t,r)=>{pp(t,e).cast=t[r]}}function ea(...e){if(e.length!==3||typeof e[1]!="string")return e.length===1&&jW.call(e[0])==="[object Function]"?HW(e[0]):e.length===1&&typeof e[0]=="string"?ZW(e[0]):void 0}var jW,ug=V(()=>{Xi();mp();jW=Object.prototype.toString});function KM(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function YW(e,t,r){}function JW(e,t,r){}function KW(e,t){return XW.test(t)?"":t}function eB(e,t){e=dg.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,n=!1,i=0,o=0,s="";function c(){if(!n){var h=dg.trim(e.slice(i,o)),g=h.indexOf(":");if(g!==-1){var v=dg.trim(h.slice(0,g)),S=dg.trim(h.slice(g+1));if(v){var M=t(i,s.length,v,S,h);M&&(s+=M+"; ")}}}i=o+1}for(;o<r;o++){var a=e[o];if(a==="/"&&e[o+1]==="*"){var d=e.indexOf("*/",o+2);if(d===-1)break;o=d+1,i=o+1,n=!1}else a==="("?n=!0:a===")"?n=!1:a===";"?n||c():a===`
|
|
4
|
-
`&&c()}return dg.trim(s)}function ZM(e){return e==null}function nB(e){var t={};for(var r in e)t[r]=e[r];return t}function QM(e){e=nB(e||{}),e.whiteList=e.whiteList||ty.whiteList,e.onAttr=e.onAttr||ty.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||ty.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||ty.safeAttrValue,this.options=e}function eP(){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"]}}function aB(e,t,r){}function cB(e,t,r){}function lB(e,t,r){}function uB(e,t,r){}function rP(e){return e.replace(fB,"<").replace(pB,">")}function dB(e,t,r,n){if(r=cP(r),t==="href"||t==="src"){if(r=sy.trim(r),r==="#")return"#";if(!(r.substr(0,7)==="http://"||r.substr(0,8)==="https://"||r.substr(0,7)==="mailto:"||r.substr(0,4)==="tel:"||r.substr(0,11)==="data:image/"||r.substr(0,6)==="ftp://"||r.substr(0,2)==="./"||r.substr(0,3)==="../"||r[0]==="#"||r[0]==="/"))return""}else if(t==="background"){if(ry.lastIndex=0,ry.test(r))return""}else if(t==="style"){if(YM.lastIndex=0,YM.test(r)||(JM.lastIndex=0,JM.test(r)&&(ry.lastIndex=0,ry.test(r))))return"";n!==!1&&(n=n||tP,r=n.process(r))}return r=lP(r),r}function nP(e){return e.replace(mB,""")}function iP(e){return e.replace(hB,'"')}function oP(e){return e.replace(gB,function(r,n){return n[0]==="x"||n[0]==="X"?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})}function sP(e){return e.replace(wB,":").replace(yB," ")}function aP(e){for(var t="",r=0,n=e.length;r<n;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return sy.trim(t)}function cP(e){return e=iP(e),e=oP(e),e=sP(e),e=aP(e),e}function lP(e){return e=nP(e),e=rP(e),e}function bB(){return""}function vB(e,t){typeof t!="function"&&(t=function(){});var r=!Array.isArray(e);function n(s){return r?!0:sy.indexOf(e,s)!==-1}var i=[],o=!1;return{onIgnoreTag:function(s,c,a){if(n(s))if(a.isClosing){var d="[/removed]",h=a.position+d.length;return i.push([o!==!1?o:a.position,h]),o=!1,d}else return o||(o=a.position),"[removed]";else return t(s,c,a)},remove:function(s){var c="",a=0;return sy.forEach(i,function(d){c+=s.slice(a,d[0]),a=d[1]}),c+=s.slice(a),c}}}function _B(e){for(var t="",r=0;r<e.length;){var n=e.indexOf("<!--",r);if(n===-1){t+=e.slice(r);break}t+=e.slice(r,n);var i=e.indexOf("-->",n);if(i===-1)break;r=i+3}return t}function SB(e){var t=e.split("");return t=t.filter(function(r){var n=r.charCodeAt(0);return n===127?!1:n<=31?n===10||n===13:!0}),t.join("")}function xB(e){var t=Dc.spaceIndex(e),r;return t===-1?r=e.slice(1,-1):r=e.slice(1,t+1),r=Dc.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function CB(e){return e.slice(0,2)==="</"}function TB(e,t,r){var n="",i=0,o=!1,s=!1,c=0,a=e.length,d="",h="";e:for(c=0;c<a;c++){var g=e.charAt(c);if(o===!1){if(g==="<"){o=c;continue}}else if(s===!1){if(g==="<"){n+=r(e.slice(i,c)),o=c,i=c;continue}if(g===">"){n+=r(e.slice(i,o)),h=e.slice(o,c+1),d=xB(h),n+=t(o,n.length,d,h,CB(h)),i=c+1,o=!1;continue}if(g==='"'||g==="'")for(var v=1,S=e.charAt(c-v);S.trim()===""||S==="=";){if(S==="="){s=g;continue e}S=e.charAt(c-++v)}}else if(g===s){s=!1;continue}}return i<e.length&&(n+=r(e.substr(i))),n}function MB(e,t){var r=0,n=0,i=[],o=!1,s=e.length;function c(v,S){if(v=Dc.trim(v),v=v.replace(EB,"").toLowerCase(),!(v.length<1)){var M=t(v,S||"");M&&i.push(M)}}for(var a=0;a<s;a++){var d=e.charAt(a),h,g;if(o===!1&&d==="="){o=e.slice(r,a),r=a+1,n=e.charAt(r)==='"'||e.charAt(r)==="'"?r:IB(e,a+1);continue}if(o!==!1&&a===n){if(g=e.indexOf(d,a+1),g===-1)break;h=Dc.trim(e.slice(n+1,g)),c(o,h),o=!1,a=g,r=a+1;continue}if(/\s|\n|\t/.test(d))if(e=e.replace(/\s|\n|\t/g," "),o===!1)if(g=PB(e,a),g===-1){h=Dc.trim(e.slice(r,a)),c(h),o=!1,r=a+1;continue}else{a=g-1;continue}else if(g=AB(e,a-1),g===-1){h=Dc.trim(e.slice(r,a)),h=XM(h),c(o,h),o=!1,r=a+1;continue}else continue}return r<e.length&&(o===!1?c(e.slice(r)):c(o,XM(Dc.trim(e.slice(r))))),Dc.trim(i.join(" "))}function PB(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="="?t:-1}}function IB(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="'"||r==='"'?t:-1}}function AB(e,t){for(;t>0;t--){var r=e[t];if(r!==" ")return r==="="?t:-1}}function LB(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function XM(e){return LB(e)?e.substr(1,e.length-2):e}function ny(e){return e==null}function RB(e){var t=iy.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=iy.trim(e.slice(t+1,-1));var r=e[e.length-1]==="/";return r&&(e=iy.trim(e.slice(0,-1))),{html:e,closing:r}}function DB(e){var t={};for(var r in e)t[r]=e[r];return t}function $B(e){var t={};for(var r in e)Array.isArray(e[r])?t[r.toLowerCase()]=e[r].map(function(n){return n.toLowerCase()}):t[r.toLowerCase()]=e[r];return t}function dP(e){e=DB(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=Ro.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=$B(e.whiteList||e.allowList):e.whiteList=Ro.whiteList,e.onTag=e.onTag||Ro.onTag,e.onTagAttr=e.onTagAttr||Ro.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||Ro.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||Ro.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||Ro.safeAttrValue,e.escapeHtml=e.escapeHtml||Ro.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new kB(e.css))}var oy,ox,lr,sx,Mu,XW,QW,dg,tB,ty,rB,iB,ax,cx,oB,sB,sy,tP,fB,pB,mB,hB,gB,wB,yB,ry,YM,JM,ay,Dc,EB,kB,Ro,uP,OB,NB,iy,FB,Ap,UB,fP,pP=V(()=>{oy=function(){return oy=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},oy.apply(this,arguments)},ox={exports:{}},lr={},sx={exports:{}},Mu={};XW=/javascript\s*\:/img;Mu.whiteList=KM();Mu.getDefaultWhiteList=KM;Mu.onAttr=YW;Mu.onIgnoreAttr=JW;Mu.safeAttrValue=KW;QW={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,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;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,"")}},dg=QW;tB=eB,ty=Mu,rB=tB;QM.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,i=r.onAttr,o=r.onIgnoreAttr,s=r.safeAttrValue,c=rB(e,function(a,d,h,g,v){var S=n[h],M=!1;if(S===!0?M=S:typeof S=="function"?M=S(g):S instanceof RegExp&&(M=S.test(g)),M!==!0&&(M=!1),g=s(h,g),!!g){var I={position:d,sourcePosition:a,source:v,isWhite:M};if(M){var R=i(h,g,I);return ZM(R)?h+":"+g:R}else{var R=o(h,g,I);if(!ZM(R))return R}}});return c};iB=QM;(function(e,t){var r=Mu,n=iB;function i(s,c){var a=new n(c);return a.process(s)}t=e.exports=i,t.FilterCSS=n;for(var o in r)t[o]=r[o]})(sx,sx.exports);ax=sx.exports,cx={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,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;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}},oB=ax.FilterCSS,sB=ax.getDefaultWhiteList,sy=cx;tP=new oB;fB=/</g,pB=/>/g,mB=/"/g,hB=/"/g,gB=/&#([a-zA-Z0-9]*);?/gim,wB=/:?/gim,yB=/&newline;?/gim,ry=/((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,YM=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,JM=/u\s*r\s*l\s*\(.*/gi;lr.whiteList=eP();lr.getDefaultWhiteList=eP;lr.onTag=aB;lr.onIgnoreTag=cB;lr.onTagAttr=lB;lr.onIgnoreTagAttr=uB;lr.safeAttrValue=dB;lr.escapeHtml=rP;lr.escapeQuote=nP;lr.unescapeQuote=iP;lr.escapeHtmlEntities=oP;lr.escapeDangerHtml5Entities=sP;lr.clearNonPrintableCharacter=aP;lr.friendlyAttrValue=cP;lr.escapeAttrValue=lP;lr.onIgnoreTagStripAll=bB;lr.StripTagBody=vB;lr.stripCommentTag=_B;lr.stripBlankChar=SB;lr.cssFilter=tP;lr.getDefaultCSSWhiteList=sB;ay={},Dc=cx;EB=/[^a-zA-Z0-9\\_:.-]/gim;ay.parseTag=TB;ay.parseAttr=MB;kB=ax.FilterCSS,Ro=lr,uP=ay,OB=uP.parseTag,NB=uP.parseAttr,iy=cx;dP.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,i=r.onTag,o=r.onIgnoreTag,s=r.onTagAttr,c=r.onIgnoreTagAttr,a=r.safeAttrValue,d=r.escapeHtml,h=t.cssFilter;r.stripBlankChar&&(e=Ro.stripBlankChar(e)),r.allowCommentTag||(e=Ro.stripCommentTag(e));var g=!1;r.stripIgnoreTagBody&&(g=Ro.StripTagBody(r.stripIgnoreTagBody,o),o=g.onIgnoreTag);var v=OB(e,function(S,M,I,R,B){var F={sourcePosition:S,position:M,isClosing:B,isWhite:Object.prototype.hasOwnProperty.call(n,I)},G=i(I,R,F);if(!ny(G))return G;if(F.isWhite){if(F.isClosing)return"</"+I+">";var J=RB(R),re=n[I],de=NB(J.html,function(W,me){var Le=iy.indexOf(re,W)!==-1,xe=s(I,W,me,Le);return ny(xe)?Le?(me=a(I,W,me,h),me?W+'="'+me+'"':W):(xe=c(I,W,me,Le),ny(xe)?void 0:xe):xe});return R="<"+I,de&&(R+=" "+de),J.closing&&(R+=" /"),R+=">",R}else return G=o(I,R,F),ny(G)?d(R):G},d);return g&&(v=g.remove(v)),v};FB=dP;(function(e,t){var r=lr,n=ay,i=FB;function o(c,a){var d=new i(a);return d.process(c)}t=e.exports=o,t.filterXSS=o,t.FilterXSS=i,function(){for(var c in r)t[c]=r[c];for(var a in n)t[a]=n[a]}();function s(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}s()&&(self.filterXSS=e.exports)})(ox,ox.exports);Ap=ox.exports,UB=function(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},fP=function(){function e(t,r){var n=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],code:["style"],dd:["style"],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],main:["style"],mark:["style"],nav:["style"],ol:[],p:["style"],pre:["style"],section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],strong:[],sub:["style"],summary:["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"],time:["style"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=oy(oy({},Ap.getDefaultCSSWhiteList()),{"align-items":!0,"align-self":!0,flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,float:!0,gap:!0,grid:!0,"grid-area":!0,"grid-auto-columns":!0,"grid-auto-flow":!0,"grid-auto-rows":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-start":!0,"grid-template":!0,"grid-template-areas":!0,"grid-template-columns":!0,"grid-template-rows":!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"line-height":!0,overflow:!0}),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(o,s,c,a){return o==="a"&&s==="href"||(o==="img"||o==="source")&&s==="src"?n.sanitizeUrl(c):Ap.safeAttrValue(o,s,c,a)}},this._entityMap={"&":"8","<":"<",">":">",'"':""","'":"'","/":"/"};var i;t&&!r?i=t:t&&r?(i=Object.create(this.arcgisFilterOptions),i.css={whiteList:this.arcgisCSSWhiteList},Object.keys(t).forEach(function(o){if(o==="whiteList")i.whiteList=n._extendObjectOfArrays([n.arcgisWhiteList,t.whiteList||{}]);else if(o==="css"){var s=t.css.whiteList;s!=null&&t.css instanceof Object&&Object.keys(s).forEach(function(c){return i.css.whiteList[c]=s[c]})}else i[o]=t[o]})):(i=Object.create(this.arcgisFilterOptions),i.whiteList=this.arcgisWhiteList,i.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=i,this._xssFilter=new Ap.FilterXSS(i)}return e.prototype.sanitize=function(t,r){switch(r===void 0&&(r={}),typeof t){case"number":return isNaN(t)||!isFinite(t)?null:t;case"boolean":return t;case"string":return this._xssFilter.process(t);case"object":return this._iterateOverObject(t,r);default:return r.allowUndefined&&typeof t>"u"?void 0:null}},e.prototype.sanitizeUrl=function(t,r){var n=(r??{}).isProtocolRequired,i=n===void 0?!0:n,o=this._trim(t.substring(0,t.indexOf(":"))),s=t==="/",c=/^#/.test(t),a=o&&this.allowedProtocols.indexOf(o.toLowerCase())>-1;return s||c||a?Ap.escapeAttrValue(t):!o&&!i?Ap.escapeAttrValue("https://".concat(t)):""},e.prototype.sanitizeHTMLAttribute=function(t,r,n,i){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(t,r,n,i):Ap.safeAttrValue(t,r,n,i)},e.prototype.validate=function(t,r){r===void 0&&(r={});var n=this.sanitize(t,r);return{isValid:t===n,sanitized:n}},e.prototype.encodeHTML=function(t){var r=this;return String(t).replace(/[&<>"'\/]/g,function(n){return r._entityMap[n]})},e.prototype.encodeAttrValue=function(t){var r=/^[a-zA-Z0-9]$/;return String(t).replace(/[\x00-\xFF]/g,function(n,i){return r.test(n)?n:"&#x".concat(Number(t.charCodeAt(i)).toString(16),";")})},e.prototype._extendObjectOfArrays=function(t){var r={};return t.forEach(function(n){Object.keys(n).forEach(function(i){Array.isArray(n[i])&&Array.isArray(r[i])?r[i]=r[i].concat(n[i]):r[i]=n[i]})}),r},e.prototype._iterateOverObject=function(t,r){var n=this;r===void 0&&(r={});try{var i=!1,o=void 0;if(Array.isArray(t))o=t.reduce(function(c,a){var d=n.validate(a,r);return d.isValid?c.concat([a]):(i=!0,c.concat([d.sanitized]))},[]);else if(UB(t)){var s=Object.keys(t);o=s.reduce(function(c,a){var d=t[a],h=n.validate(d,r);return h.isValid?c[a]=d:(i=!0,c[a]=h.sanitized),c},{})}else return r.allowUndefined&&typeof t>"u"?void 0:null;return i?o:t}catch{return null}},e.prototype._trim=function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},e}()});function ly(){cy.clear()}function mP(e){return cy.get(e)}function hP(e,t){cy.set(e,t)}function uy(e){cy.delete(e)}var cy,lx=V(()=>{cy=new Map});function gP(...e){let t=Yn.acquire();for(let n=0;n<e.length;n++){let i=e[n],o=typeof i;if(o==="string")t.push(i);else if(Array.isArray(i))t.push.apply(t,i);else if(o==="object")for(let s in i)i[s]&&t.push(s)}let r=t.join(" ");return Yn.release(t),r}async function wP(e,t){await L8(_w(t));let r=typeof e=="function"?e():e;r&&("setFocus"in r&&typeof r.setFocus=="function"?await r.setFocus():r instanceof HTMLElement&&r.focus())}var Npe,VB,zB,WB,ux,dy=V(()=>{pP();yw();oi();et();tt();ko();ix();Tw();lx();Npe=(()=>{let e=new Map,t=new ResizeObserver(n=>{ly();for(let i of n)e.get(i.target)?.(i)}),r=(n,i,o)=>(e.set(n,i),t.observe(n,o),Ct(()=>{t.unobserve(n),e.delete(n)}));return(n,i,o)=>{let s=null;return gu([lg(()=>typeof n=="function"?n():n,c=>{s?.remove(),c&&(s=r(c,i,o))},ey),Ct(()=>s?.remove())])}})(),VB=["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"],zB=VB.reduce((e,t)=>(e[t]=[],e),{}),WB=["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"],ux=new fP({whiteList:zB,onTagAttr:(e,t,r)=>{let n=`${t}="${r}"`;if(WB.includes(t))return n},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0)});function mx(e){if(!(e instanceof Element&&e.tagName.includes("-")))return!1;let t=window.customElements.get(e.tagName.toLowerCase());return!!t&&e instanceof t}var SP,py,xP,yP,my,gx,CP,BB,dx,GB,fx,px,TP,bP,vP,_P,jB,fy,HB,wx,Pu,hx,qB,ZB,Lp,EP=V(()=>{dy();SP="http://www.w3.org/",py=`${SP}2000/svg`,xP=`${SP}1999/xlink`,yP=[],my=(e,t)=>{let r={};return Object.keys(e).forEach(n=>{r[n]=e[n]}),t&&Object.keys(t).forEach(n=>{r[n]=t[n]}),r},gx=(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),CP=e=>{if(typeof e!="string")throw new Error("Style values must be strings")},BB=(e,t,r)=>{if(t.vnodeSelector!==""){for(let n=r;n<e.length;n++)if(gx(e[n],t))return n}return-1},dx=(e,t,r,n)=>{let i=e[t];if(i.vnodeSelector==="")return;let o=i.properties;if(!(o&&(o.key===void 0?o.bind:o.key))){for(let s=0;s<e.length;s++)if(s!==t){let c=e[s];if(gx(c,i))throw new Error(`${r.vnodeSelector} had a ${i.vnodeSelector} child ${n==="added"?n:"removed"}, but there is now more than one. You must add unique key properties to make them distinguishable.`)}}},GB=e=>{if(e.properties){let t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},fx=[],px=!1,TP=e=>{(e.children||[]).forEach(TP),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},bP=()=>{px=!1,fx.forEach(TP),fx.length=0},vP=e=>{fx.push(e),px||(px=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(bP,{timeout:16}):setTimeout(bP,16))},_P=e=>{let t=e.domNode;if(e.properties){let r=e.properties.exitAnimation;if(r)return t.style.pointerEvents="none",void r(t,()=>{t.parentNode&&(t.parentNode.removeChild(t),vP(e))},e.properties)}t.parentNode&&(t.parentNode.removeChild(t),vP(e))},jB=(e,t,r)=>{if(!t)return;let n=r.eventHandlerInterceptor,i=Object.keys(t),o=i.length;for(let s=0;s<o;s++){let c=i[s],a=t[c];if(c==="className")throw new Error('Property "className" is not supported, use "class".');if(c==="class")hx(e,a,!0);else if(c==="classes"){let d=Object.keys(a),h=d.length;for(let g=0;g<h;g++){let v=d[g];a[v]&&e.classList.add(v)}}else if(c==="styles"){let d=Object.keys(a),h=d.length;for(let g=0;g<h;g++){let v=d[g],S=a[v];S&&(CP(S),r.styleApplyer(e,v,S))}}else if(c!=="key"&&a!=null){let d=typeof a;d==="function"?(c.lastIndexOf("on",0)===0&&(n&&(a=n(c,a,e,t)),c==="oninput"&&function(){let h=a;a=function(g){h.apply(this,[g]),g.target["oninput-value"]=g.target.value}}()),e[c]=a):r.namespace===py?c==="href"?e.setAttributeNS(xP,c,a):e.setAttribute(c,a):d==="string"&&c!=="value"?c==="innerHTML"?e[c]=ux.sanitize(a):mx(e)&&c in e?e[c]=a:e.setAttribute(c,a):e[c]=a}}};HB=(e,t,r)=>{if(t)for(let n of t)Pu(n,e,void 0,r)},wx=(e,t,r)=>{HB(e,t.children,r),t.text&&(e.textContent=t.text),jB(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])},Pu=(e,t,r,n)=>{let i,o=0,s=e.vnodeSelector,c=t.ownerDocument;if(s==="")i=e.domNode=c.createTextNode(e.text),r!==void 0?t.insertBefore(i,r):t.appendChild(i);else{for(let a=0;a<=s.length;++a){let d=s.charAt(a);if(a===s.length||d==="."||d==="#"){let h=s.charAt(o-1),g=s.slice(o,a);h==="."?i.classList.add(g):h==="#"?i.id=g:(g==="svg"&&(n=my(n,{namespace:py})),n.namespace!==void 0?i=e.domNode=c.createElementNS(n.namespace,g):(i=e.domNode=e.domNode||c.createElement(g),g==="input"&&e.properties&&e.properties.type!==void 0&&i.setAttribute("type",e.properties.type)),r!==void 0?t.insertBefore(i,r):i.parentNode!==t&&t.appendChild(i)),o=a+1}}wx(i,e,n)}},hx=(e,t,r)=>{t&&t.split(" ").forEach(n=>{n&&e.classList.toggle(n,r)})},qB=(e,t,r,n)=>{if(!r)return;let i=!1,o=Object.keys(r),s=o.length;for(let c=0;c<s;c++){let a=o[c],d=r[a],h=t[a];if(a==="class")h!==d&&(hx(e,h,!1),hx(e,d,!0));else if(a==="classes"){let g=e.classList,v=Object.keys(d),S=v.length;for(let M=0;M<S;M++){let I=v[M],R=!!d[I];R!==!!h[I]&&(i=!0,R?g.add(I):g.remove(I))}}else if(a==="styles"){let g=Object.keys(d),v=g.length;for(let S=0;S<v;S++){let M=g[S],I=d[M];I!==h[M]&&(i=!0,I?(CP(I),n.styleApplyer(e,M,I)):n.styleApplyer(e,M,""))}}else if(d||typeof h!="string"||(d=""),a!=="value"||mx(e)){if(d!==h){let g=typeof d;g==="function"&&n.eventHandlerInterceptor||(n.namespace===py?a==="href"?e.setAttributeNS(xP,a,d):e.setAttribute(a,d):g==="string"?a==="innerHTML"?e[a]=ux.sanitize(d):a==="role"&&d===""?e.removeAttribute(a):mx(e)&&a in e?e[a]=d:e.setAttribute(a,d):e[a]!==d&&(e[a]=d),i=!0)}}else{let g=e[a];g!==d&&(e["oninput-value"]?g===e["oninput-value"]:d!==h)&&(e[a]=d,e["oninput-value"]=void 0),d!==h&&(i=!0)}}return i},ZB=(e,t,r,n,i)=>{if(r===n)return!1;n=n||yP;let o,s=(r=r||yP).length,c=n.length,a=0,d=0,h=!1;for(;d<c;){let g=a<s?r[a]:void 0,v=n[d];if(g!==void 0&&gx(g,v))h=fy(g,v,i)||h,a++;else{let S=BB(r,v,a+1);if(S>=0){for(o=a;o<S;o++)_P(r[o]),dx(r,o,e,"removed");h=fy(r[S],v,i)||h,a=S+1}else Pu(v,t,a<s?r[a].domNode:void 0,i),GB(v),dx(n,d,e,"added")}d++}if(s>a)for(o=a;o<s;o++)_P(r[o]),dx(r,o,e,"removed");return h};fy=(e,t,r)=>{let n=e.domNode,i=!1;if(e===t)return!1;let o=!1;if(t.vnodeSelector===""){if(t.text!==e.text){let s=n.ownerDocument.createTextNode(t.text);return n.parentNode.replaceChild(s,n),t.domNode=s,i=!0,i}t.domNode=n}else t.vnodeSelector.lastIndexOf("svg",0)===0&&(r=my(r,{namespace:py})),e.text!==t.text&&(o=!0,t.text===void 0?n.removeChild(n.firstChild):n.textContent=t.text),t.domNode=n,o=ZB(t,n,e.children,t.children,r)||o,o=qB(n,e.properties,t.properties,r)||o,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[n,r,t.vnodeSelector,t.properties,t.children]);return o&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(n,t.properties,e.properties),i};Lp=(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,fy(n,r,t)},domNode:e.domNode})});var YB,kp,Op,yx=V(()=>{EP();YB={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.charAt(0)==="-"?e.style.setProperty(t,r):e.style[t]=r}},kp=e=>my(YB,e),Op={create:(e,t)=>(t=kp(t),Pu(e,document.createElement("div"),void 0,t),Lp(e,t)),append:(e,t,r)=>(r=kp(r),Pu(t,e,void 0,r),Lp(t,r)),insertBefore:(e,t,r)=>(r=kp(r),Pu(t,e.parentNode,e,r),Lp(t,r)),merge:(e,t,r)=>(r=kp(r),t.domNode=e,wx(e,t,r),Lp(t,r)),replace:(e,t,r)=>(r=kp(r),Pu(t,e.parentNode,e,r),e.parentNode.removeChild(e),Lp(t,r))}});var JB,MP=V(()=>{yx();JB=Array.prototype.find?(e,t)=>e.find(t):(e,t)=>e.filter(t)[0]});var PP,IP=V(()=>{PP={handleInterceptedEvent:(e,t,r,n)=>(e.scheduleRender(),t.properties[`on${n.type}`].apply(t.properties.bind||r,[n]))}});var XB,AP,LP=V(()=>{XB={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.charAt(0)==="-"?e.style.setProperty(t,r):e.style[t]=r}},AP=e=>({...XB,...e})});var KB,QB,kP,OP,NP=V(()=>{yx();MP();IP();LP();KB=(e,t)=>{let r=[];for(;e&&e!==t;)r.push(e),e=e.parentNode;return r},QB=(e,t)=>e.find(t),kP=(e,t,r=!1)=>{let n=e;return t.forEach((i,o)=>{let s=n?.children?QB(n.children,c=>c.domNode===i):void 0;r&&!s&&o!==t.length-1||(n=s)}),n},OP=e=>{let t,r={...PP,...e},n=AP(r),i=n.performanceLogger,o,s=!0,c=!1,a=[],d=[],h=(v,S,M)=>{let I;n.eventHandlerInterceptor=(B,F,G,J)=>function(re){let de;i("domEvent",re);let W=KB(re.currentTarget,I.domNode),me=W.some(xe=>customElements.get(xe?.tagName?.toLowerCase()));if(re.eventPhase===Event.CAPTURING_PHASE||!me)W.reverse(),de=kP(I.getLastRender(),W);else{let xe=re.composedPath(),ke=xe.slice(xe.indexOf(re.currentTarget),xe.indexOf(I.domNode)).reverse();de=kP(I.getLastRender(),ke,!0)}let Le;return de&&(Le=r.handleInterceptedEvent(t,de,this,re)),i("domEventProcessed",re),Le},r.postProcessProjectionOptions?.(n);let R=M();I=v(S,R,n),n.eventHandlerInterceptor=void 0,a.push(I),d.push(M),r.afterFirstVNodeRendered&&r.afterFirstVNodeRendered(I,R)},g=()=>{if(o=void 0,s){s=!1,i("renderStart",void 0);for(let v=0;v<a.length;v++){let S=d[v]();i("rendered",void 0);try{a[v].update(S)}catch(M){console.error(M)}i("patched",void 0)}i("renderDone",void 0),s=!0}};return r.modifyDoRenderImplementation&&(g=r.modifyDoRenderImplementation(g,a,d)),t={renderNow:g,scheduleRender:()=>{o||c||(o=requestAnimationFrame(g))},stop:()=>{o&&(cancelAnimationFrame(o),o=void 0),c=!0},resume:()=>{c=!1,s=!0,t.scheduleRender()},append:(v,S)=>{h(Op.append,v,S)},insertBefore:(v,S)=>{h(Op.insertBefore,v,S)},merge:(v,S)=>{h(Op.merge,v,S)},replace:(v,S)=>{h(Op.replace,v,S)},detach:v=>{for(let S=0;S<d.length;S++)if(d[S]===v)return d.splice(S,1),a.splice(S,1)[0];throw new Error("renderFunction was not found")}},t}});var bx,vx,eG,fg,_x,Np=V(()=>{bx="calcite-mode-auto",vx="calcite-mode-dark",eG="calcite-mode-light",fg={autoMode:bx,darkMode:vx,lightMode:eG,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"},_x={filter:250,nextTick:0,resize:150,reposition:100}});var D,hy,Ht=V(()=>{D={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},hy="app"});var $G,Sx=V(()=>{$G=l9({})});var zP={};os(zP,{scopeCss:()=>DG});var tG,rG,nG,pg,RP,DP,Cx,iG,oG,sG,Iu,aG,cG,lG,gy,Tx,uG,dG,fG,pG,mG,hG,gG,wG,yG,bG,vG,_G,wy,SG,xG,CG,$P,FP,TG,EG,MG,PG,IG,AG,LG,UP,kG,OG,NG,VP,RG,xx,DG,WP=V(()=>{tG=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");rG=e=>{let t=[],r=0;return e=e.replace(/(\[[^\]]*\])/g,(o,s)=>{let c=`__ph-${r}__`;return t.push(s),r++,c}),{content:e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(o,s,c)=>{let a=`__ph-${r}__`;return t.push(c),r++,s+a}),placeholders:t}},nG=(e,t)=>t.replace(/__ph-(\d+)__/g,(r,n)=>e[+n]),pg="-shadowcsshost",RP="-shadowcssslotted",DP="-shadowcsscontext",Cx=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",iG=new RegExp("("+pg+Cx,"gim"),oG=new RegExp("("+DP+Cx,"gim"),sG=new RegExp("("+RP+Cx,"gim"),Iu=pg+"-no-combinator",aG=/-shadowcsshost-no-combinator([^\s]*)/,cG=[/::shadow/g,/::content/g],lG="([>\\s~+[.,{:][\\s\\S]*)?$",gy=/-shadowcsshost/gim,Tx=e=>new RegExp(`((?<!(^@supports(.*)))|(?<={.*))(${e}\\b)`,"gim"),uG=Tx("::slotted"),dG=Tx(":host"),fG=Tx(":host-context"),pG=/\/\*\s*[\s\S]*?\*\//g,mG=e=>e.replace(pG,""),hG=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,gG=e=>e.match(hG)||[],wG=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,yG=/([{}])/g,bG=/(^.*?[^\\])??((:+)(.*)|$)/,vG="{",_G="}",wy="%BLOCK%",SG=(e,t)=>{let r=xG(e),n=0;return r.escapedString.replace(wG,(...i)=>{let o=i[2],s="",c=i[4],a="";c&&c.startsWith("{"+wy)&&(s=r.blocks[n++],c=c.substring(wy.length+1),a="{");let h=t({selector:o,content:s});return`${i[1]}${h.selector}${i[3]}${a}${h.content}${c}`})},xG=e=>{let t=e.split(yG),r=[],n=[],i=0,o=[];for(let c=0;c<t.length;c++){let a=t[c];a===_G&&i--,i>0?o.push(a):(o.length>0&&(n.push(o.join("")),r.push(wy),o=[]),r.push(a)),a===vG&&i++}return o.length>0&&(n.push(o.join("")),r.push(wy)),{escapedString:r.join(""),blocks:n}},CG=e=>(e=e.replace(fG,`$1${DP}`).replace(dG,`$1${pg}`).replace(uG,`$1${RP}`),e),$P=(e,t,r)=>e.replace(t,(...n)=>{if(n[2]){let i=n[2].split(","),o=[];for(let s=0;s<i.length;s++){let c=i[s].trim();if(!c)break;o.push(r(Iu,c,n[3]))}return o.join(",")}else return Iu+n[3]}),FP=(e,t,r)=>e+t.replace(pg,"")+r,TG=e=>$P(e,iG,FP),EG=(e,t,r)=>t.indexOf(pg)>-1?FP(e,t,r):e+t+r+", "+t+" "+e+r,MG=(e,t)=>{let r="."+t+" > ",n=[];return e=e.replace(sG,(...i)=>{if(i[2]){let o=i[2].trim(),s=i[3],c=r+o+s,a="";for(let g=i[4]-1;g>=0;g--){let v=i[5][g];if(v==="}"||v===",")break;a=v+a}let d=(a+c).trim(),h=`${a.trimEnd()}${c.trim()}`.trim();if(d!==h){let g=`${h}, ${d}`;n.push({orgSelector:d,updatedSelector:g})}return c}else return Iu+i[3]}),{selectors:n,cssText:e}},PG=e=>$P(e,oG,EG),IG=e=>cG.reduce((t,r)=>t.replace(r," "),e),AG=e=>{let t=/\[/g,r=/\]/g;return e=e.replace(t,"\\[").replace(r,"\\]"),new RegExp("^("+e+")"+lG,"m")},LG=(e,t)=>!AG(t).test(e),UP=(e,t)=>e.replace(bG,(r,n="",i,o="",s="")=>n+t+o+s),kG=(e,t,r)=>{if(gy.lastIndex=0,gy.test(e)){let n=`.${r}`;return e.replace(aG,(i,o)=>UP(o,n)).replace(gy,n+" ")}return t+" "+e},OG=(e,t,r)=>{let n=/\[is=([^\]]*)\]/g;t=t.replace(n,(M,...I)=>I[0]);let i="."+t,o=M=>{let I=M.trim();if(!I)return"";if(M.indexOf(Iu)>-1)I=kG(M,t,r);else{let R=M.replace(gy,"");R.length>0&&(I=UP(R,i))}return I},s=rG(e);e=s.content;let c="",a=0,d,h=/( |>|\+|~(?!=))\s*/g,v=!(e.indexOf(Iu)>-1);for(;(d=h.exec(e))!==null;){let M=d[1],I=e.slice(a,d.index).trim();v=v||I.indexOf(Iu)>-1;let R=v?o(I):I;c+=`${R} ${M} `,a=h.lastIndex}let S=e.substring(a);return v=v||S.indexOf(Iu)>-1,c+=v?o(S):S,nG(s.placeholders,c)},NG=(e,t,r,n)=>e.split(",").map(i=>n&&i.indexOf("."+n)>-1?i.trim():LG(i,t)?OG(i,t,r).trim():i.trim()).join(", "),VP=(e,t,r,n)=>SG(e,i=>{let o=i.selector,s=i.content;return i.selector[0]!=="@"?o=NG(i.selector,t,r,n):(i.selector.startsWith("@media")||i.selector.startsWith("@supports")||i.selector.startsWith("@page")||i.selector.startsWith("@document"))&&(s=VP(i.content,t,r,n)),{selector:o.replace(/\s{2,}/g," ").trim(),content:s}}),RG=(e,t,r,n)=>{e=CG(e),e=TG(e),e=PG(e);let i=MG(e,n);return e=i.cssText,e=IG(e),t&&(e=VP(e,t,r,n)),e=xx(e,r),e=e.replace(/>\s*\*\s+([^{, ]+)/gm," $1 "),{cssText:e.trim(),slottedSelectors:i.selectors.map(o=>({orgSelector:xx(o.orgSelector,r),updatedSelector:xx(o.updatedSelector,r)}))}},xx=(e,t)=>e.replace(/-shadowcsshost-no-combinator/g,`.${t}`),DG=(e,t)=>{let r=t+"-h",n=t+"-s",i=gG(e);e=mG(e);let o=RG(e,t,r,n);return e=[o.cssText,...i].join(`
|
|
5
|
-
`),o.slottedSelectors.forEach(s=>{let c=new RegExp(tG(s.orgSelector),"g");e=e.replace(c,s.updatedSelector)}),e}});function nj(e){var t,r,n;return(n=(r=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:r.getAttribute("content"))!=null?n:void 0}function oj(e,t){if(e.isOk){let r=t(e.value);return r instanceof Promise?r.then(n=>
|
|
3
|
+
`);return c}setAtOrigin(t,r,n){let i=this.propertiesByName.get(t);if(gw(i))return this._setAtOrigin(i,r,n)}isOverridden(t){let r=this.propertiesByName.get(t);return r!==void 0&&!!(r.flags&ht.Overridden)}clearOverride(t){let r=this.propertiesByName.get(t);r&&r.flags&ht.Overridden&&(r.flags&=~ht.Overridden,r.notifyChange())}override(t,r){let n=this.propertiesByName.get(t);if(!l8(n,t,r,this))return;let i=n.metadata.cast;if(i){let o=this._cast(i,r),{valid:s,value:c}=o;if(mS.release(o),!s)return;r=c}n.flags|=ht.Overridden,this._internalSet(n,r)}set(t,r){let n=this.propertiesByName.get(t);if(!l8(n,t,r,this))return;let i=n.metadata.cast;if(i){let s=this._cast(i,r),{valid:c,value:a}=s;if(mS.release(s),!c)return;r=a}let o=n.metadata.set;o?o.call(this.host,r):this._internalSet(n,r)}setDefaultOrigin(t){this._origin=pw(t)}getDefaultOrigin(){return mw(this._origin)}notifyChange(t){let r=this.propertiesByName.get(t);r!==void 0&&r.notifyChange()}invalidate(t){let r=this.propertiesByName.get(t);r!==void 0&&r.invalidate()}commit(t){let r=this.propertiesByName.get(t);r!==void 0&&r.commit()}_internalSet(t,r){let n=this.lifecycle!==an.INITIALIZING?this._origin:st.DEFAULTS;this._setAtOrigin(t,r,n)}_setAtOrigin(t,r,n){let i=this.store,o=t.propertyName;i.has(o,n)&&jm(r,i.get(o))&&~t.flags&ht.Overridden&&n===i.originOf(o)||(t.invalidate(),i.set(o,r,n),t.commit(),K_(this.host,t))}_cast(t,r){let n=mS.acquire();return n.valid=!0,n.value=r,t&&(n.value=t.call(this.host,r,n)),n}},hS=class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}},mS=new Lo(hS)});function gS(){return sz}var sz,d8,f8=V(()=>{(function(e){e[e.Ignore=0]="Ignore",e[e.Destroy=1]="Destroy",e[e.ThrowError=2]="ThrowError"})(d8||(d8={}))});function az(e){e.length=0}var Yn,wS,yw=V(()=>{Wh();Yn=class{constructor(t=50,r=50){this._pool=new Lo(Array,void 0,az,r,t)}acquire(){return this._pool.acquire()}release(t){this._pool.release(t)}prune(){this._pool.prune(0)}static acquire(){return wS.acquire()}static release(t){return wS.release(t)}static prune(){wS.prune()}},wS=new Yn(100)});var bw,p8=V(()=>{Wh();bw=class extends Lo{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...t){let r=super.acquire(...t);return this._set.delete(r),r}release(t){t&&!this._set.has(t)&&(super.release(t),this._set.add(t))}_dispose(t){this._set.delete(t),super._dispose(t)}}});function yS(e){vw.push(e),vw.length===1&&queueMicrotask(()=>{let t=vw.slice();vw.length=0;for(let r of t)r()})}var vw,m8=V(()=>{vw=[]});var Gh,h8=V(()=>{Gh=class{constructor(t,r=30){this.name=t,this._counter=0,this._samples=new Array(r)}push(t){t!=null&&(this._samples[++this._counter%this._samples.length]=t)}set(t){t!=null&&(this._samples[this._counter%this._samples.length]=t)}get median(){return this._samples.slice().sort((t,r)=>t-r)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((t,r)=>t+r,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}});var bS,vS,g8=V(()=>{(function(e){let t=(o,s,c,a)=>{let d=s,h=s,g=c>>>1,v=o[d-1];for(;h<=g;){h=d<<1,h<c&&a(o[h-1],o[h])<0&&++h;let S=o[h-1];if(a(S,v)<=0)break;o[d-1]=S,d=h}o[d-1]=v},r=(o,s)=>o<s?-1:o>s?1:0;function n(o,s,c,a){s===void 0&&(s=0),c===void 0&&(c=o.length),a===void 0&&(a=r);for(let h=c>>>1;h>s;h--)t(o,h,c,a);let d=s+1;for(let h=c-1;h>s;h--){let g=o[s];o[s]=o[h],o[h]=g,t(o,d,h,a)}}function*i(o,s,c,a){s===void 0&&(s=0),c===void 0&&(c=o.length),a===void 0&&(a=r);for(let h=c>>>1;h>s;h--)t(o,h,c,a),yield;let d=s+1;for(let h=c-1;h>s;h--){let g=o[s];o[s]=o[h],o[h]=g,t(o,d,h,a),yield}}e.sort=n,e.iterableSort=i})(bS||(bS={}));vS=bS});function w8(e){e.data.length>cz*e.length&&(e.data.length=Math.floor(e.length*lz))}var cz,lz,jh,y8=V(()=>{nc();g8();cz=1.5,lz=1.1,jh=class{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new Gm,t&&(t.initialSize&&(this.data=new Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),t.deallocator!==void 0&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>w8(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){let r=new Array;for(let n=0;n<this._length;n++){let i=this.data[n];t(i)&&r.push(i)}return r}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,r){let n=this.data.indexOf(t,r);return n!==-1&&n<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let r=t;r<this._length;++r)this.data[r]=this._deallocator(this.data[r]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,r=t.length){for(let n=0;n<r;n++)this.data[this._length++]=t[n]}fill(t,r){for(let n=0;n<r;n++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,w8(this)}pop(){if(this.length===0)return;let t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){let r=G2(this.data,t,this.length,this._hint);if(r!==-1)return this.data.splice(r,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex(G2(this.data,t,this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,r=t.length,n){this.length=MT(this.data,t,this.length,r,this._hint,n),this._shrink()}front(){if(this.length!==0)return this.data[0]}back(){if(this.length!==0)return this.data[this.length-1]}swapElements(t,r){if(t>=this.length||r>=this.length||t===r)return;let n=this.data[t];this.data[t]=this.data[r],this.data[r]=n}sort(t){vS.sort(this.data,0,this.length,t)}iterableSort(t){return vS.iterableSort(this.data,0,this.length,t)}some(t,r){for(let n=0;n<this.length;++n)if(t.call(r,this.data[n],n,this.data))return!0;return!1}find(t,r){let{data:n,length:i}=this;for(let o=0;o<i;++o)if(t.call(r,n[o]))return n[o]}filterInPlace(t,r){let n=0;for(let i=0;i<this._length;++i){let o=this.data[i];t.call(r,o,i,this.data)&&(this.data[i]=this.data[n],this.data[n]=o,n++)}if(this._deallocator)for(let i=n;i<this._length;i++)this.data[i]=this._deallocator(this.data[i]);return this._length=n,this._shrink(),this}forAll(t,r){let{data:n,length:i}=this;for(let o=0;o<i;++o)t.call(r,n[o],o,n)}forEach(t,r){this.data.slice(0,this.length).forEach(t,r)}map(t,r){let n=new Array(this.length);for(let i=0;i<this.length;++i)n[i]=t.call(r,this.data[i],i,this.data);return n}reduce(t,r){let n=r;for(let i=0;i<this.length;++i)n=t(n,this.data[i],i,this.data);return n}has(t){let r=this.length,n=this.data;for(let i=0;i<r;++i)if(n[i]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;t++)yield this.data[t]}}});function uz(e){return{setTimeout:(t,r)=>{let n=e.setTimeout(t,r);return Ct(()=>e.clearTimeout(n))}}}var b8,v8=V(()=>{oi();b8=uz(globalThis)});function Hh(e){return dz(e)||_8(e)}function dz(e){return e!=null&&typeof e=="object"&&"on"in e&&typeof e.on=="function"}function _8(e){return e!=null&&typeof e=="object"&&"addEventListener"in e&&typeof e.addEventListener=="function"}function Sc(e,t,r){if(!Hh(e))throw new TypeError("target is not a Evented or EventTarget object");return _8(e)?fz(e,t,r):e.on(t,r)}function fz(e,t,r,n){if(Array.isArray(t)){let i=t.slice();for(let o of i)e.addEventListener(o,r,n);return Ct(()=>{for(let o of i)e.removeEventListener(o,r,n)})}return e.addEventListener(t,r,n),Ct(()=>e.removeEventListener(t,r,n))}function S8(e,t,r){if(!Hh(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);let n=Sc(e,t,i=>{n.remove(),r.call(e,i)});return n}var qh=V(()=>{oi()});function hs(e="Aborted"){return new We("AbortError",e)}function _w(e){return e instanceof AbortSignal?e:e?.signal??void 0}function Ks(e){let t=_w(e);return t!=null&&t.aborted}function _S(e){if(!Zh(e))throw e}function Ci(e,t){let r=_w(e);if(r!=null){if(!r.aborted)return S8(r,"abort",()=>t());t()}}function Zh(e){return e?.name==="AbortError"}function pz(e,t=void 0,r){let n=new AbortController;return Ci(r,()=>n.abort()),new Promise((i,o)=>{let s=setTimeout(()=>{s=0,i(t)},e);Ci(n,()=>{s&&(clearTimeout(s),o(hs()))})})}function mz(e){return e&&typeof e.then=="function"}function x8(e){return mz(e)?e:Promise.resolve(e)}function C8(e,t=-1){let r,n,i,o,s=null,c=(...a)=>{if(r){n=a,o&&o.reject(hs()),o=ci();let v=o.promise;if(s){let S=s;s=null,S.abort()}return v}if(i=o||ci(),o=null,t>0){let v=new AbortController;r=x8(e(...a,v.signal));let S=r;pz(t).then(()=>{r===S&&(o?v.abort():s=v)})}else r=1,r=x8(e(...a));let d=()=>{let v=n;n=i=r=s=null,v!=null&&c(...v)},h=r,g=i;return h.then(d,d),h.then(g.resolve,g.reject),g.promise};return c}function ci(){let e,t,r=new Promise((i,o)=>{e=i,t=o}),n=i=>{e(i)};return n.resolve=i=>e(i),n.reject=i=>t(i),n.timeout=(i,o)=>b8.setTimeout(()=>n.reject(o),i),n.promise=r,n}var ko=V(()=>{v8();An();qh();tt();vc()});var T8=V(()=>{});function hz(){Jh!=null&&(cancelAnimationFrame(Jh),Jh=requestAnimationFrame(P8))}function Cw(e){let t=new SS(e);return CS.push(t),xw.willDispatch||(xw.willDispatch=!0,yS(A8)),t}function gz(e=!1){bp.forAll(t=>{t.removed=!0}),e&&I8()}function P8(){let e=performance.now();Jh=null,Jh=bp.some(r=>!r.paused&&!r.removed)?requestAnimationFrame(P8):null,xw.executeFrameTasks(e)}function wz(e){let t=e-E8;E8=e;let r=M8>0?M8:1e3/60,n=Math.max(0,t-r);Yh.time=e,Yh.frameDuration=r-n;for(let i=0;i<xS.length;i++){let o=performance.now(),s=xS[i];bp.forAll(c=>{c.paused||c.removed||(i===0&&c.ticks++,c.phases[s]&&(Yh.elapsedFrameTime=performance.now()-e,Yh.deltaTime=c.ticks===0?0:t,c.phases[s]?.call(c,Yh)))}),vz[i].push(performance.now()-o)}I8(),_z.push(performance.now()-e)}function I8(){bp.forAll(e=>{e.removed&&Sw.push(e)}),bp.removeUnorderedMany(Sw.data,Sw.length),Sw.clear()}function A8(){for(;CS.length;){let e=CS.shift();e.isActive&&e.callback()}xw.willDispatch=!1}function yz(e=1,t){let r=ci(),n=()=>{Ks(t)?r.reject(hs()):e===0?r():(--e,yS(()=>n()))};return n(),r.promise}function bz(e){return yz(1,e)}async function L8(e){await bz(e),await new Promise(t=>requestAnimationFrame(()=>{e?.aborted||t()}))}var SS,E8,M8,Yh,xS,CS,bp,xw,Jh,Sw,vz,_z,Tw=V(()=>{m8();h8();y8();ko();T8();SS=class{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}},E8=0,M8=0,Yh={time:0,deltaTime:0,elapsedFrameTime:0,frameDuration:0},xS=["prepare","preRender","render","postRender","update","finish"],CS=[],bp=new jh;xw={frameTasks:bp,willDispatch:!1,clearFrameTasks:gz,dispatch:A8,executeFrameTasks:wz,reschedule:hz};Jh=null;Sw=new jh;vz=xS.map(e=>new Gh(e)),_z=new Gh("total")});function k8(e,t){if(!t)return e;for(let r of t)r!=null&&e.add(r);return e}function O8(e,t){let r=new Set;return k8(r,e),k8(r,t),r}var TS=V(()=>{});function Ew(){return++Sz}var Sz,N8=V(()=>{Sz=0});function xz(){}var vu,ES,R8,MS=V(()=>{Rh();vu=class extends ms{constructor(t){super(new ES(t)),this._observer&&R8.register(this,new WeakRef(this._observer),this)}destroy(){this._observer&&R8.unregister(this._observer),this.accessed?.clear(),this.clear(),this._observer?.destroy()}},ES=class{constructor(t){this._notify=t,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;let t=this._invalidCount;if(t===1)return this._invalidCount=0,void this._notify();this._invalidCount=t>0?t-1:0}destroy(){this.destroyed=!0,this._notify=xz}},R8=new FinalizationRegistry(e=>{e.deref()?.destroy()})});function IS(e,t){let r=new vu(o),n=null,i=!1;function o(){if(!r||i)return;if(PS)return void Cz(o);let c=n;r.clear(),PS=!0,i=!0,n=Ao(r,e),i=!1,PS=!1,t(n,c),Tz()}function s(){r&&(r.destroy(),r=null,n=null)}return i=!0,n=Ao(r,e),i=!1,Ct(s)}function AS(e,t){let r=new vu(i),n=null;function i(){t(n,s)}function o(){r&&(r.destroy(),r=null),n=null}function s(){return r?(r.clear(),n=Ao(r,e),n):null}return s(),Ct(o)}function Cz(e){Mw.includes(e)||Mw.unshift(e)}function Tz(){for(;Mw.length;)Mw.pop()()}var PS,Mw,LS=V(()=>{oi();bu();MS();PS=!1,Mw=[]});function Aw(e){xc.delete(e),xc.add(e),Iw||(Iw=Cw(Mz))}function Ez(e){if(e.removed)return;let t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function D8(e){for(let t of xc.values())t.target===e&&(t.removed=!0)}function Mz(){let e=10;for(;Iw&&e--;){Iw=null;let t=Pz(),r=Pw.acquire();for(let n of t){let i=n.uid;Ez(n),i===n.uid&&n.removed&&r.push(n)}for(let n of xc)n.removed&&(r.push(n),xc.delete(n));for(let n of r)_u.pool.release(n);Pw.release(r),Pw.release(t),Iz.forEach(n=>n())}}function Pz(){let e=Pw.acquire();e.length=xc.size;let t=0;for(let r of xc)e[t]=r,++t;return xc.clear(),e}function Az(e,t,r){let n=H_(e,t,r,(i,o,s)=>{let c,a,d=AS(()=>wu(i,o),(h,g)=>{i.__accessor__?.lifecycle===an.DESTROYED||c&&c.uid!==a?n.remove():(c||(c=_u.acquireUntracked(h,s,g,i,o),a=c.uid),Aw(c))});return Ct(()=>{d.remove(),c&&(c.uid!==a||c.removed||(c.removed=!0,Aw(c)),c=null),n=d=null})});return n}function Lz(e,t,r){let n=H_(e,t,r,(i,o,s)=>{let c=!1;return IS(()=>wu(i,o),(a,d)=>{i.__accessor__.lifecycle!==an.DESTROYED?c||(c=!0,jm(d,a)||s.call(i,a,d,o,i),c=!1):n.remove()})});return n}function $8(e,t,r,n=!1){return e.__accessor__&&e.__accessor__.lifecycle!==an.DESTROYED?n?Lz(e,t,r):Az(e,t,r):Ct()}function kz(e,t,r){let n,i,o=AS(e,(s,c)=>{n&&n.uid!==i?o.remove():(n||(n=_u.acquireTracked(s,t,c,r),i=n.uid),Aw(n))});return Ct(()=>{o.remove(),n&&(n.uid!==i||n.removed||(n.removed=!0,Aw(n)),n=null),o=null})}function Oz(e,t,r){let n=!1;return IS(e,(i,o)=>{n||(n=!0,r(o,i)||t(i,o),n=!1)})}function F8(e,t,r=!1,n=jT){return r?Oz(e,t,n):kz(e,t,n)}var Xh,_u,Pw,xc,Iw,Iz,kS=V(()=>{yw();oi();or();p8();Tw();TS();N8();yu();Nh();LS();Xs();(function(e){e[e.Untracked=0]="Untracked",e[e.Tracked=1]="Tracked"})(Xh||(Xh={}));_u=class{constructor(){this.uid=Ew(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static acquireUntracked(t,r,n,i,o){return this.pool.acquire(Xh.Untracked,t,r,n,i,o,jm)}static acquireTracked(t,r,n,i){return this.pool.acquire(Xh.Tracked,t,r,n,null,null,i)}notify(t,r){this.type===Xh.Untracked?this.callback.call(this.target,t,r,this.path,this.target):this.callback.call(null,t,r,void 0,void 0)}acquire(t,r,n,i,o,s,c){this.uid=Ew(),this.removed=!1,this.type=t,this.oldValue=r,this.callback=n,this.getValue=i,this.target=o,this.path=s,this.equals=c}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=Ew(),this.removed=!0}};_u.pool=new bw(_u);Pw=new Yn,xc=new Set;Iz=new Set});function Nz(e){if(e==null)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case"object":return e.constructor?.__accessorMetadata__||e instanceof Date?{type:e.constructor,value:e}:e;case"boolean":return{type:Boolean,value:e};case"string":return{type:String,value:e};case"number":return{type:Number,value:e};case"function":return{type:e,value:null};default:return}}var U8,V8,gs,OS,Wr,Cc=V(()=>{r8();vc();J_();yu();Nh();mp();u8();Y_();f8();kS();mt();ut();gs=Symbol("Accessor-Handles"),OS=Symbol("Accessor-Initialized"),Wr=class e{static createSubclass(t={}){if(Array.isArray(t))throw new Error("Multi-inheritance unsupported since 4.16");let{properties:r,declaredClass:n,constructor:i}=t;delete t.declaredClass,delete t.properties,delete t.constructor;let o=this;class s extends o{constructor(...a){super(...a),this.inherited=null,i&&i.apply(this,a)}}bc(s.prototype);for(let c in t){let a=t[c];s.prototype[c]=typeof a=="function"?function(...d){let h=this.inherited,g;this.inherited=function(...v){if(o.prototype[c])return o.prototype[c].apply(this,v)};try{g=a.apply(this,d)}catch(v){throw this.inherited=h,v}return this.inherited=h,g}:t[c]}for(let c in r){let a=Nz(r[c]);z(a)(s.prototype,c)}return Ie(n)(s)}static freeze(t){return t instanceof e?t.__accessor__.mutable=!1:Object.freeze(t),t}static isFrozen(t){return t instanceof e?!t.__accessor__.mutable:Object.isFrozen(t)}constructor(...t){if(this[U8]=null,this[V8]=!1,this.constructor===e)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");let r=new ww(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:r}),t.length>0&&(r.ctorArgs=this.normalizeCtorArgs?.apply(this,t)??t[0]),gS()?.onInstanceConstruct(this)}postscript(){let t=this.__accessor__,r=t.ctorArgs;t.initialize(),r&&(this.set(r),t.ctorArgs=null),t.constructed(),this.initialize(),this[OS]=!0}initialize(){}[rw](){this[gs]=Vh(this[gs])}destroy(){this.destroyed||(D8(this),this.__accessor__.destroy(),gS()?.onInstanceDestroy(this))}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[OS]}get destroyed(){return this.__accessor__?.lifecycle===an.DESTROYED||!1}commitProperty(t){ps(this,t)}hasOwnProperty(t){return this.__accessor__?this.__accessor__.has(t):Object.prototype.hasOwnProperty.call(this,t)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(t,r){return gp(this,t,r),this}watch(t,r,n){return $8(this,t,r,n)}addHandles(t,r){if(this.destroyed){let n=Array.isArray(t)?t:[t];for(let i of n)i.remove();return}(this[gs]??(this[gs]=new wp)).add(t,r)}removeHandles(t){this[gs]?.remove(t)}removeAllHandles(){this[gs]?.removeAll()}removeHandlesReference(t){this[gs]?.removeReference(t)}hasHandles(t){return this[gs]?.has(t)===!0}_override(t,r){r===void 0?this.__accessor__.clearOverride(t):this.__accessor__.override(t,r)}_clearOverride(t){return this.__accessor__.clearOverride(t)}_overrideIfSome(t,r){r==null?this.__accessor__.clearOverride(t):this.__accessor__.override(t,r)}_isOverridden(t){return this.__accessor__.isOverridden(t)}notifyChange(t){this.__accessor__.notifyChange(t)}_get(t){return this.__accessor__.internalGet(t)}_set(t,r){return this.__accessor__.internalSet(t,r),this}};U8=gs,V8=OS});var Lw,NS,z8=V(()=>{or();_c();Lw=class e{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){let r=new e;return this._values.forEach((n,i)=>{t&&t.has(i)||r.set(i,qe(n.value),n.origin)}),r}get(t,r){r=this._normalizeOrigin(r);let n=this._values.get(t);return r==null||n?.origin===r?n?.value:void 0}originOf(t){return this._values.get(t)?.origin??st.USER}keys(t){t=this._normalizeOrigin(t);let r=[...this._values.keys()];return t==null?r:r.filter(n=>this._values.get(n)?.origin===t)}set(t,r,n){if((n=this._normalizeOrigin(n))===st.DEFAULTS){let i=this._values.get(t);if(i?.origin!=null&&i.origin>n)return}this._values.set(t,new NS(r,n))}delete(t,r){(r=this._normalizeOrigin(r))!=null&&this._values.get(t)?.origin!==r||this._values.delete(t)}has(t,r){return(r=this._normalizeOrigin(r))!=null?this._values.get(t)?.origin===r:this._values.has(t)}forEach(t){this._values.forEach(({value:r},n)=>t(r,n))}_normalizeOrigin(t){if(t!=null)return t===st.DEFAULTS?t:st.USER}},NS=class{constructor(t,r){this.value=t,this.origin=r}}});function W8(e,t,r){t.keys().forEach(i=>{r.set(i,t.get(i),st.DEFAULTS)});let n=e.metadata;Object.keys(n).forEach(i=>{e.internalGet(i)&&r.set(i,e.internalGet(i),st.DEFAULTS)})}var B8=V(()=>{_c()});function Rz(e,t,r){if(!e?.read||e.read.enabled===!1||!e.read.source)return!1;let n=e.read.source;if(typeof n=="string"){if(n===t||n.includes(".")&&n.indexOf(t)===0&&q_(n,r))return!0}else for(let i of n)if(i===t||i.includes(".")&&i.indexOf(t)===0&&q_(i,r))return!0;return!1}function Dz(e){return e&&(!e.read||e.read.enabled!==!1&&!e.read.source)}function $z(e,t,r,n,i){let o=lw(t[r],i);Dz(o)&&(e[r]=!0);for(let s of Object.getOwnPropertyNames(t))o=lw(t[s],i),Rz(o,r,n)&&(e[s]=!0)}function Fz(e,t,r,n){let i=r.metadata,o=ZE(i[t],n),s=o?.default;if(s===void 0)return;let c=typeof s=="function"?s.call(e,t,n):s;c!==void 0&&r.set(t,c)}function G8(e,t,r=Uz){if(!t||typeof t!="object")return;let n=xi(e),i=n.metadata,o={};for(let s of Object.getOwnPropertyNames(t))$z(o,i,s,t,r);n.setDefaultOrigin(r.origin);for(let s of Object.getOwnPropertyNames(o)){let c=lw(i[s],r).read,a=c?.source,d;d=a&&typeof a=="string"?wu(t,a):t[s],c?.reader&&(d=c.reader.call(e,d,t,r)),d!==void 0&&n.set(s,d)}if(!r||!r.ignoreDefaults){n.setDefaultOrigin("defaults");for(let s of Object.getOwnPropertyNames(i))o[s]||Fz(e,s,n,r)}n.setDefaultOrigin("user")}var Uz,j8=V(()=>{yu();Xs();uw();Uz={origin:"service"}});function Vz(e,t,r,n,i){let o={};return t.write?.writer?.call(e,n,o,r,i),o}function zz(e,t,r,n,i,o){if(!n?.write)return!1;let s=ps(e,r);if(!i&&n.write.overridePolicy){let c=n.write.overridePolicy.call(e,s,r,o??void 0);c!==void 0&&(i=c)}if(i||(i=n.write),!i||i.enabled===!1||i.layerContainerTypes&&o?.layerContainerType&&!i.layerContainerTypes.includes(o.layerContainerType))return!1;if((s===null&&!i.allowNull&&!i.writerEnsuresNonNull||s===void 0)&&i.isRequired){let c=new We("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return c&&o?.messages?o.messages.push(c):c&&!o&&ct.getLogger("esri.core.accessorSupport.write").error(c.name,c.message),!1}return!(s===void 0||s===null&&!i.allowNull&&!i.writerEnsuresNonNull||!i.alwaysWriteDefaults&&(!t.store.multipleOriginsSupported||t.store.originOf(r)===st.DEFAULTS)&&Wz(e,r,o,n,s)||!i.ignoreOrigin&&o?.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<pw(o.origin))}function Wz(e,t,r,n,i){let o=n.default;if(o===void 0)return!1;if(n.defaultEquals!=null)return n.defaultEquals(i);if(typeof o=="function"){if(Array.isArray(i)){let s=o.call(e,t,r??void 0);return rc(s,i)}return!1}return o===i}function H8(e,t,r){if(e&&typeof e.toJSON=="function"&&(!e.toJSON.isDefaultToJSON||!e.write))return fp(t,e.toJSON(r));let n=xi(e),i=n.metadata;for(let o in i){let s=YE(i[o],r);if(!zz(e,n,o,s,void 0,r))continue;let c=ps(e,o),a=Vz(e,s,s.write&&typeof s.write.target=="string"?s.write.target:o,c,r);Object.keys(a).length>0&&(t=fp(t,a),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>fp(t,a,()=>"replace-arrays"))),r?.writtenProperties&&r.writtenProperties.push({target:e,propName:o,oldOrigin:s8(n.store.originOf(o)),newOrigin:r.origin}))}return t}var q8=V(()=>{nc();An();tt();yu();_c();Xs();uw()});function Gz(e,t){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");let r=new this;return r.read(e,t),r}function Kh(e){return e&&typeof e=="object"&&"toJSON"in e&&typeof e.toJSON=="function"}var Bz,lt,Er=V(()=>{pt();Cc();z8();B8();j8();Xs();q8();ut();Bz=e=>{let t=class extends e{constructor(...r){super(...r);let n=xi(this),i=n.store,o=new Lw;n.store=o,W8(n,i,o)}read(r,n){G8(this,r,n)}write(r,n){return H8(this,r??{},n)}toJSON(r){return this.write({},r)}static fromJSON(r,n){return Gz.call(this,r,n)}};return t=N([Ie("esri.core.JSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};lt=class extends Bz(Wr){};lt=N([Ie("esri.core.JSONSupport")],lt)});function Ti(e,t,r){let n,i;return t===void 0||Array.isArray(t)?(i=e,r=t,n=[void 0]):(i=t,n=Array.isArray(e)?e:[e]),(o,s)=>{let c=o.constructor.prototype;n.forEach(a=>{let d=tw(o,a,i);d.read&&typeof d.read=="object"||(d.read={}),d.read.reader=c[s],r&&(d.read.source=(d.read.source||[]).concat(r))})}}var vp=V(()=>{mt()});function jz(e){let t={};for(let r in e)t[e[r]]=r;return t}function Z8(e){let t=[];for(let r in e)t.push(r);return t.sort(),t}function Ki(){return function(e,t){return new Mr(e,{ignoreUnknown:!0,...t})}}var Mr,Ei=V(()=>{ds();Mr=class{constructor(t,r={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=t,this._options=r,this.apiValues=[],this.jsonValues=[],this._apiToJSON=jz(t),this.apiValues=Z8(this._apiToJSON),this.jsonValues=Z8(this._jsonToAPI),this.read=n=>this.fromJSON(n),this.write=(n,i,o)=>{let s=this.toJSON(n);s!==void 0&&Hs(o,s,i)},this.write.isJSONMapWriter=!0}toJSON(t){if(t==null)return null;if(this._apiToJSON.hasOwnProperty(t)){let r=this._apiToJSON[t];return this._options.useNumericKeys?+r:r}return this._options.ignoreUnknown?void 0:t}fromJSON(t){return t!=null&&this._jsonToAPI.hasOwnProperty(t)?this._jsonToAPI[t]:this._options.ignoreUnknown?void 0:t}}});var Qh,Oo,kw,Ow,Nw=V(()=>{Qh=class{constructor(t,r,n,i,o,s){this.semiMajorAxis=t,this.flattening=r,this.outerAtmosphereRimWidth=n,this.atmosphereHeight=i,this.scaleHeight=o;let c=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*c,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=s||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}},Oo=new Qh(6378137,1/298.257223563,3e5,1e5,.085,.006694379990137799),kw=new Qh(3396190,1/169.8944472236118,23e4,6e4,.111),Ow=new Qh(1737400,0,0,0,0)});function Rw(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function RS(e){let 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}var Dw=V(()=>{});function Y8(e){let t=new Uint8Array(e),r="";for(let n=0;n<t.length;n++)r+=String.fromCharCode(t[n]);return btoa(r)}var J8=V(()=>{});function rW(){let e=Ln.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${`${Ln.scheme}://${Ln.host}${Ln.port!=null?`:${Ln.port}`:""}`}${t}`}function Tc(e){if(!e)return null;let t={path:null,query:null},r=new kn(e),n=e.indexOf("?");return r.query===null?t.path=e:(t.path=e.slice(0,n),t.query=Ec(r.query)),r.fragment&&(t.hash=r.fragment,r.query===null&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function Ec(e){let t=e.split("&"),r={};for(let n of t){if(!n)continue;let i=n.indexOf("="),o,s;i<0?(o=decodeURIComponent(n),s=""):(o=decodeURIComponent(n.slice(0,i)),s=decodeURIComponent(n.slice(i+1)));let c=r[o];typeof c=="string"&&(c=r[o]=[c]),Array.isArray(c)?c.push(s):r[o]=s}return r}function Su(e,t){return e?t&&typeof t=="function"?Object.keys(e).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r]))).join("&"):Object.keys(e).map(r=>{let n=e[r];if(n==null)return"";let i=encodeURIComponent(r)+"=",o=t?.[r];return o?i+encodeURIComponent(o(n)):Array.isArray(n)?n.map(s=>Kh(s)?i+encodeURIComponent(JSON.stringify(s)):i+encodeURIComponent(s)).join("&"):Kh(n)?i+encodeURIComponent(JSON.stringify(n)):i+encodeURIComponent(n)}).filter(r=>r).join("&"):""}function eM(e=!1){let t,r=_p.proxyUrl;if(typeof e=="string"){t=iW(e);let n=Sp(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw Hz().warn(X8),new We("urlUtils:proxy-not-set",X8);return t&&DS()&&(r=Gw(r)),Tc(r)}function tM(e){let t=e.indexOf("?");return t!==-1?(eg.path=e.slice(0,t),eg.query=e.slice(t+1)):(eg.path=e,eg.query=null),eg}function rM(e){return e=(e=oM(e=lW(e=tM(e).path),!0)).toLowerCase()}function nM(e){let t={proxyUrl:e.proxyUrl,urlPrefix:rM(e.urlPrefix)},r=_p.proxyRules,n=t.urlPrefix,i=r.length;for(let o=0;o<r.length;o++){let s=r[o].urlPrefix;if(n.indexOf(s)===0){if(n.length===s.length)return-1;i=o;break}s.indexOf(n)===0&&(i=o+1)}return r.splice(i,0,t),i}function Sp(e){let t=_p.proxyRules,r=rM(e);for(let n=0;n<t.length;n++)if(r.indexOf(t[n].urlPrefix)===0)return t[n]}function FS(e,t=_p.interceptors){let r=n=>n==null||n instanceof RegExp&&n.test(e)||typeof n=="string"&&e.startsWith(n);if(t){for(let n of t)if(Array.isArray(n.urls)){if(n.urls.some(r))return n}else if(r(n.urls))return n}return null}function Jn(e,t,r=!1){if(!e||!t)return!1;let n=$S(e),i=$S(t);return!(!r&&n.scheme!==i.scheme)&&n.host!=null&&i.host!=null&&n.host.toLowerCase()===i.host.toLowerCase()&&n.port===i.port}function Uw(e){if(typeof e=="string"){if(!iM(e))return!0;e=$S(e)}if(Jn(e,Ln))return!0;let t=_p.trustedServers||[];for(let r=0;r<t.length;r++){let n=nW(t[r]);for(let i=0;i<n.length;i++)if(Jn(e,n[i]))return!0}return!1}function nW(e){return $w[e]||(VS(e)||Pc(e)?$w[e]=[new kn(Mc(e))]:$w[e]=[new kn(`http://${e}`),new kn(`https://${e}`)]),$w[e]}function Mc(e,t=tW,r){return Pc(e)?r?.preserveProtocolRelative?e:Ln.scheme==="http"&&Ln.authority===li(e).slice(2)?`http:${e}`:`https:${e}`:VS(e)?e:US(e[0]==="/"?cW(t):t,e)}function Vw(e){return e=fW(e=dW(e=uW(e=Mc(e=e.trim()))))}function US(...e){let t=e.filter(IT);if(!t?.length)return;let r=[];if(iM(t[0])){let i=t[0],o=i.indexOf("//");o!==-1&&(r.push(i.slice(0,o+1)),sW(t[0])&&(r[0]+="/"),t[0]=i.slice(o+2))}else t[0][0]==="/"&&r.push("");let n=t.reduce((i,o)=>o?i.concat(o.split("/")):i,[]);for(let i=0;i<n.length;i++){let o=n[i];o===".."&&r.length>0&&r[r.length-1]!==".."?r.pop():(!o&&i===n.length-1||o&&(o!=="."||r.length===0))&&r.push(o)}return r.join("/")}function li(e,t=!1){if(e==null||zw(e)||Ww(e))return null;let r=e.indexOf("://");if(r===-1&&Pc(e))r=2;else{if(r===-1)return null;r+=3}let n=e.indexOf("/",r);return n!==-1&&(e=e.slice(0,n)),t&&(e=oM(e,!0)),e}function iM(e){return Pc(e)||VS(e)}function zw(e){return e!=null&&e.slice(0,5)==="blob:"}function Ww(e){return e!=null&&e.slice(0,5)==="data:"}function Bw(e){return Y8(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function Pc(e){return e!=null&&e[0]==="/"&&e[1]==="/"}function VS(e){return e!=null&&K8.test(e)}function iW(e){return e!=null&&qz.test(e)||Ln.scheme==="https"&&Pc(e)}function oW(e){return e!=null&&Q8.test(e)||Ln.scheme==="http"&&Pc(e)}function sW(e){return e!=null&&Zz.test(e)}function Gw(e){return Pc(e)?`https:${e}`:e.replace(Q8,"https:")}function aW(){return Ln.scheme==="http"}function DS(){return Ln.scheme==="https"}function oM(e,t=!1){return Pc(e)?e.slice(2):(e=e.replace(K8,""),t&&e.length>1&&e[0]==="/"&&e[1]==="/"&&(e=e.slice(2)),e)}function cW(e){let t=e.indexOf("//"),r=e.indexOf("/",t+2);return r===-1?e:e.slice(0,r)}function lW(e){return e.endsWith("/")?e:`${e}/`}function uW(e){if(/^https?:\/\//i.test(e)){let t=tM(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}function dW(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}function fW(e){let t=_p.httpsDomains;if(!oW(e))return e;let r=e.indexOf("/",7),n;if(n=r===-1?e:e.slice(0,r),n=n.toLowerCase().slice(7),Yz.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return aW()&&n===Ln.authority&&!Jz.test(e)||(DS()&&n===Ln.authority||t&&t.some(i=>n===i||n.endsWith(`.${i}`))||DS()&&!Sp(e))&&(e=Gw(e)),e}function $S(e){return typeof e=="string"?new kn(Mc(e)):(e.scheme||(e.scheme=Ln.scheme),e)}function xp(e,t){if(!t)return e;let r=Tc(e),n=r.query||{};for(let[o,s]of Object.entries(t))s!=null&&(n[o]=s);let i=Su(n);return i?`${r.path}?${i}`:r.path}var Hz,_p,X8,K8,Q8,qz,Zz,Yz,Jz,Xz,Kz,kn,$w,Qz,Ln,eW,tW,Fw,eg,Ic=V(()=>{yc();nc();An();Er();tt();Dw();J8();Hz=()=>ct.getLogger("esri.core.urlUtils"),_p=Tt.request,X8="esri/config: esriConfig.request.proxyUrl is not set.",K8=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,Q8=/^\s*http:/i,qz=/^\s*https:/i,Zz=/^\s*file:/i,Yz=/:\d+$/,Jz=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,Xz=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),Kz=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$"),kn=class{constructor(t=""){this.uri=t,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let r=this.uri.match(Xz);this.scheme=r[2]||(r[1]?"":null),this.authority=r[4]||(r[3]?"":null),this.path=r[5],this.query=r[7]||(r[6]?"":null),this.fragment=r[9]||(r[8]?"":null),this.authority!=null&&(r=this.authority.match(Kz),this.user=r[3]||null,this.password=r[4]||null,this.host=r[6]||r[7],this.port=r[9]||null)}toString(){return this.uri}},$w={},Qz=new kn(Tt.applicationUrl),Ln=Qz,eW=rW(),tW=eW,Fw=()=>Ln;eg={path:"",query:""}});function sM(e){Br=e}var pW,Br,mW,jw=V(()=>{et();Ic();F_();Symbol.dispose??(Symbol.dispose=Symbol("Symbol.dispose")),Symbol.asyncDispose??(Symbol.asyncDispose=Symbol("Symbol.asyncDispose"));pW="4.32",mW=pW;mW=`4.32.0-next.${q0}`;he("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),he("host-webworker")});function gW(e){let t=li(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!hW.has(t)&&!e.endsWith("/sharing/rest/generateToken")}function aM(e,t){return!(!t&&!Tt.apiKey||!gW(e))}var hW,cM=V(()=>{yc();Ic();hW=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"])});function uM(e,t,r=!1,n){return new Promise((i,o)=>{if(Ks(n))return void o(lM());let s=()=>{d(),o(new Error(`Unable to load ${t}`))},c=()=>{let h=e;d(),i(h)},a=()=>{if(!e)return;let h=e;d(),h.src="",o(lM())},d=()=>{he("esri-image-decode")||(e.removeEventListener("error",s),e.removeEventListener("load",c)),s=null,c=null,e=null,n?.removeEventListener("abort",a),a=null,r&&URL.revokeObjectURL(t)};n?.addEventListener("abort",a),he("esri-image-decode")?e.decode().then(c,s):(e.addEventListener("error",s),e.addEventListener("load",c))})}function lM(){try{return new DOMException("Aborted","AbortError")}catch{let e=new Error;return e.name="AbortError",e}}function dM(){return new Error(wW)}function fM(e){Tt.request.crossOriginNoCorsDomains||(Tt.request.crossOriginNoCorsDomains={});let t=Tt.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[li(r)??""]=0:(t[li("http://"+r)??""]=0,t[li("https://"+r)??""]=0)}function pM(e){let t=Tt.request.crossOriginNoCorsDomains;if(t){let r=li(e);if(r)return r=r.toLowerCase(),!Jn(r,Fw())&&t[r]<Date.now()-36e5}return!1}async function mM(e){let t=Tc(e);e=t.path,t.query?.f==="json"&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}let r=Tt.request.crossOriginNoCorsDomains,n=li(e);r&&n&&(r[n.toLowerCase()]=Date.now())}var wW,hM=V(()=>{yc();et();ko();Ic();wW="Timeout exceeded"});var gM={};os(gM,{execute:()=>yW});function yW(e,t){let r=t.responseType;r?r!=="array-buffer"&&r!=="blob"&&r!=="json"&&r!=="native"&&r!=="native-request-init"&&r!=="text"&&(r="text"):r="json",t.responseType=r;let n=t.signal;return delete t.signal,globalThis.invokeStaticMessage("request",{url:e,options:t},{signal:n}).then(async i=>{let o,s,c,a,d;if(i.data)if(i.data instanceof ArrayBuffer){if(!(r!=="json"&&r!=="text"&&r!=="blob"||(o=new Blob([i.data]),r!=="json"&&r!=="text"||(a=await o.text(),r!=="json")))){try{s=JSON.parse(a||null)}catch(h){let g={...h,url:e,requestOptions:t};throw new We("request:server",h.message,g)}if(s.error){let h={...s.error,url:e,requestOptions:t};throw new We("request:server",s.error.message,h)}}}else r==="native"&&(i.data.signal=n,c=await fetch(i.data.url,i.data),i.httpStatus=c.status);switch(r){case"blob":d=o;break;case"json":d=s;break;case"native":d=c;break;case"text":d=a;break;default:d=i.data}return{data:d,httpStatus:i.httpStatus,requestOptions:t,ssl:i.ssl,url:e}})}var wM=V(()=>{An()});var Cp,xu,Hw=V(()=>{pt();Cc();oi();ut();Cp=class e{constructor(){this._emitter=new e.EventEmitter(this)}emit(t,r){return this._emitter.emit(t,r)}on(t,r){return this._emitter.on(t,r)}once(t,r){return this._emitter.once(t,r)}hasEventListener(t){return this._emitter.hasEventListener(t)}};(function(e){class t{constructor(i=null){this._target=i,this._listenersMap=null}clear(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clear()}emit(i,o){let s=this._listenersMap?.get(i);if(!s)return!1;let c=this._target||this,a=!1;for(let d of s.slice()){let h="deref"in d?d.deref():d;h?h?.call(c,o):a=!0}return a&&(s=s.filter(d=>!("deref"in d)||d.deref()!=null),this._listenersMap.set(i,s)),s.length>0}on(i,o){if(Array.isArray(i)){let c=i.map(a=>this.on(a,o));return gu(c)}if(i.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??(this._listenersMap=new Map);let s=this._listenersMap.get(i)||[];return s.push(o),this._listenersMap.set(i,s),Ct(()=>{let c=this._listenersMap?.get(i),a=c?.indexOf(o)??-1;a>=0&&c.splice(a,1)})}once(i,o){let s=this.on(i,c=>{s.remove(),("deref"in o?o.deref():o)?.call(null,c)});return s}hasEventListener(i){let o=this._listenersMap?.get(i);return o!=null&&o.length>0}}e.EventEmitter=t,e.EventedMixin=n=>{let i=class extends n{constructor(){super(...arguments),this._emitter=new t}destroy(){this._emitter.clear()}emit(o,s){return this._emitter.emit(o,s)}on(o,s){return this._emitter.on(o,s)}once(o,s){return this._emitter.once(o,s)}hasEventListener(o){return this._emitter.hasEventListener(o)}};return i=N([Ie("esri.core.Evented")],i),i};let r=class extends Wr{constructor(){super(...arguments),this._emitter=new Cp.EventEmitter(this)}destroy(){this._emitter.clear()}emit(n,i){return this._emitter.emit(n,i)}on(n,i){return this._emitter.on(n,i)}once(n,i){return this._emitter.once(n,i)}hasEventListener(n){return this._emitter.hasEventListener(n)}};r=N([Ie("esri.core.Evented.EventedAccessor")],r),e.EventedAccessor=r})(Cp||(Cp={}));xu=Cp});var zS,yM=V(()=>{zS=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/Bishkek"],["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"]])});function bW(e){return"timeZoneIANA"in e}function vW(e){return e.startsWith("UTC")}function qw(e,t=No){return e?bW(e)?e.timeZoneIANA:_W(e,t):t}function _W(e,t=No){if(!e||!zS.has(e.timeZone))return t;let r=zS.get(e.timeZone);return vW(e.timeZone)||e.respectsDaylightSaving?r:SW(r)}function SW(e){let t=Se.local().setZone(e),r=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return r===0?"Etc/UTC":`Etc/GMT${At.instance(-r).formatOffset(0,"narrow")}`}var No,Cu,Tp,bM,tg=V(()=>{yM();In();No="system",Cu="unknown",Tp="UTC",bM=Intl.DateTimeFormat().resolvedOptions().timeZone});function EW(e){let t=WS.get(e);if(!t){let r=Ji(),n=CW[r]||r,i=Zw(e.timeZone??No),o={...e,timeZone:i};t=new Intl.DateTimeFormat(n,o),WS.set(e,t)}return t}function Ep(e,t=TW){return EW(t).format(e)}function Zw(e){switch(e){case No:return bM;case Cu:return Tp;default:return e}}var ws,rg,ng,ig,Ac,Tu,vM,og,sg,xW,Fde,CW,WS,TW,Yw=V(()=>{Ei();gc();tg();In();ws={year:"numeric",month:"numeric",day:"numeric"},rg={year:"numeric",month:"long",day:"numeric"},ng={year:"numeric",month:"short",day:"numeric"},ig={year:"numeric",month:"long",weekday:"long",day:"numeric"},Ac={hour:"numeric",minute:"numeric"},Tu={...Ac,second:"numeric"},vM={hourCycle:"h23"},og={...Ac,...vM},sg={...Tu,...vM},xW={"short-date":ws,"short-date-short-time":{...ws,...Ac},"short-date-short-time-24":{...ws,...og},"short-date-long-time":{...ws,...Tu},"short-date-long-time-24":{...ws,...sg},"short-date-le":ws,"short-date-le-short-time":{...ws,...Ac},"short-date-le-short-time-24":{...ws,...og},"short-date-le-long-time":{...ws,...Tu},"short-date-le-long-time-24":{...ws,...sg},"long-month-day-year":rg,"long-month-day-year-short-time":{...rg,...Ac},"long-month-day-year-short-time-24":{...rg,...og},"long-month-day-year-long-time":{...rg,...Tu},"long-month-day-year-long-time-24":{...rg,...sg},"day-short-month-year":ng,"day-short-month-year-short-time":{...ng,...Ac},"day-short-month-year-short-time-24":{...ng,...og},"day-short-month-year-long-time":{...ng,...Tu},"day-short-month-year-long-time-24":{...ng,...sg},"long-date":ig,"long-date-short-time":{...ig,...Ac},"long-date-short-time-24":{...ig,...og},"long-date-long-time":{...ig,...Tu},"long-date-long-time-24":{...ig,...sg},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":Ac,"long-time":Tu},Fde=Ki()({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"}),CW={ar:"ar-u-nu-latn-ca-gregory"},WS=new WeakMap,TW=xW["short-date-short-time"];lp(()=>{WS=new WeakMap})});function PW(e){let t=e||_M;if(!Jw.has(t)){let r=Ji(),n=MW[Ji()]||r;Jw.set(t,new Intl.NumberFormat(n,e))}return Jw.get(t)}function Mp(e,t){return Object.is(e,-0)&&(e=0),PW(t).format(e)}var MW,Jw,_M,BS=V(()=>{gc();MW={ar:"ar-u-nu-latn"},Jw=new WeakMap,_M={};lp(()=>{Jw=new WeakMap,_M={}})});function GS(e,t,r={}){let{format:n={}}=r;return fs(e,i=>IW(i,t,n))}function IW(e,t,r){let n,i,o=e.indexOf(":");if(o===-1?n=e.trim():(n=e.slice(0,o).trim(),i=e.slice(o+1).trim()),!n)return"";let s=Hi(n,t);if(s==null)return"";let c=(i?r?.[i]:null)??r?.[n];return c?AW(s,c):i?LW(s,i):jS(s)}function AW(e,t){switch(t.type){case"date":return Ep(e,t.intlOptions);case"number":return Mp(e,t.intlOptions);default:return SM().warn("missing format descriptor for key {key}"),jS(e)}}function LW(e,t){switch(t.toLowerCase()){case"dateformat":return Ep(e);case"numberformat":return Mp(e);default:return SM().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?Ep(e):/^numberformat/i.test(t)?Mp(e):jS(e)}}function jS(e){switch(typeof e){case"string":return e;case"number":return Mp(e);case"boolean":return""+e;default:return e instanceof Date?Ep(e):""}}var SM,HS=V(()=>{tt();ds();ic();Yw();BS();SM=()=>ct.getLogger("esri.intl.substitute")});function CM(e){return e in kW}function TM(e){for(let t of Pp.keys())MM(e.pattern,t)&&Pp.delete(t)}function EM(e){return ag.includes(e)||(TM(e),ag.unshift(e)),Ct(()=>{let t=ag.indexOf(e);t>-1&&(ag.splice(t,1),TM(e))})}async function qS(e){let t=Ji();Pp.has(e)||Pp.set(e,OW(e,t));let r=Pp.get(e);return r&&await NW.add(r),r}function ZS(e){if(!xM.test(e))return null;let t=xM.exec(e);if(t===null)return null;let[,r,n]=t,i=r+(n?"-"+n.toUpperCase():"");return CM(i)?i:CM(r)?r:null}async function OW(e,t){let r=[];for(let n of ag)if(MM(n.pattern,e))try{return await n.fetchMessageBundle(e,t)}catch(i){r.push(i)}throw r.length?new We("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r}):new We("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}function MM(e,t){return typeof e=="string"?t.startsWith(e):e.test(t)}var xM,kW,ag,Pp,NW,cg=V(()=>{An();oi();ko();gc();xM=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,kW={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};ag=[],Pp=new Map;lp(()=>{Pp.clear()});NW=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=ci())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&this._numLoading===0&&(this._dfd.resolve(),this._dfd=null)}}});async function RW(e,t,r,n){let i=t.exec(r);if(!i)throw new We("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);let o=i[1]?`${i[1]}/`:"",s=i[2],c=ZS(n),a=`${o}${s}.json`,d=c?`${o}${s}_${c}.json`:a,h;try{h=await PM(e(d))}catch(g){if(d===a)throw new We("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:g});try{h=await PM(e(a))}catch(v){throw new We("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:v})}}return h}async function PM(e){if(IM.fetchBundleAsset!=null)return IM.fetchBundleAsset(e);let t=await cr(e,{responseType:"text"});return JSON.parse(t.data)}function AM(e){return new YS(e)}var YS,IM,LM=V(()=>{Xw();An();cg();YS=class{constructor({base:t="",pattern:r,location:n=new URL(window.location.href)}){let i;i=typeof n=="string"?o=>new URL(o,new URL(n,window.location.href)).href:n instanceof URL?o=>new URL(o,n).href:n,this.pattern=typeof r=="string"?new RegExp(`^${r}`):r,this.getAssetUrl=i,t=t?t.endsWith("/")?t:t+"/":"",this.matcher=new RegExp(`^${t}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(t,r){return RW(this.getAssetUrl,this.matcher,t,r)}};IM={}});var JS=V(()=>{Yw();BS();HS();gc();cg();cg();LM();Kw();EM(AM({pattern:"esri/",location:Ip}))});function kM(e){return typeof e=="string"?document.getElementById(e):e??null}var OM=V(()=>{});var Lc,XS,KS,NM,RM=V(()=>{pt();Cc();ko();ut();(function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"})(Lc||(Lc={}));XS=class{constructor(){this._resolver=ci(),this._status=Lc.PENDING,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=Lc.RESOLVED,this._cleanUp()},()=>{this._status=Lc.REJECTED,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return this._status===Lc.RESOLVED}isRejected(){return this._status===Lc.REJECTED}isFulfilled(){return this._status!==Lc.PENDING}abort(){this._resolver.reject(hs())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;let t=ci(),r=[...this._resolvingPromises,t.promise],n=this._allPromise=Promise.all(r);n.then(()=>{this.isFulfilled()||this._allPromise!==n||this._resolver.resolve()},i=>{this.isFulfilled()||this._allPromise!==n||Zh(i)||this._resolver.reject(i)}),t.resolve()}},KS=e=>{let t=class extends e{constructor(...r){super(...r),this._promiseProps=new XS,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(r,n){return this._promiseProps.promise.then(()=>this).then(r,n)}catch(r){return this.when(null,r)}addResolvingPromise(r){r&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in r?r.when():r)}};return t=N([Ie("esri.core.Promise")],t),t},NM=class extends KS(Wr){};NM=N([Ie("esri.core.Promise")],NM)});function DW(e){return{ok:!0,value:e}}function $W(e){return{ok:!1,error:e}}function FW(e){return e!=null&&e.ok===!0?e.value:null}function UW(e){return e!=null&&e.ok===!1?e.error:null}var Eu,DM=V(()=>{pt();Cc();vc();ko();mt();ut();Eu=class extends Wr{get value(){return FW(this._result)}get error(){return UW(this._result)}get finished(){return this._result!=null}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=i8(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:r}=this._abortController;this.promise=e(r),this.promise.then(n=>{this._result=DW(n),this._cleanup()},n=>{this._result=$W(n),this._cleanup()}),this._abortHandle=Ci(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=zh(this._abortHandle),this._abortController=null}};N([z()],Eu.prototype,"value",null),N([z()],Eu.prototype,"error",null),N([z()],Eu.prototype,"finished",null),N([z()],Eu.prototype,"promise",void 0),N([z()],Eu.prototype,"_result",void 0),Eu=N([Ie("esri.core.asyncUtils.ReactiveTask")],Eu)});var yt,$M=V(()=>{(function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"})(yt||(yt={}))});function FM(e){return(t,r)=>{t[r]=e}}var UM=V(()=>{});var Qw,VM=V(()=>{pS();Qw=class extends yp{notify(){let t=this._observers;if(t&&t.length>0){let r=t.slice();for(let n of r)n.onInvalidated(),n.onCommitted()}}}});function zM(e){e&&typeof e=="object"&&"destroy"in e&&typeof e.destroy=="function"&&e.destroy()}function QS(e){return e?e instanceof Rc?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function e4(e){if(e?.length)return e[0]}function VW(e,t,r,n){let i=Math.min(e.length-r,t.length-n),o=0;for(;o<i&&e[r+o]===t[n+o];)o++;return o}function WM(e,t,r,n){t&&t.forEach((i,o,s)=>{e.push(i),WM(e,r.call(n,i,o,s),r,n)})}var Qs,r4,n4,Qi,kc,Oc,Nc,t4,zW,Rc,BM=V(()=>{pt();yw();Hw();oi();or();Wh();$M();Tw();Xi();bu();mt();UM();ut();VM();r4=class{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(t){this.defaultPrevented=!1,this.item=t}},n4=class{constructor(t,r,n,i,o){this.target=t,this.added=r,this.removed=n,this.start=i,this.deleteCount=o}},Qi=new Lo(r4,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});kc=new Set,Oc=new Set,Nc=new Set,t4=new Map,zW=0,Rc=Qs=class extends xu.EventedAccessor{static isCollection(e){return e!=null&&e instanceof Qs}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new Qw,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:zW++})}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof Qs?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),this._emitter.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get items(){return Je(this._observable),this._items}set items(e){this._emitBeforeChanges(yt.ADD)||(this._splice(0,this.length,QS(e)),this._emitAfterChanges(yt.ADD))}hasEventListener(e){return!this.destroyed&&(e==="change"?this._chgListeners.length>0:this._emitter.hasEventListener(e))}on(e,t){if(this.destroyed)return Ct();if(e==="change"){let r=this._chgListeners,n={removed:!1,callback:t};return r.push(n),this._notifications&&this._notifications.push({listeners:r.slice(),items:this._items.slice(),changes:[]}),Ct(()=>{n.removed=!0,r.splice(r.indexOf(n),1)})}return this._emitter.on(e,t)}once(e,t){let r="deref"in t?()=>t.deref():()=>t,n=this.on(e,i=>{r()?.call(null,i),n.remove()});return n}add(e,t){if(Je(this._observable),this._emitBeforeChanges(yt.ADD))return this;let r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(yt.ADD),this}addMany(e,t=this._items.length){if(Je(this._observable),!e?.length)return this;if(this._emitBeforeChanges(yt.ADD))return this;let r=this.getNextIndex(t);return this._splice(r,0,QS(e)),this._emitAfterChanges(yt.ADD),this}at(e){if(Je(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if(Je(this._observable),!this.length||this._emitBeforeChanges(yt.REMOVE))return[];let e=this._removeAllRaw();return this._emitAfterChanges(yt.REMOVE),e}_removeAllRaw(){return this.length===0?[]:this._splice(0,this.length)||[]}clone(){return Je(this._observable),this._createNewInstance({items:this._items.map(qe)})}concat(...e){Je(this._observable);let t=e.map(QS);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if(Je(this._observable),!this.length||this._emitBeforeChanges(yt.REMOVE))return;let r=this._splice(0,this.length),n=r.length;for(let i=0;i<n;i++)e.call(t,r[i],i,r);this._emitAfterChanges(yt.REMOVE)}destroyAll(){this.drain(zM)}destroyMany(e){let t=this.removeMany(e);return t.forEach(zM),t}every(e,t){return Je(this._observable),this._items.every(e,t)}filter(e,t){Je(this._observable);let r=arguments.length===2?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:r})}find(e,t){return Je(this._observable),this._items.find(e,t)}findIndex(e,t){return Je(this._observable),this._items.findIndex(e,t)}flatten(e,t){Je(this._observable);let r=[];return WM(r,this,e,t),new Qs(r)}forEach(e,t){return Je(this._observable),this._items.forEach(e,t)}getItemAt(e){return Je(this._observable),this._items[e]}getNextIndex(e){Je(this._observable);let t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return Je(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return Je(this._observable),this._items.indexOf(e,t)}join(e=","){return Je(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return Je(this._observable),this._items.lastIndexOf(e,t)}map(e,t){Je(this._observable);let r=this._items.map(e,t);return new Qs({items:r})}reorder(e,t=this.length-1){Je(this._observable);let r=this.indexOf(e);if(r!==-1){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(yt.MOVE))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(yt.MOVE)}return e}}pop(){if(Je(this._observable),!this.length||this._emitBeforeChanges(yt.REMOVE))return;let e=e4(this._splice(this.length-1,1));return this._emitAfterChanges(yt.REMOVE),e}push(...e){return Je(this._observable),this._emitBeforeChanges(yt.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(yt.ADD)),this.length}reduce(e,t){Je(this._observable);let r=this._items;return arguments.length===2?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){Je(this._observable);let r=this._items;return arguments.length===2?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return Je(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if(Je(this._observable),e<0||e>=this.length||this._emitBeforeChanges(yt.REMOVE))return;let t=e4(this._splice(e,1));return this._emitAfterChanges(yt.REMOVE),t}removeMany(e){if(Je(this._observable),!e?.length||this._emitBeforeChanges(yt.REMOVE))return[];let t=e instanceof Qs?e.toArray():e,r=this._items,n=[],i=t.length;for(let o=0;o<i;o++){let s=t[o],c=r.indexOf(s);if(c>-1){let a=1+VW(t,r,o+1,c+1),d=this._splice(c,a);d&&d.length>0&&n.push.apply(n,d),o+=a-1}}return this._emitAfterChanges(yt.REMOVE),n}reverse(){if(Je(this._observable),this._emitBeforeChanges(yt.MOVE))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(yt.MOVE),this}shift(){if(Je(this._observable),!this.length||this._emitBeforeChanges(yt.REMOVE))return;let e=e4(this._splice(0,1));return this._emitAfterChanges(yt.REMOVE),e}slice(e=0,t=this.length){return Je(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return Je(this._observable),this._items.some(e,t)}sort(e){if(Je(this._observable),!this.length||this._emitBeforeChanges(yt.MOVE))return this;let t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(yt.MOVE),this}splice(e,t,...r){Je(this._observable);let n=(t?yt.REMOVE:0)|(r.length?yt.ADD:0);if(this._emitBeforeChanges(n))return[];let i=this._splice(e,t,r)||[];return this._emitAfterChanges(n),i}toArray(){return Je(this._observable),this._items.slice()}toJSON(){return Je(this._observable),this.toArray()}toLocaleString(){return Je(this._observable),this._items.toLocaleString()}toString(){return Je(this._observable),this._items.toString()}unshift(...e){return Je(this._observable),!e.length||this._emitBeforeChanges(yt.ADD)||(this._splice(0,0,e),this._emitAfterChanges(yt.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){let n=this._items,i=this.itemType,o,s;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=Cw(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(s=n.splice(e,t),this.hasEventListener("before-remove")){let c=Qi.acquire();c.target=this,c.cancellable=!0;for(let a=0,d=s.length;a<d;a++)o=s[a],c.reset(o),this.emit("before-remove",c),c.defaultPrevented&&(s.splice(a,1),n.splice(e,0,o),e+=1,a-=1,d-=1);Qi.release(c)}if(this.length=this._items.length,this.hasEventListener("after-remove")){let c=Qi.acquire();c.target=this,c.cancellable=!1;let a=s.length;for(let d=0;d<a;d++)c.reset(s[d]),this.emit("after-remove",c);Qi.release(c)}}if(r?.length){if(i){let h=[];for(let g of r){let v=i.ensureType(g);v==null&&g!=null||h.push(v)}r=h}let c=this.hasEventListener("before-add"),a=this.hasEventListener("after-add"),d=e===this.length;if(c||a){let h=Qi.acquire();h.target=this,h.cancellable=!0;let g=Qi.acquire();g.target=this,g.cancellable=!1;for(let v of r)c?(h.reset(v),this.emit("before-add",h),h.defaultPrevented||(d?n.push(v):n.splice(e++,0,v),this._set("length",n.length),a&&(g.reset(v),this.emit("after-add",g)))):(d?n.push(v):n.splice(e++,0,v),this._set("length",n.length),g.reset(v),this.emit("after-add",g));Qi.release(g),Qi.release(h)}else{if(d)for(let h of r)n.push(h);else n.splice(e,0,...r);this._set("length",n.length)}}if((r?.length||s?.length)&&this._notifyChangeEvent(r,s),this.hasEventListener("after-splice")){let c=new n4(this,r,s,e,t);this.emit("after-splice",c)}return s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let r=Qi.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,Qi.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=Qi.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),Qi.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;let e=this._notifications;this._notifications=null;for(let t of e){let r=t.changes;kc.clear(),Oc.clear(),Nc.clear();for(let{added:a,removed:d}of r){if(a)if(Nc.size===0&&Oc.size===0)for(let h of a)kc.add(h);else for(let h of a)Oc.has(h)?(Nc.add(h),Oc.delete(h)):Nc.has(h)||kc.add(h);if(d)if(Nc.size===0&&kc.size===0)for(let h of d)Oc.add(h);else for(let h of d)kc.has(h)?kc.delete(h):(Nc.delete(h),Oc.add(h))}let n=Yn.acquire();kc.forEach(a=>{n.push(a)});let i=Yn.acquire();Oc.forEach(a=>{i.push(a)});let o=this._items,s=t.items,c=Yn.acquire();if(Nc.forEach(a=>{s.indexOf(a)!==o.indexOf(a)&&c.push(a)}),t.listeners&&(n.length||i.length||c.length)){let a={target:this,added:n,removed:i,moved:c},d=t.listeners.length;for(let h=0;h<d;h++){let g=t.listeners[h];g.removed||g.callback.call(this,a)}}Yn.release(n),Yn.release(i),Yn.release(c)}kc.clear(),Oc.clear(),Nc.clear()}};Rc.ofType=e=>{if(!e)return Qs;if(t4.has(e))return t4.get(e);let t=null;if(typeof e=="function")t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(let n in e.typeMap){let i=e.typeMap[n].prototype.declaredClass;t?t+=` | ${i}`:t=i}let r=class extends Qs{};return N([FM({Type:e,ensureType:typeof e=="function"?si(e):Io(e)})],r.prototype,"itemType",void 0),r=N([Ie(`esri.core.Collection<${t}>`)],r),t4.set(e,r),r},N([z()],Rc.prototype,"_updating",void 0),N([z()],Rc.prototype,"length",void 0),N([z()],Rc.prototype,"items",null),N([z({readOnly:!0})],Rc.prototype,"updating",null),Rc=Qs=N([Ie("esri.core.Collection")],Rc)});function lg(e,t,r={}){return jM(e,t,r,WW)}function GM(e,t,r={}){return jM(e,t,r,BW)}function jM(e,t,r={},n){let i=null,o=r.once?(s,c)=>{n(s)&&(zh(i),t(s,c))}:(s,c)=>{n(s)&&t(s,c)};if(i=F8(e,o,r.sync,r.equals),r.initial){let s=e();o(s,s)}return i}function WW(e){return!0}function BW(e){return!!e}var ey,i4=V(()=>{DM();BM();qh();oi();vc();ko();kS();LS();ey={sync:!0,initial:!0}});function HM(){if(GW)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=r=>e[r].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}var GW,qM=V(()=>{GW="randomUUID"in crypto});function HW(e){let t="__accessorMetadata__"in e?si(e):e;return function(...r){if(r.push(t),typeof r[2]=="number")throw new Error("Using @cast has parameter decorator is not supported since 4.16");return qW.apply(this,r)}}function qW(e,t,r,n){pp(e,t).cast=n}function ZW(e){return(t,r)=>{pp(t,e).cast=t[r]}}function ea(...e){if(e.length!==3||typeof e[1]!="string")return e.length===1&&jW.call(e[0])==="[object Function]"?HW(e[0]):e.length===1&&typeof e[0]=="string"?ZW(e[0]):void 0}var jW,ug=V(()=>{Xi();mp();jW=Object.prototype.toString});function KM(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function YW(e,t,r){}function JW(e,t,r){}function KW(e,t){return XW.test(t)?"":t}function eB(e,t){e=dg.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,n=!1,i=0,o=0,s="";function c(){if(!n){var h=dg.trim(e.slice(i,o)),g=h.indexOf(":");if(g!==-1){var v=dg.trim(h.slice(0,g)),S=dg.trim(h.slice(g+1));if(v){var M=t(i,s.length,v,S,h);M&&(s+=M+"; ")}}}i=o+1}for(;o<r;o++){var a=e[o];if(a==="/"&&e[o+1]==="*"){var d=e.indexOf("*/",o+2);if(d===-1)break;o=d+1,i=o+1,n=!1}else a==="("?n=!0:a===")"?n=!1:a===";"?n||c():a===`
|
|
4
|
+
`&&c()}return dg.trim(s)}function ZM(e){return e==null}function nB(e){var t={};for(var r in e)t[r]=e[r];return t}function QM(e){e=nB(e||{}),e.whiteList=e.whiteList||ty.whiteList,e.onAttr=e.onAttr||ty.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||ty.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||ty.safeAttrValue,this.options=e}function eP(){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"]}}function aB(e,t,r){}function cB(e,t,r){}function lB(e,t,r){}function uB(e,t,r){}function rP(e){return e.replace(fB,"<").replace(pB,">")}function dB(e,t,r,n){if(r=cP(r),t==="href"||t==="src"){if(r=sy.trim(r),r==="#")return"#";if(!(r.substr(0,7)==="http://"||r.substr(0,8)==="https://"||r.substr(0,7)==="mailto:"||r.substr(0,4)==="tel:"||r.substr(0,11)==="data:image/"||r.substr(0,6)==="ftp://"||r.substr(0,2)==="./"||r.substr(0,3)==="../"||r[0]==="#"||r[0]==="/"))return""}else if(t==="background"){if(ry.lastIndex=0,ry.test(r))return""}else if(t==="style"){if(YM.lastIndex=0,YM.test(r)||(JM.lastIndex=0,JM.test(r)&&(ry.lastIndex=0,ry.test(r))))return"";n!==!1&&(n=n||tP,r=n.process(r))}return r=lP(r),r}function nP(e){return e.replace(mB,""")}function iP(e){return e.replace(hB,'"')}function oP(e){return e.replace(gB,function(r,n){return n[0]==="x"||n[0]==="X"?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})}function sP(e){return e.replace(wB,":").replace(yB," ")}function aP(e){for(var t="",r=0,n=e.length;r<n;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return sy.trim(t)}function cP(e){return e=iP(e),e=oP(e),e=sP(e),e=aP(e),e}function lP(e){return e=nP(e),e=rP(e),e}function bB(){return""}function vB(e,t){typeof t!="function"&&(t=function(){});var r=!Array.isArray(e);function n(s){return r?!0:sy.indexOf(e,s)!==-1}var i=[],o=!1;return{onIgnoreTag:function(s,c,a){if(n(s))if(a.isClosing){var d="[/removed]",h=a.position+d.length;return i.push([o!==!1?o:a.position,h]),o=!1,d}else return o||(o=a.position),"[removed]";else return t(s,c,a)},remove:function(s){var c="",a=0;return sy.forEach(i,function(d){c+=s.slice(a,d[0]),a=d[1]}),c+=s.slice(a),c}}}function _B(e){for(var t="",r=0;r<e.length;){var n=e.indexOf("<!--",r);if(n===-1){t+=e.slice(r);break}t+=e.slice(r,n);var i=e.indexOf("-->",n);if(i===-1)break;r=i+3}return t}function SB(e){var t=e.split("");return t=t.filter(function(r){var n=r.charCodeAt(0);return n===127?!1:n<=31?n===10||n===13:!0}),t.join("")}function xB(e){var t=Dc.spaceIndex(e),r;return t===-1?r=e.slice(1,-1):r=e.slice(1,t+1),r=Dc.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function CB(e){return e.slice(0,2)==="</"}function TB(e,t,r){var n="",i=0,o=!1,s=!1,c=0,a=e.length,d="",h="";e:for(c=0;c<a;c++){var g=e.charAt(c);if(o===!1){if(g==="<"){o=c;continue}}else if(s===!1){if(g==="<"){n+=r(e.slice(i,c)),o=c,i=c;continue}if(g===">"){n+=r(e.slice(i,o)),h=e.slice(o,c+1),d=xB(h),n+=t(o,n.length,d,h,CB(h)),i=c+1,o=!1;continue}if(g==='"'||g==="'")for(var v=1,S=e.charAt(c-v);S.trim()===""||S==="=";){if(S==="="){s=g;continue e}S=e.charAt(c-++v)}}else if(g===s){s=!1;continue}}return i<e.length&&(n+=r(e.substr(i))),n}function MB(e,t){var r=0,n=0,i=[],o=!1,s=e.length;function c(v,S){if(v=Dc.trim(v),v=v.replace(EB,"").toLowerCase(),!(v.length<1)){var M=t(v,S||"");M&&i.push(M)}}for(var a=0;a<s;a++){var d=e.charAt(a),h,g;if(o===!1&&d==="="){o=e.slice(r,a),r=a+1,n=e.charAt(r)==='"'||e.charAt(r)==="'"?r:IB(e,a+1);continue}if(o!==!1&&a===n){if(g=e.indexOf(d,a+1),g===-1)break;h=Dc.trim(e.slice(n+1,g)),c(o,h),o=!1,a=g,r=a+1;continue}if(/\s|\n|\t/.test(d))if(e=e.replace(/\s|\n|\t/g," "),o===!1)if(g=PB(e,a),g===-1){h=Dc.trim(e.slice(r,a)),c(h),o=!1,r=a+1;continue}else{a=g-1;continue}else if(g=AB(e,a-1),g===-1){h=Dc.trim(e.slice(r,a)),h=XM(h),c(o,h),o=!1,r=a+1;continue}else continue}return r<e.length&&(o===!1?c(e.slice(r)):c(o,XM(Dc.trim(e.slice(r))))),Dc.trim(i.join(" "))}function PB(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="="?t:-1}}function IB(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="'"||r==='"'?t:-1}}function AB(e,t){for(;t>0;t--){var r=e[t];if(r!==" ")return r==="="?t:-1}}function LB(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function XM(e){return LB(e)?e.substr(1,e.length-2):e}function ny(e){return e==null}function RB(e){var t=iy.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=iy.trim(e.slice(t+1,-1));var r=e[e.length-1]==="/";return r&&(e=iy.trim(e.slice(0,-1))),{html:e,closing:r}}function DB(e){var t={};for(var r in e)t[r]=e[r];return t}function $B(e){var t={};for(var r in e)Array.isArray(e[r])?t[r.toLowerCase()]=e[r].map(function(n){return n.toLowerCase()}):t[r.toLowerCase()]=e[r];return t}function dP(e){e=DB(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=Ro.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=$B(e.whiteList||e.allowList):e.whiteList=Ro.whiteList,e.onTag=e.onTag||Ro.onTag,e.onTagAttr=e.onTagAttr||Ro.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||Ro.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||Ro.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||Ro.safeAttrValue,e.escapeHtml=e.escapeHtml||Ro.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new kB(e.css))}var oy,o4,lr,s4,Mu,XW,QW,dg,tB,ty,rB,iB,a4,c4,oB,sB,sy,tP,fB,pB,mB,hB,gB,wB,yB,ry,YM,JM,ay,Dc,EB,kB,Ro,uP,OB,NB,iy,FB,Ap,UB,fP,pP=V(()=>{oy=function(){return oy=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},oy.apply(this,arguments)},o4={exports:{}},lr={},s4={exports:{}},Mu={};XW=/javascript\s*\:/img;Mu.whiteList=KM();Mu.getDefaultWhiteList=KM;Mu.onAttr=YW;Mu.onIgnoreAttr=JW;Mu.safeAttrValue=KW;QW={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,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;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,"")}},dg=QW;tB=eB,ty=Mu,rB=tB;QM.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,i=r.onAttr,o=r.onIgnoreAttr,s=r.safeAttrValue,c=rB(e,function(a,d,h,g,v){var S=n[h],M=!1;if(S===!0?M=S:typeof S=="function"?M=S(g):S instanceof RegExp&&(M=S.test(g)),M!==!0&&(M=!1),g=s(h,g),!!g){var I={position:d,sourcePosition:a,source:v,isWhite:M};if(M){var R=i(h,g,I);return ZM(R)?h+":"+g:R}else{var R=o(h,g,I);if(!ZM(R))return R}}});return c};iB=QM;(function(e,t){var r=Mu,n=iB;function i(s,c){var a=new n(c);return a.process(s)}t=e.exports=i,t.FilterCSS=n;for(var o in r)t[o]=r[o]})(s4,s4.exports);a4=s4.exports,c4={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,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;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}},oB=a4.FilterCSS,sB=a4.getDefaultWhiteList,sy=c4;tP=new oB;fB=/</g,pB=/>/g,mB=/"/g,hB=/"/g,gB=/&#([a-zA-Z0-9]*);?/gim,wB=/:?/gim,yB=/&newline;?/gim,ry=/((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,YM=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,JM=/u\s*r\s*l\s*\(.*/gi;lr.whiteList=eP();lr.getDefaultWhiteList=eP;lr.onTag=aB;lr.onIgnoreTag=cB;lr.onTagAttr=lB;lr.onIgnoreTagAttr=uB;lr.safeAttrValue=dB;lr.escapeHtml=rP;lr.escapeQuote=nP;lr.unescapeQuote=iP;lr.escapeHtmlEntities=oP;lr.escapeDangerHtml5Entities=sP;lr.clearNonPrintableCharacter=aP;lr.friendlyAttrValue=cP;lr.escapeAttrValue=lP;lr.onIgnoreTagStripAll=bB;lr.StripTagBody=vB;lr.stripCommentTag=_B;lr.stripBlankChar=SB;lr.cssFilter=tP;lr.getDefaultCSSWhiteList=sB;ay={},Dc=c4;EB=/[^a-zA-Z0-9\\_:.-]/gim;ay.parseTag=TB;ay.parseAttr=MB;kB=a4.FilterCSS,Ro=lr,uP=ay,OB=uP.parseTag,NB=uP.parseAttr,iy=c4;dP.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,i=r.onTag,o=r.onIgnoreTag,s=r.onTagAttr,c=r.onIgnoreTagAttr,a=r.safeAttrValue,d=r.escapeHtml,h=t.cssFilter;r.stripBlankChar&&(e=Ro.stripBlankChar(e)),r.allowCommentTag||(e=Ro.stripCommentTag(e));var g=!1;r.stripIgnoreTagBody&&(g=Ro.StripTagBody(r.stripIgnoreTagBody,o),o=g.onIgnoreTag);var v=OB(e,function(S,M,I,R,B){var F={sourcePosition:S,position:M,isClosing:B,isWhite:Object.prototype.hasOwnProperty.call(n,I)},G=i(I,R,F);if(!ny(G))return G;if(F.isWhite){if(F.isClosing)return"</"+I+">";var J=RB(R),re=n[I],de=NB(J.html,function(W,me){var Le=iy.indexOf(re,W)!==-1,xe=s(I,W,me,Le);return ny(xe)?Le?(me=a(I,W,me,h),me?W+'="'+me+'"':W):(xe=c(I,W,me,Le),ny(xe)?void 0:xe):xe});return R="<"+I,de&&(R+=" "+de),J.closing&&(R+=" /"),R+=">",R}else return G=o(I,R,F),ny(G)?d(R):G},d);return g&&(v=g.remove(v)),v};FB=dP;(function(e,t){var r=lr,n=ay,i=FB;function o(c,a){var d=new i(a);return d.process(c)}t=e.exports=o,t.filterXSS=o,t.FilterXSS=i,function(){for(var c in r)t[c]=r[c];for(var a in n)t[a]=n[a]}();function s(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}s()&&(self.filterXSS=e.exports)})(o4,o4.exports);Ap=o4.exports,UB=function(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},fP=function(){function e(t,r){var n=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],code:["style"],dd:["style"],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],main:["style"],mark:["style"],nav:["style"],ol:[],p:["style"],pre:["style"],section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],strong:[],sub:["style"],summary:["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"],time:["style"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=oy(oy({},Ap.getDefaultCSSWhiteList()),{"align-items":!0,"align-self":!0,flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,float:!0,gap:!0,grid:!0,"grid-area":!0,"grid-auto-columns":!0,"grid-auto-flow":!0,"grid-auto-rows":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-start":!0,"grid-template":!0,"grid-template-areas":!0,"grid-template-columns":!0,"grid-template-rows":!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"line-height":!0,overflow:!0}),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(o,s,c,a){return o==="a"&&s==="href"||(o==="img"||o==="source")&&s==="src"?n.sanitizeUrl(c):Ap.safeAttrValue(o,s,c,a)}},this._entityMap={"&":"8","<":"<",">":">",'"':""","'":"'","/":"/"};var i;t&&!r?i=t:t&&r?(i=Object.create(this.arcgisFilterOptions),i.css={whiteList:this.arcgisCSSWhiteList},Object.keys(t).forEach(function(o){if(o==="whiteList")i.whiteList=n._extendObjectOfArrays([n.arcgisWhiteList,t.whiteList||{}]);else if(o==="css"){var s=t.css.whiteList;s!=null&&t.css instanceof Object&&Object.keys(s).forEach(function(c){return i.css.whiteList[c]=s[c]})}else i[o]=t[o]})):(i=Object.create(this.arcgisFilterOptions),i.whiteList=this.arcgisWhiteList,i.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=i,this._xssFilter=new Ap.FilterXSS(i)}return e.prototype.sanitize=function(t,r){switch(r===void 0&&(r={}),typeof t){case"number":return isNaN(t)||!isFinite(t)?null:t;case"boolean":return t;case"string":return this._xssFilter.process(t);case"object":return this._iterateOverObject(t,r);default:return r.allowUndefined&&typeof t>"u"?void 0:null}},e.prototype.sanitizeUrl=function(t,r){var n=(r??{}).isProtocolRequired,i=n===void 0?!0:n,o=this._trim(t.substring(0,t.indexOf(":"))),s=t==="/",c=/^#/.test(t),a=o&&this.allowedProtocols.indexOf(o.toLowerCase())>-1;return s||c||a?Ap.escapeAttrValue(t):!o&&!i?Ap.escapeAttrValue("https://".concat(t)):""},e.prototype.sanitizeHTMLAttribute=function(t,r,n,i){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(t,r,n,i):Ap.safeAttrValue(t,r,n,i)},e.prototype.validate=function(t,r){r===void 0&&(r={});var n=this.sanitize(t,r);return{isValid:t===n,sanitized:n}},e.prototype.encodeHTML=function(t){var r=this;return String(t).replace(/[&<>"'\/]/g,function(n){return r._entityMap[n]})},e.prototype.encodeAttrValue=function(t){var r=/^[a-zA-Z0-9]$/;return String(t).replace(/[\x00-\xFF]/g,function(n,i){return r.test(n)?n:"&#x".concat(Number(t.charCodeAt(i)).toString(16),";")})},e.prototype._extendObjectOfArrays=function(t){var r={};return t.forEach(function(n){Object.keys(n).forEach(function(i){Array.isArray(n[i])&&Array.isArray(r[i])?r[i]=r[i].concat(n[i]):r[i]=n[i]})}),r},e.prototype._iterateOverObject=function(t,r){var n=this;r===void 0&&(r={});try{var i=!1,o=void 0;if(Array.isArray(t))o=t.reduce(function(c,a){var d=n.validate(a,r);return d.isValid?c.concat([a]):(i=!0,c.concat([d.sanitized]))},[]);else if(UB(t)){var s=Object.keys(t);o=s.reduce(function(c,a){var d=t[a],h=n.validate(d,r);return h.isValid?c[a]=d:(i=!0,c[a]=h.sanitized),c},{})}else return r.allowUndefined&&typeof t>"u"?void 0:null;return i?o:t}catch{return null}},e.prototype._trim=function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},e}()});function ly(){cy.clear()}function mP(e){return cy.get(e)}function hP(e,t){cy.set(e,t)}function uy(e){cy.delete(e)}var cy,l4=V(()=>{cy=new Map});function gP(...e){let t=Yn.acquire();for(let n=0;n<e.length;n++){let i=e[n],o=typeof i;if(o==="string")t.push(i);else if(Array.isArray(i))t.push.apply(t,i);else if(o==="object")for(let s in i)i[s]&&t.push(s)}let r=t.join(" ");return Yn.release(t),r}async function wP(e,t){await L8(_w(t));let r=typeof e=="function"?e():e;r&&("setFocus"in r&&typeof r.setFocus=="function"?await r.setFocus():r instanceof HTMLElement&&r.focus())}var Npe,VB,zB,WB,u4,dy=V(()=>{pP();yw();oi();et();tt();ko();i4();Tw();l4();Npe=(()=>{let e=new Map,t=new ResizeObserver(n=>{ly();for(let i of n)e.get(i.target)?.(i)}),r=(n,i,o)=>(e.set(n,i),t.observe(n,o),Ct(()=>{t.unobserve(n),e.delete(n)}));return(n,i,o)=>{let s=null;return gu([lg(()=>typeof n=="function"?n():n,c=>{s?.remove(),c&&(s=r(c,i,o))},ey),Ct(()=>s?.remove())])}})(),VB=["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"],zB=VB.reduce((e,t)=>(e[t]=[],e),{}),WB=["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"],u4=new fP({whiteList:zB,onTagAttr:(e,t,r)=>{let n=`${t}="${r}"`;if(WB.includes(t))return n},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0)});function m4(e){if(!(e instanceof Element&&e.tagName.includes("-")))return!1;let t=window.customElements.get(e.tagName.toLowerCase());return!!t&&e instanceof t}var SP,py,xP,yP,my,g4,CP,BB,d4,GB,f4,p4,TP,bP,vP,_P,jB,fy,HB,w4,Pu,h4,qB,ZB,Lp,EP=V(()=>{dy();SP="http://www.w3.org/",py=`${SP}2000/svg`,xP=`${SP}1999/xlink`,yP=[],my=(e,t)=>{let r={};return Object.keys(e).forEach(n=>{r[n]=e[n]}),t&&Object.keys(t).forEach(n=>{r[n]=t[n]}),r},g4=(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),CP=e=>{if(typeof e!="string")throw new Error("Style values must be strings")},BB=(e,t,r)=>{if(t.vnodeSelector!==""){for(let n=r;n<e.length;n++)if(g4(e[n],t))return n}return-1},d4=(e,t,r,n)=>{let i=e[t];if(i.vnodeSelector==="")return;let o=i.properties;if(!(o&&(o.key===void 0?o.bind:o.key))){for(let s=0;s<e.length;s++)if(s!==t){let c=e[s];if(g4(c,i))throw new Error(`${r.vnodeSelector} had a ${i.vnodeSelector} child ${n==="added"?n:"removed"}, but there is now more than one. You must add unique key properties to make them distinguishable.`)}}},GB=e=>{if(e.properties){let t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},f4=[],p4=!1,TP=e=>{(e.children||[]).forEach(TP),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},bP=()=>{p4=!1,f4.forEach(TP),f4.length=0},vP=e=>{f4.push(e),p4||(p4=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(bP,{timeout:16}):setTimeout(bP,16))},_P=e=>{let t=e.domNode;if(e.properties){let r=e.properties.exitAnimation;if(r)return t.style.pointerEvents="none",void r(t,()=>{t.parentNode&&(t.parentNode.removeChild(t),vP(e))},e.properties)}t.parentNode&&(t.parentNode.removeChild(t),vP(e))},jB=(e,t,r)=>{if(!t)return;let n=r.eventHandlerInterceptor,i=Object.keys(t),o=i.length;for(let s=0;s<o;s++){let c=i[s],a=t[c];if(c==="className")throw new Error('Property "className" is not supported, use "class".');if(c==="class")h4(e,a,!0);else if(c==="classes"){let d=Object.keys(a),h=d.length;for(let g=0;g<h;g++){let v=d[g];a[v]&&e.classList.add(v)}}else if(c==="styles"){let d=Object.keys(a),h=d.length;for(let g=0;g<h;g++){let v=d[g],S=a[v];S&&(CP(S),r.styleApplyer(e,v,S))}}else if(c!=="key"&&a!=null){let d=typeof a;d==="function"?(c.lastIndexOf("on",0)===0&&(n&&(a=n(c,a,e,t)),c==="oninput"&&function(){let h=a;a=function(g){h.apply(this,[g]),g.target["oninput-value"]=g.target.value}}()),e[c]=a):r.namespace===py?c==="href"?e.setAttributeNS(xP,c,a):e.setAttribute(c,a):d==="string"&&c!=="value"?c==="innerHTML"?e[c]=u4.sanitize(a):m4(e)&&c in e?e[c]=a:e.setAttribute(c,a):e[c]=a}}};HB=(e,t,r)=>{if(t)for(let n of t)Pu(n,e,void 0,r)},w4=(e,t,r)=>{HB(e,t.children,r),t.text&&(e.textContent=t.text),jB(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])},Pu=(e,t,r,n)=>{let i,o=0,s=e.vnodeSelector,c=t.ownerDocument;if(s==="")i=e.domNode=c.createTextNode(e.text),r!==void 0?t.insertBefore(i,r):t.appendChild(i);else{for(let a=0;a<=s.length;++a){let d=s.charAt(a);if(a===s.length||d==="."||d==="#"){let h=s.charAt(o-1),g=s.slice(o,a);h==="."?i.classList.add(g):h==="#"?i.id=g:(g==="svg"&&(n=my(n,{namespace:py})),n.namespace!==void 0?i=e.domNode=c.createElementNS(n.namespace,g):(i=e.domNode=e.domNode||c.createElement(g),g==="input"&&e.properties&&e.properties.type!==void 0&&i.setAttribute("type",e.properties.type)),r!==void 0?t.insertBefore(i,r):i.parentNode!==t&&t.appendChild(i)),o=a+1}}w4(i,e,n)}},h4=(e,t,r)=>{t&&t.split(" ").forEach(n=>{n&&e.classList.toggle(n,r)})},qB=(e,t,r,n)=>{if(!r)return;let i=!1,o=Object.keys(r),s=o.length;for(let c=0;c<s;c++){let a=o[c],d=r[a],h=t[a];if(a==="class")h!==d&&(h4(e,h,!1),h4(e,d,!0));else if(a==="classes"){let g=e.classList,v=Object.keys(d),S=v.length;for(let M=0;M<S;M++){let I=v[M],R=!!d[I];R!==!!h[I]&&(i=!0,R?g.add(I):g.remove(I))}}else if(a==="styles"){let g=Object.keys(d),v=g.length;for(let S=0;S<v;S++){let M=g[S],I=d[M];I!==h[M]&&(i=!0,I?(CP(I),n.styleApplyer(e,M,I)):n.styleApplyer(e,M,""))}}else if(d||typeof h!="string"||(d=""),a!=="value"||m4(e)){if(d!==h){let g=typeof d;g==="function"&&n.eventHandlerInterceptor||(n.namespace===py?a==="href"?e.setAttributeNS(xP,a,d):e.setAttribute(a,d):g==="string"?a==="innerHTML"?e[a]=u4.sanitize(d):a==="role"&&d===""?e.removeAttribute(a):m4(e)&&a in e?e[a]=d:e.setAttribute(a,d):e[a]!==d&&(e[a]=d),i=!0)}}else{let g=e[a];g!==d&&(e["oninput-value"]?g===e["oninput-value"]:d!==h)&&(e[a]=d,e["oninput-value"]=void 0),d!==h&&(i=!0)}}return i},ZB=(e,t,r,n,i)=>{if(r===n)return!1;n=n||yP;let o,s=(r=r||yP).length,c=n.length,a=0,d=0,h=!1;for(;d<c;){let g=a<s?r[a]:void 0,v=n[d];if(g!==void 0&&g4(g,v))h=fy(g,v,i)||h,a++;else{let S=BB(r,v,a+1);if(S>=0){for(o=a;o<S;o++)_P(r[o]),d4(r,o,e,"removed");h=fy(r[S],v,i)||h,a=S+1}else Pu(v,t,a<s?r[a].domNode:void 0,i),GB(v),d4(n,d,e,"added")}d++}if(s>a)for(o=a;o<s;o++)_P(r[o]),d4(r,o,e,"removed");return h};fy=(e,t,r)=>{let n=e.domNode,i=!1;if(e===t)return!1;let o=!1;if(t.vnodeSelector===""){if(t.text!==e.text){let s=n.ownerDocument.createTextNode(t.text);return n.parentNode.replaceChild(s,n),t.domNode=s,i=!0,i}t.domNode=n}else t.vnodeSelector.lastIndexOf("svg",0)===0&&(r=my(r,{namespace:py})),e.text!==t.text&&(o=!0,t.text===void 0?n.removeChild(n.firstChild):n.textContent=t.text),t.domNode=n,o=ZB(t,n,e.children,t.children,r)||o,o=qB(n,e.properties,t.properties,r)||o,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[n,r,t.vnodeSelector,t.properties,t.children]);return o&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(n,t.properties,e.properties),i};Lp=(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,fy(n,r,t)},domNode:e.domNode})});var YB,kp,Op,y4=V(()=>{EP();YB={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.charAt(0)==="-"?e.style.setProperty(t,r):e.style[t]=r}},kp=e=>my(YB,e),Op={create:(e,t)=>(t=kp(t),Pu(e,document.createElement("div"),void 0,t),Lp(e,t)),append:(e,t,r)=>(r=kp(r),Pu(t,e,void 0,r),Lp(t,r)),insertBefore:(e,t,r)=>(r=kp(r),Pu(t,e.parentNode,e,r),Lp(t,r)),merge:(e,t,r)=>(r=kp(r),t.domNode=e,w4(e,t,r),Lp(t,r)),replace:(e,t,r)=>(r=kp(r),Pu(t,e.parentNode,e,r),e.parentNode.removeChild(e),Lp(t,r))}});var JB,MP=V(()=>{y4();JB=Array.prototype.find?(e,t)=>e.find(t):(e,t)=>e.filter(t)[0]});var PP,IP=V(()=>{PP={handleInterceptedEvent:(e,t,r,n)=>(e.scheduleRender(),t.properties[`on${n.type}`].apply(t.properties.bind||r,[n]))}});var XB,AP,LP=V(()=>{XB={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.charAt(0)==="-"?e.style.setProperty(t,r):e.style[t]=r}},AP=e=>({...XB,...e})});var KB,QB,kP,OP,NP=V(()=>{y4();MP();IP();LP();KB=(e,t)=>{let r=[];for(;e&&e!==t;)r.push(e),e=e.parentNode;return r},QB=(e,t)=>e.find(t),kP=(e,t,r=!1)=>{let n=e;return t.forEach((i,o)=>{let s=n?.children?QB(n.children,c=>c.domNode===i):void 0;r&&!s&&o!==t.length-1||(n=s)}),n},OP=e=>{let t,r={...PP,...e},n=AP(r),i=n.performanceLogger,o,s=!0,c=!1,a=[],d=[],h=(v,S,M)=>{let I;n.eventHandlerInterceptor=(B,F,G,J)=>function(re){let de;i("domEvent",re);let W=KB(re.currentTarget,I.domNode),me=W.some(xe=>customElements.get(xe?.tagName?.toLowerCase()));if(re.eventPhase===Event.CAPTURING_PHASE||!me)W.reverse(),de=kP(I.getLastRender(),W);else{let xe=re.composedPath(),ke=xe.slice(xe.indexOf(re.currentTarget),xe.indexOf(I.domNode)).reverse();de=kP(I.getLastRender(),ke,!0)}let Le;return de&&(Le=r.handleInterceptedEvent(t,de,this,re)),i("domEventProcessed",re),Le},r.postProcessProjectionOptions?.(n);let R=M();I=v(S,R,n),n.eventHandlerInterceptor=void 0,a.push(I),d.push(M),r.afterFirstVNodeRendered&&r.afterFirstVNodeRendered(I,R)},g=()=>{if(o=void 0,s){s=!1,i("renderStart",void 0);for(let v=0;v<a.length;v++){let S=d[v]();i("rendered",void 0);try{a[v].update(S)}catch(M){console.error(M)}i("patched",void 0)}i("renderDone",void 0),s=!0}};return r.modifyDoRenderImplementation&&(g=r.modifyDoRenderImplementation(g,a,d)),t={renderNow:g,scheduleRender:()=>{o||c||(o=requestAnimationFrame(g))},stop:()=>{o&&(cancelAnimationFrame(o),o=void 0),c=!0},resume:()=>{c=!1,s=!0,t.scheduleRender()},append:(v,S)=>{h(Op.append,v,S)},insertBefore:(v,S)=>{h(Op.insertBefore,v,S)},merge:(v,S)=>{h(Op.merge,v,S)},replace:(v,S)=>{h(Op.replace,v,S)},detach:v=>{for(let S=0;S<d.length;S++)if(d[S]===v)return d.splice(S,1),a.splice(S,1)[0];throw new Error("renderFunction was not found")}},t}});var b4,v4,eG,fg,_4,Np=V(()=>{b4="calcite-mode-auto",v4="calcite-mode-dark",eG="calcite-mode-light",fg={autoMode:b4,darkMode:v4,lightMode:eG,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"},_4={filter:250,nextTick:0,resize:150,reposition:100}});var D,hy,Ht=V(()=>{D={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},hy="app"});var $G,S4=V(()=>{$G=l9({})});var zP={};os(zP,{scopeCss:()=>DG});var tG,rG,nG,pg,RP,DP,C4,iG,oG,sG,Iu,aG,cG,lG,gy,T4,uG,dG,fG,pG,mG,hG,gG,wG,yG,bG,vG,_G,wy,SG,xG,CG,$P,FP,TG,EG,MG,PG,IG,AG,LG,UP,kG,OG,NG,VP,RG,x4,DG,WP=V(()=>{tG=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");rG=e=>{let t=[],r=0;return e=e.replace(/(\[[^\]]*\])/g,(o,s)=>{let c=`__ph-${r}__`;return t.push(s),r++,c}),{content:e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(o,s,c)=>{let a=`__ph-${r}__`;return t.push(c),r++,s+a}),placeholders:t}},nG=(e,t)=>t.replace(/__ph-(\d+)__/g,(r,n)=>e[+n]),pg="-shadowcsshost",RP="-shadowcssslotted",DP="-shadowcsscontext",C4=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",iG=new RegExp("("+pg+C4,"gim"),oG=new RegExp("("+DP+C4,"gim"),sG=new RegExp("("+RP+C4,"gim"),Iu=pg+"-no-combinator",aG=/-shadowcsshost-no-combinator([^\s]*)/,cG=[/::shadow/g,/::content/g],lG="([>\\s~+[.,{:][\\s\\S]*)?$",gy=/-shadowcsshost/gim,T4=e=>new RegExp(`((?<!(^@supports(.*)))|(?<={.*))(${e}\\b)`,"gim"),uG=T4("::slotted"),dG=T4(":host"),fG=T4(":host-context"),pG=/\/\*\s*[\s\S]*?\*\//g,mG=e=>e.replace(pG,""),hG=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,gG=e=>e.match(hG)||[],wG=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,yG=/([{}])/g,bG=/(^.*?[^\\])??((:+)(.*)|$)/,vG="{",_G="}",wy="%BLOCK%",SG=(e,t)=>{let r=xG(e),n=0;return r.escapedString.replace(wG,(...i)=>{let o=i[2],s="",c=i[4],a="";c&&c.startsWith("{"+wy)&&(s=r.blocks[n++],c=c.substring(wy.length+1),a="{");let h=t({selector:o,content:s});return`${i[1]}${h.selector}${i[3]}${a}${h.content}${c}`})},xG=e=>{let t=e.split(yG),r=[],n=[],i=0,o=[];for(let c=0;c<t.length;c++){let a=t[c];a===_G&&i--,i>0?o.push(a):(o.length>0&&(n.push(o.join("")),r.push(wy),o=[]),r.push(a)),a===vG&&i++}return o.length>0&&(n.push(o.join("")),r.push(wy)),{escapedString:r.join(""),blocks:n}},CG=e=>(e=e.replace(fG,`$1${DP}`).replace(dG,`$1${pg}`).replace(uG,`$1${RP}`),e),$P=(e,t,r)=>e.replace(t,(...n)=>{if(n[2]){let i=n[2].split(","),o=[];for(let s=0;s<i.length;s++){let c=i[s].trim();if(!c)break;o.push(r(Iu,c,n[3]))}return o.join(",")}else return Iu+n[3]}),FP=(e,t,r)=>e+t.replace(pg,"")+r,TG=e=>$P(e,iG,FP),EG=(e,t,r)=>t.indexOf(pg)>-1?FP(e,t,r):e+t+r+", "+t+" "+e+r,MG=(e,t)=>{let r="."+t+" > ",n=[];return e=e.replace(sG,(...i)=>{if(i[2]){let o=i[2].trim(),s=i[3],c=r+o+s,a="";for(let g=i[4]-1;g>=0;g--){let v=i[5][g];if(v==="}"||v===",")break;a=v+a}let d=(a+c).trim(),h=`${a.trimEnd()}${c.trim()}`.trim();if(d!==h){let g=`${h}, ${d}`;n.push({orgSelector:d,updatedSelector:g})}return c}else return Iu+i[3]}),{selectors:n,cssText:e}},PG=e=>$P(e,oG,EG),IG=e=>cG.reduce((t,r)=>t.replace(r," "),e),AG=e=>{let t=/\[/g,r=/\]/g;return e=e.replace(t,"\\[").replace(r,"\\]"),new RegExp("^("+e+")"+lG,"m")},LG=(e,t)=>!AG(t).test(e),UP=(e,t)=>e.replace(bG,(r,n="",i,o="",s="")=>n+t+o+s),kG=(e,t,r)=>{if(gy.lastIndex=0,gy.test(e)){let n=`.${r}`;return e.replace(aG,(i,o)=>UP(o,n)).replace(gy,n+" ")}return t+" "+e},OG=(e,t,r)=>{let n=/\[is=([^\]]*)\]/g;t=t.replace(n,(M,...I)=>I[0]);let i="."+t,o=M=>{let I=M.trim();if(!I)return"";if(M.indexOf(Iu)>-1)I=kG(M,t,r);else{let R=M.replace(gy,"");R.length>0&&(I=UP(R,i))}return I},s=rG(e);e=s.content;let c="",a=0,d,h=/( |>|\+|~(?!=))\s*/g,v=!(e.indexOf(Iu)>-1);for(;(d=h.exec(e))!==null;){let M=d[1],I=e.slice(a,d.index).trim();v=v||I.indexOf(Iu)>-1;let R=v?o(I):I;c+=`${R} ${M} `,a=h.lastIndex}let S=e.substring(a);return v=v||S.indexOf(Iu)>-1,c+=v?o(S):S,nG(s.placeholders,c)},NG=(e,t,r,n)=>e.split(",").map(i=>n&&i.indexOf("."+n)>-1?i.trim():LG(i,t)?OG(i,t,r).trim():i.trim()).join(", "),VP=(e,t,r,n)=>SG(e,i=>{let o=i.selector,s=i.content;return i.selector[0]!=="@"?o=NG(i.selector,t,r,n):(i.selector.startsWith("@media")||i.selector.startsWith("@supports")||i.selector.startsWith("@page")||i.selector.startsWith("@document"))&&(s=VP(i.content,t,r,n)),{selector:o.replace(/\s{2,}/g," ").trim(),content:s}}),RG=(e,t,r,n)=>{e=CG(e),e=TG(e),e=PG(e);let i=MG(e,n);return e=i.cssText,e=IG(e),t&&(e=VP(e,t,r,n)),e=x4(e,r),e=e.replace(/>\s*\*\s+([^{, ]+)/gm," $1 "),{cssText:e.trim(),slottedSelectors:i.selectors.map(o=>({orgSelector:x4(o.orgSelector,r),updatedSelector:x4(o.updatedSelector,r)}))}},x4=(e,t)=>e.replace(/-shadowcsshost-no-combinator/g,`.${t}`),DG=(e,t)=>{let r=t+"-h",n=t+"-s",i=gG(e);e=mG(e);let o=RG(e,t,r,n);return e=[o.cssText,...i].join(`
|
|
5
|
+
`),o.slottedSelectors.forEach(s=>{let c=new RegExp(tG(s.orgSelector),"g");e=e.replace(c,s.updatedSelector)}),e}});function nj(e){var t,r,n;return(n=(r=(t=e.head)==null?void 0:t.querySelector('meta[name="csp-nonce"]'))==null?void 0:r.getAttribute("content"))!=null?n:void 0}function oj(e,t){if(e.isOk){let r=t(e.value);return r instanceof Promise?r.then(n=>A4(n)):A4(r)}if(e.isErr){let r=e.value;return pI(r)}throw"should never get here"}function tI(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var FG,UG,Lu,lI,eo,VG,BP,zG,ia,uI,vy,hg,GP,WG,_y,BG,GG,jG,HG,qG,I4,jP,HP,ZG,qP,YG,Vp,bn,$t,Dt,ku,JG,XG,KG,E4,Sy,by,Au,M4,dI,ZP,YP,xy,Ey,fI,QG,Ou,U4,JP,ej,tj,rj,V4,ij,A4,pI,sj,aj,cj,na,lj,X,Fp,Gr,L4,uj,XP,dj,fj,pj,k4,O4,mj,hj,gj,Lt,z4,KP,wj,N4,yj,mI,QP,bj,eI,hI,vj,gI,Rp,R4,ra,mg,Cy,My,Mi,Ty,wI,gg,yI,bI,_j,yy,W4,vI,Dp,Py,ta,_I,rI,SI,ui,xI,B4,nI,Sj,xj,CI,Iy,Cj,iI,Tj,Ej,oI,sI,aI,to,Mj,ys,$p,TI,EI,Pj,Ij,MI,cI,D4,Aj,Lj,P4,kj,Oj,PI,II,Nj,Rj,Dj,$j,Fj,Uj,AI,LI,$4,kI,Up,G4,Ft,OI,F4,Vj,zj,Wj,Wt=V(()=>{Ht();Ht();Ht();Ht();Ht();Ht();Ht();Ht();Ht();Ht();Ht();Ht();Ht();Ht();Ht();Ht();Ht();Ht();Ht();Ht();Ht();Ht();Ht();Ht();Ht();S4();FG=Object.defineProperty,UG=(e,t)=>{for(var r in t)FG(e,r,{get:t[r],enumerable:!0})},Lu={isDev:!!D.isDev,isBrowser:!0,isServer:!1,isTesting:!!D.isTesting},lI=D.hotModuleReplacement?window.__STENCIL_HOSTREFS__||(window.__STENCIL_HOSTREFS__=new WeakMap):new WeakMap,eo=e=>lI.get(e),VG=(e,t)=>{let r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return D.isDev&&(r.$renderCount$=0),D.method&&D.lazyLoad&&(r.$onInstancePromise$=new Promise(n=>r.$onInstanceResolve$=n)),D.asyncLoading&&(r.$onReadyPromise$=new Promise(n=>r.$onReadyResolve$=n),e["s-p"]=[],e["s-rc"]=[]),lI.set(e,r)},BP=(e,t)=>t in e,ia=(e,t)=>(zG||console.error)(e,t),uI=D.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],vy=(...e)=>console.error(...uI,...e),hg=(...e)=>console.warn(...uI,...e),GP=new Map,WG=(e,t,r)=>{let n=e.$tagName$.replace(/-/g,"_"),i=e.$lazyBundleId$;if(D.isDev&&typeof i!="string"){vy(`Trying to lazily load component <${e.$tagName$}> with style mode "${t.$modeName$}", but it does not exist.`);return}else if(!i)return;let o=D.hotModuleReplacement?!1:GP.get(i);if(o)return o[n];return $G(`./${i}.entry.js${D.hotModuleReplacement&&r?"?s-hmr="+r:""}`).then(s=>(D.hotModuleReplacement||GP.set(i,s),s[n]),ia)},_y=new Map,BG=[],GG="r",jG="o",HG="s",qG="t",I4="s-id",jP="sty-id",HP="c-id",ZG="slot-fb{display:contents}slot-fb[hidden]{display:none}",qP="http://www.w3.org/1999/xlink",YG=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],Vp=typeof window<"u"?window:{},bn=Vp.document||{head:{}},$t=Vp.HTMLElement||class{},Dt={$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)},ku=D.shadowDom,JG=(()=>{let e=!1;try{bn.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch{}return e})(),XG=e=>Promise.resolve(e),KG=D.constructableCSS?(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})():!1,E4=0,Sy=!1,by=[],Au=[],M4=[],dI=(e,t)=>r=>{e.push(r),Sy||(Sy=!0,t&&Dt.$flags$&4?Ey(xy):Dt.raf(xy))},ZP=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(r){ia(r)}e.length=0},YP=(e,t)=>{let r=0,n=0;for(;r<e.length&&(n=performance.now())<t;)try{e[r++](n)}catch(i){ia(i)}r===e.length?e.length=0:r!==0&&e.splice(0,r)},xy=()=>{if(D.asyncQueue&&E4++,ZP(by),D.asyncQueue){let e=(Dt.$flags$&6)===2?performance.now()+14*Math.ceil(E4*.1):1/0;YP(Au,e),YP(M4,e),Au.length>0&&(M4.push(...Au),Au.length=0),(Sy=by.length+Au.length+M4.length>0)?Dt.raf(xy):E4=0}else ZP(Au),(Sy=by.length>0)&&Dt.raf(xy)},Ey=e=>XG().then(e),fI=dI(by,!1),QG=dI(Au,!0),Ou=e=>{let t=new URL(e,Dt.$resourcesUrl$);return t.origin!==Vp.location.origin?t.href:t.pathname},U4=e=>Dt.$resourcesUrl$=e,JP={},ej="http://www.w3.org/2000/svg",tj="http://www.w3.org/1999/xhtml",rj=e=>e!=null,V4=e=>(e=typeof e,e==="object"||e==="function");ij={};UG(ij,{err:()=>pI,map:()=>oj,ok:()=>A4,unwrap:()=>sj,unwrapErr:()=>aj});A4=e=>({isOk:!0,isErr:!1,value:e}),pI=e=>({isOk:!1,isErr:!0,value:e});sj=e=>{if(e.isOk)return e.value;throw e.value},aj=e=>{if(e.isErr)return e.value;throw e.value},cj=0,na=(e,t="")=>{if(D.profile&&performance.mark){let r=`st:${e}:${t}:${cj++}`;return performance.mark(r),()=>performance.measure(`[Stencil] ${e}() <${t}>`,r)}else return()=>{}},lj=(e,t)=>D.profile&&performance.mark?(performance.getEntriesByName(e,"mark").length===0&&performance.mark(e),()=>{performance.getEntriesByName(t,"measure").length===0&&performance.measure(t,e)}):()=>{},X=(e,t,...r)=>{let n=null,i=null,o=null,s=!1,c=!1,a=[],d=g=>{for(let v=0;v<g.length;v++)n=g[v],Array.isArray(n)?d(n):n!=null&&typeof n!="boolean"&&((s=typeof e!="function"&&!V4(n))?n=String(n):D.isDev&&typeof e!="function"&&n.$flags$===void 0&&vy(`vNode passed as children has unexpected type.
|
|
6
6
|
Make sure it's using the correct h() function.
|
|
7
|
-
Empty objects can also be the cause, look for JSX comments that became objects.`),s&&c?a[a.length-1].$text$+=n:a.push(s?Fp(null,n):n),c=s)};if(d(r),t&&(D.isDev&&e==="input"&&fj(t),D.vdomKey&&t.key&&(i=t.key),D.slotRelocation&&t.name&&(o=t.name),D.vdomClass)){let g=t.className||t.class;g&&(t.class=typeof g!="object"?g:Object.keys(g).filter(v=>g[v]).join(" "))}if(D.isDev&&a.some(
|
|
7
|
+
Empty objects can also be the cause, look for JSX comments that became objects.`),s&&c?a[a.length-1].$text$+=n:a.push(s?Fp(null,n):n),c=s)};if(d(r),t&&(D.isDev&&e==="input"&&fj(t),D.vdomKey&&t.key&&(i=t.key),D.slotRelocation&&t.name&&(o=t.name),D.vdomClass)){let g=t.className||t.class;g&&(t.class=typeof g!="object"?g:Object.keys(g).filter(v=>g[v]).join(" "))}if(D.isDev&&a.some(L4)&&vy(`The <Host> must be the single root component. Make sure:
|
|
8
8
|
- You are NOT using hostData() and <Host> in the same component.
|
|
9
|
-
- <Host> is used once, and it's the single root component of the render() function.`),D.vdomFunctional&&typeof e=="function")return e(t===null?{}:t,a,uj);let h=Fp(e,null);return h.$attrs$=t,a.length>0&&(h.$children$=a),D.vdomKey&&(h.$key$=i),D.slotRelocation&&(h.$name$=o),h},Fp=(e,t)=>{let r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return D.vdomAttribute&&(r.$attrs$=null),D.vdomKey&&(r.$key$=null),D.slotRelocation&&(r.$name$=null),r},Gr={},Lx=e=>e&&e.$tag$===Gr,uj={forEach:(e,t)=>e.map(XP).forEach(t),map:(e,t)=>e.map(XP).map(t).map(dj)},XP=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),dj=e=>{if(typeof e.vtag=="function"){let r={...e.vattrs};return e.vkey&&(r.key=e.vkey),e.vname&&(r.name=e.vname),X(e.vtag,r,...e.vchildren||[])}let t=Fp(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},fj=e=>{let t=Object.keys(e),r=t.indexOf("value");if(r===-1)return;let n=t.indexOf("type"),i=t.indexOf("min"),o=t.indexOf("max"),s=t.indexOf("step");(r<n||r<i||r<o||r<s)&&hg('The "value" prop of <input> should be set after "min", "max", "type" and "step"')},pj=(e,t,r,n)=>{let i=na("hydrateClient",t),o=e.shadowRoot,s=[],c=[],a=D.shadowDom&&o?[]:null,d=n.$vnode$=Fp(t,null);Dt.$orgLocNodes$||Ox(bn.body,Dt.$orgLocNodes$=new Map),e[Ix]=r,e.removeAttribute(Ix),kx(d,s,c,a,e,e,r),s.map(h=>{let g=h.$hostId$+"."+h.$nodeId$,v=Dt.$orgLocNodes$.get(g),S=h.$elm$;v&&ku&&v["s-en"]===""&&v.parentNode.insertBefore(S,v.nextSibling),o||(S["s-hn"]=t,v&&(S["s-ol"]=v,S["s-ol"]["s-nr"]=S)),Dt.$orgLocNodes$.delete(g)}),D.shadowDom&&o&&a.map(h=>{h&&o.appendChild(h)}),i()},kx=(e,t,r,n,i,o,s)=>{let c,a,d,h;if(o.nodeType===1){if(c=o.getAttribute(HP),c&&(a=c.split("."),(a[0]===s||a[0]==="0")&&(d={$flags$:0,$hostId$:a[0],$nodeId$:a[1],$depth$:a[2],$index$:a[3],$tag$:o.tagName.toLowerCase(),$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(d),o.removeAttribute(HP),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d,e=d,n&&d.$depth$==="0"&&(n[d.$index$]=d.$elm$))),o.shadowRoot)for(h=o.shadowRoot.childNodes.length-1;h>=0;h--)kx(e,t,r,n,i,o.shadowRoot.childNodes[h],s);for(h=o.childNodes.length-1;h>=0;h--)kx(e,t,r,n,i,o.childNodes[h],s)}else if(o.nodeType===8)a=o.nodeValue.split("."),(a[1]===s||a[1]==="0")&&(c=a[0],d={$flags$:0,$hostId$:a[1],$nodeId$:a[2],$depth$:a[3],$index$:a[4],$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},c===qG?(d.$elm$=o.nextSibling,d.$elm$&&d.$elm$.nodeType===3&&(d.$text$=d.$elm$.textContent,t.push(d),o.remove(),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d,n&&d.$depth$==="0"&&(n[d.$index$]=d.$elm$))):d.$hostId$===s&&(c===HG?(d.$tag$="slot",a[5]?o["s-sn"]=d.$name$=a[5]:o["s-sn"]="",o["s-sr"]=!0,D.shadowDom&&n&&(d.$elm$=bn.createElement(d.$tag$),d.$name$&&d.$elm$.setAttribute("name",d.$name$),o.parentNode.insertBefore(d.$elm$,o),o.remove(),d.$depth$==="0"&&(n[d.$index$]=d.$elm$)),r.push(d),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d):c===GG&&(D.shadowDom&&n?o.remove():D.slotRelocation&&(i["s-cr"]=o,o["s-cn"]=!0))));else if(e&&e.$tag$==="style"){let g=Fp(null,o.textContent);g.$elm$=o,g.$index$="0",e.$children$=[g]}},Ox=(e,t)=>{if(e.nodeType===1){let r=0;if(e.shadowRoot)for(;r<e.shadowRoot.childNodes.length;r++)Ox(e.shadowRoot.childNodes[r],t);for(r=0;r<e.childNodes.length;r++)Ox(e.childNodes[r],t)}else if(e.nodeType===8){let r=e.nodeValue.split(".");r[0]===jG&&(t.set(r[1]+"."+r[2],e),e.nodeValue="",e["s-en"]=r[3])}},mj=e=>BG.map(t=>t(e)).find(t=>!!t),hj=(e,t)=>e!=null&&!Vx(e)?D.propBoolean&&t&4?e==="false"?!1:e===""||!!e:D.propNumber&&t&2?parseFloat(e):D.propString&&t&1?String(e):e:e,gj=e=>D.lazyLoad?eo(e).$hostElement$:e,Lt=(e,t,r)=>{let n=gj(e);return{emit:i=>(D.isDev&&!n.isConnected&&hg(`The "${t}" event was emitted, but the dispatcher node is no longer connected to the dom.`),zx(n,t,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:i}))}},zx=(e,t,r)=>{let n=Dt.ce(t,r);return e.dispatchEvent(n),n},KP=new WeakMap,wj=(e,t,r)=>{let n=_y.get(e);KG&&r?(n=n||new CSSStyleSheet,typeof n=="string"?n=t:n.replaceSync(t)):n=t,_y.set(e,n)},Nx=(e,t,r)=>{var n;let i=mI(t,r),o=_y.get(i);if(!D.attachStyles)return i;if(e=e.nodeType===11?e:bn,o)if(typeof o=="string"){e=e.head||e;let s=KP.get(e),c;if(s||KP.set(e,s=new Set),!s.has(i)){if(D.hydrateClientSide&&e.host&&(c=e.querySelector(`[${jP}="${i}"]`)))c.innerHTML=o;else{c=bn.createElement("style"),c.innerHTML=o;let a=(n=Dt.$nonce$)!=null?n:nj(bn);a!=null&&c.setAttribute("nonce",a),(D.hydrateServerSide||D.hotModuleReplacement)&&t.$flags$&2&&c.setAttribute(jP,i),(!(t.$flags$&1)||t.$flags$&1&&e.nodeName!=="HEAD")&&e.insertBefore(c,e.querySelector("link"))}t.$flags$&4&&(c.innerHTML+=ZG),s&&s.add(i)}}else D.constructableCSS&&!e.adoptedStyleSheets.includes(o)&&(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return i},yj=e=>{let t=e.$cmpMeta$,r=e.$hostElement$,n=t.$flags$,i=na("attachStyles",t.$tagName$),o=Nx(D.shadowDom&&ku&&r.shadowRoot?r.shadowRoot:r.getRootNode(),t,e.$modeName$);(D.shadowDom||D.scoped)&&D.cssAnnotations&&n&10&&n&2&&(r["s-sc"]=o,r.classList.add(o+"-h"),D.scoped&&n&2&&r.classList.add(o+"-s")),i()},mI=(e,t)=>"sc-"+(D.mode&&t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$),QP=(e,t,r,n,i,o)=>{if(r!==n){let s=BP(e,t),c=t.toLowerCase();if(D.vdomClass&&t==="class"){let a=e.classList,d=eI(r),h=eI(n);a.remove(...d.filter(g=>g&&!h.includes(g))),a.add(...h.filter(g=>g&&!d.includes(g)))}else if(D.vdomStyle&&t==="style"){if(D.updatable)for(let a in r)(!n||n[a]==null)&&(!D.hydrateServerSide&&a.includes("-")?e.style.removeProperty(a):e.style[a]="");for(let a in n)(!r||n[a]!==r[a])&&(!D.hydrateServerSide&&a.includes("-")?e.style.setProperty(a,n[a]):e.style[a]=n[a])}else if(!(D.vdomKey&&t==="key")){if(D.vdomRef&&t==="ref")n&&n(e);else if(D.vdomListener&&(D.lazyLoad?!s:!e.__lookupSetter__(t))&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):BP(Vp,c)?t=c.slice(2):t=c[2]+t.slice(3),r||n){let a=t.endsWith(hI);t=t.replace(vj,""),r&&Dt.rel(e,t,r,a),n&&Dt.ael(e,t,n,a)}}else if(D.vdomPropOrAttr){let a=Vx(n);if((s||a&&n!==null)&&!i)try{if(e.tagName.includes("-"))e[t]=n;else{let h=n??"";t==="list"?s=!1:(r==null||e[t]!=h)&&(e[t]=h)}}catch{}let d=!1;D.vdomXlink&&c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,d=!0),n==null||n===!1?(n!==!1||e.getAttribute(t)==="")&&(D.vdomXlink&&d?e.removeAttributeNS(qP,t):e.removeAttribute(t)):(!s||o&4||i)&&!a&&(n=n===!0?"":n,D.vdomXlink&&d?e.setAttributeNS(qP,t,n):e.setAttribute(t,n))}}}},bj=/\s/,eI=e=>e?e.split(bj):[],hI="Capture",vj=new RegExp(hI+"$"),gI=(e,t,r)=>{let n=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,i=e&&e.$attrs$||JP,o=t.$attrs$||JP;if(D.updatable)for(let s of tI(Object.keys(i)))s in o||QP(n,s,i[s],void 0,r,t.$flags$);for(let s of tI(Object.keys(o)))QP(n,s,i[s],o[s],r,t.$flags$)};mg=!1,Cy=!1,My=!1,Mi=!1,Ty=(e,t,r,n)=>{var i;let o=t.$children$[r],s=0,c,a,d;if(D.slotRelocation&&!mg&&(My=!0,o.$tag$==="slot"&&(Rp&&n.classList.add(Rp+"-s"),o.$flags$|=o.$children$?2:1)),D.isDev&&o.$elm$&&vy(`The JSX ${o.$text$!==null?`"${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`),D.vdomText&&o.$text$!==null)c=o.$elm$=bn.createTextNode(o.$text$);else if(D.slotRelocation&&o.$flags$&1)c=o.$elm$=D.isDebug||D.hydrateServerSide?Sj(o):bn.createTextNode("");else{if(D.svg&&!Mi&&(Mi=o.$tag$==="svg"),c=o.$elm$=D.svg?bn.createElementNS(Mi?ej:tj,!mg&&D.slotRelocation&&o.$flags$&2?"slot-fb":o.$tag$):bn.createElement(!mg&&D.slotRelocation&&o.$flags$&2?"slot-fb":o.$tag$),D.svg&&Mi&&o.$tag$==="foreignObject"&&(Mi=!1),D.vdomAttribute&&gI(null,o,Mi),!!c.getRootNode().querySelector("body")&&D.scoped&&rj(Rp)&&c["s-si"]!==Rp&&c.classList.add(c["s-si"]=Rp),D.scoped&&Bx(c,n),o.$children$)for(s=0;s<o.$children$.length;++s)a=Ty(e,o,s,c),a&&c.appendChild(a);D.svg&&(o.$tag$==="svg"?Mi=!1:c.tagName==="foreignObject"&&(Mi=!0))}return c["s-hn"]=ra,D.slotRelocation&&o.$flags$&3&&(c["s-sr"]=!0,c["s-cr"]=Rx,c["s-sn"]=o.$name$||"",c["s-rf"]=(i=o.$attrs$)==null?void 0:i.ref,d=e&&e.$children$&&e.$children$[r],d&&d.$tag$===o.$tag$&&e.$elm$&&(D.experimentalSlotFixes?wI(e.$elm$):gg(e.$elm$,!1))),c},wI=e=>{Dt.$flags$|=1;let t=e.closest(ra.toLowerCase());if(t!=null){let r=Array.from(t.childNodes).find(i=>i["s-cr"]),n=Array.from(e.childNodes);for(let i of r?n.reverse():n)i["s-sh"]!=null&&(ui(t,i,r??null),i["s-sh"]=void 0,My=!0)}Dt.$flags$&=-2},gg=(e,t)=>{Dt.$flags$|=1;let r=Array.from(e.childNodes);if(e["s-sr"]&&D.experimentalSlotFixes){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===ra&&r.push(n)}for(let n=r.length-1;n>=0;n--){let i=r[n];i["s-hn"]!==ra&&i["s-ol"]&&(ui(vI(i),i,Wx(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,My=!0),t&&gg(i,t)}Dt.$flags$&=-2},yI=(e,t,r,n,i,o)=>{let s=D.slotRelocation&&e["s-cr"]&&e["s-cr"].parentNode||e,c;for(D.shadowDom&&s.shadowRoot&&s.tagName===ra&&(s=s.shadowRoot);i<=o;++i)n[i]&&(c=Ty(null,r,i,e),c&&(n[i].$elm$=c,ui(s,c,D.slotRelocation?Wx(t):t)))},bI=(e,t,r)=>{for(let n=t;n<=r;++n){let i=e[n];if(i){let o=i.$elm$;SI(i),o&&(D.slotRelocation&&(Cy=!0,o["s-ol"]?o["s-ol"].remove():gg(o,!0)),o.remove())}}},_j=(e,t,r,n,i=!1)=>{let o=0,s=0,c=0,a=0,d=t.length-1,h=t[0],g=t[d],v=n.length-1,S=n[0],M=n[v],I,R;for(;o<=d&&s<=v;)if(h==null)h=t[++o];else if(g==null)g=t[--d];else if(S==null)S=n[++s];else if(M==null)M=n[--v];else if(yy(h,S,i))Dp(h,S,i),h=t[++o],S=n[++s];else if(yy(g,M,i))Dp(g,M,i),g=t[--d],M=n[--v];else if(yy(h,M,i))D.slotRelocation&&(h.$tag$==="slot"||M.$tag$==="slot")&&gg(h.$elm$.parentNode,!1),Dp(h,M,i),ui(e,h.$elm$,g.$elm$.nextSibling),h=t[++o],M=n[--v];else if(yy(g,S,i))D.slotRelocation&&(h.$tag$==="slot"||M.$tag$==="slot")&&gg(g.$elm$.parentNode,!1),Dp(g,S,i),ui(e,g.$elm$,h.$elm$),g=t[--d],S=n[++s];else{if(c=-1,D.vdomKey){for(a=o;a<=d;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===S.$key$){c=a;break}}D.vdomKey&&c>=0?(R=t[c],R.$tag$!==S.$tag$?I=Ty(t&&t[s],r,c,e):(Dp(R,S,i),t[c]=void 0,I=R.$elm$),S=n[++s]):(I=Ty(t&&t[s],r,s,e),S=n[++s]),I&&(D.slotRelocation?ui(vI(h.$elm$),I,Wx(h.$elm$)):ui(h.$elm$.parentNode,I,h.$elm$))}o>d?yI(e,n[v+1]==null?null:n[v+1].$elm$,r,n,s,v):D.updatable&&s>v&&bI(t,o,d)},yy=(e,t,r=!1)=>e.$tag$===t.$tag$?D.slotRelocation&&e.$tag$==="slot"?"$nodeId$"in e&&r&&e.$elm$.nodeType!==8?!1:e.$name$===t.$name$:D.vdomKey&&!r?e.$key$===t.$key$:!0:!1,Wx=e=>e&&e["s-ol"]||e,vI=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,Dp=(e,t,r=!1)=>{let n=t.$elm$=e.$elm$,i=e.$children$,o=t.$children$,s=t.$tag$,c=t.$text$,a;!D.vdomText||c===null?(D.svg&&(Mi=s==="svg"?!0:s==="foreignObject"?!1:Mi),(D.vdomAttribute||D.reflect)&&(D.slot&&s==="slot"&&!mg?D.experimentalSlotFixes&&e.$name$!==t.$name$&&(t.$elm$["s-sn"]=t.$name$||"",wI(t.$elm$.parentElement)):gI(e,t,Mi)),D.updatable&&i!==null&&o!==null?_j(n,i,t,o,r):o!==null?(D.updatable&&D.vdomText&&e.$text$!==null&&(n.textContent=""),yI(n,null,t,o,0,o.length-1)):!r&&D.updatable&&i!==null&&bI(i,0,i.length-1),D.svg&&Mi&&s==="svg"&&(Mi=!1)):D.vdomText&&D.slotRelocation&&(a=n["s-cr"])?a.parentNode.textContent=c:D.vdomText&&e.$text$!==c&&(n.data=c)},Py=e=>{let t=e.childNodes;for(let r of t)if(r.nodeType===1){if(r["s-sr"]){let n=r["s-sn"];r.hidden=!1;for(let i of t)if(i!==r){if(i["s-hn"]!==r["s-hn"]||n!==""){if(i.nodeType===1&&(n===i.getAttribute("slot")||n===i["s-sn"])||i.nodeType===3&&n===i["s-sn"]){r.hidden=!0;break}}else if(i.nodeType===1||i.nodeType===3&&i.textContent.trim()!==""){r.hidden=!0;break}}}Py(r)}},ta=[],_I=e=>{let t,r,n;for(let i of e.childNodes){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){r=t.parentNode.childNodes;let o=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"]&&(!D.experimentalSlotFixes||!t["s-sh"]||t["s-sh"]!==i["s-hn"]))if(rI(t,o)){let s=ta.find(c=>c.$nodeToRelocate$===t);Cy=!0,t["s-sn"]=t["s-sn"]||o,s?(s.$nodeToRelocate$["s-sh"]=i["s-hn"],s.$slotRefNode$=i):(t["s-sh"]=i["s-hn"],ta.push({$slotRefNode$:i,$nodeToRelocate$:t})),t["s-sr"]&&ta.map(c=>{rI(c.$nodeToRelocate$,t["s-sn"])&&(s=ta.find(a=>a.$nodeToRelocate$===t),s&&!c.$slotRefNode$&&(c.$slotRefNode$=s.$slotRefNode$))})}else ta.some(s=>s.$nodeToRelocate$===t)||ta.push({$nodeToRelocate$:t})}i.nodeType===1&&_I(i)}},rI=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",SI=e=>{D.vdomRef&&(e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(SI))},ui=(e,t,r)=>{let n=e?.insertBefore(t,r);return D.scoped&&Bx(t,e),n},xI=e=>{let t=[];return e&&t.push(...e["s-scs"]||[],e["s-si"],e["s-sc"],...xI(e.parentElement)),t},Bx=(e,t,r=!1)=>{var n;if(e&&t&&e.nodeType===1){let i=new Set(xI(t).filter(Boolean));if(i.size&&((n=e.classList)==null||n.add(...e["s-scs"]=[...i]),e["s-ol"]||r))for(let o of Array.from(e.childNodes))Bx(o,e,!0)}},nI=(e,t,r=!1)=>{var n,i,o,s,c;let a=e.$hostElement$,d=e.$cmpMeta$,h=e.$vnode$||Fp(null,null),g=Lx(t)?t:X(null,null,t);if(ra=a.tagName,D.isDev&&Array.isArray(t)&&t.some(Lx))throw new Error(`The <Host> must be the single root component.
|
|
9
|
+
- <Host> is used once, and it's the single root component of the render() function.`),D.vdomFunctional&&typeof e=="function")return e(t===null?{}:t,a,uj);let h=Fp(e,null);return h.$attrs$=t,a.length>0&&(h.$children$=a),D.vdomKey&&(h.$key$=i),D.slotRelocation&&(h.$name$=o),h},Fp=(e,t)=>{let r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return D.vdomAttribute&&(r.$attrs$=null),D.vdomKey&&(r.$key$=null),D.slotRelocation&&(r.$name$=null),r},Gr={},L4=e=>e&&e.$tag$===Gr,uj={forEach:(e,t)=>e.map(XP).forEach(t),map:(e,t)=>e.map(XP).map(t).map(dj)},XP=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),dj=e=>{if(typeof e.vtag=="function"){let r={...e.vattrs};return e.vkey&&(r.key=e.vkey),e.vname&&(r.name=e.vname),X(e.vtag,r,...e.vchildren||[])}let t=Fp(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},fj=e=>{let t=Object.keys(e),r=t.indexOf("value");if(r===-1)return;let n=t.indexOf("type"),i=t.indexOf("min"),o=t.indexOf("max"),s=t.indexOf("step");(r<n||r<i||r<o||r<s)&&hg('The "value" prop of <input> should be set after "min", "max", "type" and "step"')},pj=(e,t,r,n)=>{let i=na("hydrateClient",t),o=e.shadowRoot,s=[],c=[],a=D.shadowDom&&o?[]:null,d=n.$vnode$=Fp(t,null);Dt.$orgLocNodes$||O4(bn.body,Dt.$orgLocNodes$=new Map),e[I4]=r,e.removeAttribute(I4),k4(d,s,c,a,e,e,r),s.map(h=>{let g=h.$hostId$+"."+h.$nodeId$,v=Dt.$orgLocNodes$.get(g),S=h.$elm$;v&&ku&&v["s-en"]===""&&v.parentNode.insertBefore(S,v.nextSibling),o||(S["s-hn"]=t,v&&(S["s-ol"]=v,S["s-ol"]["s-nr"]=S)),Dt.$orgLocNodes$.delete(g)}),D.shadowDom&&o&&a.map(h=>{h&&o.appendChild(h)}),i()},k4=(e,t,r,n,i,o,s)=>{let c,a,d,h;if(o.nodeType===1){if(c=o.getAttribute(HP),c&&(a=c.split("."),(a[0]===s||a[0]==="0")&&(d={$flags$:0,$hostId$:a[0],$nodeId$:a[1],$depth$:a[2],$index$:a[3],$tag$:o.tagName.toLowerCase(),$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(d),o.removeAttribute(HP),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d,e=d,n&&d.$depth$==="0"&&(n[d.$index$]=d.$elm$))),o.shadowRoot)for(h=o.shadowRoot.childNodes.length-1;h>=0;h--)k4(e,t,r,n,i,o.shadowRoot.childNodes[h],s);for(h=o.childNodes.length-1;h>=0;h--)k4(e,t,r,n,i,o.childNodes[h],s)}else if(o.nodeType===8)a=o.nodeValue.split("."),(a[1]===s||a[1]==="0")&&(c=a[0],d={$flags$:0,$hostId$:a[1],$nodeId$:a[2],$depth$:a[3],$index$:a[4],$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},c===qG?(d.$elm$=o.nextSibling,d.$elm$&&d.$elm$.nodeType===3&&(d.$text$=d.$elm$.textContent,t.push(d),o.remove(),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d,n&&d.$depth$==="0"&&(n[d.$index$]=d.$elm$))):d.$hostId$===s&&(c===HG?(d.$tag$="slot",a[5]?o["s-sn"]=d.$name$=a[5]:o["s-sn"]="",o["s-sr"]=!0,D.shadowDom&&n&&(d.$elm$=bn.createElement(d.$tag$),d.$name$&&d.$elm$.setAttribute("name",d.$name$),o.parentNode.insertBefore(d.$elm$,o),o.remove(),d.$depth$==="0"&&(n[d.$index$]=d.$elm$)),r.push(d),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d):c===GG&&(D.shadowDom&&n?o.remove():D.slotRelocation&&(i["s-cr"]=o,o["s-cn"]=!0))));else if(e&&e.$tag$==="style"){let g=Fp(null,o.textContent);g.$elm$=o,g.$index$="0",e.$children$=[g]}},O4=(e,t)=>{if(e.nodeType===1){let r=0;if(e.shadowRoot)for(;r<e.shadowRoot.childNodes.length;r++)O4(e.shadowRoot.childNodes[r],t);for(r=0;r<e.childNodes.length;r++)O4(e.childNodes[r],t)}else if(e.nodeType===8){let r=e.nodeValue.split(".");r[0]===jG&&(t.set(r[1]+"."+r[2],e),e.nodeValue="",e["s-en"]=r[3])}},mj=e=>BG.map(t=>t(e)).find(t=>!!t),hj=(e,t)=>e!=null&&!V4(e)?D.propBoolean&&t&4?e==="false"?!1:e===""||!!e:D.propNumber&&t&2?parseFloat(e):D.propString&&t&1?String(e):e:e,gj=e=>D.lazyLoad?eo(e).$hostElement$:e,Lt=(e,t,r)=>{let n=gj(e);return{emit:i=>(D.isDev&&!n.isConnected&&hg(`The "${t}" event was emitted, but the dispatcher node is no longer connected to the dom.`),z4(n,t,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:i}))}},z4=(e,t,r)=>{let n=Dt.ce(t,r);return e.dispatchEvent(n),n},KP=new WeakMap,wj=(e,t,r)=>{let n=_y.get(e);KG&&r?(n=n||new CSSStyleSheet,typeof n=="string"?n=t:n.replaceSync(t)):n=t,_y.set(e,n)},N4=(e,t,r)=>{var n;let i=mI(t,r),o=_y.get(i);if(!D.attachStyles)return i;if(e=e.nodeType===11?e:bn,o)if(typeof o=="string"){e=e.head||e;let s=KP.get(e),c;if(s||KP.set(e,s=new Set),!s.has(i)){if(D.hydrateClientSide&&e.host&&(c=e.querySelector(`[${jP}="${i}"]`)))c.innerHTML=o;else{c=bn.createElement("style"),c.innerHTML=o;let a=(n=Dt.$nonce$)!=null?n:nj(bn);a!=null&&c.setAttribute("nonce",a),(D.hydrateServerSide||D.hotModuleReplacement)&&t.$flags$&2&&c.setAttribute(jP,i),(!(t.$flags$&1)||t.$flags$&1&&e.nodeName!=="HEAD")&&e.insertBefore(c,e.querySelector("link"))}t.$flags$&4&&(c.innerHTML+=ZG),s&&s.add(i)}}else D.constructableCSS&&!e.adoptedStyleSheets.includes(o)&&(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return i},yj=e=>{let t=e.$cmpMeta$,r=e.$hostElement$,n=t.$flags$,i=na("attachStyles",t.$tagName$),o=N4(D.shadowDom&&ku&&r.shadowRoot?r.shadowRoot:r.getRootNode(),t,e.$modeName$);(D.shadowDom||D.scoped)&&D.cssAnnotations&&n&10&&n&2&&(r["s-sc"]=o,r.classList.add(o+"-h"),D.scoped&&n&2&&r.classList.add(o+"-s")),i()},mI=(e,t)=>"sc-"+(D.mode&&t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$),QP=(e,t,r,n,i,o)=>{if(r!==n){let s=BP(e,t),c=t.toLowerCase();if(D.vdomClass&&t==="class"){let a=e.classList,d=eI(r),h=eI(n);a.remove(...d.filter(g=>g&&!h.includes(g))),a.add(...h.filter(g=>g&&!d.includes(g)))}else if(D.vdomStyle&&t==="style"){if(D.updatable)for(let a in r)(!n||n[a]==null)&&(!D.hydrateServerSide&&a.includes("-")?e.style.removeProperty(a):e.style[a]="");for(let a in n)(!r||n[a]!==r[a])&&(!D.hydrateServerSide&&a.includes("-")?e.style.setProperty(a,n[a]):e.style[a]=n[a])}else if(!(D.vdomKey&&t==="key")){if(D.vdomRef&&t==="ref")n&&n(e);else if(D.vdomListener&&(D.lazyLoad?!s:!e.__lookupSetter__(t))&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):BP(Vp,c)?t=c.slice(2):t=c[2]+t.slice(3),r||n){let a=t.endsWith(hI);t=t.replace(vj,""),r&&Dt.rel(e,t,r,a),n&&Dt.ael(e,t,n,a)}}else if(D.vdomPropOrAttr){let a=V4(n);if((s||a&&n!==null)&&!i)try{if(e.tagName.includes("-"))e[t]=n;else{let h=n??"";t==="list"?s=!1:(r==null||e[t]!=h)&&(e[t]=h)}}catch{}let d=!1;D.vdomXlink&&c!==(c=c.replace(/^xlink\:?/,""))&&(t=c,d=!0),n==null||n===!1?(n!==!1||e.getAttribute(t)==="")&&(D.vdomXlink&&d?e.removeAttributeNS(qP,t):e.removeAttribute(t)):(!s||o&4||i)&&!a&&(n=n===!0?"":n,D.vdomXlink&&d?e.setAttributeNS(qP,t,n):e.setAttribute(t,n))}}}},bj=/\s/,eI=e=>e?e.split(bj):[],hI="Capture",vj=new RegExp(hI+"$"),gI=(e,t,r)=>{let n=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,i=e&&e.$attrs$||JP,o=t.$attrs$||JP;if(D.updatable)for(let s of tI(Object.keys(i)))s in o||QP(n,s,i[s],void 0,r,t.$flags$);for(let s of tI(Object.keys(o)))QP(n,s,i[s],o[s],r,t.$flags$)};mg=!1,Cy=!1,My=!1,Mi=!1,Ty=(e,t,r,n)=>{var i;let o=t.$children$[r],s=0,c,a,d;if(D.slotRelocation&&!mg&&(My=!0,o.$tag$==="slot"&&(Rp&&n.classList.add(Rp+"-s"),o.$flags$|=o.$children$?2:1)),D.isDev&&o.$elm$&&vy(`The JSX ${o.$text$!==null?`"${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`),D.vdomText&&o.$text$!==null)c=o.$elm$=bn.createTextNode(o.$text$);else if(D.slotRelocation&&o.$flags$&1)c=o.$elm$=D.isDebug||D.hydrateServerSide?Sj(o):bn.createTextNode("");else{if(D.svg&&!Mi&&(Mi=o.$tag$==="svg"),c=o.$elm$=D.svg?bn.createElementNS(Mi?ej:tj,!mg&&D.slotRelocation&&o.$flags$&2?"slot-fb":o.$tag$):bn.createElement(!mg&&D.slotRelocation&&o.$flags$&2?"slot-fb":o.$tag$),D.svg&&Mi&&o.$tag$==="foreignObject"&&(Mi=!1),D.vdomAttribute&&gI(null,o,Mi),!!c.getRootNode().querySelector("body")&&D.scoped&&rj(Rp)&&c["s-si"]!==Rp&&c.classList.add(c["s-si"]=Rp),D.scoped&&B4(c,n),o.$children$)for(s=0;s<o.$children$.length;++s)a=Ty(e,o,s,c),a&&c.appendChild(a);D.svg&&(o.$tag$==="svg"?Mi=!1:c.tagName==="foreignObject"&&(Mi=!0))}return c["s-hn"]=ra,D.slotRelocation&&o.$flags$&3&&(c["s-sr"]=!0,c["s-cr"]=R4,c["s-sn"]=o.$name$||"",c["s-rf"]=(i=o.$attrs$)==null?void 0:i.ref,d=e&&e.$children$&&e.$children$[r],d&&d.$tag$===o.$tag$&&e.$elm$&&(D.experimentalSlotFixes?wI(e.$elm$):gg(e.$elm$,!1))),c},wI=e=>{Dt.$flags$|=1;let t=e.closest(ra.toLowerCase());if(t!=null){let r=Array.from(t.childNodes).find(i=>i["s-cr"]),n=Array.from(e.childNodes);for(let i of r?n.reverse():n)i["s-sh"]!=null&&(ui(t,i,r??null),i["s-sh"]=void 0,My=!0)}Dt.$flags$&=-2},gg=(e,t)=>{Dt.$flags$|=1;let r=Array.from(e.childNodes);if(e["s-sr"]&&D.experimentalSlotFixes){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===ra&&r.push(n)}for(let n=r.length-1;n>=0;n--){let i=r[n];i["s-hn"]!==ra&&i["s-ol"]&&(ui(vI(i),i,W4(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,My=!0),t&&gg(i,t)}Dt.$flags$&=-2},yI=(e,t,r,n,i,o)=>{let s=D.slotRelocation&&e["s-cr"]&&e["s-cr"].parentNode||e,c;for(D.shadowDom&&s.shadowRoot&&s.tagName===ra&&(s=s.shadowRoot);i<=o;++i)n[i]&&(c=Ty(null,r,i,e),c&&(n[i].$elm$=c,ui(s,c,D.slotRelocation?W4(t):t)))},bI=(e,t,r)=>{for(let n=t;n<=r;++n){let i=e[n];if(i){let o=i.$elm$;SI(i),o&&(D.slotRelocation&&(Cy=!0,o["s-ol"]?o["s-ol"].remove():gg(o,!0)),o.remove())}}},_j=(e,t,r,n,i=!1)=>{let o=0,s=0,c=0,a=0,d=t.length-1,h=t[0],g=t[d],v=n.length-1,S=n[0],M=n[v],I,R;for(;o<=d&&s<=v;)if(h==null)h=t[++o];else if(g==null)g=t[--d];else if(S==null)S=n[++s];else if(M==null)M=n[--v];else if(yy(h,S,i))Dp(h,S,i),h=t[++o],S=n[++s];else if(yy(g,M,i))Dp(g,M,i),g=t[--d],M=n[--v];else if(yy(h,M,i))D.slotRelocation&&(h.$tag$==="slot"||M.$tag$==="slot")&&gg(h.$elm$.parentNode,!1),Dp(h,M,i),ui(e,h.$elm$,g.$elm$.nextSibling),h=t[++o],M=n[--v];else if(yy(g,S,i))D.slotRelocation&&(h.$tag$==="slot"||M.$tag$==="slot")&&gg(g.$elm$.parentNode,!1),Dp(g,S,i),ui(e,g.$elm$,h.$elm$),g=t[--d],S=n[++s];else{if(c=-1,D.vdomKey){for(a=o;a<=d;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===S.$key$){c=a;break}}D.vdomKey&&c>=0?(R=t[c],R.$tag$!==S.$tag$?I=Ty(t&&t[s],r,c,e):(Dp(R,S,i),t[c]=void 0,I=R.$elm$),S=n[++s]):(I=Ty(t&&t[s],r,s,e),S=n[++s]),I&&(D.slotRelocation?ui(vI(h.$elm$),I,W4(h.$elm$)):ui(h.$elm$.parentNode,I,h.$elm$))}o>d?yI(e,n[v+1]==null?null:n[v+1].$elm$,r,n,s,v):D.updatable&&s>v&&bI(t,o,d)},yy=(e,t,r=!1)=>e.$tag$===t.$tag$?D.slotRelocation&&e.$tag$==="slot"?"$nodeId$"in e&&r&&e.$elm$.nodeType!==8?!1:e.$name$===t.$name$:D.vdomKey&&!r?e.$key$===t.$key$:!0:!1,W4=e=>e&&e["s-ol"]||e,vI=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,Dp=(e,t,r=!1)=>{let n=t.$elm$=e.$elm$,i=e.$children$,o=t.$children$,s=t.$tag$,c=t.$text$,a;!D.vdomText||c===null?(D.svg&&(Mi=s==="svg"?!0:s==="foreignObject"?!1:Mi),(D.vdomAttribute||D.reflect)&&(D.slot&&s==="slot"&&!mg?D.experimentalSlotFixes&&e.$name$!==t.$name$&&(t.$elm$["s-sn"]=t.$name$||"",wI(t.$elm$.parentElement)):gI(e,t,Mi)),D.updatable&&i!==null&&o!==null?_j(n,i,t,o,r):o!==null?(D.updatable&&D.vdomText&&e.$text$!==null&&(n.textContent=""),yI(n,null,t,o,0,o.length-1)):!r&&D.updatable&&i!==null&&bI(i,0,i.length-1),D.svg&&Mi&&s==="svg"&&(Mi=!1)):D.vdomText&&D.slotRelocation&&(a=n["s-cr"])?a.parentNode.textContent=c:D.vdomText&&e.$text$!==c&&(n.data=c)},Py=e=>{let t=e.childNodes;for(let r of t)if(r.nodeType===1){if(r["s-sr"]){let n=r["s-sn"];r.hidden=!1;for(let i of t)if(i!==r){if(i["s-hn"]!==r["s-hn"]||n!==""){if(i.nodeType===1&&(n===i.getAttribute("slot")||n===i["s-sn"])||i.nodeType===3&&n===i["s-sn"]){r.hidden=!0;break}}else if(i.nodeType===1||i.nodeType===3&&i.textContent.trim()!==""){r.hidden=!0;break}}}Py(r)}},ta=[],_I=e=>{let t,r,n;for(let i of e.childNodes){if(i["s-sr"]&&(t=i["s-cr"])&&t.parentNode){r=t.parentNode.childNodes;let o=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"]&&(!D.experimentalSlotFixes||!t["s-sh"]||t["s-sh"]!==i["s-hn"]))if(rI(t,o)){let s=ta.find(c=>c.$nodeToRelocate$===t);Cy=!0,t["s-sn"]=t["s-sn"]||o,s?(s.$nodeToRelocate$["s-sh"]=i["s-hn"],s.$slotRefNode$=i):(t["s-sh"]=i["s-hn"],ta.push({$slotRefNode$:i,$nodeToRelocate$:t})),t["s-sr"]&&ta.map(c=>{rI(c.$nodeToRelocate$,t["s-sn"])&&(s=ta.find(a=>a.$nodeToRelocate$===t),s&&!c.$slotRefNode$&&(c.$slotRefNode$=s.$slotRefNode$))})}else ta.some(s=>s.$nodeToRelocate$===t)||ta.push({$nodeToRelocate$:t})}i.nodeType===1&&_I(i)}},rI=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",SI=e=>{D.vdomRef&&(e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(SI))},ui=(e,t,r)=>{let n=e?.insertBefore(t,r);return D.scoped&&B4(t,e),n},xI=e=>{let t=[];return e&&t.push(...e["s-scs"]||[],e["s-si"],e["s-sc"],...xI(e.parentElement)),t},B4=(e,t,r=!1)=>{var n;if(e&&t&&e.nodeType===1){let i=new Set(xI(t).filter(Boolean));if(i.size&&((n=e.classList)==null||n.add(...e["s-scs"]=[...i]),e["s-ol"]||r))for(let o of Array.from(e.childNodes))B4(o,e,!0)}},nI=(e,t,r=!1)=>{var n,i,o,s,c;let a=e.$hostElement$,d=e.$cmpMeta$,h=e.$vnode$||Fp(null,null),g=L4(t)?t:X(null,null,t);if(ra=a.tagName,D.isDev&&Array.isArray(t)&&t.some(L4))throw new Error(`The <Host> must be the single root component.
|
|
10
10
|
Looks like the render() function of "${ra.toLowerCase()}" is returning an array that contains the <Host>.
|
|
11
11
|
|
|
12
12
|
The render() function should look like this instead:
|
|
@@ -17,14 +17,14 @@ render() {
|
|
|
17
17
|
<Host>{content}</Host>
|
|
18
18
|
);
|
|
19
19
|
}
|
|
20
|
-
`);if(D.reflect&&d.$attrsToReflect$&&(g.$attrs$=g.$attrs$||{},d.$attrsToReflect$.map(([v,S])=>g.$attrs$[S]=a[v])),r&&g.$attrs$)for(let v of Object.keys(g.$attrs$))a.hasAttribute(v)&&!["key","ref","style","class"].includes(v)&&(g.$attrs$[v]=a[v]);if(g.$tag$=null,g.$flags$|=4,e.$vnode$=g,g.$elm$=h.$elm$=D.shadowDom&&a.shadowRoot||a,(D.scoped||D.shadowDom)&&(Rp=a["s-sc"]),mg=ku&&(d.$flags$&1)!==0,D.slotRelocation&&(
|
|
20
|
+
`);if(D.reflect&&d.$attrsToReflect$&&(g.$attrs$=g.$attrs$||{},d.$attrsToReflect$.map(([v,S])=>g.$attrs$[S]=a[v])),r&&g.$attrs$)for(let v of Object.keys(g.$attrs$))a.hasAttribute(v)&&!["key","ref","style","class"].includes(v)&&(g.$attrs$[v]=a[v]);if(g.$tag$=null,g.$flags$|=4,e.$vnode$=g,g.$elm$=h.$elm$=D.shadowDom&&a.shadowRoot||a,(D.scoped||D.shadowDom)&&(Rp=a["s-sc"]),mg=ku&&(d.$flags$&1)!==0,D.slotRelocation&&(R4=a["s-cr"],Cy=!1),Dp(h,g,r),D.slotRelocation){if(Dt.$flags$|=1,My){_I(g.$elm$);for(let v of ta){let S=v.$nodeToRelocate$;if(!S["s-ol"]){let M=D.isDebug||D.hydrateServerSide?xj(S):bn.createTextNode("");M["s-nr"]=S,ui(S.parentNode,S["s-ol"]=M,S)}}for(let v of ta){let S=v.$nodeToRelocate$,M=v.$slotRefNode$;if(M){let I=M.parentNode,R=M.nextSibling;if(!D.experimentalSlotFixes||R&&R.nodeType===1){let B=(n=S["s-ol"])==null?void 0:n.previousSibling;for(;B;){let F=(i=B["s-nr"])!=null?i:null;if(F&&F["s-sn"]===S["s-sn"]&&I===F.parentNode){for(F=F.nextSibling;F===S||F?.["s-sr"];)F=F?.nextSibling;if(!F||!F["s-nr"]){R=F;break}}B=B.previousSibling}}(!R&&I!==S.parentNode||S.nextSibling!==R)&&S!==R&&(!D.experimentalSlotFixes&&!S["s-hn"]&&S["s-ol"]&&(S["s-hn"]=S["s-ol"].parentNode.nodeName),ui(I,S,R),S.nodeType===1&&(S.hidden=(o=S["s-ih"])!=null?o:!1)),S&&typeof M["s-rf"]=="function"&&M["s-rf"](S)}else S.nodeType===1&&(r&&(S["s-ih"]=(s=S.hidden)!=null?s:!1),S.hidden=!0)}}Cy&&Py(g.$elm$),Dt.$flags$&=-2,ta.length=0}if(D.experimentalScopedSlotChanges&&d.$flags$&2)for(let v of g.$elm$.childNodes)v["s-hn"]!==ra&&!v["s-sh"]&&(r&&v["s-ih"]==null&&(v["s-ih"]=(c=v.hidden)!=null?c:!1),v.hidden=!0);R4=void 0},Sj=e=>bn.createComment(`<slot${e.$name$?' name="'+e.$name$+'"':""}> (host=${ra.toLowerCase()})`),xj=e=>bn.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`)),CI=(e,t)=>{D.asyncLoading&&t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(r=>e.$onRenderResolve$=r))},Iy=(e,t)=>{if(D.taskQueue&&D.updatable&&(e.$flags$|=16),D.asyncLoading&&e.$flags$&4){e.$flags$|=512;return}CI(e,e.$ancestorComponent$);let r=()=>Cj(e,t);return D.taskQueue?QG(r):r()},Cj=(e,t)=>{let r=e.$hostElement$,n=na("scheduleUpdate",e.$cmpMeta$.$tagName$),i=D.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?(D.lazyLoad&&D.hostListener&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([s,c])=>ys(i,s,c)),e.$queuedListeners$=void 0)),$p(r,"componentWillLoad"),D.cmpWillLoad&&(o=ys(i,"componentWillLoad"))):($p(r,"componentWillUpdate"),D.cmpWillUpdate&&(o=ys(i,"componentWillUpdate"))),$p(r,"componentWillRender"),D.cmpWillRender&&(o=iI(o,()=>ys(i,"componentWillRender"))),n(),iI(o,()=>Ej(e,i,t))},iI=(e,t)=>Tj(e)?e.then(t).catch(r=>{console.error(r),t()}):t(),Tj=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Ej=async(e,t,r)=>{var n;let i=e.$hostElement$,o=na("update",e.$cmpMeta$.$tagName$),s=i["s-rc"];D.style&&r&&yj(e);let c=na("render",e.$cmpMeta$.$tagName$);if(D.isDev&&(e.$flags$|=1024),D.hydrateServerSide?await sI(e,t,i,r):sI(e,t,i,r),D.isDev&&(e.$renderCount$=e.$renderCount$===void 0?1:e.$renderCount$+1,e.$flags$&=-1025),D.hydrateServerSide)try{EI(i),r&&(e.$cmpMeta$.$flags$&1?i["s-en"]="":e.$cmpMeta$.$flags$&2&&(i["s-en"]="c"))}catch(a){ia(a,i)}if(D.asyncLoading&&s&&(s.map(a=>a()),i["s-rc"]=void 0),c(),o(),D.asyncLoading){let a=(n=i["s-p"])!=null?n:[],d=()=>aI(e);a.length===0?d():(Promise.all(a).then(d),e.$flags$|=4,a.length=0)}else aI(e)},oI=null,sI=(e,t,r,n)=>{let i=!!D.allRenderFn,o=!!D.lazyLoad,s=!!D.taskQueue,c=!!D.updatable;try{if(oI=t,t=(i||t.render)&&t.render(),c&&s&&(e.$flags$&=-17),(c||o)&&(e.$flags$|=2),D.hasRenderFn||D.reflect)if(D.vdomRender||D.reflect){if(D.hydrateServerSide)return Promise.resolve(t).then(a=>nI(e,a,n));nI(e,t,n)}else{let a=r.shadowRoot;e.$cmpMeta$.$flags$&1?a.textContent=t:r.textContent=t}}catch(a){ia(a,e.$hostElement$)}return oI=null,null},aI=e=>{let t=e.$cmpMeta$.$tagName$,r=e.$hostElement$,n=na("postUpdate",t),i=D.lazyLoad?e.$lazyInstance$:r,o=e.$ancestorComponent$;D.cmpDidRender&&(D.isDev&&(e.$flags$|=1024),ys(i,"componentDidRender"),D.isDev&&(e.$flags$&=-1025)),$p(r,"componentDidRender"),e.$flags$&64?(D.cmpDidUpdate&&(D.isDev&&(e.$flags$|=1024),ys(i,"componentDidUpdate"),D.isDev&&(e.$flags$&=-1025)),$p(r,"componentDidUpdate"),n()):(e.$flags$|=64,D.asyncLoading&&D.cssAnnotations&&TI(r),D.cmpDidLoad&&(D.isDev&&(e.$flags$|=2048),ys(i,"componentDidLoad"),D.isDev&&(e.$flags$&=-2049)),$p(r,"componentDidLoad"),n(),D.asyncLoading&&(e.$onReadyResolve$(r),o||Mj(t))),D.method&&D.lazyLoad&&e.$onInstanceResolve$(r),D.asyncLoading&&(e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&Ey(()=>Iy(e,!1)),e.$flags$&=-517)},to=e=>{if(D.updatable&&(Lu.isBrowser||Lu.isTesting)){let t=eo(e),r=t.$hostElement$.isConnected;return r&&(t.$flags$&18)===2&&Iy(t,!1),r}return!1},Mj=e=>{D.cssAnnotations&&TI(bn.documentElement),D.asyncQueue&&(Dt.$flags$|=2),Ey(()=>z4(Vp,"appload",{detail:{namespace:hy}})),D.profile&&performance.measure&&performance.measure(`[Stencil] ${hy} initial load (by ${e})`,"st:app:start")},ys=(e,t,r)=>{if(e&&e[t])try{return e[t](r)}catch(n){ia(n)}},$p=(e,t)=>{D.lifecycleDOMEvents&&z4(e,"stencil_"+t,{bubbles:!0,composed:!0,detail:{namespace:hy}})},TI=e=>{var t,r;return D.hydratedClass?e.classList.add((t=D.hydratedSelectorName)!=null?t:"hydrated"):D.hydratedAttribute?e.setAttribute((r=D.hydratedSelectorName)!=null?r:"hydrated",""):void 0},EI=e=>{let t=e.children;if(t!=null)for(let r=0,n=t.length;r<n;r++){let i=t[r];typeof i.connectedCallback=="function"&&i.connectedCallback(),EI(i)}},Pj=(e,t)=>eo(e).$instanceValues$.get(t),Ij=(e,t,r,n)=>{let i=eo(e);if(D.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).`);let o=D.lazyLoad?i.$hostElement$:e,s=i.$instanceValues$.get(t),c=i.$flags$,a=D.lazyLoad?i.$lazyInstance$:o;r=hj(r,n.$members$[t][0]);let d=Number.isNaN(s)&&Number.isNaN(r),h=r!==s&&!d;if((!D.lazyLoad||!(c&8)||s===void 0)&&h&&(i.$instanceValues$.set(t,r),D.isDev&&(i.$flags$&1024?hg(`The state/prop "${t}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,`
|
|
21
21
|
Element`,o,`
|
|
22
22
|
New value`,r,`
|
|
23
23
|
Old value`,s):i.$flags$&2048&&hg(`The state/prop "${t}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,`
|
|
24
24
|
Element`,o,`
|
|
25
25
|
New value`,r,`
|
|
26
26
|
Old value`,s)),!D.lazyLoad||a)){if(D.watchCallback&&n.$watchers$&&c&128){let g=n.$watchers$[t];g&&g.map(v=>{try{a[v](r,s,t)}catch(S){ia(S,o)}})}if(D.updatable&&(c&18)===2){if(D.cmpShouldUpdate&&a.componentShouldUpdate&&a.componentShouldUpdate(r,s,t)===!1)return;Iy(i,!1)}}},MI=(e,t,r)=>{var n,i;let o=e.prototype;if(D.formAssociated&&t.$flags$&64&&r&1&&YG.forEach(s=>Object.defineProperty(o,s,{value(...c){let a=eo(this),d=D.lazyLoad?a.$hostElement$:this,h=D.lazyLoad?a.$lazyInstance$:d;if(!h)a.$onReadyPromise$.then(g=>{let v=g[s];typeof v=="function"&&v.call(g,...c)});else{let g=h[s];typeof g=="function"&&g.call(h,...c)}}})),D.member&&t.$members$||D.watchCallback&&(t.$watchers$||e.watchers)){D.watchCallback&&e.watchers&&!t.$watchers$&&(t.$watchers$=e.watchers);let s=Object.entries((n=t.$members$)!=null?n:{});if(s.map(([c,[a]])=>{(D.prop||D.state)&&(a&31||(!D.lazyLoad||r&2)&&a&32)?Object.defineProperty(o,c,{get(){return Pj(this,c)},set(d){if(D.isDev){let h=eo(this);!(r&1)&&(h&&h.$flags$&8)===0&&a&31&&!(a&1024)&&hg(`@Prop() "${c}" on <${t.$tagName$}> is immutable but was modified from within the component.
|
|
27
|
-
More information: https://stenciljs.com/docs/properties#prop-mutability`)}Ij(this,c,d,t)},configurable:!0,enumerable:!0}):D.lazyLoad&&D.method&&r&1&&a&64&&Object.defineProperty(o,c,{value(...d){var h;let g=eo(this);return(h=g?.$onInstancePromise$)==null?void 0:h.then(()=>{var v;return(v=g.$lazyInstance$)==null?void 0:v[c](...d)})}})}),D.observeAttribute&&(!D.lazyLoad||r&1)){let c=new Map;o.attributeChangedCallback=function(a,d,h){Dt.jmp(()=>{var g;let v=c.get(a);if(this.hasOwnProperty(v))h=this[v],delete this[v];else{if(o.hasOwnProperty(v)&&typeof this[v]=="number"&&this[v]==h)return;if(v==null){let S=eo(this),M=S?.$flags$;if(M&&!(M&8)&&M&128&&h!==d){let I=D.lazyLoad?S.$hostElement$:this,R=D.lazyLoad?S.$lazyInstance$:I,B=(g=t.$watchers$)==null?void 0:g[a];B?.forEach(F=>{R[F]!=null&&R[F].call(R,h,d,a)})}return}}this[v]=h===null&&typeof this[v]=="boolean"?!1:h})},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.$watchers$)!=null?i:{}),...s.filter(([a,d])=>d[0]&15).map(([a,d])=>{var h;let g=d[1]||a;return c.set(g,a),D.reflect&&d[0]&512&&((h=t.$attrsToReflect$)==null||h.push([a,g])),g})]))}}return e},cI=async(e,t,r,n)=>{let i;if(!(t.$flags$&32)){t.$flags$|=32;let c=r.$lazyBundleId$;if((D.lazyLoad||D.hydrateClientSide)&&c){let a=WG(r,t,n);if(a&&"then"in a){let h=lj(`st:load:${r.$tagName$}:${t.$modeName$}`,`[Stencil] Load module for <${r.$tagName$}>`);i=await a,h()}else i=a;if(!i)throw new Error(`Constructor for "${r.$tagName$}#${t.$modeName$}" was not found`);D.member&&!i.isProxied&&(D.watchCallback&&(r.$watchers$=i.watchers),MI(i,r,2),i.isProxied=!0);let d=na("createInstance",r.$tagName$);D.member&&(t.$flags$|=8);try{new i(t)}catch(h){ia(h)}D.member&&(t.$flags$&=-9),D.watchCallback&&(t.$flags$|=128),d(),Dx(t.$lazyInstance$)}else{i=e.constructor;let a=e.localName;customElements.whenDefined(a).then(()=>t.$flags$|=128)}if(D.style&&i&&i.style){let a;typeof i.style=="string"?a=i.style:D.mode&&typeof i.style!="string"&&(t.$modeName$=mj(e),t.$modeName$&&(a=i.style[t.$modeName$]),D.hydrateServerSide&&t.$modeName$&&e.setAttribute("s-mode",t.$modeName$));let d=mI(r,t.$modeName$);if(!_y.has(d)){let h=na("registerStyles",r.$tagName$);!D.hydrateServerSide&&D.shadowDom&&D.shadowDomShim&&r.$flags$&8&&(a=await Promise.resolve().then(()=>(WP(),zP)).then(g=>g.scopeCss(a,d))),wj(d,a,!!(r.$flags$&1)),h()}}}let o=t.$ancestorComponent$,s=()=>Iy(t,!0);D.asyncLoading&&o&&o["s-rc"]?o["s-rc"].push(s):s()},Dx=e=>{D.lazyLoad&&D.connectedCallback&&ys(e,"connectedCallback")},Aj=e=>{if(!(Dt.$flags$&1)){let t=eo(e),r=t.$cmpMeta$,n=na("connectedCallback",r.$tagName$);if(D.hostListenerTargetParent&&Fx(e,t,r.$listeners$,!0),t.$flags$&1)Fx(e,t,r.$listeners$,!1),t?.$lazyInstance$?Dx(t.$lazyInstance$):t?.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Dx(t.$lazyInstance$));else{t.$flags$|=1;let i;if(D.hydrateClientSide&&(i=e.getAttribute(Ix),i)){if(D.shadowDom&&ku&&r.$flags$&1){let o=D.mode?Nx(e.shadowRoot,r,e.getAttribute("s-mode")):Nx(e.shadowRoot,r);e.classList.remove(o+"-h",o+"-s")}pj(e,r.$tagName$,i,t)}if(D.slotRelocation&&!i&&(D.hydrateServerSide||(D.slot||D.shadowDom)&&r.$flags$&12)&&Lj(e),D.asyncLoading){let o=e;for(;o=o.parentNode||o.host;)if(D.hydrateClientSide&&o.nodeType===1&&o.hasAttribute("s-id")&&o["s-p"]||o["s-p"]){CI(t,t.$ancestorComponent$=o);break}}D.prop&&!D.hydrateServerSide&&r.$members$&&Object.entries(r.$members$).map(([o,[s]])=>{if(s&31&&e.hasOwnProperty(o)){let c=e[o];delete e[o],e[o]=c}}),D.initializeNextTick?Ey(()=>cI(e,t,r)):cI(e,t,r)}n()}},Lj=e=>{let t=e["s-cr"]=bn.createComment(D.isDebug?`content-ref (host=${e.localName})`:"");t["s-cn"]=!0,ui(e,t,e.firstChild)},Px=e=>{D.lazyLoad&&D.disconnectedCallback&&ys(e,"disconnectedCallback"),D.cmpDidUnload&&ys(e,"componentDidUnload")},kj=async e=>{if(!(Dt.$flags$&1)){let t=eo(e);D.hostListener&&t.$rmListeners$&&(t.$rmListeners$.map(r=>r()),t.$rmListeners$=void 0),D.lazyLoad?t?.$lazyInstance$?Px(t.$lazyInstance$):t?.$onReadyPromise$&&t.$onReadyPromise$.then(()=>Px(t.$lazyInstance$)):Px(e)}},Oj=(e,t)=>{PI(e),II(e),Dj(e),Rj(e),Uj(e),$j(e),Fj(e),AI(e),LI(e,t),Nj(e)},PI=e=>{let t=e.cloneNode;e.cloneNode=function(r){let n=this,i=D.shadowDom?n.shadowRoot&&ku:!1,o=t.call(n,i?r:!1);if(D.slot&&!i&&r){let s=0,c,a,d=["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(;s<n.childNodes.length;s++)c=n.childNodes[s]["s-nr"],a=d.every(h=>!n.childNodes[s][h]),c&&(D.appendChildSlotFix&&o.__appendChild?o.__appendChild(c.cloneNode(!0)):o.appendChild(c.cloneNode(!0))),a&&o.appendChild(n.childNodes[s].cloneNode(!0))}return o}},II=e=>{e.__appendChild=e.appendChild,e.appendChild=function(t){let r=t["s-sn"]=kI(t),n=Up(this.childNodes,r,this.tagName);if(n){let i=Gx(n,r),o=i[i.length-1],s=ui(o.parentNode,t,o.nextSibling);return Py(this),s}return this.__appendChild(t)}},Nj=e=>{e.__removeChild=e.removeChild,e.removeChild=function(t){if(t&&typeof t["s-sn"]<"u"){let r=Up(this.childNodes,t["s-sn"],this.tagName);if(r){let i=Gx(r,t["s-sn"]).find(o=>o===t);if(i){i.remove(),Py(this);return}}}return this.__removeChild(t)}},Rj=e=>{let t=e.prepend;e.prepend=function(...r){r.forEach(n=>{typeof n=="string"&&(n=this.ownerDocument.createTextNode(n));let i=n["s-sn"]=kI(n),o=Up(this.childNodes,i,this.tagName);if(o){let s=document.createTextNode("");s["s-nr"]=n,o["s-cr"].parentNode.__appendChild(s),n["s-ol"]=s;let a=Gx(o,i)[0];return ui(a.parentNode,n,a.nextSibling)}return n.nodeType===1&&n.getAttribute("slot")&&(n.hidden=!0),t.call(this,n)})}},Dj=e=>{e.append=function(...t){t.forEach(r=>{typeof r=="string"&&(r=this.ownerDocument.createTextNode(r)),this.appendChild(r)})}},$j=e=>{let t=e.insertAdjacentHTML;e.insertAdjacentHTML=function(r,n){if(r!=="afterbegin"&&r!=="beforeend")return t.call(this,r,n);let i=this.ownerDocument.createElement("_"),o;if(i.innerHTML=n,r==="afterbegin")for(;o=i.firstChild;)this.prepend(o);else if(r==="beforeend")for(;o=i.firstChild;)this.append(o)}},Fj=e=>{e.insertAdjacentText=function(t,r){this.insertAdjacentHTML(t,r)}},Uj=e=>{let t=e.insertAdjacentElement;e.insertAdjacentElement=function(r,n){return r!=="afterbegin"&&r!=="beforeend"?t.call(this,r,n):r==="afterbegin"?(this.prepend(n),n):(r==="beforeend"&&this.append(n),n)}},AI=e=>{let t=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(e,"__textContent",t),D.experimentalScopedSlotChanges?Object.defineProperty(e,"textContent",{get(){return" "+$x(this.childNodes).map(i=>{var o,s;let c=[],a=i.nextSibling;for(;a&&a["s-sn"]===i["s-sn"];)(a.nodeType===3||a.nodeType===1)&&c.push((s=(o=a.textContent)==null?void 0:o.trim())!=null?s:""),a=a.nextSibling;return c.filter(d=>d!=="").join(" ")}).filter(i=>i!=="").join(" ")+" "},set(r){$x(this.childNodes).forEach(i=>{let o=i.nextSibling;for(;o&&o["s-sn"]===i["s-sn"];){let s=o;o=o.nextSibling,s.remove()}if(i["s-sn"]===""){let s=this.ownerDocument.createTextNode(r);s["s-sn"]="",ui(i.parentElement,s,i.nextSibling)}else i.remove()})}}):Object.defineProperty(e,"textContent",{get(){var r;let n=Up(this.childNodes,"",this.tagName);return((r=n?.nextSibling)==null?void 0:r.nodeType)===3?n.nextSibling.textContent:n?n.textContent:this.__textContent},set(r){var n;let i=Up(this.childNodes,"",this.tagName);if(((n=i?.nextSibling)==null?void 0:n.nodeType)===3)i.nextSibling.textContent=r;else if(i)i.textContent=r;else{this.__textContent=r;let o=this["s-cr"];o&&ui(this,o,this.firstChild)}}})},LI=(e,t)=>{class r extends Array{item(i){return this[i]}}if(t.$flags$&8){let n=e.__lookupGetter__("childNodes");Object.defineProperty(e,"children",{get(){return this.childNodes.map(i=>i.nodeType===1)}}),Object.defineProperty(e,"childElementCount",{get(){return e.children.length}}),Object.defineProperty(e,"childNodes",{get(){let i=n.call(this);if(!(Dt.$flags$&1)&&eo(this).$flags$&2){let o=new r;for(let s=0;s<i.length;s++){let c=i[s]["s-nr"];c&&o.push(c)}return o}return r.from(i)}})}},$x=e=>{let t=[];for(let r of Array.from(e))r["s-sr"]&&t.push(r),t.push(...$x(r.childNodes));return t},kI=e=>e["s-sn"]||e.nodeType===1&&e.getAttribute("slot")||"",Up=(e,t,r)=>{let n=0,i;for(;n<e.length;n++)if(i=e[n],i["s-sr"]&&i["s-sn"]===t&&i["s-hn"]===r||(i=Up(i.childNodes,t,r),i))return i;return null},Gx=(e,t)=>{let r=[e];for(;(e=e.nextSibling)&&e["s-sn"]===t;)r.push(e);return r},Ft=(e,t)=>{let r={$flags$:t[0],$tagName$:t[1]};D.member&&(r.$members$=t[2]),D.hostListener&&(r.$listeners$=t[3]),D.watchCallback&&(r.$watchers$=e.$watchers$),D.reflect&&(r.$attrsToReflect$=[]),D.shadowDom&&!ku&&r.$flags$&1&&(r.$flags$|=8),D.experimentalSlotFixes?D.scoped&&r.$flags$&2&&Oj(e.prototype,r):(D.slotChildNodesFix&&LI(e.prototype,r),D.cloneNodeFix&&PI(e.prototype),D.appendChildSlotFix&&II(e.prototype),D.scopedSlotTextContentFix&&r.$flags$&2&&AI(e.prototype));let n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){VG(this,r)},connectedCallback(){let o=eo(this);Fx(this,o,r.$listeners$,!1),Aj(this),D.connectedCallback&&n&&n.call(this)},disconnectedCallback(){kj(this),D.disconnectedCallback&&i&&i.call(this)},__attachShadow(){if(ku){if(!this.shadowRoot)D.shadowDelegatesFocus?this.attachShadow({mode:"open",delegatesFocus:!!(r.$flags$&16)}):this.attachShadow({mode:"open"});else if(this.shadowRoot.mode!=="open")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 this.shadowRoot=this}}),e.is=r.$tagName$,MI(e,r,3)},OI=(e,t)=>t,Fx=(e,t,r,n)=>{D.hostListener&&r&&(D.hostListenerTargetParent&&(n?r=r.filter(([i])=>i&32):r=r.filter(([i])=>!(i&32))),r.map(([i,o,s])=>{let c=D.hostListenerTarget?zj(e,i):e,a=Vj(t,s),d=Wj(i);Dt.ael(c,o,a,d),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>Dt.rel(c,o,a,d))}))},Vj=(e,t)=>r=>{var n;try{D.lazyLoad?e.$flags$&256?(n=e.$lazyInstance$)==null||n[t](r):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,r]):e.$hostElement$[t](r)}catch(i){ia(i)}},zj=(e,t)=>D.hostListenerTargetDocument&&t&4?bn:D.hostListenerTargetWindow&&t&8?Vp:D.hostListenerTargetBody&&t&16?bn.body:D.hostListenerTargetParent&&t&32&&e.parentElement?e.parentElement:e,Wj=e=>JG?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0});function DI(){if(wg&&wg.version)return;console.info(`Using Calcite Components ${NI} [Date: ${Gj}, Revision: ${jj}]`);let e=wg||globalThis.calciteConfig||{};Object.defineProperty(e,"version",{value:NI,writable:!1}),globalThis.calciteConfig=e}var wg,RI,Bj,Pme,NI,Gj,jj,jx=V(()=>{Wt();wg=globalThis.calciteConfig,RI=wg?.focusTrapStack||[],Bj=Lu.isTesting&&Lu.isBrowser,Pme=wg?.logLevel||(Bj?"error":"info"),NI="2.13.0",Gj="2024-10-01",jj="42c132913"});var vn,oa=V(()=>{Wt();vn=()=>Lu.isBrowser&&typeof navigator<"u"&&typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document});function $I(){let{classList:e}=document.body,t=window.matchMedia("(prefers-color-scheme: dark)").matches,r=()=>e.contains(vx)||e.contains(bx)&&t?"dark":"light",n=s=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:s}})),i=s=>{o!==s&&n(s),o=s},o=r();n(o),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",s=>i(s.matches?"dark":"light")),new MutationObserver(()=>i(r())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}function Hj(){vn()&&(document.readyState==="interactive"?$I():document.addEventListener("DOMContentLoaded",()=>$I(),{once:!0})),DI()}var qj,FI=V(()=>{Np();jx();oa();Wt();qj=Hj;qj()});function VI(){try{Ou(".")}catch{Ux(Mc(Ip(UI)))}}function zI(e){let t=[];for(let r of Object.keys(e))customElements.get(`calcite-${r}`)||t.push(e[r]?.());return t.length>0?Promise.all(t):null}var UI,Hx=V(()=>{FI();Kw();et();Ic();UI="components/assets"});var Ay,Ly,qx=V(()=>{Ay=Symbol("widget"),Ly=Symbol("widget-test-data")});function Zx(e,t){let r=t.children;if(r?.length)for(let i=0;i<r.length;++i)r[i]=Zx(e,r[i]);else r=Zj;let n=t.vnodeSelector;if(zp(n)){let i=t.properties||Yj,o=i.key||n,s={key:o,afterCreate:Jj,afterUpdate:Xj,afterRemoved:WI,parentWidget:e,widgetConstructor:n,widgetProperties:{...i,key:o,children:r}};return{vnodeSelector:n.vnodeSelector,properties:s,children:void 0,text:void 0,domNode:null}}return t}function Jj(e,t,r,{parentWidget:n,widgetConstructor:i,widgetProperties:o}){let s=new i(o);s.container=e,ky.set(e,s),s.afterCreate?.(s,e),n.addHandles(Ct(()=>WI(e))),queueMicrotask(()=>{s[Ly].projector.renderNow()})}function Xj(e,t,r,{widgetProperties:n}){let i=ky.get(e);i&&(i.set(n),i.afterUpdate?.(i,e))}function WI(e){let t=ky.get(e);t&&(t.afterRemoved?.(t,e),t.destroy(),ky.delete(e))}function zp(e){return typeof e=="function"&&e[Ay]}var Zj,Yj,ky,Yx=V(()=>{oi();qx();Zj=[],Yj={},ky=new WeakMap});function GI(e){BI.add(e),e.finally(()=>BI.delete(e))}var BI,jI=V(()=>{BI=new Set});function qI(e,t){let r=Object.prototype.hasOwnProperty;for(let n in t)r.call(t,n)&&r.call(e,n)&&(e[n]!=null&&t[n]!=null&&typeof e[n]=="object"&&typeof t[n]=="object"?qI(e[n],t[n]):e[n]=t[n]);return e}var HI,Kj,Qj,eH,Jx,Pr,ZI,YI=V(()=>{pt();JS();OM();Hw();qh();et();or();tt();vc();RM();ko();ix();qM();mt();ug();ut();bu();MS();NP();Hx();Yx();qx();jI();lx();dy();gc();cg();Kj="esri.widgets.Widget",Qj=0;eH=OP({postProcessProjectionOptions(e){let t=e.eventHandlerInterceptor,r=/capture$/i;e.eventHandlerInterceptor=(n,i,o,s)=>{let c=t?.(n,i,o,s),a=r.test(n);if(!((n=n.replace(r,"")).toLowerCase()in o)||a){let d=n[2].toLowerCase()+n.slice(3),h=S=>c?.call(o,S);o.addEventListener(d,h,a);let g=()=>o.removeEventListener(d,h,a),v=s.afterRemoved;s.afterRemoved=S=>{v?.(S),g()}}return c}},handleInterceptedEvent(e,t,r,n){let{eventPhase:i,type:o}=n,s=i===Event.CAPTURING_PHASE,c=`on${o}${s?"capture":""}`,a=t.properties;(a&&c in a||(c=`on${o[0].toUpperCase()}${o.slice(1)}${s?"Capture":""}`,a&&c in a))&&(ly(),e.scheduleRender(),a[c].call(a.bind||r,n))}}),Jx=!1,Pr=class extends KS(xu.EventedAccessor){constructor(e,t){super(e,t),this._attached=!1,this._projector=eH,this._readyForTrueRender=!1,this.key=this,this.autoRenderingEnabled=!0,this._loadLocale=C8(async()=>{if(this._messageBundleProps?.length){let c=await Promise.allSettled(this._messageBundleProps.map(async({bundlePath:a,propertyName:d})=>{if(this.destroyed)return;let h=await qS(a);this.uiStrings&&Object.keys(this.uiStrings)&&(h=qI(qe(h),this.uiStrings)),this[d]=h}));if(this.destroyed)return;for(let a of c)a.status==="rejected"&&ct.getLogger(this).error("widget-intl:locale-error",this.declaredClass,a.reason)}await this.loadLocale()}),VI();let r="esri-widget-uid-"+HM(),n=this.render.bind(this);this._trackingTarget=new vu(()=>{this.autoRenderingEnabled&&this.scheduleRender()});let i=()=>({vnodeSelector:"div",properties:{key:`${r}-hidden`,class:"",styles:{display:"none"}},domNode:null,children:void 0,text:void 0}),o=()=>{var h;if(!this._readyForTrueRender||this.destroyed)return null;let c=n()??i(),a=c.properties??(c.properties={});if(a.key??(a.key=r),zp(c.vnodeSelector)){if(!this.visible)return i()}else this.visible?a.styles||(a.styles={}):(a.class="",a.styles={display:"none"}),(h=a.styles).display??(h.display="");let d=0;return c.children?.forEach(g=>{var v;zp(g.vnodeSelector)||(g.properties??(g.properties={}),(v=g.properties).key??(v.key=`${this.id}--${d++}`))}),Zx(this,c)};this.render=()=>{if(Jx)return o();let c=mP(this)??null;if(c)return c;this._trackingTarget.clear(),Jx=!0;try{c=Ao(this._trackingTarget,o)}catch(a){throw ct.getLogger(this).error(a),a}finally{Jx=!1}return c&&hP(this,c),c};let s=this.beforeFirstRender();s?this._resourcesFetch=s.then(()=>{this._readyForTrueRender=!0,this._postInitialize()}):(this._resourcesFetch=Promise.resolve().then(()=>{this._postInitialize()}),this._readyForTrueRender=!0),this.addResolvingPromise(this._resourcesFetch),GI(this._resourcesFetch)}normalizeCtorArgs(e,t){let r={...e};return t&&(r.container=t),r}postInitialize(){}beforeFirstRender(){let e=this.loadDependencies();return this._messageBundleProps?.length||e?Promise.all([e,this._loadLocale()]).then(()=>{}).catch(_S):null}loadDependencies(){return null}loadLocale(){return null}destroy(){this.destroyed||(Vh(this._trackingTarget),Vh(this.viewModel),this._detach(this.container),this._set("container",null),this._emitter.clear(),this.render=()=>null,this._projector=null,uy(this))}set container(e){this._get("container")||this._set("container",e)}castContainer(e){return kM(e)}get domNode(){return this.container}set domNode(e){this.container=e}get icon(){return null}set icon(e){this._overrideIfSome("icon",e)}get id(){return this._get("id")||this.container?.id||Date.now().toString(16)+"-widget-"+Qj++}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[(HI=Ay,Ly)](){return{projector:this._projector}}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||(uy(this),this._projector.scheduleRender())}classes(...e){return gP.apply(this,e)}renderNow(){uy(this),this._projector.renderNow()}_postInitialize(){if(this.destroyed)return;this.scheduleRender(),this._delegatedEventNames?.length&&this.addHandles(lg(()=>this.viewModel,(t,r)=>{r&&this.removeHandles("delegated-events"),t&&Hh(t)&&this.addHandles(this._delegatedEventNames.map(n=>Sc(t,n,i=>{this.emit(n,i)})),"delegated-events")},ey)),this.postInitialize();let e=async()=>{await this._loadLocale().catch(_S),this.scheduleRender()};this.addHandles([$_(e),lg(()=>this.uiStrings,e),GM(()=>this.container,t=>{this.destroyed||this._attach(t)},{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)}};Pr[HI]=!0,Pr.vnodeSelector="div",N([z()],Pr.prototype,"_readyForTrueRender",void 0),N([z({value:null})],Pr.prototype,"container",null),N([ea("container")],Pr.prototype,"castContainer",null),N([z()],Pr.prototype,"icon",null),N([z()],Pr.prototype,"id",null),N([z()],Pr.prototype,"label",null),N([z()],Pr.prototype,"renderable",null),N([z()],Pr.prototype,"uiStrings",void 0),N([z()],Pr.prototype,"viewModel",void 0),N([z({value:!0})],Pr.prototype,"visible",null),N([z()],Pr.prototype,"key",void 0),N([z()],Pr.prototype,"children",void 0),N([z()],Pr.prototype,"afterCreate",void 0),N([z()],Pr.prototype,"afterUpdate",void 0),N([z()],Pr.prototype,"afterRemoved",void 0),Pr=N([Ie(Kj)],Pr);ZI=Pr});function Xx(e){return(t,r)=>{t.hasOwnProperty("_messageBundleProps")||(t._messageBundleProps=t._messageBundleProps?t._messageBundleProps.slice():[]),t._messageBundleProps.push({bundlePath:e,propertyName:r})}}var JI=V(()=>{});function Pi(e,t,...r){return typeof e!="function"||zp(e)?rH(e,t,...r):e(t,...r)}var tH,XI,rH,KI=V(()=>{Yx();tH=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},XI=function(e,t){for(var r=0,n=e.length;r<n;r++){var i=e[r];Array.isArray(i)?XI(i,t):i!=null&&i!==!1&&(i.hasOwnProperty("vnodeSelector")||(i=tH(i)),t.push(i))}},rH=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(r.length===1&&typeof r[0]=="string")return{vnodeSelector:e,properties:t||void 0,children:void 0,text:r[0],domNode:null};var i=[];return XI(r,i),{vnodeSelector:e,properties:t||void 0,children:i,text:void 0,domNode:null}}});function iH(){return getComputedStyle(document.body).getPropertyValue("--esri-calcite-mode-name").replaceAll(/\s|'|"/g,"")}function oH(){return iH().startsWith("dark")}function QI(){return`${nH}${oH()?"dark":"light"}`}var nH,eA=V(()=>{nH="calcite-mode-"});function sH(e){return e.map(t=>{let r="";for(let n=0;n<t;n++)r+=((1+Math.random())*65536|0).toString(16).substring(1);return r}).join("-")}var sa,Wp=V(()=>{sa=()=>sH([2,1,1,1,3])});function Fc(e){let t="dir",r=`[${t}]`,n=Do(e,r);return n?n.getAttribute(t):"ltr"}function uA(e){return e.getRootNode()}function dA(e){return e.host||null}function Du(e,{selector:t,id:r}){if(!e)return null;e.assignedSlot&&(e=e.assignedSlot);let n=uA(e);return(r?"getElementById"in n?n.getElementById(r):null:t?n.querySelector(t):null)||Du(dA(n),{selector:t,id:r})}function Do(e,t){return e?e.closest(t)||Do(dA(uA(e)),t):null}function SH(e,t){return fA(e,t)}function fA(e,t){if(!e)return;let r=t(e);if(r!==void 0)return r;let{parentNode:n}=e;return fA(n instanceof ShadowRoot?n.host:n,t)}function pA(e,t){return!!SH(t,r=>r===e?!0:void 0)}function xH(e){return typeof e?.setFocus=="function"}async function Fy(e){if(e)return xH(e)?e.setFocus():e.focus()}function CH(e){if(e)return Qx(e,e4)[0]??e}function Bp(e){CH(e)?.focus()}function Uy(e,t,r){t&&!Array.isArray(t)&&typeof t!="string"&&(r=t,t=null);let n=t?Array.isArray(t)?t.map(i=>`[slot="${i}"]`).join(","):`[slot="${t}"]`:yg;return r?.all?TH(e,n,r):EH(e,n,r)}function mA(e,t){return e?Array.from(e.children||[]).filter(r=>r?.matches(t)):[]}function TH(e,t,r){let n=t===yg?mA(e,yg):Array.from(e.querySelectorAll(t));n=r&&r.direct===!1?n:n.filter(o=>o.parentElement===e),n=r?.matches?n.filter(o=>o?.matches(r.matches)):n;let i=r?.selector;return i?n.map(o=>Array.from(o.querySelectorAll(i))).reduce((o,s)=>[...o,...s],[]).filter(o=>!!o):n}function EH(e,t,r){let n=t===yg?mA(e,yg)[0]||null:e.querySelector(t);n=r&&r.direct===!1||n?.parentElement===e?n:null,n=r?.matches?n?.matches(r.matches)?n:null:n;let i=r?.selector;return i?n?.querySelector(i):n}function MH(e,t){return e.filter(r=>r.matches(t))}function aa(e,t,r){if(typeof t=="string"&&t!=="")return t;if(t==="")return e[r]}function Ir(e){return(!!e).toString()}function hA(e){return Ii(e)||IH(e)}function PH(e){return AH(e).filter(t=>t.nodeType===Node.TEXT_NODE).map(t=>t.textContent).join("").trim()}function IH(e){return!!PH(e)}function AH(e){return e.currentTarget.assignedNodes({flatten:!0})}function Ii(e){return!!Vy(e).length}function Vy(e,t){return LH(e.target,t)}function LH(e,t){let r=e.assignedElements({flatten:!0});return t?MH(r,t):r}function gA(e){return!!(e.isPrimary&&e.button===0)}function wA(e){return e.detail===0}function yA(e,t){if(e.parentNode!==t.parentNode)return!1;let r=Array.from(e.parentNode.children);return r.indexOf(e)<r.indexOf(t)}async function bA(e,t,r,n){return kH(e,t,"transition",r,n)}async function kH(e,t,r,n,i){let o=window.getComputedStyle(e),s=r==="transition"?o.transitionDuration:o.animationDuration,c=r==="transition"?o.transitionProperty:o.animationName,a=s.split(","),h=c.split(",").map(R=>R.trim()).indexOf(t),g=a[h]??a[0];function v(){requestAnimationFrame(()=>{n?.(),requestAnimationFrame(()=>i?.())})}if(g==="0s"){v();return}let S=r==="transition"?"transitionstart":"animationstart",M=r==="transition"?"transitionend":"animationend",I=r==="transition"?"transitioncancel":"animationcancel";return new Promise(R=>{let B=window.setTimeout(()=>{e.removeEventListener(S,F),e.removeEventListener(M,G),e.removeEventListener(I,G),v(),R()},parseFloat(g)*1e3);e.addEventListener(S,F),e.addEventListener(M,G),e.addEventListener(I,G);function F(J){J.target===e&&rA(J)===t&&(window.clearTimeout(B),e.removeEventListener(S,F),n?.())}function G(J){J.target===e&&rA(J)===t&&(e.removeEventListener(M,G),e.removeEventListener(I,G),i?.(),R())}})}function OH(e){return"propertyName"in e}function rA(e){return OH(e)?e.propertyName:e.animationName}var nA,Oy,iA,Nu,Ny,Ry,aH,oA,sA,aA,$c,cH,lH,cA,uH,dH,fH,pH,mH,hH,gH,tA,wH,yH,Dy,Kx,bH,vH,Qx,lA,Ru,_H,$y,e4,yg,jr=V(()=>{Wp();Np();nA=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Oy=nA.join(","),iA=typeof Element>"u",Nu=iA?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ny=!iA&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},Ry=function e(t,r){var n;r===void 0&&(r=!0);var i=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),o=i===""||i==="true",s=o||r&&t&&e(t.parentNode);return s},aH=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},oA=function(t,r,n){if(Ry(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Oy));return r&&Nu.call(t,Oy)&&i.unshift(t),i=i.filter(n),i},sA=function e(t,r,n){for(var i=[],o=Array.from(t);o.length;){var s=o.shift();if(!Ry(s,!1))if(s.tagName==="SLOT"){var c=s.assignedElements(),a=c.length?c:s.children,d=e(a,!0,n);n.flatten?i.push.apply(i,d):i.push({scopeParent:s,candidates:d})}else{var h=Nu.call(s,Oy);h&&n.filter(s)&&(r||!t.includes(s))&&i.push(s);var g=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),v=!Ry(g,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(g&&v){var S=e(g===!0?s.children:g.children,!0,n);n.flatten?i.push.apply(i,S):i.push({scopeParent:s,candidates:S})}else o.unshift.apply(o,s.children)}}return i},aA=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},$c=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||aH(t))&&!aA(t)?0:t.tabIndex},cH=function(t,r){var n=$c(t);return n<0&&r&&!aA(t)?0:n},lH=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},cA=function(t){return t.tagName==="INPUT"},uH=function(t){return cA(t)&&t.type==="hidden"},dH=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},fH=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},pH=function(t){if(!t.name)return!0;var r=t.form||Ny(t),n=function(c){return r.querySelectorAll('input[type="radio"][name="'+c+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(t.name));else try{i=n(t.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var o=fH(i,t.form);return!o||o===t},mH=function(t){return cA(t)&&t.type==="radio"},hH=function(t){return mH(t)&&!pH(t)},gH=function(t){var r,n=t&&Ny(t),i=(r=n)===null||r===void 0?void 0:r.host,o=!1;if(n&&n!==t){var s,c,a;for(o=!!((s=i)!==null&&s!==void 0&&(c=s.ownerDocument)!==null&&c!==void 0&&c.contains(i)||t!=null&&(a=t.ownerDocument)!==null&&a!==void 0&&a.contains(t));!o&&i;){var d,h,g;n=Ny(i),i=(d=n)===null||d===void 0?void 0:d.host,o=!!((h=i)!==null&&h!==void 0&&(g=h.ownerDocument)!==null&&g!==void 0&&g.contains(i))}}return o},tA=function(t){var r=t.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},wH=function(t,r){var n=r.displayCheck,i=r.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=Nu.call(t,"details>summary:first-of-type"),s=o?t.parentElement:t;if(Nu.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof i=="function"){for(var c=t;t;){var a=t.parentElement,d=Ny(t);if(a&&!a.shadowRoot&&i(a)===!0)return tA(t);t.assignedSlot?t=t.assignedSlot:!a&&d!==t.ownerDocument?t=d.host:t=a}t=c}if(gH(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return tA(t);return!1},yH=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var i=r.children.item(n);if(i.tagName==="LEGEND")return Nu.call(r,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}r=r.parentElement}return!1},Dy=function(t,r){return!(r.disabled||Ry(r)||uH(r)||wH(r,t)||dH(r)||yH(r))},Kx=function(t,r){return!(hH(r)||$c(r)<0||!Dy(t,r))},bH=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},vH=function e(t){var r=[],n=[];return t.forEach(function(i,o){var s=!!i.scopeParent,c=s?i.scopeParent:i,a=cH(c,s),d=s?e(i.candidates):c;a===0?s?r.push.apply(r,d):r.push(c):n.push({documentOrder:o,tabIndex:a,item:i,isScope:s,content:d})}),n.sort(lH).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},Qx=function(t,r){r=r||{};var n;return r.getShadowRoot?n=sA([t],r.includeContainer,{filter:Kx.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:bH}):n=oA(t,r.includeContainer,Kx.bind(null,r)),vH(n)},lA=function(t,r){r=r||{};var n;return r.getShadowRoot?n=sA([t],r.includeContainer,{filter:Dy.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=oA(t,r.includeContainer,Dy.bind(null,r)),n},Ru=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return Nu.call(t,Oy)===!1?!1:Kx(r,t)},_H=nA.concat("iframe").join(","),$y=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return Nu.call(t,_H)===!1?!1:Dy(r,t)},e4={getShadowRoot:!0};yg=":not([slot])"});function RH(e){return`${e.split("-").map((n,i)=>i===0?n:`${n[0].toUpperCase()}${n.slice(1)}`).join("")}${NH.includes(e)?"Input":"Change"}`}function n4(e){return"checked"in e}function DH(e,t){if(Do(t.parentElement,"[form]"))return!0;let n="calciteInternalFormComponentRegister",i=!1;return e.addEventListener(n,o=>{i=o.composedPath().some(s=>i4.has(s)),o.stopPropagation()},{once:!0}),t.dispatchEvent(new CustomEvent(n,{bubbles:!0,composed:!0})),i}function $H(e,{status:t,message:r,icon:n}){"status"in e&&(e.status=t),"validationIcon"in e&&typeof e.validationIcon!="string"&&(e.validationIcon=n),"validationMessage"in e&&!e.validationMessage&&(e.validationMessage=r)}function xA(e){return e.nodeName==="CALCITE-RADIO-BUTTON"?Do(e,"calcite-radio-button-group"):e}function vA(e){let t=e?.target,r=t?.validationMessage,n=xA(t?.parentElement);if(!n)return;let i=n?.nodeName?.toLowerCase(),o=i?.split("-");if(o.length<2||o[0]!=="calcite")return;e?.preventDefault(),"validity"in n&&(n.validity=t?.validity),n.dispatchEvent(FH),$H(n,{message:r,icon:!0,status:"invalid"});let s=RH(i);n.addEventListener(s,()=>{"status"in n&&(n.status="idle"),"validationIcon"in n&&!n.validationIcon&&(n.validationIcon=!1),"validationMessage"in n&&n.validationMessage===r&&(n.validationMessage=""),"validity"in n&&(n.validity=t?.validity)},{once:!0})}function zy(e){let{formEl:t}=e;return t?(t.addEventListener("invalid",vA,!0),t.requestSubmit(),t.removeEventListener("invalid",vA,!0),requestAnimationFrame(()=>{let r=t.querySelectorAll("[status=invalid]");for(let n of r)if(n?.validationMessage){n?.setFocus();break}}),!0):!1}function CA(e){e.formEl?.reset()}function TA(e){let{el:t,value:r}=e,n=o4(e);if(!n||DH(n,t))return;e.formEl=n,e.defaultValue=r,n4(e)&&(e.defaultChecked=e.checked);let i=(e.onFormReset||UH).bind(e);n.addEventListener("reset",i),r4.set(e.el,i),i4.add(t)}function o4(e){let{el:t,form:r}=e;return r?Du(t,{id:r}):Do(t,"form")}function UH(){if("status"in this&&(this.status="idle"),"validationIcon"in this&&(this.validationIcon=!1),"validationMessage"in this&&(this.validationMessage=""),n4(this)){this.checked=this.defaultChecked;return}this.value=this.defaultValue}function EA(e){let{el:t,formEl:r}=e;if(!r)return;let n=r4.get(t);r.removeEventListener("reset",n),r4.delete(t),e.formEl=null,i4.delete(t)}function VH(e){let{el:t,formEl:r,name:n,value:i}=e,{ownerDocument:o}=t,s=t.querySelectorAll(`input[slot="${t4}"]`);if(!r||!n){s.forEach(g=>{_A(g),g.remove()});return}let c=Array.isArray(i)?i:[i],a=[],d=new Set;s.forEach(g=>{let v=c.find(S=>S==g.value);v!=null?(d.add(v),SA(e,g,v)):a.push(g)});let h;c.forEach(g=>{if(d.has(g))return;let v=a.pop();v||(v=o.createElement("input"),v.slot=t4),h||(h=o.createDocumentFragment()),h.append(v),v.addEventListener("input",MA),SA(e,v,g)}),h&&t.append(h),a.forEach(g=>{_A(g),g.remove()})}function SA(e,t,r){let{defaultValue:n,disabled:i,form:o,name:s,required:c}=e;t.defaultValue=n,t.disabled=i,t.name=s,t.required=c,t.tabIndex=-1,o?t.setAttribute("form",o):t.removeAttribute("form"),n4(e)?(t.checked=e.checked,t.defaultChecked=e.defaultChecked,t.value=e.checked?r||"on":""):t.value=r||"",e.syncHiddenFormInput?.(t);let a=xA(e.el);if(a&&"validity"in a)for(let d in{...t?.validity})a.validity[d]=t.validity[d]}var NH,t4,r4,i4,FH,Wy,MA,_A,PA,s4=V(()=>{Wt();jr();NH=["calcite-input","calcite-input-number","calcite-input-text","calcite-text-area"];t4="hidden-form-input";r4=new WeakMap,i4=new WeakSet;FH=new CustomEvent("calciteInvalid",{bubbles:!0,composed:!0});Wy="calciteInternalHiddenInputInput",MA=e=>{e.target.dispatchEvent(new CustomEvent(Wy,{bubbles:!0}))},_A=e=>e.removeEventListener("input",MA);PA=({component:e})=>(VH(e),X("slot",{name:t4}))});function zH(){let{disabled:e}=this;e||HTMLElement.prototype.click.call(this)}function IA(e){e.target.disabled&&e.preventDefault()}function LA(e){e.target.disabled&&(e.stopImmediatePropagation(),e.preventDefault())}function Uc(e){if(e.disabled){e.el.setAttribute("aria-disabled","true"),e.el.contains(document.activeElement)&&document.activeElement.blur(),WH(e);return}GH(e),e.el.removeAttribute("aria-disabled")}function WH(e){e.el.click=zH,BH(e.el)}function BH(e){e.addEventListener("pointerdown",IA,By),AA.forEach(t=>e.addEventListener(t,LA,By))}function GH(e){delete e.el.click,jH(e.el)}function jH(e){e.removeEventListener("pointerdown",IA,By),AA.forEach(t=>e.removeEventListener(t,LA,By))}var AA,By,HH,Vc,bg=V(()=>{Wt();AA=["mousedown","mouseup","click"];By={capture:!0};HH={container:"interaction-container"},Vc=({disabled:e},t)=>X("div",{class:HH.container,inert:e},...t)});function On(e){return e==="l"?"m":"s"}async function Gy(e){await(qH(e)?e.componentOnReady():new Promise(t=>requestAnimationFrame(()=>t())))}function qH(e){return typeof e.componentOnReady=="function"}var zc=V(()=>{});function YH(e,t){let r,n="custom-element-ancestor-check",i=s=>{s.stopImmediatePropagation();let c=s.composedPath();r=c.slice(c.indexOf(t),c.indexOf(e))};return e.addEventListener(n,i,{once:!0}),t.dispatchEvent(new CustomEvent(n,{composed:!0,bubbles:!0})),e.removeEventListener(n,i),r.filter(s=>s!==t&&s!==e).filter(s=>s.tagName?.includes("-")).length>0}function jp(e){if(!e)return;let t=ZH(e.el);if(vg.has(t)&&t===e.labelEl||!t&&$u.has(e))return;let r=XH.bind(e);if(t){e.labelEl=t;let n=Gp.get(t)||[];n.push(e),Gp.set(t,n.sort(RA)),vg.has(e.labelEl)||(vg.set(e.labelEl,OA),e.labelEl.addEventListener(NA,OA)),$u.delete(e),document.removeEventListener(xg,Sg.get(e)),jy.set(e,r),document.addEventListener(_g,r)}else $u.has(e)||(r(),document.removeEventListener(_g,jy.get(e)))}function Hy(e){if(!e||($u.delete(e),document.removeEventListener(xg,Sg.get(e)),document.removeEventListener(_g,jy.get(e)),Sg.delete(e),jy.delete(e),!e.labelEl))return;let t=Gp.get(e.labelEl);t.length===1&&(e.labelEl.removeEventListener(NA,vg.get(e.labelEl)),vg.delete(e.labelEl)),Gp.set(e.labelEl,t.filter(r=>r!==e).sort(RA)),e.labelEl=null}function RA(e,t){return yA(e.el,t.el)?-1:1}function Cg(e){return e.label||e.labelEl?.textContent?.trim()||""}function OA(e){let t=e.detail.sourceEvent.target,r=Gp.get(this),n=r.find(s=>s.el===t);if(r.includes(n))return;let o=r[0];o.disabled||o.onLabelClick(e)}function JH(){$u.has(this)&&jp(this)}function XH(){$u.add(this);let e=Sg.get(this)||JH.bind(this);Sg.set(this,e),document.addEventListener(xg,e)}async function DA(e){if(await Gy(e),Gp.has(e))return;let r=e.ownerDocument?.getElementById(e.for);r&&requestAnimationFrame(()=>{for(let n of $u)if(n.el===r){jp(n);break}})}var NA,xg,_g,kA,Gp,vg,Sg,jy,$u,ZH,qy=V(()=>{jr();zc();NA="calciteInternalLabelClick",xg="calciteInternalLabelConnected",_g="calciteInternalLabelDisconnected",kA="calcite-label",Gp=new WeakMap,vg=new WeakMap,Sg=new WeakMap,jy=new WeakMap,$u=new Set,ZH=e=>{let{id:t}=e,r=t&&Du(e,{selector:`${kA}[for="${t}"]`});if(r)return r;let n=Do(e,kA);return!n||YH(n,e)?null:n}});function Nn(e){FA.set(e,new Promise(t=>$A.set(e,t)))}function Rn(e){$A.get(e)()}function KH(e){return FA.get(e)}async function Dn(e){if(await KH(e),!!vn())return to(e),new Promise(t=>requestAnimationFrame(()=>t()))}var $A,FA,ca=V(()=>{Wt();oa();$A=new WeakMap,FA=new WeakMap});function Zy(e){return e==="Enter"||e===" "}var Tg,Eg=V(()=>{Tg=["0","1","2","3","4","5","6","7","8","9"]});function yr(e,t,r){if(!vn())return;let n=QH(e);return new n(t,r)}function QH(e){class t extends window.MutationObserver{constructor(n){super(n),this.observedEntry=[],this.callback=n}observe(n,i){return this.observedEntry.push({target:n,options:i}),super.observe(n,i)}unobserve(n){let i=this.observedEntry.filter(o=>o.target!==n);this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),i.forEach(o=>this.observe(o.target,o.options))}}return function(){return e==="intersection"?window.IntersectionObserver:e==="mutation"?t:window.ResizeObserver}()}var $o=V(()=>{oa();});function Fo(e){return!(!e||isNaN(Number(e)))}function UA(e){return!e||!cq(e)?"":Yy(e,t=>{let r=!1,n=t.split("").filter((i,o)=>i.match(/\./g)&&!r?(r=!0,!0):i.match(/-/g)&&o===0?!0:Tg.includes(i)).join("");return Fo(n)?new $n(n).toString():""})}function sq(e){let t=e.split(".")[1],r=new $n(e).toString(),[n,i]=r.split(".");return t&&i!==t?`${n}.${t}`:r}function Yy(e,t){if(!e)return e;let r=e.toLowerCase().indexOf("e")+1;return r?e.replace(/[eE]*$/g,"").substring(0,r).concat(e.slice(r).replace(/[eE]/g,"")).split(/[eE]/).map((n,i)=>t(i===1?n.replace(/\./g,""):n)).join("e").replace(/^e/,"1e"):t(e)}function aq(e){let t=e.split(/[eE]/);if(t.length===1)return e;let r=+e;if(Number.isSafeInteger(r))return`${r}`;let n=e.charAt(0)==="-",i=+t[1],o=t[0].split("."),s=(n?o[0].substring(1):o[0])||"",c=o[1]||"",a=(g,v)=>{let S=Math.abs(v)-g.length,M=S>0?`${"0".repeat(S)}${g}`:g;return`${M.slice(0,v)}.${M.slice(v)}`},d=(g,v)=>{let S=v>g.length?`${g}${"0".repeat(v-g.length)}`:g;return`${S.slice(0,v)}.${S.slice(v)}`},h=i>0?`${s}${d(c,i)}`:`${a(s,i)}${c}`;return`${n?"-":""}${h.charAt(0)==="."?"0":""}${h.replace(eq,"").replace(VA,"")}`}function cq(e){return Tg.some(t=>e.includes(t))}function WA(e,t,r){let n=t.split(".")[1];if(n){let i=n.match(oq)[0];if(i&&r.delocalize(e).length!==t.length&&n.indexOf("e")===-1){let o=r.decimal;return e=e.includes(o)?e:`${e}${o}`,e.padEnd(e.length+i.length,r.localize("0"))}}return e}function l4(e,t="cldr"){let r=t==="cldr"?uq:lq;return e?r.includes(e)?e:(e=e.toLowerCase(),e==="nb"?"no":t==="t9n"&&e==="pt"?"pt-BR":(e.includes("-")&&(e=e.replace(/(\w+)-(\w+)/,(n,i,o)=>`${i}-${o.toUpperCase()}`),r.includes(e)||(e=e.split("-")[0])),e==="zh"?"zh-CN":r.includes(e)?e:(console.warn(`Translations for the "${e}" locale are not available and will fall back to the default, English (en).`),Wc))):Wc}function cn(e){pq(e),Mg.size===0&&jA?.observe(document.documentElement,{attributes:!0,attributeFilter:["lang"],subtree:!0}),Mg.add(e)}function pq(e){e.effectiveLocale=mq(e)}function ln(e){Mg.delete(e),Mg.size===0&&jA.disconnect()}function mq(e){return e.el.lang||Do(e.el,"[lang]")?.lang||document.documentElement.lang||Wc}var eq,tq,$n,VA,rq,nq,iq,oq,zA,Wc,lq,uq,dq,BA,a4,GA,fq,Mg,jA,c4,Uo,Vo=V(()=>{jr();Eg();$o();eq=new RegExp("\\.(0+)?$"),tq=new RegExp("0+$"),$n=class e{constructor(t){if(t instanceof e)return t;let[r,n]=aq(t).split(".").concat("");this.value=BigInt(r+n.padEnd(e.DECIMALS,"0").slice(0,e.DECIMALS))+BigInt(e.ROUNDED&&n[e.DECIMALS]>="5"),this.isNegative=t.charAt(0)==="-"}getIntegersAndDecimals(){let t=this.value.toString().replace("-","").padStart(e.DECIMALS+1,"0"),r=t.slice(0,-e.DECIMALS),n=t.slice(-e.DECIMALS).replace(tq,"");return{integers:r,decimals:n}}toString(){let{integers:t,decimals:r}=this.getIntegersAndDecimals();return`${this.isNegative?"-":""}${t}${r.length?"."+r:""}`}formatToParts(t){let{integers:r,decimals:n}=this.getIntegersAndDecimals(),i=t.numberFormatter.formatToParts(BigInt(r));return this.isNegative&&i.unshift({type:"minusSign",value:t.minusSign}),n.length&&(i.push({type:"decimal",value:t.decimal}),n.split("").forEach(o=>i.push({type:"fraction",value:o}))),i}format(t){let{integers:r,decimals:n}=this.getIntegersAndDecimals(),i=`${this.isNegative?t.minusSign:""}${t.numberFormatter.format(BigInt(r))}`,o=n.length?`${t.decimal}${n.split("").map(s=>t.numberFormatter.format(Number(s))).join("")}`:"";return`${i}${o}`}add(t){return e.fromBigInt(this.value+new e(t).value)}subtract(t){return e.fromBigInt(this.value-new e(t).value)}multiply(t){return e._divRound(this.value*new e(t).value,e.SHIFT)}divide(t){return e._divRound(this.value*e.SHIFT,new e(t).value)}};$n.DECIMALS=100;$n.ROUNDED=!0;$n.SHIFT=BigInt("1"+"0".repeat($n.DECIMALS));$n._divRound=(e,t)=>$n.fromBigInt(e/t+($n.ROUNDED?e*BigInt(2)/t%BigInt(2):BigInt(0)));$n.fromBigInt=e=>Object.assign(Object.create($n.prototype),{value:e,isNegative:e<BigInt(0)});VA=/^([-0])0+(?=\d)/,rq=/(?!^\.)\.$/,nq=/(?!^-)-/g,iq=/^-\b0\b\.?0*$/,oq=/0*$/,zA=e=>Yy(e,t=>{let r=t.replace(nq,"").replace(rq,"").replace(VA,"$1");return Fo(r)?iq.test(r)?r:sq(r):t});Wc="en",lq=["ar","bg","bs","ca","cs","da","de","el",Wc,"es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","no","nl","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],uq=["ar","bg","bs","ca","cs","da","de","de-AT","de-CH","el",Wc,"en-AU","en-CA","en-GB","es","es-MX","et","fi","fr","fr-CH","he","hi","hr","hu","id","it","it-CH","ja","ko","lt","lv","mk","no","nl","pl","pt","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],dq=["arab","arabext","latn"],BA=e=>dq.includes(e),a4=new Intl.NumberFormat().resolvedOptions().numberingSystem,GA=a4==="arab"||!BA(a4)?"latn":a4,fq=e=>BA(e)?e:GA;Mg=new Set;jA=yr("mutation",e=>{e.forEach(t=>{let r=t.target;Mg.forEach(n=>{if(!pA(r,n.el))return;let o=Do(n.el,"[lang]");if(!o){n.effectiveLocale=Wc;return}let s=o.lang;n.effectiveLocale=o.hasAttribute("lang")&&s===""?Wc:s})})});c4=class{constructor(){this.delocalize=t=>this._numberFormatOptions?Yy(t,r=>r.replace(new RegExp(`[${this._minusSign}]`,"g"),"-").replace(new RegExp(`[${this._group}]`,"g"),"").replace(new RegExp(`[${this._decimal}]`,"g"),".").replace(new RegExp(`[${this._digits.join("")}]`,"g"),this._getDigitIndex)):t,this.localize=t=>this._numberFormatOptions?Yy(t,r=>Fo(r.trim())?new $n(r.trim()).format(this).replace(new RegExp(`[${this._actualGroup}]`,"g"),this._group):r):t}get group(){return this._group}get decimal(){return this._decimal}get minusSign(){return this._minusSign}get digits(){return this._digits}get numberFormatter(){return this._numberFormatter}get numberFormatOptions(){return this._numberFormatOptions}set numberFormatOptions(t){if(t.locale=l4(t?.locale),t.numberingSystem=fq(t?.numberingSystem),!this._numberFormatOptions&&t.locale===Wc&&t.numberingSystem===GA&&Object.keys(t).length===2||JSON.stringify(this._numberFormatOptions)===JSON.stringify(t))return;this._numberFormatOptions=t,this._numberFormatter=new Intl.NumberFormat(this._numberFormatOptions.locale,this._numberFormatOptions),this._digits=[...new Intl.NumberFormat(this._numberFormatOptions.locale,{useGrouping:!1,numberingSystem:this._numberFormatOptions.numberingSystem}).format(9876543210)].reverse();let r=new Map(this._digits.map((i,o)=>[i,o])),n=new Intl.NumberFormat(this._numberFormatOptions.locale,{numberingSystem:this._numberFormatOptions.numberingSystem}).formatToParts(-123456789e-1);this._actualGroup=n.find(i=>i.type==="group").value,this._group=this._actualGroup.trim().length===0||this._actualGroup==" "?"\xA0":this._actualGroup,this._decimal=n.find(i=>i.type==="decimal").value,this._minusSign=n.find(i=>i.type==="minusSign").value,this._getDigitIndex=i=>r.get(i)}},Uo=new c4});async function hq(e,t){let r=`${t}_${e}`;return Jy[r]||(Jy[r]=fetch(Ou(`./assets/${t}/t9n/messages_${e}.json`)).then(n=>(n.ok||HA(),n.json())).catch(()=>HA())),Jy[r]}function HA(){throw new Error("could not fetch component message bundle")}function u4(e){e.messages={...e.defaultMessages,...e.messageOverrides}}function gq(){}async function Fn(e){e.defaultMessages=await qA(e,e.effectiveLocale),u4(e)}async function qA(e,t){if(!vn())return{};let{el:r}=e,i=r.tagName.toLowerCase().replace("calcite-","");return hq(l4(t,"t9n"),i)}async function Un(e,t){e.defaultMessages=await qA(e,t),u4(e)}function Vn(e){e.onMessagesChange=wq}function zn(e){e.onMessagesChange=gq}function wq(){u4(this)}var Jy,la=V(()=>{Wt();Vo();oa();Jy={}});function JA({icon:e,scale:t}){let r=YA[t],n=_q(e),i=n.charAt(n.length-1)==="F";return`${i?n.substring(0,n.length-1):n}${r}${i?"F":""}`}async function bq(e){let t=JA(e),r=XA(t);if(r)return r;d4[t]||(d4[t]=fetch(Ou(`./assets/icon/${t}.json`)).then(i=>i.json()).catch(()=>(console.error(`"${t}" is not a valid calcite-ui-icon name`),"")));let n=await d4[t];return ZA[t]=n,n}function vq(e){return XA(JA(e))}function XA(e){return ZA[e]}function _q(e){let t=!isNaN(Number(e.charAt(0))),r=e.split("-");if(r.length>0){let i=/[a-z]/i;e=r.map((o,s)=>o.replace(i,function(a,d){return s===0&&d===0?a:a.toUpperCase()})).join("")}return t?`i${e}`:e}function Hr(){if(typeof customElements>"u")return;["calcite-icon"].forEach(t=>{switch(t){case"calcite-icon":customElements.get(t)||customElements.define(t,Cq);break}})}var yq,ZA,d4,YA,Sq,xq,Cq,bs=V(()=>{Wt();jr();$o();oa();yq={icon:"icon",flipRtl:"flip-rtl"},ZA={},d4={},YA={s:16,m:24,l:32};Sq=":host{display:inline-flex;color:var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))}:host([scale=s]){inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px}:host([scale=m]){inline-size:24px;block-size:24px;min-inline-size:24px;min-block-size:24px}:host([scale=l]){inline-size:32px;block-size:32px;min-inline-size:32px;min-block-size:32px}.flip-rtl{transform:scaleX(-1)}.svg{display:block}:host([hidden]){display:none}[hidden]{display:none}",xq=Sq,Cq=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.icon=null,this.flipRtl=!1,this.scale="m",this.textLabel=void 0,this.pathData=void 0,this.visible=!1}connectedCallback(){this.visible||this.waitUntilVisible(()=>{this.visible=!0,this.loadIconPathData()})}disconnectedCallback(){this.intersectionObserver?.disconnect(),this.intersectionObserver=null}render(){let{el:t,flipRtl:r,pathData:n,scale:i,textLabel:o}=this,s=Fc(t),c=YA[i],a=!!o,d=[].concat(n||"");return X(Gr,{key:"724265acdc6fb528bf7b25d7ec445c73a63f4c8e","aria-hidden":Ir(!a),"aria-label":a?o:null,role:a?"img":null},X("svg",{key:"864ee2d80bebd282543ba5d94c57f84b48a6204d","aria-hidden":"true",class:{[yq.flipRtl]:s==="rtl"&&r,svg:!0},fill:"currentColor",height:"100%",viewBox:`0 0 ${c} ${c}`,width:"100%",xmlns:"http://www.w3.org/2000/svg"},d.map(h=>typeof h=="string"?X("path",{d:h}):X("path",{d:h.d,opacity:"opacity"in h?h.opacity:1}))))}async loadIconPathData(){let{icon:t,scale:r,visible:n}=this;if(!vn()||!t||!n)return;let i={icon:t,scale:r},o=vq(i)||await bq(i);t===this.icon&&(this.pathData=o)}waitUntilVisible(t){if(this.intersectionObserver=yr("intersection",r=>{r.forEach(n=>{n.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,t())})},{rootMargin:"50px"}),!this.intersectionObserver){t();return}this.intersectionObserver.observe(this.el)}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{icon:["loadIconPathData"],scale:["loadIconPathData"]}}static get style(){return xq}},[1,"calcite-icon",{icon:[513],flipRtl:[516,"flip-rtl"],scale:[513],textLabel:[1,"text-label"],pathData:[32],visible:[32]},void 0,{icon:["loadIconPathData"],scale:["loadIconPathData"]}]);Hr()});function Xn(){if(typeof customElements>"u")return;["calcite-loader"].forEach(t=>{switch(t){case"calcite-loader":customElements.get(t)||customElements.define(t,Mq);break}})}var Hp,Tq,Eq,Mq,Bc=V(()=>{Wt();Wp();Vo();Hp={loader:"loader",loaderParts:"loader__svgs",loaderPart:"loader__svg",loaderPartId:e=>`${Hp.loaderPart}--${e}`,loaderText:"loader__text",loaderPercentage:"loader__percentage"},Tq='@charset "UTF-8";@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:host{position:relative;margin-inline:auto;display:none;align-items:center;justify-content:center;opacity:1;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke:var(--calcite-color-brand);stroke-width:3;fill:none;transform:scale(1, 1);animation:loader-color-shift calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) alternate-reverse infinite linear;padding-block:var(--calcite-loader-padding, 4rem);will-change:contents}:host([scale=s]){--calcite-loader-font-size:var(--calcite-font-size--3);--calcite-loader-size:2rem;--calcite-loader-size-inline:0.75rem;--calcite-internal-loader-value-line-height:0.625rem}:host([scale=m]){--calcite-loader-font-size:var(--calcite-font-size-0);--calcite-loader-size:4rem;--calcite-loader-size-inline:1rem;--calcite-internal-loader-value-line-height:1.375rem}:host([scale=l]){--calcite-loader-font-size:var(--calcite-font-size-2);--calcite-loader-size:6rem;--calcite-loader-size-inline:1.5rem;--calcite-internal-loader-value-line-height:1.71875rem}:host([no-padding]){padding-block:0px}:host{display:flex}.loader__text{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-color-text-1);margin-block-start:calc(var(--calcite-loader-size) + 1.5rem)}.loader__percentage{display:block;text-align:center;color:var(--calcite-color-text-1);font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size);line-height:var(--calcite-internal-loader-value-line-height);align-self:center}.loader__svgs{position:absolute;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);animation-iteration-count:infinite;animation-timing-function:linear;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 6.66 / var(--calcite-internal-duration-factor));animation-name:loader-clockwise;display:flex}.loader__svg{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);animation-iteration-count:infinite;animation-timing-function:linear}.loader__svg--1{animation-name:loader-offset-1}.loader__svg--2{animation-name:loader-offset-2}.loader__svg--3{animation-name:loader-offset-3}:host([type=determinate]),:host([type=determinate-value]){animation:none;stroke:var(--calcite-color-border-3)}:host([type=determinate]) .loader__svgs,:host([type=determinate-value]) .loader__svgs{animation:none}:host([type=determinate]) .loader__svg--3,:host([type=determinate-value]) .loader__svg--3{animation:none;stroke:var(--calcite-color-brand);stroke-dasharray:150.79632;transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([inline]){position:relative;margin:0px;animation:none;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size-inline);min-block-size:var(--calcite-loader-size-inline);inline-size:var(--calcite-loader-size-inline);margin-inline-end:calc(var(--calcite-loader-size-inline) * 0.5);vertical-align:calc(var(--calcite-loader-size-inline) * -1 * 0.2)}:host([inline]) .loader__svgs{inset-block-start:0px;margin:0px;inset-inline-start:0;inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}:host([inline]) .loader__svg{inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}:host([complete]){opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1000ms, transform var(--calcite-internal-animation-timing-medium) linear 1000ms}:host([complete]) .loader__svgs{opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms, transform calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms}:host([complete]) .loader__percentage{color:var(--calcite-color-brand);transform:scale(1.05, 1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear, transform var(--calcite-internal-animation-timing-medium) linear}.loader__svg--1{stroke-dasharray:27.9252444444 139.6262222222;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 4.8 / var(--calcite-internal-duration-factor))}@keyframes loader-offset-1{0%{stroke-dasharray:27.9252444444 251.3272;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222 139.6262222222;stroke-dashoffset:-83.7757333333}100%{stroke-dasharray:27.9252444444 251.3272;stroke-dashoffset:-279.2524444444}}.loader__svg--2{stroke-dasharray:55.8504888889 139.6262222222;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 6.4 / var(--calcite-internal-duration-factor))}@keyframes loader-offset-2{0%{stroke-dasharray:55.8504888889 223.4019555556;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222 139.6262222222;stroke-dashoffset:-97.7383555556}100%{stroke-dasharray:55.8504888889 223.4019555556;stroke-dashoffset:-279.2524444444}}.loader__svg--3{stroke-dasharray:13.9626222222 139.6262222222;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 7.734 / var(--calcite-internal-duration-factor))}@keyframes loader-offset-3{0%{stroke-dasharray:13.9626222222 265.2898222222;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222 139.6262222222;stroke-dashoffset:-76.7944222222}100%{stroke-dasharray:13.9626222222 265.2898222222;stroke-dashoffset:-279.2524444444}}@keyframes loader-color-shift{0%{stroke:var(--calcite-color-brand)}33%{stroke:var(--calcite-color-brand-press)}66%{stroke:var(--calcite-color-brand-hover)}100%{stroke:var(--calcite-color-brand)}}@keyframes loader-clockwise{100%{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}',Eq=Tq,Mq=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.formatValue=()=>this.type!=="determinate-value"?`${this.value}`:this.formatter.format(this.value/100),this.complete=!1,this.inline=!1,this.label=void 0,this.scale="m",this.type="indeterminate",this.value=0,this.text="",this.effectiveLocale=""}valueChangeHandler(){this.complete=this.type.startsWith("determinate")&&this.value===100}connectedCallback(){cn(this),this.updateFormatter()}disconnectedCallback(){ln(this)}componentWillLoad(){requestAnimationFrame(()=>this.valueChangeHandler())}render(){let{el:t,inline:r,label:n,scale:i,text:o,type:s,value:c}=this,a=t.id||sa(),d=.45,h=r?this.getInlineSize(i):this.getSize(i),g=h*d,v=`0 0 ${h} ${h}`,S=s.startsWith("determinate"),M=2*g*Math.PI,I=c/100*M,R=M-I,B=Math.floor(c),F={"stroke-dasharray":`${I} ${R}`};return X(Gr,{key:"8272bdfae9fff51b19ed8fa66197eb93b53feb4c","aria-label":n,"aria-valuemax":S?"100":void 0,"aria-valuemin":S?"0":void 0,"aria-valuenow":S?B.toString():void 0,id:a,role:"progressbar"},X("div",{key:"3d410c178af39bb57cc478bdd06c0392f6ba71a3",class:Hp.loaderParts},[1,2,3].map(G=>X("svg",{"aria-hidden":"true",class:{[Hp.loaderPart]:!0,[Hp.loaderPartId(G)]:!0},key:G,style:S&&G===3?F:void 0,viewBox:v},X("circle",{cx:h/2,cy:h/2,r:g}))),S&&X("div",{key:"4ccc633930dee031bf769908d712df39e0677bbb",class:Hp.loaderPercentage},this.formatValue())),o&&X("div",{key:"6d0d51988bdfafee2a19faed9e14d3bda06d79b5",class:Hp.loaderText},o))}formatterPropsChange(){this.updateFormatter()}getSize(t){return{s:32,m:56,l:80}[t]}getInlineSize(t){return{s:12,m:16,l:20}[t]}updateFormatter(){this.type!=="determinate-value"||this.formatter?.resolvedOptions().locale===this.effectiveLocale||(this.formatter=new Intl.NumberFormat(this.effectiveLocale,{style:"percent"}))}get el(){return this}static get watchers(){return{value:["valueChangeHandler"],effectiveLocale:["formatterPropsChange"],type:["formatterPropsChange"]}}static get style(){return Eq}},[1,"calcite-loader",{complete:[1540],inline:[516],label:[1],scale:[513],type:[513],value:[2],text:[1],effectiveLocale:[32]},void 0,{value:["valueChangeHandler"],effectiveLocale:["formatterPropsChange"],type:["formatterPropsChange"]}]);Xn()});function p4(){if(typeof customElements>"u")return;["calcite-button","calcite-icon","calcite-loader"].forEach(t=>{switch(t){case"calcite-button":customElements.get(t)||customElements.define(t,f4);break;case"calcite-icon":customElements.get(t)||Hr();break;case"calcite-loader":customElements.get(t)||Xn();break}})}var Ai,Pq,Iq,f4,KA=V(()=>{Wt();s4();bg();qy();ca();Vo();$o();zc();la();oa();jr();bs();Bc();Ai={buttonLoader:"calcite-button--loader",content:"content",contentSlotted:"content--slotted",icon:"icon",iconStart:"icon--start",iconEnd:"icon--end",loadingIn:"loading-in",loadingOut:"loading-out",iconStartEmpty:"icon-start-empty",iconEndEmpty:"icon-end-empty",buttonPadding:"button-padding",buttonPaddingShrunk:"button-padding--shrunk"},Pq=`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;inline-size:auto;vertical-align:middle}:host([round]){border-radius:50px}:host([round]) a,:host([round]) button{border-radius:50px}:host button,:host a{outline-color:transparent}:host button:focus,:host a:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(
|
|
27
|
+
More information: https://stenciljs.com/docs/properties#prop-mutability`)}Ij(this,c,d,t)},configurable:!0,enumerable:!0}):D.lazyLoad&&D.method&&r&1&&a&64&&Object.defineProperty(o,c,{value(...d){var h;let g=eo(this);return(h=g?.$onInstancePromise$)==null?void 0:h.then(()=>{var v;return(v=g.$lazyInstance$)==null?void 0:v[c](...d)})}})}),D.observeAttribute&&(!D.lazyLoad||r&1)){let c=new Map;o.attributeChangedCallback=function(a,d,h){Dt.jmp(()=>{var g;let v=c.get(a);if(this.hasOwnProperty(v))h=this[v],delete this[v];else{if(o.hasOwnProperty(v)&&typeof this[v]=="number"&&this[v]==h)return;if(v==null){let S=eo(this),M=S?.$flags$;if(M&&!(M&8)&&M&128&&h!==d){let I=D.lazyLoad?S.$hostElement$:this,R=D.lazyLoad?S.$lazyInstance$:I,B=(g=t.$watchers$)==null?void 0:g[a];B?.forEach(F=>{R[F]!=null&&R[F].call(R,h,d,a)})}return}}this[v]=h===null&&typeof this[v]=="boolean"?!1:h})},e.observedAttributes=Array.from(new Set([...Object.keys((i=t.$watchers$)!=null?i:{}),...s.filter(([a,d])=>d[0]&15).map(([a,d])=>{var h;let g=d[1]||a;return c.set(g,a),D.reflect&&d[0]&512&&((h=t.$attrsToReflect$)==null||h.push([a,g])),g})]))}}return e},cI=async(e,t,r,n)=>{let i;if(!(t.$flags$&32)){t.$flags$|=32;let c=r.$lazyBundleId$;if((D.lazyLoad||D.hydrateClientSide)&&c){let a=WG(r,t,n);if(a&&"then"in a){let h=lj(`st:load:${r.$tagName$}:${t.$modeName$}`,`[Stencil] Load module for <${r.$tagName$}>`);i=await a,h()}else i=a;if(!i)throw new Error(`Constructor for "${r.$tagName$}#${t.$modeName$}" was not found`);D.member&&!i.isProxied&&(D.watchCallback&&(r.$watchers$=i.watchers),MI(i,r,2),i.isProxied=!0);let d=na("createInstance",r.$tagName$);D.member&&(t.$flags$|=8);try{new i(t)}catch(h){ia(h)}D.member&&(t.$flags$&=-9),D.watchCallback&&(t.$flags$|=128),d(),D4(t.$lazyInstance$)}else{i=e.constructor;let a=e.localName;customElements.whenDefined(a).then(()=>t.$flags$|=128)}if(D.style&&i&&i.style){let a;typeof i.style=="string"?a=i.style:D.mode&&typeof i.style!="string"&&(t.$modeName$=mj(e),t.$modeName$&&(a=i.style[t.$modeName$]),D.hydrateServerSide&&t.$modeName$&&e.setAttribute("s-mode",t.$modeName$));let d=mI(r,t.$modeName$);if(!_y.has(d)){let h=na("registerStyles",r.$tagName$);!D.hydrateServerSide&&D.shadowDom&&D.shadowDomShim&&r.$flags$&8&&(a=await Promise.resolve().then(()=>(WP(),zP)).then(g=>g.scopeCss(a,d))),wj(d,a,!!(r.$flags$&1)),h()}}}let o=t.$ancestorComponent$,s=()=>Iy(t,!0);D.asyncLoading&&o&&o["s-rc"]?o["s-rc"].push(s):s()},D4=e=>{D.lazyLoad&&D.connectedCallback&&ys(e,"connectedCallback")},Aj=e=>{if(!(Dt.$flags$&1)){let t=eo(e),r=t.$cmpMeta$,n=na("connectedCallback",r.$tagName$);if(D.hostListenerTargetParent&&F4(e,t,r.$listeners$,!0),t.$flags$&1)F4(e,t,r.$listeners$,!1),t?.$lazyInstance$?D4(t.$lazyInstance$):t?.$onReadyPromise$&&t.$onReadyPromise$.then(()=>D4(t.$lazyInstance$));else{t.$flags$|=1;let i;if(D.hydrateClientSide&&(i=e.getAttribute(I4),i)){if(D.shadowDom&&ku&&r.$flags$&1){let o=D.mode?N4(e.shadowRoot,r,e.getAttribute("s-mode")):N4(e.shadowRoot,r);e.classList.remove(o+"-h",o+"-s")}pj(e,r.$tagName$,i,t)}if(D.slotRelocation&&!i&&(D.hydrateServerSide||(D.slot||D.shadowDom)&&r.$flags$&12)&&Lj(e),D.asyncLoading){let o=e;for(;o=o.parentNode||o.host;)if(D.hydrateClientSide&&o.nodeType===1&&o.hasAttribute("s-id")&&o["s-p"]||o["s-p"]){CI(t,t.$ancestorComponent$=o);break}}D.prop&&!D.hydrateServerSide&&r.$members$&&Object.entries(r.$members$).map(([o,[s]])=>{if(s&31&&e.hasOwnProperty(o)){let c=e[o];delete e[o],e[o]=c}}),D.initializeNextTick?Ey(()=>cI(e,t,r)):cI(e,t,r)}n()}},Lj=e=>{let t=e["s-cr"]=bn.createComment(D.isDebug?`content-ref (host=${e.localName})`:"");t["s-cn"]=!0,ui(e,t,e.firstChild)},P4=e=>{D.lazyLoad&&D.disconnectedCallback&&ys(e,"disconnectedCallback"),D.cmpDidUnload&&ys(e,"componentDidUnload")},kj=async e=>{if(!(Dt.$flags$&1)){let t=eo(e);D.hostListener&&t.$rmListeners$&&(t.$rmListeners$.map(r=>r()),t.$rmListeners$=void 0),D.lazyLoad?t?.$lazyInstance$?P4(t.$lazyInstance$):t?.$onReadyPromise$&&t.$onReadyPromise$.then(()=>P4(t.$lazyInstance$)):P4(e)}},Oj=(e,t)=>{PI(e),II(e),Dj(e),Rj(e),Uj(e),$j(e),Fj(e),AI(e),LI(e,t),Nj(e)},PI=e=>{let t=e.cloneNode;e.cloneNode=function(r){let n=this,i=D.shadowDom?n.shadowRoot&&ku:!1,o=t.call(n,i?r:!1);if(D.slot&&!i&&r){let s=0,c,a,d=["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(;s<n.childNodes.length;s++)c=n.childNodes[s]["s-nr"],a=d.every(h=>!n.childNodes[s][h]),c&&(D.appendChildSlotFix&&o.__appendChild?o.__appendChild(c.cloneNode(!0)):o.appendChild(c.cloneNode(!0))),a&&o.appendChild(n.childNodes[s].cloneNode(!0))}return o}},II=e=>{e.__appendChild=e.appendChild,e.appendChild=function(t){let r=t["s-sn"]=kI(t),n=Up(this.childNodes,r,this.tagName);if(n){let i=G4(n,r),o=i[i.length-1],s=ui(o.parentNode,t,o.nextSibling);return Py(this),s}return this.__appendChild(t)}},Nj=e=>{e.__removeChild=e.removeChild,e.removeChild=function(t){if(t&&typeof t["s-sn"]<"u"){let r=Up(this.childNodes,t["s-sn"],this.tagName);if(r){let i=G4(r,t["s-sn"]).find(o=>o===t);if(i){i.remove(),Py(this);return}}}return this.__removeChild(t)}},Rj=e=>{let t=e.prepend;e.prepend=function(...r){r.forEach(n=>{typeof n=="string"&&(n=this.ownerDocument.createTextNode(n));let i=n["s-sn"]=kI(n),o=Up(this.childNodes,i,this.tagName);if(o){let s=document.createTextNode("");s["s-nr"]=n,o["s-cr"].parentNode.__appendChild(s),n["s-ol"]=s;let a=G4(o,i)[0];return ui(a.parentNode,n,a.nextSibling)}return n.nodeType===1&&n.getAttribute("slot")&&(n.hidden=!0),t.call(this,n)})}},Dj=e=>{e.append=function(...t){t.forEach(r=>{typeof r=="string"&&(r=this.ownerDocument.createTextNode(r)),this.appendChild(r)})}},$j=e=>{let t=e.insertAdjacentHTML;e.insertAdjacentHTML=function(r,n){if(r!=="afterbegin"&&r!=="beforeend")return t.call(this,r,n);let i=this.ownerDocument.createElement("_"),o;if(i.innerHTML=n,r==="afterbegin")for(;o=i.firstChild;)this.prepend(o);else if(r==="beforeend")for(;o=i.firstChild;)this.append(o)}},Fj=e=>{e.insertAdjacentText=function(t,r){this.insertAdjacentHTML(t,r)}},Uj=e=>{let t=e.insertAdjacentElement;e.insertAdjacentElement=function(r,n){return r!=="afterbegin"&&r!=="beforeend"?t.call(this,r,n):r==="afterbegin"?(this.prepend(n),n):(r==="beforeend"&&this.append(n),n)}},AI=e=>{let t=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(e,"__textContent",t),D.experimentalScopedSlotChanges?Object.defineProperty(e,"textContent",{get(){return" "+$4(this.childNodes).map(i=>{var o,s;let c=[],a=i.nextSibling;for(;a&&a["s-sn"]===i["s-sn"];)(a.nodeType===3||a.nodeType===1)&&c.push((s=(o=a.textContent)==null?void 0:o.trim())!=null?s:""),a=a.nextSibling;return c.filter(d=>d!=="").join(" ")}).filter(i=>i!=="").join(" ")+" "},set(r){$4(this.childNodes).forEach(i=>{let o=i.nextSibling;for(;o&&o["s-sn"]===i["s-sn"];){let s=o;o=o.nextSibling,s.remove()}if(i["s-sn"]===""){let s=this.ownerDocument.createTextNode(r);s["s-sn"]="",ui(i.parentElement,s,i.nextSibling)}else i.remove()})}}):Object.defineProperty(e,"textContent",{get(){var r;let n=Up(this.childNodes,"",this.tagName);return((r=n?.nextSibling)==null?void 0:r.nodeType)===3?n.nextSibling.textContent:n?n.textContent:this.__textContent},set(r){var n;let i=Up(this.childNodes,"",this.tagName);if(((n=i?.nextSibling)==null?void 0:n.nodeType)===3)i.nextSibling.textContent=r;else if(i)i.textContent=r;else{this.__textContent=r;let o=this["s-cr"];o&&ui(this,o,this.firstChild)}}})},LI=(e,t)=>{class r extends Array{item(i){return this[i]}}if(t.$flags$&8){let n=e.__lookupGetter__("childNodes");Object.defineProperty(e,"children",{get(){return this.childNodes.map(i=>i.nodeType===1)}}),Object.defineProperty(e,"childElementCount",{get(){return e.children.length}}),Object.defineProperty(e,"childNodes",{get(){let i=n.call(this);if(!(Dt.$flags$&1)&&eo(this).$flags$&2){let o=new r;for(let s=0;s<i.length;s++){let c=i[s]["s-nr"];c&&o.push(c)}return o}return r.from(i)}})}},$4=e=>{let t=[];for(let r of Array.from(e))r["s-sr"]&&t.push(r),t.push(...$4(r.childNodes));return t},kI=e=>e["s-sn"]||e.nodeType===1&&e.getAttribute("slot")||"",Up=(e,t,r)=>{let n=0,i;for(;n<e.length;n++)if(i=e[n],i["s-sr"]&&i["s-sn"]===t&&i["s-hn"]===r||(i=Up(i.childNodes,t,r),i))return i;return null},G4=(e,t)=>{let r=[e];for(;(e=e.nextSibling)&&e["s-sn"]===t;)r.push(e);return r},Ft=(e,t)=>{let r={$flags$:t[0],$tagName$:t[1]};D.member&&(r.$members$=t[2]),D.hostListener&&(r.$listeners$=t[3]),D.watchCallback&&(r.$watchers$=e.$watchers$),D.reflect&&(r.$attrsToReflect$=[]),D.shadowDom&&!ku&&r.$flags$&1&&(r.$flags$|=8),D.experimentalSlotFixes?D.scoped&&r.$flags$&2&&Oj(e.prototype,r):(D.slotChildNodesFix&&LI(e.prototype,r),D.cloneNodeFix&&PI(e.prototype),D.appendChildSlotFix&&II(e.prototype),D.scopedSlotTextContentFix&&r.$flags$&2&&AI(e.prototype));let n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){VG(this,r)},connectedCallback(){let o=eo(this);F4(this,o,r.$listeners$,!1),Aj(this),D.connectedCallback&&n&&n.call(this)},disconnectedCallback(){kj(this),D.disconnectedCallback&&i&&i.call(this)},__attachShadow(){if(ku){if(!this.shadowRoot)D.shadowDelegatesFocus?this.attachShadow({mode:"open",delegatesFocus:!!(r.$flags$&16)}):this.attachShadow({mode:"open"});else if(this.shadowRoot.mode!=="open")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 this.shadowRoot=this}}),e.is=r.$tagName$,MI(e,r,3)},OI=(e,t)=>t,F4=(e,t,r,n)=>{D.hostListener&&r&&(D.hostListenerTargetParent&&(n?r=r.filter(([i])=>i&32):r=r.filter(([i])=>!(i&32))),r.map(([i,o,s])=>{let c=D.hostListenerTarget?zj(e,i):e,a=Vj(t,s),d=Wj(i);Dt.ael(c,o,a,d),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>Dt.rel(c,o,a,d))}))},Vj=(e,t)=>r=>{var n;try{D.lazyLoad?e.$flags$&256?(n=e.$lazyInstance$)==null||n[t](r):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,r]):e.$hostElement$[t](r)}catch(i){ia(i)}},zj=(e,t)=>D.hostListenerTargetDocument&&t&4?bn:D.hostListenerTargetWindow&&t&8?Vp:D.hostListenerTargetBody&&t&16?bn.body:D.hostListenerTargetParent&&t&32&&e.parentElement?e.parentElement:e,Wj=e=>JG?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0});function DI(){if(wg&&wg.version)return;console.info(`Using Calcite Components ${NI} [Date: ${Gj}, Revision: ${jj}]`);let e=wg||globalThis.calciteConfig||{};Object.defineProperty(e,"version",{value:NI,writable:!1}),globalThis.calciteConfig=e}var wg,RI,Bj,Pme,NI,Gj,jj,j4=V(()=>{Wt();wg=globalThis.calciteConfig,RI=wg?.focusTrapStack||[],Bj=Lu.isTesting&&Lu.isBrowser,Pme=wg?.logLevel||(Bj?"error":"info"),NI="2.13.0",Gj="2024-10-01",jj="42c132913"});var vn,oa=V(()=>{Wt();vn=()=>Lu.isBrowser&&typeof navigator<"u"&&typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document});function $I(){let{classList:e}=document.body,t=window.matchMedia("(prefers-color-scheme: dark)").matches,r=()=>e.contains(v4)||e.contains(b4)&&t?"dark":"light",n=s=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:s}})),i=s=>{o!==s&&n(s),o=s},o=r();n(o),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",s=>i(s.matches?"dark":"light")),new MutationObserver(()=>i(r())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}function Hj(){vn()&&(document.readyState==="interactive"?$I():document.addEventListener("DOMContentLoaded",()=>$I(),{once:!0})),DI()}var qj,FI=V(()=>{Np();j4();oa();Wt();qj=Hj;qj()});function VI(){try{Ou(".")}catch{U4(Mc(Ip(UI)))}}function zI(e){let t=[];for(let r of Object.keys(e))customElements.get(`calcite-${r}`)||t.push(e[r]?.());return t.length>0?Promise.all(t):null}var UI,H4=V(()=>{FI();Kw();et();Ic();UI="components/assets"});var Ay,Ly,q4=V(()=>{Ay=Symbol("widget"),Ly=Symbol("widget-test-data")});function Z4(e,t){let r=t.children;if(r?.length)for(let i=0;i<r.length;++i)r[i]=Z4(e,r[i]);else r=Zj;let n=t.vnodeSelector;if(zp(n)){let i=t.properties||Yj,o=i.key||n,s={key:o,afterCreate:Jj,afterUpdate:Xj,afterRemoved:WI,parentWidget:e,widgetConstructor:n,widgetProperties:{...i,key:o,children:r}};return{vnodeSelector:n.vnodeSelector,properties:s,children:void 0,text:void 0,domNode:null}}return t}function Jj(e,t,r,{parentWidget:n,widgetConstructor:i,widgetProperties:o}){let s=new i(o);s.container=e,ky.set(e,s),s.afterCreate?.(s,e),n.addHandles(Ct(()=>WI(e))),queueMicrotask(()=>{s[Ly].projector.renderNow()})}function Xj(e,t,r,{widgetProperties:n}){let i=ky.get(e);i&&(i.set(n),i.afterUpdate?.(i,e))}function WI(e){let t=ky.get(e);t&&(t.afterRemoved?.(t,e),t.destroy(),ky.delete(e))}function zp(e){return typeof e=="function"&&e[Ay]}var Zj,Yj,ky,Y4=V(()=>{oi();q4();Zj=[],Yj={},ky=new WeakMap});function GI(e){BI.add(e),e.finally(()=>BI.delete(e))}var BI,jI=V(()=>{BI=new Set});function qI(e,t){let r=Object.prototype.hasOwnProperty;for(let n in t)r.call(t,n)&&r.call(e,n)&&(e[n]!=null&&t[n]!=null&&typeof e[n]=="object"&&typeof t[n]=="object"?qI(e[n],t[n]):e[n]=t[n]);return e}var HI,Kj,Qj,eH,J4,Pr,ZI,YI=V(()=>{pt();JS();OM();Hw();qh();et();or();tt();vc();RM();ko();i4();qM();mt();ug();ut();bu();MS();NP();H4();Y4();q4();jI();l4();dy();gc();cg();Kj="esri.widgets.Widget",Qj=0;eH=OP({postProcessProjectionOptions(e){let t=e.eventHandlerInterceptor,r=/capture$/i;e.eventHandlerInterceptor=(n,i,o,s)=>{let c=t?.(n,i,o,s),a=r.test(n);if(!((n=n.replace(r,"")).toLowerCase()in o)||a){let d=n[2].toLowerCase()+n.slice(3),h=S=>c?.call(o,S);o.addEventListener(d,h,a);let g=()=>o.removeEventListener(d,h,a),v=s.afterRemoved;s.afterRemoved=S=>{v?.(S),g()}}return c}},handleInterceptedEvent(e,t,r,n){let{eventPhase:i,type:o}=n,s=i===Event.CAPTURING_PHASE,c=`on${o}${s?"capture":""}`,a=t.properties;(a&&c in a||(c=`on${o[0].toUpperCase()}${o.slice(1)}${s?"Capture":""}`,a&&c in a))&&(ly(),e.scheduleRender(),a[c].call(a.bind||r,n))}}),J4=!1,Pr=class extends KS(xu.EventedAccessor){constructor(e,t){super(e,t),this._attached=!1,this._projector=eH,this._readyForTrueRender=!1,this.key=this,this.autoRenderingEnabled=!0,this._loadLocale=C8(async()=>{if(this._messageBundleProps?.length){let c=await Promise.allSettled(this._messageBundleProps.map(async({bundlePath:a,propertyName:d})=>{if(this.destroyed)return;let h=await qS(a);this.uiStrings&&Object.keys(this.uiStrings)&&(h=qI(qe(h),this.uiStrings)),this[d]=h}));if(this.destroyed)return;for(let a of c)a.status==="rejected"&&ct.getLogger(this).error("widget-intl:locale-error",this.declaredClass,a.reason)}await this.loadLocale()}),VI();let r="esri-widget-uid-"+HM(),n=this.render.bind(this);this._trackingTarget=new vu(()=>{this.autoRenderingEnabled&&this.scheduleRender()});let i=()=>({vnodeSelector:"div",properties:{key:`${r}-hidden`,class:"",styles:{display:"none"}},domNode:null,children:void 0,text:void 0}),o=()=>{var h;if(!this._readyForTrueRender||this.destroyed)return null;let c=n()??i(),a=c.properties??(c.properties={});if(a.key??(a.key=r),zp(c.vnodeSelector)){if(!this.visible)return i()}else this.visible?a.styles||(a.styles={}):(a.class="",a.styles={display:"none"}),(h=a.styles).display??(h.display="");let d=0;return c.children?.forEach(g=>{var v;zp(g.vnodeSelector)||(g.properties??(g.properties={}),(v=g.properties).key??(v.key=`${this.id}--${d++}`))}),Z4(this,c)};this.render=()=>{if(J4)return o();let c=mP(this)??null;if(c)return c;this._trackingTarget.clear(),J4=!0;try{c=Ao(this._trackingTarget,o)}catch(a){throw ct.getLogger(this).error(a),a}finally{J4=!1}return c&&hP(this,c),c};let s=this.beforeFirstRender();s?this._resourcesFetch=s.then(()=>{this._readyForTrueRender=!0,this._postInitialize()}):(this._resourcesFetch=Promise.resolve().then(()=>{this._postInitialize()}),this._readyForTrueRender=!0),this.addResolvingPromise(this._resourcesFetch),GI(this._resourcesFetch)}normalizeCtorArgs(e,t){let r={...e};return t&&(r.container=t),r}postInitialize(){}beforeFirstRender(){let e=this.loadDependencies();return this._messageBundleProps?.length||e?Promise.all([e,this._loadLocale()]).then(()=>{}).catch(_S):null}loadDependencies(){return null}loadLocale(){return null}destroy(){this.destroyed||(Vh(this._trackingTarget),Vh(this.viewModel),this._detach(this.container),this._set("container",null),this._emitter.clear(),this.render=()=>null,this._projector=null,uy(this))}set container(e){this._get("container")||this._set("container",e)}castContainer(e){return kM(e)}get domNode(){return this.container}set domNode(e){this.container=e}get icon(){return null}set icon(e){this._overrideIfSome("icon",e)}get id(){return this._get("id")||this.container?.id||Date.now().toString(16)+"-widget-"+Qj++}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[(HI=Ay,Ly)](){return{projector:this._projector}}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||(uy(this),this._projector.scheduleRender())}classes(...e){return gP.apply(this,e)}renderNow(){uy(this),this._projector.renderNow()}_postInitialize(){if(this.destroyed)return;this.scheduleRender(),this._delegatedEventNames?.length&&this.addHandles(lg(()=>this.viewModel,(t,r)=>{r&&this.removeHandles("delegated-events"),t&&Hh(t)&&this.addHandles(this._delegatedEventNames.map(n=>Sc(t,n,i=>{this.emit(n,i)})),"delegated-events")},ey)),this.postInitialize();let e=async()=>{await this._loadLocale().catch(_S),this.scheduleRender()};this.addHandles([$_(e),lg(()=>this.uiStrings,e),GM(()=>this.container,t=>{this.destroyed||this._attach(t)},{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)}};Pr[HI]=!0,Pr.vnodeSelector="div",N([z()],Pr.prototype,"_readyForTrueRender",void 0),N([z({value:null})],Pr.prototype,"container",null),N([ea("container")],Pr.prototype,"castContainer",null),N([z()],Pr.prototype,"icon",null),N([z()],Pr.prototype,"id",null),N([z()],Pr.prototype,"label",null),N([z()],Pr.prototype,"renderable",null),N([z()],Pr.prototype,"uiStrings",void 0),N([z()],Pr.prototype,"viewModel",void 0),N([z({value:!0})],Pr.prototype,"visible",null),N([z()],Pr.prototype,"key",void 0),N([z()],Pr.prototype,"children",void 0),N([z()],Pr.prototype,"afterCreate",void 0),N([z()],Pr.prototype,"afterUpdate",void 0),N([z()],Pr.prototype,"afterRemoved",void 0),Pr=N([Ie(Kj)],Pr);ZI=Pr});function X4(e){return(t,r)=>{t.hasOwnProperty("_messageBundleProps")||(t._messageBundleProps=t._messageBundleProps?t._messageBundleProps.slice():[]),t._messageBundleProps.push({bundlePath:e,propertyName:r})}}var JI=V(()=>{});function Pi(e,t,...r){return typeof e!="function"||zp(e)?rH(e,t,...r):e(t,...r)}var tH,XI,rH,KI=V(()=>{Y4();tH=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},XI=function(e,t){for(var r=0,n=e.length;r<n;r++){var i=e[r];Array.isArray(i)?XI(i,t):i!=null&&i!==!1&&(i.hasOwnProperty("vnodeSelector")||(i=tH(i)),t.push(i))}},rH=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(r.length===1&&typeof r[0]=="string")return{vnodeSelector:e,properties:t||void 0,children:void 0,text:r[0],domNode:null};var i=[];return XI(r,i),{vnodeSelector:e,properties:t||void 0,children:i,text:void 0,domNode:null}}});function iH(){return getComputedStyle(document.body).getPropertyValue("--esri-calcite-mode-name").replaceAll(/\s|'|"/g,"")}function oH(){return iH().startsWith("dark")}function QI(){return`${nH}${oH()?"dark":"light"}`}var nH,eA=V(()=>{nH="calcite-mode-"});function sH(e){return e.map(t=>{let r="";for(let n=0;n<t;n++)r+=((1+Math.random())*65536|0).toString(16).substring(1);return r}).join("-")}var sa,Wp=V(()=>{sa=()=>sH([2,1,1,1,3])});function Fc(e){let t="dir",r=`[${t}]`,n=Do(e,r);return n?n.getAttribute(t):"ltr"}function uA(e){return e.getRootNode()}function dA(e){return e.host||null}function Du(e,{selector:t,id:r}){if(!e)return null;e.assignedSlot&&(e=e.assignedSlot);let n=uA(e);return(r?"getElementById"in n?n.getElementById(r):null:t?n.querySelector(t):null)||Du(dA(n),{selector:t,id:r})}function Do(e,t){return e?e.closest(t)||Do(dA(uA(e)),t):null}function SH(e,t){return fA(e,t)}function fA(e,t){if(!e)return;let r=t(e);if(r!==void 0)return r;let{parentNode:n}=e;return fA(n instanceof ShadowRoot?n.host:n,t)}function pA(e,t){return!!SH(t,r=>r===e?!0:void 0)}function xH(e){return typeof e?.setFocus=="function"}async function Fy(e){if(e)return xH(e)?e.setFocus():e.focus()}function CH(e){if(e)return Q4(e,ex)[0]??e}function Bp(e){CH(e)?.focus()}function Uy(e,t,r){t&&!Array.isArray(t)&&typeof t!="string"&&(r=t,t=null);let n=t?Array.isArray(t)?t.map(i=>`[slot="${i}"]`).join(","):`[slot="${t}"]`:yg;return r?.all?TH(e,n,r):EH(e,n,r)}function mA(e,t){return e?Array.from(e.children||[]).filter(r=>r?.matches(t)):[]}function TH(e,t,r){let n=t===yg?mA(e,yg):Array.from(e.querySelectorAll(t));n=r&&r.direct===!1?n:n.filter(o=>o.parentElement===e),n=r?.matches?n.filter(o=>o?.matches(r.matches)):n;let i=r?.selector;return i?n.map(o=>Array.from(o.querySelectorAll(i))).reduce((o,s)=>[...o,...s],[]).filter(o=>!!o):n}function EH(e,t,r){let n=t===yg?mA(e,yg)[0]||null:e.querySelector(t);n=r&&r.direct===!1||n?.parentElement===e?n:null,n=r?.matches?n?.matches(r.matches)?n:null:n;let i=r?.selector;return i?n?.querySelector(i):n}function MH(e,t){return e.filter(r=>r.matches(t))}function aa(e,t,r){if(typeof t=="string"&&t!=="")return t;if(t==="")return e[r]}function Ir(e){return(!!e).toString()}function hA(e){return Ii(e)||IH(e)}function PH(e){return AH(e).filter(t=>t.nodeType===Node.TEXT_NODE).map(t=>t.textContent).join("").trim()}function IH(e){return!!PH(e)}function AH(e){return e.currentTarget.assignedNodes({flatten:!0})}function Ii(e){return!!Vy(e).length}function Vy(e,t){return LH(e.target,t)}function LH(e,t){let r=e.assignedElements({flatten:!0});return t?MH(r,t):r}function gA(e){return!!(e.isPrimary&&e.button===0)}function wA(e){return e.detail===0}function yA(e,t){if(e.parentNode!==t.parentNode)return!1;let r=Array.from(e.parentNode.children);return r.indexOf(e)<r.indexOf(t)}async function bA(e,t,r,n){return kH(e,t,"transition",r,n)}async function kH(e,t,r,n,i){let o=window.getComputedStyle(e),s=r==="transition"?o.transitionDuration:o.animationDuration,c=r==="transition"?o.transitionProperty:o.animationName,a=s.split(","),h=c.split(",").map(R=>R.trim()).indexOf(t),g=a[h]??a[0];function v(){requestAnimationFrame(()=>{n?.(),requestAnimationFrame(()=>i?.())})}if(g==="0s"){v();return}let S=r==="transition"?"transitionstart":"animationstart",M=r==="transition"?"transitionend":"animationend",I=r==="transition"?"transitioncancel":"animationcancel";return new Promise(R=>{let B=window.setTimeout(()=>{e.removeEventListener(S,F),e.removeEventListener(M,G),e.removeEventListener(I,G),v(),R()},parseFloat(g)*1e3);e.addEventListener(S,F),e.addEventListener(M,G),e.addEventListener(I,G);function F(J){J.target===e&&rA(J)===t&&(window.clearTimeout(B),e.removeEventListener(S,F),n?.())}function G(J){J.target===e&&rA(J)===t&&(e.removeEventListener(M,G),e.removeEventListener(I,G),i?.(),R())}})}function OH(e){return"propertyName"in e}function rA(e){return OH(e)?e.propertyName:e.animationName}var nA,Oy,iA,Nu,Ny,Ry,aH,oA,sA,aA,$c,cH,lH,cA,uH,dH,fH,pH,mH,hH,gH,tA,wH,yH,Dy,K4,bH,vH,Q4,lA,Ru,_H,$y,ex,yg,jr=V(()=>{Wp();Np();nA=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Oy=nA.join(","),iA=typeof Element>"u",Nu=iA?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ny=!iA&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},Ry=function e(t,r){var n;r===void 0&&(r=!0);var i=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),o=i===""||i==="true",s=o||r&&t&&e(t.parentNode);return s},aH=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},oA=function(t,r,n){if(Ry(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Oy));return r&&Nu.call(t,Oy)&&i.unshift(t),i=i.filter(n),i},sA=function e(t,r,n){for(var i=[],o=Array.from(t);o.length;){var s=o.shift();if(!Ry(s,!1))if(s.tagName==="SLOT"){var c=s.assignedElements(),a=c.length?c:s.children,d=e(a,!0,n);n.flatten?i.push.apply(i,d):i.push({scopeParent:s,candidates:d})}else{var h=Nu.call(s,Oy);h&&n.filter(s)&&(r||!t.includes(s))&&i.push(s);var g=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),v=!Ry(g,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(g&&v){var S=e(g===!0?s.children:g.children,!0,n);n.flatten?i.push.apply(i,S):i.push({scopeParent:s,candidates:S})}else o.unshift.apply(o,s.children)}}return i},aA=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},$c=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||aH(t))&&!aA(t)?0:t.tabIndex},cH=function(t,r){var n=$c(t);return n<0&&r&&!aA(t)?0:n},lH=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},cA=function(t){return t.tagName==="INPUT"},uH=function(t){return cA(t)&&t.type==="hidden"},dH=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},fH=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},pH=function(t){if(!t.name)return!0;var r=t.form||Ny(t),n=function(c){return r.querySelectorAll('input[type="radio"][name="'+c+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(t.name));else try{i=n(t.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var o=fH(i,t.form);return!o||o===t},mH=function(t){return cA(t)&&t.type==="radio"},hH=function(t){return mH(t)&&!pH(t)},gH=function(t){var r,n=t&&Ny(t),i=(r=n)===null||r===void 0?void 0:r.host,o=!1;if(n&&n!==t){var s,c,a;for(o=!!((s=i)!==null&&s!==void 0&&(c=s.ownerDocument)!==null&&c!==void 0&&c.contains(i)||t!=null&&(a=t.ownerDocument)!==null&&a!==void 0&&a.contains(t));!o&&i;){var d,h,g;n=Ny(i),i=(d=n)===null||d===void 0?void 0:d.host,o=!!((h=i)!==null&&h!==void 0&&(g=h.ownerDocument)!==null&&g!==void 0&&g.contains(i))}}return o},tA=function(t){var r=t.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},wH=function(t,r){var n=r.displayCheck,i=r.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=Nu.call(t,"details>summary:first-of-type"),s=o?t.parentElement:t;if(Nu.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof i=="function"){for(var c=t;t;){var a=t.parentElement,d=Ny(t);if(a&&!a.shadowRoot&&i(a)===!0)return tA(t);t.assignedSlot?t=t.assignedSlot:!a&&d!==t.ownerDocument?t=d.host:t=a}t=c}if(gH(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return tA(t);return!1},yH=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var i=r.children.item(n);if(i.tagName==="LEGEND")return Nu.call(r,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}r=r.parentElement}return!1},Dy=function(t,r){return!(r.disabled||Ry(r)||uH(r)||wH(r,t)||dH(r)||yH(r))},K4=function(t,r){return!(hH(r)||$c(r)<0||!Dy(t,r))},bH=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},vH=function e(t){var r=[],n=[];return t.forEach(function(i,o){var s=!!i.scopeParent,c=s?i.scopeParent:i,a=cH(c,s),d=s?e(i.candidates):c;a===0?s?r.push.apply(r,d):r.push(c):n.push({documentOrder:o,tabIndex:a,item:i,isScope:s,content:d})}),n.sort(lH).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},Q4=function(t,r){r=r||{};var n;return r.getShadowRoot?n=sA([t],r.includeContainer,{filter:K4.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:bH}):n=oA(t,r.includeContainer,K4.bind(null,r)),vH(n)},lA=function(t,r){r=r||{};var n;return r.getShadowRoot?n=sA([t],r.includeContainer,{filter:Dy.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=oA(t,r.includeContainer,Dy.bind(null,r)),n},Ru=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return Nu.call(t,Oy)===!1?!1:K4(r,t)},_H=nA.concat("iframe").join(","),$y=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return Nu.call(t,_H)===!1?!1:Dy(r,t)},ex={getShadowRoot:!0};yg=":not([slot])"});function RH(e){return`${e.split("-").map((n,i)=>i===0?n:`${n[0].toUpperCase()}${n.slice(1)}`).join("")}${NH.includes(e)?"Input":"Change"}`}function nx(e){return"checked"in e}function DH(e,t){if(Do(t.parentElement,"[form]"))return!0;let n="calciteInternalFormComponentRegister",i=!1;return e.addEventListener(n,o=>{i=o.composedPath().some(s=>ix.has(s)),o.stopPropagation()},{once:!0}),t.dispatchEvent(new CustomEvent(n,{bubbles:!0,composed:!0})),i}function $H(e,{status:t,message:r,icon:n}){"status"in e&&(e.status=t),"validationIcon"in e&&typeof e.validationIcon!="string"&&(e.validationIcon=n),"validationMessage"in e&&!e.validationMessage&&(e.validationMessage=r)}function xA(e){return e.nodeName==="CALCITE-RADIO-BUTTON"?Do(e,"calcite-radio-button-group"):e}function vA(e){let t=e?.target,r=t?.validationMessage,n=xA(t?.parentElement);if(!n)return;let i=n?.nodeName?.toLowerCase(),o=i?.split("-");if(o.length<2||o[0]!=="calcite")return;e?.preventDefault(),"validity"in n&&(n.validity=t?.validity),n.dispatchEvent(FH),$H(n,{message:r,icon:!0,status:"invalid"});let s=RH(i);n.addEventListener(s,()=>{"status"in n&&(n.status="idle"),"validationIcon"in n&&!n.validationIcon&&(n.validationIcon=!1),"validationMessage"in n&&n.validationMessage===r&&(n.validationMessage=""),"validity"in n&&(n.validity=t?.validity)},{once:!0})}function zy(e){let{formEl:t}=e;return t?(t.addEventListener("invalid",vA,!0),t.requestSubmit(),t.removeEventListener("invalid",vA,!0),requestAnimationFrame(()=>{let r=t.querySelectorAll("[status=invalid]");for(let n of r)if(n?.validationMessage){n?.setFocus();break}}),!0):!1}function CA(e){e.formEl?.reset()}function TA(e){let{el:t,value:r}=e,n=ox(e);if(!n||DH(n,t))return;e.formEl=n,e.defaultValue=r,nx(e)&&(e.defaultChecked=e.checked);let i=(e.onFormReset||UH).bind(e);n.addEventListener("reset",i),rx.set(e.el,i),ix.add(t)}function ox(e){let{el:t,form:r}=e;return r?Du(t,{id:r}):Do(t,"form")}function UH(){if("status"in this&&(this.status="idle"),"validationIcon"in this&&(this.validationIcon=!1),"validationMessage"in this&&(this.validationMessage=""),nx(this)){this.checked=this.defaultChecked;return}this.value=this.defaultValue}function EA(e){let{el:t,formEl:r}=e;if(!r)return;let n=rx.get(t);r.removeEventListener("reset",n),rx.delete(t),e.formEl=null,ix.delete(t)}function VH(e){let{el:t,formEl:r,name:n,value:i}=e,{ownerDocument:o}=t,s=t.querySelectorAll(`input[slot="${tx}"]`);if(!r||!n){s.forEach(g=>{_A(g),g.remove()});return}let c=Array.isArray(i)?i:[i],a=[],d=new Set;s.forEach(g=>{let v=c.find(S=>S==g.value);v!=null?(d.add(v),SA(e,g,v)):a.push(g)});let h;c.forEach(g=>{if(d.has(g))return;let v=a.pop();v||(v=o.createElement("input"),v.slot=tx),h||(h=o.createDocumentFragment()),h.append(v),v.addEventListener("input",MA),SA(e,v,g)}),h&&t.append(h),a.forEach(g=>{_A(g),g.remove()})}function SA(e,t,r){let{defaultValue:n,disabled:i,form:o,name:s,required:c}=e;t.defaultValue=n,t.disabled=i,t.name=s,t.required=c,t.tabIndex=-1,o?t.setAttribute("form",o):t.removeAttribute("form"),nx(e)?(t.checked=e.checked,t.defaultChecked=e.defaultChecked,t.value=e.checked?r||"on":""):t.value=r||"",e.syncHiddenFormInput?.(t);let a=xA(e.el);if(a&&"validity"in a)for(let d in{...t?.validity})a.validity[d]=t.validity[d]}var NH,tx,rx,ix,FH,Wy,MA,_A,PA,sx=V(()=>{Wt();jr();NH=["calcite-input","calcite-input-number","calcite-input-text","calcite-text-area"];tx="hidden-form-input";rx=new WeakMap,ix=new WeakSet;FH=new CustomEvent("calciteInvalid",{bubbles:!0,composed:!0});Wy="calciteInternalHiddenInputInput",MA=e=>{e.target.dispatchEvent(new CustomEvent(Wy,{bubbles:!0}))},_A=e=>e.removeEventListener("input",MA);PA=({component:e})=>(VH(e),X("slot",{name:tx}))});function zH(){let{disabled:e}=this;e||HTMLElement.prototype.click.call(this)}function IA(e){e.target.disabled&&e.preventDefault()}function LA(e){e.target.disabled&&(e.stopImmediatePropagation(),e.preventDefault())}function Uc(e){if(e.disabled){e.el.setAttribute("aria-disabled","true"),e.el.contains(document.activeElement)&&document.activeElement.blur(),WH(e);return}GH(e),e.el.removeAttribute("aria-disabled")}function WH(e){e.el.click=zH,BH(e.el)}function BH(e){e.addEventListener("pointerdown",IA,By),AA.forEach(t=>e.addEventListener(t,LA,By))}function GH(e){delete e.el.click,jH(e.el)}function jH(e){e.removeEventListener("pointerdown",IA,By),AA.forEach(t=>e.removeEventListener(t,LA,By))}var AA,By,HH,Vc,bg=V(()=>{Wt();AA=["mousedown","mouseup","click"];By={capture:!0};HH={container:"interaction-container"},Vc=({disabled:e},t)=>X("div",{class:HH.container,inert:e},...t)});function On(e){return e==="l"?"m":"s"}async function Gy(e){await(qH(e)?e.componentOnReady():new Promise(t=>requestAnimationFrame(()=>t())))}function qH(e){return typeof e.componentOnReady=="function"}var zc=V(()=>{});function YH(e,t){let r,n="custom-element-ancestor-check",i=s=>{s.stopImmediatePropagation();let c=s.composedPath();r=c.slice(c.indexOf(t),c.indexOf(e))};return e.addEventListener(n,i,{once:!0}),t.dispatchEvent(new CustomEvent(n,{composed:!0,bubbles:!0})),e.removeEventListener(n,i),r.filter(s=>s!==t&&s!==e).filter(s=>s.tagName?.includes("-")).length>0}function jp(e){if(!e)return;let t=ZH(e.el);if(vg.has(t)&&t===e.labelEl||!t&&$u.has(e))return;let r=XH.bind(e);if(t){e.labelEl=t;let n=Gp.get(t)||[];n.push(e),Gp.set(t,n.sort(RA)),vg.has(e.labelEl)||(vg.set(e.labelEl,OA),e.labelEl.addEventListener(NA,OA)),$u.delete(e),document.removeEventListener(xg,Sg.get(e)),jy.set(e,r),document.addEventListener(_g,r)}else $u.has(e)||(r(),document.removeEventListener(_g,jy.get(e)))}function Hy(e){if(!e||($u.delete(e),document.removeEventListener(xg,Sg.get(e)),document.removeEventListener(_g,jy.get(e)),Sg.delete(e),jy.delete(e),!e.labelEl))return;let t=Gp.get(e.labelEl);t.length===1&&(e.labelEl.removeEventListener(NA,vg.get(e.labelEl)),vg.delete(e.labelEl)),Gp.set(e.labelEl,t.filter(r=>r!==e).sort(RA)),e.labelEl=null}function RA(e,t){return yA(e.el,t.el)?-1:1}function Cg(e){return e.label||e.labelEl?.textContent?.trim()||""}function OA(e){let t=e.detail.sourceEvent.target,r=Gp.get(this),n=r.find(s=>s.el===t);if(r.includes(n))return;let o=r[0];o.disabled||o.onLabelClick(e)}function JH(){$u.has(this)&&jp(this)}function XH(){$u.add(this);let e=Sg.get(this)||JH.bind(this);Sg.set(this,e),document.addEventListener(xg,e)}async function DA(e){if(await Gy(e),Gp.has(e))return;let r=e.ownerDocument?.getElementById(e.for);r&&requestAnimationFrame(()=>{for(let n of $u)if(n.el===r){jp(n);break}})}var NA,xg,_g,kA,Gp,vg,Sg,jy,$u,ZH,qy=V(()=>{jr();zc();NA="calciteInternalLabelClick",xg="calciteInternalLabelConnected",_g="calciteInternalLabelDisconnected",kA="calcite-label",Gp=new WeakMap,vg=new WeakMap,Sg=new WeakMap,jy=new WeakMap,$u=new Set,ZH=e=>{let{id:t}=e,r=t&&Du(e,{selector:`${kA}[for="${t}"]`});if(r)return r;let n=Do(e,kA);return!n||YH(n,e)?null:n}});function Nn(e){FA.set(e,new Promise(t=>$A.set(e,t)))}function Rn(e){$A.get(e)()}function KH(e){return FA.get(e)}async function Dn(e){if(await KH(e),!!vn())return to(e),new Promise(t=>requestAnimationFrame(()=>t()))}var $A,FA,ca=V(()=>{Wt();oa();$A=new WeakMap,FA=new WeakMap});function Zy(e){return e==="Enter"||e===" "}var Tg,Eg=V(()=>{Tg=["0","1","2","3","4","5","6","7","8","9"]});function yr(e,t,r){if(!vn())return;let n=QH(e);return new n(t,r)}function QH(e){class t extends window.MutationObserver{constructor(n){super(n),this.observedEntry=[],this.callback=n}observe(n,i){return this.observedEntry.push({target:n,options:i}),super.observe(n,i)}unobserve(n){let i=this.observedEntry.filter(o=>o.target!==n);this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),i.forEach(o=>this.observe(o.target,o.options))}}return function(){return e==="intersection"?window.IntersectionObserver:e==="mutation"?t:window.ResizeObserver}()}var $o=V(()=>{oa();});function Fo(e){return!(!e||isNaN(Number(e)))}function UA(e){return!e||!cq(e)?"":Yy(e,t=>{let r=!1,n=t.split("").filter((i,o)=>i.match(/\./g)&&!r?(r=!0,!0):i.match(/-/g)&&o===0?!0:Tg.includes(i)).join("");return Fo(n)?new $n(n).toString():""})}function sq(e){let t=e.split(".")[1],r=new $n(e).toString(),[n,i]=r.split(".");return t&&i!==t?`${n}.${t}`:r}function Yy(e,t){if(!e)return e;let r=e.toLowerCase().indexOf("e")+1;return r?e.replace(/[eE]*$/g,"").substring(0,r).concat(e.slice(r).replace(/[eE]/g,"")).split(/[eE]/).map((n,i)=>t(i===1?n.replace(/\./g,""):n)).join("e").replace(/^e/,"1e"):t(e)}function aq(e){let t=e.split(/[eE]/);if(t.length===1)return e;let r=+e;if(Number.isSafeInteger(r))return`${r}`;let n=e.charAt(0)==="-",i=+t[1],o=t[0].split("."),s=(n?o[0].substring(1):o[0])||"",c=o[1]||"",a=(g,v)=>{let S=Math.abs(v)-g.length,M=S>0?`${"0".repeat(S)}${g}`:g;return`${M.slice(0,v)}.${M.slice(v)}`},d=(g,v)=>{let S=v>g.length?`${g}${"0".repeat(v-g.length)}`:g;return`${S.slice(0,v)}.${S.slice(v)}`},h=i>0?`${s}${d(c,i)}`:`${a(s,i)}${c}`;return`${n?"-":""}${h.charAt(0)==="."?"0":""}${h.replace(eq,"").replace(VA,"")}`}function cq(e){return Tg.some(t=>e.includes(t))}function WA(e,t,r){let n=t.split(".")[1];if(n){let i=n.match(oq)[0];if(i&&r.delocalize(e).length!==t.length&&n.indexOf("e")===-1){let o=r.decimal;return e=e.includes(o)?e:`${e}${o}`,e.padEnd(e.length+i.length,r.localize("0"))}}return e}function lx(e,t="cldr"){let r=t==="cldr"?uq:lq;return e?r.includes(e)?e:(e=e.toLowerCase(),e==="nb"?"no":t==="t9n"&&e==="pt"?"pt-BR":(e.includes("-")&&(e=e.replace(/(\w+)-(\w+)/,(n,i,o)=>`${i}-${o.toUpperCase()}`),r.includes(e)||(e=e.split("-")[0])),e==="zh"?"zh-CN":r.includes(e)?e:(console.warn(`Translations for the "${e}" locale are not available and will fall back to the default, English (en).`),Wc))):Wc}function cn(e){pq(e),Mg.size===0&&jA?.observe(document.documentElement,{attributes:!0,attributeFilter:["lang"],subtree:!0}),Mg.add(e)}function pq(e){e.effectiveLocale=mq(e)}function ln(e){Mg.delete(e),Mg.size===0&&jA.disconnect()}function mq(e){return e.el.lang||Do(e.el,"[lang]")?.lang||document.documentElement.lang||Wc}var eq,tq,$n,VA,rq,nq,iq,oq,zA,Wc,lq,uq,dq,BA,ax,GA,fq,Mg,jA,cx,Uo,Vo=V(()=>{jr();Eg();$o();eq=new RegExp("\\.(0+)?$"),tq=new RegExp("0+$"),$n=class e{constructor(t){if(t instanceof e)return t;let[r,n]=aq(t).split(".").concat("");this.value=BigInt(r+n.padEnd(e.DECIMALS,"0").slice(0,e.DECIMALS))+BigInt(e.ROUNDED&&n[e.DECIMALS]>="5"),this.isNegative=t.charAt(0)==="-"}getIntegersAndDecimals(){let t=this.value.toString().replace("-","").padStart(e.DECIMALS+1,"0"),r=t.slice(0,-e.DECIMALS),n=t.slice(-e.DECIMALS).replace(tq,"");return{integers:r,decimals:n}}toString(){let{integers:t,decimals:r}=this.getIntegersAndDecimals();return`${this.isNegative?"-":""}${t}${r.length?"."+r:""}`}formatToParts(t){let{integers:r,decimals:n}=this.getIntegersAndDecimals(),i=t.numberFormatter.formatToParts(BigInt(r));return this.isNegative&&i.unshift({type:"minusSign",value:t.minusSign}),n.length&&(i.push({type:"decimal",value:t.decimal}),n.split("").forEach(o=>i.push({type:"fraction",value:o}))),i}format(t){let{integers:r,decimals:n}=this.getIntegersAndDecimals(),i=`${this.isNegative?t.minusSign:""}${t.numberFormatter.format(BigInt(r))}`,o=n.length?`${t.decimal}${n.split("").map(s=>t.numberFormatter.format(Number(s))).join("")}`:"";return`${i}${o}`}add(t){return e.fromBigInt(this.value+new e(t).value)}subtract(t){return e.fromBigInt(this.value-new e(t).value)}multiply(t){return e._divRound(this.value*new e(t).value,e.SHIFT)}divide(t){return e._divRound(this.value*e.SHIFT,new e(t).value)}};$n.DECIMALS=100;$n.ROUNDED=!0;$n.SHIFT=BigInt("1"+"0".repeat($n.DECIMALS));$n._divRound=(e,t)=>$n.fromBigInt(e/t+($n.ROUNDED?e*BigInt(2)/t%BigInt(2):BigInt(0)));$n.fromBigInt=e=>Object.assign(Object.create($n.prototype),{value:e,isNegative:e<BigInt(0)});VA=/^([-0])0+(?=\d)/,rq=/(?!^\.)\.$/,nq=/(?!^-)-/g,iq=/^-\b0\b\.?0*$/,oq=/0*$/,zA=e=>Yy(e,t=>{let r=t.replace(nq,"").replace(rq,"").replace(VA,"$1");return Fo(r)?iq.test(r)?r:sq(r):t});Wc="en",lq=["ar","bg","bs","ca","cs","da","de","el",Wc,"es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","no","nl","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],uq=["ar","bg","bs","ca","cs","da","de","de-AT","de-CH","el",Wc,"en-AU","en-CA","en-GB","es","es-MX","et","fi","fr","fr-CH","he","hi","hr","hu","id","it","it-CH","ja","ko","lt","lv","mk","no","nl","pl","pt","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],dq=["arab","arabext","latn"],BA=e=>dq.includes(e),ax=new Intl.NumberFormat().resolvedOptions().numberingSystem,GA=ax==="arab"||!BA(ax)?"latn":ax,fq=e=>BA(e)?e:GA;Mg=new Set;jA=yr("mutation",e=>{e.forEach(t=>{let r=t.target;Mg.forEach(n=>{if(!pA(r,n.el))return;let o=Do(n.el,"[lang]");if(!o){n.effectiveLocale=Wc;return}let s=o.lang;n.effectiveLocale=o.hasAttribute("lang")&&s===""?Wc:s})})});cx=class{constructor(){this.delocalize=t=>this._numberFormatOptions?Yy(t,r=>r.replace(new RegExp(`[${this._minusSign}]`,"g"),"-").replace(new RegExp(`[${this._group}]`,"g"),"").replace(new RegExp(`[${this._decimal}]`,"g"),".").replace(new RegExp(`[${this._digits.join("")}]`,"g"),this._getDigitIndex)):t,this.localize=t=>this._numberFormatOptions?Yy(t,r=>Fo(r.trim())?new $n(r.trim()).format(this).replace(new RegExp(`[${this._actualGroup}]`,"g"),this._group):r):t}get group(){return this._group}get decimal(){return this._decimal}get minusSign(){return this._minusSign}get digits(){return this._digits}get numberFormatter(){return this._numberFormatter}get numberFormatOptions(){return this._numberFormatOptions}set numberFormatOptions(t){if(t.locale=lx(t?.locale),t.numberingSystem=fq(t?.numberingSystem),!this._numberFormatOptions&&t.locale===Wc&&t.numberingSystem===GA&&Object.keys(t).length===2||JSON.stringify(this._numberFormatOptions)===JSON.stringify(t))return;this._numberFormatOptions=t,this._numberFormatter=new Intl.NumberFormat(this._numberFormatOptions.locale,this._numberFormatOptions),this._digits=[...new Intl.NumberFormat(this._numberFormatOptions.locale,{useGrouping:!1,numberingSystem:this._numberFormatOptions.numberingSystem}).format(9876543210)].reverse();let r=new Map(this._digits.map((i,o)=>[i,o])),n=new Intl.NumberFormat(this._numberFormatOptions.locale,{numberingSystem:this._numberFormatOptions.numberingSystem}).formatToParts(-123456789e-1);this._actualGroup=n.find(i=>i.type==="group").value,this._group=this._actualGroup.trim().length===0||this._actualGroup==" "?"\xA0":this._actualGroup,this._decimal=n.find(i=>i.type==="decimal").value,this._minusSign=n.find(i=>i.type==="minusSign").value,this._getDigitIndex=i=>r.get(i)}},Uo=new cx});async function hq(e,t){let r=`${t}_${e}`;return Jy[r]||(Jy[r]=fetch(Ou(`./assets/${t}/t9n/messages_${e}.json`)).then(n=>(n.ok||HA(),n.json())).catch(()=>HA())),Jy[r]}function HA(){throw new Error("could not fetch component message bundle")}function ux(e){e.messages={...e.defaultMessages,...e.messageOverrides}}function gq(){}async function Fn(e){e.defaultMessages=await qA(e,e.effectiveLocale),ux(e)}async function qA(e,t){if(!vn())return{};let{el:r}=e,i=r.tagName.toLowerCase().replace("calcite-","");return hq(lx(t,"t9n"),i)}async function Un(e,t){e.defaultMessages=await qA(e,t),ux(e)}function Vn(e){e.onMessagesChange=wq}function zn(e){e.onMessagesChange=gq}function wq(){ux(this)}var Jy,la=V(()=>{Wt();Vo();oa();Jy={}});function JA({icon:e,scale:t}){let r=YA[t],n=_q(e),i=n.charAt(n.length-1)==="F";return`${i?n.substring(0,n.length-1):n}${r}${i?"F":""}`}async function bq(e){let t=JA(e),r=XA(t);if(r)return r;dx[t]||(dx[t]=fetch(Ou(`./assets/icon/${t}.json`)).then(i=>i.json()).catch(()=>(console.error(`"${t}" is not a valid calcite-ui-icon name`),"")));let n=await dx[t];return ZA[t]=n,n}function vq(e){return XA(JA(e))}function XA(e){return ZA[e]}function _q(e){let t=!isNaN(Number(e.charAt(0))),r=e.split("-");if(r.length>0){let i=/[a-z]/i;e=r.map((o,s)=>o.replace(i,function(a,d){return s===0&&d===0?a:a.toUpperCase()})).join("")}return t?`i${e}`:e}function Hr(){if(typeof customElements>"u")return;["calcite-icon"].forEach(t=>{switch(t){case"calcite-icon":customElements.get(t)||customElements.define(t,Cq);break}})}var yq,ZA,dx,YA,Sq,xq,Cq,bs=V(()=>{Wt();jr();$o();oa();yq={icon:"icon",flipRtl:"flip-rtl"},ZA={},dx={},YA={s:16,m:24,l:32};Sq=":host{display:inline-flex;color:var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))}:host([scale=s]){inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px}:host([scale=m]){inline-size:24px;block-size:24px;min-inline-size:24px;min-block-size:24px}:host([scale=l]){inline-size:32px;block-size:32px;min-inline-size:32px;min-block-size:32px}.flip-rtl{transform:scaleX(-1)}.svg{display:block}:host([hidden]){display:none}[hidden]{display:none}",xq=Sq,Cq=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.icon=null,this.flipRtl=!1,this.scale="m",this.textLabel=void 0,this.pathData=void 0,this.visible=!1}connectedCallback(){this.visible||this.waitUntilVisible(()=>{this.visible=!0,this.loadIconPathData()})}disconnectedCallback(){this.intersectionObserver?.disconnect(),this.intersectionObserver=null}render(){let{el:t,flipRtl:r,pathData:n,scale:i,textLabel:o}=this,s=Fc(t),c=YA[i],a=!!o,d=[].concat(n||"");return X(Gr,{key:"724265acdc6fb528bf7b25d7ec445c73a63f4c8e","aria-hidden":Ir(!a),"aria-label":a?o:null,role:a?"img":null},X("svg",{key:"864ee2d80bebd282543ba5d94c57f84b48a6204d","aria-hidden":"true",class:{[yq.flipRtl]:s==="rtl"&&r,svg:!0},fill:"currentColor",height:"100%",viewBox:`0 0 ${c} ${c}`,width:"100%",xmlns:"http://www.w3.org/2000/svg"},d.map(h=>typeof h=="string"?X("path",{d:h}):X("path",{d:h.d,opacity:"opacity"in h?h.opacity:1}))))}async loadIconPathData(){let{icon:t,scale:r,visible:n}=this;if(!vn()||!t||!n)return;let i={icon:t,scale:r},o=vq(i)||await bq(i);t===this.icon&&(this.pathData=o)}waitUntilVisible(t){if(this.intersectionObserver=yr("intersection",r=>{r.forEach(n=>{n.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,t())})},{rootMargin:"50px"}),!this.intersectionObserver){t();return}this.intersectionObserver.observe(this.el)}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{icon:["loadIconPathData"],scale:["loadIconPathData"]}}static get style(){return xq}},[1,"calcite-icon",{icon:[513],flipRtl:[516,"flip-rtl"],scale:[513],textLabel:[1,"text-label"],pathData:[32],visible:[32]},void 0,{icon:["loadIconPathData"],scale:["loadIconPathData"]}]);Hr()});function Xn(){if(typeof customElements>"u")return;["calcite-loader"].forEach(t=>{switch(t){case"calcite-loader":customElements.get(t)||customElements.define(t,Mq);break}})}var Hp,Tq,Eq,Mq,Bc=V(()=>{Wt();Wp();Vo();Hp={loader:"loader",loaderParts:"loader__svgs",loaderPart:"loader__svg",loaderPartId:e=>`${Hp.loaderPart}--${e}`,loaderText:"loader__text",loaderPercentage:"loader__percentage"},Tq='@charset "UTF-8";@media (prefers-reduced-motion: reduce){:root{--calcite-internal-duration-factor:0}}:host{position:relative;margin-inline:auto;display:none;align-items:center;justify-content:center;opacity:1;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke:var(--calcite-color-brand);stroke-width:3;fill:none;transform:scale(1, 1);animation:loader-color-shift calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) alternate-reverse infinite linear;padding-block:var(--calcite-loader-padding, 4rem);will-change:contents}:host([scale=s]){--calcite-loader-font-size:var(--calcite-font-size--3);--calcite-loader-size:2rem;--calcite-loader-size-inline:0.75rem;--calcite-internal-loader-value-line-height:0.625rem}:host([scale=m]){--calcite-loader-font-size:var(--calcite-font-size-0);--calcite-loader-size:4rem;--calcite-loader-size-inline:1rem;--calcite-internal-loader-value-line-height:1.375rem}:host([scale=l]){--calcite-loader-font-size:var(--calcite-font-size-2);--calcite-loader-size:6rem;--calcite-loader-size-inline:1.5rem;--calcite-internal-loader-value-line-height:1.71875rem}:host([no-padding]){padding-block:0px}:host{display:flex}.loader__text{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;color:var(--calcite-color-text-1);margin-block-start:calc(var(--calcite-loader-size) + 1.5rem)}.loader__percentage{display:block;text-align:center;color:var(--calcite-color-text-1);font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size);line-height:var(--calcite-internal-loader-value-line-height);align-self:center}.loader__svgs{position:absolute;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);animation-iteration-count:infinite;animation-timing-function:linear;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 6.66 / var(--calcite-internal-duration-factor));animation-name:loader-clockwise;display:flex}.loader__svg{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size);block-size:var(--calcite-loader-size);animation-iteration-count:infinite;animation-timing-function:linear}.loader__svg--1{animation-name:loader-offset-1}.loader__svg--2{animation-name:loader-offset-2}.loader__svg--3{animation-name:loader-offset-3}:host([type=determinate]),:host([type=determinate-value]){animation:none;stroke:var(--calcite-color-border-3)}:host([type=determinate]) .loader__svgs,:host([type=determinate-value]) .loader__svgs{animation:none}:host([type=determinate]) .loader__svg--3,:host([type=determinate-value]) .loader__svg--3{animation:none;stroke:var(--calcite-color-brand);stroke-dasharray:150.79632;transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([inline]){position:relative;margin:0px;animation:none;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size-inline);min-block-size:var(--calcite-loader-size-inline);inline-size:var(--calcite-loader-size-inline);margin-inline-end:calc(var(--calcite-loader-size-inline) * 0.5);vertical-align:calc(var(--calcite-loader-size-inline) * -1 * 0.2)}:host([inline]) .loader__svgs{inset-block-start:0px;margin:0px;inset-inline-start:0;inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}:host([inline]) .loader__svg{inline-size:var(--calcite-loader-size-inline);block-size:var(--calcite-loader-size-inline)}:host([complete]){opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1000ms, transform var(--calcite-internal-animation-timing-medium) linear 1000ms}:host([complete]) .loader__svgs{opacity:0;transform:scale(0.75, 0.75);transform-origin:center;transition:opacity calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms, transform calc(180ms * var(--calcite-internal-duration-factor)) linear 800ms}:host([complete]) .loader__percentage{color:var(--calcite-color-brand);transform:scale(1.05, 1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear, transform var(--calcite-internal-animation-timing-medium) linear}.loader__svg--1{stroke-dasharray:27.9252444444 139.6262222222;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 4.8 / var(--calcite-internal-duration-factor))}@keyframes loader-offset-1{0%{stroke-dasharray:27.9252444444 251.3272;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222 139.6262222222;stroke-dashoffset:-83.7757333333}100%{stroke-dasharray:27.9252444444 251.3272;stroke-dashoffset:-279.2524444444}}.loader__svg--2{stroke-dasharray:55.8504888889 139.6262222222;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 6.4 / var(--calcite-internal-duration-factor))}@keyframes loader-offset-2{0%{stroke-dasharray:55.8504888889 223.4019555556;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222 139.6262222222;stroke-dashoffset:-97.7383555556}100%{stroke-dasharray:55.8504888889 223.4019555556;stroke-dashoffset:-279.2524444444}}.loader__svg--3{stroke-dasharray:13.9626222222 139.6262222222;animation-duration:calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 7.734 / var(--calcite-internal-duration-factor))}@keyframes loader-offset-3{0%{stroke-dasharray:13.9626222222 265.2898222222;stroke-dashoffset:0}50%{stroke-dasharray:139.6262222222 139.6262222222;stroke-dashoffset:-76.7944222222}100%{stroke-dasharray:13.9626222222 265.2898222222;stroke-dashoffset:-279.2524444444}}@keyframes loader-color-shift{0%{stroke:var(--calcite-color-brand)}33%{stroke:var(--calcite-color-brand-press)}66%{stroke:var(--calcite-color-brand-hover)}100%{stroke:var(--calcite-color-brand)}}@keyframes loader-clockwise{100%{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}',Eq=Tq,Mq=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.formatValue=()=>this.type!=="determinate-value"?`${this.value}`:this.formatter.format(this.value/100),this.complete=!1,this.inline=!1,this.label=void 0,this.scale="m",this.type="indeterminate",this.value=0,this.text="",this.effectiveLocale=""}valueChangeHandler(){this.complete=this.type.startsWith("determinate")&&this.value===100}connectedCallback(){cn(this),this.updateFormatter()}disconnectedCallback(){ln(this)}componentWillLoad(){requestAnimationFrame(()=>this.valueChangeHandler())}render(){let{el:t,inline:r,label:n,scale:i,text:o,type:s,value:c}=this,a=t.id||sa(),d=.45,h=r?this.getInlineSize(i):this.getSize(i),g=h*d,v=`0 0 ${h} ${h}`,S=s.startsWith("determinate"),M=2*g*Math.PI,I=c/100*M,R=M-I,B=Math.floor(c),F={"stroke-dasharray":`${I} ${R}`};return X(Gr,{key:"8272bdfae9fff51b19ed8fa66197eb93b53feb4c","aria-label":n,"aria-valuemax":S?"100":void 0,"aria-valuemin":S?"0":void 0,"aria-valuenow":S?B.toString():void 0,id:a,role:"progressbar"},X("div",{key:"3d410c178af39bb57cc478bdd06c0392f6ba71a3",class:Hp.loaderParts},[1,2,3].map(G=>X("svg",{"aria-hidden":"true",class:{[Hp.loaderPart]:!0,[Hp.loaderPartId(G)]:!0},key:G,style:S&&G===3?F:void 0,viewBox:v},X("circle",{cx:h/2,cy:h/2,r:g}))),S&&X("div",{key:"4ccc633930dee031bf769908d712df39e0677bbb",class:Hp.loaderPercentage},this.formatValue())),o&&X("div",{key:"6d0d51988bdfafee2a19faed9e14d3bda06d79b5",class:Hp.loaderText},o))}formatterPropsChange(){this.updateFormatter()}getSize(t){return{s:32,m:56,l:80}[t]}getInlineSize(t){return{s:12,m:16,l:20}[t]}updateFormatter(){this.type!=="determinate-value"||this.formatter?.resolvedOptions().locale===this.effectiveLocale||(this.formatter=new Intl.NumberFormat(this.effectiveLocale,{style:"percent"}))}get el(){return this}static get watchers(){return{value:["valueChangeHandler"],effectiveLocale:["formatterPropsChange"],type:["formatterPropsChange"]}}static get style(){return Eq}},[1,"calcite-loader",{complete:[1540],inline:[516],label:[1],scale:[513],type:[513],value:[2],text:[1],effectiveLocale:[32]},void 0,{value:["valueChangeHandler"],effectiveLocale:["formatterPropsChange"],type:["formatterPropsChange"]}]);Xn()});function px(){if(typeof customElements>"u")return;["calcite-button","calcite-icon","calcite-loader"].forEach(t=>{switch(t){case"calcite-button":customElements.get(t)||customElements.define(t,fx);break;case"calcite-icon":customElements.get(t)||Hr();break;case"calcite-loader":customElements.get(t)||Xn();break}})}var Ai,Pq,Iq,fx,KA=V(()=>{Wt();sx();bg();qy();ca();Vo();$o();zc();la();oa();jr();bs();Bc();Ai={buttonLoader:"calcite-button--loader",content:"content",contentSlotted:"content--slotted",icon:"icon",iconStart:"icon--start",iconEnd:"icon--end",loadingIn:"loading-in",loadingOut:"loading-out",iconStartEmpty:"icon-start-empty",iconEndEmpty:"icon-end-empty",buttonPadding:"button-padding",buttonPaddingShrunk:"button-padding--shrunk"},Pq=`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;inline-size:auto;vertical-align:middle}:host([round]){border-radius:50px}:host([round]) a,:host([round]) button{border-radius:50px}:host button,:host a{outline-color:transparent}:host button:focus,:host a:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(
|
|
28
28
|
2px *
|
|
29
29
|
calc(
|
|
30
30
|
1 -
|
|
@@ -34,7 +34,7 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`)}Ij(thi
|
|
|
34
34
|
1
|
|
35
35
|
)
|
|
36
36
|
)
|
|
37
|
-
)}:host button,:host a{--calcite-button-content-margin-internal:0.5rem;--calcite-button-padding-x-internal:7px;--calcite-button-padding-y-internal:3px;padding-block:var(--calcite-button-padding-y-internal);padding-inline:var(--calcite-button-padding-x-internal);position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;align-items:center;justify-content:center;border-radius:0px;border-style:none;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, box-shadow var(--calcite-animation-timing) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out}:host button:hover,:host a:hover{text-decoration-line:none}:host button span,:host a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.content{margin-inline:var(--calcite-button-content-margin-internal)}.icon-start-empty .content{margin-inline-start:unset}.icon-end-empty .content{margin-inline-end:unset}:host([scale=m]) button,:host([scale=m]) a{--calcite-button-content-margin-internal:0.75rem}:host([scale=l]) button,:host([scale=l]) a{--calcite-button-content-margin-internal:1rem}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}:host([alignment=center]:not([width=auto])) a,:host([alignment=center]:not([width=auto])) button{justify-content:center}:host([alignment=start]:not([width=auto])) a,:host([alignment=start]:not([width=auto])) button{justify-content:flex-start}:host([alignment=end]:not([width=auto])) a,:host([alignment=end]:not([width=auto])) button{justify-content:flex-end}:host([alignment*=space-between]:not([width=auto])) a,:host([alignment*=space-between]:not([width=auto])) button{justify-content:space-between}:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start{margin-inline-end:auto}:host([alignment=icon-start-space-between]:not([width=auto])) a,:host([alignment=icon-start-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end{margin-inline-start:auto}:host([alignment=icon-end-space-between]:not([width=auto])) a,:host([alignment=icon-end-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=center]) a:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:var(--calcite-button-content-margin-internal)}.icon{position:relative;margin:0px;display:inline-flex;font-weight:var(--calcite-font-weight-normal);line-height:inherit}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}@keyframes loader-in{0%{inline-size:0;opacity:0;transform:scale(0.5)}100%{inline-size:1em;opacity:1;transform:scale(1)}}@keyframes loader-out{0%{inline-size:1em;opacity:1;transform:scale(1)}100%{inline-size:0;opacity:0;transform:scale(0.5)}}.calcite-button--loader{display:flex}.calcite-button--loader calcite-loader{margin:0px}:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,:host([loading]) a.content--slotted .calcite-button--loader calcite-loader{margin-inline-end:var(--calcite-button-content-margin-internal)}:host([loading]) button:not(.content--slotted) .icon--start,:host([loading]) button:not(.content--slotted) .icon--end,:host([loading]) a:not(.content--slotted) .icon--start,:host([loading]) a:not(.content--slotted) .icon--end{display:none}:host([appearance]) button,:host([appearance]) a{border-width:1px;border-style:solid;border-color:transparent}:host([kind=brand]) button,:host([kind=brand]) a{background-color:var(--calcite-color-brand);color:var(--calcite-color-text-inverse)}:host([kind=brand]) button:hover,:host([kind=brand]) button:focus,:host([kind=brand]) a:hover,:host([kind=brand]) a:focus{background-color:var(--calcite-color-brand-hover)}:host([kind=brand]) button:active,:host([kind=brand]) a:active{background-color:var(--calcite-color-brand-press)}:host([kind=brand]) button calcite-loader,:host([kind=brand]) a calcite-loader{color:var(--calcite-color-text-inverse)}:host([kind=danger]) button,:host([kind=danger]) a{background-color:var(--calcite-color-status-danger);color:var(--calcite-color-text-inverse)}:host([kind=danger]) button:hover,:host([kind=danger]) button:focus,:host([kind=danger]) a:hover,:host([kind=danger]) a:focus{background-color:var(--calcite-color-status-danger-hover)}:host([kind=danger]) button:active,:host([kind=danger]) a:active{background-color:var(--calcite-color-status-danger-press)}:host([kind=danger]) button calcite-loader,:host([kind=danger]) a calcite-loader{color:var(--calcite-color-text-inverse)}:host([kind=neutral]) button,:host([kind=neutral]) a{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1)}:host([kind=neutral]) button:hover,:host([kind=neutral]) button:focus,:host([kind=neutral]) a:hover,:host([kind=neutral]) a:focus{background-color:var(--calcite-color-foreground-2)}:host([kind=neutral]) button:active,:host([kind=neutral]) a:active{background-color:var(--calcite-color-foreground-1)}:host([kind=neutral]) button calcite-loader,:host([kind=neutral]) a calcite-loader{color:var(--calcite-color-text-1)}:host([kind=inverse]) button,:host([kind=inverse]) a{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse)}:host([kind=inverse]) button:hover,:host([kind=inverse]) button:focus,:host([kind=inverse]) a:hover,:host([kind=inverse]) a:focus{background-color:var(--calcite-color-inverse-hover)}:host([kind=inverse]) button:active,:host([kind=inverse]) a:active{background-color:var(--calcite-color-inverse-press)}:host([kind=inverse]) button calcite-loader,:host([kind=inverse]) a calcite-loader{color:var(--calcite-color-text-inverse)}:host([appearance=outline-fill]) button,:host([appearance=outline-fill]) a{border-width:1px;border-style:solid;background-color:var(--calcite-color-foreground-1);box-shadow:inset 0 0 0 1px transparent}:host([appearance=outline-fill][kind=brand]) button,:host([appearance=outline-fill][kind=brand]) a{border-color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:hover,:host([appearance=outline-fill][kind=brand]) a:hover{border-color:var(--calcite-color-brand-hover);color:var(--calcite-color-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-brand-hover)}:host([appearance=outline-fill][kind=brand]) button:focus,:host([appearance=outline-fill][kind=brand]) a:focus{border-color:var(--calcite-color-brand);color:var(--calcite-color-brand);box-shadow:inset 0 0 0 2px var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:active,:host([appearance=outline-fill][kind=brand]) a:active{border-color:var(--calcite-color-brand-press);color:var(--calcite-color-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-color-brand-press)}:host([appearance=outline-fill][kind=brand]) button calcite-loader,:host([appearance=outline-fill][kind=brand]) a calcite-loader{color:var(--calcite-color-brand)}:host([appearance=outline-fill][kind=danger]) button,:host([appearance=outline-fill][kind=danger]) a{border-color:var(--calcite-color-status-danger);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:hover,:host([appearance=outline-fill][kind=danger]) a:hover{border-color:var(--calcite-color-status-danger-hover);color:var(--calcite-color-status-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-status-danger-hover)}:host([appearance=outline-fill][kind=danger]) button:focus,:host([appearance=outline-fill][kind=danger]) a:focus{border-color:var(--calcite-color-status-danger);color:var(--calcite-color-status-danger);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:active,:host([appearance=outline-fill][kind=danger]) a:active{border-color:var(--calcite-color-status-danger-press);color:var(--calcite-color-status-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger-press)}:host([appearance=outline-fill][kind=danger]) button calcite-loader,:host([appearance=outline-fill][kind=danger]) a calcite-loader{color:var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=neutral]) button,:host([appearance=outline-fill][kind=neutral]) a{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);border-color:var(--calcite-color-border-1)}:host([appearance=outline-fill][kind=neutral]) button:hover,:host([appearance=outline-fill][kind=neutral]) a:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button:focus,:host([appearance=outline-fill][kind=neutral]) a:focus{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button:active,:host([appearance=outline-fill][kind=neutral]) a:active{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button calcite-loader,:host([appearance=outline-fill][kind=neutral]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline-fill][kind=inverse]) button,:host([appearance=outline-fill][kind=inverse]) a{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);border-color:var(--calcite-color-inverse)}:host([appearance=outline-fill][kind=inverse]) button:hover,:host([appearance=outline-fill][kind=inverse]) a:hover{border-color:var(--calcite-color-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-inverse-hover)}:host([appearance=outline-fill][kind=inverse]) button:focus,:host([appearance=outline-fill][kind=inverse]) a:focus{border-color:var(--calcite-color-inverse);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse)}:host([appearance=outline-fill][kind=inverse]) button:active,:host([appearance=outline-fill][kind=inverse]) a:active{border-color:var(--calcite-color-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse-press)}:host([appearance=outline-fill][kind=inverse]) button calcite-loader,:host([appearance=outline-fill][kind=inverse]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline]) button,:host([appearance=outline]) a{border-width:1px;border-style:solid;background-color:transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance=outline][kind=brand]) button,:host([appearance=outline][kind=brand]) a{border-color:var(--calcite-color-brand);background-color:transparent;color:var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:hover,:host([appearance=outline][kind=brand]) a:hover{border-color:var(--calcite-color-brand-hover);color:var(--calcite-color-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-brand-hover)}:host([appearance=outline][kind=brand]) button:focus,:host([appearance=outline][kind=brand]) a:focus{border-color:var(--calcite-color-brand);color:var(--calcite-color-brand);box-shadow:inset 0 0 0 2px var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:active,:host([appearance=outline][kind=brand]) a:active{border-color:var(--calcite-color-brand-press);color:var(--calcite-color-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-color-brand-press)}:host([appearance=outline][kind=brand]) button calcite-loader,:host([appearance=outline][kind=brand]) a calcite-loader{color:var(--calcite-color-brand)}:host([appearance=outline][kind=danger]) button,:host([appearance=outline][kind=danger]) a{border-color:var(--calcite-color-status-danger);background-color:transparent;color:var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:hover,:host([appearance=outline][kind=danger]) a:hover{border-color:var(--calcite-color-status-danger-hover);color:var(--calcite-color-status-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-status-danger-hover)}:host([appearance=outline][kind=danger]) button:focus,:host([appearance=outline][kind=danger]) a:focus{border-color:var(--calcite-color-status-danger);color:var(--calcite-color-status-danger);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:active,:host([appearance=outline][kind=danger]) a:active{border-color:var(--calcite-color-status-danger-press);color:var(--calcite-color-status-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger-press)}:host([appearance=outline][kind=danger]) button calcite-loader,:host([appearance=outline][kind=danger]) a calcite-loader{color:var(--calcite-color-status-danger)}:host([appearance=outline][kind=neutral]) button,:host([appearance=outline][kind=neutral]) a{background-color:transparent;color:var(--calcite-color-text-1);border-color:var(--calcite-color-border-1)}:host([appearance=outline][kind=neutral]) button:hover,:host([appearance=outline][kind=neutral]) a:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button:focus,:host([appearance=outline][kind=neutral]) a:focus{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button:active,:host([appearance=outline][kind=neutral]) a:active{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button calcite-loader,:host([appearance=outline][kind=neutral]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline][kind=inverse]) button,:host([appearance=outline][kind=inverse]) a{background-color:transparent;color:var(--calcite-color-text-1);border-color:var(--calcite-color-inverse)}:host([appearance=outline][kind=inverse]) button:hover,:host([appearance=outline][kind=inverse]) a:hover{border-color:var(--calcite-color-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-inverse-hover)}:host([appearance=outline][kind=inverse]) button:focus,:host([appearance=outline][kind=inverse]) a:focus{border-color:var(--calcite-color-inverse);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse)}:host([appearance=outline][kind=inverse]) button:active,:host([appearance=outline][kind=inverse]) a:active{border-color:var(--calcite-color-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse-press)}:host([appearance=outline][kind=inverse]) button calcite-loader,:host([appearance=outline][kind=inverse]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline-fill][split-child=primary]) button,:host([appearance=outline][split-child=primary]) button{border-inline-end-width:0;border-inline-start-width:1px}:host([appearance=outline-fill][split-child=secondary]) button,:host([appearance=outline][split-child=secondary]) button{border-inline-start-width:0;border-inline-end-width:1px}:host([appearance=transparent]:not(.enable-editing-button)) button,:host([appearance=transparent]:not(.enable-editing-button)) a{background-color:transparent}:host([appearance=transparent]:not(.enable-editing-button)) button:hover,:host([appearance=transparent]:not(.enable-editing-button)) button:focus,:host([appearance=transparent]:not(.enable-editing-button)) a:hover,:host([appearance=transparent]:not(.enable-editing-button)) a:focus{background-color:var(--calcite-color-transparent-hover)}:host([appearance=transparent]:not(.enable-editing-button)) button:active,:host([appearance=transparent]:not(.enable-editing-button)) a:active{background-color:var(--calcite-color-transparent-press)}:host([appearance=transparent][kind=brand]) button,:host([appearance=transparent][kind=brand]) a{color:var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:hover,:host([appearance=transparent][kind=brand]) a:hover{color:var(--calcite-color-brand-hover)}:host([appearance=transparent][kind=brand]) button:focus,:host([appearance=transparent][kind=brand]) a:focus{color:var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:active,:host([appearance=transparent][kind=brand]) a:active{color:var(--calcite-color-brand-press)}:host([appearance=transparent][kind=brand]) button calcite-loader,:host([appearance=transparent][kind=brand]) a calcite-loader{color:var(--calcite-color-brand)}:host([appearance=transparent][kind=danger]) button,:host([appearance=transparent][kind=danger]) a{color:var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:hover,:host([appearance=transparent][kind=danger]) a:hover{color:var(--calcite-color-status-danger-hover)}:host([appearance=transparent][kind=danger]) button:focus,:host([appearance=transparent][kind=danger]) a:focus{color:var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:active,:host([appearance=transparent][kind=danger]) a:active{color:var(--calcite-color-status-danger-press)}:host([appearance=transparent][kind=danger]) button calcite-loader,:host([appearance=transparent][kind=danger]) a calcite-loader{color:var(--calcite-color-status-danger)}:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) button,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) a,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=transparent][kind=neutral].cancel-editing-button) button{border-block-start-width:1px;border-block-end-width:1px;color:var(--calcite-color-text-3);border-block-start-color:var(--calcite-color-border-input);border-block-end-color:var(--calcite-color-border-input);border-block-style:solid}:host([appearance=transparent][kind=neutral].cancel-editing-button) button:not(.content--slotted){--calcite-button-padding-y-internal:0}:host([appearance=transparent][kind=neutral].cancel-editing-button) button:hover{color:var(--calcite-color-text-1)}:host([appearance=transparent][kind=neutral].enable-editing-button) button{background-color:transparent}:host(.confirm-changes-button) button:focus,:host(.cancel-editing-button) button:focus,:host(.enable-editing-button) button:focus{outline-offset:-2px}:host([appearance=transparent][kind=inverse]) button,:host([appearance=transparent][kind=inverse]) a,:host([appearance=transparent][kind=inverse]) calcite-loader{color:var(--calcite-color-text-inverse)}:host([scale=s]) button.content--slotted,:host([scale=s]) a.content--slotted{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s][appearance=transparent]) button.content--slotted,:host([scale=s][appearance=transparent]) a.content--slotted{--calcite-button-padding-x-internal:0.5rem}:host([scale=s]) button,:host([scale=s]) a{--calcite-button-padding-y-internal:3px}:host([scale=m]) button.content--slotted,:host([scale=m]) a.content--slotted{--calcite-button-padding-x-internal:11px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) button,:host([scale=m]) a{--calcite-button-padding-y-internal:7px}:host([scale=m][appearance=transparent]) button.content--slotted,:host([scale=m][appearance=transparent]) a.content--slotted{--calcite-button-padding-x-internal:0.75rem}:host([scale=l]) button.content--slotted,:host([scale=l]) a.content--slotted{--calcite-button-padding-x-internal:15px;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .button-padding{--calcite-button-padding-x-internal:1rem;--calcite-button-padding-y-internal:11px}:host([scale=l]) .button-padding--shrunk{--calcite-button-padding-y-internal:9px}:host([scale=s]) button:not(.content--slotted),:host([scale=s]) a:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:3px;inline-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:1.5rem}:host([scale=m]) button:not(.content--slotted),:host([scale=m]) a:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:7px;inline-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2rem}:host([scale=l]) button:not(.content--slotted),:host([scale=l]) a:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:9px;inline-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2.75rem}:host(:is([scale=s],[scale=m],[scale=l])[width=full]) a:not(.content--slotted),:host(:is([scale=s],[scale=m],[scale=l])[width=full]) button:not(.content--slotted){inline-size:var(--calcite-container-size-content-fluid)}:host([scale=l][appearance=transparent]) button:not(.content--slotted),:host([scale=l][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y-internal:0.625rem}:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x-internal:23px;block-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x-internal:1.5rem}:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x-internal:2rem;block-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x-internal:33px}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x-internal:43px;block-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start+.icon--end,:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:1rem}:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x-internal:2.75rem}:host([hidden]){display:none}[hidden]{display:none}`,Iq=Pq,f4=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.mutationObserver=yr("mutation",()=>this.updateHasContent()),this.resizeObserver=yr("resize",()=>this.setTooltipText()),this.handleClick=()=>{let{type:t}=this;this.href||(t==="submit"?zy(this):t==="reset"&&CA(this))},this.setTooltipText=()=>{let{contentEl:t}=this;t&&(this.tooltipText=t.offsetWidth<t.scrollWidth&&this.el.innerText||null)},this.setChildEl=t=>{this.childEl=t,t&&this.resizeObserver?.observe(t)},this.alignment="center",this.appearance="solid",this.label=void 0,this.kind="brand",this.disabled=!1,this.form=void 0,this.download=!1,this.href=void 0,this.iconEnd=void 0,this.iconFlipRtl=void 0,this.iconStart=void 0,this.loading=!1,this.name=void 0,this.rel=void 0,this.round=!1,this.scale="m",this.splitChild=!1,this.target=void 0,this.type="button",this.width="auto",this.messages=void 0,this.messageOverrides=void 0,this.hasContent=!1,this.effectiveLocale="",this.defaultMessages=void 0,this.tooltipText=void 0}handleGlobalAttributesChanged(){to(this)}onMessagesChange(){}async connectedCallback(){cn(this),Vn(this),this.setupTextContentObserver(),jp(this),this.formEl=o4(this)}disconnectedCallback(){this.mutationObserver?.disconnect(),Hy(this),ln(this),zn(this),this.resizeObserver?.disconnect(),this.formEl=null}async componentWillLoad(){Nn(this),vn()&&(this.updateHasContent(),await Fn(this))}componentDidLoad(){Rn(this),this.setTooltipText()}componentDidRender(){Uc(this)}render(){let t=this.href?"a":"button",r=t,n=this.loading?X("div",{class:Ai.buttonLoader},X("calcite-loader",{class:this.loading?Ai.loadingIn:Ai.loadingOut,inline:!0,label:this.messages.loading,scale:this.scale==="l"?"m":"s"})):null,i=!this.iconStart&&!this.iconEnd,o=X("calcite-icon",{key:"f1036c0a1bf5740fe63806e3559ea66fac29b726",class:{[Ai.icon]:!0,[Ai.iconStart]:!0},flipRtl:this.iconFlipRtl==="start"||this.iconFlipRtl==="both",icon:this.iconStart,scale:On(this.scale)}),s=X("calcite-icon",{key:"d2c22ecf9ca23426b4c4a3b42d623f35ee988a44",class:{[Ai.icon]:!0,[Ai.iconEnd]:!0},flipRtl:this.iconFlipRtl==="end"||this.iconFlipRtl==="both",icon:this.iconEnd,scale:On(this.scale)}),c=X("span",{key:"d1803021f5fa106c9e296402ec0a1498ecdf36c7",class:Ai.content,ref:a=>this.contentEl=a},X("slot",{key:"d2f729c16f9c803ffa109b68d58a22a4383dd426"}));return X(Vc,{key:"2757c795d29f812cf11def4df108837b9971dcdb",disabled:this.disabled},X(r,{key:"e67a4882c8a0c13d6b5f98bc8c5b53c10ba36e3e","aria-busy":Ir(this.loading),"aria-expanded":this.el.ariaExpanded?this.el.ariaExpanded:null,"aria-label":this.loading?this.messages.loading:Cg(this),"aria-live":"polite",class:{[Ai.buttonPadding]:i,[Ai.buttonPaddingShrunk]:!i,[Ai.contentSlotted]:this.hasContent,[Ai.iconStartEmpty]:!this.iconStart,[Ai.iconEndEmpty]:!this.iconEnd},disabled:t==="button"?this.disabled:null,download:t==="a"?this.download===!0||this.download===""?"":this.download||null:null,href:t==="a"&&this.href,name:t==="button"&&this.name,onClick:this.handleClick,ref:this.setChildEl,rel:t==="a"&&this.rel,tabIndex:this.disabled?-1:null,target:t==="a"&&this.target,title:this.tooltipText,type:t==="button"&&this.type},n,this.iconStart?o:null,this.hasContent?c:null,this.iconEnd?s:null))}async setFocus(){await Dn(this),this.childEl?.focus()}effectiveLocaleChange(){Un(this,this.effectiveLocale)}updateHasContent(){let t=this.el.textContent.trim().length>0||this.el.childNodes.length>0;this.hasContent=this.el.childNodes.length===1&&this.el.childNodes[0]?.nodeName==="#text"?this.el.textContent?.trim().length>0:t}setupTextContentObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}onLabelClick(){this.handleClick(),this.setFocus()}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{"aria-expanded":["handleGlobalAttributesChanged"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return Iq}},[1,"calcite-button",{alignment:[513],appearance:[513],label:[1],kind:[513],disabled:[516],form:[513],download:[520],href:[513],iconEnd:[513,"icon-end"],iconFlipRtl:[513,"icon-flip-rtl"],iconStart:[513,"icon-start"],loading:[516],name:[513],rel:[513],round:[516],scale:[513],splitChild:[520,"split-child"],target:[513],type:[513],width:[513],messages:[1040],messageOverrides:[1040],hasContent:[32],effectiveLocale:[32],defaultMessages:[32],tooltipText:[32],setFocus:[64]},void 0,{"aria-expanded":["handleGlobalAttributesChanged"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}]);p4()});var QA={};os(QA,{CalciteButton:()=>Aq,defineCustomElement:()=>Lq});var Aq,Lq,eL=V(()=>{KA();Aq=f4,Lq=p4});function kq(e,t,r){return(t=Nq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tL(Object(r),!0).forEach(function(n){kq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Oq(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nq(e){var t=Oq(e,"string");return typeof t=="symbol"?t:t+""}function Ky(e,t){let{el:r}=e,n=t?.focusTrapEl||r;if(!n)return;let i={clickOutsideDeactivates:!0,escapeDeactivates:!1,fallbackFocus:n,setReturnFocus:o=>(Fy(o),!1),...t?.focusTrapOptions,document:r.ownerDocument,tabbableOptions:e4,trapStack:RI};e.focusTrap=Vq(n,i)}function Ag(e,t){e.focusTrapDisabled||e.focusTrap?.activate(t)}function Fu(e,t){e.focusTrap?.deactivate(t)}function Qy(e){e.focusTrap?.updateContainerElements(e.el)}var nL,Rq,Dq,Ig,$q,Fq,iL,oL,Pg,Xy,Uq,Vq,m4=V(()=>{jr();jx();nL={activateTrap:function(t,r){if(t.length>0){var n=t[t.length-1];n!==r&&n.pause()}var i=t.indexOf(r);i===-1||t.splice(i,1),t.push(r)},deactivateTrap:function(t,r){var n=t.indexOf(r);n!==-1&&t.splice(n,1),t.length>0&&t[t.length-1].unpause()}},Rq=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},Dq=function(t){return t?.key==="Escape"||t?.key==="Esc"||t?.keyCode===27},Ig=function(t){return t?.key==="Tab"||t?.keyCode===9},$q=function(t){return Ig(t)&&!t.shiftKey},Fq=function(t){return Ig(t)&&t.shiftKey},iL=function(t){return setTimeout(t,0)},oL=function(t,r){var n=-1;return t.every(function(i,o){return r(i)?(n=o,!1):!0}),n},Pg=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return typeof t=="function"?t.apply(void 0,n):t},Xy=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},Uq=[],Vq=function(t,r){var n=r?.document||document,i=r?.trapStack||Uq,o=rL({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:$q,isKeyBackward:Fq},r),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},c,a=function(K,H,se){return K&&K[H]!==void 0?K[H]:o[se||H]},d=function(K,H){var se=typeof H?.composedPath=="function"?H.composedPath():void 0;return s.containerGroups.findIndex(function(fe){var we=fe.container,Ee=fe.tabbableNodes;return we.contains(K)||se?.includes(we)||Ee.find(function(Ne){return Ne===K})})},h=function(K){var H=o[K];if(typeof H=="function"){for(var se=arguments.length,fe=new Array(se>1?se-1:0),we=1;we<se;we++)fe[we-1]=arguments[we];H=H.apply(void 0,fe)}if(H===!0&&(H=void 0),!H){if(H===void 0||H===!1)return H;throw new Error("`".concat(K,"` was specified but was not a node, or did not return a node"))}var Ee=H;if(typeof H=="string"&&(Ee=n.querySelector(H),!Ee))throw new Error("`".concat(K,"` as selector refers to no known node"));return Ee},g=function(){var K=h("initialFocus");if(K===!1)return!1;if(K===void 0||!$y(K,o.tabbableOptions))if(d(n.activeElement)>=0)K=n.activeElement;else{var H=s.tabbableGroups[0],se=H&&H.firstTabbableNode;K=se||h("fallbackFocus")}if(!K)throw new Error("Your focus-trap needs to have at least one focusable element");return K},v=function(){if(s.containerGroups=s.containers.map(function(K){var H=Qx(K,o.tabbableOptions),se=lA(K,o.tabbableOptions),fe=H.length>0?H[0]:void 0,we=H.length>0?H[H.length-1]:void 0,Ee=se.find(function(rt){return Ru(rt)}),Ne=se.slice().reverse().find(function(rt){return Ru(rt)}),Xe=!!H.find(function(rt){return $c(rt)>0});return{container:K,tabbableNodes:H,focusableNodes:se,posTabIndexesFound:Xe,firstTabbableNode:fe,lastTabbableNode:we,firstDomTabbableNode:Ee,lastDomTabbableNode:Ne,nextTabbableNode:function(mr){var Yr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Gt=H.indexOf(mr);return Gt<0?Yr?se.slice(se.indexOf(mr)+1).find(function(br){return Ru(br)}):se.slice(0,se.indexOf(mr)).reverse().find(function(br){return Ru(br)}):H[Gt+(Yr?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(K){return K.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!h("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find(function(K){return K.posTabIndexesFound})&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},S=function(K){var H=K.activeElement;if(H)return H.shadowRoot&&H.shadowRoot.activeElement!==null?S(H.shadowRoot):H},M=function(K){if(K!==!1&&K!==S(document)){if(!K||!K.focus){M(g());return}K.focus({preventScroll:!!o.preventScroll}),s.mostRecentlyFocusedNode=K,Rq(K)&&K.select()}},I=function(K){var H=h("setReturnFocus",K);return H||(H===!1?!1:K)},R=function(K){var H=K.target,se=K.event,fe=K.isBackward,we=fe===void 0?!1:fe;H=H||Xy(se),v();var Ee=null;if(s.tabbableGroups.length>0){var Ne=d(H,se),Xe=Ne>=0?s.containerGroups[Ne]:void 0;if(Ne<0)we?Ee=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:Ee=s.tabbableGroups[0].firstTabbableNode;else if(we){var rt=oL(s.tabbableGroups,function($i){var xn=$i.firstTabbableNode;return H===xn});if(rt<0&&(Xe.container===H||$y(H,o.tabbableOptions)&&!Ru(H,o.tabbableOptions)&&!Xe.nextTabbableNode(H,!1))&&(rt=Ne),rt>=0){var mr=rt===0?s.tabbableGroups.length-1:rt-1,Yr=s.tabbableGroups[mr];Ee=$c(H)>=0?Yr.lastTabbableNode:Yr.lastDomTabbableNode}else Ig(se)||(Ee=Xe.nextTabbableNode(H,!1))}else{var Gt=oL(s.tabbableGroups,function($i){var xn=$i.lastTabbableNode;return H===xn});if(Gt<0&&(Xe.container===H||$y(H,o.tabbableOptions)&&!Ru(H,o.tabbableOptions)&&!Xe.nextTabbableNode(H))&&(Gt=Ne),Gt>=0){var br=Gt===s.tabbableGroups.length-1?0:Gt+1,Gn=s.tabbableGroups[br];Ee=$c(H)>=0?Gn.firstTabbableNode:Gn.firstDomTabbableNode}else Ig(se)||(Ee=Xe.nextTabbableNode(H))}}else Ee=h("fallbackFocus");return Ee},B=function(K){var H=Xy(K);if(!(d(H,K)>=0)){if(Pg(o.clickOutsideDeactivates,K)){c.deactivate({returnFocus:o.returnFocusOnDeactivate});return}Pg(o.allowOutsideClick,K)||K.preventDefault()}},F=function(K){var H=Xy(K),se=d(H,K)>=0;if(se||H instanceof Document)se&&(s.mostRecentlyFocusedNode=H);else{K.stopImmediatePropagation();var fe,we=!0;if(s.mostRecentlyFocusedNode)if($c(s.mostRecentlyFocusedNode)>0){var Ee=d(s.mostRecentlyFocusedNode),Ne=s.containerGroups[Ee].tabbableNodes;if(Ne.length>0){var Xe=Ne.findIndex(function(rt){return rt===s.mostRecentlyFocusedNode});Xe>=0&&(o.isKeyForward(s.recentNavEvent)?Xe+1<Ne.length&&(fe=Ne[Xe+1],we=!1):Xe-1>=0&&(fe=Ne[Xe-1],we=!1))}}else s.containerGroups.some(function(rt){return rt.tabbableNodes.some(function(mr){return $c(mr)>0})})||(we=!1);else we=!1;we&&(fe=R({target:s.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(s.recentNavEvent)})),M(fe||s.mostRecentlyFocusedNode||g())}s.recentNavEvent=void 0},G=function(K){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=K;var se=R({event:K,isBackward:H});se&&(Ig(K)&&K.preventDefault(),M(se))},J=function(K){(o.isKeyForward(K)||o.isKeyBackward(K))&&G(K,o.isKeyBackward(K))},re=function(K){Dq(K)&&Pg(o.escapeDeactivates,K)!==!1&&(K.preventDefault(),c.deactivate())},de=function(K){var H=Xy(K);d(H,K)>=0||Pg(o.clickOutsideDeactivates,K)||Pg(o.allowOutsideClick,K)||(K.preventDefault(),K.stopImmediatePropagation())},W=function(){if(s.active)return nL.activateTrap(i,c),s.delayInitialFocusTimer=o.delayInitialFocus?iL(function(){M(g())}):M(g()),n.addEventListener("focusin",F,!0),n.addEventListener("mousedown",B,{capture:!0,passive:!1}),n.addEventListener("touchstart",B,{capture:!0,passive:!1}),n.addEventListener("click",de,{capture:!0,passive:!1}),n.addEventListener("keydown",J,{capture:!0,passive:!1}),n.addEventListener("keydown",re),c},me=function(){if(s.active)return n.removeEventListener("focusin",F,!0),n.removeEventListener("mousedown",B,!0),n.removeEventListener("touchstart",B,!0),n.removeEventListener("click",de,!0),n.removeEventListener("keydown",J,!0),n.removeEventListener("keydown",re),c},Le=function(K){var H=K.some(function(se){var fe=Array.from(se.removedNodes);return fe.some(function(we){return we===s.mostRecentlyFocusedNode})});H&&M(g())},xe=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(Le):void 0,ke=function(){xe&&(xe.disconnect(),s.active&&!s.paused&&s.containers.map(function(K){xe.observe(K,{subtree:!0,childList:!0})}))};return c={get active(){return s.active},get paused(){return s.paused},activate:function(K){if(s.active)return this;var H=a(K,"onActivate"),se=a(K,"onPostActivate"),fe=a(K,"checkCanFocusTrap");fe||v(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=n.activeElement,H?.();var we=function(){fe&&v(),W(),ke(),se?.()};return fe?(fe(s.containers.concat()).then(we,we),this):(we(),this)},deactivate:function(K){if(!s.active)return this;var H=rL({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},K);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,me(),s.active=!1,s.paused=!1,ke(),nL.deactivateTrap(i,c);var se=a(H,"onDeactivate"),fe=a(H,"onPostDeactivate"),we=a(H,"checkCanReturnFocus"),Ee=a(H,"returnFocus","returnFocusOnDeactivate");se?.();var Ne=function(){iL(function(){Ee&&M(I(s.nodeFocusedBeforeActivation)),fe?.()})};return Ee&&we?(we(I(s.nodeFocusedBeforeActivation)).then(Ne,Ne),this):(Ne(),this)},pause:function(K){if(s.paused||!s.active)return this;var H=a(K,"onPause"),se=a(K,"onPostPause");return s.paused=!0,H?.(),me(),ke(),se?.(),this},unpause:function(K){if(!s.paused||!s.active)return this;var H=a(K,"onUnpause"),se=a(K,"onPostUnpause");return s.paused=!1,H?.(),v(),W(),ke(),se?.(),this},updateContainerElements:function(K){var H=[].concat(K).filter(Boolean);return s.containers=H.map(function(se){return typeof se=="string"?n.querySelector(se):se}),s.active&&v(),ke(),this}},c.updateContainerElements(t),c}});function sL(e){return"opened"in e?e.opened:e.open}function Gc(e){zq(()=>{e.transitionEl&&bA(e.transitionEl,e.openTransitionProp,()=>{sL(e)?e.onBeforeOpen():e.onBeforeClose()},()=>{sL(e)?e.onOpen():e.onClose()})})}var zq,eb=V(()=>{Wt();jr();zq=fI});function h4(e,t){return(e+t)%t}var aL=V(()=>{});function ua(){if(typeof customElements>"u")return;["calcite-action","calcite-icon","calcite-loader"].forEach(t=>{switch(t){case"calcite-action":customElements.get(t)||customElements.define(t,jq);break;case"calcite-icon":customElements.get(t)||Hr();break;case"calcite-loader":customElements.get(t)||Xn();break}})}var zo,Wq,Bq,Gq,jq,Lg=V(()=>{Wt();jr();Wp();bg();ca();Vo();$o();zc();la();oa();bs();Bc();zo={button:"button",buttonTextVisible:"button--text-visible",buttonCompact:"button--compact",indicatorText:"indicator-text",iconContainer:"icon-container",slotContainer:"slot-container",slotContainerHidden:"slot-container--hidden",textContainer:"text-container",textContainerVisible:"text-container--visible",indicatorWithIcon:"indicator-with-icon",indicatorWithoutIcon:"indicator-without-icon"},Wq={tooltip:"tooltip"},Bq=`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;background-color:transparent}:host,button{border-end-end-radius:var(--calcite-action-corner-radius-end-end, var(--calcite-action-corner-radius, var(--calcite-corner-radius)));border-end-start-radius:var(--calcite-action-corner-radius-end-start, var(--calcite-action-corner-radius, var(--calcite-corner-radius)));border-start-end-radius:var(--calcite-action-corner-radius-start-end, var(--calcite-action-corner-radius, var(--calcite-corner-radius)));border-start-start-radius:var(--calcite-action-corner-radius-start-start, var(--calcite-action-corner-radius, var(--calcite-corner-radius)))}.button{position:relative;margin:0px;display:flex;inline-size:auto;cursor:pointer;align-items:center;justify-content:flex-start;border-style:none;font-family:var(--calcite-font-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);outline-color:transparent;background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1));color:var(--calcite-action-text-color, var(--calcite-color-text-3));text-align:unset;flex:1 0 auto}.button:hover,.button:focus{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-action-text-color-pressed, var(--calcite-color-text-1))}.button:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(
|
|
37
|
+
)}:host button,:host a{--calcite-button-content-margin-internal:0.5rem;--calcite-button-padding-x-internal:7px;--calcite-button-padding-y-internal:3px;padding-block:var(--calcite-button-padding-y-internal);padding-inline:var(--calcite-button-padding-x-internal);position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;align-items:center;justify-content:center;border-radius:0px;border-style:none;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, box-shadow var(--calcite-animation-timing) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out}:host button:hover,:host a:hover{text-decoration-line:none}:host button span,:host a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.content{margin-inline:var(--calcite-button-content-margin-internal)}.icon-start-empty .content{margin-inline-start:unset}.icon-end-empty .content{margin-inline-end:unset}:host([scale=m]) button,:host([scale=m]) a{--calcite-button-content-margin-internal:0.75rem}:host([scale=l]) button,:host([scale=l]) a{--calcite-button-content-margin-internal:1rem}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}:host([alignment=center]:not([width=auto])) a,:host([alignment=center]:not([width=auto])) button{justify-content:center}:host([alignment=start]:not([width=auto])) a,:host([alignment=start]:not([width=auto])) button{justify-content:flex-start}:host([alignment=end]:not([width=auto])) a,:host([alignment=end]:not([width=auto])) button{justify-content:flex-end}:host([alignment*=space-between]:not([width=auto])) a,:host([alignment*=space-between]:not([width=auto])) button{justify-content:space-between}:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start{margin-inline-end:auto}:host([alignment=icon-start-space-between]:not([width=auto])) a,:host([alignment=icon-start-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end{margin-inline-start:auto}:host([alignment=icon-end-space-between]:not([width=auto])) a,:host([alignment=icon-end-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=center]) a:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:var(--calcite-button-content-margin-internal)}.icon{position:relative;margin:0px;display:inline-flex;font-weight:var(--calcite-font-weight-normal);line-height:inherit}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}@keyframes loader-in{0%{inline-size:0;opacity:0;transform:scale(0.5)}100%{inline-size:1em;opacity:1;transform:scale(1)}}@keyframes loader-out{0%{inline-size:1em;opacity:1;transform:scale(1)}100%{inline-size:0;opacity:0;transform:scale(0.5)}}.calcite-button--loader{display:flex}.calcite-button--loader calcite-loader{margin:0px}:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,:host([loading]) a.content--slotted .calcite-button--loader calcite-loader{margin-inline-end:var(--calcite-button-content-margin-internal)}:host([loading]) button:not(.content--slotted) .icon--start,:host([loading]) button:not(.content--slotted) .icon--end,:host([loading]) a:not(.content--slotted) .icon--start,:host([loading]) a:not(.content--slotted) .icon--end{display:none}:host([appearance]) button,:host([appearance]) a{border-width:1px;border-style:solid;border-color:transparent}:host([kind=brand]) button,:host([kind=brand]) a{background-color:var(--calcite-color-brand);color:var(--calcite-color-text-inverse)}:host([kind=brand]) button:hover,:host([kind=brand]) button:focus,:host([kind=brand]) a:hover,:host([kind=brand]) a:focus{background-color:var(--calcite-color-brand-hover)}:host([kind=brand]) button:active,:host([kind=brand]) a:active{background-color:var(--calcite-color-brand-press)}:host([kind=brand]) button calcite-loader,:host([kind=brand]) a calcite-loader{color:var(--calcite-color-text-inverse)}:host([kind=danger]) button,:host([kind=danger]) a{background-color:var(--calcite-color-status-danger);color:var(--calcite-color-text-inverse)}:host([kind=danger]) button:hover,:host([kind=danger]) button:focus,:host([kind=danger]) a:hover,:host([kind=danger]) a:focus{background-color:var(--calcite-color-status-danger-hover)}:host([kind=danger]) button:active,:host([kind=danger]) a:active{background-color:var(--calcite-color-status-danger-press)}:host([kind=danger]) button calcite-loader,:host([kind=danger]) a calcite-loader{color:var(--calcite-color-text-inverse)}:host([kind=neutral]) button,:host([kind=neutral]) a{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1)}:host([kind=neutral]) button:hover,:host([kind=neutral]) button:focus,:host([kind=neutral]) a:hover,:host([kind=neutral]) a:focus{background-color:var(--calcite-color-foreground-2)}:host([kind=neutral]) button:active,:host([kind=neutral]) a:active{background-color:var(--calcite-color-foreground-1)}:host([kind=neutral]) button calcite-loader,:host([kind=neutral]) a calcite-loader{color:var(--calcite-color-text-1)}:host([kind=inverse]) button,:host([kind=inverse]) a{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse)}:host([kind=inverse]) button:hover,:host([kind=inverse]) button:focus,:host([kind=inverse]) a:hover,:host([kind=inverse]) a:focus{background-color:var(--calcite-color-inverse-hover)}:host([kind=inverse]) button:active,:host([kind=inverse]) a:active{background-color:var(--calcite-color-inverse-press)}:host([kind=inverse]) button calcite-loader,:host([kind=inverse]) a calcite-loader{color:var(--calcite-color-text-inverse)}:host([appearance=outline-fill]) button,:host([appearance=outline-fill]) a{border-width:1px;border-style:solid;background-color:var(--calcite-color-foreground-1);box-shadow:inset 0 0 0 1px transparent}:host([appearance=outline-fill][kind=brand]) button,:host([appearance=outline-fill][kind=brand]) a{border-color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:hover,:host([appearance=outline-fill][kind=brand]) a:hover{border-color:var(--calcite-color-brand-hover);color:var(--calcite-color-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-brand-hover)}:host([appearance=outline-fill][kind=brand]) button:focus,:host([appearance=outline-fill][kind=brand]) a:focus{border-color:var(--calcite-color-brand);color:var(--calcite-color-brand);box-shadow:inset 0 0 0 2px var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:active,:host([appearance=outline-fill][kind=brand]) a:active{border-color:var(--calcite-color-brand-press);color:var(--calcite-color-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-color-brand-press)}:host([appearance=outline-fill][kind=brand]) button calcite-loader,:host([appearance=outline-fill][kind=brand]) a calcite-loader{color:var(--calcite-color-brand)}:host([appearance=outline-fill][kind=danger]) button,:host([appearance=outline-fill][kind=danger]) a{border-color:var(--calcite-color-status-danger);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:hover,:host([appearance=outline-fill][kind=danger]) a:hover{border-color:var(--calcite-color-status-danger-hover);color:var(--calcite-color-status-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-status-danger-hover)}:host([appearance=outline-fill][kind=danger]) button:focus,:host([appearance=outline-fill][kind=danger]) a:focus{border-color:var(--calcite-color-status-danger);color:var(--calcite-color-status-danger);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:active,:host([appearance=outline-fill][kind=danger]) a:active{border-color:var(--calcite-color-status-danger-press);color:var(--calcite-color-status-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger-press)}:host([appearance=outline-fill][kind=danger]) button calcite-loader,:host([appearance=outline-fill][kind=danger]) a calcite-loader{color:var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=neutral]) button,:host([appearance=outline-fill][kind=neutral]) a{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);border-color:var(--calcite-color-border-1)}:host([appearance=outline-fill][kind=neutral]) button:hover,:host([appearance=outline-fill][kind=neutral]) a:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button:focus,:host([appearance=outline-fill][kind=neutral]) a:focus{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button:active,:host([appearance=outline-fill][kind=neutral]) a:active{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button calcite-loader,:host([appearance=outline-fill][kind=neutral]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline-fill][kind=inverse]) button,:host([appearance=outline-fill][kind=inverse]) a{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);border-color:var(--calcite-color-inverse)}:host([appearance=outline-fill][kind=inverse]) button:hover,:host([appearance=outline-fill][kind=inverse]) a:hover{border-color:var(--calcite-color-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-inverse-hover)}:host([appearance=outline-fill][kind=inverse]) button:focus,:host([appearance=outline-fill][kind=inverse]) a:focus{border-color:var(--calcite-color-inverse);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse)}:host([appearance=outline-fill][kind=inverse]) button:active,:host([appearance=outline-fill][kind=inverse]) a:active{border-color:var(--calcite-color-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse-press)}:host([appearance=outline-fill][kind=inverse]) button calcite-loader,:host([appearance=outline-fill][kind=inverse]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline]) button,:host([appearance=outline]) a{border-width:1px;border-style:solid;background-color:transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance=outline][kind=brand]) button,:host([appearance=outline][kind=brand]) a{border-color:var(--calcite-color-brand);background-color:transparent;color:var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:hover,:host([appearance=outline][kind=brand]) a:hover{border-color:var(--calcite-color-brand-hover);color:var(--calcite-color-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-brand-hover)}:host([appearance=outline][kind=brand]) button:focus,:host([appearance=outline][kind=brand]) a:focus{border-color:var(--calcite-color-brand);color:var(--calcite-color-brand);box-shadow:inset 0 0 0 2px var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:active,:host([appearance=outline][kind=brand]) a:active{border-color:var(--calcite-color-brand-press);color:var(--calcite-color-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-color-brand-press)}:host([appearance=outline][kind=brand]) button calcite-loader,:host([appearance=outline][kind=brand]) a calcite-loader{color:var(--calcite-color-brand)}:host([appearance=outline][kind=danger]) button,:host([appearance=outline][kind=danger]) a{border-color:var(--calcite-color-status-danger);background-color:transparent;color:var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:hover,:host([appearance=outline][kind=danger]) a:hover{border-color:var(--calcite-color-status-danger-hover);color:var(--calcite-color-status-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-status-danger-hover)}:host([appearance=outline][kind=danger]) button:focus,:host([appearance=outline][kind=danger]) a:focus{border-color:var(--calcite-color-status-danger);color:var(--calcite-color-status-danger);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:active,:host([appearance=outline][kind=danger]) a:active{border-color:var(--calcite-color-status-danger-press);color:var(--calcite-color-status-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger-press)}:host([appearance=outline][kind=danger]) button calcite-loader,:host([appearance=outline][kind=danger]) a calcite-loader{color:var(--calcite-color-status-danger)}:host([appearance=outline][kind=neutral]) button,:host([appearance=outline][kind=neutral]) a{background-color:transparent;color:var(--calcite-color-text-1);border-color:var(--calcite-color-border-1)}:host([appearance=outline][kind=neutral]) button:hover,:host([appearance=outline][kind=neutral]) a:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button:focus,:host([appearance=outline][kind=neutral]) a:focus{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button:active,:host([appearance=outline][kind=neutral]) a:active{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button calcite-loader,:host([appearance=outline][kind=neutral]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline][kind=inverse]) button,:host([appearance=outline][kind=inverse]) a{background-color:transparent;color:var(--calcite-color-text-1);border-color:var(--calcite-color-inverse)}:host([appearance=outline][kind=inverse]) button:hover,:host([appearance=outline][kind=inverse]) a:hover{border-color:var(--calcite-color-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-inverse-hover)}:host([appearance=outline][kind=inverse]) button:focus,:host([appearance=outline][kind=inverse]) a:focus{border-color:var(--calcite-color-inverse);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse)}:host([appearance=outline][kind=inverse]) button:active,:host([appearance=outline][kind=inverse]) a:active{border-color:var(--calcite-color-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse-press)}:host([appearance=outline][kind=inverse]) button calcite-loader,:host([appearance=outline][kind=inverse]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline-fill][split-child=primary]) button,:host([appearance=outline][split-child=primary]) button{border-inline-end-width:0;border-inline-start-width:1px}:host([appearance=outline-fill][split-child=secondary]) button,:host([appearance=outline][split-child=secondary]) button{border-inline-start-width:0;border-inline-end-width:1px}:host([appearance=transparent]:not(.enable-editing-button)) button,:host([appearance=transparent]:not(.enable-editing-button)) a{background-color:transparent}:host([appearance=transparent]:not(.enable-editing-button)) button:hover,:host([appearance=transparent]:not(.enable-editing-button)) button:focus,:host([appearance=transparent]:not(.enable-editing-button)) a:hover,:host([appearance=transparent]:not(.enable-editing-button)) a:focus{background-color:var(--calcite-color-transparent-hover)}:host([appearance=transparent]:not(.enable-editing-button)) button:active,:host([appearance=transparent]:not(.enable-editing-button)) a:active{background-color:var(--calcite-color-transparent-press)}:host([appearance=transparent][kind=brand]) button,:host([appearance=transparent][kind=brand]) a{color:var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:hover,:host([appearance=transparent][kind=brand]) a:hover{color:var(--calcite-color-brand-hover)}:host([appearance=transparent][kind=brand]) button:focus,:host([appearance=transparent][kind=brand]) a:focus{color:var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:active,:host([appearance=transparent][kind=brand]) a:active{color:var(--calcite-color-brand-press)}:host([appearance=transparent][kind=brand]) button calcite-loader,:host([appearance=transparent][kind=brand]) a calcite-loader{color:var(--calcite-color-brand)}:host([appearance=transparent][kind=danger]) button,:host([appearance=transparent][kind=danger]) a{color:var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:hover,:host([appearance=transparent][kind=danger]) a:hover{color:var(--calcite-color-status-danger-hover)}:host([appearance=transparent][kind=danger]) button:focus,:host([appearance=transparent][kind=danger]) a:focus{color:var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:active,:host([appearance=transparent][kind=danger]) a:active{color:var(--calcite-color-status-danger-press)}:host([appearance=transparent][kind=danger]) button calcite-loader,:host([appearance=transparent][kind=danger]) a calcite-loader{color:var(--calcite-color-status-danger)}:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) button,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) a,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=transparent][kind=neutral].cancel-editing-button) button{border-block-start-width:1px;border-block-end-width:1px;color:var(--calcite-color-text-3);border-block-start-color:var(--calcite-color-border-input);border-block-end-color:var(--calcite-color-border-input);border-block-style:solid}:host([appearance=transparent][kind=neutral].cancel-editing-button) button:not(.content--slotted){--calcite-button-padding-y-internal:0}:host([appearance=transparent][kind=neutral].cancel-editing-button) button:hover{color:var(--calcite-color-text-1)}:host([appearance=transparent][kind=neutral].enable-editing-button) button{background-color:transparent}:host(.confirm-changes-button) button:focus,:host(.cancel-editing-button) button:focus,:host(.enable-editing-button) button:focus{outline-offset:-2px}:host([appearance=transparent][kind=inverse]) button,:host([appearance=transparent][kind=inverse]) a,:host([appearance=transparent][kind=inverse]) calcite-loader{color:var(--calcite-color-text-inverse)}:host([scale=s]) button.content--slotted,:host([scale=s]) a.content--slotted{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s][appearance=transparent]) button.content--slotted,:host([scale=s][appearance=transparent]) a.content--slotted{--calcite-button-padding-x-internal:0.5rem}:host([scale=s]) button,:host([scale=s]) a{--calcite-button-padding-y-internal:3px}:host([scale=m]) button.content--slotted,:host([scale=m]) a.content--slotted{--calcite-button-padding-x-internal:11px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) button,:host([scale=m]) a{--calcite-button-padding-y-internal:7px}:host([scale=m][appearance=transparent]) button.content--slotted,:host([scale=m][appearance=transparent]) a.content--slotted{--calcite-button-padding-x-internal:0.75rem}:host([scale=l]) button.content--slotted,:host([scale=l]) a.content--slotted{--calcite-button-padding-x-internal:15px;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .button-padding{--calcite-button-padding-x-internal:1rem;--calcite-button-padding-y-internal:11px}:host([scale=l]) .button-padding--shrunk{--calcite-button-padding-y-internal:9px}:host([scale=s]) button:not(.content--slotted),:host([scale=s]) a:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:3px;inline-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:1.5rem}:host([scale=m]) button:not(.content--slotted),:host([scale=m]) a:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:7px;inline-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2rem}:host([scale=l]) button:not(.content--slotted),:host([scale=l]) a:not(.content--slotted){--calcite-button-padding-x-internal:0.125rem;--calcite-button-padding-y-internal:9px;inline-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2.75rem}:host(:is([scale=s],[scale=m],[scale=l])[width=full]) a:not(.content--slotted),:host(:is([scale=s],[scale=m],[scale=l])[width=full]) button:not(.content--slotted){inline-size:var(--calcite-container-size-content-fluid)}:host([scale=l][appearance=transparent]) button:not(.content--slotted),:host([scale=l][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-y-internal:0.625rem}:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x-internal:23px;block-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x-internal:1.5rem}:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x-internal:2rem;block-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x-internal:33px}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x-internal:43px;block-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start+.icon--end,:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:1rem}:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-button-padding-x-internal:2.75rem}:host([hidden]){display:none}[hidden]{display:none}`,Iq=Pq,fx=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.mutationObserver=yr("mutation",()=>this.updateHasContent()),this.resizeObserver=yr("resize",()=>this.setTooltipText()),this.handleClick=()=>{let{type:t}=this;this.href||(t==="submit"?zy(this):t==="reset"&&CA(this))},this.setTooltipText=()=>{let{contentEl:t}=this;t&&(this.tooltipText=t.offsetWidth<t.scrollWidth&&this.el.innerText||null)},this.setChildEl=t=>{this.childEl=t,t&&this.resizeObserver?.observe(t)},this.alignment="center",this.appearance="solid",this.label=void 0,this.kind="brand",this.disabled=!1,this.form=void 0,this.download=!1,this.href=void 0,this.iconEnd=void 0,this.iconFlipRtl=void 0,this.iconStart=void 0,this.loading=!1,this.name=void 0,this.rel=void 0,this.round=!1,this.scale="m",this.splitChild=!1,this.target=void 0,this.type="button",this.width="auto",this.messages=void 0,this.messageOverrides=void 0,this.hasContent=!1,this.effectiveLocale="",this.defaultMessages=void 0,this.tooltipText=void 0}handleGlobalAttributesChanged(){to(this)}onMessagesChange(){}async connectedCallback(){cn(this),Vn(this),this.setupTextContentObserver(),jp(this),this.formEl=ox(this)}disconnectedCallback(){this.mutationObserver?.disconnect(),Hy(this),ln(this),zn(this),this.resizeObserver?.disconnect(),this.formEl=null}async componentWillLoad(){Nn(this),vn()&&(this.updateHasContent(),await Fn(this))}componentDidLoad(){Rn(this),this.setTooltipText()}componentDidRender(){Uc(this)}render(){let t=this.href?"a":"button",r=t,n=this.loading?X("div",{class:Ai.buttonLoader},X("calcite-loader",{class:this.loading?Ai.loadingIn:Ai.loadingOut,inline:!0,label:this.messages.loading,scale:this.scale==="l"?"m":"s"})):null,i=!this.iconStart&&!this.iconEnd,o=X("calcite-icon",{key:"f1036c0a1bf5740fe63806e3559ea66fac29b726",class:{[Ai.icon]:!0,[Ai.iconStart]:!0},flipRtl:this.iconFlipRtl==="start"||this.iconFlipRtl==="both",icon:this.iconStart,scale:On(this.scale)}),s=X("calcite-icon",{key:"d2c22ecf9ca23426b4c4a3b42d623f35ee988a44",class:{[Ai.icon]:!0,[Ai.iconEnd]:!0},flipRtl:this.iconFlipRtl==="end"||this.iconFlipRtl==="both",icon:this.iconEnd,scale:On(this.scale)}),c=X("span",{key:"d1803021f5fa106c9e296402ec0a1498ecdf36c7",class:Ai.content,ref:a=>this.contentEl=a},X("slot",{key:"d2f729c16f9c803ffa109b68d58a22a4383dd426"}));return X(Vc,{key:"2757c795d29f812cf11def4df108837b9971dcdb",disabled:this.disabled},X(r,{key:"e67a4882c8a0c13d6b5f98bc8c5b53c10ba36e3e","aria-busy":Ir(this.loading),"aria-expanded":this.el.ariaExpanded?this.el.ariaExpanded:null,"aria-label":this.loading?this.messages.loading:Cg(this),"aria-live":"polite",class:{[Ai.buttonPadding]:i,[Ai.buttonPaddingShrunk]:!i,[Ai.contentSlotted]:this.hasContent,[Ai.iconStartEmpty]:!this.iconStart,[Ai.iconEndEmpty]:!this.iconEnd},disabled:t==="button"?this.disabled:null,download:t==="a"?this.download===!0||this.download===""?"":this.download||null:null,href:t==="a"&&this.href,name:t==="button"&&this.name,onClick:this.handleClick,ref:this.setChildEl,rel:t==="a"&&this.rel,tabIndex:this.disabled?-1:null,target:t==="a"&&this.target,title:this.tooltipText,type:t==="button"&&this.type},n,this.iconStart?o:null,this.hasContent?c:null,this.iconEnd?s:null))}async setFocus(){await Dn(this),this.childEl?.focus()}effectiveLocaleChange(){Un(this,this.effectiveLocale)}updateHasContent(){let t=this.el.textContent.trim().length>0||this.el.childNodes.length>0;this.hasContent=this.el.childNodes.length===1&&this.el.childNodes[0]?.nodeName==="#text"?this.el.textContent?.trim().length>0:t}setupTextContentObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}onLabelClick(){this.handleClick(),this.setFocus()}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{"aria-expanded":["handleGlobalAttributesChanged"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return Iq}},[1,"calcite-button",{alignment:[513],appearance:[513],label:[1],kind:[513],disabled:[516],form:[513],download:[520],href:[513],iconEnd:[513,"icon-end"],iconFlipRtl:[513,"icon-flip-rtl"],iconStart:[513,"icon-start"],loading:[516],name:[513],rel:[513],round:[516],scale:[513],splitChild:[520,"split-child"],target:[513],type:[513],width:[513],messages:[1040],messageOverrides:[1040],hasContent:[32],effectiveLocale:[32],defaultMessages:[32],tooltipText:[32],setFocus:[64]},void 0,{"aria-expanded":["handleGlobalAttributesChanged"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}]);px()});var QA={};os(QA,{CalciteButton:()=>Aq,defineCustomElement:()=>Lq});var Aq,Lq,eL=V(()=>{KA();Aq=fx,Lq=px});function kq(e,t,r){return(t=Nq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tL(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function rL(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?tL(Object(r),!0).forEach(function(n){kq(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):tL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Oq(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nq(e){var t=Oq(e,"string");return typeof t=="symbol"?t:t+""}function Ky(e,t){let{el:r}=e,n=t?.focusTrapEl||r;if(!n)return;let i={clickOutsideDeactivates:!0,escapeDeactivates:!1,fallbackFocus:n,setReturnFocus:o=>(Fy(o),!1),...t?.focusTrapOptions,document:r.ownerDocument,tabbableOptions:ex,trapStack:RI};e.focusTrap=Vq(n,i)}function Ag(e,t){e.focusTrapDisabled||e.focusTrap?.activate(t)}function Fu(e,t){e.focusTrap?.deactivate(t)}function Qy(e){e.focusTrap?.updateContainerElements(e.el)}var nL,Rq,Dq,Ig,$q,Fq,iL,oL,Pg,Xy,Uq,Vq,mx=V(()=>{jr();j4();nL={activateTrap:function(t,r){if(t.length>0){var n=t[t.length-1];n!==r&&n.pause()}var i=t.indexOf(r);i===-1||t.splice(i,1),t.push(r)},deactivateTrap:function(t,r){var n=t.indexOf(r);n!==-1&&t.splice(n,1),t.length>0&&t[t.length-1].unpause()}},Rq=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},Dq=function(t){return t?.key==="Escape"||t?.key==="Esc"||t?.keyCode===27},Ig=function(t){return t?.key==="Tab"||t?.keyCode===9},$q=function(t){return Ig(t)&&!t.shiftKey},Fq=function(t){return Ig(t)&&t.shiftKey},iL=function(t){return setTimeout(t,0)},oL=function(t,r){var n=-1;return t.every(function(i,o){return r(i)?(n=o,!1):!0}),n},Pg=function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return typeof t=="function"?t.apply(void 0,n):t},Xy=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},Uq=[],Vq=function(t,r){var n=r?.document||document,i=r?.trapStack||Uq,o=rL({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:$q,isKeyBackward:Fq},r),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},c,a=function(K,H,se){return K&&K[H]!==void 0?K[H]:o[se||H]},d=function(K,H){var se=typeof H?.composedPath=="function"?H.composedPath():void 0;return s.containerGroups.findIndex(function(fe){var we=fe.container,Ee=fe.tabbableNodes;return we.contains(K)||se?.includes(we)||Ee.find(function(Ne){return Ne===K})})},h=function(K){var H=o[K];if(typeof H=="function"){for(var se=arguments.length,fe=new Array(se>1?se-1:0),we=1;we<se;we++)fe[we-1]=arguments[we];H=H.apply(void 0,fe)}if(H===!0&&(H=void 0),!H){if(H===void 0||H===!1)return H;throw new Error("`".concat(K,"` was specified but was not a node, or did not return a node"))}var Ee=H;if(typeof H=="string"&&(Ee=n.querySelector(H),!Ee))throw new Error("`".concat(K,"` as selector refers to no known node"));return Ee},g=function(){var K=h("initialFocus");if(K===!1)return!1;if(K===void 0||!$y(K,o.tabbableOptions))if(d(n.activeElement)>=0)K=n.activeElement;else{var H=s.tabbableGroups[0],se=H&&H.firstTabbableNode;K=se||h("fallbackFocus")}if(!K)throw new Error("Your focus-trap needs to have at least one focusable element");return K},v=function(){if(s.containerGroups=s.containers.map(function(K){var H=Q4(K,o.tabbableOptions),se=lA(K,o.tabbableOptions),fe=H.length>0?H[0]:void 0,we=H.length>0?H[H.length-1]:void 0,Ee=se.find(function(rt){return Ru(rt)}),Ne=se.slice().reverse().find(function(rt){return Ru(rt)}),Xe=!!H.find(function(rt){return $c(rt)>0});return{container:K,tabbableNodes:H,focusableNodes:se,posTabIndexesFound:Xe,firstTabbableNode:fe,lastTabbableNode:we,firstDomTabbableNode:Ee,lastDomTabbableNode:Ne,nextTabbableNode:function(mr){var Yr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Gt=H.indexOf(mr);return Gt<0?Yr?se.slice(se.indexOf(mr)+1).find(function(br){return Ru(br)}):se.slice(0,se.indexOf(mr)).reverse().find(function(br){return Ru(br)}):H[Gt+(Yr?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(K){return K.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!h("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find(function(K){return K.posTabIndexesFound})&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},S=function(K){var H=K.activeElement;if(H)return H.shadowRoot&&H.shadowRoot.activeElement!==null?S(H.shadowRoot):H},M=function(K){if(K!==!1&&K!==S(document)){if(!K||!K.focus){M(g());return}K.focus({preventScroll:!!o.preventScroll}),s.mostRecentlyFocusedNode=K,Rq(K)&&K.select()}},I=function(K){var H=h("setReturnFocus",K);return H||(H===!1?!1:K)},R=function(K){var H=K.target,se=K.event,fe=K.isBackward,we=fe===void 0?!1:fe;H=H||Xy(se),v();var Ee=null;if(s.tabbableGroups.length>0){var Ne=d(H,se),Xe=Ne>=0?s.containerGroups[Ne]:void 0;if(Ne<0)we?Ee=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:Ee=s.tabbableGroups[0].firstTabbableNode;else if(we){var rt=oL(s.tabbableGroups,function($i){var xn=$i.firstTabbableNode;return H===xn});if(rt<0&&(Xe.container===H||$y(H,o.tabbableOptions)&&!Ru(H,o.tabbableOptions)&&!Xe.nextTabbableNode(H,!1))&&(rt=Ne),rt>=0){var mr=rt===0?s.tabbableGroups.length-1:rt-1,Yr=s.tabbableGroups[mr];Ee=$c(H)>=0?Yr.lastTabbableNode:Yr.lastDomTabbableNode}else Ig(se)||(Ee=Xe.nextTabbableNode(H,!1))}else{var Gt=oL(s.tabbableGroups,function($i){var xn=$i.lastTabbableNode;return H===xn});if(Gt<0&&(Xe.container===H||$y(H,o.tabbableOptions)&&!Ru(H,o.tabbableOptions)&&!Xe.nextTabbableNode(H))&&(Gt=Ne),Gt>=0){var br=Gt===s.tabbableGroups.length-1?0:Gt+1,Gn=s.tabbableGroups[br];Ee=$c(H)>=0?Gn.firstTabbableNode:Gn.firstDomTabbableNode}else Ig(se)||(Ee=Xe.nextTabbableNode(H))}}else Ee=h("fallbackFocus");return Ee},B=function(K){var H=Xy(K);if(!(d(H,K)>=0)){if(Pg(o.clickOutsideDeactivates,K)){c.deactivate({returnFocus:o.returnFocusOnDeactivate});return}Pg(o.allowOutsideClick,K)||K.preventDefault()}},F=function(K){var H=Xy(K),se=d(H,K)>=0;if(se||H instanceof Document)se&&(s.mostRecentlyFocusedNode=H);else{K.stopImmediatePropagation();var fe,we=!0;if(s.mostRecentlyFocusedNode)if($c(s.mostRecentlyFocusedNode)>0){var Ee=d(s.mostRecentlyFocusedNode),Ne=s.containerGroups[Ee].tabbableNodes;if(Ne.length>0){var Xe=Ne.findIndex(function(rt){return rt===s.mostRecentlyFocusedNode});Xe>=0&&(o.isKeyForward(s.recentNavEvent)?Xe+1<Ne.length&&(fe=Ne[Xe+1],we=!1):Xe-1>=0&&(fe=Ne[Xe-1],we=!1))}}else s.containerGroups.some(function(rt){return rt.tabbableNodes.some(function(mr){return $c(mr)>0})})||(we=!1);else we=!1;we&&(fe=R({target:s.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(s.recentNavEvent)})),M(fe||s.mostRecentlyFocusedNode||g())}s.recentNavEvent=void 0},G=function(K){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=K;var se=R({event:K,isBackward:H});se&&(Ig(K)&&K.preventDefault(),M(se))},J=function(K){(o.isKeyForward(K)||o.isKeyBackward(K))&&G(K,o.isKeyBackward(K))},re=function(K){Dq(K)&&Pg(o.escapeDeactivates,K)!==!1&&(K.preventDefault(),c.deactivate())},de=function(K){var H=Xy(K);d(H,K)>=0||Pg(o.clickOutsideDeactivates,K)||Pg(o.allowOutsideClick,K)||(K.preventDefault(),K.stopImmediatePropagation())},W=function(){if(s.active)return nL.activateTrap(i,c),s.delayInitialFocusTimer=o.delayInitialFocus?iL(function(){M(g())}):M(g()),n.addEventListener("focusin",F,!0),n.addEventListener("mousedown",B,{capture:!0,passive:!1}),n.addEventListener("touchstart",B,{capture:!0,passive:!1}),n.addEventListener("click",de,{capture:!0,passive:!1}),n.addEventListener("keydown",J,{capture:!0,passive:!1}),n.addEventListener("keydown",re),c},me=function(){if(s.active)return n.removeEventListener("focusin",F,!0),n.removeEventListener("mousedown",B,!0),n.removeEventListener("touchstart",B,!0),n.removeEventListener("click",de,!0),n.removeEventListener("keydown",J,!0),n.removeEventListener("keydown",re),c},Le=function(K){var H=K.some(function(se){var fe=Array.from(se.removedNodes);return fe.some(function(we){return we===s.mostRecentlyFocusedNode})});H&&M(g())},xe=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(Le):void 0,ke=function(){xe&&(xe.disconnect(),s.active&&!s.paused&&s.containers.map(function(K){xe.observe(K,{subtree:!0,childList:!0})}))};return c={get active(){return s.active},get paused(){return s.paused},activate:function(K){if(s.active)return this;var H=a(K,"onActivate"),se=a(K,"onPostActivate"),fe=a(K,"checkCanFocusTrap");fe||v(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=n.activeElement,H?.();var we=function(){fe&&v(),W(),ke(),se?.()};return fe?(fe(s.containers.concat()).then(we,we),this):(we(),this)},deactivate:function(K){if(!s.active)return this;var H=rL({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},K);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,me(),s.active=!1,s.paused=!1,ke(),nL.deactivateTrap(i,c);var se=a(H,"onDeactivate"),fe=a(H,"onPostDeactivate"),we=a(H,"checkCanReturnFocus"),Ee=a(H,"returnFocus","returnFocusOnDeactivate");se?.();var Ne=function(){iL(function(){Ee&&M(I(s.nodeFocusedBeforeActivation)),fe?.()})};return Ee&&we?(we(I(s.nodeFocusedBeforeActivation)).then(Ne,Ne),this):(Ne(),this)},pause:function(K){if(s.paused||!s.active)return this;var H=a(K,"onPause"),se=a(K,"onPostPause");return s.paused=!0,H?.(),me(),ke(),se?.(),this},unpause:function(K){if(!s.paused||!s.active)return this;var H=a(K,"onUnpause"),se=a(K,"onPostUnpause");return s.paused=!1,H?.(),v(),W(),ke(),se?.(),this},updateContainerElements:function(K){var H=[].concat(K).filter(Boolean);return s.containers=H.map(function(se){return typeof se=="string"?n.querySelector(se):se}),s.active&&v(),ke(),this}},c.updateContainerElements(t),c}});function sL(e){return"opened"in e?e.opened:e.open}function Gc(e){zq(()=>{e.transitionEl&&bA(e.transitionEl,e.openTransitionProp,()=>{sL(e)?e.onBeforeOpen():e.onBeforeClose()},()=>{sL(e)?e.onOpen():e.onClose()})})}var zq,eb=V(()=>{Wt();jr();zq=fI});function hx(e,t){return(e+t)%t}var aL=V(()=>{});function ua(){if(typeof customElements>"u")return;["calcite-action","calcite-icon","calcite-loader"].forEach(t=>{switch(t){case"calcite-action":customElements.get(t)||customElements.define(t,jq);break;case"calcite-icon":customElements.get(t)||Hr();break;case"calcite-loader":customElements.get(t)||Xn();break}})}var zo,Wq,Bq,Gq,jq,Lg=V(()=>{Wt();jr();Wp();bg();ca();Vo();$o();zc();la();oa();bs();Bc();zo={button:"button",buttonTextVisible:"button--text-visible",buttonCompact:"button--compact",indicatorText:"indicator-text",iconContainer:"icon-container",slotContainer:"slot-container",slotContainerHidden:"slot-container--hidden",textContainer:"text-container",textContainerVisible:"text-container--visible",indicatorWithIcon:"indicator-with-icon",indicatorWithoutIcon:"indicator-without-icon"},Wq={tooltip:"tooltip"},Bq=`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;background-color:transparent}:host,button{border-end-end-radius:var(--calcite-action-corner-radius-end-end, var(--calcite-action-corner-radius, var(--calcite-corner-radius)));border-end-start-radius:var(--calcite-action-corner-radius-end-start, var(--calcite-action-corner-radius, var(--calcite-corner-radius)));border-start-end-radius:var(--calcite-action-corner-radius-start-end, var(--calcite-action-corner-radius, var(--calcite-corner-radius)));border-start-start-radius:var(--calcite-action-corner-radius-start-start, var(--calcite-action-corner-radius, var(--calcite-corner-radius)))}.button{position:relative;margin:0px;display:flex;inline-size:auto;cursor:pointer;align-items:center;justify-content:flex-start;border-style:none;font-family:var(--calcite-font-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);outline-color:transparent;background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1));color:var(--calcite-action-text-color, var(--calcite-color-text-3));text-align:unset;flex:1 0 auto}.button:hover,.button:focus{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-action-text-color-pressed, var(--calcite-color-text-1))}.button:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(
|
|
38
38
|
-2px *
|
|
39
39
|
calc(
|
|
40
40
|
1 -
|
|
@@ -54,7 +54,7 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`)}Ij(thi
|
|
|
54
54
|
1
|
|
55
55
|
)
|
|
56
56
|
)
|
|
57
|
-
)}:host([scale=s]) .button{padding-inline:0.5rem;padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{margin-inline-end:0.5rem}:host([scale=m]) .button{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{margin-inline-end:1rem}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.button--text-visible{inline-size:100%}.indicator-with-icon{position:relative}.indicator-with-icon::after{content:"";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;inset-block-end:-0.275rem;inset-inline-end:-0.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-without-icon{margin-inline:0.25rem;inline-size:1rem;position:relative}.indicator-without-icon::after{content:"";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;inset-block-end:-0.275rem;inset-inline-end:-0.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-color-foreground-1);opacity:var(--calcite-opacity-disabled)}:host([disabled]):host([active]) .button,:host([disabled]):host([active]) .button:hover,:host([disabled]):host([active]) .button:focus{background-color:var(--calcite-color-foreground-3);opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`,Gq=Bq,jq=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.mutationObserver=yr("mutation",()=>to(this)),this.guid=`calcite-action-${sa()}`,this.indicatorId=`${this.guid}-indicator`,this.buttonId=`${this.guid}-button`,this.handleTooltipSlotChange=t=>{let n=t.target.assignedElements({flatten:!0}).filter(i=>i?.matches("calcite-tooltip"))[0];n&&(n.referenceElement=this.buttonEl)},this.active=!1,this.alignment=void 0,this.appearance="solid",this.compact=!1,this.disabled=!1,this.icon=void 0,this.iconFlipRtl=!1,this.indicator=!1,this.label=void 0,this.loading=!1,this.scale="m",this.text=void 0,this.textEnabled=!1,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale="",this.defaultMessages=void 0}onMessagesChange(){}effectiveLocaleChange(){Un(this,this.effectiveLocale)}connectedCallback(){cn(this),Vn(this),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async componentWillLoad(){Nn(this),vn()&&await Fn(this)}componentDidLoad(){Rn(this)}disconnectedCallback(){ln(this),zn(this),this.mutationObserver?.disconnect()}componentDidRender(){Uc(this)}async setFocus(){await Dn(this),this.buttonEl?.focus()}renderTextContainer(){let{text:t,textEnabled:r}=this,n={[zo.textContainer]:!0,[zo.textContainerVisible]:r};return t?X("div",{class:n,key:"text-container"},t):null}renderIndicatorText(){let{indicator:t,messages:r,indicatorId:n,buttonId:i}=this;return X("div",{"aria-labelledby":i,"aria-live":"polite",class:zo.indicatorText,id:n,role:"region"},t?r.indicator:null)}renderIconContainer(){let{loading:t,icon:r,scale:n,el:i,iconFlipRtl:o,indicator:s}=this,c=n==="l"?"l":"m",a=t?X("calcite-loader",{inline:!0,label:this.messages.loading,scale:c}):null,d=r?X("calcite-icon",{class:{[zo.indicatorWithIcon]:s},flipRtl:o,icon:r,scale:On(this.scale)}):null,h=a||d,g=h||i.children?.length,v=X("div",{class:{[zo.slotContainer]:!0,[zo.slotContainerHidden]:t}},X("slot",null));return g?X("div",{"aria-hidden":"true",class:zo.iconContainer,key:"icon-container"},h,v):null}render(){let{active:t,compact:r,disabled:n,icon:i,loading:o,textEnabled:s,label:c,text:a,indicator:d,indicatorId:h,buttonId:g,messages:v}=this,S=c||a,M=S?`${S}${d?` (${v.indicator})`:""}`:"",I={[zo.button]:!0,[zo.buttonTextVisible]:s,[zo.buttonCompact]:r};return X(Gr,{key:"3b459307dcb6f8d373e70cd5c7a45d122565a70e"},X(Vc,{key:"3a81f1fb62a66f1dbd608f095ed90f2d47a9daf6",disabled:n},X("button",{key:"bb5249babc116d462becd6b9a056ca0d368c6e09","aria-busy":Ir(o),"aria-controls":d?h:null,"aria-label":M,"aria-pressed":Ir(t),class:I,disabled:n,id:g,ref:R=>this.buttonEl=R},this.renderIconContainer(),this.renderTextContainer(),!i&&d&&X("div",{class:zo.indicatorWithoutIcon,key:"indicator-no-icon"})),X("slot",{key:"983989711d64076eca866c1928f9c777331fcba4",name:Wq.tooltip,onSlotchange:this.handleTooltipSlotChange}),this.renderIndicatorText()))}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return Gq}},[1,"calcite-action",{active:[516],alignment:[513],appearance:[513],compact:[516],disabled:[516],icon:[1],iconFlipRtl:[516,"icon-flip-rtl"],indicator:[516],label:[1],loading:[516],scale:[513],text:[1],textEnabled:[516,"text-enabled"],messages:[1040],messageOverrides:[1040],effectiveLocale:[32],defaultMessages:[32],setFocus:[64]},void 0,{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}]);ua()});function Qq(e){var t=Xq.call(e,kg),r=e[kg];try{e[kg]=void 0;var n=!0}catch{}var i=Kq.call(e);return n&&(t?e[kg]=r:delete e[kg]),i}function rZ(e){return tZ.call(e)}function oZ(e){return e==null?e===void 0?iZ:nZ:cL&&cL in Object(e)?Qq(e):rZ(e)}function sZ(e){return e!=null&&typeof e=="object"}function cZ(e){return typeof e=="symbol"||sZ(e)&&oZ(e)==aZ}function uZ(e){for(var t=e.length;t--&&lZ.test(e.charAt(t)););return t}function fZ(e){return e&&e.slice(0,uZ(e)+1).replace(dZ,"")}function w4(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function uL(e){if(typeof e=="number")return e;if(cZ(e))return lL;if(w4(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=w4(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fZ(e);var r=mZ.test(e);return r||hZ.test(e)?gZ(e.slice(2),r?2:8):pZ.test(e)?lL:+e}function pL(e,t,r){var n,i,o,s,c,a,d=0,h=!1,g=!1,v=!0;if(typeof e!="function")throw new TypeError(yZ);t=uL(t)||0,w4(r)&&(h=!!r.leading,g="maxWait"in r,o=g?bZ(uL(r.maxWait)||0,t):o,v="trailing"in r?!!r.trailing:v);function S(de){var W=n,me=i;return n=i=void 0,d=de,s=e.apply(me,W),s}function M(de){return d=de,c=setTimeout(B,t),h?S(de):s}function I(de){var W=de-a,me=de-d,Le=t-W;return g?vZ(Le,o-me):Le}function R(de){var W=de-a,me=de-d;return a===void 0||W>=t||W<0||g&&me>=o}function B(){var de=g4();if(R(de))return F(de);c=setTimeout(B,I(de))}function F(de){return c=void 0,v&&n?S(de):(n=i=void 0,s)}function G(){c!==void 0&&clearTimeout(c),d=0,n=a=i=c=void 0}function J(){return c===void 0?s:F(g4())}function re(){var de=g4(),W=R(de);if(n=arguments,i=this,a=de,W){if(c===void 0)return M(a);if(g)return clearTimeout(c),c=setTimeout(B,t),S(a)}return c===void 0&&(c=setTimeout(B,t)),s}return re.cancel=G,re.flush=J,re}var Hq,qq,Zq,Yq,dL,Jq,tb,fL,Xq,Kq,kg,eZ,tZ,nZ,iZ,cL,aZ,lZ,dZ,lL,pZ,mZ,hZ,gZ,wZ,g4,yZ,bZ,vZ,mL=V(()=>{Hq=typeof global=="object"&&global&&global.Object===Object&&global,qq=Hq,Zq=typeof self=="object"&&self&&self.Object===Object&&self,Yq=qq||Zq||Function("return this")(),dL=Yq,Jq=dL.Symbol,tb=Jq,fL=Object.prototype,Xq=fL.hasOwnProperty,Kq=fL.toString,kg=tb?tb.toStringTag:void 0;eZ=Object.prototype,tZ=eZ.toString;nZ="[object Null]",iZ="[object Undefined]",cL=tb?tb.toStringTag:void 0;aZ="[object Symbol]";lZ=/\s/;dZ=/^\s+/;lL=NaN,pZ=/^[-+]0x[0-9a-f]+$/i,mZ=/^0b[01]+$/i,hZ=/^0o[0-7]+$/i,gZ=parseInt;wZ=function(){return dL.Date.now()},g4=wZ,yZ="Expected a function",bZ=Math.max,vZ=Math.min});function v4(e,t,r){return Uu(e,Zp(t,r))}function zu(e,t){return typeof e=="function"?e(t):e}function da(e){return e.split("-")[0]}function vs(e){return e.split("-")[1]}function IL(e){return e==="x"?"y":"x"}function S4(e){return e==="y"?"height":"width"}function cb(e){return["top","bottom"].includes(da(e))?"y":"x"}function x4(e){return IL(cb(e))}function AL(e,t,r){r===void 0&&(r=!1);let n=vs(e),i=x4(e),o=S4(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=ob(s)),[s,ob(s)]}function xZ(e){let t=ob(e);return[ib(e),t,ib(t)]}function ib(e){return e.replace(/start|end/g,t=>SZ[t])}function CZ(e,t,r){let n=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:n:t?n:i;case"left":case"right":return t?o:s;default:return[]}}function TZ(e,t,r,n){let i=vs(e),o=CZ(da(e),r==="start",n);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(ib)))),o}function ob(e){return e.replace(/left|right|bottom|top/g,t=>_Z[t])}function EZ(e){return{top:0,right:0,bottom:0,left:0,...e}}function LL(e){return typeof e!="number"?EZ(e):{top:e,right:e,bottom:e,left:e}}function sb(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function wL(e,t,r){let{reference:n,floating:i}=e,o=cb(t),s=x4(t),c=S4(s),a=da(t),d=o==="y",h=n.x+n.width/2-i.width/2,g=n.y+n.height/2-i.height/2,v=n[c]/2-i[c]/2,S;switch(a){case"top":S={x:h,y:n.y-i.height};break;case"bottom":S={x:h,y:n.y+n.height};break;case"right":S={x:n.x+n.width,y:g};break;case"left":S={x:n.x-i.width,y:g};break;default:S={x:n.x,y:n.y}}switch(vs(t)){case"start":S[s]-=v*(r&&d?-1:1);break;case"end":S[s]+=v*(r&&d?-1:1);break}return S}async function Og(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:o,rects:s,elements:c,strategy:a}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:v=!1,padding:S=0}=zu(t,e),M=LL(S),R=c[v?g==="floating"?"reference":"floating":g],B=sb(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(R)))==null||r?R:R.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:a})),F=g==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,G=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),J=await(o.isElement==null?void 0:o.isElement(G))?await(o.getScale==null?void 0:o.getScale(G))||{x:1,y:1}:{x:1,y:1},re=sb(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:F,offsetParent:G,strategy:a}):F);return{top:(B.top-re.top+M.top)/J.y,bottom:(re.bottom-B.bottom+M.bottom)/J.y,left:(B.left-re.left+M.left)/J.x,right:(re.right-B.right+M.right)/J.x}}function IZ(e,t,r){return(e?[...r.filter(i=>vs(i)===e),...r.filter(i=>vs(i)!==e)]:r.filter(i=>da(i)===i)).filter(i=>e?vs(i)===e||(t?ib(i)!==i:!1):!0)}function yL(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function bL(e){return PL.some(t=>e[t]>=0)}async function OZ(e,t){let{placement:r,platform:n,elements:i}=e,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=da(r),c=vs(r),a=cb(r)==="y",d=["left","top"].includes(s)?-1:1,h=o&&a?-1:1,g=zu(t,e),{mainAxis:v,crossAxis:S,alignmentAxis:M}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...g};return c&&typeof M=="number"&&(S=c==="end"?M*-1:M),a?{x:S*h,y:v*d}:{x:v*d,y:S*h}}function lb(){return typeof window<"u"}function Jp(e){return kL(e)?(e.nodeName||"").toLowerCase():"#document"}function Li(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fa(e){var t;return(t=(kL(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function kL(e){return lb()?e instanceof Node||e instanceof Li(e).Node:!1}function Wo(e){return lb()?e instanceof Element||e instanceof Li(e).Element:!1}function _s(e){return lb()?e instanceof HTMLElement||e instanceof Li(e).HTMLElement:!1}function vL(e){return!lb()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Li(e).ShadowRoot}function Dg(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=Bo(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function DZ(e){return["table","td","th"].includes(Jp(e))}function ub(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function db(e){let t=C4(),r=Wo(e)?Bo(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function $Z(e){let t=Hc(e);for(;_s(t)&&!Yp(t);){if(db(t))return t;if(ub(t))return null;t=Hc(t)}return null}function C4(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Yp(e){return["html","body","#document"].includes(Jp(e))}function Bo(e){return Li(e).getComputedStyle(e)}function fb(e){return Wo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Hc(e){if(Jp(e)==="html")return e;let t=e.assignedSlot||e.parentNode||vL(e)&&e.host||fa(e);return vL(t)?t.host:t}function OL(e){let t=Hc(e);return Yp(t)?e.ownerDocument?e.ownerDocument.body:e.body:_s(t)&&Dg(t)?t:OL(t)}function Ng(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=OL(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=Li(i);if(o){let c=FZ(s);return t.concat(s,s.visualViewport||[],Dg(i)?i:[],c&&r?Ng(c):[])}return t.concat(i,Ng(i,[],r))}function FZ(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function NL(e){let t=Bo(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=_s(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,c=nb(r)!==o||nb(n)!==s;return c&&(r=o,n=s),{width:r,height:n,$:c}}function T4(e){return Wo(e)?e:e.contextElement}function qp(e){let t=T4(e);if(!_s(t))return jc(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=NL(t),s=(o?nb(r.width):r.width)/n,c=(o?nb(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}function RL(e){let t=Li(e);return!C4()||!t.visualViewport?UZ:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function VZ(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Li(e)?!1:t}function Vu(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),o=T4(e),s=jc(1);t&&(n?Wo(n)&&(s=qp(n)):s=qp(e));let c=VZ(o,r,n)?RL(o):jc(0),a=(i.left+c.x)/s.x,d=(i.top+c.y)/s.y,h=i.width/s.x,g=i.height/s.y;if(o){let v=Li(o),S=n&&Wo(n)?Li(n):n,M=v,I=M.frameElement;for(;I&&n&&S!==M;){let R=qp(I),B=I.getBoundingClientRect(),F=Bo(I),G=B.left+(I.clientLeft+parseFloat(F.paddingLeft))*R.x,J=B.top+(I.clientTop+parseFloat(F.paddingTop))*R.y;a*=R.x,d*=R.y,h*=R.x,g*=R.y,a+=G,d+=J,M=Li(I),I=M.frameElement}}return sb({width:h,height:g,x:a,y:d})}function zZ(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o=i==="fixed",s=fa(n),c=t?ub(t.floating):!1;if(n===s||c&&o)return r;let a={scrollLeft:0,scrollTop:0},d=jc(1),h=jc(0),g=_s(n);if((g||!g&&!o)&&((Jp(n)!=="body"||Dg(s))&&(a=fb(n)),_s(n))){let v=Vu(n);d=qp(n),h.x=v.x+n.clientLeft,h.y=v.y+n.clientTop}return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-a.scrollLeft*d.x+h.x,y:r.y*d.y-a.scrollTop*d.y+h.y}}function WZ(e){return Array.from(e.getClientRects())}function DL(e){return Vu(fa(e)).left+fb(e).scrollLeft}function BZ(e){let t=fa(e),r=fb(e),n=e.ownerDocument.body,i=Uu(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=Uu(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+DL(e),c=-r.scrollTop;return Bo(n).direction==="rtl"&&(s+=Uu(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:c}}function GZ(e,t){let r=Li(e),n=fa(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,c=0,a=0;if(i){o=i.width,s=i.height;let d=C4();(!d||d&&t==="fixed")&&(c=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:c,y:a}}function jZ(e,t){let r=Vu(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=_s(e)?qp(e):jc(1),s=e.clientWidth*o.x,c=e.clientHeight*o.y,a=i*o.x,d=n*o.y;return{width:s,height:c,x:a,y:d}}function _L(e,t,r){let n;if(t==="viewport")n=GZ(e,r);else if(t==="document")n=BZ(fa(e));else if(Wo(t))n=jZ(t,r);else{let i=RL(e);n={...t,x:t.x-i.x,y:t.y-i.y}}return sb(n)}function $L(e,t){let r=Hc(e);return r===t||!Wo(r)||Yp(r)?!1:Bo(r).position==="fixed"||$L(r,t)}function HZ(e,t){let r=t.get(e);if(r)return r;let n=Ng(e,[],!1).filter(c=>Wo(c)&&Jp(c)!=="body"),i=null,o=Bo(e).position==="fixed",s=o?Hc(e):e;for(;Wo(s)&&!Yp(s);){let c=Bo(s),a=db(s);!a&&c.position==="fixed"&&(i=null),(o?!a&&!i:!a&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Dg(s)&&!a&&$L(e,s))?n=n.filter(h=>h!==s):i=c,s=Hc(s)}return t.set(e,n),n}function qZ(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?ub(t)?[]:HZ(t,this._c):[].concat(r),n],c=s[0],a=s.reduce((d,h)=>{let g=_L(t,h,i);return d.top=Uu(g.top,d.top),d.right=Zp(g.right,d.right),d.bottom=Zp(g.bottom,d.bottom),d.left=Uu(g.left,d.left),d},_L(t,c,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function ZZ(e){let{width:t,height:r}=NL(e);return{width:t,height:r}}function YZ(e,t,r){let n=_s(t),i=fa(t),o=r==="fixed",s=Vu(e,!0,o,t),c={scrollLeft:0,scrollTop:0},a=jc(0);if(n||!n&&!o)if((Jp(t)!=="body"||Dg(i))&&(c=fb(t)),n){let g=Vu(t,!0,o,t);a.x=g.x+t.clientLeft,a.y=g.y+t.clientTop}else i&&(a.x=DL(i));let d=s.left+c.scrollLeft-a.x,h=s.top+c.scrollTop-a.y;return{x:d,y:h,width:s.width,height:s.height}}function y4(e){return Bo(e).position==="static"}function SL(e,t){return!_s(e)||Bo(e).position==="fixed"?null:t?t(e):e.offsetParent}function FL(e,t){let r=Li(e);if(ub(e))return r;if(!_s(e)){let i=Hc(e);for(;i&&!Yp(i);){if(Wo(i)&&!y4(i))return i;i=Hc(i)}return r}let n=SL(e,t);for(;n&&DZ(n)&&y4(n);)n=SL(n,t);return n&&Yp(n)&&y4(n)&&!db(n)?r:n||$Z(e)||r}function XZ(e){return Bo(e).direction==="rtl"}function KZ(e,t){let r=null,n,i=fa(e);function o(){var c;clearTimeout(n),(c=r)==null||c.disconnect(),r=null}function s(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),o();let{left:d,top:h,width:g,height:v}=e.getBoundingClientRect();if(c||t(),!g||!v)return;let S=rb(h),M=rb(i.clientWidth-(d+g)),I=rb(i.clientHeight-(h+v)),R=rb(d),F={rootMargin:-S+"px "+-M+"px "+-I+"px "+-R+"px",threshold:Uu(0,Zp(1,a))||1},G=!0;function J(re){let de=re[0].intersectionRatio;if(de!==a){if(!G)return s();de?s(!1,de):n=setTimeout(()=>{s(!1,1e-7)},1e3)}G=!1}try{r=new IntersectionObserver(J,{...F,root:i.ownerDocument})}catch{r=new IntersectionObserver(J,F)}r.observe(e)}return s(!0),o}function QZ(e,t,r,n){n===void 0&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=n,d=T4(e),h=i||o?[...d?Ng(d):[],...Ng(t)]:[];h.forEach(B=>{i&&B.addEventListener("scroll",r,{passive:!0}),o&&B.addEventListener("resize",r)});let g=d&&c?KZ(d,r):null,v=-1,S=null;s&&(S=new ResizeObserver(B=>{let[F]=B;F&&F.target===d&&S&&(S.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var G;(G=S)==null||G.observe(t)})),r()}),d&&!a&&S.observe(d),S.observe(t));let M,I=a?Vu(e):null;a&&R();function R(){let B=Vu(e);I&&(B.x!==I.x||B.y!==I.y||B.width!==I.width||B.height!==I.height)&&r(),I=B,M=requestAnimationFrame(R)}return r(),()=>{var B;h.forEach(F=>{i&&F.removeEventListener("scroll",r),o&&F.removeEventListener("resize",r)}),g?.(),(B=S)==null||B.disconnect(),S=null,a&&cancelAnimationFrame(M)}}function sY(e){return aY(e)}function b4(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function aY(e){for(let t=e;t;t=b4(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=b4(e);t;t=b4(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||db(r)||t.tagName==="BODY"))return t}return null}function CL(e){let t=window.devicePixelRatio||1;return Math.round(e*t)/t}function lY({placement:e,flipDisabled:t,flipPlacements:r,offsetDistance:n,offsetSkidding:i,arrowEl:o,type:s}){let c=[rY(),nY()];if(s==="menu")return[...c,xL({fallbackPlacements:r||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if(s==="popover"||s==="tooltip"){let a=[...c,eY({mainAxis:typeof n=="number"?n:0,crossAxis:typeof i=="number"?i:0})];return e==="auto"||e==="auto-start"||e==="auto-end"?a.push(tY({alignment:e==="auto-start"?"start":e==="auto-end"?"end":null})):t||a.push(xL(r?{fallbackPlacements:r}:{})),o&&a.push(iY({element:o})),a}return[]}function zL(e,t){let r=e.filter(n=>TL.includes(n));return r.length!==e.length&&console.warn(`${t.tagName}: Invalid value found in: flipPlacements. Try any of these: ${TL.map(n=>`"${n}"`).join(", ").trim()}`,{el:t}),r}function EL(e,t=!1){let r=["left","right"];return t&&r.reverse(),e.replace(/leading/gi,r[0]).replace(/trailing/gi,r[1])}async function WL(e,t,r=!1){if(!e.open||!t.floatingEl||!t.referenceEl)return;if(!Rg.get(e))return BL(e,t.referenceEl,t.floatingEl);await(r?uY(e):UL)(e,t)}function uY(e){let t=ab.get(e);return t||(t=pL(UL,_x.reposition,{leading:!0,maxWait:_x.reposition}),ab.set(e,t),t)}async function BL(e,t,r){if(!r.isConnected)return;let n=vn()?QZ:(s,c,a)=>(a(),()=>{});Rg.set(e,{state:"pending"});let i,o=n(t,r,()=>{let s=e.reposition();i||(i=s)});return Rg.set(e,{state:"active",cleanUp:o}),i}async function GL(e,t,r){if(!(!r||!t)&&(M4(e,t,r),Object.assign(r.style,{visibility:"hidden",pointerEvents:"none",position:e.overlayPositioning}),!!e.open))return BL(e,t,r)}function M4(e,t,r){if(!r||!t)return;let n=Rg.get(e);n?.state==="active"&&n.cleanUp(),Rg.delete(e),ab.get(e)?.cancel(),ab.delete(e)}var PL,hL,gL,Zp,Uu,nb,rb,jc,_Z,SZ,MZ,PZ,AZ,LZ,kZ,NZ,RZ,UZ,JZ,_4,eY,tY,rY,xL,nY,iY,oY,UL,cY,TL,VL,E4,dY,Rg,ab,ML,jL,P4=V(()=>{Np();jr();oa();mL();PL=["top","right","bottom","left"],hL=["start","end"],gL=PL.reduce((e,t)=>e.concat(t,t+"-"+hL[0],t+"-"+hL[1]),[]),Zp=Math.min,Uu=Math.max,nb=Math.round,rb=Math.floor,jc=e=>({x:e,y:e}),_Z={left:"right",right:"left",bottom:"top",top:"bottom"},SZ={start:"end",end:"start"};MZ=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,c=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t)),d=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:g}=wL(d,n,a),v=n,S={},M=0;for(let I=0;I<c.length;I++){let{name:R,fn:B}=c[I],{x:F,y:G,data:J,reset:re}=await B({x:h,y:g,initialPlacement:n,placement:v,strategy:i,middlewareData:S,rects:d,platform:s,elements:{reference:e,floating:t}});h=F??h,g=G??g,S={...S,[R]:{...S[R],...J}},re&&M<=50&&(M++,typeof re=="object"&&(re.placement&&(v=re.placement),re.rects&&(d=re.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):re.rects),{x:h,y:g}=wL(d,v,a)),I=-1)}return{x:h,y:g,placement:v,strategy:i,middlewareData:S}};PZ=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:i,rects:o,platform:s,elements:c,middlewareData:a}=t,{element:d,padding:h=0}=zu(e,t)||{};if(d==null)return{};let g=LL(h),v={x:r,y:n},S=x4(i),M=S4(S),I=await s.getDimensions(d),R=S==="y",B=R?"top":"left",F=R?"bottom":"right",G=R?"clientHeight":"clientWidth",J=o.reference[M]+o.reference[S]-v[S]-o.floating[M],re=v[S]-o.reference[S],de=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d)),W=de?de[G]:0;(!W||!await(s.isElement==null?void 0:s.isElement(de)))&&(W=c.floating[G]||o.floating[M]);let me=J/2-re/2,Le=W/2-I[M]/2-1,xe=Zp(g[B],Le),ke=Zp(g[F],Le),ge=xe,K=W-I[M]-ke,H=W/2-I[M]/2+me,se=v4(ge,H,K),fe=!a.arrow&&vs(i)!=null&&H!==se&&o.reference[M]/2-(H<ge?xe:ke)-I[M]/2<0,we=fe?H<ge?H-ge:H-K:0;return{[S]:v[S]+we,data:{[S]:se,centerOffset:H-se-we,...fe&&{alignmentOffset:we}},reset:fe}}});AZ=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:o,middlewareData:s,placement:c,platform:a,elements:d}=t,{crossAxis:h=!1,alignment:g,allowedPlacements:v=gL,autoAlignment:S=!0,...M}=zu(e,t),I=g!==void 0||v===gL?IZ(g||null,S,v):v,R=await Og(t,M),B=((r=s.autoPlacement)==null?void 0:r.index)||0,F=I[B];if(F==null)return{};let G=AL(F,o,await(a.isRTL==null?void 0:a.isRTL(d.floating)));if(c!==F)return{reset:{placement:I[0]}};let J=[R[da(F)],R[G[0]],R[G[1]]],re=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:F,overflows:J}],de=I[B+1];if(de)return{data:{index:B+1,overflows:re},reset:{placement:de}};let W=re.map(xe=>{let ke=vs(xe.placement);return[xe.placement,ke&&h?xe.overflows.slice(0,2).reduce((ge,K)=>ge+K,0):xe.overflows[0],xe.overflows]}).sort((xe,ke)=>xe[1]-ke[1]),Le=((i=W.filter(xe=>xe[2].slice(0,vs(xe[0])?2:3).every(ke=>ke<=0))[0])==null?void 0:i[0])||W[0][0];return Le!==c?{data:{index:B+1,overflows:re},reset:{placement:Le}}:{}}}},LZ=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;let{placement:i,middlewareData:o,rects:s,initialPlacement:c,platform:a,elements:d}=t,{mainAxis:h=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:I=!0,...R}=zu(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};let B=da(i),F=da(c)===c,G=await(a.isRTL==null?void 0:a.isRTL(d.floating)),J=v||(F||!I?[ob(c)]:xZ(c));!v&&M!=="none"&&J.push(...TZ(c,I,M,G));let re=[c,...J],de=await Og(t,R),W=[],me=((n=o.flip)==null?void 0:n.overflows)||[];if(h&&W.push(de[B]),g){let ge=AL(i,s,G);W.push(de[ge[0]],de[ge[1]])}if(me=[...me,{placement:i,overflows:W}],!W.every(ge=>ge<=0)){var Le,xe;let ge=(((Le=o.flip)==null?void 0:Le.index)||0)+1,K=re[ge];if(K)return{data:{index:ge,overflows:me},reset:{placement:K}};let H=(xe=me.filter(se=>se.overflows[0]<=0).sort((se,fe)=>se.overflows[1]-fe.overflows[1])[0])==null?void 0:xe.placement;if(!H)switch(S){case"bestFit":{var ke;let se=(ke=me.map(fe=>[fe.placement,fe.overflows.filter(we=>we>0).reduce((we,Ee)=>we+Ee,0)]).sort((fe,we)=>fe[1]-we[1])[0])==null?void 0:ke[0];se&&(H=se);break}case"initialPlacement":H=c;break}if(i!==H)return{reset:{placement:H}}}return{}}}};kZ=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...i}=zu(e,t);switch(n){case"referenceHidden":{let o=await Og(t,{...i,elementContext:"reference"}),s=yL(o,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:bL(s)}}}case"escaped":{let o=await Og(t,{...i,altBoundary:!0}),s=yL(o,r.floating);return{data:{escapedOffsets:s,escaped:bL(s)}}}default:return{}}}}};NZ=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:o,placement:s,middlewareData:c}=t,a=await OZ(t,e);return s===((r=c.offset)==null?void 0:r.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:s}}}}},RZ=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:R=>{let{x:B,y:F}=R;return{x:B,y:F}}},...a}=zu(e,t),d={x:r,y:n},h=await Og(t,a),g=cb(da(i)),v=IL(g),S=d[v],M=d[g];if(o){let R=v==="y"?"top":"left",B=v==="y"?"bottom":"right",F=S+h[R],G=S-h[B];S=v4(F,S,G)}if(s){let R=g==="y"?"top":"left",B=g==="y"?"bottom":"right",F=M+h[R],G=M-h[B];M=v4(F,M,G)}let I=c.fn({...t,[v]:S,[g]:M});return{...I,data:{x:I.x-r,y:I.y-n}}}}};UZ=jc(0);JZ=async function(e){let t=this.getOffsetParent||FL,r=this.getDimensions,n=await r(e.floating);return{reference:YZ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};_4={convertOffsetParentRelativeRectToViewportRelativeRect:zZ,getDocumentElement:fa,getClippingRect:qZ,getOffsetParent:FL,getElementRects:JZ,getClientRects:WZ,getDimensions:ZZ,getScale:qp,isElement:Wo,isRTL:XZ};eY=NZ,tY=AZ,rY=RZ,xL=LZ,nY=kZ,iY=PZ,oY=(e,t,r)=>{let n=new Map,i={platform:_4,...r},o={...i.platform,_c:n};return MZ(e,t,{...i,platform:o})};(function(){if(vn()){let t=_4.getOffsetParent;_4.getOffsetParent=r=>t(r,sY)}})();UL=async(e,{referenceEl:t,floatingEl:r,overlayPositioning:n="absolute",placement:i,flipDisabled:o,flipPlacements:s,offsetDistance:c,offsetSkidding:a,arrowEl:d,type:h})=>{if(!t||!r)return null;let g=Fc(r)==="rtl",{x:v,y:S,placement:M,strategy:I,middlewareData:R}=await oY(t,r,{strategy:n,placement:i==="auto"||i==="auto-start"||i==="auto-end"?void 0:EL(i,g),middleware:lY({placement:i,flipDisabled:o,flipPlacements:s?.map(re=>EL(re,g)),offsetDistance:c,offsetSkidding:a,arrowEl:d,type:h})});if(d&&R.arrow){let{x:re,y:de}=R.arrow,W=M.split("-")[0],me=re!=null?"left":"top",Le=dY[W],xe={left:"",top:"",bottom:"",right:""};"floatingLayout"in e&&(e.floatingLayout=W==="left"||W==="right"?"horizontal":"vertical"),Object.assign(d.style,{...xe,[me]:`${me=="left"?re:de}px`,[W]:"100%",transform:Le})}let F=R.hide?.referenceHidden?"hidden":null,G=F?"none":null;r.setAttribute(cY,M);let{open:J}=e;Object.assign(r.style,{visibility:F,pointerEvents:G,position:I,transform:J?`translate(${CL(v)}px,${CL(S)}px)`:"",top:0,left:0})},cY="data-placement",TL=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end","leading","trailing","leading-start","leading-end","trailing-start","trailing-end"],VL="bottom-end",E4={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active",arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"};dY={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},Rg=new WeakMap,ab=new WeakMap;ML=4,jL=Math.ceil(Math.hypot(ML,ML))});var pb,I4=V(()=>{Wt();pb=(e,t)=>{let r=e.level?`h${e.level}`:"div";return delete e.level,X(r,{class:e.class,key:e.key},t)}});var HL,fY,qL,ZL=V(()=>{Wt();HL={arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"},fY={width:12,height:6,strokeWidth:1},qL=({floatingLayout:e,key:t,ref:r})=>{let{width:n,height:i,strokeWidth:o}=fY,s=n/2,c=e==="vertical",a=`M0,0 H${n} L${n-s},${i} Q${s},${i} ${s},${i} Z`;return X("svg",{"aria-hidden":"true",class:HL.arrow,height:n,key:t,ref:r,viewBox:`0 0 ${n} ${n+(c?0:o)}`,width:n+(c?o:0)},o>0&&X("path",{class:HL.arrowStroke,d:a,fill:"none","stroke-width":o+1}),X("path",{d:a,stroke:"none"}))}});function Wu(){if(typeof customElements>"u")return;["calcite-popover","calcite-action","calcite-icon","calcite-loader"].forEach(t=>{switch(t){case"calcite-popover":customElements.get(t)||customElements.define(t,gY);break;case"calcite-action":customElements.get(t)||ua();break;case"calcite-icon":customElements.get(t)||Hr();break;case"calcite-loader":customElements.get(t)||Xn();break}})}var A4,Ss,pY,YL,JL,mY,hY,XL,gY,mb=V(()=>{Wt();P4();m4();jr();Wp();eb();I4();Vo();la();ca();$o();ZL();zc();Eg();Lg();bs();Bc();A4=class{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=t=>{let{registeredElements:r}=this,n=t.find(i=>r.has(i));return r.get(n)},this.togglePopovers=t=>{let r=t.composedPath(),n=this.queryPopover(r);n&&!n.triggerDisabled&&(n.open=!n.open),Array.from(this.registeredElements.values()).filter(i=>i!==n&&i.autoClose&&i.open&&!r.includes(i)).forEach(i=>i.open=!1)},this.keyDownHandler=t=>{t.defaultPrevented||(t.key==="Escape"?this.closeAllPopovers():Zy(t.key)&&this.togglePopovers(t))},this.clickHandler=t=>{wA(t)||this.togglePopovers(t)}}registerElement(t,r){this.registeredElementCount++,this.registeredElements.set(t,r),this.registeredElementCount===1&&this.addListeners()}unregisterElement(t){this.registeredElements.delete(t)&&this.registeredElementCount--,this.registeredElementCount===0&&this.removeListeners()}closeAllPopovers(){Array.from(this.registeredElements.values()).forEach(t=>t.open=!1)}addListeners(){window.addEventListener("click",this.clickHandler),window.addEventListener("keydown",this.keyDownHandler)}removeListeners(){window.removeEventListener("click",this.clickHandler),window.removeEventListener("keydown",this.keyDownHandler)}},Ss={container:"container",imageContainer:"image-container",closeButtonContainer:"close-button-container",closeButton:"close-button",content:"content",hasHeader:"has-header",header:"header",headerContainer:"headerContainer",headerContent:"header-content",heading:"heading"},pY="auto",YL="aria-controls",JL="aria-expanded",mY=":host{--calcite-floating-ui-z-index:var(--calcite-popover-z-index, var(--calcite-z-index-popup));display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index)}.calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset, left, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:var(--calcite-z-index);border-radius:0.25rem}:host([data-placement^=bottom]) .calcite-floating-ui-anim{inset-block-start:-5px}:host([data-placement^=top]) .calcite-floating-ui-anim{inset-block-start:5px}:host([data-placement^=left]) .calcite-floating-ui-anim{left:5px}:host([data-placement^=right]) .calcite-floating-ui-anim{left:-5px}:host([data-placement]) .calcite-floating-ui-anim--active{opacity:1;inset-block:0;left:0}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:calc(var(--calcite-z-index) * -1);fill:var(--calcite-color-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-color-border-3)}:host([scale=s]) .heading{padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .heading{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .heading{padding-inline:1.25rem;padding-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host{pointer-events:none}:host([open]){pointer-events:initial}.calcite-floating-ui-anim{border-width:1px;border-style:solid;background-color:var(--calcite-popover-background-color, var(--calcite-color-foreground-1));border-color:var(--calcite-popover-border-color, var(--calcite-color-border-3));border-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round))}.calcite-floating-ui-arrow{fill:var(--calcite-popover-background-color, var(--calcite-color-foreground-1))}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-block-end-width:1px;border-style:solid;border-block-end-color:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.heading{margin:0px;display:block;flex:1 1 auto;align-self:center;white-space:normal;font-weight:var(--calcite-font-weight-medium);word-wrap:break-word;word-break:break-word;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.headerContainer{position:relative;display:flex;block-size:100%;flex-direction:row;flex-wrap:nowrap;border-radius:0.25rem;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.headerContainer.has-header{flex-direction:column}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button-container{display:flex;overflow:hidden;flex:0 0 auto;border-start-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));border-end-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));--calcite-action-corner-radius-start-end:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp));--calcite-action-corner-radius-end-end:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp))}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%}:host([hidden]){display:none}[hidden]{display:none}",hY=mY,XL=new A4,gY=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calcitePopoverBeforeClose=Lt(this,"calcitePopoverBeforeClose",6),this.calcitePopoverClose=Lt(this,"calcitePopoverClose",6),this.calcitePopoverBeforeOpen=Lt(this,"calcitePopoverBeforeOpen",6),this.calcitePopoverOpen=Lt(this,"calcitePopoverOpen",6),this.mutationObserver=yr("mutation",()=>this.updateFocusTrapElements()),this.guid=`calcite-popover-${sa()}`,this.openTransitionProp="opacity",this.hasLoaded=!1,this.setTransitionEl=t=>{this.transitionEl=t},this.setFilteredPlacements=()=>{let{el:t,flipPlacements:r}=this;this.filteredFlipPlacements=r?zL(r,t):null},this.setUpReferenceElement=(t=!0)=>{this.removeReferences(),this.effectiveReferenceElement=this.getReferenceElement(),GL(this,this.effectiveReferenceElement,this.el);let{el:r,referenceElement:n,effectiveReferenceElement:i}=this;t&&n&&!i&&console.warn(`${r.tagName}: reference-element id "${n}" was not found.`,{el:r}),this.addReferences()},this.getId=()=>this.el.id||this.guid,this.setExpandedAttr=()=>{let{effectiveReferenceElement:t,open:r}=this;t&&"setAttribute"in t&&t.setAttribute(JL,Ir(r))},this.addReferences=()=>{let{effectiveReferenceElement:t}=this;if(!t)return;let r=this.getId();"setAttribute"in t&&t.setAttribute(YL,r),XL.registerElement(t,this.el),this.setExpandedAttr()},this.removeReferences=()=>{let{effectiveReferenceElement:t}=this;t&&("removeAttribute"in t&&(t.removeAttribute(YL),t.removeAttribute(JL)),XL.unregisterElement(t))},this.hide=()=>{this.open=!1},this.storeArrowEl=t=>{this.arrowEl=t,this.reposition(!0)},this.autoClose=!1,this.closable=!1,this.flipDisabled=!1,this.focusTrapDisabled=!1,this.pointerDisabled=!1,this.flipPlacements=void 0,this.heading=void 0,this.headingLevel=void 0,this.label=void 0,this.messageOverrides=void 0,this.messages=void 0,this.offsetDistance=jL,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement=pY,this.referenceElement=void 0,this.scale="m",this.triggerDisabled=!1,this.effectiveLocale="",this.floatingLayout="vertical",this.effectiveReferenceElement=void 0,this.defaultMessages=void 0}handleFocusTrapDisabled(t){this.open&&(t?Fu(this):Ag(this))}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}onMessagesChange(){}offsetDistanceOffsetHandler(){this.reposition(!0)}offsetSkiddingHandler(){this.reposition(!0)}openHandler(){Gc(this),this.reposition(!0),this.setExpandedAttr()}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}effectiveLocaleChange(){Un(this,this.effectiveLocale)}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setFilteredPlacements(),cn(this),Vn(this),Ky(this),requestAnimationFrame(()=>this.setUpReferenceElement(this.hasLoaded))}async componentWillLoad(){await Fn(this),Nn(this)}componentDidLoad(){Rn(this),this.referenceElement&&!this.effectiveReferenceElement&&this.setUpReferenceElement(),this.open&&Gc(this),this.hasLoaded=!0}disconnectedCallback(){this.mutationObserver?.disconnect(),this.removeReferences(),ln(this),zn(this),M4(this,this.effectiveReferenceElement,this.el),Fu(this)}async reposition(t=!1){let{el:r,effectiveReferenceElement:n,placement:i,overlayPositioning:o,flipDisabled:s,filteredFlipPlacements:c,offsetDistance:a,offsetSkidding:d,arrowEl:h}=this;return WL(this,{floatingEl:r,referenceEl:n,overlayPositioning:o,placement:i,flipDisabled:s,flipPlacements:c,offsetDistance:a,offsetSkidding:d,arrowEl:h,type:"popover"},t)}async setFocus(){await Dn(this),to(this.el),Bp(this.el)}async updateFocusTrapElements(){Qy(this)}getReferenceElement(){let{referenceElement:t,el:r}=this;return(typeof t=="string"?Du(r,{id:t}):t)||null}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit(),Ag(this)}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),Fu(this)}renderCloseButton(){let{messages:t,closable:r}=this;return r?X("div",{class:Ss.closeButtonContainer,key:Ss.closeButtonContainer},X("calcite-action",{appearance:"transparent",class:Ss.closeButton,onClick:this.hide,ref:n=>this.closeButtonEl=n,scale:this.scale,text:t.close},X("calcite-icon",{icon:"x",scale:On(this.scale)}))):null}renderHeader(){let{heading:t,headingLevel:r}=this,n=t?X(pb,{class:Ss.heading,level:r},t):null;return n?X("div",{class:Ss.header,key:Ss.header},n,this.renderCloseButton()):null}render(){let{effectiveReferenceElement:t,heading:r,label:n,open:i,pointerDisabled:o,floatingLayout:s}=this,c=t&&i,a=!c,d=o?null:X(qL,{floatingLayout:s,key:"floating-arrow",ref:this.storeArrowEl});return X(Gr,{key:"a563d48090d6e6c0c138023e169667834f657c4c","aria-hidden":Ir(a),"aria-label":n,"aria-live":"polite","calcite-hydrated-hidden":a,id:this.getId(),role:"dialog"},X("div",{key:"73053dbdce2cfc68fcd42667089d611e81010955",class:{[Ss.container]:!0,[E4.animation]:!0,[E4.animationActive]:c},ref:this.setTransitionEl},d,X("div",{key:"1fbcd45ee42b10a67881ced74db2db051231c94d",class:{[Ss.hasHeader]:!!r,[Ss.headerContainer]:!0}},this.renderHeader(),X("div",{key:"522abe801b98787863aac14d990b948d2d286156",class:Ss.content},X("slot",{key:"022a8f690288acdbac4ec1b3eccf807ffe382d5d"})),r?null:this.renderCloseButton())))}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{focusTrapDisabled:["handleFocusTrapDisabled"],flipPlacements:["flipPlacementsHandler"],messageOverrides:["onMessagesChange"],offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return hY}},[1,"calcite-popover",{autoClose:[516,"auto-close"],closable:[516],flipDisabled:[516,"flip-disabled"],focusTrapDisabled:[516,"focus-trap-disabled"],pointerDisabled:[516,"pointer-disabled"],flipPlacements:[16],heading:[1],headingLevel:[514,"heading-level"],label:[1],messageOverrides:[1040],messages:[1040],offsetDistance:[514,"offset-distance"],offsetSkidding:[514,"offset-skidding"],open:[1540],overlayPositioning:[513,"overlay-positioning"],placement:[513],referenceElement:[1,"reference-element"],scale:[513],triggerDisabled:[516,"trigger-disabled"],effectiveLocale:[32],floatingLayout:[32],effectiveReferenceElement:[32],defaultMessages:[32],reposition:[64],setFocus:[64],updateFocusTrapElements:[64]},void 0,{focusTrapDisabled:["handleFocusTrapDisabled"],flipPlacements:["flipPlacementsHandler"],messageOverrides:["onMessagesChange"],offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"],effectiveLocale:["effectiveLocaleChange"]}]);Wu()});function $g(){if(typeof customElements>"u")return;["calcite-action-menu","calcite-action","calcite-icon","calcite-loader","calcite-popover"].forEach(t=>{switch(t){case"calcite-action-menu":customElements.get(t)||customElements.define(t,SY);break;case"calcite-action":customElements.get(t)||ua();break;case"calcite-icon":customElements.get(t)||Hr();break;case"calcite-loader":customElements.get(t)||Xn();break;case"calcite-popover":customElements.get(t)||Wu();break}})}var KL,hb,wY,yY,bY,vY,_Y,SY,L4=V(()=>{Wt();aL();jr();Wp();Eg();ca();Lg();bs();Bc();mb();KL={menu:"menu",defaultTrigger:"default-trigger"},hb={tooltip:"tooltip",trigger:"trigger"},wY={menu:"ellipsis"},yY="data-active",bY=":host{box-sizing:border-box;display:flex;flex-direction:column;font-size:var(--calcite-font-size-1)}::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:var(--calcite-border-width-sm)}.default-trigger{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}.menu{display:flex;max-block-size:45vh;flex-direction:column;flex-wrap:nowrap;overflow-y:auto;overflow-x:hidden;outline:2px solid transparent;outline-offset:2px;gap:var(--calcite-action-menu-items-space, 0)}:host([hidden]){display:none}[hidden]{display:none}",vY=bY,_Y=["ArrowUp","ArrowDown","End","Home"],SY=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteActionMenuOpen=Lt(this,"calciteActionMenuOpen",6),this.actionElements=[],this.guid=`calcite-action-menu-${sa()}`,this.menuId=`${this.guid}-menu`,this.menuButtonId=`${this.guid}-menu-button`,this.connectMenuButtonEl=()=>{let{menuButtonId:t,menuId:r,open:n,label:i}=this,o=this.slottedMenuButtonEl||this.defaultMenuButtonEl;this.menuButtonEl!==o&&(this.disconnectMenuButtonEl(),this.menuButtonEl=o,this.setTooltipReferenceElement(),o&&(o.active=n,o.setAttribute("aria-controls",r),o.setAttribute("aria-expanded",Ir(n)),o.setAttribute("aria-haspopup","true"),o.id||(o.id=t),o.label||(o.label=i),o.text||(o.text=i),o.addEventListener("click",this.menuButtonClick),o.addEventListener("keydown",this.menuButtonKeyDown)))},this.disconnectMenuButtonEl=()=>{let{menuButtonEl:t}=this;t&&(t.removeEventListener("click",this.menuButtonClick),t.removeEventListener("keydown",this.menuButtonKeyDown))},this.setMenuButtonEl=t=>{let r=t.target.assignedElements({flatten:!0}).filter(n=>n?.matches("calcite-action"));this.slottedMenuButtonEl=r[0],this.connectMenuButtonEl()},this.setDefaultMenuButtonEl=t=>{this.defaultMenuButtonEl=t,this.connectMenuButtonEl()},this.handleCalciteActionClick=()=>{this.open=!1,this.setFocus()},this.menuButtonClick=()=>{this.toggleOpen()},this.updateTooltip=t=>{let r=t.target.assignedElements({flatten:!0}).filter(n=>n?.matches("calcite-tooltip"));this.tooltipEl=r[0],this.setTooltipReferenceElement()},this.setTooltipReferenceElement=()=>{let{tooltipEl:t,expanded:r,menuButtonEl:n,open:i}=this;t&&(t.referenceElement=!r&&!i?n:null)},this.updateAction=(t,r)=>{let{guid:n,activeMenuItemIndex:i}=this,o=`${n}-action-${r}`;t.tabIndex=-1,t.setAttribute("role","menuitem"),t.id||(t.id=o),t.toggleAttribute(yY,r===i)},this.updateActions=t=>{t?.forEach(this.updateAction)},this.handleDefaultSlotChange=t=>{let r=t.target.assignedElements({flatten:!0}).reduce((n,i)=>i?.matches("calcite-action")?(n.push(i),n):i?.matches("calcite-action-group")?n.concat(Array.from(i.querySelectorAll("calcite-action"))):n,[]);this.actionElements=r.filter(n=>!n.disabled&&!n.hidden)},this.menuButtonKeyDown=t=>{let{key:r}=t,{actionElements:n,activeMenuItemIndex:i,open:o}=this;if(n.length){if(Zy(r)){if(t.preventDefault(),!o){this.toggleOpen();return}let s=n[i];s?s.click():this.toggleOpen(!1)}if(r==="Tab"){this.open=!1;return}if(r==="Escape"){this.toggleOpen(!1),t.preventDefault();return}this.handleActionNavigation(t,r,n)}},this.handleActionNavigation=(t,r,n)=>{if(!this.isValidKey(r,_Y))return;if(t.preventDefault(),!this.open){this.toggleOpen(),(r==="Home"||r==="ArrowDown")&&(this.activeMenuItemIndex=0),(r==="End"||r==="ArrowUp")&&(this.activeMenuItemIndex=n.length-1);return}r==="Home"&&(this.activeMenuItemIndex=0),r==="End"&&(this.activeMenuItemIndex=n.length-1);let i=this.activeMenuItemIndex;r==="ArrowUp"&&(this.activeMenuItemIndex=h4(Math.max(i-1,-1),n.length)),r==="ArrowDown"&&(this.activeMenuItemIndex=h4(i+1,n.length))},this.toggleOpenEnd=()=>{this.setFocus(),this.el.removeEventListener("calcitePopoverOpen",this.toggleOpenEnd)},this.toggleOpen=(t=!this.open)=>{this.el.addEventListener("calcitePopoverOpen",this.toggleOpenEnd),this.open=t},this.handlePopoverOpen=()=>{this.open=!0},this.handlePopoverClose=()=>{this.open=!1},this.appearance="solid",this.expanded=!1,this.flipPlacements=void 0,this.label=void 0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.scale=void 0,this.menuButtonEl=void 0,this.activeMenuItemIndex=-1}connectedCallback(){this.connectMenuButtonEl()}componentWillLoad(){Nn(this)}componentDidLoad(){Rn(this)}disconnectedCallback(){this.disconnectMenuButtonEl()}expandedHandler(){this.open=!1,this.setTooltipReferenceElement()}openHandler(t){this.activeMenuItemIndex=this.open?0:-1,this.menuButtonEl&&(this.menuButtonEl.active=t),this.calciteActionMenuOpen.emit(),this.setTooltipReferenceElement()}activeMenuItemIndexHandler(){this.updateActions(this.actionElements)}async setFocus(){return await Dn(this),Fy(this.menuButtonEl)}renderMenuButton(){let{appearance:t,label:r,scale:n,expanded:i}=this;return X("slot",{name:hb.trigger,onSlotchange:this.setMenuButtonEl},X("calcite-action",{appearance:t,class:KL.defaultTrigger,icon:wY.menu,ref:this.setDefaultMenuButtonEl,scale:n,text:r,textEnabled:i}))}renderMenuItems(){let{actionElements:t,activeMenuItemIndex:r,open:n,menuId:i,menuButtonEl:o,label:s,placement:c,overlayPositioning:a,flipPlacements:d}=this,g=t[r]?.id||null;return X("calcite-popover",{autoClose:!0,flipPlacements:d,focusTrapDisabled:!0,label:s,offsetDistance:0,onCalcitePopoverClose:this.handlePopoverClose,onCalcitePopoverOpen:this.handlePopoverOpen,open:n,overlayPositioning:a,placement:c,pointerDisabled:!0,referenceElement:o},X("div",{"aria-activedescendant":g,"aria-labelledby":o?.id,class:KL.menu,id:i,onClick:this.handleCalciteActionClick,role:"menu",tabIndex:-1},X("slot",{onSlotchange:this.handleDefaultSlotChange})))}render(){return X(OI,{key:"d13aa4f3d43fb5651c0487ccfa456813f69955d2"},this.renderMenuButton(),this.renderMenuItems(),X("slot",{key:"b63d187516c766db6a1b1db3df34050fdec9e6ce",name:hb.tooltip,onSlotchange:this.updateTooltip}))}isValidKey(t,r){return!!r.find(n=>n===t)}get el(){return this}static get watchers(){return{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}}static get style(){return vY}},[1,"calcite-action-menu",{appearance:[513],expanded:[516],flipPlacements:[16],label:[1],open:[1540],overlayPositioning:[513,"overlay-positioning"],placement:[513],scale:[513],menuButtonEl:[32],activeMenuItemIndex:[32],setFocus:[64]},void 0,{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}]);$g()});function Fg(){if(typeof customElements>"u")return;["calcite-scrim","calcite-loader"].forEach(t=>{switch(t){case"calcite-scrim":customElements.get(t)||customElements.define(t,TY);break;case"calcite-loader":customElements.get(t)||Xn();break}})}var QL,ek,xY,CY,TY,k4=V(()=>{Wt();Vo();la();$o();jr();Bc();QL={scrim:"scrim",content:"content"},ek={s:72,l:480},xY=":host{--calcite-scrim-background:var(--calcite-color-transparent-scrim);position:absolute;inset:0px;z-index:var(--calcite-z-index-overlay);display:flex;block-size:100%;inline-size:100%;flex-direction:column;align-items:stretch}@keyframes calcite-scrim-fade-in{0%{--tw-bg-opacity:0}100%{--tw-text-opacity:1}}.scrim{position:absolute;inset:0px;display:flex;flex-direction:column;align-content:center;align-items:center;justify-content:center;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-scrim-background, var(--calcite-color-transparent-scrim))}.content{padding:1rem}:host([hidden]){display:none}[hidden]{display:none}",CY=xY,TY=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.resizeObserver=yr("resize",()=>this.handleResize()),this.handleDefaultSlotChange=t=>{this.hasContent=hA(t)},this.storeLoaderEl=t=>{this.loaderEl=t,this.handleResize()},this.loading=!1,this.messages=void 0,this.messageOverrides=void 0,this.loaderScale=void 0,this.defaultMessages=void 0,this.effectiveLocale="",this.hasContent=!1}onMessagesChange(){}effectiveLocaleChange(){Un(this,this.effectiveLocale)}connectedCallback(){cn(this),Vn(this),this.resizeObserver?.observe(this.el)}async componentWillLoad(){await Fn(this)}disconnectedCallback(){ln(this),zn(this),this.resizeObserver?.disconnect()}render(){let{hasContent:t,loading:r,messages:n}=this;return X("div",{key:"286b03bb4a18b45f1b6914684a5178e952a44127",class:QL.scrim},r?X("calcite-loader",{label:n.loading,ref:this.storeLoaderEl,scale:this.loaderScale}):null,X("div",{key:"0f8cd111720239b204d0d201610c4145d5616753",class:QL.content,hidden:!t},X("slot",{key:"fe7bbced9871c9179971da0ef7ca07ea1c9ac33e",onSlotchange:this.handleDefaultSlotChange})))}getScale(t){return t<ek.s?"s":t>=ek.l?"l":"m"}handleResize(){let{loaderEl:t,el:r}=this;t&&(this.loaderScale=this.getScale(Math.min(r.clientHeight,r.clientWidth)??0))}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return CY}},[1,"calcite-scrim",{loading:[516],messages:[1040],messageOverrides:[1040],loaderScale:[32],defaultMessages:[32],effectiveLocale:[32],hasContent:[32]},void 0,{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}]);Fg()});function O4(){if(typeof customElements>"u")return;["calcite-panel","calcite-action","calcite-action-menu","calcite-icon","calcite-loader","calcite-popover","calcite-scrim"].forEach(t=>{switch(t){case"calcite-panel":customElements.get(t)||customElements.define(t,PY);break;case"calcite-action":customElements.get(t)||ua();break;case"calcite-action-menu":customElements.get(t)||$g();break;case"calcite-icon":customElements.get(t)||Hr();break;case"calcite-loader":customElements.get(t)||Xn();break;case"calcite-popover":customElements.get(t)||Wu();break;case"calcite-scrim":customElements.get(t)||Fg();break}})}var fr,tk,gb,qt,EY,MY,PY,rk=V(()=>{Wt();jr();bg();ca();$o();L4();I4();Vo();la();P4();Lg();bs();Bc();mb();k4();fr={actionBarContainer:"action-bar-container",backButton:"back-button",container:"container",contentBottom:"content-bottom",contentTop:"content-top",header:"header",headerContainer:"header-container",headerContainerBorderEnd:"header-container--border-end",heading:"heading",summary:"summary",description:"description",headerContent:"header-content",headerActions:"header-actions",headerActionsEnd:"header-actions--end",headerActionsStart:"header-actions--start",contentWrapper:"content-wrapper",fabContainer:"fab-container",footer:"footer",footerContent:"footer-content",footerActions:"footer-actions",footerStart:"footer-start",footerEnd:"footer-end"},tk={close:"close",collapse:"collapse"},gb={close:"x",menu:"ellipsis",backLeft:"chevron-left",backRight:"chevron-right",expand:"chevron-down",collapse:"chevron-up"},qt={actionBar:"action-bar",alerts:"alerts",contentBottom:"content-bottom",contentTop:"content-top",headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerEnd:"footer-end",footerStart:"footer-start",footerActions:"footer-actions"},EY=`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;overflow:hidden;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.header{margin:0px;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-color-text-2);color:var(--calcite-color-text-2)}.heading{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:0.5rem}:host([scale=s]){--calcite-internal-panel-default-padding:var(--calcite-spacing-sm);--calcite-internal-panel-header-vertical-padding:10px}:host([scale=s]) .header-content .heading{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=s]) .header-content .description{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-internal-panel-default-padding:var(--calcite-spacing-md);--calcite-internal-panel-header-vertical-padding:var(--calcite-spacing-lg)}:host([scale=m]) .header-content .heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m]) .header-content .description{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-internal-panel-default-padding:var(--calcite-spacing-xl);--calcite-internal-panel-header-vertical-padding:var(--calcite-spacing-xxl)}:host([scale=l]) .header-content .heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}:host([scale=l]) .header-content .description{font-size:var(--calcite-font-size-0);line-height:1.25rem}.content-top,.content-bottom{display:flex;align-items:flex-start;align-self:stretch;border-block-start:1px solid var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1)}.container{position:relative;margin:0px;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;background-color:var(--calcite-color-background);padding:0px;transition:max-block-size var(--calcite-animation-timing), inline-size var(--calcite-animation-timing)}.container[hidden]{display:none}.header{z-index:var(--calcite-z-index-header);display:flex;flex-direction:column;background-color:var(--calcite-color-foreground-1);border-block-end:var(--calcite-panel-header-border-block-end, 1px solid var(--calcite-color-border-3))}.header-container{display:flex;inline-size:100%;flex-direction:row;align-items:stretch;justify-content:flex-start;flex:0 0 auto}.header-container--border-end{border-block-end:1px solid var(--calcite-color-border-3)}.action-bar-container{inline-size:100%}.action-bar-container ::slotted(calcite-action-bar){inline-size:100%}.header-content{display:flex;flex-direction:column;overflow:hidden;padding-inline:0.75rem;padding-block:0.875rem;margin-inline-end:auto}.header-content .heading,.header-content .description{display:block;overflow-wrap:break-word;padding:0px}.header-content .heading{margin-inline:0px;margin-block:0px 0.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.header-content .heading:only-child{margin-block-end:0px}.header-content .description{color:var(--calcite-color-text-2)}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-color-border-3);border-inline-end-width:1px}.header-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch}.header-actions--end{margin-inline-start:auto}.content-wrapper{position:relative;display:flex;block-size:100%;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;overflow:auto;outline-color:transparent;padding:var(--calcite-panel-content-space, 0);background:var(--calcite-panel-background-color, var(--calcite-color-background))}.content-wrapper:focus-visible{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(
|
|
57
|
+
)}:host([scale=s]) .button{padding-inline:0.5rem;padding-block:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=s]) .button--text-visible .icon-container{margin-inline-end:0.5rem}:host([scale=m]) .button{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=m]) .button--text-visible .icon-container{margin-inline-end:0.75rem}:host([scale=l]) .button{padding:1.25rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal)}:host([scale=l]) .button--text-visible .icon-container{margin-inline-end:1rem}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.button--text-visible{inline-size:100%}.indicator-with-icon{position:relative}.indicator-with-icon::after{content:"";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;inset-block-end:-0.275rem;inset-inline-end:-0.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-without-icon{margin-inline:0.25rem;inline-size:1rem;position:relative}.indicator-without-icon::after{content:"";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;inset-block-end:-0.275rem;inset-inline-end:-0.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;background-color:var(--calcite-color-foreground-1);opacity:var(--calcite-opacity-disabled)}:host([disabled]):host([active]) .button,:host([disabled]):host([active]) .button:hover,:host([disabled]):host([active]) .button:focus{background-color:var(--calcite-color-foreground-3);opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`,Gq=Bq,jq=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.mutationObserver=yr("mutation",()=>to(this)),this.guid=`calcite-action-${sa()}`,this.indicatorId=`${this.guid}-indicator`,this.buttonId=`${this.guid}-button`,this.handleTooltipSlotChange=t=>{let n=t.target.assignedElements({flatten:!0}).filter(i=>i?.matches("calcite-tooltip"))[0];n&&(n.referenceElement=this.buttonEl)},this.active=!1,this.alignment=void 0,this.appearance="solid",this.compact=!1,this.disabled=!1,this.icon=void 0,this.iconFlipRtl=!1,this.indicator=!1,this.label=void 0,this.loading=!1,this.scale="m",this.text=void 0,this.textEnabled=!1,this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale="",this.defaultMessages=void 0}onMessagesChange(){}effectiveLocaleChange(){Un(this,this.effectiveLocale)}connectedCallback(){cn(this),Vn(this),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async componentWillLoad(){Nn(this),vn()&&await Fn(this)}componentDidLoad(){Rn(this)}disconnectedCallback(){ln(this),zn(this),this.mutationObserver?.disconnect()}componentDidRender(){Uc(this)}async setFocus(){await Dn(this),this.buttonEl?.focus()}renderTextContainer(){let{text:t,textEnabled:r}=this,n={[zo.textContainer]:!0,[zo.textContainerVisible]:r};return t?X("div",{class:n,key:"text-container"},t):null}renderIndicatorText(){let{indicator:t,messages:r,indicatorId:n,buttonId:i}=this;return X("div",{"aria-labelledby":i,"aria-live":"polite",class:zo.indicatorText,id:n,role:"region"},t?r.indicator:null)}renderIconContainer(){let{loading:t,icon:r,scale:n,el:i,iconFlipRtl:o,indicator:s}=this,c=n==="l"?"l":"m",a=t?X("calcite-loader",{inline:!0,label:this.messages.loading,scale:c}):null,d=r?X("calcite-icon",{class:{[zo.indicatorWithIcon]:s},flipRtl:o,icon:r,scale:On(this.scale)}):null,h=a||d,g=h||i.children?.length,v=X("div",{class:{[zo.slotContainer]:!0,[zo.slotContainerHidden]:t}},X("slot",null));return g?X("div",{"aria-hidden":"true",class:zo.iconContainer,key:"icon-container"},h,v):null}render(){let{active:t,compact:r,disabled:n,icon:i,loading:o,textEnabled:s,label:c,text:a,indicator:d,indicatorId:h,buttonId:g,messages:v}=this,S=c||a,M=S?`${S}${d?` (${v.indicator})`:""}`:"",I={[zo.button]:!0,[zo.buttonTextVisible]:s,[zo.buttonCompact]:r};return X(Gr,{key:"3b459307dcb6f8d373e70cd5c7a45d122565a70e"},X(Vc,{key:"3a81f1fb62a66f1dbd608f095ed90f2d47a9daf6",disabled:n},X("button",{key:"bb5249babc116d462becd6b9a056ca0d368c6e09","aria-busy":Ir(o),"aria-controls":d?h:null,"aria-label":M,"aria-pressed":Ir(t),class:I,disabled:n,id:g,ref:R=>this.buttonEl=R},this.renderIconContainer(),this.renderTextContainer(),!i&&d&&X("div",{class:zo.indicatorWithoutIcon,key:"indicator-no-icon"})),X("slot",{key:"983989711d64076eca866c1928f9c777331fcba4",name:Wq.tooltip,onSlotchange:this.handleTooltipSlotChange}),this.renderIndicatorText()))}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return Gq}},[1,"calcite-action",{active:[516],alignment:[513],appearance:[513],compact:[516],disabled:[516],icon:[1],iconFlipRtl:[516,"icon-flip-rtl"],indicator:[516],label:[1],loading:[516],scale:[513],text:[1],textEnabled:[516,"text-enabled"],messages:[1040],messageOverrides:[1040],effectiveLocale:[32],defaultMessages:[32],setFocus:[64]},void 0,{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}]);ua()});function Qq(e){var t=Xq.call(e,kg),r=e[kg];try{e[kg]=void 0;var n=!0}catch{}var i=Kq.call(e);return n&&(t?e[kg]=r:delete e[kg]),i}function rZ(e){return tZ.call(e)}function oZ(e){return e==null?e===void 0?iZ:nZ:cL&&cL in Object(e)?Qq(e):rZ(e)}function sZ(e){return e!=null&&typeof e=="object"}function cZ(e){return typeof e=="symbol"||sZ(e)&&oZ(e)==aZ}function uZ(e){for(var t=e.length;t--&&lZ.test(e.charAt(t)););return t}function fZ(e){return e&&e.slice(0,uZ(e)+1).replace(dZ,"")}function wx(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function uL(e){if(typeof e=="number")return e;if(cZ(e))return lL;if(wx(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=wx(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=fZ(e);var r=mZ.test(e);return r||hZ.test(e)?gZ(e.slice(2),r?2:8):pZ.test(e)?lL:+e}function pL(e,t,r){var n,i,o,s,c,a,d=0,h=!1,g=!1,v=!0;if(typeof e!="function")throw new TypeError(yZ);t=uL(t)||0,wx(r)&&(h=!!r.leading,g="maxWait"in r,o=g?bZ(uL(r.maxWait)||0,t):o,v="trailing"in r?!!r.trailing:v);function S(de){var W=n,me=i;return n=i=void 0,d=de,s=e.apply(me,W),s}function M(de){return d=de,c=setTimeout(B,t),h?S(de):s}function I(de){var W=de-a,me=de-d,Le=t-W;return g?vZ(Le,o-me):Le}function R(de){var W=de-a,me=de-d;return a===void 0||W>=t||W<0||g&&me>=o}function B(){var de=gx();if(R(de))return F(de);c=setTimeout(B,I(de))}function F(de){return c=void 0,v&&n?S(de):(n=i=void 0,s)}function G(){c!==void 0&&clearTimeout(c),d=0,n=a=i=c=void 0}function J(){return c===void 0?s:F(gx())}function re(){var de=gx(),W=R(de);if(n=arguments,i=this,a=de,W){if(c===void 0)return M(a);if(g)return clearTimeout(c),c=setTimeout(B,t),S(a)}return c===void 0&&(c=setTimeout(B,t)),s}return re.cancel=G,re.flush=J,re}var Hq,qq,Zq,Yq,dL,Jq,tb,fL,Xq,Kq,kg,eZ,tZ,nZ,iZ,cL,aZ,lZ,dZ,lL,pZ,mZ,hZ,gZ,wZ,gx,yZ,bZ,vZ,mL=V(()=>{Hq=typeof global=="object"&&global&&global.Object===Object&&global,qq=Hq,Zq=typeof self=="object"&&self&&self.Object===Object&&self,Yq=qq||Zq||Function("return this")(),dL=Yq,Jq=dL.Symbol,tb=Jq,fL=Object.prototype,Xq=fL.hasOwnProperty,Kq=fL.toString,kg=tb?tb.toStringTag:void 0;eZ=Object.prototype,tZ=eZ.toString;nZ="[object Null]",iZ="[object Undefined]",cL=tb?tb.toStringTag:void 0;aZ="[object Symbol]";lZ=/\s/;dZ=/^\s+/;lL=NaN,pZ=/^[-+]0x[0-9a-f]+$/i,mZ=/^0b[01]+$/i,hZ=/^0o[0-7]+$/i,gZ=parseInt;wZ=function(){return dL.Date.now()},gx=wZ,yZ="Expected a function",bZ=Math.max,vZ=Math.min});function vx(e,t,r){return Uu(e,Zp(t,r))}function zu(e,t){return typeof e=="function"?e(t):e}function da(e){return e.split("-")[0]}function vs(e){return e.split("-")[1]}function IL(e){return e==="x"?"y":"x"}function Sx(e){return e==="y"?"height":"width"}function cb(e){return["top","bottom"].includes(da(e))?"y":"x"}function xx(e){return IL(cb(e))}function AL(e,t,r){r===void 0&&(r=!1);let n=vs(e),i=xx(e),o=Sx(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=ob(s)),[s,ob(s)]}function xZ(e){let t=ob(e);return[ib(e),t,ib(t)]}function ib(e){return e.replace(/start|end/g,t=>SZ[t])}function CZ(e,t,r){let n=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:n:t?n:i;case"left":case"right":return t?o:s;default:return[]}}function TZ(e,t,r,n){let i=vs(e),o=CZ(da(e),r==="start",n);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(ib)))),o}function ob(e){return e.replace(/left|right|bottom|top/g,t=>_Z[t])}function EZ(e){return{top:0,right:0,bottom:0,left:0,...e}}function LL(e){return typeof e!="number"?EZ(e):{top:e,right:e,bottom:e,left:e}}function sb(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}function wL(e,t,r){let{reference:n,floating:i}=e,o=cb(t),s=xx(t),c=Sx(s),a=da(t),d=o==="y",h=n.x+n.width/2-i.width/2,g=n.y+n.height/2-i.height/2,v=n[c]/2-i[c]/2,S;switch(a){case"top":S={x:h,y:n.y-i.height};break;case"bottom":S={x:h,y:n.y+n.height};break;case"right":S={x:n.x+n.width,y:g};break;case"left":S={x:n.x-i.width,y:g};break;default:S={x:n.x,y:n.y}}switch(vs(t)){case"start":S[s]-=v*(r&&d?-1:1);break;case"end":S[s]+=v*(r&&d?-1:1);break}return S}async function Og(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:o,rects:s,elements:c,strategy:a}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:v=!1,padding:S=0}=zu(t,e),M=LL(S),R=c[v?g==="floating"?"reference":"floating":g],B=sb(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(R)))==null||r?R:R.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:a})),F=g==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,G=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),J=await(o.isElement==null?void 0:o.isElement(G))?await(o.getScale==null?void 0:o.getScale(G))||{x:1,y:1}:{x:1,y:1},re=sb(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:F,offsetParent:G,strategy:a}):F);return{top:(B.top-re.top+M.top)/J.y,bottom:(re.bottom-B.bottom+M.bottom)/J.y,left:(B.left-re.left+M.left)/J.x,right:(re.right-B.right+M.right)/J.x}}function IZ(e,t,r){return(e?[...r.filter(i=>vs(i)===e),...r.filter(i=>vs(i)!==e)]:r.filter(i=>da(i)===i)).filter(i=>e?vs(i)===e||(t?ib(i)!==i:!1):!0)}function yL(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function bL(e){return PL.some(t=>e[t]>=0)}async function OZ(e,t){let{placement:r,platform:n,elements:i}=e,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=da(r),c=vs(r),a=cb(r)==="y",d=["left","top"].includes(s)?-1:1,h=o&&a?-1:1,g=zu(t,e),{mainAxis:v,crossAxis:S,alignmentAxis:M}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...g};return c&&typeof M=="number"&&(S=c==="end"?M*-1:M),a?{x:S*h,y:v*d}:{x:v*d,y:S*h}}function lb(){return typeof window<"u"}function Jp(e){return kL(e)?(e.nodeName||"").toLowerCase():"#document"}function Li(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function fa(e){var t;return(t=(kL(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function kL(e){return lb()?e instanceof Node||e instanceof Li(e).Node:!1}function Wo(e){return lb()?e instanceof Element||e instanceof Li(e).Element:!1}function _s(e){return lb()?e instanceof HTMLElement||e instanceof Li(e).HTMLElement:!1}function vL(e){return!lb()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Li(e).ShadowRoot}function Dg(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=Bo(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function DZ(e){return["table","td","th"].includes(Jp(e))}function ub(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function db(e){let t=Cx(),r=Wo(e)?Bo(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function $Z(e){let t=Hc(e);for(;_s(t)&&!Yp(t);){if(db(t))return t;if(ub(t))return null;t=Hc(t)}return null}function Cx(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Yp(e){return["html","body","#document"].includes(Jp(e))}function Bo(e){return Li(e).getComputedStyle(e)}function fb(e){return Wo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Hc(e){if(Jp(e)==="html")return e;let t=e.assignedSlot||e.parentNode||vL(e)&&e.host||fa(e);return vL(t)?t.host:t}function OL(e){let t=Hc(e);return Yp(t)?e.ownerDocument?e.ownerDocument.body:e.body:_s(t)&&Dg(t)?t:OL(t)}function Ng(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=OL(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=Li(i);if(o){let c=FZ(s);return t.concat(s,s.visualViewport||[],Dg(i)?i:[],c&&r?Ng(c):[])}return t.concat(i,Ng(i,[],r))}function FZ(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function NL(e){let t=Bo(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=_s(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,c=nb(r)!==o||nb(n)!==s;return c&&(r=o,n=s),{width:r,height:n,$:c}}function Tx(e){return Wo(e)?e:e.contextElement}function qp(e){let t=Tx(e);if(!_s(t))return jc(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=NL(t),s=(o?nb(r.width):r.width)/n,c=(o?nb(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}function RL(e){let t=Li(e);return!Cx()||!t.visualViewport?UZ:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function VZ(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==Li(e)?!1:t}function Vu(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),o=Tx(e),s=jc(1);t&&(n?Wo(n)&&(s=qp(n)):s=qp(e));let c=VZ(o,r,n)?RL(o):jc(0),a=(i.left+c.x)/s.x,d=(i.top+c.y)/s.y,h=i.width/s.x,g=i.height/s.y;if(o){let v=Li(o),S=n&&Wo(n)?Li(n):n,M=v,I=M.frameElement;for(;I&&n&&S!==M;){let R=qp(I),B=I.getBoundingClientRect(),F=Bo(I),G=B.left+(I.clientLeft+parseFloat(F.paddingLeft))*R.x,J=B.top+(I.clientTop+parseFloat(F.paddingTop))*R.y;a*=R.x,d*=R.y,h*=R.x,g*=R.y,a+=G,d+=J,M=Li(I),I=M.frameElement}}return sb({width:h,height:g,x:a,y:d})}function zZ(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o=i==="fixed",s=fa(n),c=t?ub(t.floating):!1;if(n===s||c&&o)return r;let a={scrollLeft:0,scrollTop:0},d=jc(1),h=jc(0),g=_s(n);if((g||!g&&!o)&&((Jp(n)!=="body"||Dg(s))&&(a=fb(n)),_s(n))){let v=Vu(n);d=qp(n),h.x=v.x+n.clientLeft,h.y=v.y+n.clientTop}return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-a.scrollLeft*d.x+h.x,y:r.y*d.y-a.scrollTop*d.y+h.y}}function WZ(e){return Array.from(e.getClientRects())}function DL(e){return Vu(fa(e)).left+fb(e).scrollLeft}function BZ(e){let t=fa(e),r=fb(e),n=e.ownerDocument.body,i=Uu(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=Uu(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+DL(e),c=-r.scrollTop;return Bo(n).direction==="rtl"&&(s+=Uu(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:c}}function GZ(e,t){let r=Li(e),n=fa(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,c=0,a=0;if(i){o=i.width,s=i.height;let d=Cx();(!d||d&&t==="fixed")&&(c=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:c,y:a}}function jZ(e,t){let r=Vu(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=_s(e)?qp(e):jc(1),s=e.clientWidth*o.x,c=e.clientHeight*o.y,a=i*o.x,d=n*o.y;return{width:s,height:c,x:a,y:d}}function _L(e,t,r){let n;if(t==="viewport")n=GZ(e,r);else if(t==="document")n=BZ(fa(e));else if(Wo(t))n=jZ(t,r);else{let i=RL(e);n={...t,x:t.x-i.x,y:t.y-i.y}}return sb(n)}function $L(e,t){let r=Hc(e);return r===t||!Wo(r)||Yp(r)?!1:Bo(r).position==="fixed"||$L(r,t)}function HZ(e,t){let r=t.get(e);if(r)return r;let n=Ng(e,[],!1).filter(c=>Wo(c)&&Jp(c)!=="body"),i=null,o=Bo(e).position==="fixed",s=o?Hc(e):e;for(;Wo(s)&&!Yp(s);){let c=Bo(s),a=db(s);!a&&c.position==="fixed"&&(i=null),(o?!a&&!i:!a&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Dg(s)&&!a&&$L(e,s))?n=n.filter(h=>h!==s):i=c,s=Hc(s)}return t.set(e,n),n}function qZ(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?ub(t)?[]:HZ(t,this._c):[].concat(r),n],c=s[0],a=s.reduce((d,h)=>{let g=_L(t,h,i);return d.top=Uu(g.top,d.top),d.right=Zp(g.right,d.right),d.bottom=Zp(g.bottom,d.bottom),d.left=Uu(g.left,d.left),d},_L(t,c,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function ZZ(e){let{width:t,height:r}=NL(e);return{width:t,height:r}}function YZ(e,t,r){let n=_s(t),i=fa(t),o=r==="fixed",s=Vu(e,!0,o,t),c={scrollLeft:0,scrollTop:0},a=jc(0);if(n||!n&&!o)if((Jp(t)!=="body"||Dg(i))&&(c=fb(t)),n){let g=Vu(t,!0,o,t);a.x=g.x+t.clientLeft,a.y=g.y+t.clientTop}else i&&(a.x=DL(i));let d=s.left+c.scrollLeft-a.x,h=s.top+c.scrollTop-a.y;return{x:d,y:h,width:s.width,height:s.height}}function yx(e){return Bo(e).position==="static"}function SL(e,t){return!_s(e)||Bo(e).position==="fixed"?null:t?t(e):e.offsetParent}function FL(e,t){let r=Li(e);if(ub(e))return r;if(!_s(e)){let i=Hc(e);for(;i&&!Yp(i);){if(Wo(i)&&!yx(i))return i;i=Hc(i)}return r}let n=SL(e,t);for(;n&&DZ(n)&&yx(n);)n=SL(n,t);return n&&Yp(n)&&yx(n)&&!db(n)?r:n||$Z(e)||r}function XZ(e){return Bo(e).direction==="rtl"}function KZ(e,t){let r=null,n,i=fa(e);function o(){var c;clearTimeout(n),(c=r)==null||c.disconnect(),r=null}function s(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),o();let{left:d,top:h,width:g,height:v}=e.getBoundingClientRect();if(c||t(),!g||!v)return;let S=rb(h),M=rb(i.clientWidth-(d+g)),I=rb(i.clientHeight-(h+v)),R=rb(d),F={rootMargin:-S+"px "+-M+"px "+-I+"px "+-R+"px",threshold:Uu(0,Zp(1,a))||1},G=!0;function J(re){let de=re[0].intersectionRatio;if(de!==a){if(!G)return s();de?s(!1,de):n=setTimeout(()=>{s(!1,1e-7)},1e3)}G=!1}try{r=new IntersectionObserver(J,{...F,root:i.ownerDocument})}catch{r=new IntersectionObserver(J,F)}r.observe(e)}return s(!0),o}function QZ(e,t,r,n){n===void 0&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=n,d=Tx(e),h=i||o?[...d?Ng(d):[],...Ng(t)]:[];h.forEach(B=>{i&&B.addEventListener("scroll",r,{passive:!0}),o&&B.addEventListener("resize",r)});let g=d&&c?KZ(d,r):null,v=-1,S=null;s&&(S=new ResizeObserver(B=>{let[F]=B;F&&F.target===d&&S&&(S.unobserve(t),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var G;(G=S)==null||G.observe(t)})),r()}),d&&!a&&S.observe(d),S.observe(t));let M,I=a?Vu(e):null;a&&R();function R(){let B=Vu(e);I&&(B.x!==I.x||B.y!==I.y||B.width!==I.width||B.height!==I.height)&&r(),I=B,M=requestAnimationFrame(R)}return r(),()=>{var B;h.forEach(F=>{i&&F.removeEventListener("scroll",r),o&&F.removeEventListener("resize",r)}),g?.(),(B=S)==null||B.disconnect(),S=null,a&&cancelAnimationFrame(M)}}function sY(e){return aY(e)}function bx(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function aY(e){for(let t=e;t;t=bx(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=bx(e);t;t=bx(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||db(r)||t.tagName==="BODY"))return t}return null}function CL(e){let t=window.devicePixelRatio||1;return Math.round(e*t)/t}function lY({placement:e,flipDisabled:t,flipPlacements:r,offsetDistance:n,offsetSkidding:i,arrowEl:o,type:s}){let c=[rY(),nY()];if(s==="menu")return[...c,xL({fallbackPlacements:r||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if(s==="popover"||s==="tooltip"){let a=[...c,eY({mainAxis:typeof n=="number"?n:0,crossAxis:typeof i=="number"?i:0})];return e==="auto"||e==="auto-start"||e==="auto-end"?a.push(tY({alignment:e==="auto-start"?"start":e==="auto-end"?"end":null})):t||a.push(xL(r?{fallbackPlacements:r}:{})),o&&a.push(iY({element:o})),a}return[]}function zL(e,t){let r=e.filter(n=>TL.includes(n));return r.length!==e.length&&console.warn(`${t.tagName}: Invalid value found in: flipPlacements. Try any of these: ${TL.map(n=>`"${n}"`).join(", ").trim()}`,{el:t}),r}function EL(e,t=!1){let r=["left","right"];return t&&r.reverse(),e.replace(/leading/gi,r[0]).replace(/trailing/gi,r[1])}async function WL(e,t,r=!1){if(!e.open||!t.floatingEl||!t.referenceEl)return;if(!Rg.get(e))return BL(e,t.referenceEl,t.floatingEl);await(r?uY(e):UL)(e,t)}function uY(e){let t=ab.get(e);return t||(t=pL(UL,_4.reposition,{leading:!0,maxWait:_4.reposition}),ab.set(e,t),t)}async function BL(e,t,r){if(!r.isConnected)return;let n=vn()?QZ:(s,c,a)=>(a(),()=>{});Rg.set(e,{state:"pending"});let i,o=n(t,r,()=>{let s=e.reposition();i||(i=s)});return Rg.set(e,{state:"active",cleanUp:o}),i}async function GL(e,t,r){if(!(!r||!t)&&(Mx(e,t,r),Object.assign(r.style,{visibility:"hidden",pointerEvents:"none",position:e.overlayPositioning}),!!e.open))return BL(e,t,r)}function Mx(e,t,r){if(!r||!t)return;let n=Rg.get(e);n?.state==="active"&&n.cleanUp(),Rg.delete(e),ab.get(e)?.cancel(),ab.delete(e)}var PL,hL,gL,Zp,Uu,nb,rb,jc,_Z,SZ,MZ,PZ,AZ,LZ,kZ,NZ,RZ,UZ,JZ,_x,eY,tY,rY,xL,nY,iY,oY,UL,cY,TL,VL,Ex,dY,Rg,ab,ML,jL,Px=V(()=>{Np();jr();oa();mL();PL=["top","right","bottom","left"],hL=["start","end"],gL=PL.reduce((e,t)=>e.concat(t,t+"-"+hL[0],t+"-"+hL[1]),[]),Zp=Math.min,Uu=Math.max,nb=Math.round,rb=Math.floor,jc=e=>({x:e,y:e}),_Z={left:"right",right:"left",bottom:"top",top:"bottom"},SZ={start:"end",end:"start"};MZ=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,c=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t)),d=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:g}=wL(d,n,a),v=n,S={},M=0;for(let I=0;I<c.length;I++){let{name:R,fn:B}=c[I],{x:F,y:G,data:J,reset:re}=await B({x:h,y:g,initialPlacement:n,placement:v,strategy:i,middlewareData:S,rects:d,platform:s,elements:{reference:e,floating:t}});h=F??h,g=G??g,S={...S,[R]:{...S[R],...J}},re&&M<=50&&(M++,typeof re=="object"&&(re.placement&&(v=re.placement),re.rects&&(d=re.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):re.rects),{x:h,y:g}=wL(d,v,a)),I=-1)}return{x:h,y:g,placement:v,strategy:i,middlewareData:S}};PZ=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:i,rects:o,platform:s,elements:c,middlewareData:a}=t,{element:d,padding:h=0}=zu(e,t)||{};if(d==null)return{};let g=LL(h),v={x:r,y:n},S=xx(i),M=Sx(S),I=await s.getDimensions(d),R=S==="y",B=R?"top":"left",F=R?"bottom":"right",G=R?"clientHeight":"clientWidth",J=o.reference[M]+o.reference[S]-v[S]-o.floating[M],re=v[S]-o.reference[S],de=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d)),W=de?de[G]:0;(!W||!await(s.isElement==null?void 0:s.isElement(de)))&&(W=c.floating[G]||o.floating[M]);let me=J/2-re/2,Le=W/2-I[M]/2-1,xe=Zp(g[B],Le),ke=Zp(g[F],Le),ge=xe,K=W-I[M]-ke,H=W/2-I[M]/2+me,se=vx(ge,H,K),fe=!a.arrow&&vs(i)!=null&&H!==se&&o.reference[M]/2-(H<ge?xe:ke)-I[M]/2<0,we=fe?H<ge?H-ge:H-K:0;return{[S]:v[S]+we,data:{[S]:se,centerOffset:H-se-we,...fe&&{alignmentOffset:we}},reset:fe}}});AZ=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:o,middlewareData:s,placement:c,platform:a,elements:d}=t,{crossAxis:h=!1,alignment:g,allowedPlacements:v=gL,autoAlignment:S=!0,...M}=zu(e,t),I=g!==void 0||v===gL?IZ(g||null,S,v):v,R=await Og(t,M),B=((r=s.autoPlacement)==null?void 0:r.index)||0,F=I[B];if(F==null)return{};let G=AL(F,o,await(a.isRTL==null?void 0:a.isRTL(d.floating)));if(c!==F)return{reset:{placement:I[0]}};let J=[R[da(F)],R[G[0]],R[G[1]]],re=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:F,overflows:J}],de=I[B+1];if(de)return{data:{index:B+1,overflows:re},reset:{placement:de}};let W=re.map(xe=>{let ke=vs(xe.placement);return[xe.placement,ke&&h?xe.overflows.slice(0,2).reduce((ge,K)=>ge+K,0):xe.overflows[0],xe.overflows]}).sort((xe,ke)=>xe[1]-ke[1]),Le=((i=W.filter(xe=>xe[2].slice(0,vs(xe[0])?2:3).every(ke=>ke<=0))[0])==null?void 0:i[0])||W[0][0];return Le!==c?{data:{index:B+1,overflows:re},reset:{placement:Le}}:{}}}},LZ=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;let{placement:i,middlewareData:o,rects:s,initialPlacement:c,platform:a,elements:d}=t,{mainAxis:h=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:I=!0,...R}=zu(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};let B=da(i),F=da(c)===c,G=await(a.isRTL==null?void 0:a.isRTL(d.floating)),J=v||(F||!I?[ob(c)]:xZ(c));!v&&M!=="none"&&J.push(...TZ(c,I,M,G));let re=[c,...J],de=await Og(t,R),W=[],me=((n=o.flip)==null?void 0:n.overflows)||[];if(h&&W.push(de[B]),g){let ge=AL(i,s,G);W.push(de[ge[0]],de[ge[1]])}if(me=[...me,{placement:i,overflows:W}],!W.every(ge=>ge<=0)){var Le,xe;let ge=(((Le=o.flip)==null?void 0:Le.index)||0)+1,K=re[ge];if(K)return{data:{index:ge,overflows:me},reset:{placement:K}};let H=(xe=me.filter(se=>se.overflows[0]<=0).sort((se,fe)=>se.overflows[1]-fe.overflows[1])[0])==null?void 0:xe.placement;if(!H)switch(S){case"bestFit":{var ke;let se=(ke=me.map(fe=>[fe.placement,fe.overflows.filter(we=>we>0).reduce((we,Ee)=>we+Ee,0)]).sort((fe,we)=>fe[1]-we[1])[0])==null?void 0:ke[0];se&&(H=se);break}case"initialPlacement":H=c;break}if(i!==H)return{reset:{placement:H}}}return{}}}};kZ=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...i}=zu(e,t);switch(n){case"referenceHidden":{let o=await Og(t,{...i,elementContext:"reference"}),s=yL(o,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:bL(s)}}}case"escaped":{let o=await Og(t,{...i,altBoundary:!0}),s=yL(o,r.floating);return{data:{escapedOffsets:s,escaped:bL(s)}}}default:return{}}}}};NZ=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:o,placement:s,middlewareData:c}=t,a=await OZ(t,e);return s===((r=c.offset)==null?void 0:r.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:s}}}}},RZ=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:R=>{let{x:B,y:F}=R;return{x:B,y:F}}},...a}=zu(e,t),d={x:r,y:n},h=await Og(t,a),g=cb(da(i)),v=IL(g),S=d[v],M=d[g];if(o){let R=v==="y"?"top":"left",B=v==="y"?"bottom":"right",F=S+h[R],G=S-h[B];S=vx(F,S,G)}if(s){let R=g==="y"?"top":"left",B=g==="y"?"bottom":"right",F=M+h[R],G=M-h[B];M=vx(F,M,G)}let I=c.fn({...t,[v]:S,[g]:M});return{...I,data:{x:I.x-r,y:I.y-n}}}}};UZ=jc(0);JZ=async function(e){let t=this.getOffsetParent||FL,r=this.getDimensions,n=await r(e.floating);return{reference:YZ(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};_x={convertOffsetParentRelativeRectToViewportRelativeRect:zZ,getDocumentElement:fa,getClippingRect:qZ,getOffsetParent:FL,getElementRects:JZ,getClientRects:WZ,getDimensions:ZZ,getScale:qp,isElement:Wo,isRTL:XZ};eY=NZ,tY=AZ,rY=RZ,xL=LZ,nY=kZ,iY=PZ,oY=(e,t,r)=>{let n=new Map,i={platform:_x,...r},o={...i.platform,_c:n};return MZ(e,t,{...i,platform:o})};(function(){if(vn()){let t=_x.getOffsetParent;_x.getOffsetParent=r=>t(r,sY)}})();UL=async(e,{referenceEl:t,floatingEl:r,overlayPositioning:n="absolute",placement:i,flipDisabled:o,flipPlacements:s,offsetDistance:c,offsetSkidding:a,arrowEl:d,type:h})=>{if(!t||!r)return null;let g=Fc(r)==="rtl",{x:v,y:S,placement:M,strategy:I,middlewareData:R}=await oY(t,r,{strategy:n,placement:i==="auto"||i==="auto-start"||i==="auto-end"?void 0:EL(i,g),middleware:lY({placement:i,flipDisabled:o,flipPlacements:s?.map(re=>EL(re,g)),offsetDistance:c,offsetSkidding:a,arrowEl:d,type:h})});if(d&&R.arrow){let{x:re,y:de}=R.arrow,W=M.split("-")[0],me=re!=null?"left":"top",Le=dY[W],xe={left:"",top:"",bottom:"",right:""};"floatingLayout"in e&&(e.floatingLayout=W==="left"||W==="right"?"horizontal":"vertical"),Object.assign(d.style,{...xe,[me]:`${me=="left"?re:de}px`,[W]:"100%",transform:Le})}let F=R.hide?.referenceHidden?"hidden":null,G=F?"none":null;r.setAttribute(cY,M);let{open:J}=e;Object.assign(r.style,{visibility:F,pointerEvents:G,position:I,transform:J?`translate(${CL(v)}px,${CL(S)}px)`:"",top:0,left:0})},cY="data-placement",TL=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end","leading","trailing","leading-start","leading-end","trailing-start","trailing-end"],VL="bottom-end",Ex={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active",arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"};dY={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},Rg=new WeakMap,ab=new WeakMap;ML=4,jL=Math.ceil(Math.hypot(ML,ML))});var pb,Ix=V(()=>{Wt();pb=(e,t)=>{let r=e.level?`h${e.level}`:"div";return delete e.level,X(r,{class:e.class,key:e.key},t)}});var HL,fY,qL,ZL=V(()=>{Wt();HL={arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"},fY={width:12,height:6,strokeWidth:1},qL=({floatingLayout:e,key:t,ref:r})=>{let{width:n,height:i,strokeWidth:o}=fY,s=n/2,c=e==="vertical",a=`M0,0 H${n} L${n-s},${i} Q${s},${i} ${s},${i} Z`;return X("svg",{"aria-hidden":"true",class:HL.arrow,height:n,key:t,ref:r,viewBox:`0 0 ${n} ${n+(c?0:o)}`,width:n+(c?o:0)},o>0&&X("path",{class:HL.arrowStroke,d:a,fill:"none","stroke-width":o+1}),X("path",{d:a,stroke:"none"}))}});function Wu(){if(typeof customElements>"u")return;["calcite-popover","calcite-action","calcite-icon","calcite-loader"].forEach(t=>{switch(t){case"calcite-popover":customElements.get(t)||customElements.define(t,gY);break;case"calcite-action":customElements.get(t)||ua();break;case"calcite-icon":customElements.get(t)||Hr();break;case"calcite-loader":customElements.get(t)||Xn();break}})}var Ax,Ss,pY,YL,JL,mY,hY,XL,gY,mb=V(()=>{Wt();Px();mx();jr();Wp();eb();Ix();Vo();la();ca();$o();ZL();zc();Eg();Lg();bs();Bc();Ax=class{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=t=>{let{registeredElements:r}=this,n=t.find(i=>r.has(i));return r.get(n)},this.togglePopovers=t=>{let r=t.composedPath(),n=this.queryPopover(r);n&&!n.triggerDisabled&&(n.open=!n.open),Array.from(this.registeredElements.values()).filter(i=>i!==n&&i.autoClose&&i.open&&!r.includes(i)).forEach(i=>i.open=!1)},this.keyDownHandler=t=>{t.defaultPrevented||(t.key==="Escape"?this.closeAllPopovers():Zy(t.key)&&this.togglePopovers(t))},this.clickHandler=t=>{wA(t)||this.togglePopovers(t)}}registerElement(t,r){this.registeredElementCount++,this.registeredElements.set(t,r),this.registeredElementCount===1&&this.addListeners()}unregisterElement(t){this.registeredElements.delete(t)&&this.registeredElementCount--,this.registeredElementCount===0&&this.removeListeners()}closeAllPopovers(){Array.from(this.registeredElements.values()).forEach(t=>t.open=!1)}addListeners(){window.addEventListener("click",this.clickHandler),window.addEventListener("keydown",this.keyDownHandler)}removeListeners(){window.removeEventListener("click",this.clickHandler),window.removeEventListener("keydown",this.keyDownHandler)}},Ss={container:"container",imageContainer:"image-container",closeButtonContainer:"close-button-container",closeButton:"close-button",content:"content",hasHeader:"has-header",header:"header",headerContainer:"headerContainer",headerContent:"header-content",heading:"heading"},pY="auto",YL="aria-controls",JL="aria-expanded",mY=":host{--calcite-floating-ui-z-index:var(--calcite-popover-z-index, var(--calcite-z-index-popup));display:block;position:absolute;z-index:var(--calcite-floating-ui-z-index)}.calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset, left, opacity;opacity:0;box-shadow:0 0 16px 0 rgba(0, 0, 0, 0.16);z-index:var(--calcite-z-index);border-radius:0.25rem}:host([data-placement^=bottom]) .calcite-floating-ui-anim{inset-block-start:-5px}:host([data-placement^=top]) .calcite-floating-ui-anim{inset-block-start:5px}:host([data-placement^=left]) .calcite-floating-ui-anim{left:5px}:host([data-placement^=right]) .calcite-floating-ui-anim{left:-5px}:host([data-placement]) .calcite-floating-ui-anim--active{opacity:1;inset-block:0;left:0}:host([calcite-hydrated-hidden]){visibility:hidden !important;pointer-events:none}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:calc(var(--calcite-z-index) * -1);fill:var(--calcite-color-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-color-border-3)}:host([scale=s]) .heading{padding-inline:0.75rem;padding-block:0.5rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .heading{padding-inline:1rem;padding-block:0.75rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .heading{padding-inline:1.25rem;padding-block:1rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host{pointer-events:none}:host([open]){pointer-events:initial}.calcite-floating-ui-anim{border-width:1px;border-style:solid;background-color:var(--calcite-popover-background-color, var(--calcite-color-foreground-1));border-color:var(--calcite-popover-border-color, var(--calcite-color-border-3));border-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round))}.calcite-floating-ui-arrow{fill:var(--calcite-popover-background-color, var(--calcite-color-foreground-1))}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-block-end-width:1px;border-style:solid;border-block-end-color:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.heading{margin:0px;display:block;flex:1 1 auto;align-self:center;white-space:normal;font-weight:var(--calcite-font-weight-medium);word-wrap:break-word;word-break:break-word;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.headerContainer{position:relative;display:flex;block-size:100%;flex-direction:row;flex-wrap:nowrap;border-radius:0.25rem;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.headerContainer.has-header{flex-direction:column}.content{display:flex;block-size:100%;inline-size:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button-container{display:flex;overflow:hidden;flex:0 0 auto;border-start-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));border-end-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));--calcite-action-corner-radius-start-end:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp));--calcite-action-corner-radius-end-end:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp))}::slotted(calcite-panel),::slotted(calcite-flow){block-size:100%}:host([hidden]){display:none}[hidden]{display:none}",hY=mY,XL=new Ax,gY=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calcitePopoverBeforeClose=Lt(this,"calcitePopoverBeforeClose",6),this.calcitePopoverClose=Lt(this,"calcitePopoverClose",6),this.calcitePopoverBeforeOpen=Lt(this,"calcitePopoverBeforeOpen",6),this.calcitePopoverOpen=Lt(this,"calcitePopoverOpen",6),this.mutationObserver=yr("mutation",()=>this.updateFocusTrapElements()),this.guid=`calcite-popover-${sa()}`,this.openTransitionProp="opacity",this.hasLoaded=!1,this.setTransitionEl=t=>{this.transitionEl=t},this.setFilteredPlacements=()=>{let{el:t,flipPlacements:r}=this;this.filteredFlipPlacements=r?zL(r,t):null},this.setUpReferenceElement=(t=!0)=>{this.removeReferences(),this.effectiveReferenceElement=this.getReferenceElement(),GL(this,this.effectiveReferenceElement,this.el);let{el:r,referenceElement:n,effectiveReferenceElement:i}=this;t&&n&&!i&&console.warn(`${r.tagName}: reference-element id "${n}" was not found.`,{el:r}),this.addReferences()},this.getId=()=>this.el.id||this.guid,this.setExpandedAttr=()=>{let{effectiveReferenceElement:t,open:r}=this;t&&"setAttribute"in t&&t.setAttribute(JL,Ir(r))},this.addReferences=()=>{let{effectiveReferenceElement:t}=this;if(!t)return;let r=this.getId();"setAttribute"in t&&t.setAttribute(YL,r),XL.registerElement(t,this.el),this.setExpandedAttr()},this.removeReferences=()=>{let{effectiveReferenceElement:t}=this;t&&("removeAttribute"in t&&(t.removeAttribute(YL),t.removeAttribute(JL)),XL.unregisterElement(t))},this.hide=()=>{this.open=!1},this.storeArrowEl=t=>{this.arrowEl=t,this.reposition(!0)},this.autoClose=!1,this.closable=!1,this.flipDisabled=!1,this.focusTrapDisabled=!1,this.pointerDisabled=!1,this.flipPlacements=void 0,this.heading=void 0,this.headingLevel=void 0,this.label=void 0,this.messageOverrides=void 0,this.messages=void 0,this.offsetDistance=jL,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement=pY,this.referenceElement=void 0,this.scale="m",this.triggerDisabled=!1,this.effectiveLocale="",this.floatingLayout="vertical",this.effectiveReferenceElement=void 0,this.defaultMessages=void 0}handleFocusTrapDisabled(t){this.open&&(t?Fu(this):Ag(this))}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}onMessagesChange(){}offsetDistanceOffsetHandler(){this.reposition(!0)}offsetSkiddingHandler(){this.reposition(!0)}openHandler(){Gc(this),this.reposition(!0),this.setExpandedAttr()}overlayPositioningHandler(){this.reposition(!0)}placementHandler(){this.reposition(!0)}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}effectiveLocaleChange(){Un(this,this.effectiveLocale)}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setFilteredPlacements(),cn(this),Vn(this),Ky(this),requestAnimationFrame(()=>this.setUpReferenceElement(this.hasLoaded))}async componentWillLoad(){await Fn(this),Nn(this)}componentDidLoad(){Rn(this),this.referenceElement&&!this.effectiveReferenceElement&&this.setUpReferenceElement(),this.open&&Gc(this),this.hasLoaded=!0}disconnectedCallback(){this.mutationObserver?.disconnect(),this.removeReferences(),ln(this),zn(this),Mx(this,this.effectiveReferenceElement,this.el),Fu(this)}async reposition(t=!1){let{el:r,effectiveReferenceElement:n,placement:i,overlayPositioning:o,flipDisabled:s,filteredFlipPlacements:c,offsetDistance:a,offsetSkidding:d,arrowEl:h}=this;return WL(this,{floatingEl:r,referenceEl:n,overlayPositioning:o,placement:i,flipDisabled:s,flipPlacements:c,offsetDistance:a,offsetSkidding:d,arrowEl:h,type:"popover"},t)}async setFocus(){await Dn(this),to(this.el),Bp(this.el)}async updateFocusTrapElements(){Qy(this)}getReferenceElement(){let{referenceElement:t,el:r}=this;return(typeof t=="string"?Du(r,{id:t}):t)||null}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit(),Ag(this)}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),Fu(this)}renderCloseButton(){let{messages:t,closable:r}=this;return r?X("div",{class:Ss.closeButtonContainer,key:Ss.closeButtonContainer},X("calcite-action",{appearance:"transparent",class:Ss.closeButton,onClick:this.hide,ref:n=>this.closeButtonEl=n,scale:this.scale,text:t.close},X("calcite-icon",{icon:"x",scale:On(this.scale)}))):null}renderHeader(){let{heading:t,headingLevel:r}=this,n=t?X(pb,{class:Ss.heading,level:r},t):null;return n?X("div",{class:Ss.header,key:Ss.header},n,this.renderCloseButton()):null}render(){let{effectiveReferenceElement:t,heading:r,label:n,open:i,pointerDisabled:o,floatingLayout:s}=this,c=t&&i,a=!c,d=o?null:X(qL,{floatingLayout:s,key:"floating-arrow",ref:this.storeArrowEl});return X(Gr,{key:"a563d48090d6e6c0c138023e169667834f657c4c","aria-hidden":Ir(a),"aria-label":n,"aria-live":"polite","calcite-hydrated-hidden":a,id:this.getId(),role:"dialog"},X("div",{key:"73053dbdce2cfc68fcd42667089d611e81010955",class:{[Ss.container]:!0,[Ex.animation]:!0,[Ex.animationActive]:c},ref:this.setTransitionEl},d,X("div",{key:"1fbcd45ee42b10a67881ced74db2db051231c94d",class:{[Ss.hasHeader]:!!r,[Ss.headerContainer]:!0}},this.renderHeader(),X("div",{key:"522abe801b98787863aac14d990b948d2d286156",class:Ss.content},X("slot",{key:"022a8f690288acdbac4ec1b3eccf807ffe382d5d"})),r?null:this.renderCloseButton())))}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{focusTrapDisabled:["handleFocusTrapDisabled"],flipPlacements:["flipPlacementsHandler"],messageOverrides:["onMessagesChange"],offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return hY}},[1,"calcite-popover",{autoClose:[516,"auto-close"],closable:[516],flipDisabled:[516,"flip-disabled"],focusTrapDisabled:[516,"focus-trap-disabled"],pointerDisabled:[516,"pointer-disabled"],flipPlacements:[16],heading:[1],headingLevel:[514,"heading-level"],label:[1],messageOverrides:[1040],messages:[1040],offsetDistance:[514,"offset-distance"],offsetSkidding:[514,"offset-skidding"],open:[1540],overlayPositioning:[513,"overlay-positioning"],placement:[513],referenceElement:[1,"reference-element"],scale:[513],triggerDisabled:[516,"trigger-disabled"],effectiveLocale:[32],floatingLayout:[32],effectiveReferenceElement:[32],defaultMessages:[32],reposition:[64],setFocus:[64],updateFocusTrapElements:[64]},void 0,{focusTrapDisabled:["handleFocusTrapDisabled"],flipPlacements:["flipPlacementsHandler"],messageOverrides:["onMessagesChange"],offsetDistance:["offsetDistanceOffsetHandler"],offsetSkidding:["offsetSkiddingHandler"],open:["openHandler"],overlayPositioning:["overlayPositioningHandler"],placement:["placementHandler"],referenceElement:["referenceElementHandler"],effectiveLocale:["effectiveLocaleChange"]}]);Wu()});function $g(){if(typeof customElements>"u")return;["calcite-action-menu","calcite-action","calcite-icon","calcite-loader","calcite-popover"].forEach(t=>{switch(t){case"calcite-action-menu":customElements.get(t)||customElements.define(t,SY);break;case"calcite-action":customElements.get(t)||ua();break;case"calcite-icon":customElements.get(t)||Hr();break;case"calcite-loader":customElements.get(t)||Xn();break;case"calcite-popover":customElements.get(t)||Wu();break}})}var KL,hb,wY,yY,bY,vY,_Y,SY,Lx=V(()=>{Wt();aL();jr();Wp();Eg();ca();Lg();bs();Bc();mb();KL={menu:"menu",defaultTrigger:"default-trigger"},hb={tooltip:"tooltip",trigger:"trigger"},wY={menu:"ellipsis"},yY="data-active",bY=":host{box-sizing:border-box;display:flex;flex-direction:column;font-size:var(--calcite-font-size-1)}::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:var(--calcite-border-width-sm)}.default-trigger{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}.menu{display:flex;max-block-size:45vh;flex-direction:column;flex-wrap:nowrap;overflow-y:auto;overflow-x:hidden;outline:2px solid transparent;outline-offset:2px;gap:var(--calcite-action-menu-items-space, 0)}:host([hidden]){display:none}[hidden]{display:none}",vY=bY,_Y=["ArrowUp","ArrowDown","End","Home"],SY=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteActionMenuOpen=Lt(this,"calciteActionMenuOpen",6),this.actionElements=[],this.guid=`calcite-action-menu-${sa()}`,this.menuId=`${this.guid}-menu`,this.menuButtonId=`${this.guid}-menu-button`,this.connectMenuButtonEl=()=>{let{menuButtonId:t,menuId:r,open:n,label:i}=this,o=this.slottedMenuButtonEl||this.defaultMenuButtonEl;this.menuButtonEl!==o&&(this.disconnectMenuButtonEl(),this.menuButtonEl=o,this.setTooltipReferenceElement(),o&&(o.active=n,o.setAttribute("aria-controls",r),o.setAttribute("aria-expanded",Ir(n)),o.setAttribute("aria-haspopup","true"),o.id||(o.id=t),o.label||(o.label=i),o.text||(o.text=i),o.addEventListener("click",this.menuButtonClick),o.addEventListener("keydown",this.menuButtonKeyDown)))},this.disconnectMenuButtonEl=()=>{let{menuButtonEl:t}=this;t&&(t.removeEventListener("click",this.menuButtonClick),t.removeEventListener("keydown",this.menuButtonKeyDown))},this.setMenuButtonEl=t=>{let r=t.target.assignedElements({flatten:!0}).filter(n=>n?.matches("calcite-action"));this.slottedMenuButtonEl=r[0],this.connectMenuButtonEl()},this.setDefaultMenuButtonEl=t=>{this.defaultMenuButtonEl=t,this.connectMenuButtonEl()},this.handleCalciteActionClick=()=>{this.open=!1,this.setFocus()},this.menuButtonClick=()=>{this.toggleOpen()},this.updateTooltip=t=>{let r=t.target.assignedElements({flatten:!0}).filter(n=>n?.matches("calcite-tooltip"));this.tooltipEl=r[0],this.setTooltipReferenceElement()},this.setTooltipReferenceElement=()=>{let{tooltipEl:t,expanded:r,menuButtonEl:n,open:i}=this;t&&(t.referenceElement=!r&&!i?n:null)},this.updateAction=(t,r)=>{let{guid:n,activeMenuItemIndex:i}=this,o=`${n}-action-${r}`;t.tabIndex=-1,t.setAttribute("role","menuitem"),t.id||(t.id=o),t.toggleAttribute(yY,r===i)},this.updateActions=t=>{t?.forEach(this.updateAction)},this.handleDefaultSlotChange=t=>{let r=t.target.assignedElements({flatten:!0}).reduce((n,i)=>i?.matches("calcite-action")?(n.push(i),n):i?.matches("calcite-action-group")?n.concat(Array.from(i.querySelectorAll("calcite-action"))):n,[]);this.actionElements=r.filter(n=>!n.disabled&&!n.hidden)},this.menuButtonKeyDown=t=>{let{key:r}=t,{actionElements:n,activeMenuItemIndex:i,open:o}=this;if(n.length){if(Zy(r)){if(t.preventDefault(),!o){this.toggleOpen();return}let s=n[i];s?s.click():this.toggleOpen(!1)}if(r==="Tab"){this.open=!1;return}if(r==="Escape"){this.toggleOpen(!1),t.preventDefault();return}this.handleActionNavigation(t,r,n)}},this.handleActionNavigation=(t,r,n)=>{if(!this.isValidKey(r,_Y))return;if(t.preventDefault(),!this.open){this.toggleOpen(),(r==="Home"||r==="ArrowDown")&&(this.activeMenuItemIndex=0),(r==="End"||r==="ArrowUp")&&(this.activeMenuItemIndex=n.length-1);return}r==="Home"&&(this.activeMenuItemIndex=0),r==="End"&&(this.activeMenuItemIndex=n.length-1);let i=this.activeMenuItemIndex;r==="ArrowUp"&&(this.activeMenuItemIndex=hx(Math.max(i-1,-1),n.length)),r==="ArrowDown"&&(this.activeMenuItemIndex=hx(i+1,n.length))},this.toggleOpenEnd=()=>{this.setFocus(),this.el.removeEventListener("calcitePopoverOpen",this.toggleOpenEnd)},this.toggleOpen=(t=!this.open)=>{this.el.addEventListener("calcitePopoverOpen",this.toggleOpenEnd),this.open=t},this.handlePopoverOpen=()=>{this.open=!0},this.handlePopoverClose=()=>{this.open=!1},this.appearance="solid",this.expanded=!1,this.flipPlacements=void 0,this.label=void 0,this.open=!1,this.overlayPositioning="absolute",this.placement="auto",this.scale=void 0,this.menuButtonEl=void 0,this.activeMenuItemIndex=-1}connectedCallback(){this.connectMenuButtonEl()}componentWillLoad(){Nn(this)}componentDidLoad(){Rn(this)}disconnectedCallback(){this.disconnectMenuButtonEl()}expandedHandler(){this.open=!1,this.setTooltipReferenceElement()}openHandler(t){this.activeMenuItemIndex=this.open?0:-1,this.menuButtonEl&&(this.menuButtonEl.active=t),this.calciteActionMenuOpen.emit(),this.setTooltipReferenceElement()}activeMenuItemIndexHandler(){this.updateActions(this.actionElements)}async setFocus(){return await Dn(this),Fy(this.menuButtonEl)}renderMenuButton(){let{appearance:t,label:r,scale:n,expanded:i}=this;return X("slot",{name:hb.trigger,onSlotchange:this.setMenuButtonEl},X("calcite-action",{appearance:t,class:KL.defaultTrigger,icon:wY.menu,ref:this.setDefaultMenuButtonEl,scale:n,text:r,textEnabled:i}))}renderMenuItems(){let{actionElements:t,activeMenuItemIndex:r,open:n,menuId:i,menuButtonEl:o,label:s,placement:c,overlayPositioning:a,flipPlacements:d}=this,g=t[r]?.id||null;return X("calcite-popover",{autoClose:!0,flipPlacements:d,focusTrapDisabled:!0,label:s,offsetDistance:0,onCalcitePopoverClose:this.handlePopoverClose,onCalcitePopoverOpen:this.handlePopoverOpen,open:n,overlayPositioning:a,placement:c,pointerDisabled:!0,referenceElement:o},X("div",{"aria-activedescendant":g,"aria-labelledby":o?.id,class:KL.menu,id:i,onClick:this.handleCalciteActionClick,role:"menu",tabIndex:-1},X("slot",{onSlotchange:this.handleDefaultSlotChange})))}render(){return X(OI,{key:"d13aa4f3d43fb5651c0487ccfa456813f69955d2"},this.renderMenuButton(),this.renderMenuItems(),X("slot",{key:"b63d187516c766db6a1b1db3df34050fdec9e6ce",name:hb.tooltip,onSlotchange:this.updateTooltip}))}isValidKey(t,r){return!!r.find(n=>n===t)}get el(){return this}static get watchers(){return{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}}static get style(){return vY}},[1,"calcite-action-menu",{appearance:[513],expanded:[516],flipPlacements:[16],label:[1],open:[1540],overlayPositioning:[513,"overlay-positioning"],placement:[513],scale:[513],menuButtonEl:[32],activeMenuItemIndex:[32],setFocus:[64]},void 0,{expanded:["expandedHandler"],open:["openHandler"],activeMenuItemIndex:["activeMenuItemIndexHandler"]}]);$g()});function Fg(){if(typeof customElements>"u")return;["calcite-scrim","calcite-loader"].forEach(t=>{switch(t){case"calcite-scrim":customElements.get(t)||customElements.define(t,TY);break;case"calcite-loader":customElements.get(t)||Xn();break}})}var QL,ek,xY,CY,TY,kx=V(()=>{Wt();Vo();la();$o();jr();Bc();QL={scrim:"scrim",content:"content"},ek={s:72,l:480},xY=":host{--calcite-scrim-background:var(--calcite-color-transparent-scrim);position:absolute;inset:0px;z-index:var(--calcite-z-index-overlay);display:flex;block-size:100%;inline-size:100%;flex-direction:column;align-items:stretch}@keyframes calcite-scrim-fade-in{0%{--tw-bg-opacity:0}100%{--tw-text-opacity:1}}.scrim{position:absolute;inset:0px;display:flex;flex-direction:column;align-content:center;align-items:center;justify-content:center;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-scrim-background, var(--calcite-color-transparent-scrim))}.content{padding:1rem}:host([hidden]){display:none}[hidden]{display:none}",CY=xY,TY=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.resizeObserver=yr("resize",()=>this.handleResize()),this.handleDefaultSlotChange=t=>{this.hasContent=hA(t)},this.storeLoaderEl=t=>{this.loaderEl=t,this.handleResize()},this.loading=!1,this.messages=void 0,this.messageOverrides=void 0,this.loaderScale=void 0,this.defaultMessages=void 0,this.effectiveLocale="",this.hasContent=!1}onMessagesChange(){}effectiveLocaleChange(){Un(this,this.effectiveLocale)}connectedCallback(){cn(this),Vn(this),this.resizeObserver?.observe(this.el)}async componentWillLoad(){await Fn(this)}disconnectedCallback(){ln(this),zn(this),this.resizeObserver?.disconnect()}render(){let{hasContent:t,loading:r,messages:n}=this;return X("div",{key:"286b03bb4a18b45f1b6914684a5178e952a44127",class:QL.scrim},r?X("calcite-loader",{label:n.loading,ref:this.storeLoaderEl,scale:this.loaderScale}):null,X("div",{key:"0f8cd111720239b204d0d201610c4145d5616753",class:QL.content,hidden:!t},X("slot",{key:"fe7bbced9871c9179971da0ef7ca07ea1c9ac33e",onSlotchange:this.handleDefaultSlotChange})))}getScale(t){return t<ek.s?"s":t>=ek.l?"l":"m"}handleResize(){let{loaderEl:t,el:r}=this;t&&(this.loaderScale=this.getScale(Math.min(r.clientHeight,r.clientWidth)??0))}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return CY}},[1,"calcite-scrim",{loading:[516],messages:[1040],messageOverrides:[1040],loaderScale:[32],defaultMessages:[32],effectiveLocale:[32],hasContent:[32]},void 0,{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}]);Fg()});function Ox(){if(typeof customElements>"u")return;["calcite-panel","calcite-action","calcite-action-menu","calcite-icon","calcite-loader","calcite-popover","calcite-scrim"].forEach(t=>{switch(t){case"calcite-panel":customElements.get(t)||customElements.define(t,PY);break;case"calcite-action":customElements.get(t)||ua();break;case"calcite-action-menu":customElements.get(t)||$g();break;case"calcite-icon":customElements.get(t)||Hr();break;case"calcite-loader":customElements.get(t)||Xn();break;case"calcite-popover":customElements.get(t)||Wu();break;case"calcite-scrim":customElements.get(t)||Fg();break}})}var fr,tk,gb,qt,EY,MY,PY,rk=V(()=>{Wt();jr();bg();ca();$o();Lx();Ix();Vo();la();Px();Lg();bs();Bc();mb();kx();fr={actionBarContainer:"action-bar-container",backButton:"back-button",container:"container",contentBottom:"content-bottom",contentTop:"content-top",header:"header",headerContainer:"header-container",headerContainerBorderEnd:"header-container--border-end",heading:"heading",summary:"summary",description:"description",headerContent:"header-content",headerActions:"header-actions",headerActionsEnd:"header-actions--end",headerActionsStart:"header-actions--start",contentWrapper:"content-wrapper",fabContainer:"fab-container",footer:"footer",footerContent:"footer-content",footerActions:"footer-actions",footerStart:"footer-start",footerEnd:"footer-end"},tk={close:"close",collapse:"collapse"},gb={close:"x",menu:"ellipsis",backLeft:"chevron-left",backRight:"chevron-right",expand:"chevron-down",collapse:"chevron-up"},qt={actionBar:"action-bar",alerts:"alerts",contentBottom:"content-bottom",contentTop:"content-top",headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerEnd:"footer-end",footerStart:"footer-start",footerActions:"footer-actions"},EY=`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;overflow:hidden;--calcite-min-header-height:calc(var(--calcite-icon-size) * 3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.header{margin:0px;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-color-text-2);color:var(--calcite-color-text-2)}.heading{margin:0px;padding:0px;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:0.5rem}:host([scale=s]){--calcite-internal-panel-default-padding:var(--calcite-spacing-sm);--calcite-internal-panel-header-vertical-padding:10px}:host([scale=s]) .header-content .heading{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=s]) .header-content .description{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]){--calcite-internal-panel-default-padding:var(--calcite-spacing-md);--calcite-internal-panel-header-vertical-padding:var(--calcite-spacing-lg)}:host([scale=m]) .header-content .heading{font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m]) .header-content .description{font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]){--calcite-internal-panel-default-padding:var(--calcite-spacing-xl);--calcite-internal-panel-header-vertical-padding:var(--calcite-spacing-xxl)}:host([scale=l]) .header-content .heading{font-size:var(--calcite-font-size-1);line-height:1.5rem}:host([scale=l]) .header-content .description{font-size:var(--calcite-font-size-0);line-height:1.25rem}.content-top,.content-bottom{display:flex;align-items:flex-start;align-self:stretch;border-block-start:1px solid var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1)}.container{position:relative;margin:0px;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;background-color:var(--calcite-color-background);padding:0px;transition:max-block-size var(--calcite-animation-timing), inline-size var(--calcite-animation-timing)}.container[hidden]{display:none}.header{z-index:var(--calcite-z-index-header);display:flex;flex-direction:column;background-color:var(--calcite-color-foreground-1);border-block-end:var(--calcite-panel-header-border-block-end, 1px solid var(--calcite-color-border-3))}.header-container{display:flex;inline-size:100%;flex-direction:row;align-items:stretch;justify-content:flex-start;flex:0 0 auto}.header-container--border-end{border-block-end:1px solid var(--calcite-color-border-3)}.action-bar-container{inline-size:100%}.action-bar-container ::slotted(calcite-action-bar){inline-size:100%}.header-content{display:flex;flex-direction:column;overflow:hidden;padding-inline:0.75rem;padding-block:0.875rem;margin-inline-end:auto}.header-content .heading,.header-content .description{display:block;overflow-wrap:break-word;padding:0px}.header-content .heading{margin-inline:0px;margin-block:0px 0.25rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.header-content .heading:only-child{margin-block-end:0px}.header-content .description{color:var(--calcite-color-text-2)}.back-button{border-width:0px;border-style:solid;border-color:var(--calcite-color-border-3);border-inline-end-width:1px}.header-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch}.header-actions--end{margin-inline-start:auto}.content-wrapper{position:relative;display:flex;block-size:100%;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;overflow:auto;outline-color:transparent;padding:var(--calcite-panel-content-space, 0);background:var(--calcite-panel-background-color, var(--calcite-color-background))}.content-wrapper:focus-visible{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(
|
|
58
58
|
-2px *
|
|
59
59
|
calc(
|
|
60
60
|
1 -
|
|
@@ -64,12 +64,12 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`)}Ij(thi
|
|
|
64
64
|
1
|
|
65
65
|
)
|
|
66
66
|
)
|
|
67
|
-
)}.content-top,.content-bottom{padding:var(--calcite-internal-panel-default-padding)}.header-content{flex:1 1 auto;padding-block:var(--calcite-internal-panel-header-vertical-padding);padding-inline:var(--calcite-internal-panel-default-padding)}.footer{margin-block-start:auto;display:flex;flex-direction:row;align-content:space-between;align-items:center;justify-content:center;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--2);line-height:1.375;border-block-start:1px solid var(--calcite-color-border-3);padding:var(--calcite-panel-footer-padding, var(--calcite-internal-panel-default-padding))}.footer-content{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:center}.footer-actions{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:space-evenly;gap:var(--calcite-internal-panel-default-padding)}.footer-start{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-start;margin-inline-end:auto;gap:var(--calcite-internal-panel-default-padding)}.footer-end{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-end;margin-inline-start:auto;gap:var(--calcite-internal-panel-default-padding)}.fab-container{position:sticky;inset-block-end:0px;z-index:var(--calcite-z-index-sticky);margin-block:0px;margin-inline:auto;display:block;padding:0.5rem;inset-inline:0;inline-size:-moz-fit-content;inline-size:fit-content}:host([hidden]){display:none}[hidden]{display:none}`,MY=EY,PY=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calcitePanelClose=Lt(this,"calcitePanelClose",6),this.calcitePanelToggle=Lt(this,"calcitePanelToggle",6),this.calcitePanelScroll=Lt(this,"calcitePanelScroll",6),this.resizeObserver=yr("resize",()=>this.resizeHandler()),this.resizeHandler=()=>{let{panelScrollEl:t}=this;if(!t||typeof t.scrollHeight!="number"||typeof t.offsetHeight!="number")return;t.scrollHeight>t.offsetHeight?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")},this.setContainerRef=t=>{this.containerEl=t},this.panelKeyDownHandler=t=>{this.closable&&t.key==="Escape"&&!t.defaultPrevented&&(this.handleUserClose(),t.preventDefault())},this.handleUserClose=()=>{this.closed=!0,this.calcitePanelClose.emit()},this.open=()=>{this.isClosed=!1},this.close=async()=>{let t=this.beforeClose??(()=>Promise.resolve());try{await t()}catch{requestAnimationFrame(()=>{this.closed=!1});return}this.isClosed=!0},this.collapse=()=>{this.collapsed=!this.collapsed,this.calcitePanelToggle.emit()},this.panelScrollHandler=()=>{this.calcitePanelScroll.emit()},this.handleHeaderActionsStartSlotChange=t=>{this.hasStartActions=Ii(t)},this.handleHeaderActionsEndSlotChange=t=>{this.hasEndActions=Ii(t)},this.handleHeaderMenuActionsSlotChange=t=>{this.hasMenuItems=Ii(t)},this.handleActionBarSlotChange=t=>{let r=Vy(t).filter(n=>n?.matches("calcite-action-bar"));r.forEach(n=>n.layout="horizontal"),this.hasActionBar=!!r.length},this.handleHeaderContentSlotChange=t=>{this.hasHeaderContent=Ii(t)},this.handleFabSlotChange=t=>{this.hasFab=Ii(t)},this.handleFooterActionsSlotChange=t=>{this.hasFooterActions=Ii(t)},this.handleFooterEndSlotChange=t=>{this.hasFooterEndContent=Ii(t)},this.handleFooterStartSlotChange=t=>{this.hasFooterStartContent=Ii(t)},this.handleFooterSlotChange=t=>{this.hasFooterContent=Ii(t)},this.contentBottomSlotChangeHandler=t=>{this.hasContentBottom=Ii(t)},this.contentTopSlotChangeHandler=t=>{this.hasContentTop=Ii(t)},this.setPanelScrollEl=t=>{this.panelScrollEl=t,this.resizeObserver?.disconnect(),t&&(this.resizeObserver?.observe(t),this.resizeHandler())},this.handleAlertsSlotChange=t=>{Vy(t)?.map(r=>{r.nodeName==="CALCITE-ALERT"&&(r.embedded=!0)})},this.beforeClose=void 0,this.closed=!1,this.disabled=!1,this.closable=!1,this.collapsed=!1,this.collapseDirection="down",this.collapsible=!1,this.headingLevel=void 0,this.loading=!1,this.heading=void 0,this.description=void 0,this.menuFlipPlacements=void 0,this.menuOpen=!1,this.menuPlacement=VL,this.messageOverrides=void 0,this.messages=void 0,this.overlayPositioning="absolute",this.scale="m",this.isClosed=!1,this.hasStartActions=!1,this.hasEndActions=!1,this.hasMenuItems=!1,this.hasHeaderContent=!1,this.hasActionBar=!1,this.hasContentBottom=!1,this.hasContentTop=!1,this.hasFab=!1,this.hasFooterActions=!1,this.hasFooterContent=!1,this.hasFooterEndContent=!1,this.hasFooterStartContent=!1,this.defaultMessages=void 0,this.effectiveLocale="",this.showHeaderContent=!1}toggleDialog(t){t?this.close():this.open()}onMessagesChange(){}connectedCallback(){cn(this),Vn(this)}async componentWillLoad(){Nn(this),this.isClosed=this.closed,await Fn(this)}componentDidLoad(){Rn(this)}componentDidRender(){Uc(this)}disconnectedCallback(){ln(this),zn(this),this.resizeObserver?.disconnect()}effectiveLocaleChange(){Un(this,this.effectiveLocale)}async setFocus(){await Dn(this),Bp(this.containerEl)}async scrollContentTo(t){this.panelScrollEl?.scrollTo(t)}renderHeaderContent(){let{heading:t,headingLevel:r,description:n,hasHeaderContent:i}=this,o=t?X(pb,{class:fr.heading,level:r},t):null,s=n?X("span",{class:fr.description},n):null;return!i&&(o||s)?X("div",{class:fr.headerContent,key:"header-content"},o,s):null}renderActionBar(){return X("div",{class:fr.actionBarContainer,hidden:!this.hasActionBar},X("slot",{name:qt.actionBar,onSlotchange:this.handleActionBarSlotChange}))}renderHeaderSlottedContent(){return X("div",{class:fr.headerContent,hidden:!this.hasHeaderContent,key:"slotted-header-content"},X("slot",{name:qt.headerContent,onSlotchange:this.handleHeaderContentSlotChange}))}renderHeaderStartActions(){let{hasStartActions:t}=this;return X("div",{class:{[fr.headerActionsStart]:!0,[fr.headerActions]:!0},hidden:!t,key:"header-actions-start"},X("slot",{name:qt.headerActionsStart,onSlotchange:this.handleHeaderActionsStartSlotChange}))}renderHeaderActionsEnd(){let{hasEndActions:t,messages:r,closable:n,collapsed:i,collapseDirection:o,collapsible:s,hasMenuItems:c}=this,{collapse:a,expand:d,close:h}=r,g=[gb.expand,gb.collapse];o==="up"&&g.reverse();let v=s?X("calcite-action",{"aria-expanded":Ir(!i),"aria-label":a,icon:i?g[0]:g[1],id:tk.collapse,onClick:this.collapse,scale:this.scale,text:a,title:i?d:a}):null,S=n?X("calcite-action",{"aria-label":h,icon:gb.close,id:tk.close,onClick:this.handleUserClose,scale:this.scale,text:h,title:h}):null,M=X("slot",{name:qt.headerActionsEnd,onSlotchange:this.handleHeaderActionsEndSlotChange}),I=t||v||S||c;return X("div",{class:{[fr.headerActionsEnd]:!0,[fr.headerActions]:!0},hidden:!I,key:"header-actions-end"},M,this.renderMenu(),v,S)}renderMenu(){let{hasMenuItems:t,messages:r,menuOpen:n,menuFlipPlacements:i,menuPlacement:o}=this;return X("calcite-action-menu",{flipPlacements:i??["top","bottom"],hidden:!t,key:"menu",label:r.options,open:n,overlayPositioning:this.overlayPositioning,placement:o},X("calcite-action",{icon:gb.menu,scale:this.scale,slot:hb.trigger,text:r.options}),X("slot",{name:qt.headerMenuActions,onSlotchange:this.handleHeaderMenuActionsSlotChange}))}renderHeaderNode(){let{hasHeaderContent:t,hasStartActions:r,hasEndActions:n,closable:i,collapsible:o,hasMenuItems:s,hasActionBar:c}=this,a=this.renderHeaderContent(),d=t||!!a||r||n||o||i||s;return this.showHeaderContent=d,X("header",{class:fr.header,hidden:!(d||c)},X("div",{class:{[fr.headerContainer]:!0,[fr.headerContainerBorderEnd]:c},hidden:!d},this.renderHeaderStartActions(),this.renderHeaderSlottedContent(),a,this.renderHeaderActionsEnd()),this.renderActionBar(),this.renderContentTop())}renderFooterNode(){let{hasFooterEndContent:t,hasFooterStartContent:r,hasFooterContent:n,hasFooterActions:i}=this,o=r||t||n||i;return X("footer",{class:fr.footer,hidden:!o},X("div",{class:fr.footerContent,hidden:!n},X("slot",{name:qt.footer,onSlotchange:this.handleFooterSlotChange})),X("div",{class:fr.footerStart,hidden:n||!r},X("slot",{name:qt.footerStart,onSlotchange:this.handleFooterStartSlotChange})),X("div",{class:fr.footerEnd,hidden:n||!t},X("slot",{name:qt.footerEnd,onSlotchange:this.handleFooterEndSlotChange})),X("div",{class:fr.footerActions,hidden:n||!i},X("slot",{key:"footer-actions-slot",name:qt.footerActions,onSlotchange:this.handleFooterActionsSlotChange})))}renderContent(){return X("div",{class:fr.contentWrapper,hidden:this.collapsible&&this.collapsed,onScroll:this.panelScrollHandler,ref:this.setPanelScrollEl},X("slot",null),this.renderFab())}renderContentBottom(){return X("div",{class:fr.contentBottom,hidden:!this.hasContentBottom},X("slot",{name:qt.contentBottom,onSlotchange:this.contentBottomSlotChangeHandler}))}renderContentTop(){return X("div",{class:fr.contentTop,hidden:!this.hasContentTop},X("slot",{name:qt.contentTop,onSlotchange:this.contentTopSlotChangeHandler}))}renderFab(){return X("div",{class:fr.fabContainer,hidden:!this.hasFab},X("slot",{name:qt.fab,onSlotchange:this.handleFabSlotChange}))}render(){let{disabled:t,loading:r,isClosed:n}=this,i=X("article",{key:"0f439dffdca536eb6973ac386b0566091249aee3","aria-busy":Ir(r),class:fr.container,hidden:n,ref:this.setContainerRef},this.renderHeaderNode(),this.renderContent(),this.renderContentBottom(),this.renderFooterNode(),X("slot",{key:"alerts",name:qt.alerts,onSlotchange:this.handleAlertsSlotChange}));return X(Gr,{key:"6e5baec07ecb356871dea038ebc2d5ee2d8ed54f",onKeyDown:this.panelKeyDownHandler},X(Vc,{key:"924cda1799b359f1bb3fb119cebfff5a7349b72d",disabled:t},r?X("calcite-scrim",{loading:r}):null,i))}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{closed:["toggleDialog"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return MY}},[1,"calcite-panel",{beforeClose:[16],closed:[1540],disabled:[516],closable:[516],collapsed:[516],collapseDirection:[1,"collapse-direction"],collapsible:[516],headingLevel:[514,"heading-level"],loading:[516],heading:[1],description:[1],menuFlipPlacements:[16],menuOpen:[516,"menu-open"],menuPlacement:[513,"menu-placement"],messageOverrides:[1040],messages:[1040],overlayPositioning:[513,"overlay-positioning"],scale:[513],isClosed:[32],hasStartActions:[32],hasEndActions:[32],hasMenuItems:[32],hasHeaderContent:[32],hasActionBar:[32],hasContentBottom:[32],hasContentTop:[32],hasFab:[32],hasFooterActions:[32],hasFooterContent:[32],hasFooterEndContent:[32],hasFooterStartContent:[32],defaultMessages:[32],effectiveLocale:[32],showHeaderContent:[32],setFocus:[64],scrollContentTo:[64]},void 0,{closed:["toggleDialog"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}]);O4()});var lk={};os(lk,{CalciteDialog:()=>kY,defineCustomElement:()=>OY});function ck(){if(typeof customElements>"u")return;["calcite-dialog","calcite-action","calcite-action-menu","calcite-icon","calcite-loader","calcite-panel","calcite-popover","calcite-scrim"].forEach(t=>{switch(t){case"calcite-dialog":customElements.get(t)||customElements.define(t,ak);break;case"calcite-action":customElements.get(t)||ua();break;case"calcite-action-menu":customElements.get(t)||$g();break;case"calcite-icon":customElements.get(t)||Hr();break;case"calcite-loader":customElements.get(t)||Xn();break;case"calcite-panel":customElements.get(t)||O4();break;case"calcite-popover":customElements.get(t)||Wu();break;case"calcite-scrim":customElements.get(t)||Fg();break}})}var IY,sk,wb,qc,ki,Zc,yb,nk,ik,AY,LY,N4,ok,ak,kY,OY,uk=V(()=>{Wt();jr();m4();ca();$o();eb();Vo();la();zc();rk();Lg();L4();bs();Bc();mb();k4();IY=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},sk={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(IY,function(){function r(p,f){var w=Object.keys(p);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(p);f&&(_=_.filter(function(T){return Object.getOwnPropertyDescriptor(p,T).enumerable})),w.push.apply(w,_)}return w}function n(p){for(var f=1;f<arguments.length;f++){var w=arguments[f]!=null?arguments[f]:{};f%2?r(Object(w),!0).forEach(function(_){a(p,_,w[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(w)):r(Object(w)).forEach(function(_){Object.defineProperty(p,_,Object.getOwnPropertyDescriptor(w,_))})}return p}function i(p){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},i(p)}function o(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")}function s(p,f){for(var w=0;w<f.length;w++){var _=f[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(p,I(_.key),_)}}function c(p,f,w){return f&&s(p.prototype,f),w&&s(p,w),Object.defineProperty(p,"prototype",{writable:!1}),p}function a(p,f,w){return(f=I(f))in p?Object.defineProperty(p,f,{value:w,enumerable:!0,configurable:!0,writable:!0}):p[f]=w,p}function d(p,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(f&&f.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),Object.defineProperty(p,"prototype",{writable:!1}),f&&g(p,f)}function h(p){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__||Object.getPrototypeOf(f)},h(p)}function g(p,f){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,_){return w.__proto__=_,w},g(p,f)}function v(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}function S(p){var f=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var w,_=h(p);if(f){var T=h(this).constructor;w=Reflect.construct(_,arguments,T)}else w=_.apply(this,arguments);return function(E,A){if(A&&(typeof A=="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(E)}(this,w)}}function M(){return M=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(p,f,w){var _=function(E,A){for(;!Object.prototype.hasOwnProperty.call(E,A)&&(E=h(E))!==null;);return E}(p,f);if(_){var T=Object.getOwnPropertyDescriptor(_,f);return T.get?T.get.call(arguments.length<3?p:w):T.value}},M.apply(this,arguments)}function I(p){var f=function(w,_){if(typeof w!="object"||w===null)return w;var T=w[Symbol.toPrimitive];if(T!==void 0){var E=T.call(w,_||"default");if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_==="string"?String:Number)(w)}(p,"string");return typeof f=="symbol"?f:f+""}var R=function(p){return!(!p||!p.Window)&&p instanceof p.Window},B=void 0,F=void 0;function G(p){B=p;var f=p.document.createTextNode("");f.ownerDocument!==p.document&&typeof p.wrap=="function"&&p.wrap(f)===f&&(p=p.wrap(p)),F=p}function J(p){return R(p)?p:(p.ownerDocument||p).defaultView||F.window}typeof window<"u"&&window&&G(window);var re=function(p){return!!p&&i(p)==="object"},de=function(p){return typeof p=="function"},W={window:function(p){return p===F||R(p)},docFrag:function(p){return re(p)&&p.nodeType===11},object:re,func:de,number:function(p){return typeof p=="number"},bool:function(p){return typeof p=="boolean"},string:function(p){return typeof p=="string"},element:function(p){if(!p||i(p)!=="object")return!1;var f=J(p)||F;return/object|function/.test(typeof Element>"u"?"undefined":i(Element))?p instanceof Element||p instanceof f.Element:p.nodeType===1&&typeof p.nodeName=="string"},plainObject:function(p){return re(p)&&!!p.constructor&&/function Object\b/.test(p.constructor.toString())},array:function(p){return re(p)&&p.length!==void 0&&de(p.splice)}};function me(p){var f=p.interaction;if(f.prepared.name==="drag"){var w=f.prepared.axis;w==="x"?(f.coords.cur.page.y=f.coords.start.page.y,f.coords.cur.client.y=f.coords.start.client.y,f.coords.velocity.client.y=0,f.coords.velocity.page.y=0):w==="y"&&(f.coords.cur.page.x=f.coords.start.page.x,f.coords.cur.client.x=f.coords.start.client.x,f.coords.velocity.client.x=0,f.coords.velocity.page.x=0)}}function Le(p){var f=p.iEvent,w=p.interaction;if(w.prepared.name==="drag"){var _=w.prepared.axis;if(_==="x"||_==="y"){var T=_==="x"?"y":"x";f.page[T]=w.coords.start.page[T],f.client[T]=w.coords.start.client[T],f.delta[T]=0}}}var xe={id:"actions/drag",install:function(p){var f=p.actions,w=p.Interactable,_=p.defaults;w.prototype.draggable=xe.draggable,f.map.drag=xe,f.methodDict.drag="draggable",_.actions.drag=xe.defaults},listeners:{"interactions:before-action-move":me,"interactions:action-resume":me,"interactions:action-move":Le,"auto-start:check":function(p){var f=p.interaction,w=p.interactable,_=p.buttons,T=w.options.drag;if(T&&T.enabled&&(!f.pointerIsDown||!/mouse|pointer/.test(f.pointerType)||_&w.options.drag.mouseButtons))return p.action={name:"drag",axis:T.lockAxis==="start"?T.startAxis:T.lockAxis},!1}},draggable:function(p){return W.object(p)?(this.options.drag.enabled=p.enabled!==!1,this.setPerAction("drag",p),this.setOnEvents("drag",p),/^(xy|x|y|start)$/.test(p.lockAxis)&&(this.options.drag.lockAxis=p.lockAxis),/^(xy|x|y)$/.test(p.startAxis)&&(this.options.drag.startAxis=p.startAxis),this):W.bool(p)?(this.options.drag.enabled=p,this):this.options.drag},beforeMove:me,move:Le,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(p){return p.search("drag")===0}},ke=xe,ge={init:function(p){var f=p;ge.document=f.document,ge.DocumentFragment=f.DocumentFragment||K,ge.SVGElement=f.SVGElement||K,ge.SVGSVGElement=f.SVGSVGElement||K,ge.SVGElementInstance=f.SVGElementInstance||K,ge.Element=f.Element||K,ge.HTMLElement=f.HTMLElement||ge.Element,ge.Event=f.Event,ge.Touch=f.Touch||K,ge.PointerEvent=f.PointerEvent||f.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function K(){}var H=ge,se={init:function(p){var f=H.Element,w=p.navigator||{};se.supportsTouch="ontouchstart"in p||W.func(p.DocumentTouch)&&H.document instanceof p.DocumentTouch,se.supportsPointerEvent=w.pointerEnabled!==!1&&!!H.PointerEvent,se.isIOS=/iP(hone|od|ad)/.test(w.platform),se.isIOS7=/iP(hone|od|ad)/.test(w.platform)&&/OS 7[^\d]/.test(w.appVersion),se.isIe9=/MSIE 9/.test(w.userAgent),se.isOperaMobile=w.appName==="Opera"&&se.supportsTouch&&/Presto/.test(w.userAgent),se.prefixedMatchesSelector="matches"in f.prototype?"matches":"webkitMatchesSelector"in f.prototype?"webkitMatchesSelector":"mozMatchesSelector"in f.prototype?"mozMatchesSelector":"oMatchesSelector"in f.prototype?"oMatchesSelector":"msMatchesSelector",se.pEventTypes=se.supportsPointerEvent?H.PointerEvent===p.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,se.wheelEvent=H.document&&"onmousewheel"in H.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},fe=se;function we(p,f){if(p.contains)return p.contains(f);for(;f;){if(f===p)return!0;f=f.parentNode}return!1}function Ee(p,f){for(;W.element(p);){if(Xe(p,f))return p;p=Ne(p)}return null}function Ne(p){var f=p.parentNode;if(W.docFrag(f)){for(;(f=f.host)&&W.docFrag(f););return f}return f}function Xe(p,f){return F!==B&&(f=f.replace(/\/deep\//g," ")),p[fe.prefixedMatchesSelector](f)}var rt=function(p){return p.parentNode||p.host};function mr(p,f){for(var w,_=[],T=p;(w=rt(T))&&T!==f&&w!==T.ownerDocument;)_.unshift(T),T=w;return _}function Yr(p,f,w){for(;W.element(p);){if(Xe(p,f))return!0;if((p=Ne(p))===w)return Xe(p,f)}return!1}function Gt(p){return p.correspondingUseElement||p}function br(p){var f=p instanceof H.SVGElement?p.getBoundingClientRect():p.getClientRects()[0];return f&&{left:f.left,right:f.right,top:f.top,bottom:f.bottom,width:f.width||f.right-f.left,height:f.height||f.bottom-f.top}}function Gn(p){var f,w=br(p);if(!fe.isIOS7&&w){var _={x:(f=(f=J(p))||F).scrollX||f.document.documentElement.scrollLeft,y:f.scrollY||f.document.documentElement.scrollTop};w.left+=_.x,w.right+=_.x,w.top+=_.y,w.bottom+=_.y}return w}function $i(p){for(var f=[];p;)f.push(p),p=Ne(p);return f}function xn(p){return!!W.string(p)&&(H.document.querySelector(p),!0)}function Fe(p,f){for(var w in f)p[w]=f[w];return p}function od(p,f,w){return p==="parent"?Ne(w):p==="self"?f.getRect(w):Ee(w,p)}function Yo(p,f,w,_){var T=p;return W.string(T)?T=od(T,f,w):W.func(T)&&(T=T.apply(void 0,_)),W.element(T)&&(T=Gn(T)),T}function so(p){return p&&{x:"x"in p?p.x:p.left,y:"y"in p?p.y:p.top}}function il(p){return!p||"x"in p&&"y"in p||((p=Fe({},p)).x=p.left||0,p.y=p.top||0,p.width=p.width||(p.right||0)-p.x,p.height=p.height||(p.bottom||0)-p.y),p}function ya(p,f,w){p.left&&(f.left+=w.x),p.right&&(f.right+=w.x),p.top&&(f.top+=w.y),p.bottom&&(f.bottom+=w.y),f.width=f.right-f.left,f.height=f.bottom-f.top}function Ls(p,f,w){var _=w&&p.options[w];return so(Yo(_&&_.origin||p.options.origin,p,f,[p&&f]))||{x:0,y:0}}function Fi(p,f){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function($){return!0},_=arguments.length>3?arguments[3]:void 0;if(_=_||{},W.string(p)&&p.search(" ")!==-1&&(p=sd(p)),W.array(p))return p.forEach(function($){return Fi($,f,w,_)}),_;if(W.object(p)&&(f=p,p=""),W.func(f)&&w(p))_[p]=_[p]||[],_[p].push(f);else if(W.array(f))for(var T=0,E=f;T<E.length;T++){var A=E[T];Fi(p,A,w,_)}else if(W.object(f))for(var O in f)Fi(sd(O).map(function($){return"".concat(p).concat($)}),f[O],w,_);return _}function sd(p){return p.trim().split(/ +/)}var ks=function(p,f){return Math.sqrt(p*p+f*f)},fm=["webkit","moz"];function Jo(p,f){p.__set||(p.__set={});var w=function(T){if(fm.some(function(E){return T.indexOf(E)===0}))return 1;typeof p[T]!="function"&&T!=="__set"&&Object.defineProperty(p,T,{get:function(){return T in p.__set?p.__set[T]:p.__set[T]=f[T]},set:function(E){p.__set[T]=E},configurable:!0})};for(var _ in f)w(_);return p}function ba(p,f){p.page=p.page||{},p.page.x=f.page.x,p.page.y=f.page.y,p.client=p.client||{},p.client.x=f.client.x,p.client.y=f.client.y,p.timeStamp=f.timeStamp}function ol(p){p.page.x=0,p.page.y=0,p.client.x=0,p.client.y=0}function sl(p){return p instanceof H.Event||p instanceof H.Touch}function vr(p,f,w){return p=p||"page",(w=w||{}).x=f[p+"X"],w.y=f[p+"Y"],w}function ad(p,f){return f=f||{x:0,y:0},fe.isOperaMobile&&sl(p)?(vr("screen",p,f),f.x+=window.scrollX,f.y+=window.scrollY):vr("page",p,f),f}function Xo(p){return W.number(p.pointerId)?p.pointerId:p.identifier}function va(p,f,w){var _=f.length>1?cd(f):f[0];ad(_,p.page),function(T,E){E=E||{},fe.isOperaMobile&&sl(T)?vr("screen",T,E):vr("client",T,E)}(_,p.client),p.timeStamp=w}function al(p){var f=[];return W.array(p)?(f[0]=p[0],f[1]=p[1]):p.type==="touchend"?p.touches.length===1?(f[0]=p.touches[0],f[1]=p.changedTouches[0]):p.touches.length===0&&(f[0]=p.changedTouches[0],f[1]=p.changedTouches[1]):(f[0]=p.touches[0],f[1]=p.touches[1]),f}function cd(p){for(var f={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},w=0;w<p.length;w++){var _=p[w];for(var T in f)f[T]+=_[T]}for(var E in f)f[E]/=p.length;return f}function cl(p){if(!p.length)return null;var f=al(p),w=Math.min(f[0].pageX,f[1].pageX),_=Math.min(f[0].pageY,f[1].pageY),T=Math.max(f[0].pageX,f[1].pageX),E=Math.max(f[0].pageY,f[1].pageY);return{x:w,y:_,left:w,top:_,right:T,bottom:E,width:T-w,height:E-_}}function ll(p,f){var w=f+"X",_=f+"Y",T=al(p),E=T[0][w]-T[1][w],A=T[0][_]-T[1][_];return ks(E,A)}function ul(p,f){var w=f+"X",_=f+"Y",T=al(p),E=T[1][w]-T[0][w],A=T[1][_]-T[0][_];return 180*Math.atan2(A,E)/Math.PI}function dl(p){return W.string(p.pointerType)?p.pointerType:W.number(p.pointerType)?[void 0,void 0,"touch","pen","mouse"][p.pointerType]:/touch/.test(p.type||"")||p instanceof H.Touch?"touch":"mouse"}function ld(p){var f=W.func(p.composedPath)?p.composedPath():p.path;return[Gt(f?f[0]:p.target),Gt(p.currentTarget)]}var ao=function(){function p(f){o(this,p),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=f}return c(p,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),p}();Object.defineProperty(ao.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var ud=function(p,f){for(var w=0;w<f.length;w++){var _=f[w];p.push(_)}return p},fl=function(p){return ud([],p)},Os=function(p,f){for(var w=0;w<p.length;w++)if(f(p[w],w,p))return w;return-1},Ui=function(p,f){return p[Os(p,f)]},Ko=function(p){d(w,p);var f=S(w);function w(_,T,E){var A;o(this,w),(A=f.call(this,T._interaction)).dropzone=void 0,A.dragEvent=void 0,A.relatedTarget=void 0,A.draggable=void 0,A.propagationStopped=!1,A.immediatePropagationStopped=!1;var O=E==="dragleave"?_.prev:_.cur,$=O.element,j=O.dropzone;return A.type=E,A.target=$,A.currentTarget=$,A.dropzone=j,A.dragEvent=T,A.relatedTarget=T.target,A.draggable=T.interactable,A.timeStamp=T.timeStamp,A}return c(w,[{key:"reject",value:function(){var _=this,T=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&T.cur.dropzone===this.dropzone&&T.cur.element===this.target)if(T.prev.dropzone=this.dropzone,T.prev.element=this.target,T.rejected=!0,T.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var E=T.activeDrops,A=Os(E,function($){var j=$.dropzone,U=$.element;return j===_.dropzone&&U===_.target});T.activeDrops.splice(A,1);var O=new w(T,this.dragEvent,"dropdeactivate");O.dropzone=this.dropzone,O.target=this.target,this.dropzone.fire(O)}else this.dropzone.fire(new w(T,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),w}(ao);function co(p,f){for(var w=0,_=p.slice();w<_.length;w++){var T=_[w],E=T.dropzone,A=T.element;f.dropzone=E,f.target=A,E.fire(f),f.propagationStopped=f.immediatePropagationStopped=!1}}function pl(p,f){for(var w=function(E,A){for(var O=[],$=0,j=E.interactables.list;$<j.length;$++){var U=j[$];if(U.options.drop.enabled){var ee=U.options.drop.accept;if(!(W.element(ee)&&ee!==A||W.string(ee)&&!Xe(A,ee)||W.func(ee)&&!ee({dropzone:U,draggableElement:A})))for(var le=0,be=U.getAllElements();le<be.length;le++){var ye=be[le];ye!==A&&O.push({dropzone:U,element:ye,rect:U.getRect(ye)})}}}return O}(p,f),_=0;_<w.length;_++){var T=w[_];T.rect=T.dropzone.getRect(T.element)}return w}function dd(p,f,w){for(var _=p.dropState,T=p.interactable,E=p.element,A=[],O=0,$=_.activeDrops;O<$.length;O++){var j=$[O],U=j.dropzone,ee=j.element,le=j.rect,be=U.dropCheck(f,w,T,E,ee,le);A.push(be?ee:null)}var ye=function(ve){for(var Oe,Pe,$e,Ke=[],nt=0;nt<ve.length;nt++){var Be=ve[nt],Qe=ve[Oe];if(Be&&nt!==Oe)if(Qe){var Sr=rt(Be),Mt=rt(Qe);if(Sr!==Be.ownerDocument)if(Mt!==Be.ownerDocument)if(Sr!==Mt){Ke=Ke.length?Ke:mr(Qe);var Jr=void 0;if(Qe instanceof H.HTMLElement&&Be instanceof H.SVGElement&&!(Be instanceof H.SVGSVGElement)){if(Be===Mt)continue;Jr=Be.ownerSVGElement}else Jr=Be;for(var Cn=mr(Jr,Qe.ownerDocument),jn=0;Cn[jn]&&Cn[jn]===Ke[jn];)jn++;var Ws=[Cn[jn-1],Cn[jn],Ke[jn]];if(Ws[0])for(var dt=Ws[0].lastChild;dt;){if(dt===Ws[1]){Oe=nt,Ke=Cn;break}if(dt===Ws[2])break;dt=dt.previousSibling}}else $e=Qe,(parseInt(J(Pe=Be).getComputedStyle(Pe).zIndex,10)||0)>=(parseInt(J($e).getComputedStyle($e).zIndex,10)||0)&&(Oe=nt);else Oe=nt}else Oe=nt}return Oe}(A);return _.activeDrops[ye]||null}function ml(p,f,w){var _=p.dropState,T={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return w.type==="dragstart"&&(T.activate=new Ko(_,w,"dropactivate"),T.activate.target=null,T.activate.dropzone=null),w.type==="dragend"&&(T.deactivate=new Ko(_,w,"dropdeactivate"),T.deactivate.target=null,T.deactivate.dropzone=null),_.rejected||(_.cur.element!==_.prev.element&&(_.prev.dropzone&&(T.leave=new Ko(_,w,"dragleave"),w.dragLeave=T.leave.target=_.prev.element,w.prevDropzone=T.leave.dropzone=_.prev.dropzone),_.cur.dropzone&&(T.enter=new Ko(_,w,"dragenter"),w.dragEnter=_.cur.element,w.dropzone=_.cur.dropzone)),w.type==="dragend"&&_.cur.dropzone&&(T.drop=new Ko(_,w,"drop"),w.dropzone=_.cur.dropzone,w.relatedTarget=_.cur.element),w.type==="dragmove"&&_.cur.dropzone&&(T.move=new Ko(_,w,"dropmove"),w.dropzone=_.cur.dropzone)),T}function _a(p,f){var w=p.dropState,_=w.activeDrops,T=w.cur,E=w.prev;f.leave&&E.dropzone.fire(f.leave),f.enter&&T.dropzone.fire(f.enter),f.move&&T.dropzone.fire(f.move),f.drop&&T.dropzone.fire(f.drop),f.deactivate&&co(_,f.deactivate),w.prev.dropzone=T.dropzone,w.prev.element=T.element}function fd(p,f){var w=p.interaction,_=p.iEvent,T=p.event;if(_.type==="dragmove"||_.type==="dragend"){var E=w.dropState;f.dynamicDrop&&(E.activeDrops=pl(f,w.element));var A=_,O=dd(w,A,T);E.rejected=E.rejected&&!!O&&O.dropzone===E.cur.dropzone&&O.element===E.cur.element,E.cur.dropzone=O&&O.dropzone,E.cur.element=O&&O.element,E.events=ml(w,0,A)}}var pd={id:"actions/drop",install:function(p){var f=p.actions,w=p.interactStatic,_=p.Interactable,T=p.defaults;p.usePlugin(ke),_.prototype.dropzone=function(E){return function(A,O){if(W.object(O)){if(A.options.drop.enabled=O.enabled!==!1,O.listeners){var $=Fi(O.listeners),j=Object.keys($).reduce(function(ee,le){return ee[/^(enter|leave)/.test(le)?"drag".concat(le):/^(activate|deactivate|move)/.test(le)?"drop".concat(le):le]=$[le],ee},{}),U=A.options.drop.listeners;U&&A.off(U),A.on(j),A.options.drop.listeners=j}return W.func(O.ondrop)&&A.on("drop",O.ondrop),W.func(O.ondropactivate)&&A.on("dropactivate",O.ondropactivate),W.func(O.ondropdeactivate)&&A.on("dropdeactivate",O.ondropdeactivate),W.func(O.ondragenter)&&A.on("dragenter",O.ondragenter),W.func(O.ondragleave)&&A.on("dragleave",O.ondragleave),W.func(O.ondropmove)&&A.on("dropmove",O.ondropmove),/^(pointer|center)$/.test(O.overlap)?A.options.drop.overlap=O.overlap:W.number(O.overlap)&&(A.options.drop.overlap=Math.max(Math.min(1,O.overlap),0)),"accept"in O&&(A.options.drop.accept=O.accept),"checker"in O&&(A.options.drop.checker=O.checker),A}return W.bool(O)?(A.options.drop.enabled=O,A):A.options.drop}(this,E)},_.prototype.dropCheck=function(E,A,O,$,j,U){return function(ee,le,be,ye,ve,Oe,Pe){var $e=!1;if(!(Pe=Pe||ee.getRect(Oe)))return!!ee.options.drop.checker&&ee.options.drop.checker(le,be,$e,ee,Oe,ye,ve);var Ke=ee.options.drop.overlap;if(Ke==="pointer"){var nt=Ls(ye,ve,"drag"),Be=ad(le);Be.x+=nt.x,Be.y+=nt.y;var Qe=Be.x>Pe.left&&Be.x<Pe.right,Sr=Be.y>Pe.top&&Be.y<Pe.bottom;$e=Qe&&Sr}var Mt=ye.getRect(ve);if(Mt&&Ke==="center"){var Jr=Mt.left+Mt.width/2,Cn=Mt.top+Mt.height/2;$e=Jr>=Pe.left&&Jr<=Pe.right&&Cn>=Pe.top&&Cn<=Pe.bottom}return Mt&&W.number(Ke)&&($e=Math.max(0,Math.min(Pe.right,Mt.right)-Math.max(Pe.left,Mt.left))*Math.max(0,Math.min(Pe.bottom,Mt.bottom)-Math.max(Pe.top,Mt.top))/(Mt.width*Mt.height)>=Ke),ee.options.drop.checker&&($e=ee.options.drop.checker(le,be,$e,ee,Oe,ye,ve)),$e}(this,E,A,O,$,j,U)},w.dynamicDrop=function(E){return W.bool(E)?(p.dynamicDrop=E,w):p.dynamicDrop},Fe(f.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),f.methodDict.drop="dropzone",p.dynamicDrop=!1,T.actions.drop=pd.defaults},listeners:{"interactions:before-action-start":function(p){var f=p.interaction;f.prepared.name==="drag"&&(f.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(p,f){var w=p.interaction,_=p.iEvent;if(w.prepared.name==="drag"){var T=w.dropState;T.activeDrops=[],T.events={},T.activeDrops=pl(f,w.element),T.events=ml(w,0,_),T.events.activate&&(co(T.activeDrops,T.events.activate),f.fire("actions/drop:start",{interaction:w,dragEvent:_}))}},"interactions:action-move":fd,"interactions:after-action-move":function(p,f){var w=p.interaction,_=p.iEvent;if(w.prepared.name==="drag"){var T=w.dropState;_a(w,T.events),f.fire("actions/drop:move",{interaction:w,dragEvent:_}),T.events={}}},"interactions:action-end":function(p,f){if(p.interaction.prepared.name==="drag"){var w=p.interaction,_=p.iEvent;fd(p,f),_a(w,w.dropState.events),f.fire("actions/drop:end",{interaction:w,dragEvent:_})}},"interactions:stop":function(p){var f=p.interaction;if(f.prepared.name==="drag"){var w=f.dropState;w&&(w.activeDrops=null,w.events=null,w.cur.dropzone=null,w.cur.element=null,w.prev.dropzone=null,w.prev.element=null,w.rejected=!1)}}},getActiveDrops:pl,getDrop:dd,getDropEvents:ml,fireDropEvents:_a,filterEventType:function(p){return p.search("drag")===0||p.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},pm=pd;function Z(p){var f=p.interaction,w=p.iEvent,_=p.phase;if(f.prepared.name==="gesture"){var T=f.pointers.map(function(j){return j.pointer}),E=_==="start",A=_==="end",O=f.interactable.options.deltaSource;if(w.touches=[T[0],T[1]],E)w.distance=ll(T,O),w.box=cl(T),w.scale=1,w.ds=0,w.angle=ul(T,O),w.da=0,f.gesture.startDistance=w.distance,f.gesture.startAngle=w.angle;else if(A||f.pointers.length<2){var $=f.prevEvent;w.distance=$.distance,w.box=$.box,w.scale=$.scale,w.ds=0,w.angle=$.angle,w.da=0}else w.distance=ll(T,O),w.box=cl(T),w.scale=w.distance/f.gesture.startDistance,w.angle=ul(T,O),w.ds=w.scale-f.gesture.scale,w.da=w.angle-f.gesture.angle;f.gesture.distance=w.distance,f.gesture.angle=w.angle,W.number(w.scale)&&w.scale!==1/0&&!isNaN(w.scale)&&(f.gesture.scale=w.scale)}}var Qo={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(p){var f=p.actions,w=p.Interactable,_=p.defaults;w.prototype.gesturable=function(T){return W.object(T)?(this.options.gesture.enabled=T.enabled!==!1,this.setPerAction("gesture",T),this.setOnEvents("gesture",T),this):W.bool(T)?(this.options.gesture.enabled=T,this):this.options.gesture},f.map.gesture=Qo,f.methodDict.gesture="gesturable",_.actions.gesture=Qo.defaults},listeners:{"interactions:action-start":Z,"interactions:action-move":Z,"interactions:action-end":Z,"interactions:new":function(p){p.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(p){if(!(p.interaction.pointers.length<2)){var f=p.interactable.options.gesture;if(f&&f.enabled)return p.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(p){return p.search("gesture")===0}},md=Qo;function hd(p,f,w,_,T,E,A){if(!f)return!1;if(f===!0){var O=W.number(E.width)?E.width:E.right-E.left,$=W.number(E.height)?E.height:E.bottom-E.top;if(A=Math.min(A,Math.abs((p==="left"||p==="right"?O:$)/2)),O<0&&(p==="left"?p="right":p==="right"&&(p="left")),$<0&&(p==="top"?p="bottom":p==="bottom"&&(p="top")),p==="left"){var j=O>=0?E.left:E.right;return w.x<j+A}if(p==="top"){var U=$>=0?E.top:E.bottom;return w.y<U+A}if(p==="right")return w.x>(O>=0?E.right:E.left)-A;if(p==="bottom")return w.y>($>=0?E.bottom:E.top)-A}return!!W.element(_)&&(W.element(f)?f===_:Yr(_,f,T))}function hl(p){var f=p.iEvent,w=p.interaction;if(w.prepared.name==="resize"&&w.resizeAxes){var _=f;w.interactable.options.resize.square?(w.resizeAxes==="y"?_.delta.x=_.delta.y:_.delta.y=_.delta.x,_.axes="xy"):(_.axes=w.resizeAxes,w.resizeAxes==="x"?_.delta.y=0:w.resizeAxes==="y"&&(_.delta.x=0))}}var dn,Vi,ti={id:"actions/resize",before:["actions/drag"],install:function(p){var f=p.actions,w=p.browser,_=p.Interactable,T=p.defaults;ti.cursors=function(E){return E.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(w),ti.defaultMargin=w.supportsTouch||w.supportsPointerEvent?20:10,_.prototype.resizable=function(E){return function(A,O,$){return W.object(O)?(A.options.resize.enabled=O.enabled!==!1,A.setPerAction("resize",O),A.setOnEvents("resize",O),W.string(O.axis)&&/^x$|^y$|^xy$/.test(O.axis)?A.options.resize.axis=O.axis:O.axis===null&&(A.options.resize.axis=$.defaults.actions.resize.axis),W.bool(O.preserveAspectRatio)?A.options.resize.preserveAspectRatio=O.preserveAspectRatio:W.bool(O.square)&&(A.options.resize.square=O.square),A):W.bool(O)?(A.options.resize.enabled=O,A):A.options.resize}(this,E,p)},f.map.resize=ti,f.methodDict.resize="resizable",T.actions.resize=ti.defaults},listeners:{"interactions:new":function(p){p.interaction.resizeAxes="xy"},"interactions:action-start":function(p){(function(f){var w=f.iEvent,_=f.interaction;if(_.prepared.name==="resize"&&_.prepared.edges){var T=w,E=_.rect;_._rects={start:Fe({},E),corrected:Fe({},E),previous:Fe({},E),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},T.edges=_.prepared.edges,T.rect=_._rects.corrected,T.deltaRect=_._rects.delta}})(p),hl(p)},"interactions:action-move":function(p){(function(f){var w=f.iEvent,_=f.interaction;if(_.prepared.name==="resize"&&_.prepared.edges){var T=w,E=_.interactable.options.resize.invert,A=E==="reposition"||E==="negate",O=_.rect,$=_._rects,j=$.start,U=$.corrected,ee=$.delta,le=$.previous;if(Fe(le,U),A){if(Fe(U,O),E==="reposition"){if(U.top>U.bottom){var be=U.top;U.top=U.bottom,U.bottom=be}if(U.left>U.right){var ye=U.left;U.left=U.right,U.right=ye}}}else U.top=Math.min(O.top,j.bottom),U.bottom=Math.max(O.bottom,j.top),U.left=Math.min(O.left,j.right),U.right=Math.max(O.right,j.left);for(var ve in U.width=U.right-U.left,U.height=U.bottom-U.top,U)ee[ve]=U[ve]-le[ve];T.edges=_.prepared.edges,T.rect=U,T.deltaRect=ee}})(p),hl(p)},"interactions:action-end":function(p){var f=p.iEvent,w=p.interaction;if(w.prepared.name==="resize"&&w.prepared.edges){var _=f;_.edges=w.prepared.edges,_.rect=w._rects.corrected,_.deltaRect=w._rects.delta}},"auto-start:check":function(p){var f=p.interaction,w=p.interactable,_=p.element,T=p.rect,E=p.buttons;if(T){var A=Fe({},f.coords.cur.page),O=w.options.resize;if(O&&O.enabled&&(!f.pointerIsDown||!/mouse|pointer/.test(f.pointerType)||E&O.mouseButtons)){if(W.object(O.edges)){var $={left:!1,right:!1,top:!1,bottom:!1};for(var j in $)$[j]=hd(j,O.edges[j],A,f._latestPointer.eventTarget,_,T,O.margin||ti.defaultMargin);$.left=$.left&&!$.right,$.top=$.top&&!$.bottom,($.left||$.right||$.top||$.bottom)&&(p.action={name:"resize",edges:$})}else{var U=O.axis!=="y"&&A.x>T.right-ti.defaultMargin,ee=O.axis!=="x"&&A.y>T.bottom-ti.defaultMargin;(U||ee)&&(p.action={name:"resize",axes:(U?"x":"")+(ee?"y":"")})}return!p.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(p){var f=p.edges,w=p.axis,_=p.name,T=ti.cursors,E=null;if(w)E=T[_+w];else if(f){for(var A="",O=0,$=["top","bottom","left","right"];O<$.length;O++){var j=$[O];f[j]&&(A+=j)}E=T[A]}return E},filterEventType:function(p){return p.search("resize")===0},defaultMargin:null},gd=ti,wd={id:"actions",install:function(p){p.usePlugin(md),p.usePlugin(gd),p.usePlugin(ke),p.usePlugin(pm)}},Sa=0,hi={request:function(p){return dn(p)},cancel:function(p){return Vi(p)},init:function(p){if(dn=p.requestAnimationFrame,Vi=p.cancelAnimationFrame,!dn)for(var f=["ms","moz","webkit","o"],w=0;w<f.length;w++){var _=f[w];dn=p["".concat(_,"RequestAnimationFrame")],Vi=p["".concat(_,"CancelAnimationFrame")]||p["".concat(_,"CancelRequestAnimationFrame")]}dn=dn&&dn.bind(p),Vi=Vi&&Vi.bind(p),dn||(dn=function(T){var E=Date.now(),A=Math.max(0,16-(E-Sa)),O=p.setTimeout(function(){T(E+A)},A);return Sa=E+A,O},Vi=function(T){return clearTimeout(T)})}},je={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(p){je.isScrolling=!0,hi.cancel(je.i),p.autoScroll=je,je.interaction=p,je.prevTime=je.now(),je.i=hi.request(je.scroll)},stop:function(){je.isScrolling=!1,je.interaction&&(je.interaction.autoScroll=null),hi.cancel(je.i)},scroll:function(){var p=je.interaction,f=p.interactable,w=p.element,_=p.prepared.name,T=f.options[_].autoScroll,E=xa(T.container,f,w),A=je.now(),O=(A-je.prevTime)/1e3,$=T.speed*O;if($>=1){var j={x:je.x*$,y:je.y*$};if(j.x||j.y){var U=gl(E);W.window(E)?E.scrollBy(j.x,j.y):E&&(E.scrollLeft+=j.x,E.scrollTop+=j.y);var ee=gl(E),le={x:ee.x-U.x,y:ee.y-U.y};(le.x||le.y)&&f.fire({type:"autoscroll",target:w,interactable:f,delta:le,interaction:p,container:E})}je.prevTime=A}je.isScrolling&&(hi.cancel(je.i),je.i=hi.request(je.scroll))},check:function(p,f){var w;return(w=p.options[f].autoScroll)==null?void 0:w.enabled},onInteractionMove:function(p){var f=p.interaction,w=p.pointer;if(f.interacting()&&je.check(f.interactable,f.prepared.name))if(f.simulation)je.x=je.y=0;else{var _,T,E,A,O=f.interactable,$=f.element,j=f.prepared.name,U=O.options[j].autoScroll,ee=xa(U.container,O,$);if(W.window(ee))A=w.clientX<je.margin,_=w.clientY<je.margin,T=w.clientX>ee.innerWidth-je.margin,E=w.clientY>ee.innerHeight-je.margin;else{var le=br(ee);A=w.clientX<le.left+je.margin,_=w.clientY<le.top+je.margin,T=w.clientX>le.right-je.margin,E=w.clientY>le.bottom-je.margin}je.x=T?1:A?-1:0,je.y=E?1:_?-1:0,je.isScrolling||(je.margin=U.margin,je.speed=U.speed,je.start(f))}}};function xa(p,f,w){return(W.string(p)?od(p,f,w):p)||J(w)}function gl(p){return W.window(p)&&(p=window.document.body),{x:p.scrollLeft,y:p.scrollTop}}var wl={id:"auto-scroll",install:function(p){var f=p.defaults,w=p.actions;p.autoScroll=je,je.now=function(){return p.now()},w.phaselessTypes.autoscroll=!0,f.perAction.autoScroll=je.defaults},listeners:{"interactions:new":function(p){p.interaction.autoScroll=null},"interactions:destroy":function(p){p.interaction.autoScroll=null,je.stop(),je.interaction&&(je.interaction=null)},"interactions:stop":je.stop,"interactions:action-move":function(p){return je.onInteractionMove(p)}}},yl=wl;function es(p,f){var w=!1;return function(){return w||(F.console.warn(f),w=!0),p.apply(this,arguments)}}function Ca(p,f){return p.name=f.name,p.axis=f.axis,p.edges=f.edges,p}function yd(p){return W.bool(p)?(this.options.styleCursor=p,this):p===null?(delete this.options.styleCursor,this):this.options.styleCursor}function bd(p){return W.func(p)?(this.options.actionChecker=p,this):p===null?(delete this.options.actionChecker,this):this.options.actionChecker}var vd={id:"auto-start/interactableMethods",install:function(p){var f=p.Interactable;f.prototype.getAction=function(w,_,T,E){var A=function(O,$,j,U,ee){var le=O.getRect(U),be=$.buttons||{0:1,1:4,3:8,4:16}[$.button],ye={action:null,interactable:O,interaction:j,element:U,rect:le,buttons:be};return ee.fire("auto-start:check",ye),ye.action}(this,_,T,E,p);return this.options.actionChecker?this.options.actionChecker(w,_,A,this,E,T):A},f.prototype.ignoreFrom=es(function(w){return this._backCompatOption("ignoreFrom",w)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),f.prototype.allowFrom=es(function(w){return this._backCompatOption("allowFrom",w)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),f.prototype.actionChecker=bd,f.prototype.styleCursor=yd}};function bl(p,f,w,_,T){return f.testIgnoreAllow(f.options[p.name],w,_)&&f.options[p.name].enabled&&Ns(f,w,p,T)?p:null}function _d(p,f,w,_,T,E,A){for(var O=0,$=_.length;O<$;O++){var j=_[O],U=T[O],ee=j.getAction(f,w,p,U);if(ee){var le=bl(ee,j,U,E,A);if(le)return{action:le,interactable:j,element:U}}}return{action:null,interactable:null,element:null}}function vl(p,f,w,_,T){var E=[],A=[],O=_;function $(U){E.push(U),A.push(O)}for(;W.element(O);){E=[],A=[],T.interactables.forEachMatch(O,$);var j=_d(p,f,w,E,A,_,T);if(j.action&&!j.interactable.options[j.action.name].manualStart)return j;O=Ne(O)}return{action:null,interactable:null,element:null}}function _l(p,f,w){var _=f.action,T=f.interactable,E=f.element;_=_||{name:null},p.interactable=T,p.element=E,Ca(p.prepared,_),p.rect=T&&_.name?T.getRect(E):null,xl(p,w),w.fire("autoStart:prepared",{interaction:p})}function Ns(p,f,w,_){var T=p.options,E=T[w.name].max,A=T[w.name].maxPerElement,O=_.autoStart.maxInteractions,$=0,j=0,U=0;if(!(E&&A&&O))return!1;for(var ee=0,le=_.interactions.list;ee<le.length;ee++){var be=le[ee],ye=be.prepared.name;if(be.interacting()&&(++$>=O||be.interactable===p&&((j+=ye===w.name?1:0)>=E||be.element===f&&(U++,ye===w.name&&U>=A))))return!1}return O>0}function Sl(p,f){return W.number(p)?(f.autoStart.maxInteractions=p,this):f.autoStart.maxInteractions}function Ta(p,f,w){var _=w.autoStart.cursorElement;_&&_!==p&&(_.style.cursor=""),p.ownerDocument.documentElement.style.cursor=f,p.style.cursor=f,w.autoStart.cursorElement=f?p:null}function xl(p,f){var w=p.interactable,_=p.element,T=p.prepared;if(p.pointerType==="mouse"&&w&&w.options.styleCursor){var E="";if(T.name){var A=w.options[T.name].cursorChecker;E=W.func(A)?A(T,w,_,p._interacting):f.actions.map[T.name].getCursor(T)}Ta(p.element,E||"",f)}else f.autoStart.cursorElement&&Ta(f.autoStart.cursorElement,"",f)}var Sd={id:"auto-start/base",before:["actions"],install:function(p){var f=p.interactStatic,w=p.defaults;p.usePlugin(vd),w.base.actionChecker=null,w.base.styleCursor=!0,Fe(w.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),f.maxInteractions=function(_){return Sl(_,p)},p.autoStart={maxInteractions:1/0,withinInteractionLimit:Ns,cursorElement:null}},listeners:{"interactions:down":function(p,f){var w=p.interaction,_=p.pointer,T=p.event,E=p.eventTarget;w.interacting()||_l(w,vl(w,_,T,E,f),f)},"interactions:move":function(p,f){(function(w,_){var T=w.interaction,E=w.pointer,A=w.event,O=w.eventTarget;T.pointerType!=="mouse"||T.pointerIsDown||T.interacting()||_l(T,vl(T,E,A,O,_),_)})(p,f),function(w,_){var T=w.interaction;if(T.pointerIsDown&&!T.interacting()&&T.pointerWasMoved&&T.prepared.name){_.fire("autoStart:before-start",w);var E=T.interactable,A=T.prepared.name;A&&E&&(E.options[A].manualStart||!Ns(E,T.element,T.prepared,_)?T.stop():(T.start(T.prepared,E,T.element),xl(T,_)))}}(p,f)},"interactions:stop":function(p,f){var w=p.interaction,_=w.interactable;_&&_.options.styleCursor&&Ta(w.element,"",f)}},maxInteractions:Sl,withinInteractionLimit:Ns,validateAction:bl},Ea=Sd,xd={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(p,f){var w=p.interaction,_=p.eventTarget,T=p.dx,E=p.dy;if(w.prepared.name==="drag"){var A=Math.abs(T),O=Math.abs(E),$=w.interactable.options.drag,j=$.startAxis,U=A>O?"x":A<O?"y":"xy";if(w.prepared.axis=$.lockAxis==="start"?U[0]:$.lockAxis,U!=="xy"&&j!=="xy"&&j!==U){w.prepared.name=null;for(var ee=_,le=function(ye){if(ye!==w.interactable){var ve=w.interactable.options.drag;if(!ve.manualStart&&ye.testIgnoreAllow(ve,ee,_)){var Oe=ye.getAction(w.downPointer,w.downEvent,w,ee);if(Oe&&Oe.name==="drag"&&function(Pe,$e){if(!$e)return!1;var Ke=$e.options.drag.startAxis;return Pe==="xy"||Ke==="xy"||Ke===Pe}(U,ye)&&Ea.validateAction(Oe,ye,ee,_,f))return ye}}};W.element(ee);){var be=f.interactables.forEachMatch(ee,le);if(be){w.prepared.name="drag",w.interactable=be,w.element=ee;break}ee=Ne(ee)}}}}}};function Ma(p){var f=p.prepared&&p.prepared.name;if(!f)return null;var w=p.interactable.options;return w[f].hold||w[f].delay}var Cd={id:"auto-start/hold",install:function(p){var f=p.defaults;p.usePlugin(Ea),f.perAction.hold=0,f.perAction.delay=0},listeners:{"interactions:new":function(p){p.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(p){var f=p.interaction,w=Ma(f);w>0&&(f.autoStartHoldTimer=setTimeout(function(){f.start(f.prepared,f.interactable,f.element)},w))},"interactions:move":function(p){var f=p.interaction,w=p.duplicate;f.autoStartHoldTimer&&f.pointerWasMoved&&!w&&(clearTimeout(f.autoStartHoldTimer),f.autoStartHoldTimer=null)},"autoStart:before-start":function(p){var f=p.interaction;Ma(f)>0&&(f.prepared.name=null)}},getHoldDuration:Ma},Td=Cd,Ed={id:"auto-start",install:function(p){p.usePlugin(Ea),p.usePlugin(Td),p.usePlugin(xd)}},Md=function(p){return/^(always|never|auto)$/.test(p)?(this.options.preventDefault=p,this):W.bool(p)?(this.options.preventDefault=p?"always":"never",this):this.options.preventDefault};function Pd(p){var f=p.interaction,w=p.event;f.interactable&&f.interactable.checkAndPreventDefault(w)}var Cl={id:"core/interactablePreventDefault",install:function(p){var f=p.Interactable;f.prototype.preventDefault=Md,f.prototype.checkAndPreventDefault=function(w){return function(_,T,E){var A=_.options.preventDefault;if(A!=="never")if(A!=="always"){if(T.events.supportsPassive&&/^touch(start|move)$/.test(E.type)){var O=J(E.target).document,$=T.getDocOptions(O);if(!$||!$.events||$.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(E.type)||W.element(E.target)&&Xe(E.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||E.preventDefault()}else E.preventDefault()}(this,p,w)},p.interactions.docEvents.push({type:"dragstart",listener:function(w){for(var _=0,T=p.interactions.list;_<T.length;_++){var E=T[_];if(E.element&&(E.element===w.target||we(E.element,w.target)))return void E.interactable.checkAndPreventDefault(w)}}})},listeners:["down","move","up","cancel"].reduce(function(p,f){return p["interactions:".concat(f)]=Pd,p},{})};function Rs(p,f){if(f.phaselessTypes[p])return!0;for(var w in f.map)if(p.indexOf(w)===0&&p.substr(w.length)in f.phases)return!0;return!1}function lo(p){var f={};for(var w in p){var _=p[w];W.plainObject(_)?f[w]=lo(_):W.array(_)?f[w]=fl(_):f[w]=_}return f}var Pa=function(){function p(f){o(this,p),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=f,this.result=Ds(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return c(p,[{key:"start",value:function(f,w){var _,T,E=f.phase,A=this.interaction,O=function(j){var U=j.interactable.options[j.prepared.name],ee=U.modifiers;return ee&&ee.length?ee:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(le){var be=U[le];return be&&be.enabled&&{options:be,methods:be._methods}}).filter(function(le){return!!le})}(A);this.prepareStates(O),this.startEdges=Fe({},A.edges),this.edges=Fe({},this.startEdges),this.startOffset=(_=A.rect,T=w,_?{left:T.x-_.left,top:T.y-_.top,right:_.right-T.x,bottom:_.bottom-T.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var $=this.fillArg({phase:E,pageCoords:w,preEnd:!1});return this.result=Ds(),this.startAll($),this.result=this.setAll($)}},{key:"fillArg",value:function(f){var w=this.interaction;return f.interaction=w,f.interactable=w.interactable,f.element=w.element,f.rect||(f.rect=w.rect),f.edges||(f.edges=this.startEdges),f.startOffset=this.startOffset,f}},{key:"startAll",value:function(f){for(var w=0,_=this.states;w<_.length;w++){var T=_[w];T.methods.start&&(f.state=T,T.methods.start(f))}}},{key:"setAll",value:function(f){var w=f.phase,_=f.preEnd,T=f.skipModifiers,E=f.rect,A=f.edges;f.coords=Fe({},f.pageCoords),f.rect=Fe({},E),f.edges=Fe({},A);for(var O=T?this.states.slice(T):this.states,$=Ds(f.coords,f.rect),j=0;j<O.length;j++){var U,ee=O[j],le=ee.options,be=Fe({},f.coords),ye=null;(U=ee.methods)!=null&&U.set&&this.shouldDo(le,_,w)&&(f.state=ee,ye=ee.methods.set(f),ya(f.edges,f.rect,{x:f.coords.x-be.x,y:f.coords.y-be.y})),$.eventProps.push(ye)}Fe(this.edges,f.edges),$.delta.x=f.coords.x-f.pageCoords.x,$.delta.y=f.coords.y-f.pageCoords.y,$.rectDelta.left=f.rect.left-E.left,$.rectDelta.right=f.rect.right-E.right,$.rectDelta.top=f.rect.top-E.top,$.rectDelta.bottom=f.rect.bottom-E.bottom;var ve=this.result.coords,Oe=this.result.rect;if(ve&&Oe){var Pe=$.rect.left!==Oe.left||$.rect.right!==Oe.right||$.rect.top!==Oe.top||$.rect.bottom!==Oe.bottom;$.changed=Pe||ve.x!==$.coords.x||ve.y!==$.coords.y}return $}},{key:"applyToInteraction",value:function(f){var w=this.interaction,_=f.phase,T=w.coords.cur,E=w.coords.start,A=this.result,O=this.startDelta,$=A.delta;_==="start"&&Fe(this.startDelta,A.delta);for(var j=0,U=[[E,O],[T,$]];j<U.length;j++){var ee=U[j],le=ee[0],be=ee[1];le.page.x+=be.x,le.page.y+=be.y,le.client.x+=be.x,le.client.y+=be.y}var ye=this.result.rectDelta,ve=f.rect||w.rect;ve.left+=ye.left,ve.right+=ye.right,ve.top+=ye.top,ve.bottom+=ye.bottom,ve.width=ve.right-ve.left,ve.height=ve.bottom-ve.top}},{key:"setAndApply",value:function(f){var w=this.interaction,_=f.phase,T=f.preEnd,E=f.skipModifiers,A=this.setAll(this.fillArg({preEnd:T,phase:_,pageCoords:f.modifiedCoords||w.coords.cur.page}));if(this.result=A,!A.changed&&(!E||E<this.states.length)&&w.interacting())return!1;if(f.modifiedCoords){var O=w.coords.cur.page,$={x:f.modifiedCoords.x-O.x,y:f.modifiedCoords.y-O.y};A.coords.x+=$.x,A.coords.y+=$.y,A.delta.x+=$.x,A.delta.y+=$.y}this.applyToInteraction(f)}},{key:"beforeEnd",value:function(f){var w=f.interaction,_=f.event,T=this.states;if(T&&T.length){for(var E=!1,A=0;A<T.length;A++){var O=T[A];f.state=O;var $=O.options,j=O.methods,U=j.beforeEnd&&j.beforeEnd(f);if(U)return this.endResult=U,!1;E=E||!E&&this.shouldDo($,!0,f.phase,!0)}E&&w.move({event:_,preEnd:!0})}}},{key:"stop",value:function(f){var w=f.interaction;if(this.states&&this.states.length){var _=Fe({states:this.states,interactable:w.interactable,element:w.element,rect:null},f);this.fillArg(_);for(var T=0,E=this.states;T<E.length;T++){var A=E[T];_.state=A,A.methods.stop&&A.methods.stop(_)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(f){this.states=[];for(var w=0;w<f.length;w++){var _=f[w],T=_.options,E=_.methods,A=_.name;this.states.push({options:T,methods:E,index:w,name:A})}return this.states}},{key:"restoreInteractionCoords",value:function(f){var w=f.interaction,_=w.coords,T=w.rect,E=w.modification;if(E.result){for(var A=E.startDelta,O=E.result,$=O.delta,j=O.rectDelta,U=0,ee=[[_.start,A],[_.cur,$]];U<ee.length;U++){var le=ee[U],be=le[0],ye=le[1];be.page.x-=ye.x,be.page.y-=ye.y,be.client.x-=ye.x,be.client.y-=ye.y}T.left-=j.left,T.right-=j.right,T.top-=j.top,T.bottom-=j.bottom}}},{key:"shouldDo",value:function(f,w,_,T){return!(!f||f.enabled===!1||T&&!f.endOnly||f.endOnly&&!w||_==="start"&&!f.setStart)}},{key:"copyFrom",value:function(f){this.startOffset=f.startOffset,this.startDelta=f.startDelta,this.startEdges=f.startEdges,this.edges=f.edges,this.states=f.states.map(function(w){return lo(w)}),this.result=Ds(Fe({},f.result.coords),Fe({},f.result.rect))}},{key:"destroy",value:function(){for(var f in this)this[f]=null}}]),p}();function Ds(p,f){return{rect:f,coords:p,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function gi(p,f){var w=p.defaults,_={start:p.start,set:p.set,beforeEnd:p.beforeEnd,stop:p.stop},T=function(E){var A=E||{};for(var O in A.enabled=A.enabled!==!1,w)O in A||(A[O]=w[O]);var $={options:A,methods:_,name:f,enable:function(){return A.enabled=!0,$},disable:function(){return A.enabled=!1,$}};return $};return f&&typeof f=="string"&&(T._defaults=w,T._methods=_),T}function ts(p){var f=p.iEvent,w=p.interaction.modification.result;w&&(f.modifiers=w.eventProps)}var Id={id:"modifiers/base",before:["actions"],install:function(p){p.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(p){var f=p.interaction;f.modification=new Pa(f)},"interactions:before-action-start":function(p){var f=p.interaction,w=p.interaction.modification;w.start(p,f.coords.start.page),f.edges=w.edges,w.applyToInteraction(p)},"interactions:before-action-move":function(p){var f=p.interaction,w=f.modification,_=w.setAndApply(p);return f.edges=w.edges,_},"interactions:before-action-end":function(p){var f=p.interaction,w=f.modification,_=w.beforeEnd(p);return f.edges=w.startEdges,_},"interactions:action-start":ts,"interactions:action-move":ts,"interactions:action-end":ts,"interactions:after-action-start":function(p){return p.interaction.modification.restoreInteractionCoords(p)},"interactions:after-action-move":function(p){return p.interaction.modification.restoreInteractionCoords(p)},"interactions:stop":function(p){return p.interaction.modification.stop(p)}}},Tl=Id,El={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Ia=function(p){d(w,p);var f=S(w);function w(_,T,E,A,O,$,j){var U;o(this,w),(U=f.call(this,_)).relatedTarget=null,U.screenX=void 0,U.screenY=void 0,U.button=void 0,U.buttons=void 0,U.ctrlKey=void 0,U.shiftKey=void 0,U.altKey=void 0,U.metaKey=void 0,U.page=void 0,U.client=void 0,U.delta=void 0,U.rect=void 0,U.x0=void 0,U.y0=void 0,U.t0=void 0,U.dt=void 0,U.duration=void 0,U.clientX0=void 0,U.clientY0=void 0,U.velocity=void 0,U.speed=void 0,U.swipe=void 0,U.axes=void 0,U.preEnd=void 0,O=O||_.element;var ee=_.interactable,le=(ee&&ee.options||El).deltaSource,be=Ls(ee,O,E),ye=A==="start",ve=A==="end",Oe=ye?v(U):_.prevEvent,Pe=ye?_.coords.start:ve?{page:Oe.page,client:Oe.client,timeStamp:_.coords.cur.timeStamp}:_.coords.cur;return U.page=Fe({},Pe.page),U.client=Fe({},Pe.client),U.rect=Fe({},_.rect),U.timeStamp=Pe.timeStamp,ve||(U.page.x-=be.x,U.page.y-=be.y,U.client.x-=be.x,U.client.y-=be.y),U.ctrlKey=T.ctrlKey,U.altKey=T.altKey,U.shiftKey=T.shiftKey,U.metaKey=T.metaKey,U.button=T.button,U.buttons=T.buttons,U.target=O,U.currentTarget=O,U.preEnd=$,U.type=j||E+(A||""),U.interactable=ee,U.t0=ye?_.pointers[_.pointers.length-1].downTime:Oe.t0,U.x0=_.coords.start.page.x-be.x,U.y0=_.coords.start.page.y-be.y,U.clientX0=_.coords.start.client.x-be.x,U.clientY0=_.coords.start.client.y-be.y,U.delta=ye||ve?{x:0,y:0}:{x:U[le].x-Oe[le].x,y:U[le].y-Oe[le].y},U.dt=_.coords.delta.timeStamp,U.duration=U.timeStamp-U.t0,U.velocity=Fe({},_.coords.velocity[le]),U.speed=ks(U.velocity.x,U.velocity.y),U.swipe=ve||A==="inertiastart"?U.getSwipe():null,U}return c(w,[{key:"getSwipe",value:function(){var _=this._interaction;if(_.prevEvent.speed<600||this.timeStamp-_.prevEvent.timeStamp>150)return null;var T=180*Math.atan2(_.prevEvent.velocityY,_.prevEvent.velocityX)/Math.PI;T<0&&(T+=360);var E=112.5<=T&&T<247.5,A=202.5<=T&&T<337.5;return{up:A,down:!A&&22.5<=T&&T<157.5,left:E,right:!E&&(292.5<=T||T<67.5),angle:T,speed:_.prevEvent.speed,velocity:{x:_.prevEvent.velocityX,y:_.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),w}(ao);Object.defineProperties(Ia.prototype,{pageX:{get:function(){return this.page.x},set:function(p){this.page.x=p}},pageY:{get:function(){return this.page.y},set:function(p){this.page.y=p}},clientX:{get:function(){return this.client.x},set:function(p){this.client.x=p}},clientY:{get:function(){return this.client.y},set:function(p){this.client.y=p}},dx:{get:function(){return this.delta.x},set:function(p){this.delta.x=p}},dy:{get:function(){return this.delta.y},set:function(p){this.delta.y=p}},velocityX:{get:function(){return this.velocity.x},set:function(p){this.velocity.x=p}},velocityY:{get:function(){return this.velocity.y},set:function(p){this.velocity.y=p}}});var Ad=c(function p(f,w,_,T,E){o(this,p),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=f,this.pointer=w,this.event=_,this.downTime=T,this.downTarget=E}),Ld=function(p){return p.interactable="",p.element="",p.prepared="",p.pointerIsDown="",p.pointerWasMoved="",p._proxy="",p}({}),Ml=function(p){return p.start="",p.move="",p.end="",p.stop="",p.interacting="",p}({}),kd=0,Od=function(){function p(f){var w=this,_=f.pointerType,T=f.scopeFire;o(this,p),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=es(function(U){this.move(U)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=kd++,this._scopeFire=T,this.pointerType=_;var E=this;this._proxy={};var A=function(U){Object.defineProperty(w._proxy,U,{get:function(){return E[U]}})};for(var O in Ld)A(O);var $=function(U){Object.defineProperty(w._proxy,U,{value:function(){return E[U].apply(E,arguments)}})};for(var j in Ml)$(j);this._scopeFire("interactions:new",{interaction:this})}return c(p,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(f,w,_){var T=this.updatePointer(f,w,_,!0),E=this.pointers[T];this._scopeFire("interactions:down",{pointer:f,event:w,eventTarget:_,pointerIndex:T,pointerInfo:E,type:"down",interaction:this})}},{key:"start",value:function(f,w,_){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(f.name==="gesture"?2:1)||!w.options[f.name].enabled)&&(Ca(this.prepared,f),this.interactable=w,this.element=_,this.rect=w.getRect(_),this.edges=this.prepared.edges?Fe({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(f,w,_){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(f,w,_,!1);var T,E,A=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(T=this.coords.cur.client.x-this.coords.start.client.x,E=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=ks(T,E)>this.pointerMoveTolerance);var O,$,j,U=this.getPointerIndex(f),ee={pointer:f,pointerIndex:U,pointerInfo:this.pointers[U],event:w,type:"move",eventTarget:_,dx:T,dy:E,duplicate:A,interaction:this};A||(O=this.coords.velocity,$=this.coords.delta,j=Math.max($.timeStamp/1e3,.001),O.page.x=$.page.x/j,O.page.y=$.page.y/j,O.client.x=$.client.x/j,O.client.y=$.client.y/j,O.timeStamp=j),this._scopeFire("interactions:move",ee),A||this.simulation||(this.interacting()&&(ee.type=null,this.move(ee)),this.pointerWasMoved&&ba(this.coords.prev,this.coords.cur))}},{key:"move",value:function(f){f&&f.event||ol(this.coords.delta),(f=Fe({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},f||{})).phase="move",this._doPhase(f)}},{key:"pointerUp",value:function(f,w,_,T){var E=this.getPointerIndex(f);E===-1&&(E=this.updatePointer(f,w,_,!1));var A=/cancel$/i.test(w.type)?"cancel":"up";this._scopeFire("interactions:".concat(A),{pointer:f,pointerIndex:E,pointerInfo:this.pointers[E],event:w,eventTarget:_,type:A,curEventTarget:T,interaction:this}),this.simulation||this.end(w),this.removePointer(f,w)}},{key:"documentBlur",value:function(f){this.end(f),this._scopeFire("interactions:blur",{event:f,type:"blur",interaction:this})}},{key:"end",value:function(f){var w;this._ending=!0,f=f||this._latestPointer.event,this.interacting()&&(w=this._doPhase({event:f,interaction:this,phase:"end"})),this._ending=!1,w===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(f){var w=Xo(f);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:Os(this.pointers,function(_){return _.id===w})}},{key:"getPointerInfo",value:function(f){return this.pointers[this.getPointerIndex(f)]}},{key:"updatePointer",value:function(f,w,_,T){var E,A,O,$=Xo(f),j=this.getPointerIndex(f),U=this.pointers[j];return T=T!==!1&&(T||/(down|start)$/i.test(w.type)),U?U.pointer=f:(U=new Ad($,f,w,null,null),j=this.pointers.length,this.pointers.push(U)),va(this.coords.cur,this.pointers.map(function(ee){return ee.pointer}),this._now()),E=this.coords.delta,A=this.coords.prev,O=this.coords.cur,E.page.x=O.page.x-A.page.x,E.page.y=O.page.y-A.page.y,E.client.x=O.client.x-A.client.x,E.client.y=O.client.y-A.client.y,E.timeStamp=O.timeStamp-A.timeStamp,T&&(this.pointerIsDown=!0,U.downTime=this.coords.cur.timeStamp,U.downTarget=_,Jo(this.downPointer,f),this.interacting()||(ba(this.coords.start,this.coords.cur),ba(this.coords.prev,this.coords.cur),this.downEvent=w,this.pointerWasMoved=!1)),this._updateLatestPointer(f,w,_),this._scopeFire("interactions:update-pointer",{pointer:f,event:w,eventTarget:_,down:T,pointerInfo:U,pointerIndex:j,interaction:this}),j}},{key:"removePointer",value:function(f,w){var _=this.getPointerIndex(f);if(_!==-1){var T=this.pointers[_];this._scopeFire("interactions:remove-pointer",{pointer:f,event:w,eventTarget:null,pointerIndex:_,pointerInfo:T,interaction:this}),this.pointers.splice(_,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(f,w,_){this._latestPointer.pointer=f,this._latestPointer.event=w,this._latestPointer.eventTarget=_}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(f,w,_,T){return new Ia(this,f,this.prepared.name,w,this.element,_,T)}},{key:"_fireEvent",value:function(f){var w;(w=this.interactable)==null||w.fire(f),(!this.prevEvent||f.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=f)}},{key:"_doPhase",value:function(f){var w=f.event,_=f.phase,T=f.preEnd,E=f.type,A=this.rect;if(A&&_==="move"&&(ya(this.edges,A,this.coords.delta[this.interactable.options.deltaSource]),A.width=A.right-A.left,A.height=A.bottom-A.top),this._scopeFire("interactions:before-action-".concat(_),f)===!1)return!1;var O=f.iEvent=this._createPreparedEvent(w,_,T,E);return this._scopeFire("interactions:action-".concat(_),f),_==="start"&&(this.prevEvent=O),this._fireEvent(O),this._scopeFire("interactions:after-action-".concat(_),f),!0}},{key:"_now",value:function(){return Date.now()}}]),p}();function Pl(p){Il(p.interaction)}function Il(p){if(!function(w){return!(!w.offset.pending.x&&!w.offset.pending.y)}(p))return!1;var f=p.offset.pending;return Aa(p.coords.cur,f),Aa(p.coords.delta,f),ya(p.edges,p.rect,f),f.x=0,f.y=0,!0}function Nd(p){var f=p.x,w=p.y;this.offset.pending.x+=f,this.offset.pending.y+=w,this.offset.total.x+=f,this.offset.total.y+=w}function Aa(p,f){var w=p.page,_=p.client,T=f.x,E=f.y;w.x+=T,w.y+=E,_.x+=T,_.y+=E}Ml.offsetBy="";var Rd={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(p){p.Interaction.prototype.offsetBy=Nd},listeners:{"interactions:new":function(p){p.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(p){return function(f){f.pointerIsDown&&(Aa(f.coords.cur,f.offset.total),f.offset.pending.x=0,f.offset.pending.y=0)}(p.interaction)},"interactions:before-action-start":Pl,"interactions:before-action-move":Pl,"interactions:before-action-end":function(p){var f=p.interaction;if(Il(f))return f.move({offset:!0}),f.end(),!1},"interactions:stop":function(p){var f=p.interaction;f.offset.total.x=0,f.offset.total.y=0,f.offset.pending.x=0,f.offset.pending.y=0}}},Al=Rd,Dd=function(){function p(f){o(this,p),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=f}return c(p,[{key:"start",value:function(f){var w=this.interaction,_=$s(w);if(!_||!_.enabled)return!1;var T=w.coords.velocity.client,E=ks(T.x,T.y),A=this.modification||(this.modification=new Pa(w));if(A.copyFrom(w.modification),this.t0=w._now(),this.allowResume=_.allowResume,this.v0=E,this.currentOffset={x:0,y:0},this.startCoords=w.coords.cur.page,this.modifierArg=A.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-w.coords.cur.timeStamp<50&&E>_.minSpeed&&E>_.endSpeed)this.startInertia();else{if(A.result=A.setAll(this.modifierArg),!A.result.changed)return!1;this.startSmoothEnd()}return w.modification.result.rect=null,w.offsetBy(this.targetOffset),w._doPhase({interaction:w,event:f,phase:"inertiastart"}),w.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),w.modification.result.rect=null,this.active=!0,w.simulation=this,!0}},{key:"startInertia",value:function(){var f=this,w=this.interaction.coords.velocity.client,_=$s(this.interaction),T=_.resistance,E=-Math.log(_.endSpeed/this.v0)/T;this.targetOffset={x:(w.x-E)/T,y:(w.y-E)/T},this.te=E,this.lambda_v0=T/this.v0,this.one_ve_v0=1-_.endSpeed/this.v0;var A=this.modification,O=this.modifierArg;O.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},A.result=A.setAll(O),A.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+A.result.delta.x,y:this.targetOffset.y+A.result.delta.y}),this.onNextFrame(function(){return f.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var f=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return f.smoothEndTick()})}},{key:"onNextFrame",value:function(f){var w=this;this.timeout=hi.request(function(){w.active&&f()})}},{key:"inertiaTick",value:function(){var f,w,_,T,E,A,O,$=this,j=this.interaction,U=$s(j).resistance,ee=(j._now()-this.t0)/1e3;if(ee<this.te){var le,be=1-(Math.exp(-U*ee)-this.lambda_v0)/this.one_ve_v0;this.isModified?(f=0,w=0,_=this.targetOffset.x,T=this.targetOffset.y,E=this.modifiedOffset.x,A=this.modifiedOffset.y,le={x:Ll(O=be,f,_,E),y:Ll(O,w,T,A)}):le={x:this.targetOffset.x*be,y:this.targetOffset.y*be};var ye={x:le.x-this.currentOffset.x,y:le.y-this.currentOffset.y};this.currentOffset.x+=ye.x,this.currentOffset.y+=ye.y,j.offsetBy(ye),j.move(),this.onNextFrame(function(){return $.inertiaTick()})}else j.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var f=this,w=this.interaction,_=w._now()-this.t0,T=$s(w).smoothEndDuration;if(_<T){var E={x:kl(_,0,this.targetOffset.x,T),y:kl(_,0,this.targetOffset.y,T)},A={x:E.x-this.currentOffset.x,y:E.y-this.currentOffset.y};this.currentOffset.x+=A.x,this.currentOffset.y+=A.y,w.offsetBy(A),w.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return f.smoothEndTick()})}else w.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(f){var w=f.pointer,_=f.event,T=f.eventTarget,E=this.interaction;E.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),E.updatePointer(w,_,T,!0),E._doPhase({interaction:E,event:_,phase:"resume"}),ba(E.coords.prev,E.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,hi.cancel(this.timeout)}}]),p}();function $s(p){var f=p.interactable,w=p.prepared;return f&&f.options&&w.name&&f.options[w.name].inertia}var $d={id:"inertia",before:["modifiers","actions"],install:function(p){var f=p.defaults;p.usePlugin(Al),p.usePlugin(Tl),p.actions.phases.inertiastart=!0,p.actions.phases.resume=!0,f.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(p){var f=p.interaction;f.inertia=new Dd(f)},"interactions:before-action-end":function(p){var f=p.interaction,w=p.event;return(!f._interacting||f.simulation||!f.inertia.start(w))&&null},"interactions:down":function(p){var f=p.interaction,w=p.eventTarget,_=f.inertia;if(_.active)for(var T=w;W.element(T);){if(T===f.element){_.resume(p);break}T=Ne(T)}},"interactions:stop":function(p){var f=p.interaction.inertia;f.active&&f.stop()},"interactions:before-action-resume":function(p){var f=p.interaction.modification;f.stop(p),f.start(p,p.interaction.coords.cur.page),f.applyToInteraction(p)},"interactions:before-action-inertiastart":function(p){return p.interaction.modification.setAndApply(p)},"interactions:action-resume":ts,"interactions:action-inertiastart":ts,"interactions:after-action-inertiastart":function(p){return p.interaction.modification.restoreInteractionCoords(p)},"interactions:after-action-resume":function(p){return p.interaction.modification.restoreInteractionCoords(p)}}};function Ll(p,f,w,_){var T=1-p;return T*T*f+2*T*p*w+p*p*_}function kl(p,f,w,_){return-w*(p/=_)*(p-2)+f}var Fd=$d;function Ol(p,f){for(var w=0;w<f.length;w++){var _=f[w];if(p.immediatePropagationStopped)break;_(p)}}var Nl=function(){function p(f){o(this,p),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=Fe({},f||{})}return c(p,[{key:"fire",value:function(f){var w,_=this.global;(w=this.types[f.type])&&Ol(f,w),!f.propagationStopped&&_&&(w=_[f.type])&&Ol(f,w)}},{key:"on",value:function(f,w){var _=Fi(f,w);for(f in _)this.types[f]=ud(this.types[f]||[],_[f])}},{key:"off",value:function(f,w){var _=Fi(f,w);for(f in _){var T=this.types[f];if(T&&T.length)for(var E=0,A=_[f];E<A.length;E++){var O=A[E],$=T.indexOf(O);$!==-1&&T.splice($,1)}}}},{key:"getRect",value:function(f){return null}}]),p}(),Ud=function(){function p(f){o(this,p),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=f,Jo(this,f)}return c(p,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),p}();function uo(p){return W.object(p)?{capture:!!p.capture,passive:!!p.passive}:{capture:!!p,passive:!1}}function rs(p,f){return p===f||(typeof p=="boolean"?!!f.capture===p&&!f.passive:!!p.capture==!!f.capture&&!!p.passive==!!f.passive)}var Vd={id:"events",install:function(p){var f,w=[],_={},T=[],E={add:A,remove:O,addDelegate:function(U,ee,le,be,ye){var ve=uo(ye);if(!_[le]){_[le]=[];for(var Oe=0;Oe<T.length;Oe++){var Pe=T[Oe];A(Pe,le,$),A(Pe,le,j,!0)}}var $e=_[le],Ke=Ui($e,function(nt){return nt.selector===U&&nt.context===ee});Ke||(Ke={selector:U,context:ee,listeners:[]},$e.push(Ke)),Ke.listeners.push({func:be,options:ve})},removeDelegate:function(U,ee,le,be,ye){var ve,Oe=uo(ye),Pe=_[le],$e=!1;if(Pe)for(ve=Pe.length-1;ve>=0;ve--){var Ke=Pe[ve];if(Ke.selector===U&&Ke.context===ee){for(var nt=Ke.listeners,Be=nt.length-1;Be>=0;Be--){var Qe=nt[Be];if(Qe.func===be&&rs(Qe.options,Oe)){nt.splice(Be,1),nt.length||(Pe.splice(ve,1),O(ee,le,$),O(ee,le,j,!0)),$e=!0;break}}if($e)break}}},delegateListener:$,delegateUseCapture:j,delegatedEvents:_,documents:T,targets:w,supportsOptions:!1,supportsPassive:!1};function A(U,ee,le,be){if(U.addEventListener){var ye=uo(be),ve=Ui(w,function(Oe){return Oe.eventTarget===U});ve||(ve={eventTarget:U,events:{}},w.push(ve)),ve.events[ee]||(ve.events[ee]=[]),Ui(ve.events[ee],function(Oe){return Oe.func===le&&rs(Oe.options,ye)})||(U.addEventListener(ee,le,E.supportsOptions?ye:ye.capture),ve.events[ee].push({func:le,options:ye}))}}function O(U,ee,le,be){if(U.addEventListener&&U.removeEventListener){var ye=Os(w,function(Sr){return Sr.eventTarget===U}),ve=w[ye];if(ve&&ve.events)if(ee!=="all"){var Oe=!1,Pe=ve.events[ee];if(Pe){if(le==="all"){for(var $e=Pe.length-1;$e>=0;$e--){var Ke=Pe[$e];O(U,ee,Ke.func,Ke.options)}return}for(var nt=uo(be),Be=0;Be<Pe.length;Be++){var Qe=Pe[Be];if(Qe.func===le&&rs(Qe.options,nt)){U.removeEventListener(ee,le,E.supportsOptions?nt:nt.capture),Pe.splice(Be,1),Pe.length===0&&(delete ve.events[ee],Oe=!0);break}}}Oe&&!Object.keys(ve.events).length&&w.splice(ye,1)}else for(ee in ve.events)ve.events.hasOwnProperty(ee)&&O(U,ee,"all")}}function $(U,ee){for(var le=uo(ee),be=new Ud(U),ye=_[U.type],ve=ld(U)[0],Oe=ve;W.element(Oe);){for(var Pe=0;Pe<ye.length;Pe++){var $e=ye[Pe],Ke=$e.selector,nt=$e.context;if(Xe(Oe,Ke)&&we(nt,ve)&&we(nt,Oe)){var Be=$e.listeners;be.currentTarget=Oe;for(var Qe=0;Qe<Be.length;Qe++){var Sr=Be[Qe];rs(Sr.options,le)&&Sr.func(be)}}}Oe=Ne(Oe)}}function j(U){return $(U,!0)}return(f=p.document)==null||f.createElement("div").addEventListener("test",null,{get capture(){return E.supportsOptions=!0},get passive(){return E.supportsPassive=!0}}),p.events=E,E}},La={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(p){for(var f=0,w=La.methodOrder;f<w.length;f++){var _=w[f],T=La[_](p);if(T)return T}return null},simulationResume:function(p){var f=p.pointerType,w=p.eventType,_=p.eventTarget,T=p.scope;if(!/down|start/i.test(w))return null;for(var E=0,A=T.interactions.list;E<A.length;E++){var O=A[E],$=_;if(O.simulation&&O.simulation.allowResume&&O.pointerType===f)for(;$;){if($===O.element)return O;$=Ne($)}}return null},mouseOrPen:function(p){var f,w=p.pointerId,_=p.pointerType,T=p.eventType,E=p.scope;if(_!=="mouse"&&_!=="pen")return null;for(var A=0,O=E.interactions.list;A<O.length;A++){var $=O[A];if($.pointerType===_){if($.simulation&&!ka($,w))continue;if($.interacting())return $;f||(f=$)}}if(f)return f;for(var j=0,U=E.interactions.list;j<U.length;j++){var ee=U[j];if(!(ee.pointerType!==_||/down/i.test(T)&&ee.simulation))return ee}return null},hasPointer:function(p){for(var f=p.pointerId,w=0,_=p.scope.interactions.list;w<_.length;w++){var T=_[w];if(ka(T,f))return T}return null},idle:function(p){for(var f=p.pointerType,w=0,_=p.scope.interactions.list;w<_.length;w++){var T=_[w];if(T.pointers.length===1){var E=T.interactable;if(E&&(!E.options.gesture||!E.options.gesture.enabled))continue}else if(T.pointers.length>=2)continue;if(!T.interacting()&&f===T.pointerType)return T}return null}};function ka(p,f){return p.pointers.some(function(w){return w.id===f})}var zd=La,Fs=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Rl(p,f){return function(w){var _=f.interactions.list,T=dl(w),E=ld(w),A=E[0],O=E[1],$=[];if(/^touch/.test(w.type)){f.prevTouchTime=f.now();for(var j=0,U=w.changedTouches;j<U.length;j++){var ee=U[j],le={pointer:ee,pointerId:Xo(ee),pointerType:T,eventType:w.type,eventTarget:A,curEventTarget:O,scope:f},be=Dl(le);$.push([le.pointer,le.eventTarget,le.curEventTarget,be])}}else{var ye=!1;if(!fe.supportsPointerEvent&&/mouse/.test(w.type)){for(var ve=0;ve<_.length&&!ye;ve++)ye=_[ve].pointerType!=="mouse"&&_[ve].pointerIsDown;ye=ye||f.now()-f.prevTouchTime<500||w.timeStamp===0}if(!ye){var Oe={pointer:w,pointerId:Xo(w),pointerType:T,eventType:w.type,curEventTarget:O,eventTarget:A,scope:f},Pe=Dl(Oe);$.push([Oe.pointer,Oe.eventTarget,Oe.curEventTarget,Pe])}}for(var $e=0;$e<$.length;$e++){var Ke=$[$e],nt=Ke[0],Be=Ke[1],Qe=Ke[2];Ke[3][p](nt,w,Be,Qe)}}}function Dl(p){var f=p.pointerType,w=p.scope,_={interaction:zd.search(p),searchDetails:p};return w.fire("interactions:find",_),_.interaction||w.interactions.new({pointerType:f})}function Oa(p,f){var w=p.doc,_=p.scope,T=p.options,E=_.interactions.docEvents,A=_.events,O=A[f];for(var $ in _.browser.isIOS&&!T.events&&(T.events={passive:!1}),A.delegatedEvents)O(w,$,A.delegateListener),O(w,$,A.delegateUseCapture,!0);for(var j=T&&T.events,U=0;U<E.length;U++){var ee=E[U];O(w,ee.type,ee.listener,j)}}var $l={id:"core/interactions",install:function(p){for(var f={},w=0;w<Fs.length;w++){var _=Fs[w];f[_]=Rl(_,p)}var T,E=fe.pEventTypes;function A(){for(var O=0,$=p.interactions.list;O<$.length;O++){var j=$[O];if(j.pointerIsDown&&j.pointerType==="touch"&&!j._interacting)for(var U=function(){var be=le[ee];p.documents.some(function(ye){return we(ye.doc,be.downTarget)})||j.removePointer(be.pointer,be.event)},ee=0,le=j.pointers;ee<le.length;ee++)U()}}(T=H.PointerEvent?[{type:E.down,listener:A},{type:E.down,listener:f.pointerDown},{type:E.move,listener:f.pointerMove},{type:E.up,listener:f.pointerUp},{type:E.cancel,listener:f.pointerUp}]:[{type:"mousedown",listener:f.pointerDown},{type:"mousemove",listener:f.pointerMove},{type:"mouseup",listener:f.pointerUp},{type:"touchstart",listener:A},{type:"touchstart",listener:f.pointerDown},{type:"touchmove",listener:f.pointerMove},{type:"touchend",listener:f.pointerUp},{type:"touchcancel",listener:f.pointerUp}]).push({type:"blur",listener:function(O){for(var $=0,j=p.interactions.list;$<j.length;$++)j[$].documentBlur(O)}}),p.prevTouchTime=0,p.Interaction=function(O){d(j,O);var $=S(j);function j(){return o(this,j),$.apply(this,arguments)}return c(j,[{key:"pointerMoveTolerance",get:function(){return p.interactions.pointerMoveTolerance},set:function(U){p.interactions.pointerMoveTolerance=U}},{key:"_now",value:function(){return p.now()}}]),j}(Od),p.interactions={list:[],new:function(O){O.scopeFire=function(j,U){return p.fire(j,U)};var $=new p.Interaction(O);return p.interactions.list.push($),$},listeners:f,docEvents:T,pointerMoveTolerance:1},p.usePlugin(Cl)},listeners:{"scope:add-document":function(p){return Oa(p,"add")},"scope:remove-document":function(p){return Oa(p,"remove")},"interactable:unset":function(p,f){for(var w=p.interactable,_=f.interactions.list.length-1;_>=0;_--){var T=f.interactions.list[_];T.interactable===w&&(T.stop(),f.fire("interactions:destroy",{interaction:T}),T.destroy(),f.interactions.list.length>2&&f.interactions.list.splice(_,1))}}},onDocSignal:Oa,doOnInteractions:Rl,methodNames:Fs},Wd=$l,wi=function(p){return p[p.On=0]="On",p[p.Off=1]="Off",p}(wi||{}),Bd=function(){function p(f,w,_,T){o(this,p),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Nl,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=w.actions,this.target=f,this._context=w.context||_,this._win=J(xn(f)?this._context:f),this._doc=this._win.document,this._scopeEvents=T,this.set(w)}return c(p,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(f,w){return W.func(w.onstart)&&this.on("".concat(f,"start"),w.onstart),W.func(w.onmove)&&this.on("".concat(f,"move"),w.onmove),W.func(w.onend)&&this.on("".concat(f,"end"),w.onend),W.func(w.oninertiastart)&&this.on("".concat(f,"inertiastart"),w.oninertiastart),this}},{key:"updatePerActionListeners",value:function(f,w,_){var T,E=this,A=(T=this._actions.map[f])==null?void 0:T.filterEventType,O=function($){return(A==null||A($))&&Rs($,E._actions)};(W.array(w)||W.object(w))&&this._onOff(wi.Off,f,w,void 0,O),(W.array(_)||W.object(_))&&this._onOff(wi.On,f,_,void 0,O)}},{key:"setPerAction",value:function(f,w){var _=this._defaults;for(var T in w){var E=T,A=this.options[f],O=w[E];E==="listeners"&&this.updatePerActionListeners(f,A.listeners,O),W.array(O)?A[E]=fl(O):W.plainObject(O)?(A[E]=Fe(A[E]||{},lo(O)),W.object(_.perAction[E])&&"enabled"in _.perAction[E]&&(A[E].enabled=O.enabled!==!1)):W.bool(O)&&W.object(_.perAction[E])?A[E].enabled=O:A[E]=O}}},{key:"getRect",value:function(f){return f=f||(W.element(this.target)?this.target:null),W.string(this.target)&&(f=f||this._context.querySelector(this.target)),Gn(f)}},{key:"rectChecker",value:function(f){var w=this;return W.func(f)?(this.getRect=function(_){var T=Fe({},f.apply(w,_));return"width"in T||(T.width=T.right-T.left,T.height=T.bottom-T.top),T},this):f===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(f,w){if(xn(w)||W.object(w)){for(var _ in this.options[f]=w,this._actions.map)this.options[_][f]=w;return this}return this.options[f]}},{key:"origin",value:function(f){return this._backCompatOption("origin",f)}},{key:"deltaSource",value:function(f){return f==="page"||f==="client"?(this.options.deltaSource=f,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var f=this.target;return W.string(f)?Array.from(this._context.querySelectorAll(f)):W.func(f)&&f.getAllElements?f.getAllElements():W.element(f)?[f]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(f){return this._context===f.ownerDocument||we(this._context,f)}},{key:"testIgnoreAllow",value:function(f,w,_){return!this.testIgnore(f.ignoreFrom,w,_)&&this.testAllow(f.allowFrom,w,_)}},{key:"testAllow",value:function(f,w,_){return!f||!!W.element(_)&&(W.string(f)?Yr(_,f,w):!!W.element(f)&&we(f,_))}},{key:"testIgnore",value:function(f,w,_){return!(!f||!W.element(_))&&(W.string(f)?Yr(_,f,w):!!W.element(f)&&we(f,_))}},{key:"fire",value:function(f){return this.events.fire(f),this}},{key:"_onOff",value:function(f,w,_,T,E){W.object(w)&&!W.array(w)&&(T=_,_=null);var A=Fi(w,_,E);for(var O in A){O==="wheel"&&(O=fe.wheelEvent);for(var $=0,j=A[O];$<j.length;$++){var U=j[$];Rs(O,this._actions)?this.events[f===wi.On?"on":"off"](O,U):W.string(this.target)?this._scopeEvents[f===wi.On?"addDelegate":"removeDelegate"](this.target,this._context,O,U,T):this._scopeEvents[f===wi.On?"add":"remove"](this.target,O,U,T)}}return this}},{key:"on",value:function(f,w,_){return this._onOff(wi.On,f,w,_)}},{key:"off",value:function(f,w,_){return this._onOff(wi.Off,f,w,_)}},{key:"set",value:function(f){var w=this._defaults;for(var _ in W.object(f)||(f={}),this.options=lo(w.base),this._actions.methodDict){var T=_,E=this._actions.methodDict[T];this.options[T]={},this.setPerAction(T,Fe(Fe({},w.perAction),w.actions[T])),this[E](f[T])}for(var A in f)A!=="getRect"?W.func(this[A])&&this[A](f[A]):this.rectChecker(f.getRect);return this}},{key:"unset",value:function(){if(W.string(this.target))for(var f in this._scopeEvents.delegatedEvents)for(var w=this._scopeEvents.delegatedEvents[f],_=w.length-1;_>=0;_--){var T=w[_],E=T.selector,A=T.context,O=T.listeners;E===this.target&&A===this._context&&w.splice(_,1);for(var $=O.length-1;$>=0;$--)this._scopeEvents.removeDelegate(this.target,this._context,f,O[$][0],O[$][1])}else this._scopeEvents.remove(this.target,"all")}}]),p}(),Gd=function(){function p(f){var w=this;o(this,p),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=f,f.addListeners({"interactable:unset":function(_){var T=_.interactable,E=T.target,A=W.string(E)?w.selectorMap[E]:E[w.scope.id],O=Os(A,function($){return $===T});A.splice(O,1)}})}return c(p,[{key:"new",value:function(f,w){w=Fe(w||{},{actions:this.scope.actions});var _=new this.scope.Interactable(f,w,this.scope.document,this.scope.events);return this.scope.addDocument(_._doc),this.list.push(_),W.string(f)?(this.selectorMap[f]||(this.selectorMap[f]=[]),this.selectorMap[f].push(_)):(_.target[this.scope.id]||Object.defineProperty(f,this.scope.id,{value:[],configurable:!0}),f[this.scope.id].push(_)),this.scope.fire("interactable:new",{target:f,options:w,interactable:_,win:this.scope._win}),_}},{key:"getExisting",value:function(f,w){var _=w&&w.context||this.scope.document,T=W.string(f),E=T?this.selectorMap[f]:f[this.scope.id];if(E)return Ui(E,function(A){return A._context===_&&(T||A.inContext(f))})}},{key:"forEachMatch",value:function(f,w){for(var _=0,T=this.list;_<T.length;_++){var E=T[_],A=void 0;if((W.string(E.target)?W.element(f)&&Xe(f,E.target):f===E.target)&&E.inContext(f)&&(A=w(E)),A!==void 0)return A}}}]),p}(),jd=function(){function p(){var f=this;o(this,p),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=fe,this.defaults=lo(El),this.Eventable=Nl,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(_){var T=function E(A,O){var $=_.interactables.getExisting(A,O);return $||(($=_.interactables.new(A,O)).events.global=E.globalEvents),$};return T.getPointerAverage=cd,T.getTouchBBox=cl,T.getTouchDistance=ll,T.getTouchAngle=ul,T.getElementRect=Gn,T.getElementClientRect=br,T.matchesSelector=Xe,T.closest=Ee,T.globalEvents={},T.version="1.10.27",T.scope=_,T.use=function(E,A){return this.scope.usePlugin(E,A),this},T.isSet=function(E,A){return!!this.scope.interactables.get(E,A&&A.context)},T.on=es(function(E,A,O){if(W.string(E)&&E.search(" ")!==-1&&(E=E.trim().split(/ +/)),W.array(E)){for(var $=0,j=E;$<j.length;$++){var U=j[$];this.on(U,A,O)}return this}if(W.object(E)){for(var ee in E)this.on(ee,E[ee],A);return this}return Rs(E,this.scope.actions)?this.globalEvents[E]?this.globalEvents[E].push(A):this.globalEvents[E]=[A]:this.scope.events.add(this.scope.document,E,A,{options:O}),this},"The interact.on() method is being deprecated"),T.off=es(function(E,A,O){if(W.string(E)&&E.search(" ")!==-1&&(E=E.trim().split(/ +/)),W.array(E)){for(var $=0,j=E;$<j.length;$++){var U=j[$];this.off(U,A,O)}return this}if(W.object(E)){for(var ee in E)this.off(ee,E[ee],A);return this}var le;return Rs(E,this.scope.actions)?E in this.globalEvents&&(le=this.globalEvents[E].indexOf(A))!==-1&&this.globalEvents[E].splice(le,1):this.scope.events.remove(this.scope.document,E,A,O),this},"The interact.off() method is being deprecated"),T.debug=function(){return this.scope},T.supportsTouch=function(){return fe.supportsTouch},T.supportsPointerEvent=function(){return fe.supportsPointerEvent},T.stop=function(){for(var E=0,A=this.scope.interactions.list;E<A.length;E++)A[E].stop();return this},T.pointerMoveTolerance=function(E){return W.number(E)?(this.scope.interactions.pointerMoveTolerance=E,this):this.scope.interactions.pointerMoveTolerance},T.addDocument=function(E,A){this.scope.addDocument(E,A)},T.removeDocument=function(E){this.scope.removeDocument(E)},T}(this),this.InteractEvent=Ia,this.Interactable=void 0,this.interactables=new Gd(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(_){return f.removeDocument(_.target)};var w=this;this.Interactable=function(_){d(E,_);var T=S(E);function E(){return o(this,E),T.apply(this,arguments)}return c(E,[{key:"_defaults",get:function(){return w.defaults}},{key:"set",value:function(A){return M(h(E.prototype),"set",this).call(this,A),w.fire("interactable:set",{options:A,interactable:this}),this}},{key:"unset",value:function(){M(h(E.prototype),"unset",this).call(this);var A=w.interactables.list.indexOf(this);A<0||(w.interactables.list.splice(A,1),w.fire("interactable:unset",{interactable:this}))}}]),E}(Bd)}return c(p,[{key:"addListeners",value:function(f,w){this.listenerMaps.push({id:w,map:f})}},{key:"fire",value:function(f,w){for(var _=0,T=this.listenerMaps;_<T.length;_++){var E=T[_].map[f];if(E&&E(w,this,f)===!1)return!1}}},{key:"init",value:function(f){return this.isInitialized?this:function(w,_){return w.isInitialized=!0,W.window(_)&&G(_),H.init(_),fe.init(_),hi.init(_),w.window=_,w.document=_.document,w.usePlugin(Wd),w.usePlugin(Vd),w}(this,f)}},{key:"pluginIsInstalled",value:function(f){var w=f.id;return w?!!this._plugins.map[w]:this._plugins.list.indexOf(f)!==-1}},{key:"usePlugin",value:function(f,w){if(!this.isInitialized)return this;if(this.pluginIsInstalled(f))return this;if(f.id&&(this._plugins.map[f.id]=f),this._plugins.list.push(f),f.install&&f.install(this,w),f.listeners&&f.before){for(var _=0,T=this.listenerMaps.length,E=f.before.reduce(function(O,$){return O[$]=!0,O[Fl($)]=!0,O},{});_<T;_++){var A=this.listenerMaps[_].id;if(A&&(E[A]||E[Fl(A)]))break}this.listenerMaps.splice(_,0,{id:f.id,map:f.listeners})}else f.listeners&&this.listenerMaps.push({id:f.id,map:f.listeners});return this}},{key:"addDocument",value:function(f,w){if(this.getDocIndex(f)!==-1)return!1;var _=J(f);w=w?Fe({},w):{},this.documents.push({doc:f,options:w}),this.events.documents.push(f),f!==this.document&&this.events.add(_,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:f,window:_,scope:this,options:w})}},{key:"removeDocument",value:function(f){var w=this.getDocIndex(f),_=J(f),T=this.documents[w].options;this.events.remove(_,"unload",this.onWindowUnload),this.documents.splice(w,1),this.events.documents.splice(w,1),this.fire("scope:remove-document",{doc:f,window:_,scope:this,options:T})}},{key:"getDocIndex",value:function(f){for(var w=0;w<this.documents.length;w++)if(this.documents[w].doc===f)return w;return-1}},{key:"getDocOptions",value:function(f){var w=this.getDocIndex(f);return w===-1?null:this.documents[w].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),p}();function Fl(p){return p&&p.replace(/\/.*$/,"")}var Ul=new jd,_r=Ul.interactStatic,Hd=typeof globalThis<"u"?globalThis:window;Ul.init(Hd);var qd=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(p){var f=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(_){var T=_[0],E=_[1];return T in p||E in p}),w=function(_,T){for(var E=p.range,A=p.limits,O=A===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:A,$=p.offset,j=$===void 0?{x:0,y:0}:$,U={range:E,grid:p,x:null,y:null},ee=0;ee<f.length;ee++){var le=f[ee],be=le[0],ye=le[1],ve=Math.round((_-j.x)/p[be]),Oe=Math.round((T-j.y)/p[ye]);U[be]=Math.max(O.left,Math.min(O.right,ve*p[be]+j.x)),U[ye]=Math.max(O.top,Math.min(O.bottom,Oe*p[ye]+j.y))}return U};return w.grid=p,w.coordFields=f,w}}),Zd={id:"snappers",install:function(p){var f=p.interactStatic;f.snappers=Fe(f.snappers||{},qd),f.createSnapGrid=f.snappers.grid}},Yd=Zd,Jd={start:function(p){var f=p.state,w=p.rect,_=p.edges,T=p.pageCoords,E=f.options,A=E.ratio,O=E.enabled,$=f.options,j=$.equalDelta,U=$.modifiers;A==="preserve"&&(A=w.width/w.height),f.startCoords=Fe({},T),f.startRect=Fe({},w),f.ratio=A,f.equalDelta=j;var ee=f.linkedEdges={top:_.top||_.left&&!_.bottom,left:_.left||_.top&&!_.right,bottom:_.bottom||_.right&&!_.top,right:_.right||_.bottom&&!_.left};if(f.xIsPrimaryAxis=!(!_.left&&!_.right),f.equalDelta){var le=(ee.left?1:-1)*(ee.top?1:-1);f.edgeSign={x:le,y:le}}else f.edgeSign={x:ee.left?-1:1,y:ee.top?-1:1};if(O!==!1&&Fe(_,ee),U!=null&&U.length){var be=new Pa(p.interaction);be.copyFrom(p.interaction.modification),be.prepareStates(U),f.subModification=be,be.startAll(n({},p))}},set:function(p){var f=p.state,w=p.rect,_=p.coords,T=f.linkedEdges,E=Fe({},_),A=f.equalDelta?Vl:Xd;if(Fe(p.edges,T),A(f,f.xIsPrimaryAxis,_,w),!f.subModification)return null;var O=Fe({},w);ya(T,O,{x:_.x-E.x,y:_.y-E.y});var $=f.subModification.setAll(n(n({},p),{},{rect:O,edges:T,pageCoords:_,prevCoords:_,prevRect:O})),j=$.delta;return $.changed&&(A(f,Math.abs(j.x)>Math.abs(j.y),$.coords,$.rect),Fe(_,$.coords)),$.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Vl(p,f,w){var _=p.startCoords,T=p.edgeSign;f?w.y=_.y+(w.x-_.x)*T.y:w.x=_.x+(w.y-_.y)*T.x}function Xd(p,f,w,_){var T=p.startRect,E=p.startCoords,A=p.ratio,O=p.edgeSign;if(f){var $=_.width/A;w.y=E.y+($-T.height)*O.y}else{var j=_.height*A;w.x=E.x+(j-T.width)*O.x}}var zl=gi(Jd,"aspectRatio"),Wl=function(){};Wl._defaults={};var Us=Wl;function zi(p,f,w){return W.func(p)?Yo(p,f.interactable,f.element,[w.x,w.y,f]):Yo(p,f.interactable,f.element)}var Vs={start:function(p){var f=p.rect,w=p.startOffset,_=p.state,T=p.interaction,E=p.pageCoords,A=_.options,O=A.elementRect,$=Fe({left:0,top:0,right:0,bottom:0},A.offset||{});if(f&&O){var j=zi(A.restriction,T,E);if(j){var U=j.right-j.left-f.width,ee=j.bottom-j.top-f.height;U<0&&($.left+=U,$.right+=U),ee<0&&($.top+=ee,$.bottom+=ee)}$.left+=w.left-f.width*O.left,$.top+=w.top-f.height*O.top,$.right+=w.right-f.width*(1-O.right),$.bottom+=w.bottom-f.height*(1-O.bottom)}_.offset=$},set:function(p){var f=p.coords,w=p.interaction,_=p.state,T=_.options,E=_.offset,A=zi(T.restriction,w,f);if(A){var O=function($){return!$||"left"in $&&"top"in $||(($=Fe({},$)).left=$.x||0,$.top=$.y||0,$.right=$.right||$.left+$.width,$.bottom=$.bottom||$.top+$.height),$}(A);f.x=Math.max(Math.min(O.right-E.right,f.x),O.left+E.left),f.y=Math.max(Math.min(O.bottom-E.bottom,f.y),O.top+E.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Kd=gi(Vs,"restrict"),Bl={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Gl={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function jl(p,f){for(var w=0,_=["top","left","bottom","right"];w<_.length;w++){var T=_[w];T in p||(p[T]=f[T])}return p}var ns={noInner:Bl,noOuter:Gl,start:function(p){var f,w=p.interaction,_=p.startOffset,T=p.state,E=T.options;E&&(f=so(zi(E.offset,w,w.coords.start.page))),f=f||{x:0,y:0},T.offset={top:f.y+_.top,left:f.x+_.left,bottom:f.y-_.bottom,right:f.x-_.right}},set:function(p){var f=p.coords,w=p.edges,_=p.interaction,T=p.state,E=T.offset,A=T.options;if(w){var O=Fe({},f),$=zi(A.inner,_,O)||{},j=zi(A.outer,_,O)||{};jl($,Bl),jl(j,Gl),w.top?f.y=Math.min(Math.max(j.top+E.top,O.y),$.top+E.top):w.bottom&&(f.y=Math.max(Math.min(j.bottom+E.bottom,O.y),$.bottom+E.bottom)),w.left?f.x=Math.min(Math.max(j.left+E.left,O.x),$.left+E.left):w.right&&(f.x=Math.max(Math.min(j.right+E.right,O.x),$.right+E.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Qd=gi(ns,"restrictEdges"),ef=Fe({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(p){}},Vs.defaults),tf=gi({start:Vs.start,set:Vs.set,defaults:ef},"restrictRect"),rf={width:-1/0,height:-1/0},nf={width:1/0,height:1/0},of=gi({start:function(p){return ns.start(p)},set:function(p){var f=p.interaction,w=p.state,_=p.rect,T=p.edges,E=w.options;if(T){var A=il(zi(E.min,f,p.coords))||rf,O=il(zi(E.max,f,p.coords))||nf;w.options={endOnly:E.endOnly,inner:Fe({},ns.noInner),outer:Fe({},ns.noOuter)},T.top?(w.options.inner.top=_.bottom-A.height,w.options.outer.top=_.bottom-O.height):T.bottom&&(w.options.inner.bottom=_.top+A.height,w.options.outer.bottom=_.top+O.height),T.left?(w.options.inner.left=_.right-A.width,w.options.outer.left=_.right-O.width):T.right&&(w.options.inner.right=_.left+A.width,w.options.outer.right=_.left+O.width),ns.set(p),w.options=E}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Na={start:function(p){var f,w=p.interaction,_=p.interactable,T=p.element,E=p.rect,A=p.state,O=p.startOffset,$=A.options,j=$.offsetWithOrigin?function(le){var be=le.interaction.element,ye=so(Yo(le.state.options.origin,null,null,[be])),ve=ye||Ls(le.interactable,be,le.interaction.prepared.name);return ve}(p):{x:0,y:0};if($.offset==="startCoords")f={x:w.coords.start.page.x,y:w.coords.start.page.y};else{var U=Yo($.offset,_,T,[w]);(f=so(U)||{x:0,y:0}).x+=j.x,f.y+=j.y}var ee=$.relativePoints;A.offsets=E&&ee&&ee.length?ee.map(function(le,be){return{index:be,relativePoint:le,x:O.left-E.width*le.x+f.x,y:O.top-E.height*le.y+f.y}}):[{index:0,relativePoint:null,x:f.x,y:f.y}]},set:function(p){var f=p.interaction,w=p.coords,_=p.state,T=_.options,E=_.offsets,A=Ls(f.interactable,f.element,f.prepared.name),O=Fe({},w),$=[];T.offsetWithOrigin||(O.x-=A.x,O.y-=A.y);for(var j=0,U=E;j<U.length;j++)for(var ee=U[j],le=O.x-ee.x,be=O.y-ee.y,ye=0,ve=T.targets.length;ye<ve;ye++){var Oe=T.targets[ye],Pe=void 0;(Pe=W.func(Oe)?Oe(le,be,f._proxy,ee,ye):Oe)&&$.push({x:(W.number(Pe.x)?Pe.x:le)+ee.x,y:(W.number(Pe.y)?Pe.y:be)+ee.y,range:W.number(Pe.range)?Pe.range:T.range,source:Oe,index:ye,offset:ee})}for(var $e={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},Ke=0;Ke<$.length;Ke++){var nt=$[Ke],Be=nt.range,Qe=nt.x-O.x,Sr=nt.y-O.y,Mt=ks(Qe,Sr),Jr=Mt<=Be;Be===1/0&&$e.inRange&&$e.range!==1/0&&(Jr=!1),$e.target&&!(Jr?$e.inRange&&Be!==1/0?Mt/Be<$e.distance/$e.range:Be===1/0&&$e.range!==1/0||Mt<$e.distance:!$e.inRange&&Mt<$e.distance)||($e.target=nt,$e.distance=Mt,$e.range=Be,$e.inRange=Jr,$e.delta.x=Qe,$e.delta.y=Sr)}return $e.inRange&&(w.x=$e.target.x,w.y=$e.target.y),_.closest=$e,$e},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},sf=gi(Na,"snap"),zs={start:function(p){var f=p.state,w=p.edges,_=f.options;if(!w)return null;p.state={options:{targets:null,relativePoints:[{x:w.left?0:1,y:w.top?0:1}],offset:_.offset||"self",origin:{x:0,y:0},range:_.range}},f.targetFields=f.targetFields||[["width","height"],["x","y"]],Na.start(p),f.offsets=p.state.offsets,p.state=f},set:function(p){var f=p.interaction,w=p.state,_=p.coords,T=w.options,E=w.offsets,A={x:_.x-E[0].x,y:_.y-E[0].y};w.options=Fe({},T),w.options.targets=[];for(var O=0,$=T.targets||[];O<$.length;O++){var j=$[O],U=void 0;if(U=W.func(j)?j(A.x,A.y,f):j){for(var ee=0,le=w.targetFields;ee<le.length;ee++){var be=le[ee],ye=be[0],ve=be[1];if(ye in U||ve in U){U.x=U[ye],U.y=U[ve];break}}w.options.targets.push(U)}}var Oe=Na.set(p);return w.options=T,Oe},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},af=gi(zs,"snapSize"),Ra={aspectRatio:zl,restrictEdges:Qd,restrict:Kd,restrictRect:tf,restrictSize:of,snapEdges:gi({start:function(p){var f=p.edges;return f?(p.state.targetFields=p.state.targetFields||[[f.left?"left":"right",f.top?"top":"bottom"]],zs.start(p)):null},set:zs.set,defaults:Fe(lo(zs.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:sf,snapSize:af,spring:Us,avoid:Us,transform:Us,rubberband:Us},cf={id:"modifiers",install:function(p){var f=p.interactStatic;for(var w in p.usePlugin(Tl),p.usePlugin(Yd),f.modifiers=Ra,Ra){var _=Ra[w],T=_._defaults,E=_._methods;T._methods=E,p.defaults.perAction[w]=T}}},lf=cf,Hl=function(p){d(w,p);var f=S(w);function w(_,T,E,A,O,$){var j;if(o(this,w),Jo(v(j=f.call(this,O)),E),E!==T&&Jo(v(j),T),j.timeStamp=$,j.originalEvent=E,j.type=_,j.pointerId=Xo(T),j.pointerType=dl(T),j.target=A,j.currentTarget=null,_==="tap"){var U=O.getPointerIndex(T);j.dt=j.timeStamp-O.pointers[U].downTime;var ee=j.timeStamp-O.tapTime;j.double=!!O.prevTap&&O.prevTap.type!=="doubletap"&&O.prevTap.target===j.target&&ee<500}else _==="doubletap"&&(j.dt=T.timeStamp-O.tapTime,j.double=!0);return j}return c(w,[{key:"_subtractOrigin",value:function(_){var T=_.x,E=_.y;return this.pageX-=T,this.pageY-=E,this.clientX-=T,this.clientY-=E,this}},{key:"_addOrigin",value:function(_){var T=_.x,E=_.y;return this.pageX+=T,this.pageY+=E,this.clientX+=T,this.clientY+=E,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),w}(ao),is={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(p){p.pointerEvents=is,p.defaults.actions.pointerEvents=is.defaults,Fe(p.actions.phaselessTypes,is.types)},listeners:{"interactions:new":function(p){var f=p.interaction;f.prevTap=null,f.tapTime=0},"interactions:update-pointer":function(p){var f=p.down,w=p.pointerInfo;!f&&w.hold||(w.hold={duration:1/0,timeout:null})},"interactions:move":function(p,f){var w=p.interaction,_=p.pointer,T=p.event,E=p.eventTarget;p.duplicate||w.pointerIsDown&&!w.pointerWasMoved||(w.pointerIsDown&&Da(p),yi({interaction:w,pointer:_,event:T,eventTarget:E,type:"move"},f))},"interactions:down":function(p,f){(function(w,_){for(var T=w.interaction,E=w.pointer,A=w.event,O=w.eventTarget,$=w.pointerIndex,j=T.pointers[$].hold,U=$i(O),ee={interaction:T,pointer:E,event:A,eventTarget:O,type:"hold",targets:[],path:U,node:null},le=0;le<U.length;le++){var be=U[le];ee.node=be,_.fire("pointerEvents:collect-targets",ee)}if(ee.targets.length){for(var ye=1/0,ve=0,Oe=ee.targets;ve<Oe.length;ve++){var Pe=Oe[ve].eventable.options.holdDuration;Pe<ye&&(ye=Pe)}j.duration=ye,j.timeout=setTimeout(function(){yi({interaction:T,eventTarget:O,pointer:E,event:A,type:"hold"},_)},ye)}})(p,f),yi(p,f)},"interactions:up":function(p,f){Da(p),yi(p,f),function(w,_){var T=w.interaction,E=w.pointer,A=w.event,O=w.eventTarget;T.pointerWasMoved||yi({interaction:T,eventTarget:O,pointer:E,event:A,type:"tap"},_)}(p,f)},"interactions:cancel":function(p,f){Da(p),yi(p,f)}},PointerEvent:Hl,fire:yi,collectEventTargets:ql,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function yi(p,f){var w=p.interaction,_=p.pointer,T=p.event,E=p.eventTarget,A=p.type,O=p.targets,$=O===void 0?ql(p,f):O,j=new Hl(A,_,T,E,w,f.now());f.fire("pointerEvents:new",{pointerEvent:j});for(var U={interaction:w,pointer:_,event:T,eventTarget:E,targets:$,type:A,pointerEvent:j},ee=0;ee<$.length;ee++){var le=$[ee];for(var be in le.props||{})j[be]=le.props[be];var ye=Ls(le.eventable,le.node);if(j._subtractOrigin(ye),j.eventable=le.eventable,j.currentTarget=le.node,le.eventable.fire(j),j._addOrigin(ye),j.immediatePropagationStopped||j.propagationStopped&&ee+1<$.length&&$[ee+1].node!==j.currentTarget)break}if(f.fire("pointerEvents:fired",U),A==="tap"){var ve=j.double?yi({interaction:w,pointer:_,event:T,eventTarget:E,type:"doubletap"},f):j;w.prevTap=ve,w.tapTime=ve.timeStamp}return j}function ql(p,f){var w=p.interaction,_=p.pointer,T=p.event,E=p.eventTarget,A=p.type,O=w.getPointerIndex(_),$=w.pointers[O];if(A==="tap"&&(w.pointerWasMoved||!$||$.downTarget!==E))return[];for(var j=$i(E),U={interaction:w,pointer:_,event:T,eventTarget:E,type:A,path:j,targets:[],node:null},ee=0;ee<j.length;ee++){var le=j[ee];U.node=le,f.fire("pointerEvents:collect-targets",U)}return A==="hold"&&(U.targets=U.targets.filter(function(be){var ye,ve;return be.eventable.options.holdDuration===((ye=w.pointers[O])==null||(ve=ye.hold)==null?void 0:ve.duration)})),U.targets}function Da(p){var f=p.interaction,w=p.pointerIndex,_=f.pointers[w].hold;_&&_.timeout&&(clearTimeout(_.timeout),_.timeout=null)}var uf=Object.freeze({__proto__:null,default:is});function df(p){var f=p.interaction;f.holdIntervalHandle&&(clearInterval(f.holdIntervalHandle),f.holdIntervalHandle=null)}var ff={id:"pointer-events/holdRepeat",install:function(p){p.usePlugin(is);var f=p.pointerEvents;f.defaults.holdRepeatInterval=0,f.types.holdrepeat=p.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(p,f){return p["pointerEvents:".concat(f)]=df,p},{"pointerEvents:new":function(p){var f=p.pointerEvent;f.type==="hold"&&(f.count=(f.count||0)+1)},"pointerEvents:fired":function(p,f){var w=p.interaction,_=p.pointerEvent,T=p.eventTarget,E=p.targets;if(_.type==="hold"&&E.length){var A=E[0].eventable.options.holdRepeatInterval;A<=0||(w.holdIntervalHandle=setTimeout(function(){f.pointerEvents.fire({interaction:w,eventTarget:T,type:"hold",pointer:_,event:_},f)},A))}}})},pf=ff,mf={id:"pointer-events/interactableTargets",install:function(p){var f=p.Interactable;f.prototype.pointerEvents=function(_){return Fe(this.events.options,_),this};var w=f.prototype._backCompatOption;f.prototype._backCompatOption=function(_,T){var E=w.call(this,_,T);return E===this&&(this.events.options[_]=T),E}},listeners:{"pointerEvents:collect-targets":function(p,f){var w=p.targets,_=p.node,T=p.type,E=p.eventTarget;f.interactables.forEachMatch(_,function(A){var O=A.events,$=O.options;O.types[T]&&O.types[T].length&&A.testIgnoreAllow($,_,E)&&w.push({node:_,eventable:O,props:{interactable:A}})})},"interactable:new":function(p){var f=p.interactable;f.events.getRect=function(w){return f.getRect(w)}},"interactable:set":function(p,f){var w=p.interactable,_=p.options;Fe(w.events.options,f.pointerEvents.defaults),Fe(w.events.options,_.pointerEvents||{})}}},hf=mf,gf={id:"pointer-events",install:function(p){p.usePlugin(uf),p.usePlugin(pf),p.usePlugin(hf)}},wf=gf,yf={id:"reflow",install:function(p){var f=p.Interactable;p.actions.phases.reflow=!0,f.prototype.reflow=function(w){return function(_,T,E){for(var A=_.getAllElements(),O=E.window.Promise,$=O?[]:null,j=function(){var ee=A[U],le=_.getRect(ee);if(!le)return 1;var be,ye=Ui(E.interactions.list,function(Pe){return Pe.interacting()&&Pe.interactable===_&&Pe.element===ee&&Pe.prepared.name===T.name});if(ye)ye.move(),$&&(be=ye._reflowPromise||new O(function(Pe){ye._reflowResolve=Pe}));else{var ve=il(le),Oe=function(Pe){return{coords:Pe,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:ve.x,y:ve.y},client:{x:ve.x,y:ve.y},timeStamp:E.now()});be=function(Pe,$e,Ke,nt,Be){var Qe=Pe.interactions.new({pointerType:"reflow"}),Sr={interaction:Qe,event:Be,pointer:Be,eventTarget:Ke,phase:"reflow"};Qe.interactable=$e,Qe.element=Ke,Qe.prevEvent=Be,Qe.updatePointer(Be,Be,Ke,!0),ol(Qe.coords.delta),Ca(Qe.prepared,nt),Qe._doPhase(Sr);var Mt=Pe.window,Jr=Mt.Promise,Cn=Jr?new Jr(function(jn){Qe._reflowResolve=jn}):void 0;return Qe._reflowPromise=Cn,Qe.start(nt,$e,Ke),Qe._interacting?(Qe.move(Sr),Qe.end(Be)):(Qe.stop(),Qe._reflowResolve()),Qe.removePointer(Be,Be),Cn}(E,_,ee,T,Oe)}$&&$.push(be)},U=0;U<A.length&&!j();U++);return $&&O.all($).then(function(){return _})}(this,w,p)}},listeners:{"interactions:stop":function(p,f){var w=p.interaction;w.pointerType==="reflow"&&(w._reflowResolve&&w._reflowResolve(),function(_,T){_.splice(_.indexOf(T),1)}(f.interactions.list,w))}}},bf=yf;if(_r.use(Cl),_r.use(Al),_r.use(wf),_r.use(Fd),_r.use(lf),_r.use(Ed),_r.use(wd),_r.use(yl),_r.use(bf),_r.default=_r,i(e)==="object"&&e)try{e.exports=_r}catch{}return _r.default=_r,_r})})(sk);wb=sk.exports,qc={dialog:"dialog",panel:"panel",scrim:"scrim",container:"container",containerOpen:"container--open",containerEmbedded:"container--embedded",assistiveText:"assistive-text",openingActive:"dialog--opening-active"},ki={actionBar:"action-bar",alerts:"alerts",content:"content",contentTop:"content-top",contentBottom:"content-bottom",headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerStart:"footer-start",footerEnd:"footer-end"},Zc=25,yb=25,nk={x:0,y:0},ik={top:0,right:0,bottom:0,left:0},AY=`:host{--calcite-dialog-scrim-background-color:rgba(0, 0, 0, 0.85);pointer-events:none;inset:0px;z-index:var(--calcite-z-index-overlay);display:flex;--calcite-internal-dialog-animation-offset:20px}:host([modal]){position:absolute}.container{pointer-events:auto;position:fixed;inset:0px;z-index:var(--calcite-z-index-overlay);display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--calcite-color-text-2);opacity:0;visibility:hidden;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}:host([placement=top]) .container{align-items:flex-start;justify-content:center}:host([placement=top-start]) .container{align-items:flex-start;justify-content:flex-start}:host([placement=top-end]) .container{align-items:flex-start;justify-content:flex-end}:host([placement=bottom]) .container{align-items:flex-end;justify-content:center}:host([placement=bottom-start]) .container{align-items:flex-end;justify-content:flex-start}:host([placement=bottom-end]) .container{align-items:flex-end;justify-content:flex-end}:host(:not([modal])) .container{pointer-events:none}:host([scale=s]){--calcite-internal-dialog-content-padding:var(--calcite-dialog-content-space, var(--calcite-spacing-sm));--calcite-internal-dialog-min-size-x:198px;--calcite-internal-dialog-min-size-y:140px}:host([scale=m]){--calcite-internal-dialog-content-padding:var(--calcite-dialog-content-space, var(--calcite-spacing-md));--calcite-internal-dialog-min-size-x:288px;--calcite-internal-dialog-min-size-y:180px}:host([scale=l]){--calcite-internal-dialog-content-padding:var(--calcite-dialog-content-space, var(--calcite-spacing-lg));--calcite-internal-dialog-min-size-x:388px;--calcite-internal-dialog-min-size-y:220px}.scrim{--calcite-scrim-background:var(--calcite-dialog-scrim-background-color, var(--calcite-color-transparent-scrim));--calcite-scrim-background-color:var(
|
|
67
|
+
)}.content-top,.content-bottom{padding:var(--calcite-internal-panel-default-padding)}.header-content{flex:1 1 auto;padding-block:var(--calcite-internal-panel-header-vertical-padding);padding-inline:var(--calcite-internal-panel-default-padding)}.footer{margin-block-start:auto;display:flex;flex-direction:row;align-content:space-between;align-items:center;justify-content:center;background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size--2);line-height:1.375;border-block-start:1px solid var(--calcite-color-border-3);padding:var(--calcite-panel-footer-padding, var(--calcite-internal-panel-default-padding))}.footer-content{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:center}.footer-actions{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:space-evenly;gap:var(--calcite-internal-panel-default-padding)}.footer-start{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-start;margin-inline-end:auto;gap:var(--calcite-internal-panel-default-padding)}.footer-end{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-end;margin-inline-start:auto;gap:var(--calcite-internal-panel-default-padding)}.fab-container{position:sticky;inset-block-end:0px;z-index:var(--calcite-z-index-sticky);margin-block:0px;margin-inline:auto;display:block;padding:0.5rem;inset-inline:0;inline-size:-moz-fit-content;inline-size:fit-content}:host([hidden]){display:none}[hidden]{display:none}`,MY=EY,PY=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calcitePanelClose=Lt(this,"calcitePanelClose",6),this.calcitePanelToggle=Lt(this,"calcitePanelToggle",6),this.calcitePanelScroll=Lt(this,"calcitePanelScroll",6),this.resizeObserver=yr("resize",()=>this.resizeHandler()),this.resizeHandler=()=>{let{panelScrollEl:t}=this;if(!t||typeof t.scrollHeight!="number"||typeof t.offsetHeight!="number")return;t.scrollHeight>t.offsetHeight?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex")},this.setContainerRef=t=>{this.containerEl=t},this.panelKeyDownHandler=t=>{this.closable&&t.key==="Escape"&&!t.defaultPrevented&&(this.handleUserClose(),t.preventDefault())},this.handleUserClose=()=>{this.closed=!0,this.calcitePanelClose.emit()},this.open=()=>{this.isClosed=!1},this.close=async()=>{let t=this.beforeClose??(()=>Promise.resolve());try{await t()}catch{requestAnimationFrame(()=>{this.closed=!1});return}this.isClosed=!0},this.collapse=()=>{this.collapsed=!this.collapsed,this.calcitePanelToggle.emit()},this.panelScrollHandler=()=>{this.calcitePanelScroll.emit()},this.handleHeaderActionsStartSlotChange=t=>{this.hasStartActions=Ii(t)},this.handleHeaderActionsEndSlotChange=t=>{this.hasEndActions=Ii(t)},this.handleHeaderMenuActionsSlotChange=t=>{this.hasMenuItems=Ii(t)},this.handleActionBarSlotChange=t=>{let r=Vy(t).filter(n=>n?.matches("calcite-action-bar"));r.forEach(n=>n.layout="horizontal"),this.hasActionBar=!!r.length},this.handleHeaderContentSlotChange=t=>{this.hasHeaderContent=Ii(t)},this.handleFabSlotChange=t=>{this.hasFab=Ii(t)},this.handleFooterActionsSlotChange=t=>{this.hasFooterActions=Ii(t)},this.handleFooterEndSlotChange=t=>{this.hasFooterEndContent=Ii(t)},this.handleFooterStartSlotChange=t=>{this.hasFooterStartContent=Ii(t)},this.handleFooterSlotChange=t=>{this.hasFooterContent=Ii(t)},this.contentBottomSlotChangeHandler=t=>{this.hasContentBottom=Ii(t)},this.contentTopSlotChangeHandler=t=>{this.hasContentTop=Ii(t)},this.setPanelScrollEl=t=>{this.panelScrollEl=t,this.resizeObserver?.disconnect(),t&&(this.resizeObserver?.observe(t),this.resizeHandler())},this.handleAlertsSlotChange=t=>{Vy(t)?.map(r=>{r.nodeName==="CALCITE-ALERT"&&(r.embedded=!0)})},this.beforeClose=void 0,this.closed=!1,this.disabled=!1,this.closable=!1,this.collapsed=!1,this.collapseDirection="down",this.collapsible=!1,this.headingLevel=void 0,this.loading=!1,this.heading=void 0,this.description=void 0,this.menuFlipPlacements=void 0,this.menuOpen=!1,this.menuPlacement=VL,this.messageOverrides=void 0,this.messages=void 0,this.overlayPositioning="absolute",this.scale="m",this.isClosed=!1,this.hasStartActions=!1,this.hasEndActions=!1,this.hasMenuItems=!1,this.hasHeaderContent=!1,this.hasActionBar=!1,this.hasContentBottom=!1,this.hasContentTop=!1,this.hasFab=!1,this.hasFooterActions=!1,this.hasFooterContent=!1,this.hasFooterEndContent=!1,this.hasFooterStartContent=!1,this.defaultMessages=void 0,this.effectiveLocale="",this.showHeaderContent=!1}toggleDialog(t){t?this.close():this.open()}onMessagesChange(){}connectedCallback(){cn(this),Vn(this)}async componentWillLoad(){Nn(this),this.isClosed=this.closed,await Fn(this)}componentDidLoad(){Rn(this)}componentDidRender(){Uc(this)}disconnectedCallback(){ln(this),zn(this),this.resizeObserver?.disconnect()}effectiveLocaleChange(){Un(this,this.effectiveLocale)}async setFocus(){await Dn(this),Bp(this.containerEl)}async scrollContentTo(t){this.panelScrollEl?.scrollTo(t)}renderHeaderContent(){let{heading:t,headingLevel:r,description:n,hasHeaderContent:i}=this,o=t?X(pb,{class:fr.heading,level:r},t):null,s=n?X("span",{class:fr.description},n):null;return!i&&(o||s)?X("div",{class:fr.headerContent,key:"header-content"},o,s):null}renderActionBar(){return X("div",{class:fr.actionBarContainer,hidden:!this.hasActionBar},X("slot",{name:qt.actionBar,onSlotchange:this.handleActionBarSlotChange}))}renderHeaderSlottedContent(){return X("div",{class:fr.headerContent,hidden:!this.hasHeaderContent,key:"slotted-header-content"},X("slot",{name:qt.headerContent,onSlotchange:this.handleHeaderContentSlotChange}))}renderHeaderStartActions(){let{hasStartActions:t}=this;return X("div",{class:{[fr.headerActionsStart]:!0,[fr.headerActions]:!0},hidden:!t,key:"header-actions-start"},X("slot",{name:qt.headerActionsStart,onSlotchange:this.handleHeaderActionsStartSlotChange}))}renderHeaderActionsEnd(){let{hasEndActions:t,messages:r,closable:n,collapsed:i,collapseDirection:o,collapsible:s,hasMenuItems:c}=this,{collapse:a,expand:d,close:h}=r,g=[gb.expand,gb.collapse];o==="up"&&g.reverse();let v=s?X("calcite-action",{"aria-expanded":Ir(!i),"aria-label":a,icon:i?g[0]:g[1],id:tk.collapse,onClick:this.collapse,scale:this.scale,text:a,title:i?d:a}):null,S=n?X("calcite-action",{"aria-label":h,icon:gb.close,id:tk.close,onClick:this.handleUserClose,scale:this.scale,text:h,title:h}):null,M=X("slot",{name:qt.headerActionsEnd,onSlotchange:this.handleHeaderActionsEndSlotChange}),I=t||v||S||c;return X("div",{class:{[fr.headerActionsEnd]:!0,[fr.headerActions]:!0},hidden:!I,key:"header-actions-end"},M,this.renderMenu(),v,S)}renderMenu(){let{hasMenuItems:t,messages:r,menuOpen:n,menuFlipPlacements:i,menuPlacement:o}=this;return X("calcite-action-menu",{flipPlacements:i??["top","bottom"],hidden:!t,key:"menu",label:r.options,open:n,overlayPositioning:this.overlayPositioning,placement:o},X("calcite-action",{icon:gb.menu,scale:this.scale,slot:hb.trigger,text:r.options}),X("slot",{name:qt.headerMenuActions,onSlotchange:this.handleHeaderMenuActionsSlotChange}))}renderHeaderNode(){let{hasHeaderContent:t,hasStartActions:r,hasEndActions:n,closable:i,collapsible:o,hasMenuItems:s,hasActionBar:c}=this,a=this.renderHeaderContent(),d=t||!!a||r||n||o||i||s;return this.showHeaderContent=d,X("header",{class:fr.header,hidden:!(d||c)},X("div",{class:{[fr.headerContainer]:!0,[fr.headerContainerBorderEnd]:c},hidden:!d},this.renderHeaderStartActions(),this.renderHeaderSlottedContent(),a,this.renderHeaderActionsEnd()),this.renderActionBar(),this.renderContentTop())}renderFooterNode(){let{hasFooterEndContent:t,hasFooterStartContent:r,hasFooterContent:n,hasFooterActions:i}=this,o=r||t||n||i;return X("footer",{class:fr.footer,hidden:!o},X("div",{class:fr.footerContent,hidden:!n},X("slot",{name:qt.footer,onSlotchange:this.handleFooterSlotChange})),X("div",{class:fr.footerStart,hidden:n||!r},X("slot",{name:qt.footerStart,onSlotchange:this.handleFooterStartSlotChange})),X("div",{class:fr.footerEnd,hidden:n||!t},X("slot",{name:qt.footerEnd,onSlotchange:this.handleFooterEndSlotChange})),X("div",{class:fr.footerActions,hidden:n||!i},X("slot",{key:"footer-actions-slot",name:qt.footerActions,onSlotchange:this.handleFooterActionsSlotChange})))}renderContent(){return X("div",{class:fr.contentWrapper,hidden:this.collapsible&&this.collapsed,onScroll:this.panelScrollHandler,ref:this.setPanelScrollEl},X("slot",null),this.renderFab())}renderContentBottom(){return X("div",{class:fr.contentBottom,hidden:!this.hasContentBottom},X("slot",{name:qt.contentBottom,onSlotchange:this.contentBottomSlotChangeHandler}))}renderContentTop(){return X("div",{class:fr.contentTop,hidden:!this.hasContentTop},X("slot",{name:qt.contentTop,onSlotchange:this.contentTopSlotChangeHandler}))}renderFab(){return X("div",{class:fr.fabContainer,hidden:!this.hasFab},X("slot",{name:qt.fab,onSlotchange:this.handleFabSlotChange}))}render(){let{disabled:t,loading:r,isClosed:n}=this,i=X("article",{key:"0f439dffdca536eb6973ac386b0566091249aee3","aria-busy":Ir(r),class:fr.container,hidden:n,ref:this.setContainerRef},this.renderHeaderNode(),this.renderContent(),this.renderContentBottom(),this.renderFooterNode(),X("slot",{key:"alerts",name:qt.alerts,onSlotchange:this.handleAlertsSlotChange}));return X(Gr,{key:"6e5baec07ecb356871dea038ebc2d5ee2d8ed54f",onKeyDown:this.panelKeyDownHandler},X(Vc,{key:"924cda1799b359f1bb3fb119cebfff5a7349b72d",disabled:t},r?X("calcite-scrim",{loading:r}):null,i))}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{closed:["toggleDialog"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return MY}},[1,"calcite-panel",{beforeClose:[16],closed:[1540],disabled:[516],closable:[516],collapsed:[516],collapseDirection:[1,"collapse-direction"],collapsible:[516],headingLevel:[514,"heading-level"],loading:[516],heading:[1],description:[1],menuFlipPlacements:[16],menuOpen:[516,"menu-open"],menuPlacement:[513,"menu-placement"],messageOverrides:[1040],messages:[1040],overlayPositioning:[513,"overlay-positioning"],scale:[513],isClosed:[32],hasStartActions:[32],hasEndActions:[32],hasMenuItems:[32],hasHeaderContent:[32],hasActionBar:[32],hasContentBottom:[32],hasContentTop:[32],hasFab:[32],hasFooterActions:[32],hasFooterContent:[32],hasFooterEndContent:[32],hasFooterStartContent:[32],defaultMessages:[32],effectiveLocale:[32],showHeaderContent:[32],setFocus:[64],scrollContentTo:[64]},void 0,{closed:["toggleDialog"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}]);Ox()});var lk={};os(lk,{CalciteDialog:()=>kY,defineCustomElement:()=>OY});function ck(){if(typeof customElements>"u")return;["calcite-dialog","calcite-action","calcite-action-menu","calcite-icon","calcite-loader","calcite-panel","calcite-popover","calcite-scrim"].forEach(t=>{switch(t){case"calcite-dialog":customElements.get(t)||customElements.define(t,ak);break;case"calcite-action":customElements.get(t)||ua();break;case"calcite-action-menu":customElements.get(t)||$g();break;case"calcite-icon":customElements.get(t)||Hr();break;case"calcite-loader":customElements.get(t)||Xn();break;case"calcite-panel":customElements.get(t)||Ox();break;case"calcite-popover":customElements.get(t)||Wu();break;case"calcite-scrim":customElements.get(t)||Fg();break}})}var IY,sk,wb,qc,ki,Zc,yb,nk,ik,AY,LY,Nx,ok,ak,kY,OY,uk=V(()=>{Wt();jr();mx();ca();$o();eb();Vo();la();zc();rk();Lg();Lx();bs();Bc();mb();kx();IY=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},sk={exports:{}};(function(e,t){(function(r,n){e.exports=n()})(IY,function(){function r(p,f){var w=Object.keys(p);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(p);f&&(_=_.filter(function(T){return Object.getOwnPropertyDescriptor(p,T).enumerable})),w.push.apply(w,_)}return w}function n(p){for(var f=1;f<arguments.length;f++){var w=arguments[f]!=null?arguments[f]:{};f%2?r(Object(w),!0).forEach(function(_){a(p,_,w[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(w)):r(Object(w)).forEach(function(_){Object.defineProperty(p,_,Object.getOwnPropertyDescriptor(w,_))})}return p}function i(p){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},i(p)}function o(p,f){if(!(p instanceof f))throw new TypeError("Cannot call a class as a function")}function s(p,f){for(var w=0;w<f.length;w++){var _=f[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(p,I(_.key),_)}}function c(p,f,w){return f&&s(p.prototype,f),w&&s(p,w),Object.defineProperty(p,"prototype",{writable:!1}),p}function a(p,f,w){return(f=I(f))in p?Object.defineProperty(p,f,{value:w,enumerable:!0,configurable:!0,writable:!0}):p[f]=w,p}function d(p,f){if(typeof f!="function"&&f!==null)throw new TypeError("Super expression must either be null or a function");p.prototype=Object.create(f&&f.prototype,{constructor:{value:p,writable:!0,configurable:!0}}),Object.defineProperty(p,"prototype",{writable:!1}),f&&g(p,f)}function h(p){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(f){return f.__proto__||Object.getPrototypeOf(f)},h(p)}function g(p,f){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,_){return w.__proto__=_,w},g(p,f)}function v(p){if(p===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return p}function S(p){var f=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var w,_=h(p);if(f){var T=h(this).constructor;w=Reflect.construct(_,arguments,T)}else w=_.apply(this,arguments);return function(E,A){if(A&&(typeof A=="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(E)}(this,w)}}function M(){return M=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(p,f,w){var _=function(E,A){for(;!Object.prototype.hasOwnProperty.call(E,A)&&(E=h(E))!==null;);return E}(p,f);if(_){var T=Object.getOwnPropertyDescriptor(_,f);return T.get?T.get.call(arguments.length<3?p:w):T.value}},M.apply(this,arguments)}function I(p){var f=function(w,_){if(typeof w!="object"||w===null)return w;var T=w[Symbol.toPrimitive];if(T!==void 0){var E=T.call(w,_||"default");if(typeof E!="object")return E;throw new TypeError("@@toPrimitive must return a primitive value.")}return(_==="string"?String:Number)(w)}(p,"string");return typeof f=="symbol"?f:f+""}var R=function(p){return!(!p||!p.Window)&&p instanceof p.Window},B=void 0,F=void 0;function G(p){B=p;var f=p.document.createTextNode("");f.ownerDocument!==p.document&&typeof p.wrap=="function"&&p.wrap(f)===f&&(p=p.wrap(p)),F=p}function J(p){return R(p)?p:(p.ownerDocument||p).defaultView||F.window}typeof window<"u"&&window&&G(window);var re=function(p){return!!p&&i(p)==="object"},de=function(p){return typeof p=="function"},W={window:function(p){return p===F||R(p)},docFrag:function(p){return re(p)&&p.nodeType===11},object:re,func:de,number:function(p){return typeof p=="number"},bool:function(p){return typeof p=="boolean"},string:function(p){return typeof p=="string"},element:function(p){if(!p||i(p)!=="object")return!1;var f=J(p)||F;return/object|function/.test(typeof Element>"u"?"undefined":i(Element))?p instanceof Element||p instanceof f.Element:p.nodeType===1&&typeof p.nodeName=="string"},plainObject:function(p){return re(p)&&!!p.constructor&&/function Object\b/.test(p.constructor.toString())},array:function(p){return re(p)&&p.length!==void 0&&de(p.splice)}};function me(p){var f=p.interaction;if(f.prepared.name==="drag"){var w=f.prepared.axis;w==="x"?(f.coords.cur.page.y=f.coords.start.page.y,f.coords.cur.client.y=f.coords.start.client.y,f.coords.velocity.client.y=0,f.coords.velocity.page.y=0):w==="y"&&(f.coords.cur.page.x=f.coords.start.page.x,f.coords.cur.client.x=f.coords.start.client.x,f.coords.velocity.client.x=0,f.coords.velocity.page.x=0)}}function Le(p){var f=p.iEvent,w=p.interaction;if(w.prepared.name==="drag"){var _=w.prepared.axis;if(_==="x"||_==="y"){var T=_==="x"?"y":"x";f.page[T]=w.coords.start.page[T],f.client[T]=w.coords.start.client[T],f.delta[T]=0}}}var xe={id:"actions/drag",install:function(p){var f=p.actions,w=p.Interactable,_=p.defaults;w.prototype.draggable=xe.draggable,f.map.drag=xe,f.methodDict.drag="draggable",_.actions.drag=xe.defaults},listeners:{"interactions:before-action-move":me,"interactions:action-resume":me,"interactions:action-move":Le,"auto-start:check":function(p){var f=p.interaction,w=p.interactable,_=p.buttons,T=w.options.drag;if(T&&T.enabled&&(!f.pointerIsDown||!/mouse|pointer/.test(f.pointerType)||_&w.options.drag.mouseButtons))return p.action={name:"drag",axis:T.lockAxis==="start"?T.startAxis:T.lockAxis},!1}},draggable:function(p){return W.object(p)?(this.options.drag.enabled=p.enabled!==!1,this.setPerAction("drag",p),this.setOnEvents("drag",p),/^(xy|x|y|start)$/.test(p.lockAxis)&&(this.options.drag.lockAxis=p.lockAxis),/^(xy|x|y)$/.test(p.startAxis)&&(this.options.drag.startAxis=p.startAxis),this):W.bool(p)?(this.options.drag.enabled=p,this):this.options.drag},beforeMove:me,move:Le,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(p){return p.search("drag")===0}},ke=xe,ge={init:function(p){var f=p;ge.document=f.document,ge.DocumentFragment=f.DocumentFragment||K,ge.SVGElement=f.SVGElement||K,ge.SVGSVGElement=f.SVGSVGElement||K,ge.SVGElementInstance=f.SVGElementInstance||K,ge.Element=f.Element||K,ge.HTMLElement=f.HTMLElement||ge.Element,ge.Event=f.Event,ge.Touch=f.Touch||K,ge.PointerEvent=f.PointerEvent||f.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function K(){}var H=ge,se={init:function(p){var f=H.Element,w=p.navigator||{};se.supportsTouch="ontouchstart"in p||W.func(p.DocumentTouch)&&H.document instanceof p.DocumentTouch,se.supportsPointerEvent=w.pointerEnabled!==!1&&!!H.PointerEvent,se.isIOS=/iP(hone|od|ad)/.test(w.platform),se.isIOS7=/iP(hone|od|ad)/.test(w.platform)&&/OS 7[^\d]/.test(w.appVersion),se.isIe9=/MSIE 9/.test(w.userAgent),se.isOperaMobile=w.appName==="Opera"&&se.supportsTouch&&/Presto/.test(w.userAgent),se.prefixedMatchesSelector="matches"in f.prototype?"matches":"webkitMatchesSelector"in f.prototype?"webkitMatchesSelector":"mozMatchesSelector"in f.prototype?"mozMatchesSelector":"oMatchesSelector"in f.prototype?"oMatchesSelector":"msMatchesSelector",se.pEventTypes=se.supportsPointerEvent?H.PointerEvent===p.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,se.wheelEvent=H.document&&"onmousewheel"in H.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},fe=se;function we(p,f){if(p.contains)return p.contains(f);for(;f;){if(f===p)return!0;f=f.parentNode}return!1}function Ee(p,f){for(;W.element(p);){if(Xe(p,f))return p;p=Ne(p)}return null}function Ne(p){var f=p.parentNode;if(W.docFrag(f)){for(;(f=f.host)&&W.docFrag(f););return f}return f}function Xe(p,f){return F!==B&&(f=f.replace(/\/deep\//g," ")),p[fe.prefixedMatchesSelector](f)}var rt=function(p){return p.parentNode||p.host};function mr(p,f){for(var w,_=[],T=p;(w=rt(T))&&T!==f&&w!==T.ownerDocument;)_.unshift(T),T=w;return _}function Yr(p,f,w){for(;W.element(p);){if(Xe(p,f))return!0;if((p=Ne(p))===w)return Xe(p,f)}return!1}function Gt(p){return p.correspondingUseElement||p}function br(p){var f=p instanceof H.SVGElement?p.getBoundingClientRect():p.getClientRects()[0];return f&&{left:f.left,right:f.right,top:f.top,bottom:f.bottom,width:f.width||f.right-f.left,height:f.height||f.bottom-f.top}}function Gn(p){var f,w=br(p);if(!fe.isIOS7&&w){var _={x:(f=(f=J(p))||F).scrollX||f.document.documentElement.scrollLeft,y:f.scrollY||f.document.documentElement.scrollTop};w.left+=_.x,w.right+=_.x,w.top+=_.y,w.bottom+=_.y}return w}function $i(p){for(var f=[];p;)f.push(p),p=Ne(p);return f}function xn(p){return!!W.string(p)&&(H.document.querySelector(p),!0)}function Fe(p,f){for(var w in f)p[w]=f[w];return p}function od(p,f,w){return p==="parent"?Ne(w):p==="self"?f.getRect(w):Ee(w,p)}function Yo(p,f,w,_){var T=p;return W.string(T)?T=od(T,f,w):W.func(T)&&(T=T.apply(void 0,_)),W.element(T)&&(T=Gn(T)),T}function so(p){return p&&{x:"x"in p?p.x:p.left,y:"y"in p?p.y:p.top}}function il(p){return!p||"x"in p&&"y"in p||((p=Fe({},p)).x=p.left||0,p.y=p.top||0,p.width=p.width||(p.right||0)-p.x,p.height=p.height||(p.bottom||0)-p.y),p}function ya(p,f,w){p.left&&(f.left+=w.x),p.right&&(f.right+=w.x),p.top&&(f.top+=w.y),p.bottom&&(f.bottom+=w.y),f.width=f.right-f.left,f.height=f.bottom-f.top}function Ls(p,f,w){var _=w&&p.options[w];return so(Yo(_&&_.origin||p.options.origin,p,f,[p&&f]))||{x:0,y:0}}function Fi(p,f){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function($){return!0},_=arguments.length>3?arguments[3]:void 0;if(_=_||{},W.string(p)&&p.search(" ")!==-1&&(p=sd(p)),W.array(p))return p.forEach(function($){return Fi($,f,w,_)}),_;if(W.object(p)&&(f=p,p=""),W.func(f)&&w(p))_[p]=_[p]||[],_[p].push(f);else if(W.array(f))for(var T=0,E=f;T<E.length;T++){var A=E[T];Fi(p,A,w,_)}else if(W.object(f))for(var O in f)Fi(sd(O).map(function($){return"".concat(p).concat($)}),f[O],w,_);return _}function sd(p){return p.trim().split(/ +/)}var ks=function(p,f){return Math.sqrt(p*p+f*f)},fm=["webkit","moz"];function Jo(p,f){p.__set||(p.__set={});var w=function(T){if(fm.some(function(E){return T.indexOf(E)===0}))return 1;typeof p[T]!="function"&&T!=="__set"&&Object.defineProperty(p,T,{get:function(){return T in p.__set?p.__set[T]:p.__set[T]=f[T]},set:function(E){p.__set[T]=E},configurable:!0})};for(var _ in f)w(_);return p}function ba(p,f){p.page=p.page||{},p.page.x=f.page.x,p.page.y=f.page.y,p.client=p.client||{},p.client.x=f.client.x,p.client.y=f.client.y,p.timeStamp=f.timeStamp}function ol(p){p.page.x=0,p.page.y=0,p.client.x=0,p.client.y=0}function sl(p){return p instanceof H.Event||p instanceof H.Touch}function vr(p,f,w){return p=p||"page",(w=w||{}).x=f[p+"X"],w.y=f[p+"Y"],w}function ad(p,f){return f=f||{x:0,y:0},fe.isOperaMobile&&sl(p)?(vr("screen",p,f),f.x+=window.scrollX,f.y+=window.scrollY):vr("page",p,f),f}function Xo(p){return W.number(p.pointerId)?p.pointerId:p.identifier}function va(p,f,w){var _=f.length>1?cd(f):f[0];ad(_,p.page),function(T,E){E=E||{},fe.isOperaMobile&&sl(T)?vr("screen",T,E):vr("client",T,E)}(_,p.client),p.timeStamp=w}function al(p){var f=[];return W.array(p)?(f[0]=p[0],f[1]=p[1]):p.type==="touchend"?p.touches.length===1?(f[0]=p.touches[0],f[1]=p.changedTouches[0]):p.touches.length===0&&(f[0]=p.changedTouches[0],f[1]=p.changedTouches[1]):(f[0]=p.touches[0],f[1]=p.touches[1]),f}function cd(p){for(var f={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},w=0;w<p.length;w++){var _=p[w];for(var T in f)f[T]+=_[T]}for(var E in f)f[E]/=p.length;return f}function cl(p){if(!p.length)return null;var f=al(p),w=Math.min(f[0].pageX,f[1].pageX),_=Math.min(f[0].pageY,f[1].pageY),T=Math.max(f[0].pageX,f[1].pageX),E=Math.max(f[0].pageY,f[1].pageY);return{x:w,y:_,left:w,top:_,right:T,bottom:E,width:T-w,height:E-_}}function ll(p,f){var w=f+"X",_=f+"Y",T=al(p),E=T[0][w]-T[1][w],A=T[0][_]-T[1][_];return ks(E,A)}function ul(p,f){var w=f+"X",_=f+"Y",T=al(p),E=T[1][w]-T[0][w],A=T[1][_]-T[0][_];return 180*Math.atan2(A,E)/Math.PI}function dl(p){return W.string(p.pointerType)?p.pointerType:W.number(p.pointerType)?[void 0,void 0,"touch","pen","mouse"][p.pointerType]:/touch/.test(p.type||"")||p instanceof H.Touch?"touch":"mouse"}function ld(p){var f=W.func(p.composedPath)?p.composedPath():p.path;return[Gt(f?f[0]:p.target),Gt(p.currentTarget)]}var ao=function(){function p(f){o(this,p),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=f}return c(p,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),p}();Object.defineProperty(ao.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var ud=function(p,f){for(var w=0;w<f.length;w++){var _=f[w];p.push(_)}return p},fl=function(p){return ud([],p)},Os=function(p,f){for(var w=0;w<p.length;w++)if(f(p[w],w,p))return w;return-1},Ui=function(p,f){return p[Os(p,f)]},Ko=function(p){d(w,p);var f=S(w);function w(_,T,E){var A;o(this,w),(A=f.call(this,T._interaction)).dropzone=void 0,A.dragEvent=void 0,A.relatedTarget=void 0,A.draggable=void 0,A.propagationStopped=!1,A.immediatePropagationStopped=!1;var O=E==="dragleave"?_.prev:_.cur,$=O.element,j=O.dropzone;return A.type=E,A.target=$,A.currentTarget=$,A.dropzone=j,A.dragEvent=T,A.relatedTarget=T.target,A.draggable=T.interactable,A.timeStamp=T.timeStamp,A}return c(w,[{key:"reject",value:function(){var _=this,T=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&T.cur.dropzone===this.dropzone&&T.cur.element===this.target)if(T.prev.dropzone=this.dropzone,T.prev.element=this.target,T.rejected=!0,T.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var E=T.activeDrops,A=Os(E,function($){var j=$.dropzone,U=$.element;return j===_.dropzone&&U===_.target});T.activeDrops.splice(A,1);var O=new w(T,this.dragEvent,"dropdeactivate");O.dropzone=this.dropzone,O.target=this.target,this.dropzone.fire(O)}else this.dropzone.fire(new w(T,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),w}(ao);function co(p,f){for(var w=0,_=p.slice();w<_.length;w++){var T=_[w],E=T.dropzone,A=T.element;f.dropzone=E,f.target=A,E.fire(f),f.propagationStopped=f.immediatePropagationStopped=!1}}function pl(p,f){for(var w=function(E,A){for(var O=[],$=0,j=E.interactables.list;$<j.length;$++){var U=j[$];if(U.options.drop.enabled){var ee=U.options.drop.accept;if(!(W.element(ee)&&ee!==A||W.string(ee)&&!Xe(A,ee)||W.func(ee)&&!ee({dropzone:U,draggableElement:A})))for(var le=0,be=U.getAllElements();le<be.length;le++){var ye=be[le];ye!==A&&O.push({dropzone:U,element:ye,rect:U.getRect(ye)})}}}return O}(p,f),_=0;_<w.length;_++){var T=w[_];T.rect=T.dropzone.getRect(T.element)}return w}function dd(p,f,w){for(var _=p.dropState,T=p.interactable,E=p.element,A=[],O=0,$=_.activeDrops;O<$.length;O++){var j=$[O],U=j.dropzone,ee=j.element,le=j.rect,be=U.dropCheck(f,w,T,E,ee,le);A.push(be?ee:null)}var ye=function(ve){for(var Oe,Pe,$e,Ke=[],nt=0;nt<ve.length;nt++){var Be=ve[nt],Qe=ve[Oe];if(Be&&nt!==Oe)if(Qe){var Sr=rt(Be),Mt=rt(Qe);if(Sr!==Be.ownerDocument)if(Mt!==Be.ownerDocument)if(Sr!==Mt){Ke=Ke.length?Ke:mr(Qe);var Jr=void 0;if(Qe instanceof H.HTMLElement&&Be instanceof H.SVGElement&&!(Be instanceof H.SVGSVGElement)){if(Be===Mt)continue;Jr=Be.ownerSVGElement}else Jr=Be;for(var Cn=mr(Jr,Qe.ownerDocument),jn=0;Cn[jn]&&Cn[jn]===Ke[jn];)jn++;var Ws=[Cn[jn-1],Cn[jn],Ke[jn]];if(Ws[0])for(var dt=Ws[0].lastChild;dt;){if(dt===Ws[1]){Oe=nt,Ke=Cn;break}if(dt===Ws[2])break;dt=dt.previousSibling}}else $e=Qe,(parseInt(J(Pe=Be).getComputedStyle(Pe).zIndex,10)||0)>=(parseInt(J($e).getComputedStyle($e).zIndex,10)||0)&&(Oe=nt);else Oe=nt}else Oe=nt}return Oe}(A);return _.activeDrops[ye]||null}function ml(p,f,w){var _=p.dropState,T={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return w.type==="dragstart"&&(T.activate=new Ko(_,w,"dropactivate"),T.activate.target=null,T.activate.dropzone=null),w.type==="dragend"&&(T.deactivate=new Ko(_,w,"dropdeactivate"),T.deactivate.target=null,T.deactivate.dropzone=null),_.rejected||(_.cur.element!==_.prev.element&&(_.prev.dropzone&&(T.leave=new Ko(_,w,"dragleave"),w.dragLeave=T.leave.target=_.prev.element,w.prevDropzone=T.leave.dropzone=_.prev.dropzone),_.cur.dropzone&&(T.enter=new Ko(_,w,"dragenter"),w.dragEnter=_.cur.element,w.dropzone=_.cur.dropzone)),w.type==="dragend"&&_.cur.dropzone&&(T.drop=new Ko(_,w,"drop"),w.dropzone=_.cur.dropzone,w.relatedTarget=_.cur.element),w.type==="dragmove"&&_.cur.dropzone&&(T.move=new Ko(_,w,"dropmove"),w.dropzone=_.cur.dropzone)),T}function _a(p,f){var w=p.dropState,_=w.activeDrops,T=w.cur,E=w.prev;f.leave&&E.dropzone.fire(f.leave),f.enter&&T.dropzone.fire(f.enter),f.move&&T.dropzone.fire(f.move),f.drop&&T.dropzone.fire(f.drop),f.deactivate&&co(_,f.deactivate),w.prev.dropzone=T.dropzone,w.prev.element=T.element}function fd(p,f){var w=p.interaction,_=p.iEvent,T=p.event;if(_.type==="dragmove"||_.type==="dragend"){var E=w.dropState;f.dynamicDrop&&(E.activeDrops=pl(f,w.element));var A=_,O=dd(w,A,T);E.rejected=E.rejected&&!!O&&O.dropzone===E.cur.dropzone&&O.element===E.cur.element,E.cur.dropzone=O&&O.dropzone,E.cur.element=O&&O.element,E.events=ml(w,0,A)}}var pd={id:"actions/drop",install:function(p){var f=p.actions,w=p.interactStatic,_=p.Interactable,T=p.defaults;p.usePlugin(ke),_.prototype.dropzone=function(E){return function(A,O){if(W.object(O)){if(A.options.drop.enabled=O.enabled!==!1,O.listeners){var $=Fi(O.listeners),j=Object.keys($).reduce(function(ee,le){return ee[/^(enter|leave)/.test(le)?"drag".concat(le):/^(activate|deactivate|move)/.test(le)?"drop".concat(le):le]=$[le],ee},{}),U=A.options.drop.listeners;U&&A.off(U),A.on(j),A.options.drop.listeners=j}return W.func(O.ondrop)&&A.on("drop",O.ondrop),W.func(O.ondropactivate)&&A.on("dropactivate",O.ondropactivate),W.func(O.ondropdeactivate)&&A.on("dropdeactivate",O.ondropdeactivate),W.func(O.ondragenter)&&A.on("dragenter",O.ondragenter),W.func(O.ondragleave)&&A.on("dragleave",O.ondragleave),W.func(O.ondropmove)&&A.on("dropmove",O.ondropmove),/^(pointer|center)$/.test(O.overlap)?A.options.drop.overlap=O.overlap:W.number(O.overlap)&&(A.options.drop.overlap=Math.max(Math.min(1,O.overlap),0)),"accept"in O&&(A.options.drop.accept=O.accept),"checker"in O&&(A.options.drop.checker=O.checker),A}return W.bool(O)?(A.options.drop.enabled=O,A):A.options.drop}(this,E)},_.prototype.dropCheck=function(E,A,O,$,j,U){return function(ee,le,be,ye,ve,Oe,Pe){var $e=!1;if(!(Pe=Pe||ee.getRect(Oe)))return!!ee.options.drop.checker&&ee.options.drop.checker(le,be,$e,ee,Oe,ye,ve);var Ke=ee.options.drop.overlap;if(Ke==="pointer"){var nt=Ls(ye,ve,"drag"),Be=ad(le);Be.x+=nt.x,Be.y+=nt.y;var Qe=Be.x>Pe.left&&Be.x<Pe.right,Sr=Be.y>Pe.top&&Be.y<Pe.bottom;$e=Qe&&Sr}var Mt=ye.getRect(ve);if(Mt&&Ke==="center"){var Jr=Mt.left+Mt.width/2,Cn=Mt.top+Mt.height/2;$e=Jr>=Pe.left&&Jr<=Pe.right&&Cn>=Pe.top&&Cn<=Pe.bottom}return Mt&&W.number(Ke)&&($e=Math.max(0,Math.min(Pe.right,Mt.right)-Math.max(Pe.left,Mt.left))*Math.max(0,Math.min(Pe.bottom,Mt.bottom)-Math.max(Pe.top,Mt.top))/(Mt.width*Mt.height)>=Ke),ee.options.drop.checker&&($e=ee.options.drop.checker(le,be,$e,ee,Oe,ye,ve)),$e}(this,E,A,O,$,j,U)},w.dynamicDrop=function(E){return W.bool(E)?(p.dynamicDrop=E,w):p.dynamicDrop},Fe(f.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),f.methodDict.drop="dropzone",p.dynamicDrop=!1,T.actions.drop=pd.defaults},listeners:{"interactions:before-action-start":function(p){var f=p.interaction;f.prepared.name==="drag"&&(f.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(p,f){var w=p.interaction,_=p.iEvent;if(w.prepared.name==="drag"){var T=w.dropState;T.activeDrops=[],T.events={},T.activeDrops=pl(f,w.element),T.events=ml(w,0,_),T.events.activate&&(co(T.activeDrops,T.events.activate),f.fire("actions/drop:start",{interaction:w,dragEvent:_}))}},"interactions:action-move":fd,"interactions:after-action-move":function(p,f){var w=p.interaction,_=p.iEvent;if(w.prepared.name==="drag"){var T=w.dropState;_a(w,T.events),f.fire("actions/drop:move",{interaction:w,dragEvent:_}),T.events={}}},"interactions:action-end":function(p,f){if(p.interaction.prepared.name==="drag"){var w=p.interaction,_=p.iEvent;fd(p,f),_a(w,w.dropState.events),f.fire("actions/drop:end",{interaction:w,dragEvent:_})}},"interactions:stop":function(p){var f=p.interaction;if(f.prepared.name==="drag"){var w=f.dropState;w&&(w.activeDrops=null,w.events=null,w.cur.dropzone=null,w.cur.element=null,w.prev.dropzone=null,w.prev.element=null,w.rejected=!1)}}},getActiveDrops:pl,getDrop:dd,getDropEvents:ml,fireDropEvents:_a,filterEventType:function(p){return p.search("drag")===0||p.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},pm=pd;function Z(p){var f=p.interaction,w=p.iEvent,_=p.phase;if(f.prepared.name==="gesture"){var T=f.pointers.map(function(j){return j.pointer}),E=_==="start",A=_==="end",O=f.interactable.options.deltaSource;if(w.touches=[T[0],T[1]],E)w.distance=ll(T,O),w.box=cl(T),w.scale=1,w.ds=0,w.angle=ul(T,O),w.da=0,f.gesture.startDistance=w.distance,f.gesture.startAngle=w.angle;else if(A||f.pointers.length<2){var $=f.prevEvent;w.distance=$.distance,w.box=$.box,w.scale=$.scale,w.ds=0,w.angle=$.angle,w.da=0}else w.distance=ll(T,O),w.box=cl(T),w.scale=w.distance/f.gesture.startDistance,w.angle=ul(T,O),w.ds=w.scale-f.gesture.scale,w.da=w.angle-f.gesture.angle;f.gesture.distance=w.distance,f.gesture.angle=w.angle,W.number(w.scale)&&w.scale!==1/0&&!isNaN(w.scale)&&(f.gesture.scale=w.scale)}}var Qo={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(p){var f=p.actions,w=p.Interactable,_=p.defaults;w.prototype.gesturable=function(T){return W.object(T)?(this.options.gesture.enabled=T.enabled!==!1,this.setPerAction("gesture",T),this.setOnEvents("gesture",T),this):W.bool(T)?(this.options.gesture.enabled=T,this):this.options.gesture},f.map.gesture=Qo,f.methodDict.gesture="gesturable",_.actions.gesture=Qo.defaults},listeners:{"interactions:action-start":Z,"interactions:action-move":Z,"interactions:action-end":Z,"interactions:new":function(p){p.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(p){if(!(p.interaction.pointers.length<2)){var f=p.interactable.options.gesture;if(f&&f.enabled)return p.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(p){return p.search("gesture")===0}},md=Qo;function hd(p,f,w,_,T,E,A){if(!f)return!1;if(f===!0){var O=W.number(E.width)?E.width:E.right-E.left,$=W.number(E.height)?E.height:E.bottom-E.top;if(A=Math.min(A,Math.abs((p==="left"||p==="right"?O:$)/2)),O<0&&(p==="left"?p="right":p==="right"&&(p="left")),$<0&&(p==="top"?p="bottom":p==="bottom"&&(p="top")),p==="left"){var j=O>=0?E.left:E.right;return w.x<j+A}if(p==="top"){var U=$>=0?E.top:E.bottom;return w.y<U+A}if(p==="right")return w.x>(O>=0?E.right:E.left)-A;if(p==="bottom")return w.y>($>=0?E.bottom:E.top)-A}return!!W.element(_)&&(W.element(f)?f===_:Yr(_,f,T))}function hl(p){var f=p.iEvent,w=p.interaction;if(w.prepared.name==="resize"&&w.resizeAxes){var _=f;w.interactable.options.resize.square?(w.resizeAxes==="y"?_.delta.x=_.delta.y:_.delta.y=_.delta.x,_.axes="xy"):(_.axes=w.resizeAxes,w.resizeAxes==="x"?_.delta.y=0:w.resizeAxes==="y"&&(_.delta.x=0))}}var dn,Vi,ti={id:"actions/resize",before:["actions/drag"],install:function(p){var f=p.actions,w=p.browser,_=p.Interactable,T=p.defaults;ti.cursors=function(E){return E.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(w),ti.defaultMargin=w.supportsTouch||w.supportsPointerEvent?20:10,_.prototype.resizable=function(E){return function(A,O,$){return W.object(O)?(A.options.resize.enabled=O.enabled!==!1,A.setPerAction("resize",O),A.setOnEvents("resize",O),W.string(O.axis)&&/^x$|^y$|^xy$/.test(O.axis)?A.options.resize.axis=O.axis:O.axis===null&&(A.options.resize.axis=$.defaults.actions.resize.axis),W.bool(O.preserveAspectRatio)?A.options.resize.preserveAspectRatio=O.preserveAspectRatio:W.bool(O.square)&&(A.options.resize.square=O.square),A):W.bool(O)?(A.options.resize.enabled=O,A):A.options.resize}(this,E,p)},f.map.resize=ti,f.methodDict.resize="resizable",T.actions.resize=ti.defaults},listeners:{"interactions:new":function(p){p.interaction.resizeAxes="xy"},"interactions:action-start":function(p){(function(f){var w=f.iEvent,_=f.interaction;if(_.prepared.name==="resize"&&_.prepared.edges){var T=w,E=_.rect;_._rects={start:Fe({},E),corrected:Fe({},E),previous:Fe({},E),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},T.edges=_.prepared.edges,T.rect=_._rects.corrected,T.deltaRect=_._rects.delta}})(p),hl(p)},"interactions:action-move":function(p){(function(f){var w=f.iEvent,_=f.interaction;if(_.prepared.name==="resize"&&_.prepared.edges){var T=w,E=_.interactable.options.resize.invert,A=E==="reposition"||E==="negate",O=_.rect,$=_._rects,j=$.start,U=$.corrected,ee=$.delta,le=$.previous;if(Fe(le,U),A){if(Fe(U,O),E==="reposition"){if(U.top>U.bottom){var be=U.top;U.top=U.bottom,U.bottom=be}if(U.left>U.right){var ye=U.left;U.left=U.right,U.right=ye}}}else U.top=Math.min(O.top,j.bottom),U.bottom=Math.max(O.bottom,j.top),U.left=Math.min(O.left,j.right),U.right=Math.max(O.right,j.left);for(var ve in U.width=U.right-U.left,U.height=U.bottom-U.top,U)ee[ve]=U[ve]-le[ve];T.edges=_.prepared.edges,T.rect=U,T.deltaRect=ee}})(p),hl(p)},"interactions:action-end":function(p){var f=p.iEvent,w=p.interaction;if(w.prepared.name==="resize"&&w.prepared.edges){var _=f;_.edges=w.prepared.edges,_.rect=w._rects.corrected,_.deltaRect=w._rects.delta}},"auto-start:check":function(p){var f=p.interaction,w=p.interactable,_=p.element,T=p.rect,E=p.buttons;if(T){var A=Fe({},f.coords.cur.page),O=w.options.resize;if(O&&O.enabled&&(!f.pointerIsDown||!/mouse|pointer/.test(f.pointerType)||E&O.mouseButtons)){if(W.object(O.edges)){var $={left:!1,right:!1,top:!1,bottom:!1};for(var j in $)$[j]=hd(j,O.edges[j],A,f._latestPointer.eventTarget,_,T,O.margin||ti.defaultMargin);$.left=$.left&&!$.right,$.top=$.top&&!$.bottom,($.left||$.right||$.top||$.bottom)&&(p.action={name:"resize",edges:$})}else{var U=O.axis!=="y"&&A.x>T.right-ti.defaultMargin,ee=O.axis!=="x"&&A.y>T.bottom-ti.defaultMargin;(U||ee)&&(p.action={name:"resize",axes:(U?"x":"")+(ee?"y":"")})}return!p.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(p){var f=p.edges,w=p.axis,_=p.name,T=ti.cursors,E=null;if(w)E=T[_+w];else if(f){for(var A="",O=0,$=["top","bottom","left","right"];O<$.length;O++){var j=$[O];f[j]&&(A+=j)}E=T[A]}return E},filterEventType:function(p){return p.search("resize")===0},defaultMargin:null},gd=ti,wd={id:"actions",install:function(p){p.usePlugin(md),p.usePlugin(gd),p.usePlugin(ke),p.usePlugin(pm)}},Sa=0,hi={request:function(p){return dn(p)},cancel:function(p){return Vi(p)},init:function(p){if(dn=p.requestAnimationFrame,Vi=p.cancelAnimationFrame,!dn)for(var f=["ms","moz","webkit","o"],w=0;w<f.length;w++){var _=f[w];dn=p["".concat(_,"RequestAnimationFrame")],Vi=p["".concat(_,"CancelAnimationFrame")]||p["".concat(_,"CancelRequestAnimationFrame")]}dn=dn&&dn.bind(p),Vi=Vi&&Vi.bind(p),dn||(dn=function(T){var E=Date.now(),A=Math.max(0,16-(E-Sa)),O=p.setTimeout(function(){T(E+A)},A);return Sa=E+A,O},Vi=function(T){return clearTimeout(T)})}},je={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(p){je.isScrolling=!0,hi.cancel(je.i),p.autoScroll=je,je.interaction=p,je.prevTime=je.now(),je.i=hi.request(je.scroll)},stop:function(){je.isScrolling=!1,je.interaction&&(je.interaction.autoScroll=null),hi.cancel(je.i)},scroll:function(){var p=je.interaction,f=p.interactable,w=p.element,_=p.prepared.name,T=f.options[_].autoScroll,E=xa(T.container,f,w),A=je.now(),O=(A-je.prevTime)/1e3,$=T.speed*O;if($>=1){var j={x:je.x*$,y:je.y*$};if(j.x||j.y){var U=gl(E);W.window(E)?E.scrollBy(j.x,j.y):E&&(E.scrollLeft+=j.x,E.scrollTop+=j.y);var ee=gl(E),le={x:ee.x-U.x,y:ee.y-U.y};(le.x||le.y)&&f.fire({type:"autoscroll",target:w,interactable:f,delta:le,interaction:p,container:E})}je.prevTime=A}je.isScrolling&&(hi.cancel(je.i),je.i=hi.request(je.scroll))},check:function(p,f){var w;return(w=p.options[f].autoScroll)==null?void 0:w.enabled},onInteractionMove:function(p){var f=p.interaction,w=p.pointer;if(f.interacting()&&je.check(f.interactable,f.prepared.name))if(f.simulation)je.x=je.y=0;else{var _,T,E,A,O=f.interactable,$=f.element,j=f.prepared.name,U=O.options[j].autoScroll,ee=xa(U.container,O,$);if(W.window(ee))A=w.clientX<je.margin,_=w.clientY<je.margin,T=w.clientX>ee.innerWidth-je.margin,E=w.clientY>ee.innerHeight-je.margin;else{var le=br(ee);A=w.clientX<le.left+je.margin,_=w.clientY<le.top+je.margin,T=w.clientX>le.right-je.margin,E=w.clientY>le.bottom-je.margin}je.x=T?1:A?-1:0,je.y=E?1:_?-1:0,je.isScrolling||(je.margin=U.margin,je.speed=U.speed,je.start(f))}}};function xa(p,f,w){return(W.string(p)?od(p,f,w):p)||J(w)}function gl(p){return W.window(p)&&(p=window.document.body),{x:p.scrollLeft,y:p.scrollTop}}var wl={id:"auto-scroll",install:function(p){var f=p.defaults,w=p.actions;p.autoScroll=je,je.now=function(){return p.now()},w.phaselessTypes.autoscroll=!0,f.perAction.autoScroll=je.defaults},listeners:{"interactions:new":function(p){p.interaction.autoScroll=null},"interactions:destroy":function(p){p.interaction.autoScroll=null,je.stop(),je.interaction&&(je.interaction=null)},"interactions:stop":je.stop,"interactions:action-move":function(p){return je.onInteractionMove(p)}}},yl=wl;function es(p,f){var w=!1;return function(){return w||(F.console.warn(f),w=!0),p.apply(this,arguments)}}function Ca(p,f){return p.name=f.name,p.axis=f.axis,p.edges=f.edges,p}function yd(p){return W.bool(p)?(this.options.styleCursor=p,this):p===null?(delete this.options.styleCursor,this):this.options.styleCursor}function bd(p){return W.func(p)?(this.options.actionChecker=p,this):p===null?(delete this.options.actionChecker,this):this.options.actionChecker}var vd={id:"auto-start/interactableMethods",install:function(p){var f=p.Interactable;f.prototype.getAction=function(w,_,T,E){var A=function(O,$,j,U,ee){var le=O.getRect(U),be=$.buttons||{0:1,1:4,3:8,4:16}[$.button],ye={action:null,interactable:O,interaction:j,element:U,rect:le,buttons:be};return ee.fire("auto-start:check",ye),ye.action}(this,_,T,E,p);return this.options.actionChecker?this.options.actionChecker(w,_,A,this,E,T):A},f.prototype.ignoreFrom=es(function(w){return this._backCompatOption("ignoreFrom",w)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),f.prototype.allowFrom=es(function(w){return this._backCompatOption("allowFrom",w)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),f.prototype.actionChecker=bd,f.prototype.styleCursor=yd}};function bl(p,f,w,_,T){return f.testIgnoreAllow(f.options[p.name],w,_)&&f.options[p.name].enabled&&Ns(f,w,p,T)?p:null}function _d(p,f,w,_,T,E,A){for(var O=0,$=_.length;O<$;O++){var j=_[O],U=T[O],ee=j.getAction(f,w,p,U);if(ee){var le=bl(ee,j,U,E,A);if(le)return{action:le,interactable:j,element:U}}}return{action:null,interactable:null,element:null}}function vl(p,f,w,_,T){var E=[],A=[],O=_;function $(U){E.push(U),A.push(O)}for(;W.element(O);){E=[],A=[],T.interactables.forEachMatch(O,$);var j=_d(p,f,w,E,A,_,T);if(j.action&&!j.interactable.options[j.action.name].manualStart)return j;O=Ne(O)}return{action:null,interactable:null,element:null}}function _l(p,f,w){var _=f.action,T=f.interactable,E=f.element;_=_||{name:null},p.interactable=T,p.element=E,Ca(p.prepared,_),p.rect=T&&_.name?T.getRect(E):null,xl(p,w),w.fire("autoStart:prepared",{interaction:p})}function Ns(p,f,w,_){var T=p.options,E=T[w.name].max,A=T[w.name].maxPerElement,O=_.autoStart.maxInteractions,$=0,j=0,U=0;if(!(E&&A&&O))return!1;for(var ee=0,le=_.interactions.list;ee<le.length;ee++){var be=le[ee],ye=be.prepared.name;if(be.interacting()&&(++$>=O||be.interactable===p&&((j+=ye===w.name?1:0)>=E||be.element===f&&(U++,ye===w.name&&U>=A))))return!1}return O>0}function Sl(p,f){return W.number(p)?(f.autoStart.maxInteractions=p,this):f.autoStart.maxInteractions}function Ta(p,f,w){var _=w.autoStart.cursorElement;_&&_!==p&&(_.style.cursor=""),p.ownerDocument.documentElement.style.cursor=f,p.style.cursor=f,w.autoStart.cursorElement=f?p:null}function xl(p,f){var w=p.interactable,_=p.element,T=p.prepared;if(p.pointerType==="mouse"&&w&&w.options.styleCursor){var E="";if(T.name){var A=w.options[T.name].cursorChecker;E=W.func(A)?A(T,w,_,p._interacting):f.actions.map[T.name].getCursor(T)}Ta(p.element,E||"",f)}else f.autoStart.cursorElement&&Ta(f.autoStart.cursorElement,"",f)}var Sd={id:"auto-start/base",before:["actions"],install:function(p){var f=p.interactStatic,w=p.defaults;p.usePlugin(vd),w.base.actionChecker=null,w.base.styleCursor=!0,Fe(w.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),f.maxInteractions=function(_){return Sl(_,p)},p.autoStart={maxInteractions:1/0,withinInteractionLimit:Ns,cursorElement:null}},listeners:{"interactions:down":function(p,f){var w=p.interaction,_=p.pointer,T=p.event,E=p.eventTarget;w.interacting()||_l(w,vl(w,_,T,E,f),f)},"interactions:move":function(p,f){(function(w,_){var T=w.interaction,E=w.pointer,A=w.event,O=w.eventTarget;T.pointerType!=="mouse"||T.pointerIsDown||T.interacting()||_l(T,vl(T,E,A,O,_),_)})(p,f),function(w,_){var T=w.interaction;if(T.pointerIsDown&&!T.interacting()&&T.pointerWasMoved&&T.prepared.name){_.fire("autoStart:before-start",w);var E=T.interactable,A=T.prepared.name;A&&E&&(E.options[A].manualStart||!Ns(E,T.element,T.prepared,_)?T.stop():(T.start(T.prepared,E,T.element),xl(T,_)))}}(p,f)},"interactions:stop":function(p,f){var w=p.interaction,_=w.interactable;_&&_.options.styleCursor&&Ta(w.element,"",f)}},maxInteractions:Sl,withinInteractionLimit:Ns,validateAction:bl},Ea=Sd,xd={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(p,f){var w=p.interaction,_=p.eventTarget,T=p.dx,E=p.dy;if(w.prepared.name==="drag"){var A=Math.abs(T),O=Math.abs(E),$=w.interactable.options.drag,j=$.startAxis,U=A>O?"x":A<O?"y":"xy";if(w.prepared.axis=$.lockAxis==="start"?U[0]:$.lockAxis,U!=="xy"&&j!=="xy"&&j!==U){w.prepared.name=null;for(var ee=_,le=function(ye){if(ye!==w.interactable){var ve=w.interactable.options.drag;if(!ve.manualStart&&ye.testIgnoreAllow(ve,ee,_)){var Oe=ye.getAction(w.downPointer,w.downEvent,w,ee);if(Oe&&Oe.name==="drag"&&function(Pe,$e){if(!$e)return!1;var Ke=$e.options.drag.startAxis;return Pe==="xy"||Ke==="xy"||Ke===Pe}(U,ye)&&Ea.validateAction(Oe,ye,ee,_,f))return ye}}};W.element(ee);){var be=f.interactables.forEachMatch(ee,le);if(be){w.prepared.name="drag",w.interactable=be,w.element=ee;break}ee=Ne(ee)}}}}}};function Ma(p){var f=p.prepared&&p.prepared.name;if(!f)return null;var w=p.interactable.options;return w[f].hold||w[f].delay}var Cd={id:"auto-start/hold",install:function(p){var f=p.defaults;p.usePlugin(Ea),f.perAction.hold=0,f.perAction.delay=0},listeners:{"interactions:new":function(p){p.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(p){var f=p.interaction,w=Ma(f);w>0&&(f.autoStartHoldTimer=setTimeout(function(){f.start(f.prepared,f.interactable,f.element)},w))},"interactions:move":function(p){var f=p.interaction,w=p.duplicate;f.autoStartHoldTimer&&f.pointerWasMoved&&!w&&(clearTimeout(f.autoStartHoldTimer),f.autoStartHoldTimer=null)},"autoStart:before-start":function(p){var f=p.interaction;Ma(f)>0&&(f.prepared.name=null)}},getHoldDuration:Ma},Td=Cd,Ed={id:"auto-start",install:function(p){p.usePlugin(Ea),p.usePlugin(Td),p.usePlugin(xd)}},Md=function(p){return/^(always|never|auto)$/.test(p)?(this.options.preventDefault=p,this):W.bool(p)?(this.options.preventDefault=p?"always":"never",this):this.options.preventDefault};function Pd(p){var f=p.interaction,w=p.event;f.interactable&&f.interactable.checkAndPreventDefault(w)}var Cl={id:"core/interactablePreventDefault",install:function(p){var f=p.Interactable;f.prototype.preventDefault=Md,f.prototype.checkAndPreventDefault=function(w){return function(_,T,E){var A=_.options.preventDefault;if(A!=="never")if(A!=="always"){if(T.events.supportsPassive&&/^touch(start|move)$/.test(E.type)){var O=J(E.target).document,$=T.getDocOptions(O);if(!$||!$.events||$.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(E.type)||W.element(E.target)&&Xe(E.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||E.preventDefault()}else E.preventDefault()}(this,p,w)},p.interactions.docEvents.push({type:"dragstart",listener:function(w){for(var _=0,T=p.interactions.list;_<T.length;_++){var E=T[_];if(E.element&&(E.element===w.target||we(E.element,w.target)))return void E.interactable.checkAndPreventDefault(w)}}})},listeners:["down","move","up","cancel"].reduce(function(p,f){return p["interactions:".concat(f)]=Pd,p},{})};function Rs(p,f){if(f.phaselessTypes[p])return!0;for(var w in f.map)if(p.indexOf(w)===0&&p.substr(w.length)in f.phases)return!0;return!1}function lo(p){var f={};for(var w in p){var _=p[w];W.plainObject(_)?f[w]=lo(_):W.array(_)?f[w]=fl(_):f[w]=_}return f}var Pa=function(){function p(f){o(this,p),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=f,this.result=Ds(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return c(p,[{key:"start",value:function(f,w){var _,T,E=f.phase,A=this.interaction,O=function(j){var U=j.interactable.options[j.prepared.name],ee=U.modifiers;return ee&&ee.length?ee:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(le){var be=U[le];return be&&be.enabled&&{options:be,methods:be._methods}}).filter(function(le){return!!le})}(A);this.prepareStates(O),this.startEdges=Fe({},A.edges),this.edges=Fe({},this.startEdges),this.startOffset=(_=A.rect,T=w,_?{left:T.x-_.left,top:T.y-_.top,right:_.right-T.x,bottom:_.bottom-T.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var $=this.fillArg({phase:E,pageCoords:w,preEnd:!1});return this.result=Ds(),this.startAll($),this.result=this.setAll($)}},{key:"fillArg",value:function(f){var w=this.interaction;return f.interaction=w,f.interactable=w.interactable,f.element=w.element,f.rect||(f.rect=w.rect),f.edges||(f.edges=this.startEdges),f.startOffset=this.startOffset,f}},{key:"startAll",value:function(f){for(var w=0,_=this.states;w<_.length;w++){var T=_[w];T.methods.start&&(f.state=T,T.methods.start(f))}}},{key:"setAll",value:function(f){var w=f.phase,_=f.preEnd,T=f.skipModifiers,E=f.rect,A=f.edges;f.coords=Fe({},f.pageCoords),f.rect=Fe({},E),f.edges=Fe({},A);for(var O=T?this.states.slice(T):this.states,$=Ds(f.coords,f.rect),j=0;j<O.length;j++){var U,ee=O[j],le=ee.options,be=Fe({},f.coords),ye=null;(U=ee.methods)!=null&&U.set&&this.shouldDo(le,_,w)&&(f.state=ee,ye=ee.methods.set(f),ya(f.edges,f.rect,{x:f.coords.x-be.x,y:f.coords.y-be.y})),$.eventProps.push(ye)}Fe(this.edges,f.edges),$.delta.x=f.coords.x-f.pageCoords.x,$.delta.y=f.coords.y-f.pageCoords.y,$.rectDelta.left=f.rect.left-E.left,$.rectDelta.right=f.rect.right-E.right,$.rectDelta.top=f.rect.top-E.top,$.rectDelta.bottom=f.rect.bottom-E.bottom;var ve=this.result.coords,Oe=this.result.rect;if(ve&&Oe){var Pe=$.rect.left!==Oe.left||$.rect.right!==Oe.right||$.rect.top!==Oe.top||$.rect.bottom!==Oe.bottom;$.changed=Pe||ve.x!==$.coords.x||ve.y!==$.coords.y}return $}},{key:"applyToInteraction",value:function(f){var w=this.interaction,_=f.phase,T=w.coords.cur,E=w.coords.start,A=this.result,O=this.startDelta,$=A.delta;_==="start"&&Fe(this.startDelta,A.delta);for(var j=0,U=[[E,O],[T,$]];j<U.length;j++){var ee=U[j],le=ee[0],be=ee[1];le.page.x+=be.x,le.page.y+=be.y,le.client.x+=be.x,le.client.y+=be.y}var ye=this.result.rectDelta,ve=f.rect||w.rect;ve.left+=ye.left,ve.right+=ye.right,ve.top+=ye.top,ve.bottom+=ye.bottom,ve.width=ve.right-ve.left,ve.height=ve.bottom-ve.top}},{key:"setAndApply",value:function(f){var w=this.interaction,_=f.phase,T=f.preEnd,E=f.skipModifiers,A=this.setAll(this.fillArg({preEnd:T,phase:_,pageCoords:f.modifiedCoords||w.coords.cur.page}));if(this.result=A,!A.changed&&(!E||E<this.states.length)&&w.interacting())return!1;if(f.modifiedCoords){var O=w.coords.cur.page,$={x:f.modifiedCoords.x-O.x,y:f.modifiedCoords.y-O.y};A.coords.x+=$.x,A.coords.y+=$.y,A.delta.x+=$.x,A.delta.y+=$.y}this.applyToInteraction(f)}},{key:"beforeEnd",value:function(f){var w=f.interaction,_=f.event,T=this.states;if(T&&T.length){for(var E=!1,A=0;A<T.length;A++){var O=T[A];f.state=O;var $=O.options,j=O.methods,U=j.beforeEnd&&j.beforeEnd(f);if(U)return this.endResult=U,!1;E=E||!E&&this.shouldDo($,!0,f.phase,!0)}E&&w.move({event:_,preEnd:!0})}}},{key:"stop",value:function(f){var w=f.interaction;if(this.states&&this.states.length){var _=Fe({states:this.states,interactable:w.interactable,element:w.element,rect:null},f);this.fillArg(_);for(var T=0,E=this.states;T<E.length;T++){var A=E[T];_.state=A,A.methods.stop&&A.methods.stop(_)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(f){this.states=[];for(var w=0;w<f.length;w++){var _=f[w],T=_.options,E=_.methods,A=_.name;this.states.push({options:T,methods:E,index:w,name:A})}return this.states}},{key:"restoreInteractionCoords",value:function(f){var w=f.interaction,_=w.coords,T=w.rect,E=w.modification;if(E.result){for(var A=E.startDelta,O=E.result,$=O.delta,j=O.rectDelta,U=0,ee=[[_.start,A],[_.cur,$]];U<ee.length;U++){var le=ee[U],be=le[0],ye=le[1];be.page.x-=ye.x,be.page.y-=ye.y,be.client.x-=ye.x,be.client.y-=ye.y}T.left-=j.left,T.right-=j.right,T.top-=j.top,T.bottom-=j.bottom}}},{key:"shouldDo",value:function(f,w,_,T){return!(!f||f.enabled===!1||T&&!f.endOnly||f.endOnly&&!w||_==="start"&&!f.setStart)}},{key:"copyFrom",value:function(f){this.startOffset=f.startOffset,this.startDelta=f.startDelta,this.startEdges=f.startEdges,this.edges=f.edges,this.states=f.states.map(function(w){return lo(w)}),this.result=Ds(Fe({},f.result.coords),Fe({},f.result.rect))}},{key:"destroy",value:function(){for(var f in this)this[f]=null}}]),p}();function Ds(p,f){return{rect:f,coords:p,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function gi(p,f){var w=p.defaults,_={start:p.start,set:p.set,beforeEnd:p.beforeEnd,stop:p.stop},T=function(E){var A=E||{};for(var O in A.enabled=A.enabled!==!1,w)O in A||(A[O]=w[O]);var $={options:A,methods:_,name:f,enable:function(){return A.enabled=!0,$},disable:function(){return A.enabled=!1,$}};return $};return f&&typeof f=="string"&&(T._defaults=w,T._methods=_),T}function ts(p){var f=p.iEvent,w=p.interaction.modification.result;w&&(f.modifiers=w.eventProps)}var Id={id:"modifiers/base",before:["actions"],install:function(p){p.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(p){var f=p.interaction;f.modification=new Pa(f)},"interactions:before-action-start":function(p){var f=p.interaction,w=p.interaction.modification;w.start(p,f.coords.start.page),f.edges=w.edges,w.applyToInteraction(p)},"interactions:before-action-move":function(p){var f=p.interaction,w=f.modification,_=w.setAndApply(p);return f.edges=w.edges,_},"interactions:before-action-end":function(p){var f=p.interaction,w=f.modification,_=w.beforeEnd(p);return f.edges=w.startEdges,_},"interactions:action-start":ts,"interactions:action-move":ts,"interactions:action-end":ts,"interactions:after-action-start":function(p){return p.interaction.modification.restoreInteractionCoords(p)},"interactions:after-action-move":function(p){return p.interaction.modification.restoreInteractionCoords(p)},"interactions:stop":function(p){return p.interaction.modification.stop(p)}}},Tl=Id,El={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Ia=function(p){d(w,p);var f=S(w);function w(_,T,E,A,O,$,j){var U;o(this,w),(U=f.call(this,_)).relatedTarget=null,U.screenX=void 0,U.screenY=void 0,U.button=void 0,U.buttons=void 0,U.ctrlKey=void 0,U.shiftKey=void 0,U.altKey=void 0,U.metaKey=void 0,U.page=void 0,U.client=void 0,U.delta=void 0,U.rect=void 0,U.x0=void 0,U.y0=void 0,U.t0=void 0,U.dt=void 0,U.duration=void 0,U.clientX0=void 0,U.clientY0=void 0,U.velocity=void 0,U.speed=void 0,U.swipe=void 0,U.axes=void 0,U.preEnd=void 0,O=O||_.element;var ee=_.interactable,le=(ee&&ee.options||El).deltaSource,be=Ls(ee,O,E),ye=A==="start",ve=A==="end",Oe=ye?v(U):_.prevEvent,Pe=ye?_.coords.start:ve?{page:Oe.page,client:Oe.client,timeStamp:_.coords.cur.timeStamp}:_.coords.cur;return U.page=Fe({},Pe.page),U.client=Fe({},Pe.client),U.rect=Fe({},_.rect),U.timeStamp=Pe.timeStamp,ve||(U.page.x-=be.x,U.page.y-=be.y,U.client.x-=be.x,U.client.y-=be.y),U.ctrlKey=T.ctrlKey,U.altKey=T.altKey,U.shiftKey=T.shiftKey,U.metaKey=T.metaKey,U.button=T.button,U.buttons=T.buttons,U.target=O,U.currentTarget=O,U.preEnd=$,U.type=j||E+(A||""),U.interactable=ee,U.t0=ye?_.pointers[_.pointers.length-1].downTime:Oe.t0,U.x0=_.coords.start.page.x-be.x,U.y0=_.coords.start.page.y-be.y,U.clientX0=_.coords.start.client.x-be.x,U.clientY0=_.coords.start.client.y-be.y,U.delta=ye||ve?{x:0,y:0}:{x:U[le].x-Oe[le].x,y:U[le].y-Oe[le].y},U.dt=_.coords.delta.timeStamp,U.duration=U.timeStamp-U.t0,U.velocity=Fe({},_.coords.velocity[le]),U.speed=ks(U.velocity.x,U.velocity.y),U.swipe=ve||A==="inertiastart"?U.getSwipe():null,U}return c(w,[{key:"getSwipe",value:function(){var _=this._interaction;if(_.prevEvent.speed<600||this.timeStamp-_.prevEvent.timeStamp>150)return null;var T=180*Math.atan2(_.prevEvent.velocityY,_.prevEvent.velocityX)/Math.PI;T<0&&(T+=360);var E=112.5<=T&&T<247.5,A=202.5<=T&&T<337.5;return{up:A,down:!A&&22.5<=T&&T<157.5,left:E,right:!E&&(292.5<=T||T<67.5),angle:T,speed:_.prevEvent.speed,velocity:{x:_.prevEvent.velocityX,y:_.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),w}(ao);Object.defineProperties(Ia.prototype,{pageX:{get:function(){return this.page.x},set:function(p){this.page.x=p}},pageY:{get:function(){return this.page.y},set:function(p){this.page.y=p}},clientX:{get:function(){return this.client.x},set:function(p){this.client.x=p}},clientY:{get:function(){return this.client.y},set:function(p){this.client.y=p}},dx:{get:function(){return this.delta.x},set:function(p){this.delta.x=p}},dy:{get:function(){return this.delta.y},set:function(p){this.delta.y=p}},velocityX:{get:function(){return this.velocity.x},set:function(p){this.velocity.x=p}},velocityY:{get:function(){return this.velocity.y},set:function(p){this.velocity.y=p}}});var Ad=c(function p(f,w,_,T,E){o(this,p),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=f,this.pointer=w,this.event=_,this.downTime=T,this.downTarget=E}),Ld=function(p){return p.interactable="",p.element="",p.prepared="",p.pointerIsDown="",p.pointerWasMoved="",p._proxy="",p}({}),Ml=function(p){return p.start="",p.move="",p.end="",p.stop="",p.interacting="",p}({}),kd=0,Od=function(){function p(f){var w=this,_=f.pointerType,T=f.scopeFire;o(this,p),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=es(function(U){this.move(U)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=kd++,this._scopeFire=T,this.pointerType=_;var E=this;this._proxy={};var A=function(U){Object.defineProperty(w._proxy,U,{get:function(){return E[U]}})};for(var O in Ld)A(O);var $=function(U){Object.defineProperty(w._proxy,U,{value:function(){return E[U].apply(E,arguments)}})};for(var j in Ml)$(j);this._scopeFire("interactions:new",{interaction:this})}return c(p,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(f,w,_){var T=this.updatePointer(f,w,_,!0),E=this.pointers[T];this._scopeFire("interactions:down",{pointer:f,event:w,eventTarget:_,pointerIndex:T,pointerInfo:E,type:"down",interaction:this})}},{key:"start",value:function(f,w,_){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(f.name==="gesture"?2:1)||!w.options[f.name].enabled)&&(Ca(this.prepared,f),this.interactable=w,this.element=_,this.rect=w.getRect(_),this.edges=this.prepared.edges?Fe({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(f,w,_){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(f,w,_,!1);var T,E,A=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(T=this.coords.cur.client.x-this.coords.start.client.x,E=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=ks(T,E)>this.pointerMoveTolerance);var O,$,j,U=this.getPointerIndex(f),ee={pointer:f,pointerIndex:U,pointerInfo:this.pointers[U],event:w,type:"move",eventTarget:_,dx:T,dy:E,duplicate:A,interaction:this};A||(O=this.coords.velocity,$=this.coords.delta,j=Math.max($.timeStamp/1e3,.001),O.page.x=$.page.x/j,O.page.y=$.page.y/j,O.client.x=$.client.x/j,O.client.y=$.client.y/j,O.timeStamp=j),this._scopeFire("interactions:move",ee),A||this.simulation||(this.interacting()&&(ee.type=null,this.move(ee)),this.pointerWasMoved&&ba(this.coords.prev,this.coords.cur))}},{key:"move",value:function(f){f&&f.event||ol(this.coords.delta),(f=Fe({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},f||{})).phase="move",this._doPhase(f)}},{key:"pointerUp",value:function(f,w,_,T){var E=this.getPointerIndex(f);E===-1&&(E=this.updatePointer(f,w,_,!1));var A=/cancel$/i.test(w.type)?"cancel":"up";this._scopeFire("interactions:".concat(A),{pointer:f,pointerIndex:E,pointerInfo:this.pointers[E],event:w,eventTarget:_,type:A,curEventTarget:T,interaction:this}),this.simulation||this.end(w),this.removePointer(f,w)}},{key:"documentBlur",value:function(f){this.end(f),this._scopeFire("interactions:blur",{event:f,type:"blur",interaction:this})}},{key:"end",value:function(f){var w;this._ending=!0,f=f||this._latestPointer.event,this.interacting()&&(w=this._doPhase({event:f,interaction:this,phase:"end"})),this._ending=!1,w===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(f){var w=Xo(f);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:Os(this.pointers,function(_){return _.id===w})}},{key:"getPointerInfo",value:function(f){return this.pointers[this.getPointerIndex(f)]}},{key:"updatePointer",value:function(f,w,_,T){var E,A,O,$=Xo(f),j=this.getPointerIndex(f),U=this.pointers[j];return T=T!==!1&&(T||/(down|start)$/i.test(w.type)),U?U.pointer=f:(U=new Ad($,f,w,null,null),j=this.pointers.length,this.pointers.push(U)),va(this.coords.cur,this.pointers.map(function(ee){return ee.pointer}),this._now()),E=this.coords.delta,A=this.coords.prev,O=this.coords.cur,E.page.x=O.page.x-A.page.x,E.page.y=O.page.y-A.page.y,E.client.x=O.client.x-A.client.x,E.client.y=O.client.y-A.client.y,E.timeStamp=O.timeStamp-A.timeStamp,T&&(this.pointerIsDown=!0,U.downTime=this.coords.cur.timeStamp,U.downTarget=_,Jo(this.downPointer,f),this.interacting()||(ba(this.coords.start,this.coords.cur),ba(this.coords.prev,this.coords.cur),this.downEvent=w,this.pointerWasMoved=!1)),this._updateLatestPointer(f,w,_),this._scopeFire("interactions:update-pointer",{pointer:f,event:w,eventTarget:_,down:T,pointerInfo:U,pointerIndex:j,interaction:this}),j}},{key:"removePointer",value:function(f,w){var _=this.getPointerIndex(f);if(_!==-1){var T=this.pointers[_];this._scopeFire("interactions:remove-pointer",{pointer:f,event:w,eventTarget:null,pointerIndex:_,pointerInfo:T,interaction:this}),this.pointers.splice(_,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(f,w,_){this._latestPointer.pointer=f,this._latestPointer.event=w,this._latestPointer.eventTarget=_}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(f,w,_,T){return new Ia(this,f,this.prepared.name,w,this.element,_,T)}},{key:"_fireEvent",value:function(f){var w;(w=this.interactable)==null||w.fire(f),(!this.prevEvent||f.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=f)}},{key:"_doPhase",value:function(f){var w=f.event,_=f.phase,T=f.preEnd,E=f.type,A=this.rect;if(A&&_==="move"&&(ya(this.edges,A,this.coords.delta[this.interactable.options.deltaSource]),A.width=A.right-A.left,A.height=A.bottom-A.top),this._scopeFire("interactions:before-action-".concat(_),f)===!1)return!1;var O=f.iEvent=this._createPreparedEvent(w,_,T,E);return this._scopeFire("interactions:action-".concat(_),f),_==="start"&&(this.prevEvent=O),this._fireEvent(O),this._scopeFire("interactions:after-action-".concat(_),f),!0}},{key:"_now",value:function(){return Date.now()}}]),p}();function Pl(p){Il(p.interaction)}function Il(p){if(!function(w){return!(!w.offset.pending.x&&!w.offset.pending.y)}(p))return!1;var f=p.offset.pending;return Aa(p.coords.cur,f),Aa(p.coords.delta,f),ya(p.edges,p.rect,f),f.x=0,f.y=0,!0}function Nd(p){var f=p.x,w=p.y;this.offset.pending.x+=f,this.offset.pending.y+=w,this.offset.total.x+=f,this.offset.total.y+=w}function Aa(p,f){var w=p.page,_=p.client,T=f.x,E=f.y;w.x+=T,w.y+=E,_.x+=T,_.y+=E}Ml.offsetBy="";var Rd={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(p){p.Interaction.prototype.offsetBy=Nd},listeners:{"interactions:new":function(p){p.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(p){return function(f){f.pointerIsDown&&(Aa(f.coords.cur,f.offset.total),f.offset.pending.x=0,f.offset.pending.y=0)}(p.interaction)},"interactions:before-action-start":Pl,"interactions:before-action-move":Pl,"interactions:before-action-end":function(p){var f=p.interaction;if(Il(f))return f.move({offset:!0}),f.end(),!1},"interactions:stop":function(p){var f=p.interaction;f.offset.total.x=0,f.offset.total.y=0,f.offset.pending.x=0,f.offset.pending.y=0}}},Al=Rd,Dd=function(){function p(f){o(this,p),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=f}return c(p,[{key:"start",value:function(f){var w=this.interaction,_=$s(w);if(!_||!_.enabled)return!1;var T=w.coords.velocity.client,E=ks(T.x,T.y),A=this.modification||(this.modification=new Pa(w));if(A.copyFrom(w.modification),this.t0=w._now(),this.allowResume=_.allowResume,this.v0=E,this.currentOffset={x:0,y:0},this.startCoords=w.coords.cur.page,this.modifierArg=A.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-w.coords.cur.timeStamp<50&&E>_.minSpeed&&E>_.endSpeed)this.startInertia();else{if(A.result=A.setAll(this.modifierArg),!A.result.changed)return!1;this.startSmoothEnd()}return w.modification.result.rect=null,w.offsetBy(this.targetOffset),w._doPhase({interaction:w,event:f,phase:"inertiastart"}),w.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),w.modification.result.rect=null,this.active=!0,w.simulation=this,!0}},{key:"startInertia",value:function(){var f=this,w=this.interaction.coords.velocity.client,_=$s(this.interaction),T=_.resistance,E=-Math.log(_.endSpeed/this.v0)/T;this.targetOffset={x:(w.x-E)/T,y:(w.y-E)/T},this.te=E,this.lambda_v0=T/this.v0,this.one_ve_v0=1-_.endSpeed/this.v0;var A=this.modification,O=this.modifierArg;O.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},A.result=A.setAll(O),A.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+A.result.delta.x,y:this.targetOffset.y+A.result.delta.y}),this.onNextFrame(function(){return f.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var f=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return f.smoothEndTick()})}},{key:"onNextFrame",value:function(f){var w=this;this.timeout=hi.request(function(){w.active&&f()})}},{key:"inertiaTick",value:function(){var f,w,_,T,E,A,O,$=this,j=this.interaction,U=$s(j).resistance,ee=(j._now()-this.t0)/1e3;if(ee<this.te){var le,be=1-(Math.exp(-U*ee)-this.lambda_v0)/this.one_ve_v0;this.isModified?(f=0,w=0,_=this.targetOffset.x,T=this.targetOffset.y,E=this.modifiedOffset.x,A=this.modifiedOffset.y,le={x:Ll(O=be,f,_,E),y:Ll(O,w,T,A)}):le={x:this.targetOffset.x*be,y:this.targetOffset.y*be};var ye={x:le.x-this.currentOffset.x,y:le.y-this.currentOffset.y};this.currentOffset.x+=ye.x,this.currentOffset.y+=ye.y,j.offsetBy(ye),j.move(),this.onNextFrame(function(){return $.inertiaTick()})}else j.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var f=this,w=this.interaction,_=w._now()-this.t0,T=$s(w).smoothEndDuration;if(_<T){var E={x:kl(_,0,this.targetOffset.x,T),y:kl(_,0,this.targetOffset.y,T)},A={x:E.x-this.currentOffset.x,y:E.y-this.currentOffset.y};this.currentOffset.x+=A.x,this.currentOffset.y+=A.y,w.offsetBy(A),w.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return f.smoothEndTick()})}else w.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(f){var w=f.pointer,_=f.event,T=f.eventTarget,E=this.interaction;E.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),E.updatePointer(w,_,T,!0),E._doPhase({interaction:E,event:_,phase:"resume"}),ba(E.coords.prev,E.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,hi.cancel(this.timeout)}}]),p}();function $s(p){var f=p.interactable,w=p.prepared;return f&&f.options&&w.name&&f.options[w.name].inertia}var $d={id:"inertia",before:["modifiers","actions"],install:function(p){var f=p.defaults;p.usePlugin(Al),p.usePlugin(Tl),p.actions.phases.inertiastart=!0,p.actions.phases.resume=!0,f.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(p){var f=p.interaction;f.inertia=new Dd(f)},"interactions:before-action-end":function(p){var f=p.interaction,w=p.event;return(!f._interacting||f.simulation||!f.inertia.start(w))&&null},"interactions:down":function(p){var f=p.interaction,w=p.eventTarget,_=f.inertia;if(_.active)for(var T=w;W.element(T);){if(T===f.element){_.resume(p);break}T=Ne(T)}},"interactions:stop":function(p){var f=p.interaction.inertia;f.active&&f.stop()},"interactions:before-action-resume":function(p){var f=p.interaction.modification;f.stop(p),f.start(p,p.interaction.coords.cur.page),f.applyToInteraction(p)},"interactions:before-action-inertiastart":function(p){return p.interaction.modification.setAndApply(p)},"interactions:action-resume":ts,"interactions:action-inertiastart":ts,"interactions:after-action-inertiastart":function(p){return p.interaction.modification.restoreInteractionCoords(p)},"interactions:after-action-resume":function(p){return p.interaction.modification.restoreInteractionCoords(p)}}};function Ll(p,f,w,_){var T=1-p;return T*T*f+2*T*p*w+p*p*_}function kl(p,f,w,_){return-w*(p/=_)*(p-2)+f}var Fd=$d;function Ol(p,f){for(var w=0;w<f.length;w++){var _=f[w];if(p.immediatePropagationStopped)break;_(p)}}var Nl=function(){function p(f){o(this,p),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=Fe({},f||{})}return c(p,[{key:"fire",value:function(f){var w,_=this.global;(w=this.types[f.type])&&Ol(f,w),!f.propagationStopped&&_&&(w=_[f.type])&&Ol(f,w)}},{key:"on",value:function(f,w){var _=Fi(f,w);for(f in _)this.types[f]=ud(this.types[f]||[],_[f])}},{key:"off",value:function(f,w){var _=Fi(f,w);for(f in _){var T=this.types[f];if(T&&T.length)for(var E=0,A=_[f];E<A.length;E++){var O=A[E],$=T.indexOf(O);$!==-1&&T.splice($,1)}}}},{key:"getRect",value:function(f){return null}}]),p}(),Ud=function(){function p(f){o(this,p),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=f,Jo(this,f)}return c(p,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),p}();function uo(p){return W.object(p)?{capture:!!p.capture,passive:!!p.passive}:{capture:!!p,passive:!1}}function rs(p,f){return p===f||(typeof p=="boolean"?!!f.capture===p&&!f.passive:!!p.capture==!!f.capture&&!!p.passive==!!f.passive)}var Vd={id:"events",install:function(p){var f,w=[],_={},T=[],E={add:A,remove:O,addDelegate:function(U,ee,le,be,ye){var ve=uo(ye);if(!_[le]){_[le]=[];for(var Oe=0;Oe<T.length;Oe++){var Pe=T[Oe];A(Pe,le,$),A(Pe,le,j,!0)}}var $e=_[le],Ke=Ui($e,function(nt){return nt.selector===U&&nt.context===ee});Ke||(Ke={selector:U,context:ee,listeners:[]},$e.push(Ke)),Ke.listeners.push({func:be,options:ve})},removeDelegate:function(U,ee,le,be,ye){var ve,Oe=uo(ye),Pe=_[le],$e=!1;if(Pe)for(ve=Pe.length-1;ve>=0;ve--){var Ke=Pe[ve];if(Ke.selector===U&&Ke.context===ee){for(var nt=Ke.listeners,Be=nt.length-1;Be>=0;Be--){var Qe=nt[Be];if(Qe.func===be&&rs(Qe.options,Oe)){nt.splice(Be,1),nt.length||(Pe.splice(ve,1),O(ee,le,$),O(ee,le,j,!0)),$e=!0;break}}if($e)break}}},delegateListener:$,delegateUseCapture:j,delegatedEvents:_,documents:T,targets:w,supportsOptions:!1,supportsPassive:!1};function A(U,ee,le,be){if(U.addEventListener){var ye=uo(be),ve=Ui(w,function(Oe){return Oe.eventTarget===U});ve||(ve={eventTarget:U,events:{}},w.push(ve)),ve.events[ee]||(ve.events[ee]=[]),Ui(ve.events[ee],function(Oe){return Oe.func===le&&rs(Oe.options,ye)})||(U.addEventListener(ee,le,E.supportsOptions?ye:ye.capture),ve.events[ee].push({func:le,options:ye}))}}function O(U,ee,le,be){if(U.addEventListener&&U.removeEventListener){var ye=Os(w,function(Sr){return Sr.eventTarget===U}),ve=w[ye];if(ve&&ve.events)if(ee!=="all"){var Oe=!1,Pe=ve.events[ee];if(Pe){if(le==="all"){for(var $e=Pe.length-1;$e>=0;$e--){var Ke=Pe[$e];O(U,ee,Ke.func,Ke.options)}return}for(var nt=uo(be),Be=0;Be<Pe.length;Be++){var Qe=Pe[Be];if(Qe.func===le&&rs(Qe.options,nt)){U.removeEventListener(ee,le,E.supportsOptions?nt:nt.capture),Pe.splice(Be,1),Pe.length===0&&(delete ve.events[ee],Oe=!0);break}}}Oe&&!Object.keys(ve.events).length&&w.splice(ye,1)}else for(ee in ve.events)ve.events.hasOwnProperty(ee)&&O(U,ee,"all")}}function $(U,ee){for(var le=uo(ee),be=new Ud(U),ye=_[U.type],ve=ld(U)[0],Oe=ve;W.element(Oe);){for(var Pe=0;Pe<ye.length;Pe++){var $e=ye[Pe],Ke=$e.selector,nt=$e.context;if(Xe(Oe,Ke)&&we(nt,ve)&&we(nt,Oe)){var Be=$e.listeners;be.currentTarget=Oe;for(var Qe=0;Qe<Be.length;Qe++){var Sr=Be[Qe];rs(Sr.options,le)&&Sr.func(be)}}}Oe=Ne(Oe)}}function j(U){return $(U,!0)}return(f=p.document)==null||f.createElement("div").addEventListener("test",null,{get capture(){return E.supportsOptions=!0},get passive(){return E.supportsPassive=!0}}),p.events=E,E}},La={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(p){for(var f=0,w=La.methodOrder;f<w.length;f++){var _=w[f],T=La[_](p);if(T)return T}return null},simulationResume:function(p){var f=p.pointerType,w=p.eventType,_=p.eventTarget,T=p.scope;if(!/down|start/i.test(w))return null;for(var E=0,A=T.interactions.list;E<A.length;E++){var O=A[E],$=_;if(O.simulation&&O.simulation.allowResume&&O.pointerType===f)for(;$;){if($===O.element)return O;$=Ne($)}}return null},mouseOrPen:function(p){var f,w=p.pointerId,_=p.pointerType,T=p.eventType,E=p.scope;if(_!=="mouse"&&_!=="pen")return null;for(var A=0,O=E.interactions.list;A<O.length;A++){var $=O[A];if($.pointerType===_){if($.simulation&&!ka($,w))continue;if($.interacting())return $;f||(f=$)}}if(f)return f;for(var j=0,U=E.interactions.list;j<U.length;j++){var ee=U[j];if(!(ee.pointerType!==_||/down/i.test(T)&&ee.simulation))return ee}return null},hasPointer:function(p){for(var f=p.pointerId,w=0,_=p.scope.interactions.list;w<_.length;w++){var T=_[w];if(ka(T,f))return T}return null},idle:function(p){for(var f=p.pointerType,w=0,_=p.scope.interactions.list;w<_.length;w++){var T=_[w];if(T.pointers.length===1){var E=T.interactable;if(E&&(!E.options.gesture||!E.options.gesture.enabled))continue}else if(T.pointers.length>=2)continue;if(!T.interacting()&&f===T.pointerType)return T}return null}};function ka(p,f){return p.pointers.some(function(w){return w.id===f})}var zd=La,Fs=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Rl(p,f){return function(w){var _=f.interactions.list,T=dl(w),E=ld(w),A=E[0],O=E[1],$=[];if(/^touch/.test(w.type)){f.prevTouchTime=f.now();for(var j=0,U=w.changedTouches;j<U.length;j++){var ee=U[j],le={pointer:ee,pointerId:Xo(ee),pointerType:T,eventType:w.type,eventTarget:A,curEventTarget:O,scope:f},be=Dl(le);$.push([le.pointer,le.eventTarget,le.curEventTarget,be])}}else{var ye=!1;if(!fe.supportsPointerEvent&&/mouse/.test(w.type)){for(var ve=0;ve<_.length&&!ye;ve++)ye=_[ve].pointerType!=="mouse"&&_[ve].pointerIsDown;ye=ye||f.now()-f.prevTouchTime<500||w.timeStamp===0}if(!ye){var Oe={pointer:w,pointerId:Xo(w),pointerType:T,eventType:w.type,curEventTarget:O,eventTarget:A,scope:f},Pe=Dl(Oe);$.push([Oe.pointer,Oe.eventTarget,Oe.curEventTarget,Pe])}}for(var $e=0;$e<$.length;$e++){var Ke=$[$e],nt=Ke[0],Be=Ke[1],Qe=Ke[2];Ke[3][p](nt,w,Be,Qe)}}}function Dl(p){var f=p.pointerType,w=p.scope,_={interaction:zd.search(p),searchDetails:p};return w.fire("interactions:find",_),_.interaction||w.interactions.new({pointerType:f})}function Oa(p,f){var w=p.doc,_=p.scope,T=p.options,E=_.interactions.docEvents,A=_.events,O=A[f];for(var $ in _.browser.isIOS&&!T.events&&(T.events={passive:!1}),A.delegatedEvents)O(w,$,A.delegateListener),O(w,$,A.delegateUseCapture,!0);for(var j=T&&T.events,U=0;U<E.length;U++){var ee=E[U];O(w,ee.type,ee.listener,j)}}var $l={id:"core/interactions",install:function(p){for(var f={},w=0;w<Fs.length;w++){var _=Fs[w];f[_]=Rl(_,p)}var T,E=fe.pEventTypes;function A(){for(var O=0,$=p.interactions.list;O<$.length;O++){var j=$[O];if(j.pointerIsDown&&j.pointerType==="touch"&&!j._interacting)for(var U=function(){var be=le[ee];p.documents.some(function(ye){return we(ye.doc,be.downTarget)})||j.removePointer(be.pointer,be.event)},ee=0,le=j.pointers;ee<le.length;ee++)U()}}(T=H.PointerEvent?[{type:E.down,listener:A},{type:E.down,listener:f.pointerDown},{type:E.move,listener:f.pointerMove},{type:E.up,listener:f.pointerUp},{type:E.cancel,listener:f.pointerUp}]:[{type:"mousedown",listener:f.pointerDown},{type:"mousemove",listener:f.pointerMove},{type:"mouseup",listener:f.pointerUp},{type:"touchstart",listener:A},{type:"touchstart",listener:f.pointerDown},{type:"touchmove",listener:f.pointerMove},{type:"touchend",listener:f.pointerUp},{type:"touchcancel",listener:f.pointerUp}]).push({type:"blur",listener:function(O){for(var $=0,j=p.interactions.list;$<j.length;$++)j[$].documentBlur(O)}}),p.prevTouchTime=0,p.Interaction=function(O){d(j,O);var $=S(j);function j(){return o(this,j),$.apply(this,arguments)}return c(j,[{key:"pointerMoveTolerance",get:function(){return p.interactions.pointerMoveTolerance},set:function(U){p.interactions.pointerMoveTolerance=U}},{key:"_now",value:function(){return p.now()}}]),j}(Od),p.interactions={list:[],new:function(O){O.scopeFire=function(j,U){return p.fire(j,U)};var $=new p.Interaction(O);return p.interactions.list.push($),$},listeners:f,docEvents:T,pointerMoveTolerance:1},p.usePlugin(Cl)},listeners:{"scope:add-document":function(p){return Oa(p,"add")},"scope:remove-document":function(p){return Oa(p,"remove")},"interactable:unset":function(p,f){for(var w=p.interactable,_=f.interactions.list.length-1;_>=0;_--){var T=f.interactions.list[_];T.interactable===w&&(T.stop(),f.fire("interactions:destroy",{interaction:T}),T.destroy(),f.interactions.list.length>2&&f.interactions.list.splice(_,1))}}},onDocSignal:Oa,doOnInteractions:Rl,methodNames:Fs},Wd=$l,wi=function(p){return p[p.On=0]="On",p[p.Off=1]="Off",p}(wi||{}),Bd=function(){function p(f,w,_,T){o(this,p),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Nl,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=w.actions,this.target=f,this._context=w.context||_,this._win=J(xn(f)?this._context:f),this._doc=this._win.document,this._scopeEvents=T,this.set(w)}return c(p,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(f,w){return W.func(w.onstart)&&this.on("".concat(f,"start"),w.onstart),W.func(w.onmove)&&this.on("".concat(f,"move"),w.onmove),W.func(w.onend)&&this.on("".concat(f,"end"),w.onend),W.func(w.oninertiastart)&&this.on("".concat(f,"inertiastart"),w.oninertiastart),this}},{key:"updatePerActionListeners",value:function(f,w,_){var T,E=this,A=(T=this._actions.map[f])==null?void 0:T.filterEventType,O=function($){return(A==null||A($))&&Rs($,E._actions)};(W.array(w)||W.object(w))&&this._onOff(wi.Off,f,w,void 0,O),(W.array(_)||W.object(_))&&this._onOff(wi.On,f,_,void 0,O)}},{key:"setPerAction",value:function(f,w){var _=this._defaults;for(var T in w){var E=T,A=this.options[f],O=w[E];E==="listeners"&&this.updatePerActionListeners(f,A.listeners,O),W.array(O)?A[E]=fl(O):W.plainObject(O)?(A[E]=Fe(A[E]||{},lo(O)),W.object(_.perAction[E])&&"enabled"in _.perAction[E]&&(A[E].enabled=O.enabled!==!1)):W.bool(O)&&W.object(_.perAction[E])?A[E].enabled=O:A[E]=O}}},{key:"getRect",value:function(f){return f=f||(W.element(this.target)?this.target:null),W.string(this.target)&&(f=f||this._context.querySelector(this.target)),Gn(f)}},{key:"rectChecker",value:function(f){var w=this;return W.func(f)?(this.getRect=function(_){var T=Fe({},f.apply(w,_));return"width"in T||(T.width=T.right-T.left,T.height=T.bottom-T.top),T},this):f===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(f,w){if(xn(w)||W.object(w)){for(var _ in this.options[f]=w,this._actions.map)this.options[_][f]=w;return this}return this.options[f]}},{key:"origin",value:function(f){return this._backCompatOption("origin",f)}},{key:"deltaSource",value:function(f){return f==="page"||f==="client"?(this.options.deltaSource=f,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var f=this.target;return W.string(f)?Array.from(this._context.querySelectorAll(f)):W.func(f)&&f.getAllElements?f.getAllElements():W.element(f)?[f]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(f){return this._context===f.ownerDocument||we(this._context,f)}},{key:"testIgnoreAllow",value:function(f,w,_){return!this.testIgnore(f.ignoreFrom,w,_)&&this.testAllow(f.allowFrom,w,_)}},{key:"testAllow",value:function(f,w,_){return!f||!!W.element(_)&&(W.string(f)?Yr(_,f,w):!!W.element(f)&&we(f,_))}},{key:"testIgnore",value:function(f,w,_){return!(!f||!W.element(_))&&(W.string(f)?Yr(_,f,w):!!W.element(f)&&we(f,_))}},{key:"fire",value:function(f){return this.events.fire(f),this}},{key:"_onOff",value:function(f,w,_,T,E){W.object(w)&&!W.array(w)&&(T=_,_=null);var A=Fi(w,_,E);for(var O in A){O==="wheel"&&(O=fe.wheelEvent);for(var $=0,j=A[O];$<j.length;$++){var U=j[$];Rs(O,this._actions)?this.events[f===wi.On?"on":"off"](O,U):W.string(this.target)?this._scopeEvents[f===wi.On?"addDelegate":"removeDelegate"](this.target,this._context,O,U,T):this._scopeEvents[f===wi.On?"add":"remove"](this.target,O,U,T)}}return this}},{key:"on",value:function(f,w,_){return this._onOff(wi.On,f,w,_)}},{key:"off",value:function(f,w,_){return this._onOff(wi.Off,f,w,_)}},{key:"set",value:function(f){var w=this._defaults;for(var _ in W.object(f)||(f={}),this.options=lo(w.base),this._actions.methodDict){var T=_,E=this._actions.methodDict[T];this.options[T]={},this.setPerAction(T,Fe(Fe({},w.perAction),w.actions[T])),this[E](f[T])}for(var A in f)A!=="getRect"?W.func(this[A])&&this[A](f[A]):this.rectChecker(f.getRect);return this}},{key:"unset",value:function(){if(W.string(this.target))for(var f in this._scopeEvents.delegatedEvents)for(var w=this._scopeEvents.delegatedEvents[f],_=w.length-1;_>=0;_--){var T=w[_],E=T.selector,A=T.context,O=T.listeners;E===this.target&&A===this._context&&w.splice(_,1);for(var $=O.length-1;$>=0;$--)this._scopeEvents.removeDelegate(this.target,this._context,f,O[$][0],O[$][1])}else this._scopeEvents.remove(this.target,"all")}}]),p}(),Gd=function(){function p(f){var w=this;o(this,p),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=f,f.addListeners({"interactable:unset":function(_){var T=_.interactable,E=T.target,A=W.string(E)?w.selectorMap[E]:E[w.scope.id],O=Os(A,function($){return $===T});A.splice(O,1)}})}return c(p,[{key:"new",value:function(f,w){w=Fe(w||{},{actions:this.scope.actions});var _=new this.scope.Interactable(f,w,this.scope.document,this.scope.events);return this.scope.addDocument(_._doc),this.list.push(_),W.string(f)?(this.selectorMap[f]||(this.selectorMap[f]=[]),this.selectorMap[f].push(_)):(_.target[this.scope.id]||Object.defineProperty(f,this.scope.id,{value:[],configurable:!0}),f[this.scope.id].push(_)),this.scope.fire("interactable:new",{target:f,options:w,interactable:_,win:this.scope._win}),_}},{key:"getExisting",value:function(f,w){var _=w&&w.context||this.scope.document,T=W.string(f),E=T?this.selectorMap[f]:f[this.scope.id];if(E)return Ui(E,function(A){return A._context===_&&(T||A.inContext(f))})}},{key:"forEachMatch",value:function(f,w){for(var _=0,T=this.list;_<T.length;_++){var E=T[_],A=void 0;if((W.string(E.target)?W.element(f)&&Xe(f,E.target):f===E.target)&&E.inContext(f)&&(A=w(E)),A!==void 0)return A}}}]),p}(),jd=function(){function p(){var f=this;o(this,p),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=fe,this.defaults=lo(El),this.Eventable=Nl,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(_){var T=function E(A,O){var $=_.interactables.getExisting(A,O);return $||(($=_.interactables.new(A,O)).events.global=E.globalEvents),$};return T.getPointerAverage=cd,T.getTouchBBox=cl,T.getTouchDistance=ll,T.getTouchAngle=ul,T.getElementRect=Gn,T.getElementClientRect=br,T.matchesSelector=Xe,T.closest=Ee,T.globalEvents={},T.version="1.10.27",T.scope=_,T.use=function(E,A){return this.scope.usePlugin(E,A),this},T.isSet=function(E,A){return!!this.scope.interactables.get(E,A&&A.context)},T.on=es(function(E,A,O){if(W.string(E)&&E.search(" ")!==-1&&(E=E.trim().split(/ +/)),W.array(E)){for(var $=0,j=E;$<j.length;$++){var U=j[$];this.on(U,A,O)}return this}if(W.object(E)){for(var ee in E)this.on(ee,E[ee],A);return this}return Rs(E,this.scope.actions)?this.globalEvents[E]?this.globalEvents[E].push(A):this.globalEvents[E]=[A]:this.scope.events.add(this.scope.document,E,A,{options:O}),this},"The interact.on() method is being deprecated"),T.off=es(function(E,A,O){if(W.string(E)&&E.search(" ")!==-1&&(E=E.trim().split(/ +/)),W.array(E)){for(var $=0,j=E;$<j.length;$++){var U=j[$];this.off(U,A,O)}return this}if(W.object(E)){for(var ee in E)this.off(ee,E[ee],A);return this}var le;return Rs(E,this.scope.actions)?E in this.globalEvents&&(le=this.globalEvents[E].indexOf(A))!==-1&&this.globalEvents[E].splice(le,1):this.scope.events.remove(this.scope.document,E,A,O),this},"The interact.off() method is being deprecated"),T.debug=function(){return this.scope},T.supportsTouch=function(){return fe.supportsTouch},T.supportsPointerEvent=function(){return fe.supportsPointerEvent},T.stop=function(){for(var E=0,A=this.scope.interactions.list;E<A.length;E++)A[E].stop();return this},T.pointerMoveTolerance=function(E){return W.number(E)?(this.scope.interactions.pointerMoveTolerance=E,this):this.scope.interactions.pointerMoveTolerance},T.addDocument=function(E,A){this.scope.addDocument(E,A)},T.removeDocument=function(E){this.scope.removeDocument(E)},T}(this),this.InteractEvent=Ia,this.Interactable=void 0,this.interactables=new Gd(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(_){return f.removeDocument(_.target)};var w=this;this.Interactable=function(_){d(E,_);var T=S(E);function E(){return o(this,E),T.apply(this,arguments)}return c(E,[{key:"_defaults",get:function(){return w.defaults}},{key:"set",value:function(A){return M(h(E.prototype),"set",this).call(this,A),w.fire("interactable:set",{options:A,interactable:this}),this}},{key:"unset",value:function(){M(h(E.prototype),"unset",this).call(this);var A=w.interactables.list.indexOf(this);A<0||(w.interactables.list.splice(A,1),w.fire("interactable:unset",{interactable:this}))}}]),E}(Bd)}return c(p,[{key:"addListeners",value:function(f,w){this.listenerMaps.push({id:w,map:f})}},{key:"fire",value:function(f,w){for(var _=0,T=this.listenerMaps;_<T.length;_++){var E=T[_].map[f];if(E&&E(w,this,f)===!1)return!1}}},{key:"init",value:function(f){return this.isInitialized?this:function(w,_){return w.isInitialized=!0,W.window(_)&&G(_),H.init(_),fe.init(_),hi.init(_),w.window=_,w.document=_.document,w.usePlugin(Wd),w.usePlugin(Vd),w}(this,f)}},{key:"pluginIsInstalled",value:function(f){var w=f.id;return w?!!this._plugins.map[w]:this._plugins.list.indexOf(f)!==-1}},{key:"usePlugin",value:function(f,w){if(!this.isInitialized)return this;if(this.pluginIsInstalled(f))return this;if(f.id&&(this._plugins.map[f.id]=f),this._plugins.list.push(f),f.install&&f.install(this,w),f.listeners&&f.before){for(var _=0,T=this.listenerMaps.length,E=f.before.reduce(function(O,$){return O[$]=!0,O[Fl($)]=!0,O},{});_<T;_++){var A=this.listenerMaps[_].id;if(A&&(E[A]||E[Fl(A)]))break}this.listenerMaps.splice(_,0,{id:f.id,map:f.listeners})}else f.listeners&&this.listenerMaps.push({id:f.id,map:f.listeners});return this}},{key:"addDocument",value:function(f,w){if(this.getDocIndex(f)!==-1)return!1;var _=J(f);w=w?Fe({},w):{},this.documents.push({doc:f,options:w}),this.events.documents.push(f),f!==this.document&&this.events.add(_,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:f,window:_,scope:this,options:w})}},{key:"removeDocument",value:function(f){var w=this.getDocIndex(f),_=J(f),T=this.documents[w].options;this.events.remove(_,"unload",this.onWindowUnload),this.documents.splice(w,1),this.events.documents.splice(w,1),this.fire("scope:remove-document",{doc:f,window:_,scope:this,options:T})}},{key:"getDocIndex",value:function(f){for(var w=0;w<this.documents.length;w++)if(this.documents[w].doc===f)return w;return-1}},{key:"getDocOptions",value:function(f){var w=this.getDocIndex(f);return w===-1?null:this.documents[w].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),p}();function Fl(p){return p&&p.replace(/\/.*$/,"")}var Ul=new jd,_r=Ul.interactStatic,Hd=typeof globalThis<"u"?globalThis:window;Ul.init(Hd);var qd=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(p){var f=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(_){var T=_[0],E=_[1];return T in p||E in p}),w=function(_,T){for(var E=p.range,A=p.limits,O=A===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:A,$=p.offset,j=$===void 0?{x:0,y:0}:$,U={range:E,grid:p,x:null,y:null},ee=0;ee<f.length;ee++){var le=f[ee],be=le[0],ye=le[1],ve=Math.round((_-j.x)/p[be]),Oe=Math.round((T-j.y)/p[ye]);U[be]=Math.max(O.left,Math.min(O.right,ve*p[be]+j.x)),U[ye]=Math.max(O.top,Math.min(O.bottom,Oe*p[ye]+j.y))}return U};return w.grid=p,w.coordFields=f,w}}),Zd={id:"snappers",install:function(p){var f=p.interactStatic;f.snappers=Fe(f.snappers||{},qd),f.createSnapGrid=f.snappers.grid}},Yd=Zd,Jd={start:function(p){var f=p.state,w=p.rect,_=p.edges,T=p.pageCoords,E=f.options,A=E.ratio,O=E.enabled,$=f.options,j=$.equalDelta,U=$.modifiers;A==="preserve"&&(A=w.width/w.height),f.startCoords=Fe({},T),f.startRect=Fe({},w),f.ratio=A,f.equalDelta=j;var ee=f.linkedEdges={top:_.top||_.left&&!_.bottom,left:_.left||_.top&&!_.right,bottom:_.bottom||_.right&&!_.top,right:_.right||_.bottom&&!_.left};if(f.xIsPrimaryAxis=!(!_.left&&!_.right),f.equalDelta){var le=(ee.left?1:-1)*(ee.top?1:-1);f.edgeSign={x:le,y:le}}else f.edgeSign={x:ee.left?-1:1,y:ee.top?-1:1};if(O!==!1&&Fe(_,ee),U!=null&&U.length){var be=new Pa(p.interaction);be.copyFrom(p.interaction.modification),be.prepareStates(U),f.subModification=be,be.startAll(n({},p))}},set:function(p){var f=p.state,w=p.rect,_=p.coords,T=f.linkedEdges,E=Fe({},_),A=f.equalDelta?Vl:Xd;if(Fe(p.edges,T),A(f,f.xIsPrimaryAxis,_,w),!f.subModification)return null;var O=Fe({},w);ya(T,O,{x:_.x-E.x,y:_.y-E.y});var $=f.subModification.setAll(n(n({},p),{},{rect:O,edges:T,pageCoords:_,prevCoords:_,prevRect:O})),j=$.delta;return $.changed&&(A(f,Math.abs(j.x)>Math.abs(j.y),$.coords,$.rect),Fe(_,$.coords)),$.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Vl(p,f,w){var _=p.startCoords,T=p.edgeSign;f?w.y=_.y+(w.x-_.x)*T.y:w.x=_.x+(w.y-_.y)*T.x}function Xd(p,f,w,_){var T=p.startRect,E=p.startCoords,A=p.ratio,O=p.edgeSign;if(f){var $=_.width/A;w.y=E.y+($-T.height)*O.y}else{var j=_.height*A;w.x=E.x+(j-T.width)*O.x}}var zl=gi(Jd,"aspectRatio"),Wl=function(){};Wl._defaults={};var Us=Wl;function zi(p,f,w){return W.func(p)?Yo(p,f.interactable,f.element,[w.x,w.y,f]):Yo(p,f.interactable,f.element)}var Vs={start:function(p){var f=p.rect,w=p.startOffset,_=p.state,T=p.interaction,E=p.pageCoords,A=_.options,O=A.elementRect,$=Fe({left:0,top:0,right:0,bottom:0},A.offset||{});if(f&&O){var j=zi(A.restriction,T,E);if(j){var U=j.right-j.left-f.width,ee=j.bottom-j.top-f.height;U<0&&($.left+=U,$.right+=U),ee<0&&($.top+=ee,$.bottom+=ee)}$.left+=w.left-f.width*O.left,$.top+=w.top-f.height*O.top,$.right+=w.right-f.width*(1-O.right),$.bottom+=w.bottom-f.height*(1-O.bottom)}_.offset=$},set:function(p){var f=p.coords,w=p.interaction,_=p.state,T=_.options,E=_.offset,A=zi(T.restriction,w,f);if(A){var O=function($){return!$||"left"in $&&"top"in $||(($=Fe({},$)).left=$.x||0,$.top=$.y||0,$.right=$.right||$.left+$.width,$.bottom=$.bottom||$.top+$.height),$}(A);f.x=Math.max(Math.min(O.right-E.right,f.x),O.left+E.left),f.y=Math.max(Math.min(O.bottom-E.bottom,f.y),O.top+E.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},Kd=gi(Vs,"restrict"),Bl={top:1/0,left:1/0,bottom:-1/0,right:-1/0},Gl={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function jl(p,f){for(var w=0,_=["top","left","bottom","right"];w<_.length;w++){var T=_[w];T in p||(p[T]=f[T])}return p}var ns={noInner:Bl,noOuter:Gl,start:function(p){var f,w=p.interaction,_=p.startOffset,T=p.state,E=T.options;E&&(f=so(zi(E.offset,w,w.coords.start.page))),f=f||{x:0,y:0},T.offset={top:f.y+_.top,left:f.x+_.left,bottom:f.y-_.bottom,right:f.x-_.right}},set:function(p){var f=p.coords,w=p.edges,_=p.interaction,T=p.state,E=T.offset,A=T.options;if(w){var O=Fe({},f),$=zi(A.inner,_,O)||{},j=zi(A.outer,_,O)||{};jl($,Bl),jl(j,Gl),w.top?f.y=Math.min(Math.max(j.top+E.top,O.y),$.top+E.top):w.bottom&&(f.y=Math.max(Math.min(j.bottom+E.bottom,O.y),$.bottom+E.bottom)),w.left?f.x=Math.min(Math.max(j.left+E.left,O.x),$.left+E.left):w.right&&(f.x=Math.max(Math.min(j.right+E.right,O.x),$.right+E.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},Qd=gi(ns,"restrictEdges"),ef=Fe({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(p){}},Vs.defaults),tf=gi({start:Vs.start,set:Vs.set,defaults:ef},"restrictRect"),rf={width:-1/0,height:-1/0},nf={width:1/0,height:1/0},of=gi({start:function(p){return ns.start(p)},set:function(p){var f=p.interaction,w=p.state,_=p.rect,T=p.edges,E=w.options;if(T){var A=il(zi(E.min,f,p.coords))||rf,O=il(zi(E.max,f,p.coords))||nf;w.options={endOnly:E.endOnly,inner:Fe({},ns.noInner),outer:Fe({},ns.noOuter)},T.top?(w.options.inner.top=_.bottom-A.height,w.options.outer.top=_.bottom-O.height):T.bottom&&(w.options.inner.bottom=_.top+A.height,w.options.outer.bottom=_.top+O.height),T.left?(w.options.inner.left=_.right-A.width,w.options.outer.left=_.right-O.width):T.right&&(w.options.inner.right=_.left+A.width,w.options.outer.right=_.left+O.width),ns.set(p),w.options=E}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Na={start:function(p){var f,w=p.interaction,_=p.interactable,T=p.element,E=p.rect,A=p.state,O=p.startOffset,$=A.options,j=$.offsetWithOrigin?function(le){var be=le.interaction.element,ye=so(Yo(le.state.options.origin,null,null,[be])),ve=ye||Ls(le.interactable,be,le.interaction.prepared.name);return ve}(p):{x:0,y:0};if($.offset==="startCoords")f={x:w.coords.start.page.x,y:w.coords.start.page.y};else{var U=Yo($.offset,_,T,[w]);(f=so(U)||{x:0,y:0}).x+=j.x,f.y+=j.y}var ee=$.relativePoints;A.offsets=E&&ee&&ee.length?ee.map(function(le,be){return{index:be,relativePoint:le,x:O.left-E.width*le.x+f.x,y:O.top-E.height*le.y+f.y}}):[{index:0,relativePoint:null,x:f.x,y:f.y}]},set:function(p){var f=p.interaction,w=p.coords,_=p.state,T=_.options,E=_.offsets,A=Ls(f.interactable,f.element,f.prepared.name),O=Fe({},w),$=[];T.offsetWithOrigin||(O.x-=A.x,O.y-=A.y);for(var j=0,U=E;j<U.length;j++)for(var ee=U[j],le=O.x-ee.x,be=O.y-ee.y,ye=0,ve=T.targets.length;ye<ve;ye++){var Oe=T.targets[ye],Pe=void 0;(Pe=W.func(Oe)?Oe(le,be,f._proxy,ee,ye):Oe)&&$.push({x:(W.number(Pe.x)?Pe.x:le)+ee.x,y:(W.number(Pe.y)?Pe.y:be)+ee.y,range:W.number(Pe.range)?Pe.range:T.range,source:Oe,index:ye,offset:ee})}for(var $e={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},Ke=0;Ke<$.length;Ke++){var nt=$[Ke],Be=nt.range,Qe=nt.x-O.x,Sr=nt.y-O.y,Mt=ks(Qe,Sr),Jr=Mt<=Be;Be===1/0&&$e.inRange&&$e.range!==1/0&&(Jr=!1),$e.target&&!(Jr?$e.inRange&&Be!==1/0?Mt/Be<$e.distance/$e.range:Be===1/0&&$e.range!==1/0||Mt<$e.distance:!$e.inRange&&Mt<$e.distance)||($e.target=nt,$e.distance=Mt,$e.range=Be,$e.inRange=Jr,$e.delta.x=Qe,$e.delta.y=Sr)}return $e.inRange&&(w.x=$e.target.x,w.y=$e.target.y),_.closest=$e,$e},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},sf=gi(Na,"snap"),zs={start:function(p){var f=p.state,w=p.edges,_=f.options;if(!w)return null;p.state={options:{targets:null,relativePoints:[{x:w.left?0:1,y:w.top?0:1}],offset:_.offset||"self",origin:{x:0,y:0},range:_.range}},f.targetFields=f.targetFields||[["width","height"],["x","y"]],Na.start(p),f.offsets=p.state.offsets,p.state=f},set:function(p){var f=p.interaction,w=p.state,_=p.coords,T=w.options,E=w.offsets,A={x:_.x-E[0].x,y:_.y-E[0].y};w.options=Fe({},T),w.options.targets=[];for(var O=0,$=T.targets||[];O<$.length;O++){var j=$[O],U=void 0;if(U=W.func(j)?j(A.x,A.y,f):j){for(var ee=0,le=w.targetFields;ee<le.length;ee++){var be=le[ee],ye=be[0],ve=be[1];if(ye in U||ve in U){U.x=U[ye],U.y=U[ve];break}}w.options.targets.push(U)}}var Oe=Na.set(p);return w.options=T,Oe},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},af=gi(zs,"snapSize"),Ra={aspectRatio:zl,restrictEdges:Qd,restrict:Kd,restrictRect:tf,restrictSize:of,snapEdges:gi({start:function(p){var f=p.edges;return f?(p.state.targetFields=p.state.targetFields||[[f.left?"left":"right",f.top?"top":"bottom"]],zs.start(p)):null},set:zs.set,defaults:Fe(lo(zs.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:sf,snapSize:af,spring:Us,avoid:Us,transform:Us,rubberband:Us},cf={id:"modifiers",install:function(p){var f=p.interactStatic;for(var w in p.usePlugin(Tl),p.usePlugin(Yd),f.modifiers=Ra,Ra){var _=Ra[w],T=_._defaults,E=_._methods;T._methods=E,p.defaults.perAction[w]=T}}},lf=cf,Hl=function(p){d(w,p);var f=S(w);function w(_,T,E,A,O,$){var j;if(o(this,w),Jo(v(j=f.call(this,O)),E),E!==T&&Jo(v(j),T),j.timeStamp=$,j.originalEvent=E,j.type=_,j.pointerId=Xo(T),j.pointerType=dl(T),j.target=A,j.currentTarget=null,_==="tap"){var U=O.getPointerIndex(T);j.dt=j.timeStamp-O.pointers[U].downTime;var ee=j.timeStamp-O.tapTime;j.double=!!O.prevTap&&O.prevTap.type!=="doubletap"&&O.prevTap.target===j.target&&ee<500}else _==="doubletap"&&(j.dt=T.timeStamp-O.tapTime,j.double=!0);return j}return c(w,[{key:"_subtractOrigin",value:function(_){var T=_.x,E=_.y;return this.pageX-=T,this.pageY-=E,this.clientX-=T,this.clientY-=E,this}},{key:"_addOrigin",value:function(_){var T=_.x,E=_.y;return this.pageX+=T,this.pageY+=E,this.clientX+=T,this.clientY+=E,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),w}(ao),is={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(p){p.pointerEvents=is,p.defaults.actions.pointerEvents=is.defaults,Fe(p.actions.phaselessTypes,is.types)},listeners:{"interactions:new":function(p){var f=p.interaction;f.prevTap=null,f.tapTime=0},"interactions:update-pointer":function(p){var f=p.down,w=p.pointerInfo;!f&&w.hold||(w.hold={duration:1/0,timeout:null})},"interactions:move":function(p,f){var w=p.interaction,_=p.pointer,T=p.event,E=p.eventTarget;p.duplicate||w.pointerIsDown&&!w.pointerWasMoved||(w.pointerIsDown&&Da(p),yi({interaction:w,pointer:_,event:T,eventTarget:E,type:"move"},f))},"interactions:down":function(p,f){(function(w,_){for(var T=w.interaction,E=w.pointer,A=w.event,O=w.eventTarget,$=w.pointerIndex,j=T.pointers[$].hold,U=$i(O),ee={interaction:T,pointer:E,event:A,eventTarget:O,type:"hold",targets:[],path:U,node:null},le=0;le<U.length;le++){var be=U[le];ee.node=be,_.fire("pointerEvents:collect-targets",ee)}if(ee.targets.length){for(var ye=1/0,ve=0,Oe=ee.targets;ve<Oe.length;ve++){var Pe=Oe[ve].eventable.options.holdDuration;Pe<ye&&(ye=Pe)}j.duration=ye,j.timeout=setTimeout(function(){yi({interaction:T,eventTarget:O,pointer:E,event:A,type:"hold"},_)},ye)}})(p,f),yi(p,f)},"interactions:up":function(p,f){Da(p),yi(p,f),function(w,_){var T=w.interaction,E=w.pointer,A=w.event,O=w.eventTarget;T.pointerWasMoved||yi({interaction:T,eventTarget:O,pointer:E,event:A,type:"tap"},_)}(p,f)},"interactions:cancel":function(p,f){Da(p),yi(p,f)}},PointerEvent:Hl,fire:yi,collectEventTargets:ql,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function yi(p,f){var w=p.interaction,_=p.pointer,T=p.event,E=p.eventTarget,A=p.type,O=p.targets,$=O===void 0?ql(p,f):O,j=new Hl(A,_,T,E,w,f.now());f.fire("pointerEvents:new",{pointerEvent:j});for(var U={interaction:w,pointer:_,event:T,eventTarget:E,targets:$,type:A,pointerEvent:j},ee=0;ee<$.length;ee++){var le=$[ee];for(var be in le.props||{})j[be]=le.props[be];var ye=Ls(le.eventable,le.node);if(j._subtractOrigin(ye),j.eventable=le.eventable,j.currentTarget=le.node,le.eventable.fire(j),j._addOrigin(ye),j.immediatePropagationStopped||j.propagationStopped&&ee+1<$.length&&$[ee+1].node!==j.currentTarget)break}if(f.fire("pointerEvents:fired",U),A==="tap"){var ve=j.double?yi({interaction:w,pointer:_,event:T,eventTarget:E,type:"doubletap"},f):j;w.prevTap=ve,w.tapTime=ve.timeStamp}return j}function ql(p,f){var w=p.interaction,_=p.pointer,T=p.event,E=p.eventTarget,A=p.type,O=w.getPointerIndex(_),$=w.pointers[O];if(A==="tap"&&(w.pointerWasMoved||!$||$.downTarget!==E))return[];for(var j=$i(E),U={interaction:w,pointer:_,event:T,eventTarget:E,type:A,path:j,targets:[],node:null},ee=0;ee<j.length;ee++){var le=j[ee];U.node=le,f.fire("pointerEvents:collect-targets",U)}return A==="hold"&&(U.targets=U.targets.filter(function(be){var ye,ve;return be.eventable.options.holdDuration===((ye=w.pointers[O])==null||(ve=ye.hold)==null?void 0:ve.duration)})),U.targets}function Da(p){var f=p.interaction,w=p.pointerIndex,_=f.pointers[w].hold;_&&_.timeout&&(clearTimeout(_.timeout),_.timeout=null)}var uf=Object.freeze({__proto__:null,default:is});function df(p){var f=p.interaction;f.holdIntervalHandle&&(clearInterval(f.holdIntervalHandle),f.holdIntervalHandle=null)}var ff={id:"pointer-events/holdRepeat",install:function(p){p.usePlugin(is);var f=p.pointerEvents;f.defaults.holdRepeatInterval=0,f.types.holdrepeat=p.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(p,f){return p["pointerEvents:".concat(f)]=df,p},{"pointerEvents:new":function(p){var f=p.pointerEvent;f.type==="hold"&&(f.count=(f.count||0)+1)},"pointerEvents:fired":function(p,f){var w=p.interaction,_=p.pointerEvent,T=p.eventTarget,E=p.targets;if(_.type==="hold"&&E.length){var A=E[0].eventable.options.holdRepeatInterval;A<=0||(w.holdIntervalHandle=setTimeout(function(){f.pointerEvents.fire({interaction:w,eventTarget:T,type:"hold",pointer:_,event:_},f)},A))}}})},pf=ff,mf={id:"pointer-events/interactableTargets",install:function(p){var f=p.Interactable;f.prototype.pointerEvents=function(_){return Fe(this.events.options,_),this};var w=f.prototype._backCompatOption;f.prototype._backCompatOption=function(_,T){var E=w.call(this,_,T);return E===this&&(this.events.options[_]=T),E}},listeners:{"pointerEvents:collect-targets":function(p,f){var w=p.targets,_=p.node,T=p.type,E=p.eventTarget;f.interactables.forEachMatch(_,function(A){var O=A.events,$=O.options;O.types[T]&&O.types[T].length&&A.testIgnoreAllow($,_,E)&&w.push({node:_,eventable:O,props:{interactable:A}})})},"interactable:new":function(p){var f=p.interactable;f.events.getRect=function(w){return f.getRect(w)}},"interactable:set":function(p,f){var w=p.interactable,_=p.options;Fe(w.events.options,f.pointerEvents.defaults),Fe(w.events.options,_.pointerEvents||{})}}},hf=mf,gf={id:"pointer-events",install:function(p){p.usePlugin(uf),p.usePlugin(pf),p.usePlugin(hf)}},wf=gf,yf={id:"reflow",install:function(p){var f=p.Interactable;p.actions.phases.reflow=!0,f.prototype.reflow=function(w){return function(_,T,E){for(var A=_.getAllElements(),O=E.window.Promise,$=O?[]:null,j=function(){var ee=A[U],le=_.getRect(ee);if(!le)return 1;var be,ye=Ui(E.interactions.list,function(Pe){return Pe.interacting()&&Pe.interactable===_&&Pe.element===ee&&Pe.prepared.name===T.name});if(ye)ye.move(),$&&(be=ye._reflowPromise||new O(function(Pe){ye._reflowResolve=Pe}));else{var ve=il(le),Oe=function(Pe){return{coords:Pe,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:ve.x,y:ve.y},client:{x:ve.x,y:ve.y},timeStamp:E.now()});be=function(Pe,$e,Ke,nt,Be){var Qe=Pe.interactions.new({pointerType:"reflow"}),Sr={interaction:Qe,event:Be,pointer:Be,eventTarget:Ke,phase:"reflow"};Qe.interactable=$e,Qe.element=Ke,Qe.prevEvent=Be,Qe.updatePointer(Be,Be,Ke,!0),ol(Qe.coords.delta),Ca(Qe.prepared,nt),Qe._doPhase(Sr);var Mt=Pe.window,Jr=Mt.Promise,Cn=Jr?new Jr(function(jn){Qe._reflowResolve=jn}):void 0;return Qe._reflowPromise=Cn,Qe.start(nt,$e,Ke),Qe._interacting?(Qe.move(Sr),Qe.end(Be)):(Qe.stop(),Qe._reflowResolve()),Qe.removePointer(Be,Be),Cn}(E,_,ee,T,Oe)}$&&$.push(be)},U=0;U<A.length&&!j();U++);return $&&O.all($).then(function(){return _})}(this,w,p)}},listeners:{"interactions:stop":function(p,f){var w=p.interaction;w.pointerType==="reflow"&&(w._reflowResolve&&w._reflowResolve(),function(_,T){_.splice(_.indexOf(T),1)}(f.interactions.list,w))}}},bf=yf;if(_r.use(Cl),_r.use(Al),_r.use(wf),_r.use(Fd),_r.use(lf),_r.use(Ed),_r.use(wd),_r.use(yl),_r.use(bf),_r.default=_r,i(e)==="object"&&e)try{e.exports=_r}catch{}return _r.default=_r,_r})})(sk);wb=sk.exports,qc={dialog:"dialog",panel:"panel",scrim:"scrim",container:"container",containerOpen:"container--open",containerEmbedded:"container--embedded",assistiveText:"assistive-text",openingActive:"dialog--opening-active"},ki={actionBar:"action-bar",alerts:"alerts",content:"content",contentTop:"content-top",contentBottom:"content-bottom",headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerStart:"footer-start",footerEnd:"footer-end"},Zc=25,yb=25,nk={x:0,y:0},ik={top:0,right:0,bottom:0,left:0},AY=`:host{--calcite-dialog-scrim-background-color:rgba(0, 0, 0, 0.85);pointer-events:none;inset:0px;z-index:var(--calcite-z-index-overlay);display:flex;--calcite-internal-dialog-animation-offset:20px}:host([modal]){position:absolute}.container{pointer-events:auto;position:fixed;inset:0px;z-index:var(--calcite-z-index-overlay);display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--calcite-color-text-2);opacity:0;visibility:hidden;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}:host([placement=top]) .container{align-items:flex-start;justify-content:center}:host([placement=top-start]) .container{align-items:flex-start;justify-content:flex-start}:host([placement=top-end]) .container{align-items:flex-start;justify-content:flex-end}:host([placement=bottom]) .container{align-items:flex-end;justify-content:center}:host([placement=bottom-start]) .container{align-items:flex-end;justify-content:flex-start}:host([placement=bottom-end]) .container{align-items:flex-end;justify-content:flex-end}:host(:not([modal])) .container{pointer-events:none}:host([scale=s]){--calcite-internal-dialog-content-padding:var(--calcite-dialog-content-space, var(--calcite-spacing-sm));--calcite-internal-dialog-min-size-x:198px;--calcite-internal-dialog-min-size-y:140px}:host([scale=m]){--calcite-internal-dialog-content-padding:var(--calcite-dialog-content-space, var(--calcite-spacing-md));--calcite-internal-dialog-min-size-x:288px;--calcite-internal-dialog-min-size-y:180px}:host([scale=l]){--calcite-internal-dialog-content-padding:var(--calcite-dialog-content-space, var(--calcite-spacing-lg));--calcite-internal-dialog-min-size-x:388px;--calcite-internal-dialog-min-size-y:220px}.scrim{--calcite-scrim-background:var(--calcite-dialog-scrim-background-color, var(--calcite-color-transparent-scrim));--calcite-scrim-background-color:var(
|
|
68
68
|
--calcite-dialog-scrim-background-color,
|
|
69
69
|
var(--calcite-color-transparent-scrim)
|
|
70
70
|
);position:fixed;inset:0px;display:flex;overflow-y:hidden}calcite-panel{--calcite-panel-content-space:var(--calcite-dialog-content-space, var(--calcite-internal-dialog-content-padding));--calcite-panel-footer-padding:var(--calcite-dialog-footer-space);--calcite-panel-header-border-block-end:var(--calcite-border-width-sm) solid var(--calcite-dialog-border-color);--calcite-panel-background-color:var(--calcite-dialog-background-color)}.dialog{pointer-events:none;position:relative;z-index:var(--calcite-z-index-modal);margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;border-radius:0.25rem;opacity:0;--tw-shadow:0 2px 12px -4px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.16);--tw-shadow-colored:0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);-webkit-overflow-scrolling:touch;visibility:hidden;transition:inset-block var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);min-inline-size:var(--calcite-dialog-min-size-x, var(--calcite-internal-dialog-min-size-x));max-inline-size:var(--calcite-dialog-max-size-x, 100%);min-block-size:var(--calcite-dialog-min-size-y, var(--calcite-internal-dialog-min-size-y));max-block-size:var(--calcite-dialog-max-size-y, 100%);--calcite-internal-dialog-hidden-position:calc(
|
|
71
71
|
var(--calcite-dialog-offset-y, 0px) + var(--calcite-internal-dialog-animation-offset)
|
|
72
|
-
);--calcite-internal-dialog-shown-position:var(--calcite-dialog-offset-y, 0);inset-inline-start:var(--calcite-dialog-offset-x, 0);inset-block-start:var(--calcite-internal-dialog-hidden-position)}.dialog--opening-active{inset-block-start:var(--calcite-internal-dialog-shown-position)}:host([menu-open]) .dialog{transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}.panel{border-radius:0.25rem}.container--open{opacity:1;visibility:visible;transition-delay:0ms}.container--open .dialog{pointer-events:auto;visibility:visible;opacity:1;transition:inset-block var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}:host([width=small]) .dialog{inline-size:auto}:host([width-scale=s]) .dialog{inline-size:var(--calcite-dialog-size-x, 32rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 35rem){:host([width-scale=s]) .dialog{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}:host([width-scale=s]) .dialog--opening-active{inset-block-start:0}}:host([width-scale=m]) .dialog{inline-size:var(--calcite-dialog-size-x, 48rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 51rem){:host([width-scale=m]) .dialog{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}:host([width-scale=m]) .dialog--opening-active{inset-block-start:0}}:host([width-scale=l]) .dialog{inline-size:var(--calcite-dialog-size-x, 94rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 97rem){:host([width-scale=l]) .dialog{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}:host([width-scale=l]) .dialog--opening-active{inset-block-start:0}}:host([placement=cover]) .dialog{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}:host([placement=cover]) .panel{border-radius:0px}:host([kind]) .panel{border-start-start-radius:0px;border-start-end-radius:0px}:host([kind=brand]) .dialog{border-color:var(--calcite-color-brand)}:host([kind=danger]) .dialog{border-color:var(--calcite-color-status-danger)}:host([kind=info]) .dialog{border-color:var(--calcite-color-status-info)}:host([kind=success]) .dialog{border-color:var(--calcite-color-status-success)}:host([kind=warning]) .dialog{border-color:var(--calcite-color-status-warning)}:host([kind=brand][open]) .dialog,:host([kind=danger][open]) .dialog,:host([kind=info][open]) .dialog,:host([kind=success][open]) .dialog,:host([kind=warning][open]) .dialog{border-width:0px;border-block-start-width:4px;border-style:solid}.container--embedded{position:absolute;pointer-events:auto}.container--embedded calcite-scrim{position:absolute}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}`,LY=AY,N4=0,ok="",ak=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteDialogBeforeClose=Lt(this,"calciteDialogBeforeClose",6),this.calciteDialogClose=Lt(this,"calciteDialogClose",6),this.calciteDialogBeforeOpen=Lt(this,"calciteDialogBeforeOpen",6),this.calciteDialogOpen=Lt(this,"calciteDialogOpen",6),this.calciteDialogScroll=Lt(this,"calciteDialogScroll",6),this.openTransitionProp="opacity",this.resizePosition={...ik},this.dragPosition={...nk},this.ignoreOpenChange=!1,this.mutationObserver=yr("mutation",()=>this.handleMutationObserver()),this.handleKeyDown=t=>{let{key:r,shiftKey:n,defaultPrevented:i}=t,{dragEnabled:o,resizable:s,resizePosition:c,dragPosition:a,transitionEl:d}=this;if(!(i||!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(r)))switch(r){case"ArrowUp":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().height-Zc,type:"blockSize"}),c.bottom-=Zc,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.y-=yb,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowDown":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().height+Zc,type:"blockSize"}),c.bottom+=Zc,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.y+=yb,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowLeft":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width-Zc,type:"inlineSize"}),c.right-=Zc,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.x-=yb,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowRight":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width+Zc,type:"inlineSize"}),c.right+=Zc,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.x+=yb,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break}},this.setTransitionEl=t=>{this.transitionEl=t,this.setupInteractions()},this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteDialogOpen",this.openEnd)},this.handleInternalPanelScroll=t=>{t.target===this.panelEl&&(t.stopPropagation(),this.calciteDialogScroll.emit())},this.handleInternalPanelCloseClick=t=>{t.target===this.panelEl&&(t.stopPropagation(),this.open=!1)},this.handlePanelKeyDown=t=>{this.escapeDisabled&&t.key==="Escape"&&t.preventDefault()},this.handleOutsideClose=()=>{this.outsideCloseDisabled||(this.open=!1)},this.closeDialog=async()=>{if(this.beforeClose)try{await this.beforeClose()}catch{requestAnimationFrame(()=>{this.ignoreOpenChange=!0,this.open=!0,this.ignoreOpenChange=!1});return}N4--,this.opened=!1,this.updateOverflowHiddenClass()},this.updateOverflowHiddenClass=()=>{this.opened&&!this.embedded&&this.modal?this.addOverflowHiddenClass():this.removeOverflowHiddenClass()},this.handleMutationObserver=()=>{this.updateFocusTrapElements()},this.beforeClose=void 0,this.description=void 0,this.dragEnabled=!1,this.closeDisabled=!1,this.embedded=!1,this.escapeDisabled=!1,this.heading=void 0,this.headingLevel=void 0,this.kind=void 0,this.loading=!1,this.menuOpen=!1,this.messages=void 0,this.messageOverrides=void 0,this.modal=!1,this.open=!1,this.outsideCloseDisabled=!1,this.overlayPositioning="absolute",this.placement="center",this.resizable=!1,this.scale="m",this.widthScale="m",this.opened=!1,this.hasFooter=!0,this.hasContentTop=!1,this.hasContentBottom=!1,this.effectiveLocale=void 0,this.defaultMessages=void 0,this.assistiveText=null}onMessagesChange(){}onModalChange(){this.updateOverflowHiddenClass()}async componentWillLoad(){await Fn(this),Nn(this),this.open&&this.openDialog()}componentDidLoad(){Rn(this)}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),cn(this),Vn(this),Ky(this),this.setupInteractions()}disconnectedCallback(){this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),Fu(this),ln(this),zn(this),this.embedded=!1,this.cleanupInteractions()}render(){let{assistiveText:t,description:r,heading:n,opened:i}=this;return X(Gr,{key:"bf406255eaa6d94c8443af185a74a2b2d58c6d59"},X("div",{key:"de2a34b6da4a82c66e9fafdbdd2056e4e11e1315",class:{[qc.container]:!0,[qc.containerOpen]:i,[qc.containerEmbedded]:this.embedded}},this.modal?X("calcite-scrim",{class:qc.scrim,onClick:this.handleOutsideClose}):null,X("div",{key:"be47093e3a955ce45a71c555700143a4a1c7a166","aria-description":r,"aria-label":n,"aria-modal":Ir(this.modal),class:qc.dialog,onKeyDown:this.handleKeyDown,ref:this.setTransitionEl,role:"dialog"},t?X("div",{"aria-live":"polite",class:qc.assistiveText,key:"assistive-text"},t):null,X("slot",{key:"6ed9f10ae7d5ecc1ec9062d6aba559001d5194e6",name:ki.content},X("calcite-panel",{key:"cd6ebaa7d7362cbeb70e9ae623f38298d1e831e3",beforeClose:this.beforeClose,class:qc.panel,closable:!this.closeDisabled,closed:!i,description:r,heading:n,headingLevel:this.headingLevel,loading:this.loading,menuOpen:this.menuOpen,messageOverrides:this.messageOverrides,onCalcitePanelClose:this.handleInternalPanelCloseClick,onCalcitePanelScroll:this.handleInternalPanelScroll,onKeyDown:this.handlePanelKeyDown,overlayPositioning:this.overlayPositioning,ref:o=>this.panelEl=o,scale:this.scale},X("slot",{key:"2ce955775c33b09fc849a083d0bcc1c8ce523dd8",name:ki.actionBar,slot:qt.actionBar}),X("slot",{key:"dd44184de251320af6225baa2e59571b881a23cd",name:ki.alerts,slot:qt.alerts}),X("slot",{key:"da343a1a10e015b04b37463c10592e612a576e9b",name:ki.headerActionsStart,slot:qt.headerActionsStart}),X("slot",{key:"6680fde2bd7ad6dc5803c78ea7250d11d4920b7c",name:ki.headerActionsEnd,slot:qt.headerActionsEnd}),X("slot",{key:"a17ca64188ffe6000792e67eafc838df575ebbc3",name:ki.headerContent,slot:qt.headerContent}),X("slot",{key:"7e048c4a9104053ca0a61ab2514b018efb4fc872",name:ki.headerMenuActions,slot:qt.headerMenuActions}),X("slot",{key:"6760c8a6c105a511fcb859cfd222f8c1355a82c4",name:ki.fab,slot:qt.fab}),X("slot",{key:"e0f2e7644281d408d8c21ce5bf16b08af0a59c3b",name:ki.contentTop,slot:qt.contentTop}),X("slot",{key:"01889c3b7fc13bc49521c27feb2ab35346552504",name:ki.contentBottom,slot:qt.contentBottom}),X("slot",{key:"593bad35110b5d7e7b44d598b397e4b87cc28e28",name:ki.footerStart,slot:qt.footerStart}),X("slot",{key:"5e84099e096a6afb678cce9731b189f4011dc067",name:ki.footer,slot:qt.footer}),X("slot",{key:"69a805bd0c1f43a6d165939e62db562428f39f11",name:ki.footerEnd,slot:qt.footerEnd}),X("slot",{key:"b49e14ff6d2c63caaa8fd296920618e7673eb71b"}))))))}effectiveLocaleChange(){Un(this,this.effectiveLocale)}handleInteractionChange(){this.setupInteractions()}updateAssistiveText(){let{messages:t}=this;this.assistiveText=t&&(this.dragEnabled||this.resizable)?`${this.dragEnabled?t.dragEnabled:""} ${this.resizable?t.resizeEnabled:""}`:null}handleEscape(t){this.open&&!this.escapeDisabled&&t.key==="Escape"&&!t.defaultPrevented&&(this.open=!1,t.preventDefault())}async setFocus(){return await Dn(this),this.panelEl?.setFocus()??Bp(this.el)}async updateFocusTrapElements(){Qy(this)}async scrollContentTo(t){await this.panelEl?.scrollContentTo(t)}onBeforeOpen(){this.calciteDialogBeforeOpen.emit()}onOpen(){this.calciteDialogOpen.emit(),Ag(this)}onBeforeClose(){this.calciteDialogBeforeClose.emit()}onClose(){this.calciteDialogClose.emit(),Fu(this)}toggleDialog(t){this.ignoreOpenChange||(t?this.openDialog():this.closeDialog())}handleOpenedChange(t){this.transitionEl.classList.toggle(qc.openingActive,t),Gc(this)}async triggerInteractModifiers(){let{interaction:t}=this;t&&(await t.reflow({name:"drag"}),await t.reflow({name:"resize"}))}getTransitionElDOMRect(){return this.transitionEl.getBoundingClientRect()}updateTransform(){let{dragPosition:{x:t,y:r},resizePosition:n,transitionEl:i}=this;if(!i)return;let{top:o,right:s,bottom:c,left:a}=this.getAdjustedResizePosition(n),d=Math.round(t+a+s),h=Math.round(r+o+c);i.style.transform=`translate(${d}px, ${h}px)`}updateSize({type:t,size:r}){let{transitionEl:n}=this;n&&(n.style[t]=r!==null?`${Math.round(r)}px`:null)}cleanupInteractions(){this.interaction?.unset(),this.updateSize({size:null,type:"inlineSize"}),this.updateSize({size:null,type:"blockSize"}),this.dragPosition={...nk},this.resizePosition={...ik},this.updateTransform()}setupInteractions(){this.cleanupInteractions();let{el:t,transitionEl:r,resizable:n,dragEnabled:i,resizePosition:o,dragPosition:s}=this;if(!(!r||!this.open)){if((n||i)&&(this.interaction=wb(r,{context:t.ownerDocument})),n){let{minInlineSize:c,minBlockSize:a,maxInlineSize:d,maxBlockSize:h}=window.getComputedStyle(r);this.interaction.resizable({edges:{top:!0,right:!0,bottom:!0,left:!0},modifiers:[wb.modifiers.restrictSize({min:{width:this.isPixelValue(c)?parseInt(c,10):0,height:this.isPixelValue(a)?parseInt(a,10):0},max:{width:this.isPixelValue(d)?parseInt(d,10):window.innerWidth,height:this.isPixelValue(h)?parseInt(h,10):window.innerHeight}}),wb.modifiers.restrict({restriction:"parent"})],listeners:{move:({rect:g,deltaRect:v})=>{v&&(o.top+=v.top,o.right+=v.right,o.bottom+=v.bottom,o.left+=v.left),this.updateSize({size:g.width,type:"inlineSize"}),this.updateSize({size:g.height,type:"blockSize"}),this.updateTransform()}}})}i&&this.interaction.draggable({modifiers:[wb.modifiers.restrictRect({restriction:"parent"})],listeners:{move:({dx:c,dy:a})=>{s.x+=c,s.y+=a,this.updateTransform()}}})}}isPixelValue(t){return t.indexOf("px")!==-1}getAdjustedResizePosition({top:t,right:r,bottom:n,left:i}){let o=t/2,s=r/2,c=n/2,a=i/2;switch(this.placement){case"top":return{top:t,right:s,bottom:0,left:a};case"top-start":return{top:t,right:0,bottom:0,left:i};case"top-end":return{top:t,right:r,bottom:0,left:0};case"bottom":return{top:0,right:s,bottom:n,left:a};case"bottom-start":return{top:0,right:0,bottom:n,left:i};case"bottom-end":return{top:0,right:r,bottom:n,left:0};case"cover":case"center":default:return{top:o,right:s,bottom:c,left:a}}}async openDialog(){await Gy(this.el),this.el.addEventListener("calciteDialogOpen",this.openEnd),this.opened=!0,this.updateOverflowHiddenClass()}addOverflowHiddenClass(){N4===0&&(ok=document.documentElement.style.overflow),N4++,document.documentElement.style.setProperty("overflow","hidden")}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",ok)}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{messageOverrides:["onMessagesChange"],modal:["onModalChange"],effectiveLocale:["effectiveLocaleChange"],open:["handleInteractionChange","toggleDialog"],placement:["handleInteractionChange"],resizable:["handleInteractionChange","updateAssistiveText"],dragEnabled:["handleInteractionChange","updateAssistiveText"],messages:["updateAssistiveText"],opened:["handleOpenedChange"]}}static get style(){return LY}},[1,"calcite-dialog",{beforeClose:[16],description:[1],dragEnabled:[516,"drag-enabled"],closeDisabled:[516,"close-disabled"],embedded:[1028],escapeDisabled:[516,"escape-disabled"],heading:[1],headingLevel:[514,"heading-level"],kind:[513],loading:[516],menuOpen:[516,"menu-open"],messages:[1040],messageOverrides:[1040],modal:[516],open:[1540],outsideCloseDisabled:[516,"outside-close-disabled"],overlayPositioning:[513,"overlay-positioning"],placement:[513],resizable:[516],scale:[513],widthScale:[513,"width-scale"],opened:[32],hasFooter:[32],hasContentTop:[32],hasContentBottom:[32],effectiveLocale:[32],defaultMessages:[32],assistiveText:[32],setFocus:[64],updateFocusTrapElements:[64],scrollContentTo:[64]},[[8,"keydown","handleEscape"]],{messageOverrides:["onMessagesChange"],modal:["onModalChange"],effectiveLocale:["effectiveLocaleChange"],open:["handleInteractionChange","toggleDialog"],placement:["handleInteractionChange"],resizable:["handleInteractionChange","updateAssistiveText"],dragEnabled:["handleInteractionChange","updateAssistiveText"],messages:["updateAssistiveText"],opened:["handleOpenedChange"]}]);ck();kY=ak,OY=ck});var NY,dk,fk=V(()=>{Wt();NY={validationContainer:"validation-container"},dk=({scale:e,status:t,id:r,icon:n,message:i})=>X("div",{class:NY.validationContainer},X("calcite-input-message",{"aria-live":"polite",icon:n,id:r,scale:e,status:t},i))});function Xp(e,t,r,n){let i=r.toLowerCase(),o=e[r];n&&o!=null?t.setAttribute(i,`${o}`):t.removeAttribute(i)}function pk(e,t,r){r.type=e==="textarea"?"text":e;let n=RY.includes(e),i=t;Xp(i,r,"min",n),Xp(i,r,"max",n),Xp(i,r,"step",n);let o=$Y.includes(e),s=t;Xp(s,r,"minLength",o),Xp(s,r,"maxLength",o);let c=DY.includes(e);Xp(s,r,"pattern",c)}var RY,DY,$Y,mk=V(()=>{RY=["date","datetime-local","month","number","range","time","week"],DY=["email","password","search","tel","text","url"],$Y=["email","password","search","tel","text","textarea","url"]});function R4(){if(typeof customElements>"u")return;["calcite-input-message","calcite-icon"].forEach(t=>{switch(t){case"calcite-input-message":customElements.get(t)||customElements.define(t,VY);break;case"calcite-icon":customElements.get(t)||Hr();break}})}var hk,FY,UY,VY,gk=V(()=>{Wt();jr();bs();hk={valid:"check-circle",invalid:"exclamation-mark-triangle",idle:"information"},FY=":host{box-sizing:border-box;display:flex;block-size:auto;inline-size:100%;align-items:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);opacity:1;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;--calcite-input-message-spacing-value:0.25rem;margin-block-start:var(--calcite-input-message-spacing-value)}.calcite-input-message-icon{pointer-events:none;display:inline-flex;flex-shrink:0;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;margin-inline-end:0.5rem}:host([status=invalid]) .calcite-input-message-icon{color:var(--calcite-color-status-danger)}:host([status=warning]) .calcite-input-message-icon{color:var(--calcite-color-status-warning)}:host([status=valid]) .calcite-input-message-icon{color:var(--calcite-color-status-success)}:host([status=idle]) .calcite-input-message-icon{color:var(--calcite-color-brand)}:host([scale=s]){font-size:var(--calcite-font-size--3);line-height:0.75rem}:host([scale=m]){font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([hidden]){display:none}[hidden]{display:none}",UY=FY,VY=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.icon=void 0,this.iconFlipRtl=!1,this.scale="m",this.status="idle"}handleIconEl(){this.requestedIcon=aa(hk,this.icon,this.status)}connectedCallback(){this.requestedIcon=aa(hk,this.icon,this.status)}render(){let t=this.el.hidden;return X(Gr,{key:"c7d1b37721cec28dee1020b81ff66dee7fc8bc44","calcite-hydrated-hidden":t},this.renderIcon(this.requestedIcon),X("slot",{key:"7147d81e906765c154b4a61e31706a72c1ef3ae0"}))}renderIcon(t){if(t)return X("calcite-icon",{class:"calcite-input-message-icon",flipRtl:this.iconFlipRtl,icon:t,scale:"s"})}get el(){return this}static get watchers(){return{status:["handleIconEl"],icon:["handleIconEl"]}}static get style(){return UY}},[1,"calcite-input-message",{icon:[520],iconFlipRtl:[516,"icon-flip-rtl"],scale:[513],status:[513]},void 0,{status:["handleIconEl"],icon:["handleIconEl"]}]);R4()});function D4(){if(typeof customElements>"u")return;["calcite-progress"].forEach(t=>{switch(t){case"calcite-progress":customElements.get(t)||customElements.define(t,BY);break}})}var zY,WY,BY,wk=V(()=>{Wt();jr();Np();zY=":host{position:relative;display:block;inline-size:100%}.track,.bar{position:absolute;inset-block-start:0px;block-size:2px}.track{z-index:var(--calcite-z-index);inline-size:100%;overflow:hidden;background-color:var(--calcite-progress-background-color, var(--calcite-color-border-3))}.bar{z-index:var(--calcite-z-index);background-color:var(--calcite-progress-fill-color, var(--calcite-color-brand))}@media (forced-colors: active){.track{background-color:highlightText}.bar{background-color:linkText}}.indeterminate{inline-size:20%;animation:looping-progress-bar-ani calc(var(--calcite-internal-animation-timing-medium) / var(--calcite-internal-duration-factor) * 11 / var(--calcite-internal-duration-factor)) linear infinite}.indeterminate.calcite--rtl{animation-name:looping-progress-bar-ani-rtl}.reversed{animation-direction:reverse}.text{padding-inline:0px;padding-block:1rem 0px;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-progress-text-color, var(--calcite-color-text-2))}@keyframes looping-progress-bar-ani{0%{transform:translate3d(-100%, 0, 0)}50%{inline-size:40%}100%{transform:translate3d(600%, 0, 0)}}@keyframes looping-progress-bar-ani-rtl{0%{transform:translate3d(100%, 0, 0)}50%{inline-size:40%}100%{transform:translate3d(-600%, 0, 0)}}:host([hidden]){display:none}[hidden]{display:none}",WY=zY,BY=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.type="determinate",this.value=0,this.label=void 0,this.text=void 0,this.reversed=!1}render(){let r=this.type==="determinate"?{width:`${this.value*100}%`}:{},n=Fc(this.el);return X("div",{key:"92597fefec948e4494425db28cd87bfad3cc76f8","aria-label":this.label||this.text,"aria-valuemax":1,"aria-valuemin":0,"aria-valuenow":this.value,role:"progressbar"},X("div",{key:"d2a8ec085909b4bd35f443d0e831d645fb159317",class:"track"},X("div",{key:"2dd26e56a0f344d02f1b4068167f61d9da4d2cbd",class:{bar:!0,indeterminate:this.type==="indeterminate",[fg.rtl]:n==="rtl",reversed:this.reversed},style:r})),this.text?X("div",{class:"text"},this.text):null)}get el(){return this}static get style(){return WY}},[1,"calcite-progress",{type:[513],value:[2],label:[1],text:[1],reversed:[516]}]);D4()});function U4(){if(typeof customElements>"u")return;["calcite-input","calcite-icon","calcite-input-message","calcite-progress"].forEach(t=>{switch(t){case"calcite-input":customElements.get(t)||customElements.define(t,F4);break;case"calcite-icon":customElements.get(t)||Hr();break;case"calcite-input-message":customElements.get(t)||R4();break;case"calcite-progress":customElements.get(t)||D4();break}})}var Wn,$4,yk,GY,jY,HY,F4,bk=V(()=>{Wt();jr();s4();bg();Eg();qy();ca();Vo();$o();Np();la();zc();fk();mk();bs();gk();wk();Wn={loader:"loader",clearButton:"clear-button",editingEnabled:"editing-enabled",inlineChild:"inline-child",inputIcon:"icon",prefix:"prefix",suffix:"suffix",numberButtonWrapper:"number-button-wrapper",buttonItemHorizontal:"number-button-item--horizontal",wrapper:"element-wrapper",inputWrapper:"wrapper",actionWrapper:"action-wrapper",resizeIconWrapper:"resize-icon-wrapper",numberButtonItem:"number-button-item"},$4={validationMessage:"inputValidationMessage"},yk={tel:"phone",password:"lock",email:"email-address",date:"calendar",time:"clock",search:"search"},GY={action:"action"},jY=`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{block-size:1.5rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) textarea{block-size:1.5rem;min-block-size:1.5rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{block-size:1.5rem}:host([scale=s]) input[type=file]{block-size:1.5rem}:host([scale=s]) .clear-button{min-block-size:1.5rem;min-inline-size:1.5rem}:host([scale=s]) textarea{block-size:auto;padding-block:0.25rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{block-size:2rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) textarea{min-block-size:2rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{block-size:2rem}:host([scale=m]) input[type=file]{block-size:2rem}:host([scale=m]) .clear-button{min-block-size:2rem;min-inline-size:2rem}:host([scale=m]) textarea{block-size:auto;padding-block:0.5rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) textarea{min-block-size:2.75rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{block-size:2.75rem}:host([scale=l]) input[type=file]{block-size:2.75rem}:host([scale=l]) .clear-button{min-block-size:2.75rem;min-inline-size:2.75rem}:host([scale=l]) textarea{block-size:auto;padding-block:0.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([disabled]) textarea{resize:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}textarea,input{transition:var(--calcite-animation-timing), block-size 0, outline-offset 0s;-webkit-appearance:none;position:relative;margin:0px;box-sizing:border-box;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;flex:1 1 0%;border-radius:0px;background-color:var(--calcite-color-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-1)}input[type=search]::-webkit-search-decoration{-webkit-appearance:none}input,textarea{text-overflow:ellipsis;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);color:var(--calcite-color-text-1)}input:placeholder-shown,textarea:placeholder-shown{text-overflow:ellipsis}input:focus,textarea:focus{border-color:var(--calcite-color-brand);color:var(--calcite-color-text-1)}input[readonly],textarea[readonly]{background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium)}input[readonly]:focus,textarea[readonly]:focus{color:var(--calcite-color-text-1)}calcite-icon{color:var(--calcite-color-text-3)}textarea,input{outline-color:transparent}textarea:focus,input:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(
|
|
72
|
+
);--calcite-internal-dialog-shown-position:var(--calcite-dialog-offset-y, 0);inset-inline-start:var(--calcite-dialog-offset-x, 0);inset-block-start:var(--calcite-internal-dialog-hidden-position)}.dialog--opening-active{inset-block-start:var(--calcite-internal-dialog-shown-position)}:host([menu-open]) .dialog{transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88)}.panel{border-radius:0.25rem}.container--open{opacity:1;visibility:visible;transition-delay:0ms}.container--open .dialog{pointer-events:auto;visibility:visible;opacity:1;transition:inset-block var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}:host([width=small]) .dialog{inline-size:auto}:host([width-scale=s]) .dialog{inline-size:var(--calcite-dialog-size-x, 32rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 35rem){:host([width-scale=s]) .dialog{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}:host([width-scale=s]) .dialog--opening-active{inset-block-start:0}}:host([width-scale=m]) .dialog{inline-size:var(--calcite-dialog-size-x, 48rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 51rem){:host([width-scale=m]) .dialog{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}:host([width-scale=m]) .dialog--opening-active{inset-block-start:0}}:host([width-scale=l]) .dialog{inline-size:var(--calcite-dialog-size-x, 94rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 97rem){:host([width-scale=l]) .dialog{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}:host([width-scale=l]) .dialog--opening-active{inset-block-start:0}}:host([placement=cover]) .dialog{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px}:host([placement=cover]) .panel{border-radius:0px}:host([kind]) .panel{border-start-start-radius:0px;border-start-end-radius:0px}:host([kind=brand]) .dialog{border-color:var(--calcite-color-brand)}:host([kind=danger]) .dialog{border-color:var(--calcite-color-status-danger)}:host([kind=info]) .dialog{border-color:var(--calcite-color-status-info)}:host([kind=success]) .dialog{border-color:var(--calcite-color-status-success)}:host([kind=warning]) .dialog{border-color:var(--calcite-color-status-warning)}:host([kind=brand][open]) .dialog,:host([kind=danger][open]) .dialog,:host([kind=info][open]) .dialog,:host([kind=success][open]) .dialog,:host([kind=warning][open]) .dialog{border-width:0px;border-block-start-width:4px;border-style:solid}.container--embedded{position:absolute;pointer-events:auto}.container--embedded calcite-scrim{position:absolute}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}`,LY=AY,Nx=0,ok="",ak=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteDialogBeforeClose=Lt(this,"calciteDialogBeforeClose",6),this.calciteDialogClose=Lt(this,"calciteDialogClose",6),this.calciteDialogBeforeOpen=Lt(this,"calciteDialogBeforeOpen",6),this.calciteDialogOpen=Lt(this,"calciteDialogOpen",6),this.calciteDialogScroll=Lt(this,"calciteDialogScroll",6),this.openTransitionProp="opacity",this.resizePosition={...ik},this.dragPosition={...nk},this.ignoreOpenChange=!1,this.mutationObserver=yr("mutation",()=>this.handleMutationObserver()),this.handleKeyDown=t=>{let{key:r,shiftKey:n,defaultPrevented:i}=t,{dragEnabled:o,resizable:s,resizePosition:c,dragPosition:a,transitionEl:d}=this;if(!(i||!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(r)))switch(r){case"ArrowUp":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().height-Zc,type:"blockSize"}),c.bottom-=Zc,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.y-=yb,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowDown":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().height+Zc,type:"blockSize"}),c.bottom+=Zc,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.y+=yb,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowLeft":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width-Zc,type:"inlineSize"}),c.right-=Zc,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.x-=yb,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowRight":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width+Zc,type:"inlineSize"}),c.right+=Zc,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.x+=yb,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break}},this.setTransitionEl=t=>{this.transitionEl=t,this.setupInteractions()},this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteDialogOpen",this.openEnd)},this.handleInternalPanelScroll=t=>{t.target===this.panelEl&&(t.stopPropagation(),this.calciteDialogScroll.emit())},this.handleInternalPanelCloseClick=t=>{t.target===this.panelEl&&(t.stopPropagation(),this.open=!1)},this.handlePanelKeyDown=t=>{this.escapeDisabled&&t.key==="Escape"&&t.preventDefault()},this.handleOutsideClose=()=>{this.outsideCloseDisabled||(this.open=!1)},this.closeDialog=async()=>{if(this.beforeClose)try{await this.beforeClose()}catch{requestAnimationFrame(()=>{this.ignoreOpenChange=!0,this.open=!0,this.ignoreOpenChange=!1});return}Nx--,this.opened=!1,this.updateOverflowHiddenClass()},this.updateOverflowHiddenClass=()=>{this.opened&&!this.embedded&&this.modal?this.addOverflowHiddenClass():this.removeOverflowHiddenClass()},this.handleMutationObserver=()=>{this.updateFocusTrapElements()},this.beforeClose=void 0,this.description=void 0,this.dragEnabled=!1,this.closeDisabled=!1,this.embedded=!1,this.escapeDisabled=!1,this.heading=void 0,this.headingLevel=void 0,this.kind=void 0,this.loading=!1,this.menuOpen=!1,this.messages=void 0,this.messageOverrides=void 0,this.modal=!1,this.open=!1,this.outsideCloseDisabled=!1,this.overlayPositioning="absolute",this.placement="center",this.resizable=!1,this.scale="m",this.widthScale="m",this.opened=!1,this.hasFooter=!0,this.hasContentTop=!1,this.hasContentBottom=!1,this.effectiveLocale=void 0,this.defaultMessages=void 0,this.assistiveText=null}onMessagesChange(){}onModalChange(){this.updateOverflowHiddenClass()}async componentWillLoad(){await Fn(this),Nn(this),this.open&&this.openDialog()}componentDidLoad(){Rn(this)}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),cn(this),Vn(this),Ky(this),this.setupInteractions()}disconnectedCallback(){this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),Fu(this),ln(this),zn(this),this.embedded=!1,this.cleanupInteractions()}render(){let{assistiveText:t,description:r,heading:n,opened:i}=this;return X(Gr,{key:"bf406255eaa6d94c8443af185a74a2b2d58c6d59"},X("div",{key:"de2a34b6da4a82c66e9fafdbdd2056e4e11e1315",class:{[qc.container]:!0,[qc.containerOpen]:i,[qc.containerEmbedded]:this.embedded}},this.modal?X("calcite-scrim",{class:qc.scrim,onClick:this.handleOutsideClose}):null,X("div",{key:"be47093e3a955ce45a71c555700143a4a1c7a166","aria-description":r,"aria-label":n,"aria-modal":Ir(this.modal),class:qc.dialog,onKeyDown:this.handleKeyDown,ref:this.setTransitionEl,role:"dialog"},t?X("div",{"aria-live":"polite",class:qc.assistiveText,key:"assistive-text"},t):null,X("slot",{key:"6ed9f10ae7d5ecc1ec9062d6aba559001d5194e6",name:ki.content},X("calcite-panel",{key:"cd6ebaa7d7362cbeb70e9ae623f38298d1e831e3",beforeClose:this.beforeClose,class:qc.panel,closable:!this.closeDisabled,closed:!i,description:r,heading:n,headingLevel:this.headingLevel,loading:this.loading,menuOpen:this.menuOpen,messageOverrides:this.messageOverrides,onCalcitePanelClose:this.handleInternalPanelCloseClick,onCalcitePanelScroll:this.handleInternalPanelScroll,onKeyDown:this.handlePanelKeyDown,overlayPositioning:this.overlayPositioning,ref:o=>this.panelEl=o,scale:this.scale},X("slot",{key:"2ce955775c33b09fc849a083d0bcc1c8ce523dd8",name:ki.actionBar,slot:qt.actionBar}),X("slot",{key:"dd44184de251320af6225baa2e59571b881a23cd",name:ki.alerts,slot:qt.alerts}),X("slot",{key:"da343a1a10e015b04b37463c10592e612a576e9b",name:ki.headerActionsStart,slot:qt.headerActionsStart}),X("slot",{key:"6680fde2bd7ad6dc5803c78ea7250d11d4920b7c",name:ki.headerActionsEnd,slot:qt.headerActionsEnd}),X("slot",{key:"a17ca64188ffe6000792e67eafc838df575ebbc3",name:ki.headerContent,slot:qt.headerContent}),X("slot",{key:"7e048c4a9104053ca0a61ab2514b018efb4fc872",name:ki.headerMenuActions,slot:qt.headerMenuActions}),X("slot",{key:"6760c8a6c105a511fcb859cfd222f8c1355a82c4",name:ki.fab,slot:qt.fab}),X("slot",{key:"e0f2e7644281d408d8c21ce5bf16b08af0a59c3b",name:ki.contentTop,slot:qt.contentTop}),X("slot",{key:"01889c3b7fc13bc49521c27feb2ab35346552504",name:ki.contentBottom,slot:qt.contentBottom}),X("slot",{key:"593bad35110b5d7e7b44d598b397e4b87cc28e28",name:ki.footerStart,slot:qt.footerStart}),X("slot",{key:"5e84099e096a6afb678cce9731b189f4011dc067",name:ki.footer,slot:qt.footer}),X("slot",{key:"69a805bd0c1f43a6d165939e62db562428f39f11",name:ki.footerEnd,slot:qt.footerEnd}),X("slot",{key:"b49e14ff6d2c63caaa8fd296920618e7673eb71b"}))))))}effectiveLocaleChange(){Un(this,this.effectiveLocale)}handleInteractionChange(){this.setupInteractions()}updateAssistiveText(){let{messages:t}=this;this.assistiveText=t&&(this.dragEnabled||this.resizable)?`${this.dragEnabled?t.dragEnabled:""} ${this.resizable?t.resizeEnabled:""}`:null}handleEscape(t){this.open&&!this.escapeDisabled&&t.key==="Escape"&&!t.defaultPrevented&&(this.open=!1,t.preventDefault())}async setFocus(){return await Dn(this),this.panelEl?.setFocus()??Bp(this.el)}async updateFocusTrapElements(){Qy(this)}async scrollContentTo(t){await this.panelEl?.scrollContentTo(t)}onBeforeOpen(){this.calciteDialogBeforeOpen.emit()}onOpen(){this.calciteDialogOpen.emit(),Ag(this)}onBeforeClose(){this.calciteDialogBeforeClose.emit()}onClose(){this.calciteDialogClose.emit(),Fu(this)}toggleDialog(t){this.ignoreOpenChange||(t?this.openDialog():this.closeDialog())}handleOpenedChange(t){this.transitionEl.classList.toggle(qc.openingActive,t),Gc(this)}async triggerInteractModifiers(){let{interaction:t}=this;t&&(await t.reflow({name:"drag"}),await t.reflow({name:"resize"}))}getTransitionElDOMRect(){return this.transitionEl.getBoundingClientRect()}updateTransform(){let{dragPosition:{x:t,y:r},resizePosition:n,transitionEl:i}=this;if(!i)return;let{top:o,right:s,bottom:c,left:a}=this.getAdjustedResizePosition(n),d=Math.round(t+a+s),h=Math.round(r+o+c);i.style.transform=`translate(${d}px, ${h}px)`}updateSize({type:t,size:r}){let{transitionEl:n}=this;n&&(n.style[t]=r!==null?`${Math.round(r)}px`:null)}cleanupInteractions(){this.interaction?.unset(),this.updateSize({size:null,type:"inlineSize"}),this.updateSize({size:null,type:"blockSize"}),this.dragPosition={...nk},this.resizePosition={...ik},this.updateTransform()}setupInteractions(){this.cleanupInteractions();let{el:t,transitionEl:r,resizable:n,dragEnabled:i,resizePosition:o,dragPosition:s}=this;if(!(!r||!this.open)){if((n||i)&&(this.interaction=wb(r,{context:t.ownerDocument})),n){let{minInlineSize:c,minBlockSize:a,maxInlineSize:d,maxBlockSize:h}=window.getComputedStyle(r);this.interaction.resizable({edges:{top:!0,right:!0,bottom:!0,left:!0},modifiers:[wb.modifiers.restrictSize({min:{width:this.isPixelValue(c)?parseInt(c,10):0,height:this.isPixelValue(a)?parseInt(a,10):0},max:{width:this.isPixelValue(d)?parseInt(d,10):window.innerWidth,height:this.isPixelValue(h)?parseInt(h,10):window.innerHeight}}),wb.modifiers.restrict({restriction:"parent"})],listeners:{move:({rect:g,deltaRect:v})=>{v&&(o.top+=v.top,o.right+=v.right,o.bottom+=v.bottom,o.left+=v.left),this.updateSize({size:g.width,type:"inlineSize"}),this.updateSize({size:g.height,type:"blockSize"}),this.updateTransform()}}})}i&&this.interaction.draggable({modifiers:[wb.modifiers.restrictRect({restriction:"parent"})],listeners:{move:({dx:c,dy:a})=>{s.x+=c,s.y+=a,this.updateTransform()}}})}}isPixelValue(t){return t.indexOf("px")!==-1}getAdjustedResizePosition({top:t,right:r,bottom:n,left:i}){let o=t/2,s=r/2,c=n/2,a=i/2;switch(this.placement){case"top":return{top:t,right:s,bottom:0,left:a};case"top-start":return{top:t,right:0,bottom:0,left:i};case"top-end":return{top:t,right:r,bottom:0,left:0};case"bottom":return{top:0,right:s,bottom:n,left:a};case"bottom-start":return{top:0,right:0,bottom:n,left:i};case"bottom-end":return{top:0,right:r,bottom:n,left:0};case"cover":case"center":default:return{top:o,right:s,bottom:c,left:a}}}async openDialog(){await Gy(this.el),this.el.addEventListener("calciteDialogOpen",this.openEnd),this.opened=!0,this.updateOverflowHiddenClass()}addOverflowHiddenClass(){Nx===0&&(ok=document.documentElement.style.overflow),Nx++,document.documentElement.style.setProperty("overflow","hidden")}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",ok)}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{messageOverrides:["onMessagesChange"],modal:["onModalChange"],effectiveLocale:["effectiveLocaleChange"],open:["handleInteractionChange","toggleDialog"],placement:["handleInteractionChange"],resizable:["handleInteractionChange","updateAssistiveText"],dragEnabled:["handleInteractionChange","updateAssistiveText"],messages:["updateAssistiveText"],opened:["handleOpenedChange"]}}static get style(){return LY}},[1,"calcite-dialog",{beforeClose:[16],description:[1],dragEnabled:[516,"drag-enabled"],closeDisabled:[516,"close-disabled"],embedded:[1028],escapeDisabled:[516,"escape-disabled"],heading:[1],headingLevel:[514,"heading-level"],kind:[513],loading:[516],menuOpen:[516,"menu-open"],messages:[1040],messageOverrides:[1040],modal:[516],open:[1540],outsideCloseDisabled:[516,"outside-close-disabled"],overlayPositioning:[513,"overlay-positioning"],placement:[513],resizable:[516],scale:[513],widthScale:[513,"width-scale"],opened:[32],hasFooter:[32],hasContentTop:[32],hasContentBottom:[32],effectiveLocale:[32],defaultMessages:[32],assistiveText:[32],setFocus:[64],updateFocusTrapElements:[64],scrollContentTo:[64]},[[8,"keydown","handleEscape"]],{messageOverrides:["onMessagesChange"],modal:["onModalChange"],effectiveLocale:["effectiveLocaleChange"],open:["handleInteractionChange","toggleDialog"],placement:["handleInteractionChange"],resizable:["handleInteractionChange","updateAssistiveText"],dragEnabled:["handleInteractionChange","updateAssistiveText"],messages:["updateAssistiveText"],opened:["handleOpenedChange"]}]);ck();kY=ak,OY=ck});var NY,dk,fk=V(()=>{Wt();NY={validationContainer:"validation-container"},dk=({scale:e,status:t,id:r,icon:n,message:i})=>X("div",{class:NY.validationContainer},X("calcite-input-message",{"aria-live":"polite",icon:n,id:r,scale:e,status:t},i))});function Xp(e,t,r,n){let i=r.toLowerCase(),o=e[r];n&&o!=null?t.setAttribute(i,`${o}`):t.removeAttribute(i)}function pk(e,t,r){r.type=e==="textarea"?"text":e;let n=RY.includes(e),i=t;Xp(i,r,"min",n),Xp(i,r,"max",n),Xp(i,r,"step",n);let o=$Y.includes(e),s=t;Xp(s,r,"minLength",o),Xp(s,r,"maxLength",o);let c=DY.includes(e);Xp(s,r,"pattern",c)}var RY,DY,$Y,mk=V(()=>{RY=["date","datetime-local","month","number","range","time","week"],DY=["email","password","search","tel","text","url"],$Y=["email","password","search","tel","text","textarea","url"]});function Rx(){if(typeof customElements>"u")return;["calcite-input-message","calcite-icon"].forEach(t=>{switch(t){case"calcite-input-message":customElements.get(t)||customElements.define(t,VY);break;case"calcite-icon":customElements.get(t)||Hr();break}})}var hk,FY,UY,VY,gk=V(()=>{Wt();jr();bs();hk={valid:"check-circle",invalid:"exclamation-mark-triangle",idle:"information"},FY=":host{box-sizing:border-box;display:flex;block-size:auto;inline-size:100%;align-items:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);opacity:1;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;--calcite-input-message-spacing-value:0.25rem;margin-block-start:var(--calcite-input-message-spacing-value)}.calcite-input-message-icon{pointer-events:none;display:inline-flex;flex-shrink:0;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;margin-inline-end:0.5rem}:host([status=invalid]) .calcite-input-message-icon{color:var(--calcite-color-status-danger)}:host([status=warning]) .calcite-input-message-icon{color:var(--calcite-color-status-warning)}:host([status=valid]) .calcite-input-message-icon{color:var(--calcite-color-status-success)}:host([status=idle]) .calcite-input-message-icon{color:var(--calcite-color-brand)}:host([scale=s]){font-size:var(--calcite-font-size--3);line-height:0.75rem}:host([scale=m]){font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([hidden]){display:none}[hidden]{display:none}",UY=FY,VY=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.icon=void 0,this.iconFlipRtl=!1,this.scale="m",this.status="idle"}handleIconEl(){this.requestedIcon=aa(hk,this.icon,this.status)}connectedCallback(){this.requestedIcon=aa(hk,this.icon,this.status)}render(){let t=this.el.hidden;return X(Gr,{key:"c7d1b37721cec28dee1020b81ff66dee7fc8bc44","calcite-hydrated-hidden":t},this.renderIcon(this.requestedIcon),X("slot",{key:"7147d81e906765c154b4a61e31706a72c1ef3ae0"}))}renderIcon(t){if(t)return X("calcite-icon",{class:"calcite-input-message-icon",flipRtl:this.iconFlipRtl,icon:t,scale:"s"})}get el(){return this}static get watchers(){return{status:["handleIconEl"],icon:["handleIconEl"]}}static get style(){return UY}},[1,"calcite-input-message",{icon:[520],iconFlipRtl:[516,"icon-flip-rtl"],scale:[513],status:[513]},void 0,{status:["handleIconEl"],icon:["handleIconEl"]}]);Rx()});function Dx(){if(typeof customElements>"u")return;["calcite-progress"].forEach(t=>{switch(t){case"calcite-progress":customElements.get(t)||customElements.define(t,BY);break}})}var zY,WY,BY,wk=V(()=>{Wt();jr();Np();zY=":host{position:relative;display:block;inline-size:100%}.track,.bar{position:absolute;inset-block-start:0px;block-size:2px}.track{z-index:var(--calcite-z-index);inline-size:100%;overflow:hidden;background-color:var(--calcite-progress-background-color, var(--calcite-color-border-3))}.bar{z-index:var(--calcite-z-index);background-color:var(--calcite-progress-fill-color, var(--calcite-color-brand))}@media (forced-colors: active){.track{background-color:highlightText}.bar{background-color:linkText}}.indeterminate{inline-size:20%;animation:looping-progress-bar-ani calc(var(--calcite-internal-animation-timing-medium) / var(--calcite-internal-duration-factor) * 11 / var(--calcite-internal-duration-factor)) linear infinite}.indeterminate.calcite--rtl{animation-name:looping-progress-bar-ani-rtl}.reversed{animation-direction:reverse}.text{padding-inline:0px;padding-block:1rem 0px;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-progress-text-color, var(--calcite-color-text-2))}@keyframes looping-progress-bar-ani{0%{transform:translate3d(-100%, 0, 0)}50%{inline-size:40%}100%{transform:translate3d(600%, 0, 0)}}@keyframes looping-progress-bar-ani-rtl{0%{transform:translate3d(100%, 0, 0)}50%{inline-size:40%}100%{transform:translate3d(-600%, 0, 0)}}:host([hidden]){display:none}[hidden]{display:none}",WY=zY,BY=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.type="determinate",this.value=0,this.label=void 0,this.text=void 0,this.reversed=!1}render(){let r=this.type==="determinate"?{width:`${this.value*100}%`}:{},n=Fc(this.el);return X("div",{key:"92597fefec948e4494425db28cd87bfad3cc76f8","aria-label":this.label||this.text,"aria-valuemax":1,"aria-valuemin":0,"aria-valuenow":this.value,role:"progressbar"},X("div",{key:"d2a8ec085909b4bd35f443d0e831d645fb159317",class:"track"},X("div",{key:"2dd26e56a0f344d02f1b4068167f61d9da4d2cbd",class:{bar:!0,indeterminate:this.type==="indeterminate",[fg.rtl]:n==="rtl",reversed:this.reversed},style:r})),this.text?X("div",{class:"text"},this.text):null)}get el(){return this}static get style(){return WY}},[1,"calcite-progress",{type:[513],value:[2],label:[1],text:[1],reversed:[516]}]);Dx()});function Ux(){if(typeof customElements>"u")return;["calcite-input","calcite-icon","calcite-input-message","calcite-progress"].forEach(t=>{switch(t){case"calcite-input":customElements.get(t)||customElements.define(t,Fx);break;case"calcite-icon":customElements.get(t)||Hr();break;case"calcite-input-message":customElements.get(t)||Rx();break;case"calcite-progress":customElements.get(t)||Dx();break}})}var Wn,$x,yk,GY,jY,HY,Fx,bk=V(()=>{Wt();jr();sx();bg();Eg();qy();ca();Vo();$o();Np();la();zc();fk();mk();bs();gk();wk();Wn={loader:"loader",clearButton:"clear-button",editingEnabled:"editing-enabled",inlineChild:"inline-child",inputIcon:"icon",prefix:"prefix",suffix:"suffix",numberButtonWrapper:"number-button-wrapper",buttonItemHorizontal:"number-button-item--horizontal",wrapper:"element-wrapper",inputWrapper:"wrapper",actionWrapper:"action-wrapper",resizeIconWrapper:"resize-icon-wrapper",numberButtonItem:"number-button-item"},$x={validationMessage:"inputValidationMessage"},yk={tel:"phone",password:"lock",email:"email-address",date:"calendar",time:"clock",search:"search"},GY={action:"action"},jY=`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{block-size:1.5rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) textarea{block-size:1.5rem;min-block-size:1.5rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{block-size:1.5rem}:host([scale=s]) input[type=file]{block-size:1.5rem}:host([scale=s]) .clear-button{min-block-size:1.5rem;min-inline-size:1.5rem}:host([scale=s]) textarea{block-size:auto;padding-block:0.25rem;padding-inline:0.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{block-size:2rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) textarea{min-block-size:2rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{block-size:2rem}:host([scale=m]) input[type=file]{block-size:2rem}:host([scale=m]) .clear-button{min-block-size:2rem;min-inline-size:2rem}:host([scale=m]) textarea{block-size:auto;padding-block:0.5rem;padding-inline:0.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) textarea{min-block-size:2.75rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{block-size:2.75rem}:host([scale=l]) input[type=file]{block-size:2.75rem}:host([scale=l]) .clear-button{min-block-size:2.75rem;min-inline-size:2.75rem}:host([scale=l]) textarea{block-size:auto;padding-block:0.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([disabled]) textarea{resize:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}textarea,input{transition:var(--calcite-animation-timing), block-size 0, outline-offset 0s;-webkit-appearance:none;position:relative;margin:0px;box-sizing:border-box;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;flex:1 1 0%;border-radius:0px;background-color:var(--calcite-color-foreground-1);font-family:inherit;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-1)}input[type=search]::-webkit-search-decoration{-webkit-appearance:none}input,textarea{text-overflow:ellipsis;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);color:var(--calcite-color-text-1)}input:placeholder-shown,textarea:placeholder-shown{text-overflow:ellipsis}input:focus,textarea:focus{border-color:var(--calcite-color-brand);color:var(--calcite-color-text-1)}input[readonly],textarea[readonly]{background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium)}input[readonly]:focus,textarea[readonly]:focus{color:var(--calcite-color-text-1)}calcite-icon{color:var(--calcite-color-text-3)}textarea,input{outline-color:transparent}textarea:focus,input:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(
|
|
73
73
|
-2px *
|
|
74
74
|
calc(
|
|
75
75
|
1 -
|
|
@@ -99,7 +99,7 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`)}Ij(thi
|
|
|
99
99
|
1
|
|
100
100
|
)
|
|
101
101
|
)
|
|
102
|
-
)}.clear-button:disabled{opacity:var(--calcite-opacity-disabled)}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}.action-wrapper{order:7;display:flex}.prefix,.suffix{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;user-select:none;align-content:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-color-text-2)}.prefix{order:2;border-inline-end-width:0px;inline-size:var(--calcite-input-prefix-size, auto)}.suffix{order:5;border-inline-start-width:0px;inline-size:var(--calcite-input-suffix-size, auto)}:host([alignment=start]) textarea,:host([alignment=start]) input{text-align:start}:host([alignment=end]) textarea,:host([alignment=end]) input{text-align:end}input[type=number]{-moz-appearance:textfield}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0px}.number-button-wrapper{pointer-events:none;order:6;box-sizing:border-box;display:flex;flex-direction:column;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}:host([number-button-type=vertical]) .wrapper{flex-direction:row;display:flex}:host([number-button-type=vertical]) input,:host([number-button-type=vertical]) textarea{order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down],.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:1;max-block-size:100%;min-block-size:100%;align-self:stretch}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover{background-color:var(--calcite-color-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon{color:var(--calcite-color-text-1)}.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:5}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover{background-color:var(--calcite-color-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover{background-color:var(--calcite-color-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover{background-color:var(--calcite-color-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px}.number-button-item{max-block-size:50%;min-block-size:50%;pointer-events:initial;margin:0px;box-sizing:border-box;display:flex;cursor:pointer;align-items:center;align-self:center;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);padding-block:0px;padding-inline:0.5rem;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline-start-width:0px}.number-button-item calcite-icon{pointer-events:none;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.number-button-item:focus{background-color:var(--calcite-color-foreground-2)}.number-button-item:focus calcite-icon{color:var(--calcite-color-text-1)}.number-button-item:active{background-color:var(--calcite-color-foreground-3)}.number-button-item:disabled{pointer-events:none}.wrapper{position:relative;display:flex;flex-direction:row;align-items:center}:input::-webkit-calendar-picker-indicator{display:none}input[type=date]::-webkit-input-placeholder{visibility:hidden !important}textarea::-webkit-resizer{position:absolute;inset-block-end:0px;box-sizing:border-box;padding-block:0px;padding-inline:0.25rem;inset-inline-end:0}.resize-icon-wrapper{inset-block-end:2px;inset-inline-end:2px;pointer-events:none;position:absolute;block-size:0.75rem;inline-size:0.75rem;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-3)}.resize-icon-wrapper calcite-icon{inset-block-end:0.25rem;inset-inline-end:0.25rem;transform:rotate(-45deg)}.calcite--rtl .resize-icon-wrapper calcite-icon{transform:rotate(45deg)}:host([type=color]) input{padding:0.25rem}:host([type=file]) input{cursor:pointer;border-width:1px;border-style:dashed;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);text-align:center}:host([type=file][scale=s]) input{padding-block:1px;padding-inline:0.5rem}:host([type=file][scale=m]) input{padding-block:0.25rem;padding-inline:0.75rem}:host([type=file][scale=l]) input{padding-block:0.5rem;padding-inline:1rem}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-color-border-1)}input.inline-child{background-color:transparent;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}input.inline-child .editing-enabled{background-color:inherit}input.inline-child:not(.editing-enabled){display:flex;cursor:pointer;text-overflow:ellipsis;border-color:transparent;padding-inline-start:0}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:0.5rem}:host([scale=s]) .validation-container{padding-block-start:0.25rem}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}:host([hidden]){display:none}[hidden]{display:none}`,HY=jY,F4=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteInternalInputFocus=Lt(this,"calciteInternalInputFocus",6),this.calciteInternalInputBlur=Lt(this,"calciteInternalInputBlur",6),this.calciteInputInput=Lt(this,"calciteInputInput",7),this.calciteInputChange=Lt(this,"calciteInputChange",6),this.childElType="input",this.previousValueOrigin="initial",this.mutationObserver=yr("mutation",()=>this.setDisabledAction()),this.userChangedValue=!1,this.keyDownHandler=t=>{this.readOnly||this.disabled||t.defaultPrevented||(this.isClearable&&t.key==="Escape"&&(this.clearInputValue(t),t.preventDefault()),t.key==="Enter"&&zy(this)&&t.preventDefault())},this.clearInputValue=t=>{this.setValue({committing:!0,nativeEvent:t,origin:"user",value:""})},this.emitChangeIfUserModified=()=>{this.previousValueOrigin==="user"&&this.value!==this.previousEmittedValue&&(this.calciteInputChange.emit(),this.setPreviousEmittedValue(this.value))},this.inputBlurHandler=()=>{window.clearInterval(this.nudgeNumberValueIntervalId),this.calciteInternalInputBlur.emit(),this.emitChangeIfUserModified()},this.clickHandler=t=>{if(this.disabled)return;let r=t.composedPath();!r.includes(this.inputWrapperEl)||r.includes(this.actionWrapperEl)||this.setFocus()},this.inputFocusHandler=()=>{this.calciteInternalInputFocus.emit()},this.inputChangeHandler=()=>{this.type==="file"&&(this.files=this.childEl.files)},this.inputInputHandler=t=>{this.disabled||this.readOnly||this.setValue({nativeEvent:t,origin:"user",value:t.target.value})},this.inputKeyDownHandler=t=>{this.disabled||this.readOnly||t.key==="Enter"&&this.emitChangeIfUserModified()},this.inputNumberInputHandler=t=>{if(this.disabled||this.readOnly||this.value==="Infinity"||this.value==="-Infinity")return;let r=t.target.value;Uo.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};let n=Uo.delocalize(r);t.inputType==="insertFromPaste"?(Fo(n)||t.preventDefault(),this.setValue({nativeEvent:t,origin:"user",value:UA(n)}),this.childNumberEl.value=this.displayedValue):this.setValue({nativeEvent:t,origin:"user",value:n})},this.inputNumberKeyDownHandler=t=>{if(this.type!=="number"||this.disabled||this.readOnly)return;if(this.value==="Infinity"||this.value==="-Infinity"){t.preventDefault(),(t.key==="Backspace"||t.key==="Delete")&&this.clearInputValue(t);return}if(t.key==="ArrowUp"){t.preventDefault(),this.nudgeNumberValue("up",t);return}if(t.key==="ArrowDown"){this.nudgeNumberValue("down",t);return}let r=[...Tg,"ArrowLeft","ArrowRight","Backspace","Delete","Enter","Escape","Tab"];if(t.altKey||t.ctrlKey||t.metaKey)return;let n=t.shiftKey&&t.key==="Tab";if(r.includes(t.key)||n){t.key==="Enter"&&this.emitChangeIfUserModified();return}Uo.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},!(t.key===Uo.decimal&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.indexOf(Uo.decimal)===-1))&&(/[eE]/.test(t.key)&&(!this.value&&!this.childNumberEl.value||this.value&&!/[eE]/.test(this.childNumberEl.value))||t.key==="-"&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.split("-").length<=2)||t.preventDefault())},this.nudgeNumberValue=(t,r)=>{if(r instanceof KeyboardEvent&&r.repeat||this.type!=="number")return;let n=this.maxString?parseFloat(this.maxString):null,i=this.minString?parseFloat(this.minString):null,o=150;this.incrementOrDecrementNumberValue(t,n,i,r),this.nudgeNumberValueIntervalId&&window.clearInterval(this.nudgeNumberValueIntervalId);let s=!0;this.nudgeNumberValueIntervalId=window.setInterval(()=>{if(s){s=!1;return}this.incrementOrDecrementNumberValue(t,n,i,r)},o)},this.numberButtonPointerUpAndOutHandler=()=>{window.clearInterval(this.nudgeNumberValueIntervalId)},this.numberButtonPointerDownHandler=t=>{if(!gA(t))return;t.preventDefault();let r=t.target.dataset.adjustment;this.disabled||this.nudgeNumberValue(r,t)},this.onHiddenFormInputInput=t=>{t.target.name===this.name&&this.setValue({value:t.target.value,origin:"direct"}),this.setFocus(),t.stopPropagation()},this.setChildElRef=t=>{this.childEl=t},this.setChildNumberElRef=t=>{this.childNumberEl=t},this.setInputValue=t=>{this.type==="text"&&!this.childEl||this.type==="number"&&!this.childNumberEl||(this[`child${this.type==="number"?"Number":""}El`].value=t)},this.setPreviousEmittedValue=t=>{this.previousEmittedValue=this.normalizeValue(t)},this.setPreviousValue=t=>{this.previousValue=this.normalizeValue(t)},this.setValue=({committing:t=!1,nativeEvent:r,origin:n,previousValue:i,value:o})=>{if(this.setPreviousValue(i??this.value),this.previousValueOrigin=n,this.type==="number"){Uo.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator,signDisplay:"never"};let s=this.previousValue?.length>o.length||this.value?.length>o.length,c=o.charAt(o.length-1)===".",a=c&&s?o:zA(o),d=o&&!a?Fo(this.previousValue)?this.previousValue:"":a,h=Uo.localize(d);n!=="connected"&&!c&&(h=WA(h,d,Uo)),this.displayedValue=c&&s?`${h}${Uo.decimal}`:h,this.userChangedValue=n==="user"&&this.value!==d,this.value=["-","."].includes(d)?"":d}else this.userChangedValue=n==="user"&&this.value!==o,this.value=o;n==="direct"&&(this.setInputValue(o),this.previousEmittedValue=o),r&&(this.calciteInputInput.emit().defaultPrevented?(this.value=this.previousValue,this.displayedValue=this.type==="number"?Uo.localize(this.previousValue):this.previousValue):t&&this.emitChangeIfUserModified())},this.inputKeyUpHandler=()=>{window.clearInterval(this.nudgeNumberValueIntervalId)},this.alignment="start",this.autofocus=void 0,this.clearable=!1,this.disabled=!1,this.enterKeyHint=void 0,this.form=void 0,this.groupSeparator=!1,this.icon=void 0,this.iconFlipRtl=!1,this.inputMode=void 0,this.label=void 0,this.loading=!1,this.numberingSystem=void 0,this.localeFormat=!1,this.max=void 0,this.min=void 0,this.maxLength=void 0,this.minLength=void 0,this.validationMessage=void 0,this.validationIcon=void 0,this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.name=void 0,this.numberButtonType="vertical",this.placeholder=void 0,this.prefixText=void 0,this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.step=void 0,this.autocomplete=void 0,this.pattern=void 0,this.accept=void 0,this.multiple=!1,this.suffixText=void 0,this.editingEnabled=!1,this.type="text",this.value="",this.files=void 0,this.messages=void 0,this.messageOverrides=void 0,this.defaultMessages=void 0,this.effectiveLocale="",this.displayedValue=void 0,this.slottedActionElDisabledInternally=!1}handleGlobalAttributesChanged(){to(this)}disabledWatcher(){this.setDisabledAction()}maxWatcher(){this.maxString=this.max?.toString()||null}minWatcher(){this.minString=this.min?.toString()||null}onMessagesChange(){}valueWatcher(t,r){if(!this.userChangedValue){if(this.type==="number"&&(t==="Infinity"||t==="-Infinity")){this.displayedValue=t,this.previousEmittedValue=t;return}this.setValue({origin:"direct",previousValue:r,value:t==null||t==""?"":this.type==="number"?Fo(t)?t:this.previousValue||"":t}),this.warnAboutInvalidNumberValue(t)}this.userChangedValue=!1}updateRequestedIcon(){this.requestedIcon=aa(yk,this.icon,this.type)}get isClearable(){return!this.isTextarea&&(this.clearable||this.type==="search")&&this.value?.length>0}get isTextarea(){return this.childElType==="textarea"}effectiveLocaleChange(){Un(this,this.effectiveLocale)}connectedCallback(){cn(this),Vn(this),this.inlineEditableEl=this.el.closest("calcite-inline-editable"),this.inlineEditableEl&&(this.editingEnabled=this.inlineEditableEl.editingEnabled||!1),jp(this),TA(this),this.mutationObserver?.observe(this.el,{childList:!0}),this.setDisabledAction(),this.el.addEventListener(Wy,this.onHiddenFormInputInput)}disconnectedCallback(){Hy(this),EA(this),ln(this),zn(this),this.mutationObserver?.disconnect(),this.el.removeEventListener(Wy,this.onHiddenFormInputInput)}async componentWillLoad(){Nn(this),this.childElType=this.type==="textarea"?"textarea":"input",this.maxString=this.max?.toString(),this.minString=this.min?.toString(),this.requestedIcon=aa(yk,this.icon,this.type),await Fn(this),this.setPreviousEmittedValue(this.value),this.setPreviousValue(this.value),this.type==="number"&&(this.value==="Infinity"||this.value==="-Infinity"?(this.displayedValue=this.value,this.previousEmittedValue=this.value):(this.warnAboutInvalidNumberValue(this.value),this.setValue({origin:"connected",value:Fo(this.value)?this.value:""})))}componentDidLoad(){Rn(this)}componentShouldUpdate(t,r,n){return this.type==="number"&&n==="value"&&t&&!Fo(t)?(this.setValue({origin:"reset",value:r}),!1):!0}componentDidRender(){Uc(this)}async setFocus(){await Dn(this),this.type==="number"?this.childNumberEl?.focus():this.childEl?.focus()}async selectText(){this.type==="number"?this.childNumberEl?.select():this.childEl?.select()}onLabelClick(){this.setFocus()}incrementOrDecrementNumberValue(t,r,n,i){let{value:o}=this;if(o==="Infinity"||o==="-Infinity")return;let s=t==="up"?1:-1,c=this.step==="any"?1:Math.abs(this.step||1),d=new $n(o!==""?o:"0").add(`${c*s}`),h=()=>typeof n=="number"&&!isNaN(n)&&d.subtract(`${n}`).isNegative,g=()=>typeof r=="number"&&!isNaN(r)&&!d.subtract(`${r}`).isNegative,v=h()?`${n}`:g()?`${r}`:d.toString();this.setValue({committing:!0,nativeEvent:i,origin:"user",value:v})}syncHiddenFormInput(t){pk(this.type,this,t)}setDisabledAction(){let t=Uy(this.el,"action");t&&(this.disabled?(t.getAttribute("disabled")==null&&(this.slottedActionElDisabledInternally=!0),t.setAttribute("disabled","")):this.slottedActionElDisabledInternally&&(t.removeAttribute("disabled"),this.slottedActionElDisabledInternally=!1))}normalizeValue(t){return this.type==="number"?Fo(t)?t:"":t}warnAboutInvalidNumberValue(t){this.type==="number"&&t&&!Fo(t)&&console.warn(`The specified value "${t}" cannot be parsed, or is out of range.`)}render(){let t=Fc(this.el),r=X("div",{key:"ed9acea9dbc18f4cfc5e7095c1e2de0b1adfdf35",class:Wn.loader},X("calcite-progress",{key:"58321a27c25dd848a648d2e3d5ca6dfc3f5fd649",label:this.messages.loading,type:"indeterminate"})),n=X("button",{key:"348d8dee0c032afe986b1e253c9d667256f3d9f0","aria-label":this.messages.clear,class:Wn.clearButton,disabled:this.disabled||this.readOnly,onClick:this.clearInputValue,tabIndex:-1,type:"button"},X("calcite-icon",{key:"334b68a283b767c0e9bea09ccfd83d09c8c17711",icon:"x",scale:On(this.scale)})),i=X("calcite-icon",{key:"4ab83aa9268277a38449ebe4a6e3db4dc9badcae",class:Wn.inputIcon,flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:On(this.scale)}),o=this.numberButtonType==="horizontal",s=X("button",{key:"2dd700034d38581aaea39c019e626ffa1a2c1c16","aria-hidden":"true",class:{[Wn.numberButtonItem]:!0,[Wn.buttonItemHorizontal]:o},"data-adjustment":"up",disabled:this.disabled||this.readOnly,onPointerDown:this.numberButtonPointerDownHandler,onPointerOut:this.numberButtonPointerUpAndOutHandler,onPointerUp:this.numberButtonPointerUpAndOutHandler,tabIndex:-1,type:"button"},X("calcite-icon",{key:"6ca9a7c93aa14520292ad8c800c4e099bd46f30d",icon:"chevron-up",scale:On(this.scale)})),c=X("button",{key:"cdbd88ddd308bd82b6d239a83f365a2c5e226cfc","aria-hidden":"true",class:{[Wn.numberButtonItem]:!0,[Wn.buttonItemHorizontal]:o},"data-adjustment":"down",disabled:this.disabled||this.readOnly,onPointerDown:this.numberButtonPointerDownHandler,onPointerOut:this.numberButtonPointerUpAndOutHandler,onPointerUp:this.numberButtonPointerUpAndOutHandler,tabIndex:-1,type:"button"},X("calcite-icon",{key:"f1b9cf329da9add564d690c517ddcc414c4fbfa3",icon:"chevron-down",scale:On(this.scale)})),a=X("div",{key:"247efdce33568f219b1bf3bf252b8b19a74d03ea",class:Wn.numberButtonWrapper},s,c),d=X("div",{key:"01819a850399fb20a29471861e011695bf80af97",class:Wn.prefix},this.prefixText),h=X("div",{key:"dcc073305f3824a0eb72ef230bd217dabdb72104",class:Wn.suffix},this.suffixText),g=this.el.autofocus||this.el.hasAttribute("autofocus")?!0:null,v=this.el.enterKeyHint||this.el.getAttribute("enterkeyhint"),S=this.el.inputMode||this.el.getAttribute("inputmode"),M=this.type==="number"?X("input",{accept:this.accept,"aria-errormessage":$4.validationMessage,"aria-invalid":Ir(this.status==="invalid"),"aria-label":Cg(this),autocomplete:this.autocomplete,autofocus:g,defaultValue:this.defaultValue,disabled:this.disabled?!0:null,enterKeyHint:v,inputMode:S,key:"localized-input",maxLength:this.maxLength,minLength:this.minLength,multiple:this.multiple,name:void 0,onBlur:this.inputBlurHandler,onFocus:this.inputFocusHandler,onInput:this.inputNumberInputHandler,onKeyDown:this.inputNumberKeyDownHandler,onKeyUp:this.inputKeyUpHandler,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:this.readOnly,ref:this.setChildNumberElRef,type:"text",value:this.displayedValue}):null,I=this.type!=="number"?[X(this.childElType,{accept:this.accept,"aria-errormessage":$4.validationMessage,"aria-invalid":Ir(this.status==="invalid"),"aria-label":Cg(this),autocomplete:this.autocomplete,autofocus:g,class:{[Wn.editingEnabled]:this.editingEnabled,[Wn.inlineChild]:!!this.inlineEditableEl},defaultValue:this.defaultValue,disabled:this.disabled?!0:null,enterKeyHint:v,inputMode:S,max:this.maxString,maxLength:this.maxLength,min:this.minString,minLength:this.minLength,multiple:this.multiple,name:this.name,onBlur:this.inputBlurHandler,onChange:this.inputChangeHandler,onFocus:this.inputFocusHandler,onInput:this.inputInputHandler,onKeyDown:this.inputKeyDownHandler,onKeyUp:this.inputKeyUpHandler,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:this.readOnly,ref:this.setChildElRef,required:this.required?!0:null,step:this.step,tabIndex:this.disabled||this.inlineEditableEl&&!this.editingEnabled?-1:null,type:this.type,value:this.value}),this.isTextarea?X("div",{class:Wn.resizeIconWrapper},X("calcite-icon",{icon:"chevron-down",scale:On(this.scale)})):null]:null;return X(Gr,{key:"23d6092960315f172a56105b9af75ddc6497874c",onClick:this.clickHandler,onKeyDown:this.keyDownHandler},X(Vc,{key:"1bb063f39c14a829a376465fa8c2bbc288046ac7",disabled:this.disabled},X("div",{key:"7f3644f002b7cb75d93d9c0218508b502ddcfd0b",class:{[Wn.inputWrapper]:!0,[fg.rtl]:t==="rtl"},ref:R=>this.inputWrapperEl=R},this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?c:null,this.prefixText?d:null,X("div",{key:"0d01898e4949a60e0853c1a72669f5c9d6c91ba5",class:Wn.wrapper},M,I,this.isClearable?n:null,this.requestedIcon?i:null,this.loading?r:null),X("div",{key:"42e7adec440e417128feb9845c36d0444e6c1ae4",class:Wn.actionWrapper,ref:R=>this.actionWrapperEl=R},X("slot",{key:"f391b035ad9fc108d1f99c4cedf539425c20a36d",name:GY.action})),this.type==="number"&&this.numberButtonType==="vertical"&&!this.readOnly?a:null,this.suffixText?h:null,this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?s:null,X(PA,{key:"df415df551b4a9a16565c8f554454d01aa89327e",component:this})),this.validationMessage&&this.status==="invalid"?X(dk,{icon:this.validationIcon,id:$4.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null))}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{autofocus:["handleGlobalAttributesChanged"],enterkeyhint:["handleGlobalAttributesChanged"],inputmode:["handleGlobalAttributesChanged"],disabled:["disabledWatcher"],max:["maxWatcher"],min:["minWatcher"],messageOverrides:["onMessagesChange"],value:["valueWatcher"],icon:["updateRequestedIcon"],type:["updateRequestedIcon"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return HY}},[1,"calcite-input",{alignment:[513],autofocus:[4],clearable:[516],disabled:[516],enterKeyHint:[1,"enter-key-hint"],form:[513],groupSeparator:[516,"group-separator"],icon:[520],iconFlipRtl:[516,"icon-flip-rtl"],inputMode:[1,"input-mode"],label:[1],loading:[516],numberingSystem:[513,"numbering-system"],localeFormat:[4,"locale-format"],max:[514],min:[514],maxLength:[514,"max-length"],minLength:[514,"min-length"],validationMessage:[1,"validation-message"],validationIcon:[520,"validation-icon"],validity:[1040],name:[513],numberButtonType:[513,"number-button-type"],placeholder:[1],prefixText:[1,"prefix-text"],readOnly:[516,"read-only"],required:[516],scale:[513],status:[513],step:[520],autocomplete:[1],pattern:[1],accept:[1],multiple:[4],suffixText:[1,"suffix-text"],editingEnabled:[1540,"editing-enabled"],type:[513],value:[1025],files:[16],messages:[1040],messageOverrides:[1040],defaultMessages:[32],effectiveLocale:[32],displayedValue:[32],slottedActionElDisabledInternally:[32],setFocus:[64],selectText:[64]},void 0,{autofocus:["handleGlobalAttributesChanged"],enterkeyhint:["handleGlobalAttributesChanged"],inputmode:["handleGlobalAttributesChanged"],disabled:["disabledWatcher"],max:["maxWatcher"],min:["minWatcher"],messageOverrides:["onMessagesChange"],value:["valueWatcher"],icon:["updateRequestedIcon"],type:["updateRequestedIcon"],effectiveLocale:["effectiveLocaleChange"]}]);U4()});var vk={};os(vk,{CalciteInput:()=>qY,defineCustomElement:()=>ZY});var qY,ZY,_k=V(()=>{bk();qY=F4,ZY=U4});function z4(){if(typeof customElements>"u")return;["calcite-label"].forEach(t=>{switch(t){case"calcite-label":customElements.get(t)||customElements.define(t,V4);break}})}var YY,JY,XY,V4,Sk=V(()=>{Wt();qy();YY={container:"container"},JY=":host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{gap:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, 0.5rem)}:host([scale=m]) .container{gap:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, 0.75rem)}:host([scale=l]) .container{gap:0.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-block-end:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-inline:0px;margin-block-start:0px;inline-size:100%;line-height:1.375;color:var(--calcite-color-text-1)}:host([layout=default]) .container{display:flex;flex-direction:column}:host([layout=inline]) .container,:host([layout=inline-space-between]) .container{display:flex;flex-direction:row;align-items:center;gap:0.5rem}:host([layout=inline][scale=l]) .container{gap:0.75rem}:host([layout=inline-space-between]) .container{justify-content:space-between}:host([disabled])>.container{opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity:1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity:0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}",XY=JY,V4=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteInternalLabelClick=Lt(this,"calciteInternalLabelClick",2),this.labelClickHandler=t=>{window.getSelection()?.type!=="Range"&&this.calciteInternalLabelClick.emit({sourceEvent:t})},this.alignment="start",this.for=void 0,this.scale="m",this.layout="default"}handleForChange(){DA(this.el)}connectedCallback(){document.dispatchEvent(new CustomEvent(xg))}disconnectedCallback(){document.dispatchEvent(new CustomEvent(_g))}render(){return X(Gr,{key:"c3eff09792519c9e5a76ee28e3754db83b536f99",onClick:this.labelClickHandler},X("div",{key:"387902edd9b59be290f95ad6c2721584037d7256",class:YY.container},X("slot",{key:"b54d782522e95323333040e40e1a6dd06b52a575"})))}get el(){return this}static get watchers(){return{for:["handleForChange"]}}static get style(){return XY}},[1,"calcite-label",{alignment:[513],for:[513],scale:[513],layout:[513]},void 0,{for:["handleForChange"]}]);z4()});var xk={};os(xk,{CalciteLabel:()=>KY,defineCustomElement:()=>QY});var KY,QY,Ck=V(()=>{Sk();KY=V4,QY=z4});function Tk(e){bb||(bb=yr("mutation",tJ)),bb.observe(e.el,eJ)}function Ek(e){bb.unobserve(e.el)}function tJ(e){e.forEach(({target:t})=>{to(t)})}var bb,eJ,Mk=V(()=>{Wt();$o();eJ={childList:!0}});var W4,Pk=V(()=>{W4={brand:"lightbulb",danger:"exclamationMarkTriangle",info:"information",success:"checkCircle",warning:"exclamationMarkTriangle"}});var Lk={};os(Lk,{CalciteNotice:()=>iJ,defineCustomElement:()=>oJ});function Ak(){if(typeof customElements>"u")return;["calcite-notice","calcite-icon"].forEach(t=>{switch(t){case"calcite-notice":customElements.get(t)||customElements.define(t,Ik);break;case"calcite-icon":customElements.get(t)||Hr();break}})}var Ug,Vg,rJ,nJ,Ik,iJ,oJ,kk=V(()=>{Wt();Mk();jr();ca();Vo();la();Pk();eb();zc();bs();Ug={title:"title",message:"message",link:"link",actionsEnd:"actions-end"},Vg={actionsEnd:"actions-end",close:"notice-close",container:"container",content:"notice-content",icon:"notice-icon"},rJ=`:host([scale=s]){--calcite-notice-spacing-token-small:0.5rem;--calcite-notice-spacing-token-large:0.75rem}:host([scale=s]) .container slot[name=title]::slotted(*),:host([scale=s]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) .container slot[name=message]::slotted(*),:host([scale=s]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .notice-close{padding:0.5rem}:host([scale=m]){--calcite-notice-spacing-token-small:0.75rem;--calcite-notice-spacing-token-large:1rem}:host([scale=m]) .container slot[name=title]::slotted(*),:host([scale=m]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) .container slot[name=message]::slotted(*),:host([scale=m]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=l]){--calcite-notice-spacing-token-small:1rem;--calcite-notice-spacing-token-large:1.25rem}:host([scale=l]) .container slot[name=title]::slotted(*),:host([scale=l]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) .container slot[name=message]::slotted(*),:host([scale=l]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([width=auto]){--calcite-notice-width:auto}:host([width=half]){--calcite-notice-width:50%}:host([width=full]){--calcite-notice-width:100%}:host{margin-inline:auto;display:none;max-inline-size:100%;align-items:center;inline-size:var(--calcite-notice-width)}.container{pointer-events:none;margin-block:0px;box-sizing:border-box;display:flex;inline-size:100%;background-color:var(--calcite-color-foreground-1);opacity:0;max-block-size:0;transition-property:opacity, max-block-size;transition-duration:var(--calcite-animation-timing);text-align:start;border-inline-start:var(--calcite-border-width-md) solid;box-shadow:0 0 0 0 transparent}.notice-close{outline-color:transparent}.notice-close:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(
|
|
102
|
+
)}.clear-button:disabled{opacity:var(--calcite-opacity-disabled)}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block}.action-wrapper{order:7;display:flex}.prefix,.suffix{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;user-select:none;align-content:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium);line-height:1;color:var(--calcite-color-text-2)}.prefix{order:2;border-inline-end-width:0px;inline-size:var(--calcite-input-prefix-size, auto)}.suffix{order:5;border-inline-start-width:0px;inline-size:var(--calcite-input-suffix-size, auto)}:host([alignment=start]) textarea,:host([alignment=start]) input{text-align:start}:host([alignment=end]) textarea,:host([alignment=end]) input{text-align:end}input[type=number]{-moz-appearance:textfield}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0px}.number-button-wrapper{pointer-events:none;order:6;box-sizing:border-box;display:flex;flex-direction:column;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}:host([number-button-type=vertical]) .wrapper{flex-direction:row;display:flex}:host([number-button-type=vertical]) input,:host([number-button-type=vertical]) textarea{order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down],.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:1;max-block-size:100%;min-block-size:100%;align-self:stretch}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover{background-color:var(--calcite-color-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=down]:hover calcite-icon{color:var(--calcite-color-text-1)}.number-button-item.number-button-item--horizontal[data-adjustment=up]{order:5}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover{background-color:var(--calcite-color-foreground-2)}.number-button-item.number-button-item--horizontal[data-adjustment=up]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover{background-color:var(--calcite-color-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover{background-color:var(--calcite-color-foreground-2)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]:hover calcite-icon{color:var(--calcite-color-text-1)}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px}.number-button-item{max-block-size:50%;min-block-size:50%;pointer-events:initial;margin:0px;box-sizing:border-box;display:flex;cursor:pointer;align-items:center;align-self:center;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);padding-block:0px;padding-inline:0.5rem;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;border-inline-start-width:0px}.number-button-item calcite-icon{pointer-events:none;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}.number-button-item:focus{background-color:var(--calcite-color-foreground-2)}.number-button-item:focus calcite-icon{color:var(--calcite-color-text-1)}.number-button-item:active{background-color:var(--calcite-color-foreground-3)}.number-button-item:disabled{pointer-events:none}.wrapper{position:relative;display:flex;flex-direction:row;align-items:center}:input::-webkit-calendar-picker-indicator{display:none}input[type=date]::-webkit-input-placeholder{visibility:hidden !important}textarea::-webkit-resizer{position:absolute;inset-block-end:0px;box-sizing:border-box;padding-block:0px;padding-inline:0.25rem;inset-inline-end:0}.resize-icon-wrapper{inset-block-end:2px;inset-inline-end:2px;pointer-events:none;position:absolute;block-size:0.75rem;inline-size:0.75rem;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-3)}.resize-icon-wrapper calcite-icon{inset-block-end:0.25rem;inset-inline-end:0.25rem;transform:rotate(-45deg)}.calcite--rtl .resize-icon-wrapper calcite-icon{transform:rotate(45deg)}:host([type=color]) input{padding:0.25rem}:host([type=file]) input{cursor:pointer;border-width:1px;border-style:dashed;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);text-align:center}:host([type=file][scale=s]) input{padding-block:1px;padding-inline:0.5rem}:host([type=file][scale=m]) input{padding-block:0.25rem;padding-inline:0.75rem}:host([type=file][scale=l]) input{padding-block:0.5rem;padding-inline:1rem}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-color-border-1)}input.inline-child{background-color:transparent;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s}input.inline-child .editing-enabled{background-color:inherit}input.inline-child:not(.editing-enabled){display:flex;cursor:pointer;text-overflow:ellipsis;border-color:transparent;padding-inline-start:0}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:0.5rem}:host([scale=s]) .validation-container{padding-block-start:0.25rem}::slotted(input[slot=hidden-form-input]){margin:0 !important;opacity:0 !important;outline:none !important;padding:0 !important;position:absolute !important;inset:0 !important;transform:none !important;-webkit-appearance:none !important;z-index:-1 !important}:host([hidden]){display:none}[hidden]{display:none}`,HY=jY,Fx=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteInternalInputFocus=Lt(this,"calciteInternalInputFocus",6),this.calciteInternalInputBlur=Lt(this,"calciteInternalInputBlur",6),this.calciteInputInput=Lt(this,"calciteInputInput",7),this.calciteInputChange=Lt(this,"calciteInputChange",6),this.childElType="input",this.previousValueOrigin="initial",this.mutationObserver=yr("mutation",()=>this.setDisabledAction()),this.userChangedValue=!1,this.keyDownHandler=t=>{this.readOnly||this.disabled||t.defaultPrevented||(this.isClearable&&t.key==="Escape"&&(this.clearInputValue(t),t.preventDefault()),t.key==="Enter"&&zy(this)&&t.preventDefault())},this.clearInputValue=t=>{this.setValue({committing:!0,nativeEvent:t,origin:"user",value:""})},this.emitChangeIfUserModified=()=>{this.previousValueOrigin==="user"&&this.value!==this.previousEmittedValue&&(this.calciteInputChange.emit(),this.setPreviousEmittedValue(this.value))},this.inputBlurHandler=()=>{window.clearInterval(this.nudgeNumberValueIntervalId),this.calciteInternalInputBlur.emit(),this.emitChangeIfUserModified()},this.clickHandler=t=>{if(this.disabled)return;let r=t.composedPath();!r.includes(this.inputWrapperEl)||r.includes(this.actionWrapperEl)||this.setFocus()},this.inputFocusHandler=()=>{this.calciteInternalInputFocus.emit()},this.inputChangeHandler=()=>{this.type==="file"&&(this.files=this.childEl.files)},this.inputInputHandler=t=>{this.disabled||this.readOnly||this.setValue({nativeEvent:t,origin:"user",value:t.target.value})},this.inputKeyDownHandler=t=>{this.disabled||this.readOnly||t.key==="Enter"&&this.emitChangeIfUserModified()},this.inputNumberInputHandler=t=>{if(this.disabled||this.readOnly||this.value==="Infinity"||this.value==="-Infinity")return;let r=t.target.value;Uo.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};let n=Uo.delocalize(r);t.inputType==="insertFromPaste"?(Fo(n)||t.preventDefault(),this.setValue({nativeEvent:t,origin:"user",value:UA(n)}),this.childNumberEl.value=this.displayedValue):this.setValue({nativeEvent:t,origin:"user",value:n})},this.inputNumberKeyDownHandler=t=>{if(this.type!=="number"||this.disabled||this.readOnly)return;if(this.value==="Infinity"||this.value==="-Infinity"){t.preventDefault(),(t.key==="Backspace"||t.key==="Delete")&&this.clearInputValue(t);return}if(t.key==="ArrowUp"){t.preventDefault(),this.nudgeNumberValue("up",t);return}if(t.key==="ArrowDown"){this.nudgeNumberValue("down",t);return}let r=[...Tg,"ArrowLeft","ArrowRight","Backspace","Delete","Enter","Escape","Tab"];if(t.altKey||t.ctrlKey||t.metaKey)return;let n=t.shiftKey&&t.key==="Tab";if(r.includes(t.key)||n){t.key==="Enter"&&this.emitChangeIfUserModified();return}Uo.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},!(t.key===Uo.decimal&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.indexOf(Uo.decimal)===-1))&&(/[eE]/.test(t.key)&&(!this.value&&!this.childNumberEl.value||this.value&&!/[eE]/.test(this.childNumberEl.value))||t.key==="-"&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.split("-").length<=2)||t.preventDefault())},this.nudgeNumberValue=(t,r)=>{if(r instanceof KeyboardEvent&&r.repeat||this.type!=="number")return;let n=this.maxString?parseFloat(this.maxString):null,i=this.minString?parseFloat(this.minString):null,o=150;this.incrementOrDecrementNumberValue(t,n,i,r),this.nudgeNumberValueIntervalId&&window.clearInterval(this.nudgeNumberValueIntervalId);let s=!0;this.nudgeNumberValueIntervalId=window.setInterval(()=>{if(s){s=!1;return}this.incrementOrDecrementNumberValue(t,n,i,r)},o)},this.numberButtonPointerUpAndOutHandler=()=>{window.clearInterval(this.nudgeNumberValueIntervalId)},this.numberButtonPointerDownHandler=t=>{if(!gA(t))return;t.preventDefault();let r=t.target.dataset.adjustment;this.disabled||this.nudgeNumberValue(r,t)},this.onHiddenFormInputInput=t=>{t.target.name===this.name&&this.setValue({value:t.target.value,origin:"direct"}),this.setFocus(),t.stopPropagation()},this.setChildElRef=t=>{this.childEl=t},this.setChildNumberElRef=t=>{this.childNumberEl=t},this.setInputValue=t=>{this.type==="text"&&!this.childEl||this.type==="number"&&!this.childNumberEl||(this[`child${this.type==="number"?"Number":""}El`].value=t)},this.setPreviousEmittedValue=t=>{this.previousEmittedValue=this.normalizeValue(t)},this.setPreviousValue=t=>{this.previousValue=this.normalizeValue(t)},this.setValue=({committing:t=!1,nativeEvent:r,origin:n,previousValue:i,value:o})=>{if(this.setPreviousValue(i??this.value),this.previousValueOrigin=n,this.type==="number"){Uo.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator,signDisplay:"never"};let s=this.previousValue?.length>o.length||this.value?.length>o.length,c=o.charAt(o.length-1)===".",a=c&&s?o:zA(o),d=o&&!a?Fo(this.previousValue)?this.previousValue:"":a,h=Uo.localize(d);n!=="connected"&&!c&&(h=WA(h,d,Uo)),this.displayedValue=c&&s?`${h}${Uo.decimal}`:h,this.userChangedValue=n==="user"&&this.value!==d,this.value=["-","."].includes(d)?"":d}else this.userChangedValue=n==="user"&&this.value!==o,this.value=o;n==="direct"&&(this.setInputValue(o),this.previousEmittedValue=o),r&&(this.calciteInputInput.emit().defaultPrevented?(this.value=this.previousValue,this.displayedValue=this.type==="number"?Uo.localize(this.previousValue):this.previousValue):t&&this.emitChangeIfUserModified())},this.inputKeyUpHandler=()=>{window.clearInterval(this.nudgeNumberValueIntervalId)},this.alignment="start",this.autofocus=void 0,this.clearable=!1,this.disabled=!1,this.enterKeyHint=void 0,this.form=void 0,this.groupSeparator=!1,this.icon=void 0,this.iconFlipRtl=!1,this.inputMode=void 0,this.label=void 0,this.loading=!1,this.numberingSystem=void 0,this.localeFormat=!1,this.max=void 0,this.min=void 0,this.maxLength=void 0,this.minLength=void 0,this.validationMessage=void 0,this.validationIcon=void 0,this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.name=void 0,this.numberButtonType="vertical",this.placeholder=void 0,this.prefixText=void 0,this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.step=void 0,this.autocomplete=void 0,this.pattern=void 0,this.accept=void 0,this.multiple=!1,this.suffixText=void 0,this.editingEnabled=!1,this.type="text",this.value="",this.files=void 0,this.messages=void 0,this.messageOverrides=void 0,this.defaultMessages=void 0,this.effectiveLocale="",this.displayedValue=void 0,this.slottedActionElDisabledInternally=!1}handleGlobalAttributesChanged(){to(this)}disabledWatcher(){this.setDisabledAction()}maxWatcher(){this.maxString=this.max?.toString()||null}minWatcher(){this.minString=this.min?.toString()||null}onMessagesChange(){}valueWatcher(t,r){if(!this.userChangedValue){if(this.type==="number"&&(t==="Infinity"||t==="-Infinity")){this.displayedValue=t,this.previousEmittedValue=t;return}this.setValue({origin:"direct",previousValue:r,value:t==null||t==""?"":this.type==="number"?Fo(t)?t:this.previousValue||"":t}),this.warnAboutInvalidNumberValue(t)}this.userChangedValue=!1}updateRequestedIcon(){this.requestedIcon=aa(yk,this.icon,this.type)}get isClearable(){return!this.isTextarea&&(this.clearable||this.type==="search")&&this.value?.length>0}get isTextarea(){return this.childElType==="textarea"}effectiveLocaleChange(){Un(this,this.effectiveLocale)}connectedCallback(){cn(this),Vn(this),this.inlineEditableEl=this.el.closest("calcite-inline-editable"),this.inlineEditableEl&&(this.editingEnabled=this.inlineEditableEl.editingEnabled||!1),jp(this),TA(this),this.mutationObserver?.observe(this.el,{childList:!0}),this.setDisabledAction(),this.el.addEventListener(Wy,this.onHiddenFormInputInput)}disconnectedCallback(){Hy(this),EA(this),ln(this),zn(this),this.mutationObserver?.disconnect(),this.el.removeEventListener(Wy,this.onHiddenFormInputInput)}async componentWillLoad(){Nn(this),this.childElType=this.type==="textarea"?"textarea":"input",this.maxString=this.max?.toString(),this.minString=this.min?.toString(),this.requestedIcon=aa(yk,this.icon,this.type),await Fn(this),this.setPreviousEmittedValue(this.value),this.setPreviousValue(this.value),this.type==="number"&&(this.value==="Infinity"||this.value==="-Infinity"?(this.displayedValue=this.value,this.previousEmittedValue=this.value):(this.warnAboutInvalidNumberValue(this.value),this.setValue({origin:"connected",value:Fo(this.value)?this.value:""})))}componentDidLoad(){Rn(this)}componentShouldUpdate(t,r,n){return this.type==="number"&&n==="value"&&t&&!Fo(t)?(this.setValue({origin:"reset",value:r}),!1):!0}componentDidRender(){Uc(this)}async setFocus(){await Dn(this),this.type==="number"?this.childNumberEl?.focus():this.childEl?.focus()}async selectText(){this.type==="number"?this.childNumberEl?.select():this.childEl?.select()}onLabelClick(){this.setFocus()}incrementOrDecrementNumberValue(t,r,n,i){let{value:o}=this;if(o==="Infinity"||o==="-Infinity")return;let s=t==="up"?1:-1,c=this.step==="any"?1:Math.abs(this.step||1),d=new $n(o!==""?o:"0").add(`${c*s}`),h=()=>typeof n=="number"&&!isNaN(n)&&d.subtract(`${n}`).isNegative,g=()=>typeof r=="number"&&!isNaN(r)&&!d.subtract(`${r}`).isNegative,v=h()?`${n}`:g()?`${r}`:d.toString();this.setValue({committing:!0,nativeEvent:i,origin:"user",value:v})}syncHiddenFormInput(t){pk(this.type,this,t)}setDisabledAction(){let t=Uy(this.el,"action");t&&(this.disabled?(t.getAttribute("disabled")==null&&(this.slottedActionElDisabledInternally=!0),t.setAttribute("disabled","")):this.slottedActionElDisabledInternally&&(t.removeAttribute("disabled"),this.slottedActionElDisabledInternally=!1))}normalizeValue(t){return this.type==="number"?Fo(t)?t:"":t}warnAboutInvalidNumberValue(t){this.type==="number"&&t&&!Fo(t)&&console.warn(`The specified value "${t}" cannot be parsed, or is out of range.`)}render(){let t=Fc(this.el),r=X("div",{key:"ed9acea9dbc18f4cfc5e7095c1e2de0b1adfdf35",class:Wn.loader},X("calcite-progress",{key:"58321a27c25dd848a648d2e3d5ca6dfc3f5fd649",label:this.messages.loading,type:"indeterminate"})),n=X("button",{key:"348d8dee0c032afe986b1e253c9d667256f3d9f0","aria-label":this.messages.clear,class:Wn.clearButton,disabled:this.disabled||this.readOnly,onClick:this.clearInputValue,tabIndex:-1,type:"button"},X("calcite-icon",{key:"334b68a283b767c0e9bea09ccfd83d09c8c17711",icon:"x",scale:On(this.scale)})),i=X("calcite-icon",{key:"4ab83aa9268277a38449ebe4a6e3db4dc9badcae",class:Wn.inputIcon,flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:On(this.scale)}),o=this.numberButtonType==="horizontal",s=X("button",{key:"2dd700034d38581aaea39c019e626ffa1a2c1c16","aria-hidden":"true",class:{[Wn.numberButtonItem]:!0,[Wn.buttonItemHorizontal]:o},"data-adjustment":"up",disabled:this.disabled||this.readOnly,onPointerDown:this.numberButtonPointerDownHandler,onPointerOut:this.numberButtonPointerUpAndOutHandler,onPointerUp:this.numberButtonPointerUpAndOutHandler,tabIndex:-1,type:"button"},X("calcite-icon",{key:"6ca9a7c93aa14520292ad8c800c4e099bd46f30d",icon:"chevron-up",scale:On(this.scale)})),c=X("button",{key:"cdbd88ddd308bd82b6d239a83f365a2c5e226cfc","aria-hidden":"true",class:{[Wn.numberButtonItem]:!0,[Wn.buttonItemHorizontal]:o},"data-adjustment":"down",disabled:this.disabled||this.readOnly,onPointerDown:this.numberButtonPointerDownHandler,onPointerOut:this.numberButtonPointerUpAndOutHandler,onPointerUp:this.numberButtonPointerUpAndOutHandler,tabIndex:-1,type:"button"},X("calcite-icon",{key:"f1b9cf329da9add564d690c517ddcc414c4fbfa3",icon:"chevron-down",scale:On(this.scale)})),a=X("div",{key:"247efdce33568f219b1bf3bf252b8b19a74d03ea",class:Wn.numberButtonWrapper},s,c),d=X("div",{key:"01819a850399fb20a29471861e011695bf80af97",class:Wn.prefix},this.prefixText),h=X("div",{key:"dcc073305f3824a0eb72ef230bd217dabdb72104",class:Wn.suffix},this.suffixText),g=this.el.autofocus||this.el.hasAttribute("autofocus")?!0:null,v=this.el.enterKeyHint||this.el.getAttribute("enterkeyhint"),S=this.el.inputMode||this.el.getAttribute("inputmode"),M=this.type==="number"?X("input",{accept:this.accept,"aria-errormessage":$x.validationMessage,"aria-invalid":Ir(this.status==="invalid"),"aria-label":Cg(this),autocomplete:this.autocomplete,autofocus:g,defaultValue:this.defaultValue,disabled:this.disabled?!0:null,enterKeyHint:v,inputMode:S,key:"localized-input",maxLength:this.maxLength,minLength:this.minLength,multiple:this.multiple,name:void 0,onBlur:this.inputBlurHandler,onFocus:this.inputFocusHandler,onInput:this.inputNumberInputHandler,onKeyDown:this.inputNumberKeyDownHandler,onKeyUp:this.inputKeyUpHandler,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:this.readOnly,ref:this.setChildNumberElRef,type:"text",value:this.displayedValue}):null,I=this.type!=="number"?[X(this.childElType,{accept:this.accept,"aria-errormessage":$x.validationMessage,"aria-invalid":Ir(this.status==="invalid"),"aria-label":Cg(this),autocomplete:this.autocomplete,autofocus:g,class:{[Wn.editingEnabled]:this.editingEnabled,[Wn.inlineChild]:!!this.inlineEditableEl},defaultValue:this.defaultValue,disabled:this.disabled?!0:null,enterKeyHint:v,inputMode:S,max:this.maxString,maxLength:this.maxLength,min:this.minString,minLength:this.minLength,multiple:this.multiple,name:this.name,onBlur:this.inputBlurHandler,onChange:this.inputChangeHandler,onFocus:this.inputFocusHandler,onInput:this.inputInputHandler,onKeyDown:this.inputKeyDownHandler,onKeyUp:this.inputKeyUpHandler,pattern:this.pattern,placeholder:this.placeholder||"",readOnly:this.readOnly,ref:this.setChildElRef,required:this.required?!0:null,step:this.step,tabIndex:this.disabled||this.inlineEditableEl&&!this.editingEnabled?-1:null,type:this.type,value:this.value}),this.isTextarea?X("div",{class:Wn.resizeIconWrapper},X("calcite-icon",{icon:"chevron-down",scale:On(this.scale)})):null]:null;return X(Gr,{key:"23d6092960315f172a56105b9af75ddc6497874c",onClick:this.clickHandler,onKeyDown:this.keyDownHandler},X(Vc,{key:"1bb063f39c14a829a376465fa8c2bbc288046ac7",disabled:this.disabled},X("div",{key:"7f3644f002b7cb75d93d9c0218508b502ddcfd0b",class:{[Wn.inputWrapper]:!0,[fg.rtl]:t==="rtl"},ref:R=>this.inputWrapperEl=R},this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?c:null,this.prefixText?d:null,X("div",{key:"0d01898e4949a60e0853c1a72669f5c9d6c91ba5",class:Wn.wrapper},M,I,this.isClearable?n:null,this.requestedIcon?i:null,this.loading?r:null),X("div",{key:"42e7adec440e417128feb9845c36d0444e6c1ae4",class:Wn.actionWrapper,ref:R=>this.actionWrapperEl=R},X("slot",{key:"f391b035ad9fc108d1f99c4cedf539425c20a36d",name:GY.action})),this.type==="number"&&this.numberButtonType==="vertical"&&!this.readOnly?a:null,this.suffixText?h:null,this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?s:null,X(PA,{key:"df415df551b4a9a16565c8f554454d01aa89327e",component:this})),this.validationMessage&&this.status==="invalid"?X(dk,{icon:this.validationIcon,id:$x.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null))}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{autofocus:["handleGlobalAttributesChanged"],enterkeyhint:["handleGlobalAttributesChanged"],inputmode:["handleGlobalAttributesChanged"],disabled:["disabledWatcher"],max:["maxWatcher"],min:["minWatcher"],messageOverrides:["onMessagesChange"],value:["valueWatcher"],icon:["updateRequestedIcon"],type:["updateRequestedIcon"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return HY}},[1,"calcite-input",{alignment:[513],autofocus:[4],clearable:[516],disabled:[516],enterKeyHint:[1,"enter-key-hint"],form:[513],groupSeparator:[516,"group-separator"],icon:[520],iconFlipRtl:[516,"icon-flip-rtl"],inputMode:[1,"input-mode"],label:[1],loading:[516],numberingSystem:[513,"numbering-system"],localeFormat:[4,"locale-format"],max:[514],min:[514],maxLength:[514,"max-length"],minLength:[514,"min-length"],validationMessage:[1,"validation-message"],validationIcon:[520,"validation-icon"],validity:[1040],name:[513],numberButtonType:[513,"number-button-type"],placeholder:[1],prefixText:[1,"prefix-text"],readOnly:[516,"read-only"],required:[516],scale:[513],status:[513],step:[520],autocomplete:[1],pattern:[1],accept:[1],multiple:[4],suffixText:[1,"suffix-text"],editingEnabled:[1540,"editing-enabled"],type:[513],value:[1025],files:[16],messages:[1040],messageOverrides:[1040],defaultMessages:[32],effectiveLocale:[32],displayedValue:[32],slottedActionElDisabledInternally:[32],setFocus:[64],selectText:[64]},void 0,{autofocus:["handleGlobalAttributesChanged"],enterkeyhint:["handleGlobalAttributesChanged"],inputmode:["handleGlobalAttributesChanged"],disabled:["disabledWatcher"],max:["maxWatcher"],min:["minWatcher"],messageOverrides:["onMessagesChange"],value:["valueWatcher"],icon:["updateRequestedIcon"],type:["updateRequestedIcon"],effectiveLocale:["effectiveLocaleChange"]}]);Ux()});var vk={};os(vk,{CalciteInput:()=>qY,defineCustomElement:()=>ZY});var qY,ZY,_k=V(()=>{bk();qY=Fx,ZY=Ux});function zx(){if(typeof customElements>"u")return;["calcite-label"].forEach(t=>{switch(t){case"calcite-label":customElements.get(t)||customElements.define(t,Vx);break}})}var YY,JY,XY,Vx,Sk=V(()=>{Wt();qy();YY={container:"container"},JY=":host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{gap:0.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, 0.5rem)}:host([scale=m]) .container{gap:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, 0.75rem)}:host([scale=l]) .container{gap:0.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-block-end:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-inline:0px;margin-block-start:0px;inline-size:100%;line-height:1.375;color:var(--calcite-color-text-1)}:host([layout=default]) .container{display:flex;flex-direction:column}:host([layout=inline]) .container,:host([layout=inline-space-between]) .container{display:flex;flex-direction:row;align-items:center;gap:0.5rem}:host([layout=inline][scale=l]) .container{gap:0.75rem}:host([layout=inline-space-between]) .container{justify-content:space-between}:host([disabled])>.container{opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity:1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity:0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}",XY=JY,Vx=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteInternalLabelClick=Lt(this,"calciteInternalLabelClick",2),this.labelClickHandler=t=>{window.getSelection()?.type!=="Range"&&this.calciteInternalLabelClick.emit({sourceEvent:t})},this.alignment="start",this.for=void 0,this.scale="m",this.layout="default"}handleForChange(){DA(this.el)}connectedCallback(){document.dispatchEvent(new CustomEvent(xg))}disconnectedCallback(){document.dispatchEvent(new CustomEvent(_g))}render(){return X(Gr,{key:"c3eff09792519c9e5a76ee28e3754db83b536f99",onClick:this.labelClickHandler},X("div",{key:"387902edd9b59be290f95ad6c2721584037d7256",class:YY.container},X("slot",{key:"b54d782522e95323333040e40e1a6dd06b52a575"})))}get el(){return this}static get watchers(){return{for:["handleForChange"]}}static get style(){return XY}},[1,"calcite-label",{alignment:[513],for:[513],scale:[513],layout:[513]},void 0,{for:["handleForChange"]}]);zx()});var xk={};os(xk,{CalciteLabel:()=>KY,defineCustomElement:()=>QY});var KY,QY,Ck=V(()=>{Sk();KY=Vx,QY=zx});function Tk(e){bb||(bb=yr("mutation",tJ)),bb.observe(e.el,eJ)}function Ek(e){bb.unobserve(e.el)}function tJ(e){e.forEach(({target:t})=>{to(t)})}var bb,eJ,Mk=V(()=>{Wt();$o();eJ={childList:!0}});var Wx,Pk=V(()=>{Wx={brand:"lightbulb",danger:"exclamationMarkTriangle",info:"information",success:"checkCircle",warning:"exclamationMarkTriangle"}});var Lk={};os(Lk,{CalciteNotice:()=>iJ,defineCustomElement:()=>oJ});function Ak(){if(typeof customElements>"u")return;["calcite-notice","calcite-icon"].forEach(t=>{switch(t){case"calcite-notice":customElements.get(t)||customElements.define(t,Ik);break;case"calcite-icon":customElements.get(t)||Hr();break}})}var Ug,Vg,rJ,nJ,Ik,iJ,oJ,kk=V(()=>{Wt();Mk();jr();ca();Vo();la();Pk();eb();zc();bs();Ug={title:"title",message:"message",link:"link",actionsEnd:"actions-end"},Vg={actionsEnd:"actions-end",close:"notice-close",container:"container",content:"notice-content",icon:"notice-icon"},rJ=`:host([scale=s]){--calcite-notice-spacing-token-small:0.5rem;--calcite-notice-spacing-token-large:0.75rem}:host([scale=s]) .container slot[name=title]::slotted(*),:host([scale=s]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) .container slot[name=message]::slotted(*),:host([scale=s]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .notice-close{padding:0.5rem}:host([scale=m]){--calcite-notice-spacing-token-small:0.75rem;--calcite-notice-spacing-token-large:1rem}:host([scale=m]) .container slot[name=title]::slotted(*),:host([scale=m]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) .container slot[name=message]::slotted(*),:host([scale=m]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=l]){--calcite-notice-spacing-token-small:1rem;--calcite-notice-spacing-token-large:1.25rem}:host([scale=l]) .container slot[name=title]::slotted(*),:host([scale=l]) .container *::slotted([slot=title]){margin-block:0.125rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) .container slot[name=message]::slotted(*),:host([scale=l]) .container *::slotted([slot=message]){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) ::slotted(calcite-link){margin-block:0.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([width=auto]){--calcite-notice-width:auto}:host([width=half]){--calcite-notice-width:50%}:host([width=full]){--calcite-notice-width:100%}:host{margin-inline:auto;display:none;max-inline-size:100%;align-items:center;inline-size:var(--calcite-notice-width)}.container{pointer-events:none;margin-block:0px;box-sizing:border-box;display:flex;inline-size:100%;background-color:var(--calcite-color-foreground-1);opacity:0;max-block-size:0;transition-property:opacity, max-block-size;transition-duration:var(--calcite-animation-timing);text-align:start;border-inline-start:var(--calcite-border-width-md) solid;box-shadow:0 0 0 0 transparent}.notice-close{outline-color:transparent}.notice-close:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(
|
|
103
103
|
-2px *
|
|
104
104
|
calc(
|
|
105
105
|
1 -
|
|
@@ -109,7 +109,7 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`)}Ij(thi
|
|
|
109
109
|
1
|
|
110
110
|
)
|
|
111
111
|
)
|
|
112
|
-
)}:host{display:flex}:host([open]) .container{pointer-events:auto;max-block-size:100%;align-items:center;opacity:1;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.container slot[name=title]::slotted(*),.container *::slotted([slot=title]){margin:0px;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.container slot[name=message]::slotted(*),.container *::slotted([slot=message]){margin:0px;display:inline;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);margin-inline-end:var(--calcite-notice-spacing-token-small)}.notice-content{box-sizing:border-box;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;display:flex;min-inline-size:0px;flex-direction:column;overflow-wrap:break-word;flex:1 1 0;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:0 var(--calcite-notice-spacing-token-small)}.notice-content:first-of-type:not(:only-child){padding-inline-start:var(--calcite-notice-spacing-token-large)}.notice-content:only-of-type{padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large)}.notice-icon{display:flex;align-items:center;box-sizing:border-box;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto}.notice-close{display:flex;cursor:pointer;align-items:center;align-self:stretch;border-style:none;background-color:transparent;color:var(--calcite-color-text-3);outline:2px solid transparent;outline-offset:2px;box-sizing:border-box;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;-webkit-appearance:none}.notice-close:hover,.notice-close:focus{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}.notice-close:active{background-color:var(--calcite-color-foreground-3)}.actions-end{display:flex;align-self:stretch}:host([kind=brand]) .container{border-color:var(--calcite-color-brand)}:host([kind=brand]) .container .notice-icon{color:var(--calcite-color-brand)}:host([kind=info]) .container{border-color:var(--calcite-color-status-info)}:host([kind=info]) .container .notice-icon{color:var(--calcite-color-status-info)}:host([kind=danger]) .container{border-color:var(--calcite-color-status-danger)}:host([kind=danger]) .container .notice-icon{color:var(--calcite-color-status-danger)}:host([kind=success]) .container{border-color:var(--calcite-color-status-success)}:host([kind=success]) .container .notice-icon{color:var(--calcite-color-status-success)}:host([kind=warning]) .container{border-color:var(--calcite-color-status-warning)}:host([kind=warning]) .container .notice-icon{color:var(--calcite-color-status-warning)}:host([hidden]){display:none}[hidden]{display:none}`,nJ=rJ,Ik=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteNoticeBeforeClose=Lt(this,"calciteNoticeBeforeClose",6),this.calciteNoticeBeforeOpen=Lt(this,"calciteNoticeBeforeOpen",6),this.calciteNoticeClose=Lt(this,"calciteNoticeClose",6),this.calciteNoticeOpen=Lt(this,"calciteNoticeOpen",6),this.setTransitionEl=t=>{this.transitionEl=t},this.close=()=>{this.open=!1},this.openTransitionProp="opacity",this.open=!1,this.kind="brand",this.closable=!1,this.icon=void 0,this.iconFlipRtl=!1,this.scale="m",this.width="auto",this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale=void 0,this.defaultMessages=void 0}openHandler(){Gc(this)}onMessagesChange(){}updateRequestedIcon(){this.requestedIcon=aa(W4,this.icon,this.kind)}connectedCallback(){Tk(this),cn(this),Vn(this)}disconnectedCallback(){Ek(this),ln(this),zn(this)}async componentWillLoad(){Nn(this),this.requestedIcon=aa(W4,this.icon,this.kind),await Fn(this),this.open&&Gc(this)}componentDidLoad(){Rn(this)}render(){let{el:t}=this,r=X("button",{key:"52f9306ebe945398929f68fe66615359836ba2d8","aria-label":this.messages.close,class:Vg.close,onClick:this.close,ref:i=>this.closeButton=i},X("calcite-icon",{key:"f3601ac9547c73219661eebc7e7470db5dee7b52",icon:"x",scale:On(this.scale)})),n=Uy(t,Ug.actionsEnd);return X("div",{key:"3f8117ff7cdd08c92ce804ef4ac8af83003156a4",class:Vg.container,ref:this.setTransitionEl},this.requestedIcon?X("div",{class:Vg.icon},X("calcite-icon",{flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:On(this.scale)})):null,X("div",{key:"1b614ee86618bd5ce6e8834b466baf7d2564b5a1",class:Vg.content},X("slot",{key:"19467ed9718a78c7530c2a08c727028d565dee7b",name:Ug.title}),X("slot",{key:"191e71caf2f2147c62fd6b73602e41d95dc27558",name:Ug.message}),X("slot",{key:"d4fbf2b8aaa980cd24c5be89c6c8a36d091658f3",name:Ug.link})),n?X("div",{class:Vg.actionsEnd},X("slot",{name:Ug.actionsEnd})):null,this.closable?r:null)}async setFocus(){await Dn(this);let t=this.el.querySelector("calcite-link");if(!(!this.closeButton&&!t)){if(t)return t.setFocus();this.closeButton&&this.closeButton.focus()}}onBeforeClose(){this.calciteNoticeBeforeClose.emit()}onBeforeOpen(){this.calciteNoticeBeforeOpen.emit()}onClose(){this.calciteNoticeClose.emit()}onOpen(){this.calciteNoticeOpen.emit()}effectiveLocaleChange(){Un(this,this.effectiveLocale)}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{open:["openHandler"],messageOverrides:["onMessagesChange"],icon:["updateRequestedIcon"],kind:["updateRequestedIcon"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return nJ}},[1,"calcite-notice",{open:[1540],kind:[513],closable:[516],icon:[520],iconFlipRtl:[516,"icon-flip-rtl"],scale:[513],width:[513],messages:[1040],messageOverrides:[1040],effectiveLocale:[32],defaultMessages:[32],setFocus:[64]},void 0,{open:["openHandler"],messageOverrides:["onMessagesChange"],icon:["updateRequestedIcon"],kind:["updateRequestedIcon"],effectiveLocale:["effectiveLocaleChange"]}]);Ak();iJ=Ik,oJ=Ak});var B4,G4,sJ,Oi,j4,Ok=V(()=>{pt();JS();mt();et();tt();Vr();ut();YI();Hx();dy();JI();KI();eA();HS();B4="esri-identity-modal",G4={base:B4,info:`${B4}__info`,notice:`${B4}__notice`},sJ="ArcGIS Online",Oi=class extends ZI{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 zI({button:()=>Promise.resolve().then(()=>(eL(),QA)),dialog:()=>Promise.resolve().then(()=>(uk(),lk)),input:()=>Promise.resolve().then(()=>(_k(),vk)),label:()=>Promise.resolve().then(()=>(Ck(),xk)),notice:()=>Promise.resolve().then(()=>(kk(),Lk))})}get title(){return this.commonMessages?.auth.signIn}render(){let{open:e,title:t,messages:r,signingIn:n,oAuthPrompt:i,server:o,resource:s,error:c}=this,{info:a,oAuthInfo:d,lblItem:h,invalidUser:g,noAuthService:v,lblUser:S,lblPwd:M,lblCancel:I,lblSigning:R,lblOk:B}=r;return Pi("div",{class:this.classes(G4.base,QI())},Pi("form",{bind:this,onsubmit:this._submit},Pi("calcite-dialog",{bind:this,heading:t,modal:!0,open:e,outsideCloseDisabled:!0,scale:"s",widthScale:"s",onCalciteDialogClose:this._cancel,onCalciteDialogOpen:this._focusUsernameInput},Pi("div",{class:G4.info},GS(i?d:a,{server:o&&/\.arcgis\.com/i.test(o)?sJ:o,resource:`(${s||h})`})),c?Pi("calcite-notice",{class:G4.notice,icon:"exclamation-mark-triangle",kind:"danger",open:!0},Pi("div",{slot:"message"},c.details?.httpStatus?g:v)):null,i?null:[Pi("calcite-label",null,S,Pi("calcite-input",{afterCreate:F=>this._usernameInputNode=F,autocomplete:"off",bind:this,name:"username",required:!0,spellcheck:!1,type:"text",value:""})),Pi("calcite-label",null,M,Pi("calcite-input",{afterCreate:F=>this._passwordInputNode=F,bind:this,name:"password",required:!0,type:"password",value:""}))],Pi("calcite-button",{appearance:"outline",bind:this,onclick:this._cancel,slot:"footer-end",type:"button"},I),Pi("calcite-button",{loading:!!n,slot:"footer-end",type:"submit"},n?R:B))))}_focusUsernameInput(){return wP(()=>this._usernameInputNode)}_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);let t=this.oAuthPrompt?{}:{username:this._usernameInputNode?.value,password:this._passwordInputNode?.value};this.emit("submit",t)}};N([z({readOnly:!0})],Oi.prototype,"container",void 0),N([z(),Xx("esri/t9n/common")],Oi.prototype,"commonMessages",void 0),N([z()],Oi.prototype,"error",void 0),N([z(),Xx("esri/identity/t9n/identity")],Oi.prototype,"messages",void 0),N([z()],Oi.prototype,"oAuthPrompt",void 0),N([z()],Oi.prototype,"open",void 0),N([z()],Oi.prototype,"signingIn",void 0),N([z()],Oi.prototype,"server",void 0),N([z({readOnly:!0})],Oi.prototype,"title",null),N([z()],Oi.prototype,"resource",void 0),Oi=N([Ie("esri.identity.IdentityModal")],Oi);j4=Oi});var H4,Kp,Nk=V(()=>{H4="esriJSAPIOAuth",Kp=class{constructor(t,r){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=t,this.storage=r,this._init()}isValid(){let t=!1;if(this.oAuthInfo&&this.userId&&(this.refreshToken||this.token)){if(this.expires==null&&this.refreshToken)t=!0;else if(this.expires){let r=Date.now();this.expires>r&&(this.expires-r)/1e3>60*this.oAuthInfo.minTimeUntilExpiration&&(t=!0)}}return t}save(){if(!this.storage)return!1;let t=this._load(),r=this.oAuthInfo;if(r?.authNamespace&&r.portalUrl){let n=t[r.authNamespace];n||(n=t[r.authNamespace]={}),this.appId||(this.appId=r.appId),n[r.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(H4,JSON.stringify(t))}catch(i){return console.warn(i),!1}return!0}return!1}destroy(){let t=this._load(),r=this.oAuthInfo;if(r?.appId&&r?.portalUrl&&(this.expires==null||this.expires>Date.now())&&(this.refreshToken||this.token)){let n=r.portalUrl.replace(/^http:/i,"https:")+"/sharing/rest/oauth2/revokeToken",i=new FormData;if(i.append("f","json"),i.append("auth_token",this.refreshToken||this.token),i.append("client_id",r.appId),i.append("token_type_hint",this.refreshToken?"refresh_token":"access_token"),typeof navigator.sendBeacon=="function")navigator.sendBeacon(n,i);else{let o=new XMLHttpRequest;o.open("POST",n),o.send(i)}}if(r?.authNamespace&&r.portalUrl&&this.storage){let n=t[r.authNamespace];if(n){delete n[r.portalUrl];try{this.storage.setItem(H4,JSON.stringify(t))}catch(i){console.log(i)}}}r&&(r._oAuthCred=null,this.oAuthInfo=null)}_init(){let t=this._load(),r=this.oAuthInfo;if(r?.authNamespace&&r.portalUrl){let n=t[r.authNamespace];n&&(n=n[r.portalUrl],n&&(this.appId=n.appId,this.codeVerifier=n.codeVerifier,this.expires=n.expires,this.refreshToken=n.refreshToken,this.ssl=n.ssl,this.stateUID=n.stateUID,this.token=n.token,this.userId=n.userId))}}_load(){let t={};if(this.storage){let r=this.storage.getItem(H4);if(r)try{t=JSON.parse(r)}catch(n){console.warn(n)}}return t}};Kp.prototype.declaredClass="esri.identity.OAuthCredential"});var q4,_n,Z4,Rk=V(()=>{pt();Er();mt();et();tt();Vr();ut();_n=q4=class extends lt{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 q4.fromJSON(this.toJSON())}};N([z({json:{write:!0}})],_n.prototype,"appId",void 0),N([z({json:{write:!0}})],_n.prototype,"authNamespace",void 0),N([z({json:{write:!0}})],_n.prototype,"expiration",void 0),N([z({json:{write:!0}})],_n.prototype,"flowType",void 0),N([z({json:{write:!0}})],_n.prototype,"forceLogin",void 0),N([z({json:{write:!0}})],_n.prototype,"forceUserId",void 0),N([z({json:{write:!0}})],_n.prototype,"locale",void 0),N([z({json:{write:!0}})],_n.prototype,"minTimeUntilExpiration",void 0),N([z({json:{write:!0}})],_n.prototype,"popup",void 0),N([z({json:{write:!0}})],_n.prototype,"popupCallbackUrl",void 0),N([z({json:{write:!0}})],_n.prototype,"popupWindowFeatures",void 0),N([z({json:{write:!0}})],_n.prototype,"portalUrl",void 0),N([z({json:{write:!0}})],_n.prototype,"preserveUrlHash",void 0),N([z({json:{write:!0}})],_n.prototype,"userId",void 0),_n=q4=N([Ie("esri.identity.OAuthInfo")],_n);Z4=_n});var Ni,vb,Dk=V(()=>{pt();Er();mt();et();tt();Vr();ut();Ni=class extends lt{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}};N([z({json:{write:!0}})],Ni.prototype,"adminTokenServiceUrl",void 0),N([z({json:{write:!0}})],Ni.prototype,"currentVersion",void 0),N([z({json:{write:!0}})],Ni.prototype,"hasPortal",void 0),N([z({json:{write:!0}})],Ni.prototype,"hasServer",void 0),N([z({json:{write:!0}})],Ni.prototype,"owningSystemUrl",void 0),N([z({json:{write:!0}})],Ni.prototype,"owningTenant",void 0),N([z({json:{write:!0}})],Ni.prototype,"server",void 0),N([z({json:{write:!0}})],Ni.prototype,"shortLivedTokenValidity",void 0),N([z({json:{write:!0}})],Ni.prototype,"tokenServiceUrl",void 0),N([z({json:{write:!0}})],Ni.prototype,"webTierAuth",void 0),Ni=N([Ie("esri.identity.ServerInfo")],Ni);vb=Ni});var _b,$k,Y4,Sb,xb,zg,tr,Fk=V(()=>{pt();yc();jw();Xw();An();Hw();qh();or();ds();ko();Ic();mt();et();tt();ut();Ok();Nk();Rk();Dk();Dw();_b={},$k=e=>{let t=new kn(e.owningSystemUrl).host,r=new kn(e.server).host,n=/.+\.arcgis\.com$/i;return n.test(t)&&n.test(r)},Y4=(e,t)=>!!($k(e)&&t&&t.some(r=>r.test(e.server))),Sb=null,xb=null;try{Sb=window.localStorage,xb=window.sessionStorage}catch{}zg=class extends xu{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=window.origin!=="null"?window.origin:window.location.origin,this._appUrlObj=Tc(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._getPlatformSelfError=null,this._getOAuthLocationParams(),window.addEventListener("pageshow",t=>{this._pageShowHandler(t)})}registerServers(t){let r=this.serverInfos;r?(t=t.filter(n=>!this.findServerInfo(n.server)),this.serverInfos=r.concat(t)):this.serverInfos=t,t.forEach(n=>{n.owningSystemUrl&&this._portals.push(n.owningSystemUrl),n.hasPortal&&this._portals.push(n.server)})}registerOAuthInfos(t){let r=this.oAuthInfos;if(r){for(let n of t){let i=this.findOAuthInfo(n.portalUrl);i&&r.splice(r.indexOf(i),1)}this.oAuthInfos=r.concat(t)}else this.oAuthInfos=t}registerToken(t){t={...t};let r=this._sanitizeUrl(t.server),n=this._isServerRsrc(r),i,o=this.findServerInfo(r),s=!0;o||(o=new vb,o.server=this._getServerInstanceRoot(r),n?o.hasServer=!0:(o.tokenServiceUrl=this._getTokenSvcUrl(r),o.hasPortal=!0),this.registerServers([o])),i=this._findCredential(r),i?(delete t.server,Object.assign(i,t),s=!1):(i=new tr({userId:t.userId,server:o.server??void 0,token:t.token,expires:t.expires,ssl:t.ssl,scope:n?"server":"portal"}),i.resources=[r],this.credentials.push(i)),i.emitTokenChange(!1),s||i.refreshServerTokens()}toJSON(){return v0({serverInfos:this.serverInfos.map(t=>t.toJSON()),oAuthInfos:this.oAuthInfos.map(t=>t.toJSON()),credentials:this.credentials.map(t=>t.toJSON())})}initialize(t){if(!t)return;typeof t=="string"&&(t=JSON.parse(t));let r=t.serverInfos,n=t.oAuthInfos,i=t.credentials;if(r){let o=[];r.forEach(s=>{s.server&&s.tokenServiceUrl&&o.push(s.declaredClass?s:new vb(s))}),o.length&&this.registerServers(o)}if(n){let o=[];n.forEach(s=>{s.appId&&o.push(s.declaredClass?s:new Z4(s))}),o.length&&this.registerOAuthInfos(o)}i&&i.forEach(o=>{o.server&&o.token&&o.expires&&o.expires>Date.now()&&((o=o.declaredClass?o:new tr(o)).emitTokenChange(),this.credentials.push(o))})}findServerInfo(t){let r;t=this._sanitizeUrl(t);for(let n of this.serverInfos)if(this._hasSameServerInstance(n.server,t)){r=n;break}return r}findOAuthInfo(t){let r;t=this._sanitizeUrl(t);for(let n of this.oAuthInfos)if(this._hasSameServerInstance(n.portalUrl,t)){r=n;break}return r}findCredential(t,r){if(!t)return;let n;t=this._sanitizeUrl(t);let i=this._isServerRsrc(t)?"server":"portal";if(r){for(let o of this.credentials)if(this._hasSameServerInstance(o.server,t)&&r===o.userId&&o.scope===i){n=o;break}}else for(let o of this.credentials)if(this._hasSameServerInstance(o.server,t)&&this._getIdenticalSvcIdx(t,o)!==-1&&o.scope===i){n=o;break}return n}getCredential(t,r){let n,i,o=!0;r&&(n=!!r.token,i=r.error,o=r.prompt!==!1),r={...r},t=this._sanitizeUrl(t);let s=new AbortController,c=ci();if(r.signal&&Ci(r.signal,()=>{s.abort()}),Ci(s,()=>{c.reject(new We("identity-manager:user-aborted","ABORTED"))}),Ks(s))return c.promise;r.signal=s.signal;let a=this._isAdminResource(t),d=n?this.findCredential(t):null,h;if(d&&i&&i.details&&i.details.httpStatus===498)d.destroy();else if(d)return h=new We("identity-manager:not-authorized","You are currently signed in as: '"+d.userId+"'. You do not have access to this resource: "+t,{error:i}),c.reject(h),c.promise;let g=this._findCredential(t,r);if(g)return c.resolve(g),c.promise;let v=this.findServerInfo(t);if(v)!v.hasPortal&&v.server&&v.owningSystemUrl&&this._hasSameServerInstance(v.server,v.owningSystemUrl)&&(v.hasPortal=!0),!v.hasServer&&this._isServerRsrc(t)&&(v._restInfoPms=this._getTokenSvcUrl(t),v.hasServer=!0);else{let S=this._getTokenSvcUrl(t);if(!S)return h=new We("identity-manager:unknown-resource","Unknown resource - could not find token service endpoint."),c.reject(h),c.promise;v=new vb,v.server=this._getServerInstanceRoot(t),typeof S=="string"?(v.tokenServiceUrl=S,v.hasPortal=!0):(v._restInfoPms=S,v.hasServer=!0),this.registerServers([v])}return v.hasPortal&&v._selfReq===void 0&&(o||Jn(v.tokenServiceUrl,this._appOrigin)||this._gwDomains.some(S=>S.tokenServiceUrl===v.tokenServiceUrl))&&(v._selfReq={owningTenant:r?.owningTenant,selfDfd:this._getPortalSelf(v.tokenServiceUrl.replace(this._rePortalTokenSvc,"/sharing/rest/portals/self"),t)}),this._enqueue(t,v,r,c,a)}getResourceName(t){return this._isRESTService(t)?t.replace(this._regexSDirUrl,"").replace(this._regexServerType,"")||"":this._gwUser.test(t)&&t.replace(this._gwUser,"$1")||this._gwItem.test(t)&&t.replace(this._gwItem,"$1")||this._gwGroup.test(t)&&t.replace(this._gwGroup,"$1")||""}generateToken(t,r,n){let i=this._rePortalTokenSvc.test(t.tokenServiceUrl),o=new kn(this._appOrigin),s=t.shortLivedTokenValidity,c,a,d,h,g,v,S,M;r&&(M=this.tokenValidity||s||this._defaultTokenValidity,M>s&&s>0&&(M=s)),n&&(c=n.isAdmin,a=n.serverUrl,d=n.token,v=n.signal,S=n.ssl,t.customParameters=n.customParameters),c?h=t.adminTokenServiceUrl:(h=t.tokenServiceUrl,g=new kn(h.toLowerCase()),t.webTierAuth&&n?.serverUrl&&!S&&o.scheme==="http"&&(Jn(o.uri,h,!0)||g.scheme==="https"&&o.host===g.host&&o.port==="7080"&&g.port==="7443")&&(h=h.replace(/^https:/i,"http:").replace(/:7443/i,":7080")));let I={query:{request:"getToken",username:r?.username,password:r?.password,serverUrl:a,token:d,expiration:M,referer:c||i?this._appOrigin:null,client:c?"referer":null,f:"json",...t.customParameters},method:"post",authMode:"anonymous",useProxy:this._useProxy(t,n),signal:v,...n?.ioArgs};return i||(I.withCredentials=!1),cr(h,I).then(R=>{let B=R.data;if(!B?.token)return new We("identity-manager:authentication-failed","Unable to generate token");let F=t.server;return _b[F]||(_b[F]={}),r&&(_b[F][r.username]=r.password),B.validity=M,B})}isBusy(){return!!this._busy}async checkSignInStatus(t){return(await this.checkAppAccess(t,"")).credential}checkAppAccess(t,r,n){let i=!1;return this.getCredential(t,{prompt:!1}).then(o=>{let s,c={f:"json"};if(o.scope==="portal")if(r&&(this._doPortalSignIn(t)||n?.force))s=o.server+"/sharing/rest/oauth2/validateAppAccess",c.client_id=r;else{if(!o.token)return{credential:o};s=o.server+"/sharing/rest"}else{if(!o.token)return{credential:o};s=o.server+"/rest/services"}return o.token&&(c.token=o.token),cr(s,{query:c,authMode:"anonymous"}).then(a=>{if(a.data.valid===!1)throw new We("identity-manager:not-authorized",`You are currently signed in as: '${o.userId}'.`,a.data);return i=!!a.data.viewOnlyUserTypeApp,{credential:o}}).catch(a=>{if(a.name==="identity-manager:not-authorized")throw a;let d=a.details?.httpStatus;if(d===498)throw o.destroy(),new We("identity-manager:not-authenticated","User is not signed in.");if(d===400)throw new We("identity-manager:invalid-request");return{credential:o}})}).then(o=>({credential:o.credential,viewOnly:i}))}setOAuthResponseHash(t){t&&(t.charAt(0)==="#"&&(t=t.slice(1)),this._processOAuthPopupParams(Ec(t)))}setOAuthRedirectionHandler(t){this._oAuthRedirectFunc=t}setProtocolErrorHandler(t){this._protocolFunc=t}signIn(t,r,n={}){let i=ci(),o=()=>{a?.remove(),d?.remove(),this.dialog?.destroy(),this.dialog=a=d=null},s=()=>{o(),this._oAuthDfd=null,i.reject(new We("identity-manager:user-aborted","ABORTED"))};n.signal&&Ci(n.signal,()=>{s()});let c=new j4({open:!0,resource:this.getResourceName(t),server:r.server});this.dialog=c,this.emit("dialog-create");let a=c.on("cancel",s),d=c.on("submit",h=>{this.generateToken(r,h,{isAdmin:n.isAdmin,signal:n.signal}).then(g=>{o();let v=new tr({userId:h.username,server:r.server??void 0,token:g.token,expires:g.expires!=null?Number(g.expires):null,ssl:!!g.ssl,isAdmin:n.isAdmin,validity:g.validity});i.resolve(v)}).catch(g=>{c.error=g,c.signingIn=!1})});return i.promise}oAuthSignIn(t,r,n,i){this._oAuthDfd=ci();let o=this._oAuthDfd,s;i?.signal&&Ci(i.signal,()=>{let v=this._oAuthDfd&&this._oAuthDfd.oAuthWin_;v&&!v.closed?v.close():this.dialog&&h()}),o.resUrl_=t,o.sinfo_=r,o.oinfo_=n;let c=n._oAuthCred;if(c.storage&&(n.flowType==="authorization-code"||n.flowType==="auto"&&r.currentVersion>=8.4)){let v=crypto.getRandomValues(new Uint8Array(32));s=Bw(v),c.codeVerifier=s,v=crypto.getRandomValues(new Uint8Array(32)),c.stateUID=Bw(v),c.save()||(c.codeVerifier=s=null)}else c.codeVerifier=null;let a,d;this._getCodeChallenge(s).then(v=>{let S=!i||i.oAuthPopupConfirmation!==!1;if(!n.popup||!S)return void this._doOAuthSignIn(t,r,n,v);let M=new j4({oAuthPrompt:!0,server:r.server,open:!0});this.dialog=M,this.emit("dialog-create"),a=M.on("cancel",h),d=M.on("submit",()=>{g(),this._doOAuthSignIn(t,r,n,v)})});let h=()=>{g(),this._oAuthDfd=null,o.reject(new We("identity-manager:user-aborted","ABORTED"))},g=()=>{a?.remove(),d?.remove(),this.dialog?.destroy(),this.dialog=null};return o.promise}destroyCredentials(){this.credentials&&this.credentials.slice().forEach(t=>{t.destroy()}),this.emit("credentials-destroy")}enablePostMessageAuth(t="https://www.arcgis.com/sharing/rest"){this._postMessageAuthHandle&&this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=Sc(window,"message",r=>{if((r.origin===this._appOrigin||r.origin.endsWith(".arcgis.com"))&&r.data?.type==="arcgis:auth:requestCredential"){let n=r.source;this.getCredential(t).then(i=>{n.postMessage({type:"arcgis:auth:credential",credential:{expires:i.expires,server:i.server,ssl:i.ssl,token:i.token,userId:i.userId}},r.origin)}).catch(i=>{n.postMessage({type:"arcgis:auth:error",error:{name:i.name,message:i.message}},r.origin)})}})}disablePostMessageAuth(){this._postMessageAuthHandle&&(this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=null)}_getOAuthLocationParams(){let t=window.location.hash;if(t){t.charAt(0)==="#"&&(t=t.slice(1));let n=Ec(t),i=!1;if(n.access_token&&n.expires_in&&n.state&&n.hasOwnProperty("username"))try{n.state=JSON.parse(n.state),n.state.portalUrl&&(this._oAuthLocationParams=n,i=!0)}catch{}else if(n.error&&n.error_description&&(console.log("IdentityManager OAuth Error: ",n.error," - ",n.error_description),n.error==="access_denied"&&(i=!0,n.state)))try{n.state=JSON.parse(n.state)}catch{}i&&(window.location.hash=n.state?.hash||"")}let r=window.location.search;if(r){r.charAt(0)==="?"&&(r=r.slice(1));let n=Ec(r),i=!1;if(n.code&&n.state)try{n.state=JSON.parse(n.state),n.state.portalUrl&&n.state.uid&&(this._oAuthLocationParams=n,i=!0)}catch{}else if(n.error&&n.error_description&&(console.log("IdentityManager OAuth Error: ",n.error," - ",n.error_description),n.error==="access_denied"&&(i=!0,n.state)))try{n.state=JSON.parse(n.state)}catch{}if(i){let o={...n};["code","error","error_description","message_code","persist","state"].forEach(a=>{delete o[a]});let s=Su(o),c=window.location.pathname+(s?`?${s}`:"")+(n.state?.hash||"");window.history.replaceState(window.history.state,"",c)}}}_getOAuthToken(t,r,n,i,o){return t=t.replace(/^http:/i,"https:"),cr(`${t}/sharing/rest/oauth2/token`,{authMode:"anonymous",method:"post",query:i&&o?{grant_type:"authorization_code",code:r,redirect_uri:i,client_id:n,code_verifier:o}:{grant_type:"refresh_token",refresh_token:r,client_id:n}}).then(s=>s.data)}async _getCodeChallenge(t){if(t&&globalThis.isSecureContext){let r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r);return Bw(new Uint8Array(n))}return null}_pageShowHandler(t){if(t.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow){let r=new We("identity-manager:user-aborted","ABORTED");this._errbackFunc(r)}}_findCredential(t,r){let n,i,o,s,c=-1,a=r?.token,d=r?.resource,h=this._isServerRsrc(t)?"server":"portal",g=this.credentials.filter(v=>this._hasSameServerInstance(v.server,t)&&v.scope===h);if(t=d||t,g.length)if(g.length===1){if(n=g[0],o=this.findServerInfo(n.server),i=o?.owningSystemUrl,s=i?this.findCredential(i,n.userId):void 0,c=this._getIdenticalSvcIdx(t,n),!a)return c===-1&&n.resources.push(t),this._addResource(t,s),n;c!==-1&&(n.resources.splice(c,1),this._removeResource(t,s))}else{let v,S;if(g.some(M=>(S=this._getIdenticalSvcIdx(t,M),S!==-1&&(v=M,o=this.findServerInfo(v.server),i=o?.owningSystemUrl,s=i?this.findCredential(i,v.userId):void 0,c=S,!0))),a)v&&(v.resources.splice(c,1),this._removeResource(t,s));else if(v)return this._addResource(t,s),v}}_findOAuthInfo(t){let r=this.findOAuthInfo(t);if(!r){for(let n of this.oAuthInfos)if(this._isIdProvider(n.portalUrl,t)){r=n;break}}return r}_addResource(t,r){r&&this._getIdenticalSvcIdx(t,r)===-1&&r.resources.push(t)}_removeResource(t,r){let n=-1;r&&(n=this._getIdenticalSvcIdx(t,r),n>-1&&r.resources.splice(n,1))}_useProxy(t,r){return r?.isAdmin&&!Jn(t.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(t.tokenServiceUrl)&&String(t.currentVersion)==="10.1"&&!Jn(t.tokenServiceUrl,this._appOrigin)}_getOrigin(t){let r=new kn(t);return r.scheme+"://"+r.host+(r.port!=null?":"+r.port:"")}_getServerInstanceRoot(t){let r=t.toLowerCase(),n=r.indexOf(this._agsRest);return n===-1&&this._isAdminResource(t)&&(n=this._agsAdmin.test(t)?t.replace(this._agsAdmin,"$1").length:t.search(this._adminSvcs)),n!==-1||Rw(r)||(n=r.indexOf("/sharing")),n===-1&&r.endsWith("/")&&(n=r.length-1),n>-1?t.slice(0,n):t}_hasSameServerInstance(t,r){return t.endsWith("/")&&(t=t.slice(0,-1)),t=t.toLowerCase(),r=this._getServerInstanceRoot(r).toLowerCase(),t=RS(t),r=RS(r),(t=t.slice(Math.max(0,t.indexOf(":"))))===(r=r.slice(Math.max(0,r.indexOf(":"))))}_sanitizeUrl(t){let r=(Tt.request.proxyUrl||"").toLowerCase(),n=r?t.toLowerCase().indexOf(r+"?"):-1;return n!==-1&&(t=t.slice(n+r.length+1)),t=Vw(t),Tc(t).path}_isRESTService(t){return t.includes(this._agsRest)}_isAdminResource(t){return this._agsAdmin.test(t)||this._adminSvcs.test(t)}_isServerRsrc(t){return this._isRESTService(t)||this._isAdminResource(t)}_isIdenticalService(t,r){let n=!1;if(this._isRESTService(t)&&this._isRESTService(r)){let i=this._getSuffix(t).toLowerCase(),o=this._getSuffix(r).toLowerCase();if(n=i===o,!n){let s=/(.*)\/(MapServer|FeatureServer|UtilityNetworkServer).*/gi;n=i.replaceAll(s,"$1")===o.replaceAll(s,"$1")}}else this._isAdminResource(t)&&this._isAdminResource(r)?n=!0:this._isServerRsrc(t)||this._isServerRsrc(r)||!this._isPortalDomain(t)||(n=!0);return n}_isPortalDomain(t){let r=new kn(t.toLowerCase()),n=this._portalConfig,i=this._gwDomains.some(o=>o.regex.test(r.uri));return!i&&n&&(i=this._hasSameServerInstance(this._getServerInstanceRoot(n.restBaseUrl),r.uri)),i||Tt.portalUrl&&(i=Jn(r,Tt.portalUrl,!0)),i||(i=this._portals.some(o=>this._hasSameServerInstance(o,r.uri))),i=i||this._agsPortal.test(r.path),i}_isIdProvider(t,r){let n=-1,i=-1;this._gwDomains.forEach((s,c)=>{n===-1&&s.regex.test(t)&&(n=c),i===-1&&s.regex.test(r)&&(i=c)});let o=!1;if(n>-1&&i>-1&&(n===0||n===4?i!==0&&i!==4||(o=!0):n===1?i!==1&&i!==2||(o=!0):n===2?i===2&&(o=!0):n===3&&i===3&&(o=!0)),!o){let s=this.findServerInfo(r),c=s?.owningSystemUrl;c&&$k(s)&&this._isPortalDomain(c)&&this._isIdProvider(t,c)&&(o=!0)}return o}_getIdenticalSvcIdx(t,r){let n=-1;for(let i=0;i<r.resources.length;i++){let o=r.resources[i];if(this._isIdenticalService(t,o)){n=i;break}}return n}_getSuffix(t){return t.replace(this._regexSDirUrl,"").replace(this._regexServerType,"$1")}_getTokenSvcUrl(t){let r,n,i;if(this._isRESTService(t)||this._isAdminResource(t)){let o=this._getServerInstanceRoot(t);return r=o+"/admin/generateToken",n=cr(t=o+"/rest/info",{query:{f:"json"}}).then(s=>s.data),{adminUrl:r,promise:n}}if(this._isPortalDomain(t)){let o="";if(this._gwDomains.some(s=>(s.regex.test(t)&&(o=s.tokenServiceUrl),!!o)),o||this._portals.some(s=>(this._hasSameServerInstance(s,t)&&(o=s+this._gwTokenUrl),!!o)),o||(i=t.toLowerCase().indexOf("/sharing"),i!==-1&&(o=t.slice(0,i)+this._gwTokenUrl)),o||(o=this._getOrigin(t)+this._gwTokenUrl),o){let s=new kn(t).port;/^http:\/\//i.test(t)&&s==="7080"&&(o=o.replace(/:7080/i,":7443")),o=o.replace(/http:/i,"https:")}return o}}_processOAuthResponseParams(t,r,n){let i=r._oAuthCred;if(t.code){let s=i.codeVerifier;return i.codeVerifier=null,i.stateUID=null,i.save(),this._getOAuthToken(n.server,t.code,r.appId,this._getRedirectURI(r,!0),s).then(c=>{let a=new tr({userId:c.username,server:n.server??void 0,token:c.access_token,expires:Date.now()+1e3*c.expires_in,ssl:c.ssl,oAuthState:t.state,_oAuthCred:i});return r.userId=a.userId,i.storage=c.persist?Sb:xb,i.refreshToken=c.refresh_token,i.token=null,i.expires=c.refresh_token_expires_in?Date.now()+1e3*c.refresh_token_expires_in:null,i.userId=a.userId,i.ssl=a.ssl,i.save(),a})}let o=new tr({userId:t.username,server:n.server??void 0,token:t.access_token,expires:Date.now()+1e3*Number(t.expires_in),ssl:t.ssl==="true",oAuthState:t.state,_oAuthCred:i});return r.userId=o.userId,i.storage=t.persist?Sb:xb,i.refreshToken=null,i.token=o.token,i.expires=o.expires,i.userId=o.userId,i.ssl=o.ssl,i.save(),Promise.resolve(o)}_processOAuthPopupParams(t){let r=this._oAuthDfd;if(this._oAuthDfd=null,r)if(clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle?.remove(),t.error){let n=t.error==="access_denied",i=new We(n?"identity-manager:user-aborted":"identity-manager:authentication-failed",n?"ABORTED":"OAuth: "+t.error+" - "+t.error_description);r.reject(i)}else this._processOAuthResponseParams(t,r.oinfo_,r.sinfo_).then(n=>{r.resolve(n)}).catch(n=>{r.reject(n)})}_setOAuthResponseQueryString(t){t&&(t.charAt(0)==="?"&&(t=t.slice(1)),this._processOAuthPopupParams(Ec(t)))}async _exchangeToken(t,r,n){return(await cr(`${t}/sharing/rest/oauth2/exchangeToken`,{authMode:"anonymous",method:"post",query:{f:"json",client_id:r,token:n}})).data.token}async _getPlatformSelf(t,r){if(this._getPlatformSelfError&&Date.now()-this._getPlatformSelfError[1]<1e3)throw this._getPlatformSelfError[0];t=t.replace(/^http:/i,"https:");try{let n=await cr(`${t}/sharing/rest/oauth2/platformSelf`,{authMode:"anonymous",headers:{"X-Esri-Auth-Client-Id":r,"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/,"")},method:"post",query:{f:"json",expiration:30},withCredentials:!0});return this._getPlatformSelfError=null,n.data}catch(n){throw n.details?.messageCode==="OAUTH_0066"&&(this._getPlatformSelfError=[n,Date.now()]),n}}_getPortalSelf(t,r){let n;return this._gwDomains.some(i=>(i.regex.test(t)&&(n=i.customBaseUrl),!!n)),n?Promise.resolve({allSSL:!0,currentVersion:"8.4",customBaseUrl:n,portalMode:"multitenant",supportsOAuth:!0}):(this._appOrigin.startsWith("https:")?t=t.replace(/^http:/i,"https:").replace(/:7080/i,":7443"):/^http:/i.test(r)&&(t=t.replace(/^https:/i,"http:").replace(/:7443/i,":7080")),cr(t,{query:{f:"json"},authMode:"anonymous",withCredentials:!0}).then(i=>i.data))}_doPortalSignIn(t){let r=this._portalConfig,n=window.location.href,i=this.findServerInfo(t);return!(!r&&!this._isPortalDomain(n)||!(i?i.hasPortal||i.owningSystemUrl&&this._isPortalDomain(i.owningSystemUrl):this._isPortalDomain(t))||!(this._isIdProvider(n,t)||r&&(this._hasSameServerInstance(this._getServerInstanceRoot(r.restBaseUrl),t)||this._isIdProvider(r.restBaseUrl,t))||Jn(n,t,!0)))}_checkProtocol(t,r,n,i){let o=!0,s=i?r.adminTokenServiceUrl:r.tokenServiceUrl;return s.trim().toLowerCase().startsWith("https:")&&!this._appOrigin.startsWith("https:")&&Sp(s)&&(o=!!this._protocolFunc&&!!this._protocolFunc({resourceUrl:t,serverInfo:r}),!o)&&n(new We("identity-manager:aborted","Aborted the Sign-In process to avoid sending password over insecure connection.")),o}_enqueue(t,r,n,i,o,s){return i||(i=ci()),i.resUrl_=t,i.sinfo_=r,i.options_=n,i.admin_=o,i.refresh_=s,this._busy?this._hasSameServerInstance(this._getServerInstanceRoot(t),this._busy.resUrl_)?(this._oAuthDfd&&this._oAuthDfd.oAuthWin_&&this._oAuthDfd.oAuthWin_.focus(),this._soReqs.push(i)):this._xoReqs.push(i):this._doSignIn(i),i.promise}_doSignIn(t){this._busy=t,this._rejectOnPersistedPageShow=!1;let r=d=>{let h=t.options_?.resource,g=t.resUrl_,v=t.refresh_,S=!1;this.credentials.includes(d)||(v&&this.credentials.includes(v)?(v.userId=d.userId,v.token=d.token,v.expires=d.expires,v.validity=d.validity,v.ssl=d.ssl,v.creationTime=d.creationTime,S=!0,d=v):this.credentials.push(d)),d.resources||(d.resources=[]),d.resources.includes(h||g)||d.resources.push(h||g),d.scope=this._isServerRsrc(g)?"server":"portal",d.emitTokenChange();let M=this._soReqs,I={};this._soReqs=[],M.forEach(R=>{if(!this._isIdenticalService(g,R.resUrl_)){let B=this._getSuffix(R.resUrl_);I[B]||(I[B]=!0,d.resources.push(R.resUrl_))}}),t.resolve(d),M.forEach(R=>{this._hasSameServerInstance(this._getServerInstanceRoot(g),R.resUrl_)?R.resolve(d):this._soReqs.push(R)}),this._busy=t.resUrl_=t.sinfo_=t.refresh_=null,S||this.emit("credential-create",{credential:d}),this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},n=d=>{t.reject(d),this._busy=t.resUrl_=t.sinfo_=t.refresh_=null,this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},i=(d,h,g,v)=>{let S=t.sinfo_,M=!t.options_||t.options_.prompt!==!1,I=S.hasPortal&&this._findOAuthInfo(t.resUrl_),R,B;if(d)r(new tr({userId:d,server:S.server??void 0,token:g??void 0,expires:v!=null?Number(v):null,ssl:!!h}));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"]),t.resUrl_)){window.parent.postMessage({type:"arcgis:auth:requestCredential"},this._appUrlObj.query["arcgis-auth-origin"]);let F=Sc(window,"message",G=>{G.source===window.parent&&G.data&&(G.data.type==="arcgis:auth:credential"?(F.remove(),G.data.credential.expires<Date.now()?n(new We("identity-manager:credential-request-failed","Parent application's token has expired.")):r(new tr(G.data.credential))):G.data.type==="arcgis:auth:error"&&(F.remove(),G.data.error.name==="tokenExpiredError"?n(new We("identity-manager:credential-request-failed","Parent application's token has expired.")):n(We.fromJSON(G.data.error))))});Ci(t.options_?.signal,()=>{F.remove()})}else if(I){let F=I._oAuthCred;if(!F){let G=new Kp(I,Sb),J=new Kp(I,xb);G.isValid()&&J.isValid()?G.expires>J.expires?(F=G,J.destroy()):(F=J,G.destroy()):F=G.isValid()?G:J,I._oAuthCred=F}if(F.isValid()){R=new tr({userId:F.userId??void 0,server:S.server??void 0,token:F.token??void 0,expires:F.expires,ssl:F.ssl??void 0,_oAuthCred:F});let G=I.appId!==F.appId&&this._doPortalSignIn(t.resUrl_);G||F.refreshToken?(t._pendingDfd=F.refreshToken?this._getOAuthToken(S.server,F.refreshToken,F.appId).then(J=>(R.expires=Date.now()+1e3*J.expires_in,R.token=J.access_token,R)):Promise.resolve(R),t._pendingDfd.then(J=>G?this._exchangeToken(J.server,I.appId,J.token).then(re=>(J.token=re,J)).catch(()=>J):J).then(J=>{r(J)}).catch(J=>{let re=J.details?.httpStatus;re>0&&re!==404?(F.destroy(),i()):n(J)})):r(R)}else if(this._oAuthLocationParams&&this._hasSameServerInstance(I.portalUrl,this._oAuthLocationParams.state.portalUrl)&&(this._oAuthLocationParams.access_token||this._oAuthLocationParams.code&&this._oAuthLocationParams.state.uid===F.stateUID&&F.codeVerifier)){let G=this._oAuthLocationParams;this._oAuthLocationParams=null,t._pendingDfd=this._processOAuthResponseParams(G,I,S).then(J=>{r(J)}).catch(n)}else{let G=()=>{M?t._pendingDfd=this.oAuthSignIn(t.resUrl_,S,I,t.options_).then(r,n):(B=new We("identity-manager:not-authenticated","User is not signed in."),n(B))};this._doPortalSignIn(t.resUrl_)?t._pendingDfd=this._getPlatformSelf(S.server,I.appId).then(J=>{Jn(J.portalUrl,this._appOrigin,!0)?(R=new tr({userId:J.username,server:S.server??void 0,expires:Date.now()+1e3*J.expires_in,token:J.token}),r(R)):G()}).catch(G):G()}}else if(M){if(this._checkProtocol(t.resUrl_,S,n,t.admin_)){let F=t.options_;t.admin_&&(F=F||{},F.isAdmin=!0),t._pendingDfd=this.signIn(t.resUrl_,S,F).then(r,n)}}else B=new We("identity-manager:not-authenticated","User is not signed in."),n(B)},o=()=>{let d=t.sinfo_,h=d.owningSystemUrl,g=t.options_,v,S,M,I;if(g&&(v=g.token,S=g.error,M=g.prompt),I=this._findCredential(h,{token:v,resource:t.resUrl_}),!I){for(let R of this.credentials)if(this._isIdProvider(h,R.server)){I=R;break}}if(I){let R=this.findCredential(t.resUrl_,I.userId);if(R)r(R);else if(Y4(d,this._legacyFed)){let B=I.toJSON();B.server=d.server,B.resources=null,r(new tr(B))}else(t._pendingDfd=this.generateToken(this.findServerInfo(I.server),null,{serverUrl:t.resUrl_,token:I.token,signal:t.options_.signal,ssl:I.ssl})).then(B=>{r(new tr({userId:I?.userId,server:d.server??void 0,token:B.token,expires:B.expires!=null?Number(B.expires):null,ssl:!!B.ssl,isAdmin:t.admin_,validity:B.validity}))},n)}else this._busy=null,v&&(t.options_.token=null),(t._pendingDfd=this.getCredential(h.replace(/\/?$/,"/sharing"),{resource:t.resUrl_,owningTenant:d.owningTenant,signal:t.options_.signal,token:v,error:S,prompt:M})).then(()=>{this._enqueue(t.resUrl_,t.sinfo_,t.options_,t,t.admin_)},R=>{t.resUrl_=t.sinfo_=t.refresh_=null,t.reject(R)})};this._errbackFunc=n;let s=t.sinfo_.owningSystemUrl,c=this._isServerRsrc(t.resUrl_),a=t.sinfo_._restInfoPms;a?a.promise.then(d=>{let h=t.sinfo_;if(h._restInfoPms){h.adminTokenServiceUrl=h._restInfoPms.adminUrl,h._restInfoPms=null,h.tokenServiceUrl=(Hi("authInfo.tokenServicesUrl",d)||Hi("authInfo.tokenServiceUrl",d)||Hi("tokenServiceUrl",d))??null,h.shortLivedTokenValidity=Hi("authInfo.shortLivedTokenValidity",d)??null,h.currentVersion=d.currentVersion,h.owningTenant=d.owningTenant;let g=h.owningSystemUrl=d.owningSystemUrl;g&&this._portals.push(g)}c&&h.owningSystemUrl?o():i()},()=>{t.sinfo_._restInfoPms=null;let d=new We("identity-manager:server-identification-failed","Unknown resource - could not find token service endpoint.");n(d)}):c&&s?o():t.sinfo_._selfReq?t.sinfo_._selfReq.selfDfd.then(d=>{let h={},g,v,S,M;return d&&(g=d.user?.username,h.username=g,h.allSSL=d.allSSL,v=d.supportsOAuth,M=parseFloat(d.currentVersion),d.portalMode==="multitenant"&&(S=d.customBaseUrl),t.sinfo_.currentVersion=M),t.sinfo_.webTierAuth=!!g,g&&this.normalizeWebTierAuth?this.generateToken(t.sinfo_,null,{ssl:h.allSSL}).catch(()=>null).then(I=>(h.portalToken=I?.token,h.tokenExpiration=I?.expires,h)):!g&&v&&M>=4.4&&!this._findOAuthInfo(t.resUrl_)?this._generateOAuthInfo({portalUrl:t.sinfo_.server,customBaseUrl:S,owningTenant:t.sinfo_._selfReq.owningTenant}).catch(()=>null).then(()=>h):h}).catch(()=>null).then(d=>{t.sinfo_._selfReq=null,d?i(d.username,d.allSSL,d.portalToken,d.tokenExpiration):i()}):i()}_generateOAuthInfo(t){let r,n=null,i=t.portalUrl,o=t.customBaseUrl,s=t.owningTenant,c=!this._defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal;if(c){n=window.location.href;let a=n.indexOf("?");a>-1&&(n=n.slice(0,a)),a=n.search(/\/(apps|home)\//),n=a>-1?n.slice(0,a):null}return c&&n?(this._hasTestedIfAppIsOnPortal=!0,r=cr(n+"/sharing/rest",{query:{f:"json"}}).then(()=>{this._defaultOAuthInfo=new Z4({appId:"arcgisonline",popupCallbackUrl:n+"/home/oauth-callback.html"})})):r=Promise.resolve(),r.then(()=>{if(this._defaultOAuthInfo)return i=i.replace(/^http:/i,"https:"),cr(i+"/sharing/rest/oauth2/validateRedirectUri",{query:{accountId:s,client_id:this._defaultOAuthInfo.appId,redirect_uri:Mc(this._defaultOAuthInfo.popupCallbackUrl),f:"json"}}).then(a=>{if(a.data.valid){let d=this._defaultOAuthInfo.clone();a.data.urlKey&&o?d.portalUrl="https://"+a.data.urlKey.toLowerCase()+"."+o:d.portalUrl=i,d.popup=window!==window.top||!(Jn(i,this._appOrigin)||this._gwDomains.some(h=>h.regex.test(i)&&h.regex.test(this._appOrigin))),this.oAuthInfos.push(d)}})})}_doOAuthSignIn(t,r,n,i){let o=n._oAuthCred,s={portalUrl:n.portalUrl};!n.popup&&n.preserveUrlHash&&window.location.hash&&(s.hash=window.location.hash),o.stateUID&&(s.uid=o.stateUID);let c={client_id:n.appId,response_type:o.codeVerifier?"code":"token",state:JSON.stringify(s),expiration:n.expiration,locale:n.locale,redirect_uri:this._getRedirectURI(n,!!o.codeVerifier)};n.forceLogin&&(c.force_login=!0),n.forceUserId&&n.userId&&(c.prepopulatedusername=n.userId),!n.popup&&this._doPortalSignIn(t)&&(c.redirectToUserOrgUrl=!0),o.codeVerifier&&(c.code_challenge=i||o.codeVerifier,c.code_challenge_method=i?"S256":"plain");let a=n.portalUrl.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize",d=a+"?"+Su(c);if(n.popup){let h=window.open(d,"esriJSAPIOAuth",n.popupWindowFeatures);if(h)h.focus(),this._oAuthDfd.oAuthWin_=h,this._oAuthIntervalId=setInterval(()=>{if(h.closed){clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle.remove();let g=this._oAuthDfd;if(g){let v=new We("identity-manager:user-aborted","ABORTED");g.reject(v)}}},500),this._oAuthOnPopupHandle=Sc(window,["arcgis:auth:hash","arcgis:auth:location:search"],g=>{g.type==="arcgis:auth:hash"?this.setOAuthResponseHash(g.detail):this._setOAuthResponseQueryString(g.detail)});else{let g=new We("identity-manager:popup-blocked","ABORTED");this._oAuthDfd.reject(g)}}else this._rejectOnPersistedPageShow=!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:c,authorizeUrl:a,resourceUrl:t,serverInfo:r,oAuthInfo:n}):window.location.href=d}_getRedirectURI(t,r){let n=window.location.href.replace(/#.*$/,"");if(t.popup)return Mc(t.popupCallbackUrl);if(r){let i=Tc(n);return i.query&&["code","error","error_description","message_code","persist","state"].forEach(o=>{delete i.query[o]}),xp(i.path,i.query)}return n}};zg.prototype.declaredClass="esri.identity.IdentityManagerBase";tr=class extends xu.EventedAccessor{constructor(e){super(e),this._oAuthCred=null,this.tokenRefreshBuffer=2,e?._oAuthCred&&(this._oAuthCred=e._oAuthCred)}initialize(){this.resources=this.resources||[],this.creationTime==null&&(this.creationTime=Date.now())}refreshToken(){let e=Br,t=e.findServerInfo(this.server),r=t?.owningSystemUrl,n=!!r&&this.scope==="server",i=n&&Y4(t,e._legacyFed),o=t.webTierAuth,s=o&&e.normalizeWebTierAuth,c=_b[this.server],a=c?.[this.userId],d,h=this.resources&&this.resources[0],g=n?e.findServerInfo(r):null,v={username:this.userId,password:a};if(o&&!s)return;n&&!g&&e.serverInfos.some(M=>(e._isIdProvider(r,M.server)&&(g=M),!!g));let S=g?e.findCredential(g.server,this.userId):null;if(!n||S){if(!i){if(n)d={serverUrl:h,token:S?.token,ssl:S?.ssl};else if(s)v=null,d={ssl:this.ssl};else{if(!a){let M;return h&&(h=e._sanitizeUrl(h),this._enqueued=1,M=e._enqueue(h,t,null,null,this.isAdmin,this),M.then(()=>{this._enqueued=0,this.refreshServerTokens()}).catch(()=>{this._enqueued=0})),M}this.isAdmin&&(d={isAdmin:!0})}return e.generateToken(n?g:t,n?null:v,d).then(M=>{this.token=M.token,this.expires=M.expires!=null?Number(M.expires):null,this.creationTime=Date.now(),this.validity=M.validity,this.emitTokenChange(),this.refreshServerTokens()}).catch(()=>{})}S?.refreshToken()}}refreshServerTokens(){if(this.scope==="portal"){let e=Br;e.credentials.forEach(t=>{let r=e.findServerInfo(t.server),n=r?.owningSystemUrl;t!==this&&t.userId===this.userId&&n&&t.scope==="server"&&(e._hasSameServerInstance(this.server,n)||e._isIdProvider(n,this.server))&&(Y4(r,e._legacyFed)?(t.token=this.token,t.expires=this.expires,t.creationTime=this.creationTime,t.validity=this.validity,t.emitTokenChange()):t.refreshToken())})}}emitTokenChange(e){clearTimeout(this._refreshTimer);let t=Br,r=this.server?t.findServerInfo(this.server):null,n=r?.owningSystemUrl,i=n?t.findServerInfo(n):null;e===!1||n&&this.scope!=="portal"&&(!i?.webTierAuth||t.normalizeWebTierAuth)||this.expires==null&&this.validity==null||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);let e=Br,t=e.credentials.indexOf(this);t>-1&&e.credentials.splice(t,1),this.emitTokenChange(),this.emit("destroy")}toJSON(){let e=v0({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);let e=6e4*this.tokenRefreshBuffer,t=2**31-1,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)}};N([z()],tr.prototype,"creationTime",void 0),N([z()],tr.prototype,"expires",void 0),N([z()],tr.prototype,"isAdmin",void 0),N([z()],tr.prototype,"oAuthState",void 0),N([z()],tr.prototype,"resources",void 0),N([z()],tr.prototype,"scope",void 0),N([z()],tr.prototype,"server",void 0),N([z()],tr.prototype,"ssl",void 0),N([z()],tr.prototype,"token",void 0),N([z()],tr.prototype,"tokenRefreshBuffer",void 0),N([z()],tr.prototype,"userId",void 0),N([z()],tr.prototype,"validity",void 0),tr=N([Ie("esri.identity.Credential")],tr)});var Vk={};os(Vk,{default:()=>Uk});var Cb,Uk,zk=V(()=>{jw();Fk();Cb=class extends zg{};Cb.prototype.declaredClass="esri.identity.IdentityManager";Uk=new Cb;sM(Uk)});async function cr(e,t){e instanceof URL&&(e=e.toString()),t?.query instanceof URLSearchParams&&(t.query=Ec(t.query.toString().replaceAll("+"," ")));let r=Ww(e),n=zw(e);n||r||(e=Vw(e));let i={url:e,requestOptions:{...t}},o=v=>({data:v,getAllHeaders:Qp,getHeader:Qp,httpStatus:200,requestOptions:i.requestOptions,url:i.url}),s=FS(e,ro.internalInterceptors);if(s){let v=await Bk(s,i);if(v!=null)return o(v)}let c=FS(e);if(c){let v=await Bk(c,i);if(v!=null)return o(v);c.after||c.error||(c=null)}if(e=i.url,(t=i.requestOptions).responseType==="image"&&(he("host-webworker")||he("host-node")))throw xs("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),i);if(t.method==="head"){if(t.body)throw xs("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),i);if(r||n)throw xs("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),i)}if(await dJ(),Tb)return Tb.execute(e,t);let a=new AbortController,d=Ci(t,()=>a.abort()),h={controller:a,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:c,params:i,redoRequest:!1,useIdentity:ro.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},g=await hJ(h).finally(()=>d?.remove());return c?.after?.(g),g}function uJ(e){let t=li(e);t&&!cr._corsServers.includes(t)&&cr._corsServers.push(t)}function Wk(e){let t=li(e);return!t||t.endsWith(".arcgis.com")||cr._corsServers.includes(t)||Uw(t)}function xs(e,t,r,n){let i="Error",o={url:r.url,requestOptions:r.requestOptions,getAllHeaders:Qp,getHeader:Qp,ssl:!1};if(t instanceof We)return t.details?(t.details=qe(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=o,t;if(t){let s=n&&(()=>Array.from(n.headers)),c=n&&(h=>n.headers.get(h)),a=n?.status,d=t.message;d&&(i=d),s&&c&&(o.getAllHeaders=s,o.getHeader=c),o.httpStatus=(t.httpCode!=null?t.httpCode:t.code)||a||0,o.subCode=t.subcode,o.messageCode=t.messageCode,typeof t.details=="string"?o.messages=[t.details]:o.messages=t.details,o.raw=Eb in t?t[Eb]:t}return Zh(t)?hs():new We(e,i,o)}async function dJ(){he("host-webworker")&&!Tb&&(Tb=await Promise.resolve().then(()=>(wM(),gM)))}async function J4(){Br||await Promise.resolve().then(()=>(zk(),Vk))}async function fJ(e){let t=e.params.url,r=e.params.requestOptions,n=e.controller.signal,i=r.body,o=null,s=null;if(Hk&&"HTMLFormElement"in globalThis&&(i instanceof FormData?o=i:i instanceof HTMLFormElement&&(o=new FormData(i))),typeof i=="string"&&(s=i),e.fetchOptions={cache:r.cacheBust?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:r.method==="head"?"HEAD":"GET",mode:"cors",priority:ro.priority,redirect:"follow",signal:n},(o||s)&&(e.fetchOptions.body=o||s),r.authMode==="anonymous"&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||o?.get("token")),!e.hasToken&&aM(t)&&(r.query||(r.query={}),r.query.token=Tt.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!qk(t)&&!Ks(n)){let c;r.authMode==="immediate"?(await J4(),c=await Br.getCredential(t,{signal:n}),e.credential=c):r.authMode==="no-prompt"?(await J4(),c=await Br.getCredential(t,{prompt:!1,signal:n}).catch(()=>{}),e.credential=c):Br&&(c=Br.findCredential(t)),c&&(e.credentialToken=c.token,e.useSSL=!!c.ssl)}}function qk(e){return lJ.some(t=>t.test(e))}async function pJ(e){let t=e.params.url,r=e.params.requestOptions,n=e.fetchOptions??{},i=zw(t)||Ww(t),o=r.responseType||"json",s=i?0:r.timeout!=null?r.timeout:ro.timeout,c=!1;if(!i){e.useSSL&&(t=Gw(t));let v={...r.query};e.credentialToken&&(v.token=e.credentialToken);let S=Su(v);he("esri-url-encodes-apostrophe")&&(S=S.replaceAll("'","%27"));let M=t.length+1+S.length,I;c=r.method==="delete"||r.method==="post"||r.method==="put"||!!r.body||M>ro.maxUrlLength;let R=r.useProxy||!!Sp(t);if(R){let B=eM(t);I=B.path,!c&&I.length+1+M>ro.maxUrlLength&&(c=!0),B.query&&(v={...B.query,...v})}if(n.method==="HEAD"&&(c||R)){if(c)throw M>ro.maxUrlLength?xs("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params):xs("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params);if(R)throw xs("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}c?(n.method=r.method==="delete"?"DELETE":r.method==="put"?"PUT":"POST",r.body?t=xp(t,v):(n.body=Su(v),n.headers||(n.headers={}),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=xp(t,v),R&&(e.useProxy=!0,t=`${I}?${t}`),v.token&&Hk&&n.body instanceof FormData&&!Rw(t)&&n.body.set("token",v.token),r.hasOwnProperty("withCredentials")?e.withCredentials=r.withCredentials:Jn(t,Fw())||(Uw(t)||Br&&Br.findServerInfo(t)?.webTierAuth)&&(e.withCredentials=!0),e.withCredentials&&(n.credentials="include",pM(t)&&await mM(c?xp(t,v):t))}let a,d,h=0,g=!1;s>0&&(h=setTimeout(()=>{g=!0,e.controller.abort()},s));try{if(r.responseType==="native-request-init")d=n,d.url=t,r.signal?d.signal=r.signal:delete d.signal;else if(r.responseType!=="image"||n.cache!=="default"||n.method!=="GET"||c||mJ(r.headers)||!i&&!e.useProxy&&ro.proxyUrl&&!Wk(t)){if(cr._beforeFetch&&await cr._beforeFetch(t,n),a=await fetch(t,n),cr._afterFetch&&await cr._afterFetch(a),e.useProxy||uJ(t),r.responseType==="native")d=a;else if(n.method!=="HEAD")if(a.ok){switch(o){case"array-buffer":d=await a.arrayBuffer();break;case"blob":case"image":d=await a.blob();break;default:d=await a.text()}if(h&&(clearTimeout(h),h=0),o==="json"||o==="xml"||o==="document")if(d)switch(o){case"json":d=JSON.parse(d);break;case"xml":d=Gk(d,"application/xml");break;case"document":d=Gk(d,"text/html")}else d=null;if(d){if(o==="array-buffer"||o==="blob"){let v=a.headers.get("Content-Type");if(v&&/application\/json|text\/plain/i.test(v)&&d[o==="blob"?"size":"byteLength"]<=750)try{let S=await new Response(d).json();S.error&&(d=S)}catch{}}o==="image"&&d instanceof Blob&&(d=await jk(URL.createObjectURL(d),e,!0))}}else{d=await a.text();try{d=JSON.parse(d)}catch{}}}else d=await jk(t,e)}catch(v){if(v.name==="AbortError")throw g?dM():hs("Request canceled");if(!(!a&&v instanceof TypeError&&ro.proxyUrl)||r.body||r.method==="delete"||r.method==="head"||r.method==="post"||r.method==="put"||e.useProxy||Wk(t))throw v;e.redoRequest=!0,nM({proxyUrl:ro.proxyUrl,urlPrefix:li(t)??""})}finally{h&&clearTimeout(h)}return[a,d]}async function Bk(e,t){if(e.responseData!=null)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,n;try{n=await e.before(t)}catch(i){r=xs("request:interceptor",i,t)}if((n instanceof Error||n instanceof We)&&(r=xs("request:interceptor",n,t)),r)throw e.error&&e.error(r),r;return n}}function mJ(e){if(e){for(let t of Object.getOwnPropertyNames(e))if(e[t])return!0}return!1}function Gk(e,t){let r;try{r=new DOMParser().parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function hJ(e){let t,r;await fJ(e);try{do[t,r]=await pJ(e);while(!await gJ(e,t,r))}catch(o){let s=xs("request:server",o,e.params,t);throw s.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(s),s}let n=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(n)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!Uw(n)){let o=li(n,!0);o&&ro.trustedServers.push(o)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&fM(r.authorizedCrossOriginNoCorsDomains)}let i=e.credential;if(i&&Br){let s=Br.findServerInfo(i.server)?.owningSystemUrl;if(s){s=s.replace(/\/?$/,"/sharing");let c=Br.findCredential(s,i.userId);c&&Br._getIdenticalSvcIdx(s,c)===-1&&c.resources.unshift(s)}}return{data:r,getAllHeaders:t?()=>Array.from(t.headers):Qp,getHeader:t?o=>t.headers.get(o):Qp,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}async function gJ(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;let n=e.params.requestOptions;if(!t||n.responseType==="native"||n.responseType==="native-request-init")return!0;let i,o;if(r&&(r.error&&typeof r.error=="object"?i=r.error:r.status==="error"&&Array.isArray(r.messages)&&(i={...r},i[Eb]=r,i.details=r.messages)),!i&&!t.ok)throw i=new Error(`Unable to load ${t.url} status: ${t.status}`),i[Eb]=r,i;let s,c=null;i&&(o=Number(i.code),c=i.hasOwnProperty("subcode")?Number(i.subcode):null,s=i.messageCode,s=s?.toUpperCase());let a=n.authMode;if(o===403&&(c===4||i.message?.toLowerCase().includes("ssl")&&!i.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&(a!=="no-prompt"||o===498)&&o!==void 0&&aJ.has(o)&&!qk(e.params.url)&&(o!==403||(!s||!cJ.has(s))&&(c==null||c===2&&e.credentialToken))){await J4();try{let d=await Br.getCredential(e.params.url,{error:xs("request:server",i,e.params),prompt:a!=="no-prompt",signal:e.controller.signal,token:e.credentialToken});return e.credential=d,e.credentialToken=d.token,e.useSSL=e.useSSL||d.ssl,!1}catch(d){if(a==="no-prompt")return e.credential=void 0,e.credentialToken=void 0,!1;i=d}}if(i)throw i;return!0}function jk(e,t,r=!1){let n=t.controller.signal,i=new Image;return t.withCredentials?i.crossOrigin="use-credentials":i.crossOrigin="anonymous",i.alt="",i.fetchPriority=ro.priority,i.src=e,uM(i,e,r,n)}var Tb,ro,Hk,aJ,cJ,lJ,Qp,Eb,Xw=V(()=>{yc();jw();An();et();or();ko();Ic();Dw();cM();hM();ro=Tt.request,Hk="FormData"in globalThis,aJ=new Set([499,498,403,401]),cJ=new Set(["COM_0056","COM_0057","SB_0008"]),lJ=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],Qp=()=>null,Eb=Symbol();cr._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],cr._beforeFetch=void 0,cr._afterFetch=void 0});function Ip(e){if(!Tt.assetsPath)throw ct.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new We("assets:path-not-set","config.assetsPath is not set");return US(Tt.assetsPath,e)}var Kw=V(()=>{yc();Xw();An();tt();Ic()});function Zk(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yk=V(()=>{});var Jk=u9(()=>{});var Xk=u9(()=>{});var eO={};os(eO,{p:()=>bJ});function wJ(){return Kk||(Kk=1,e=Qk,t=typeof document<"u"?document.currentScript?.src:void 0,typeof __filename<"u"&&(t=t||__filename),r=function(n={}){var i,o,s,c,a=n,d=new Promise((m,k)=>{i=m,o=k}),h=typeof window=="object",g=typeof WorkerGlobalScope<"u",v=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer",S=Object.assign({},a),M="./this.program",I="";function R(m){return a.locateFile?a.locateFile(m,I):I+m}if(v){var B=Jk(),F=Xk();I=__dirname+"/",c=m=>(m=so(m)?new URL(m):F.normalize(m),B.readFileSync(m)),s=(m,k=!0)=>(m=so(m)?new URL(m):F.normalize(m),new Promise((Y,ce)=>{B.readFile(m,k?void 0:"utf8",(pe,Te)=>{pe?ce(pe):Y(k?Te.buffer:Te)})})),!a.thisProgram&&process.argv.length>1&&(M=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2)}else(h||g)&&(g?I=self.location.href:typeof document<"u"&&document.currentScript&&(I=document.currentScript.src),t&&(I=t),I=I.startsWith("blob:")?"":I.substr(0,I.replace(/[?#].*/,"").lastIndexOf("/")+1),g&&(c=m=>{var k=new XMLHttpRequest;return k.open("GET",m,!1),k.responseType="arraybuffer",k.send(null),new Uint8Array(k.response)}),s=m=>so(m)?new Promise((k,Y)=>{var ce=new XMLHttpRequest;ce.open("GET",m,!0),ce.responseType="arraybuffer",ce.onload=()=>{ce.status==200||ce.status==0&&ce.response?k(ce.response):Y(ce.status)},ce.onerror=Y,ce.send(null)}):fetch(m,{credentials:"same-origin"}).then(k=>k.ok?k.arrayBuffer():Promise.reject(new Error(k.status+" : "+k.url))));var G,J,re=console.log.bind(console),de=console.error.bind(console);Object.assign(a,S),S=null;var W,me,Le,xe,ke,ge,K,H=!1;function se(m,k){m||xn(k)}function fe(){var m=J.buffer;a.HEAP8=W=new Int8Array(m),a.HEAP16=Le=new Int16Array(m),a.HEAPU8=me=new Uint8Array(m),a.HEAPU16=new Uint16Array(m),a.HEAP32=xe=new Int32Array(m),a.HEAPU32=ke=new Uint32Array(m),a.HEAPF32=ge=new Float32Array(m),a.HEAPF64=K=new Float64Array(m)}var we=[],Ee=[],Ne=[];function Xe(){Jo(we)}function rt(){Jo(Ee)}function mr(){Jo(Ne)}function Yr(m){Ee.unshift(m)}var Gt=0,br=null;function Gn(m){Gt++}function $i(m){if(--Gt==0&&br){var k=br;br=null,k()}}function xn(m){de(m="Aborted("+m+")"),H=!0,m+=". Build with -sASSERTIONS for more info.";var k=new WebAssembly.RuntimeError(m);throw o(k),k}var Fe,od="data:application/octet-stream;base64,",Yo=m=>m.startsWith(od),so=m=>m.startsWith("file://");function il(){var m="pe-wasm.wasm";return Yo(m)?m:R(m)}function ya(m){if(m==Fe&&G)return new Uint8Array(G);if(c)return c(m);throw"both async and sync fetching of the wasm failed"}function Ls(m){return s(m).then(k=>new Uint8Array(k),()=>ya(m))}function Fi(m,k,Y){return Ls(m).then(ce=>WebAssembly.instantiate(ce,k)).then(Y,ce=>{de(`failed to asynchronously prepare wasm: ${ce}`),xn(ce)})}function sd(m,k,Y,ce){return typeof WebAssembly.instantiateStreaming!="function"||Yo(k)||so(k)||v||typeof fetch!="function"?Fi(k,Y,ce):fetch(k,{credentials:"same-origin"}).then(pe=>WebAssembly.instantiateStreaming(pe,Y).then(ce,function(Te){return de(`wasm streaming compile failed: ${Te}`),de("falling back to ArrayBuffer instantiation"),Fi(k,Y,ce)}))}function ks(){return{a:pm}}function fm(){var m=ks();function k(ce,pe){return Z=ce.exports,J=Z.t,fe(),Yr(Z.u),$i(),Z}function Y(ce){k(ce.instance)}return Gn(),Fe??(Fe=il()),sd(G,Fe,m,Y).catch(o),{}}var Jo=m=>{for(;m.length>0;)m.shift()(a)};function ba(m,k="i8"){switch(k.endsWith("*")&&(k="*"),k){case"i1":case"i8":return W[m];case"i16":return Le[m>>1];case"i32":return xe[m>>2];case"i64":xn("to do getValue(i64) use WASM_BIGINT");case"float":return ge[m>>2];case"double":return K[m>>3];case"*":return ke[m>>2];default:xn(`invalid type for getValue: ${k}`)}}var ol=typeof TextDecoder<"u"?new TextDecoder:void 0,sl=(m,k=0,Y=NaN)=>{for(var ce=k+Y,pe=k;m[pe]&&!(pe>=ce);)++pe;if(pe-k>16&&m.buffer&&ol)return ol.decode(m.subarray(k,pe));for(var Te="";k<pe;){var Ue=m[k++];if(128&Ue){var Re=63&m[k++];if((224&Ue)!=192){var at=63&m[k++];if((Ue=(240&Ue)==224?(15&Ue)<<12|Re<<6|at:(7&Ue)<<18|Re<<12|at<<6|63&m[k++])<65536)Te+=String.fromCharCode(Ue);else{var En=Ue-65536;Te+=String.fromCharCode(55296|En>>10,56320|1023&En)}}else Te+=String.fromCharCode((31&Ue)<<6|Re)}else Te+=String.fromCharCode(Ue)}return Te},vr=(m,k)=>m?sl(me,m,k):"";function ad(m,k,Y){return 0}var Xo=(m,k,Y,ce)=>{if(!(ce>0))return 0;for(var pe=Y,Te=Y+ce-1,Ue=0;Ue<m.length;++Ue){var Re=m.charCodeAt(Ue);if(Re>=55296&&Re<=57343&&(Re=65536+((1023&Re)<<10)|1023&m.charCodeAt(++Ue)),Re<=127){if(Y>=Te)break;k[Y++]=Re}else if(Re<=2047){if(Y+1>=Te)break;k[Y++]=192|Re>>6,k[Y++]=128|63&Re}else if(Re<=65535){if(Y+2>=Te)break;k[Y++]=224|Re>>12,k[Y++]=128|Re>>6&63,k[Y++]=128|63&Re}else{if(Y+3>=Te)break;k[Y++]=240|Re>>18,k[Y++]=128|Re>>12&63,k[Y++]=128|Re>>6&63,k[Y++]=128|63&Re}}return k[Y]=0,Y-pe},va=(m,k,Y)=>Xo(m,me,k,Y);function al(m,k,Y){return 0}function cd(m,k,Y,ce){}var cl=m=>m%4==0&&(m%100!=0||m%400==0),ll=[0,31,60,91,121,152,182,213,244,274,305,335],ul=[0,31,59,90,120,151,181,212,243,273,304,334],dl=m=>(cl(m.getFullYear())?ll:ul)[m.getMonth()]+m.getDate()-1,ld=(m,k)=>k+2097152>>>0<4194305-!!m?(m>>>0)+4294967296*k:NaN;function ao(m,k,Y){var ce=ld(m,k),pe=new Date(1e3*ce);xe[Y>>2]=pe.getSeconds(),xe[Y+4>>2]=pe.getMinutes(),xe[Y+8>>2]=pe.getHours(),xe[Y+12>>2]=pe.getDate(),xe[Y+16>>2]=pe.getMonth(),xe[Y+20>>2]=pe.getFullYear()-1900,xe[Y+24>>2]=pe.getDay();var Te=0|dl(pe);xe[Y+28>>2]=Te,xe[Y+36>>2]=-60*pe.getTimezoneOffset();var Ue=new Date(pe.getFullYear(),0,1),Re=new Date(pe.getFullYear(),6,1).getTimezoneOffset(),at=Ue.getTimezoneOffset(),En=0|(Re!=at&&pe.getTimezoneOffset()==Math.min(at,Re));xe[Y+32>>2]=En}var ud=()=>2147483648,fl=(m,k)=>Math.ceil(m/k)*k,Os=m=>{var k=(m-J.buffer.byteLength+65535)/65536|0;try{return J.grow(k),fe(),1}catch{}},Ui={},Ko=()=>M||"./this.program",co=()=>{if(!co.strings){var m={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Ko()};for(var k in Ui)Ui[k]===void 0?delete m[k]:m[k]=Ui[k];var Y=[];for(var k in m)Y.push(`${k}=${m[k]}`);co.strings=Y}return co.strings},pl=(m,k)=>{for(var Y=0;Y<m.length;++Y)W[k++]=m.charCodeAt(Y);W[k]=0};function dd(m,k,Y,ce,pe){return 70}var ml=[null,[],[]],_a=(m,k)=>{var Y=ml[m];k===0||k===10?((m===1?re:de)(sl(Y)),Y.length=0):Y.push(k)},fd=m=>{for(var k=0,Y=0;Y<m.length;++Y){var ce=m.charCodeAt(Y);ce<=127?k++:ce<=2047?k+=2:ce>=55296&&ce<=57343?(k+=4,++Y):k+=3}return k};function pd(m,k,Y){var ce=fd(m)+1,pe=new Array(ce);return Xo(m,pe,0,pe.length),pe}var pm={c:ad,q:(m,k,Y)=>{},h:al,d:cd,o:m=>{},n:(m,k)=>{},p:(m,k,Y)=>{},l:()=>{xn("")},s:(m,k,Y)=>me.copyWithin(m,k,k+Y),j:ao,r:(m,k,Y,ce)=>{var pe=new Date().getFullYear(),Te=new Date(pe,0,1),Ue=new Date(pe,6,1),Re=Te.getTimezoneOffset(),at=Ue.getTimezoneOffset(),En=Math.max(Re,at);ke[m>>2]=60*En,xe[k>>2]=+(Re!=at);var i1=a1=>{var pv=a1>=0?"-":"+",c1=Math.abs(a1);return`UTC${pv}${String(Math.floor(c1/60)).padStart(2,"0")}${String(c1%60).padStart(2,"0")}`},o1=i1(Re),s1=i1(at);at<Re?(va(o1,Y,17),va(s1,ce,17)):(va(o1,ce,17),va(s1,Y,17))},i:()=>Date.now(),m:m=>{var k=me.length;m>>>=0;var Y=ud();if(m>Y)return!1;for(var ce=1;ce<=4;ce*=2){var pe=k*(1+.2/ce);pe=Math.min(pe,m+100663296);var Te=Math.min(Y,fl(Math.max(m,pe),65536));if(Os(Te))return!0}return!1},e:(m,k)=>{var Y=0;return co().forEach((ce,pe)=>{var Te=k+Y;ke[m+4*pe>>2]=Te,pl(ce,Te),Y+=ce.length+1}),0},f:(m,k)=>{var Y=co();ke[m>>2]=Y.length;var ce=0;return Y.forEach(pe=>ce+=pe.length+1),ke[k>>2]=ce,0},a:m=>52,g:(m,k,Y,ce)=>52,k:dd,b:(m,k,Y,ce)=>{for(var pe=0,Te=0;Te<Y;Te++){var Ue=ke[k>>2],Re=ke[k+4>>2];k+=8;for(var at=0;at<Re;at++)_a(m,me[Ue+at]);pe+=Re}return ke[ce>>2]=pe,0}},Z=fm();a._webidl_free=m=>(a._webidl_free=Z.v)(m),a._webidl_malloc=m=>(a._webidl_malloc=Z.w)(m);var Qo,md=a._emscripten_bind_PeObject_getCode_0=m=>(md=a._emscripten_bind_PeObject_getCode_0=Z.x)(m),hd=a._emscripten_bind_PeObject_getName_1=(m,k)=>(hd=a._emscripten_bind_PeObject_getName_1=Z.y)(m,k),hl=a._emscripten_bind_PeObject_getType_0=m=>(hl=a._emscripten_bind_PeObject_getType_0=Z.z)(m),dn=a._emscripten_bind_PeCoordsys_isEqual_1=(m,k)=>(dn=a._emscripten_bind_PeCoordsys_isEqual_1=Z.A)(m,k),Vi=a._emscripten_bind_PeCoordsys_getCode_0=m=>(Vi=a._emscripten_bind_PeCoordsys_getCode_0=Z.B)(m),ti=a._emscripten_bind_PeCoordsys_getName_1=(m,k)=>(ti=a._emscripten_bind_PeCoordsys_getName_1=Z.C)(m,k),gd=a._emscripten_bind_PeCoordsys_getType_0=m=>(gd=a._emscripten_bind_PeCoordsys_getType_0=Z.D)(m),wd=a._emscripten_bind_PeUnit_getUnitFactor_0=m=>(wd=a._emscripten_bind_PeUnit_getUnitFactor_0=Z.E)(m),Sa=a._emscripten_bind_PeUnit_getCode_0=m=>(Sa=a._emscripten_bind_PeUnit_getCode_0=Z.F)(m),hi=a._emscripten_bind_PeUnit_getName_1=(m,k)=>(hi=a._emscripten_bind_PeUnit_getName_1=Z.G)(m,k),je=a._emscripten_bind_PeUnit_getType_0=m=>(je=a._emscripten_bind_PeUnit_getType_0=Z.H)(m),xa=a._emscripten_bind_VoidPtr___destroy___0=m=>(xa=a._emscripten_bind_VoidPtr___destroy___0=Z.I)(m),gl=a._emscripten_bind_PeAngunit_getCode_0=m=>(gl=a._emscripten_bind_PeAngunit_getCode_0=Z.J)(m),wl=a._emscripten_bind_PeAngunit_getName_1=(m,k)=>(wl=a._emscripten_bind_PeAngunit_getName_1=Z.K)(m,k),yl=a._emscripten_bind_PeAngunit_getType_0=m=>(yl=a._emscripten_bind_PeAngunit_getType_0=Z.L)(m),es=a._emscripten_bind_PeAngunit_getUnitFactor_0=m=>(es=a._emscripten_bind_PeAngunit_getUnitFactor_0=Z.M)(m),Ca=a._emscripten_bind_PeDatum_getSpheroid_0=m=>(Ca=a._emscripten_bind_PeDatum_getSpheroid_0=Z.N)(m),yd=a._emscripten_bind_PeDatum_getCode_0=m=>(yd=a._emscripten_bind_PeDatum_getCode_0=Z.O)(m),bd=a._emscripten_bind_PeDatum_getName_1=(m,k)=>(bd=a._emscripten_bind_PeDatum_getName_1=Z.P)(m,k),vd=a._emscripten_bind_PeDatum_getType_0=m=>(vd=a._emscripten_bind_PeDatum_getType_0=Z.Q)(m),bl=a._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=m=>(bl=a._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=Z.R)(m),_d=a._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=m=>(_d=a._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=Z.S)(m),vl=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=m=>(vl=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=Z.T)(m),_l=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=m=>(_l=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=Z.U)(m),Ns=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=m=>(Ns=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=Z.V)(m),Sl=a._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=m=>(Sl=a._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=Z.W)(m),Ta=a._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=m=>(Ta=a._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=Z.X)(m),xl=a._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=m=>(xl=a._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=Z.Y)(m),Sd=a._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=m=>(Sd=a._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=Z.Z)(m),Ea=a._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=m=>(Ea=a._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=Z._)(m),xd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=m=>(xd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=Z.$)(m),Ma=a._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=m=>(Ma=a._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=Z.aa)(m),Cd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=m=>(Cd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=Z.ba)(m),Td=a._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=m=>(Td=a._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=Z.ca)(m),Ed=a._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=m=>(Ed=a._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=Z.da)(m),Md=a._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=m=>(Md=a._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=Z.ea)(m),Pd=a._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=m=>(Pd=a._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=Z.fa)(m),Cl=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=m=>(Cl=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=Z.ga)(m),Rs=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=m=>(Rs=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=Z.ha)(m),lo=a._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=m=>(lo=a._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=Z.ia)(m),Pa=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=m=>(Pa=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=Z.ja)(m),Ds=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=m=>(Ds=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=Z.ka)(m),gi=a._emscripten_bind_PeDefs_get_PE_PARM_X0_0=m=>(gi=a._emscripten_bind_PeDefs_get_PE_PARM_X0_0=Z.la)(m),ts=a._emscripten_bind_PeDefs_get_PE_PARM_ND_0=m=>(ts=a._emscripten_bind_PeDefs_get_PE_PARM_ND_0=Z.ma)(m),Id=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=m=>(Id=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=Z.na)(m),Tl=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=m=>(Tl=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=Z.oa)(m),El=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=m=>(El=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=Z.pa)(m),Ia=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=m=>(Ia=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=Z.qa)(m),Ad=a._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=m=>(Ad=a._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=Z.ra)(m),Ld=a._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=m=>(Ld=a._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=Z.sa)(m),Ml=a._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=m=>(Ml=a._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=Z.ta)(m),kd=a._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=m=>(kd=a._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=Z.ua)(m),Od=a._emscripten_bind_PeDouble_PeDouble_1=m=>(Od=a._emscripten_bind_PeDouble_PeDouble_1=Z.va)(m),Pl=a._emscripten_bind_PeDouble_get_val_0=m=>(Pl=a._emscripten_bind_PeDouble_get_val_0=Z.wa)(m),Il=a._emscripten_bind_PeDouble_set_val_1=(m,k)=>(Il=a._emscripten_bind_PeDouble_set_val_1=Z.xa)(m,k),Nd=a._emscripten_bind_PeDouble___destroy___0=m=>(Nd=a._emscripten_bind_PeDouble___destroy___0=Z.ya)(m),Aa=a._emscripten_bind_PeFactory_initialize_1=m=>(Aa=a._emscripten_bind_PeFactory_initialize_1=Z.za)(m),Rd=a._emscripten_bind_PeFactory_factoryByType_2=(m,k)=>(Rd=a._emscripten_bind_PeFactory_factoryByType_2=Z.Aa)(m,k),Al=a._emscripten_bind_PeFactory_fromString_2=(m,k)=>(Al=a._emscripten_bind_PeFactory_fromString_2=Z.Ba)(m,k),Dd=a._emscripten_bind_PeFactory_getCode_1=m=>(Dd=a._emscripten_bind_PeFactory_getCode_1=Z.Ca)(m),$s=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=(m,k,Y,ce,pe,Te)=>($s=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=Z.Da)(m,k,Y,ce,pe,Te),$d=a._emscripten_bind_PeGCSExtent_getLLon_0=m=>($d=a._emscripten_bind_PeGCSExtent_getLLon_0=Z.Ea)(m),Ll=a._emscripten_bind_PeGCSExtent_getSLat_0=m=>(Ll=a._emscripten_bind_PeGCSExtent_getSLat_0=Z.Fa)(m),kl=a._emscripten_bind_PeGCSExtent_getRLon_0=m=>(kl=a._emscripten_bind_PeGCSExtent_getRLon_0=Z.Ga)(m),Fd=a._emscripten_bind_PeGCSExtent_getNLat_0=m=>(Fd=a._emscripten_bind_PeGCSExtent_getNLat_0=Z.Ha)(m),Ol=a._emscripten_bind_PeGCSExtent___destroy___0=m=>(Ol=a._emscripten_bind_PeGCSExtent___destroy___0=Z.Ia)(m),Nl=a._emscripten_bind_PeGeogcs_Delete_0=m=>(Nl=a._emscripten_bind_PeGeogcs_Delete_0=Z.Ja)(m),Ud=a._emscripten_bind_PeGeogcs_cloneAlterUnits_1=(m,k)=>(Ud=a._emscripten_bind_PeGeogcs_cloneAlterUnits_1=Z.Ka)(m,k),uo=a._emscripten_bind_PeGeogcs_getDatum_0=m=>(uo=a._emscripten_bind_PeGeogcs_getDatum_0=Z.La)(m),rs=a._emscripten_bind_PeGeogcs_getPrimem_0=m=>(rs=a._emscripten_bind_PeGeogcs_getPrimem_0=Z.Ma)(m),Vd=a._emscripten_bind_PeGeogcs_getUnit_0=m=>(Vd=a._emscripten_bind_PeGeogcs_getUnit_0=Z.Na)(m),La=a._emscripten_bind_PeGeogcs_isEqual_1=(m,k)=>(La=a._emscripten_bind_PeGeogcs_isEqual_1=Z.Oa)(m,k),ka=a._emscripten_bind_PeGeogcs_getCode_0=m=>(ka=a._emscripten_bind_PeGeogcs_getCode_0=Z.Pa)(m),zd=a._emscripten_bind_PeGeogcs_getName_1=(m,k)=>(zd=a._emscripten_bind_PeGeogcs_getName_1=Z.Qa)(m,k),Fs=a._emscripten_bind_PeGeogcs_getType_0=m=>(Fs=a._emscripten_bind_PeGeogcs_getType_0=Z.Ra)(m),Rl=a._emscripten_bind_PeGeogtran_isEqual_1=(m,k)=>(Rl=a._emscripten_bind_PeGeogtran_isEqual_1=Z.Sa)(m,k),Dl=a._emscripten_bind_PeGeogtran_getGeogcs1_0=m=>(Dl=a._emscripten_bind_PeGeogtran_getGeogcs1_0=Z.Ta)(m),Oa=a._emscripten_bind_PeGeogtran_getGeogcs2_0=m=>(Oa=a._emscripten_bind_PeGeogtran_getGeogcs2_0=Z.Ua)(m),$l=a._emscripten_bind_PeGeogtran_getParameters_0=m=>($l=a._emscripten_bind_PeGeogtran_getParameters_0=Z.Va)(m),Wd=a._emscripten_bind_PeGeogtran_loadConstants_0=m=>(Wd=a._emscripten_bind_PeGeogtran_loadConstants_0=Z.Wa)(m),wi=a._emscripten_bind_PeGeogtran_getCode_0=m=>(wi=a._emscripten_bind_PeGeogtran_getCode_0=Z.Xa)(m),Bd=a._emscripten_bind_PeGeogtran_getName_1=(m,k)=>(Bd=a._emscripten_bind_PeGeogtran_getName_1=Z.Ya)(m,k),Gd=a._emscripten_bind_PeGeogtran_getType_0=m=>(Gd=a._emscripten_bind_PeGeogtran_getType_0=Z.Za)(m),jd=a._emscripten_bind_PeGTlistExtended_getGTlist_6=(m,k,Y,ce,pe,Te)=>(jd=a._emscripten_bind_PeGTlistExtended_getGTlist_6=Z._a)(m,k,Y,ce,pe,Te),Fl=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=m=>(Fl=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=Z.$a)(m),Ul=a._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=m=>(Ul=a._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=Z.ab)(m),_r=a._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=m=>(_r=a._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=Z.bb)(m),Hd=a._emscripten_bind_PeGTlistExtendedEntry_Delete_1=m=>(Hd=a._emscripten_bind_PeGTlistExtendedEntry_Delete_1=Z.cb)(m),qd=a._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=m=>(qd=a._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=Z.db)(m),Zd=a._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=m=>(Zd=a._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=Z.eb)(m),Yd=a._emscripten_bind_PeHorizon_getNump_0=m=>(Yd=a._emscripten_bind_PeHorizon_getNump_0=Z.fb)(m),Jd=a._emscripten_bind_PeHorizon_getKind_0=m=>(Jd=a._emscripten_bind_PeHorizon_getKind_0=Z.gb)(m),Vl=a._emscripten_bind_PeHorizon_getInclusive_0=m=>(Vl=a._emscripten_bind_PeHorizon_getInclusive_0=Z.hb)(m),Xd=a._emscripten_bind_PeHorizon_getSize_0=m=>(Xd=a._emscripten_bind_PeHorizon_getSize_0=Z.ib)(m),zl=a._emscripten_bind_PeHorizon_getCoord_0=m=>(zl=a._emscripten_bind_PeHorizon_getCoord_0=Z.jb)(m),Wl=a._emscripten_bind_PeInteger_PeInteger_1=m=>(Wl=a._emscripten_bind_PeInteger_PeInteger_1=Z.kb)(m),Us=a._emscripten_bind_PeInteger_get_val_0=m=>(Us=a._emscripten_bind_PeInteger_get_val_0=Z.lb)(m),zi=a._emscripten_bind_PeInteger_set_val_1=(m,k)=>(zi=a._emscripten_bind_PeInteger_set_val_1=Z.mb)(m,k),Vs=a._emscripten_bind_PeInteger___destroy___0=m=>(Vs=a._emscripten_bind_PeInteger___destroy___0=Z.nb)(m),Kd=a._emscripten_bind_PeLineType_geodetic_distance_10=(m,k,Y,ce,pe,Te,Ue,Re,at,En)=>(Kd=a._emscripten_bind_PeLineType_geodetic_distance_10=Z.ob)(m,k,Y,ce,pe,Te,Ue,Re,at,En),Bl=a._emscripten_bind_PeLineType_geodetic_coordinate_9=(m,k,Y,ce,pe,Te,Ue,Re,at)=>(Bl=a._emscripten_bind_PeLineType_geodetic_coordinate_9=Z.pb)(m,k,Y,ce,pe,Te,Ue,Re,at),Gl=a._emscripten_bind_PeLineType_geodesic_coordinate_8=(m,k,Y,ce,pe,Te,Ue,Re)=>(Gl=a._emscripten_bind_PeLineType_geodesic_coordinate_8=Z.qb)(m,k,Y,ce,pe,Te,Ue,Re),jl=a._emscripten_bind_PeLineType_great_elliptic_distance_9=(m,k,Y,ce,pe,Te,Ue,Re,at)=>(jl=a._emscripten_bind_PeLineType_great_elliptic_distance_9=Z.rb)(m,k,Y,ce,pe,Te,Ue,Re,at),ns=a._emscripten_bind_PeMath_phi_to_eta_2=(m,k)=>(ns=a._emscripten_bind_PeMath_phi_to_eta_2=Z.sb)(m,k),Qd=a._emscripten_bind_PeMath_eta_to_phi_2=(m,k)=>(Qd=a._emscripten_bind_PeMath_eta_to_phi_2=Z.tb)(m,k),ef=a._emscripten_bind_PeMath_phi_to_phig_2=(m,k)=>(ef=a._emscripten_bind_PeMath_phi_to_phig_2=Z.ub)(m,k),tf=a._emscripten_bind_PeMath_q_3=(m,k,Y)=>(tf=a._emscripten_bind_PeMath_q_3=Z.vb)(m,k,Y),rf=a._emscripten_bind_PeMath_q90_2=(m,k)=>(rf=a._emscripten_bind_PeMath_q90_2=Z.wb)(m,k),nf=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=m=>(nf=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=Z.xb)(m),of=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=m=>(of=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=Z.yb)(m),Na=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=m=>(Na=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=Z.zb)(m),sf=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=m=>(sf=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=Z.Ab)(m),zs=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=m=>(zs=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=Z.Bb)(m),af=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=m=>(af=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=Z.Cb)(m),Ra=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=m=>(Ra=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=Z.Db)(m),cf=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=m=>(cf=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=Z.Eb)(m),lf=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=m=>(lf=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=Z.Fb)(m),Hl=a._emscripten_bind_PeParameter_getValue_0=m=>(Hl=a._emscripten_bind_PeParameter_getValue_0=Z.Gb)(m),is=a._emscripten_bind_PeParameter_getCode_0=m=>(is=a._emscripten_bind_PeParameter_getCode_0=Z.Hb)(m),yi=a._emscripten_bind_PeParameter_getName_1=(m,k)=>(yi=a._emscripten_bind_PeParameter_getName_1=Z.Ib)(m,k),ql=a._emscripten_bind_PeParameter_getType_0=m=>(ql=a._emscripten_bind_PeParameter_getType_0=Z.Jb)(m),Da=a._emscripten_bind_PePCSInfo_getCentralMeridian_0=m=>(Da=a._emscripten_bind_PePCSInfo_getCentralMeridian_0=Z.Kb)(m),uf=a._emscripten_bind_PePCSInfo_getDomainMinx_0=m=>(uf=a._emscripten_bind_PePCSInfo_getDomainMinx_0=Z.Lb)(m),df=a._emscripten_bind_PePCSInfo_getDomainMiny_0=m=>(df=a._emscripten_bind_PePCSInfo_getDomainMiny_0=Z.Mb)(m),ff=a._emscripten_bind_PePCSInfo_getDomainMaxx_0=m=>(ff=a._emscripten_bind_PePCSInfo_getDomainMaxx_0=Z.Nb)(m),pf=a._emscripten_bind_PePCSInfo_getDomainMaxy_0=m=>(pf=a._emscripten_bind_PePCSInfo_getDomainMaxy_0=Z.Ob)(m),mf=a._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=m=>(mf=a._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=Z.Pb)(m),hf=a._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=m=>(hf=a._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=Z.Qb)(m),gf=a._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=m=>(gf=a._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=Z.Rb)(m),wf=a._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=m=>(wf=a._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=Z.Sb)(m),yf=a._emscripten_bind_PePCSInfo_isDensificationNeeded_0=m=>(yf=a._emscripten_bind_PePCSInfo_isDensificationNeeded_0=Z.Tb)(m),bf=a._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=m=>(bf=a._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=Z.Ub)(m),p=a._emscripten_bind_PePCSInfo_isPannableRectangle_0=m=>(p=a._emscripten_bind_PePCSInfo_isPannableRectangle_0=Z.Vb)(m),f=a._emscripten_bind_PePCSInfo_generate_2=(m,k)=>(f=a._emscripten_bind_PePCSInfo_generate_2=Z.Wb)(m,k),w=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=m=>(w=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=Z.Xb)(m),_=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=m=>(_=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=Z.Yb)(m),T=a._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=m=>(T=a._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=Z.Zb)(m),E=a._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=m=>(E=a._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=Z._b)(m),A=a._emscripten_bind_PePrimem_getLongitude_0=m=>(A=a._emscripten_bind_PePrimem_getLongitude_0=Z.$b)(m),O=a._emscripten_bind_PePrimem_getCode_0=m=>(O=a._emscripten_bind_PePrimem_getCode_0=Z.ac)(m),$=a._emscripten_bind_PePrimem_getName_1=(m,k)=>($=a._emscripten_bind_PePrimem_getName_1=Z.bc)(m,k),j=a._emscripten_bind_PePrimem_getType_0=m=>(j=a._emscripten_bind_PePrimem_getType_0=Z.cc)(m),U=a._emscripten_bind_PeProjcs_Delete_0=m=>(U=a._emscripten_bind_PeProjcs_Delete_0=Z.dc)(m),ee=a._emscripten_bind_PeProjcs_getGeogcs_0=m=>(ee=a._emscripten_bind_PeProjcs_getGeogcs_0=Z.ec)(m),le=a._emscripten_bind_PeProjcs_getProjection_0=m=>(le=a._emscripten_bind_PeProjcs_getProjection_0=Z.fc)(m),be=a._emscripten_bind_PeProjcs_getParameters_0=m=>(be=a._emscripten_bind_PeProjcs_getParameters_0=Z.gc)(m),ye=a._emscripten_bind_PeProjcs_getUnit_0=m=>(ye=a._emscripten_bind_PeProjcs_getUnit_0=Z.hc)(m),ve=a._emscripten_bind_PeProjcs_loadConstants_0=m=>(ve=a._emscripten_bind_PeProjcs_loadConstants_0=Z.ic)(m),Oe=a._emscripten_bind_PeProjcs_horizonGcsGenerate_0=m=>(Oe=a._emscripten_bind_PeProjcs_horizonGcsGenerate_0=Z.jc)(m),Pe=a._emscripten_bind_PeProjcs_horizonPcsGenerate_0=m=>(Pe=a._emscripten_bind_PeProjcs_horizonPcsGenerate_0=Z.kc)(m),$e=a._emscripten_bind_PeProjcs_isEqual_1=(m,k)=>($e=a._emscripten_bind_PeProjcs_isEqual_1=Z.lc)(m,k),Ke=a._emscripten_bind_PeProjcs_getCode_0=m=>(Ke=a._emscripten_bind_PeProjcs_getCode_0=Z.mc)(m),nt=a._emscripten_bind_PeProjcs_getName_1=(m,k)=>(nt=a._emscripten_bind_PeProjcs_getName_1=Z.nc)(m,k),Be=a._emscripten_bind_PeProjcs_getType_0=m=>(Be=a._emscripten_bind_PeProjcs_getType_0=Z.oc)(m),Qe=a._emscripten_bind_PeSpheroid_getAxis_0=m=>(Qe=a._emscripten_bind_PeSpheroid_getAxis_0=Z.pc)(m),Sr=a._emscripten_bind_PeSpheroid_getFlattening_0=m=>(Sr=a._emscripten_bind_PeSpheroid_getFlattening_0=Z.qc)(m),Mt=a._emscripten_bind_PeSpheroid_getCode_0=m=>(Mt=a._emscripten_bind_PeSpheroid_getCode_0=Z.rc)(m),Jr=a._emscripten_bind_PeSpheroid_getName_1=(m,k)=>(Jr=a._emscripten_bind_PeSpheroid_getName_1=Z.sc)(m,k),Cn=a._emscripten_bind_PeSpheroid_getType_0=m=>(Cn=a._emscripten_bind_PeSpheroid_getType_0=Z.tc)(m),jn=a._emscripten_bind_PeVersion_version_string_0=m=>(jn=a._emscripten_bind_PeVersion_version_string_0=Z.uc)(m);function Ws(){function m(){Qo||(Qo=!0,a.calledRun=!0,H||(rt(),i(a),mr()))}Gt>0||(Xe(),Gt>0||m())}function dt(){}function $a(m){return(m||dt).__cache__}function nr(m,k){var Y=$a(k),ce=Y[m];return ce||((ce=Object.create((k||dt).prototype)).ptr=m,Y[m]=ce)}function iv(m,k){return nr(m.ptr,k)}function ov(m){if(!m.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";m.__destroy__(),delete $a(m.__class__)[m.ptr]}function sv(m,k){return m.ptr===k.ptr}function av(m){return m.ptr}function cv(m){return m.__class__}a._pe_getPeGTlistExtendedEntrySize=()=>(a._pe_getPeGTlistExtendedEntrySize=Z.vc)(),a._pe_getPeGTlistExtendedGTsSize=()=>(a._pe_getPeGTlistExtendedGTsSize=Z.wc)(),a._pe_getPeHorizonSize=()=>(a._pe_getPeHorizonSize=Z.xc)(),a._pe_geog_to_geog=(m,k,Y,ce,pe)=>(a._pe_geog_to_geog=Z.zc)(m,k,Y,ce,pe),a._pe_geog_to_proj=(m,k,Y)=>(a._pe_geog_to_proj=Z.Ac)(m,k,Y),a._pe_geog_to_dd=(m,k,Y,ce,pe)=>(a._pe_geog_to_dd=Z.Bc)(m,k,Y,ce,pe),a._pe_dd_to_geog=(m,k,Y,ce)=>(a._pe_dd_to_geog=Z.Cc)(m,k,Y,ce),a._pe_geog_to_ddm=(m,k,Y,ce,pe)=>(a._pe_geog_to_ddm=Z.Dc)(m,k,Y,ce,pe),a._pe_ddm_to_geog=(m,k,Y,ce)=>(a._pe_ddm_to_geog=Z.Ec)(m,k,Y,ce),a._pe_geog_to_dms=(m,k,Y,ce,pe)=>(a._pe_geog_to_dms=Z.Fc)(m,k,Y,ce,pe),a._pe_dms_to_geog=(m,k,Y,ce)=>(a._pe_dms_to_geog=Z.Gc)(m,k,Y,ce),a._pe_geog_to_mgrs_extended=(m,k,Y,ce,pe,Te,Ue)=>(a._pe_geog_to_mgrs_extended=Z.Hc)(m,k,Y,ce,pe,Te,Ue),a._pe_mgrs_to_geog_extended=(m,k,Y,ce,pe)=>(a._pe_mgrs_to_geog_extended=Z.Ic)(m,k,Y,ce,pe),a._pe_geog_to_usng=(m,k,Y,ce,pe,Te,Ue)=>(a._pe_geog_to_usng=Z.Jc)(m,k,Y,ce,pe,Te,Ue),a._pe_usng_to_geog=(m,k,Y,ce)=>(a._pe_usng_to_geog=Z.Kc)(m,k,Y,ce),a._pe_geog_to_utm=(m,k,Y,ce,pe)=>(a._pe_geog_to_utm=Z.Lc)(m,k,Y,ce,pe),a._pe_utm_to_geog=(m,k,Y,ce,pe)=>(a._pe_utm_to_geog=Z.Mc)(m,k,Y,ce,pe),a._pe_object_to_string_ext=(m,k,Y)=>(a._pe_object_to_string_ext=Z.Nc)(m,k,Y),a._pe_proj_to_geog_center=(m,k,Y,ce)=>(a._pe_proj_to_geog_center=Z.Oc)(m,k,Y,ce),a.getValue=ba,a.UTF8ToString=vr,br=function m(){Qo||Ws(),Qo||(br=m)},Ws(),dt.prototype=Object.create(dt.prototype),dt.prototype.constructor=dt,dt.prototype.__class__=dt,dt.__cache__={},a.WrapperObject=dt,a.getCache=$a,a.wrapPointer=nr,a.castObject=iv,a.NULL=nr(0),a.destroy=ov,a.compare=sv,a.getPointer=av,a.getClass=cv;var Ze={buffer:0,size:0,pos:0,temps:[],needed:0,prepare(){if(Ze.needed){for(var m=0;m<Ze.temps.length;m++)a._webidl_free(Ze.temps[m]);Ze.temps.length=0,a._webidl_free(Ze.buffer),Ze.buffer=0,Ze.size+=Ze.needed,Ze.needed=0}Ze.buffer||(Ze.size+=128,Ze.buffer=a._webidl_malloc(Ze.size),se(Ze.buffer)),Ze.pos=0},alloc(m,k){se(Ze.buffer);var Y,ce=k.BYTES_PER_ELEMENT,pe=m.length*ce;return pe=fl(pe,8),Ze.pos+pe>=Ze.size?(se(pe>0),Ze.needed+=pe,Y=a._webidl_malloc(pe),Ze.temps.push(Y)):(Y=Ze.buffer+Ze.pos,Ze.pos+=pe),Y},copy(m,k,Y){Y/=k.BYTES_PER_ELEMENT;for(var ce=0;ce<m.length;ce++)k[Y+ce]=m[ce]}};function mm(m){if(typeof m=="string"){var k=pd(m),Y=Ze.alloc(k,W);return Ze.copy(k,W,Y),Y}return m}function ri(m){if(typeof m=="object"){var k=Ze.alloc(m,W);return Ze.copy(m,W,k),k}return m}function lv(m){if(typeof m=="object"){var k=Ze.alloc(m,Le);return Ze.copy(m,Le,k),k}return m}function uv(m){if(typeof m=="object"){var k=Ze.alloc(m,xe);return Ze.copy(m,xe,k),k}return m}function dv(m){if(typeof m=="object"){var k=Ze.alloc(m,ge);return Ze.copy(m,ge,k),k}return m}function fv(m){if(typeof m=="object"){var k=Ze.alloc(m,K);return Ze.copy(m,K,k),k}return m}function Kt(){throw"cannot construct a PeObject, no constructor in IDL"}function Lr(){throw"cannot construct a PeCoordsys, no constructor in IDL"}function kr(){throw"cannot construct a PeUnit, no constructor in IDL"}function fo(){throw"cannot construct a VoidPtr, no constructor in IDL"}function Xr(){throw"cannot construct a PeAngunit, no constructor in IDL"}function Kr(){throw"cannot construct a PeDatum, no constructor in IDL"}function ue(){throw"cannot construct a PeDefs, no constructor in IDL"}function Or(m){m&&typeof m=="object"&&(m=m.ptr),this.ptr=Od(m),$a(Or)[this.ptr]=this}function fn(){throw"cannot construct a PeFactory, no constructor in IDL"}function xr(m,k,Y,ce,pe,Te){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),ce&&typeof ce=="object"&&(ce=ce.ptr),pe&&typeof pe=="object"&&(pe=pe.ptr),Te&&typeof Te=="object"&&(Te=Te.ptr),this.ptr=$s(m,k,Y,ce,pe,Te),$a(xr)[this.ptr]=this}function _t(){throw"cannot construct a PeGeogcs, no constructor in IDL"}function jt(){throw"cannot construct a PeGeogtran, no constructor in IDL"}function Hn(){throw"cannot construct a PeGTlistExtended, no constructor in IDL"}function Tn(){throw"cannot construct a PeGTlistExtendedEntry, no constructor in IDL"}function ni(){throw"cannot construct a PeGTlistExtendedGTs, no constructor in IDL"}function hr(){throw"cannot construct a PeHorizon, no constructor in IDL"}function Nr(m){m&&typeof m=="object"&&(m=m.ptr),this.ptr=Wl(m),$a(Nr)[this.ptr]=this}function pn(){throw"cannot construct a PeLineType, no constructor in IDL"}function Rr(){throw"cannot construct a PeMath, no constructor in IDL"}function Pt(){throw"cannot construct a PeNotationMgrs, no constructor in IDL"}function Qt(){throw"cannot construct a PeNotationUtm, no constructor in IDL"}function mn(){throw"cannot construct a PeParameter, no constructor in IDL"}function He(){throw"cannot construct a PePCSInfo, no constructor in IDL"}function Qr(){throw"cannot construct a PePrimem, no constructor in IDL"}function gt(){throw"cannot construct a PeProjcs, no constructor in IDL"}function Cr(){throw"cannot construct a PeSpheroid, no constructor in IDL"}function po(){throw"cannot construct a PeVersion, no constructor in IDL"}return Kt.prototype=Object.create(dt.prototype),Kt.prototype.constructor=Kt,Kt.prototype.__class__=Kt,Kt.__cache__={},a.PeObject=Kt,Kt.prototype.getCode=Kt.prototype.getCode=function(){var m=this.ptr;return md(m)},Kt.prototype.getName=Kt.prototype.getName=function(m){var k=this.ptr;return Ze.prepare(),typeof m=="object"&&(m=ri(m)),vr(hd(k,m))},Kt.prototype.getType=Kt.prototype.getType=function(){var m=this.ptr;return hl(m)},Lr.prototype=Object.create(Kt.prototype),Lr.prototype.constructor=Lr,Lr.prototype.__class__=Lr,Lr.__cache__={},a.PeCoordsys=Lr,Lr.prototype.isEqual=Lr.prototype.isEqual=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!dn(k,m)},Lr.prototype.getCode=Lr.prototype.getCode=function(){var m=this.ptr;return Vi(m)},Lr.prototype.getName=Lr.prototype.getName=function(m){var k=this.ptr;return Ze.prepare(),typeof m=="object"&&(m=ri(m)),vr(ti(k,m))},Lr.prototype.getType=Lr.prototype.getType=function(){var m=this.ptr;return gd(m)},kr.prototype=Object.create(Kt.prototype),kr.prototype.constructor=kr,kr.prototype.__class__=kr,kr.__cache__={},a.PeUnit=kr,kr.prototype.getUnitFactor=kr.prototype.getUnitFactor=function(){var m=this.ptr;return wd(m)},kr.prototype.getCode=kr.prototype.getCode=function(){var m=this.ptr;return Sa(m)},kr.prototype.getName=kr.prototype.getName=function(m){var k=this.ptr;return Ze.prepare(),typeof m=="object"&&(m=ri(m)),vr(hi(k,m))},kr.prototype.getType=kr.prototype.getType=function(){var m=this.ptr;return je(m)},fo.prototype=Object.create(dt.prototype),fo.prototype.constructor=fo,fo.prototype.__class__=fo,fo.__cache__={},a.VoidPtr=fo,fo.prototype.__destroy__=fo.prototype.__destroy__=function(){var m=this.ptr;xa(m)},Xr.prototype=Object.create(kr.prototype),Xr.prototype.constructor=Xr,Xr.prototype.__class__=Xr,Xr.__cache__={},a.PeAngunit=Xr,Xr.prototype.getCode=Xr.prototype.getCode=function(){var m=this.ptr;return gl(m)},Xr.prototype.getName=Xr.prototype.getName=function(m){var k=this.ptr;return Ze.prepare(),typeof m=="object"&&(m=ri(m)),vr(wl(k,m))},Xr.prototype.getType=Xr.prototype.getType=function(){var m=this.ptr;return yl(m)},Xr.prototype.getUnitFactor=Xr.prototype.getUnitFactor=function(){var m=this.ptr;return es(m)},Kr.prototype=Object.create(Kt.prototype),Kr.prototype.constructor=Kr,Kr.prototype.__class__=Kr,Kr.__cache__={},a.PeDatum=Kr,Kr.prototype.getSpheroid=Kr.prototype.getSpheroid=function(){var m=this.ptr;return nr(Ca(m),Cr)},Kr.prototype.getCode=Kr.prototype.getCode=function(){var m=this.ptr;return yd(m)},Kr.prototype.getName=Kr.prototype.getName=function(m){var k=this.ptr;return Ze.prepare(),typeof m=="object"&&(m=ri(m)),vr(bd(k,m))},Kr.prototype.getType=Kr.prototype.getType=function(){var m=this.ptr;return vd(m)},ue.prototype=Object.create(dt.prototype),ue.prototype.constructor=ue,ue.prototype.__class__=ue,ue.__cache__={},a.PeDefs=ue,ue.prototype.get_PE_BUFFER_MAX=ue.prototype.get_PE_BUFFER_MAX=function(){var m=this.ptr;return bl(m)},Object.defineProperty(ue.prototype,"PE_BUFFER_MAX",{get:ue.prototype.get_PE_BUFFER_MAX}),ue.prototype.get_PE_NAME_MAX=ue.prototype.get_PE_NAME_MAX=function(){var m=this.ptr;return _d(m)},Object.defineProperty(ue.prototype,"PE_NAME_MAX",{get:ue.prototype.get_PE_NAME_MAX}),ue.prototype.get_PE_MGRS_MAX=ue.prototype.get_PE_MGRS_MAX=function(){var m=this.ptr;return vl(m)},Object.defineProperty(ue.prototype,"PE_MGRS_MAX",{get:ue.prototype.get_PE_MGRS_MAX}),ue.prototype.get_PE_USNG_MAX=ue.prototype.get_PE_USNG_MAX=function(){var m=this.ptr;return _l(m)},Object.defineProperty(ue.prototype,"PE_USNG_MAX",{get:ue.prototype.get_PE_USNG_MAX}),ue.prototype.get_PE_DD_MAX=ue.prototype.get_PE_DD_MAX=function(){var m=this.ptr;return Ns(m)},Object.defineProperty(ue.prototype,"PE_DD_MAX",{get:ue.prototype.get_PE_DD_MAX}),ue.prototype.get_PE_DMS_MAX=ue.prototype.get_PE_DMS_MAX=function(){var m=this.ptr;return Sl(m)},Object.defineProperty(ue.prototype,"PE_DMS_MAX",{get:ue.prototype.get_PE_DMS_MAX}),ue.prototype.get_PE_DDM_MAX=ue.prototype.get_PE_DDM_MAX=function(){var m=this.ptr;return Ta(m)},Object.defineProperty(ue.prototype,"PE_DDM_MAX",{get:ue.prototype.get_PE_DDM_MAX}),ue.prototype.get_PE_UTM_MAX=ue.prototype.get_PE_UTM_MAX=function(){var m=this.ptr;return xl(m)},Object.defineProperty(ue.prototype,"PE_UTM_MAX",{get:ue.prototype.get_PE_UTM_MAX}),ue.prototype.get_PE_PARM_MAX=ue.prototype.get_PE_PARM_MAX=function(){var m=this.ptr;return Sd(m)},Object.defineProperty(ue.prototype,"PE_PARM_MAX",{get:ue.prototype.get_PE_PARM_MAX}),ue.prototype.get_PE_TYPE_NONE=ue.prototype.get_PE_TYPE_NONE=function(){var m=this.ptr;return Ea(m)},Object.defineProperty(ue.prototype,"PE_TYPE_NONE",{get:ue.prototype.get_PE_TYPE_NONE}),ue.prototype.get_PE_TYPE_GEOGCS=ue.prototype.get_PE_TYPE_GEOGCS=function(){var m=this.ptr;return xd(m)},Object.defineProperty(ue.prototype,"PE_TYPE_GEOGCS",{get:ue.prototype.get_PE_TYPE_GEOGCS}),ue.prototype.get_PE_TYPE_PROJCS=ue.prototype.get_PE_TYPE_PROJCS=function(){var m=this.ptr;return Ma(m)},Object.defineProperty(ue.prototype,"PE_TYPE_PROJCS",{get:ue.prototype.get_PE_TYPE_PROJCS}),ue.prototype.get_PE_TYPE_GEOGTRAN=ue.prototype.get_PE_TYPE_GEOGTRAN=function(){var m=this.ptr;return Cd(m)},Object.defineProperty(ue.prototype,"PE_TYPE_GEOGTRAN",{get:ue.prototype.get_PE_TYPE_GEOGTRAN}),ue.prototype.get_PE_TYPE_COORDSYS=ue.prototype.get_PE_TYPE_COORDSYS=function(){var m=this.ptr;return Td(m)},Object.defineProperty(ue.prototype,"PE_TYPE_COORDSYS",{get:ue.prototype.get_PE_TYPE_COORDSYS}),ue.prototype.get_PE_TYPE_UNIT=ue.prototype.get_PE_TYPE_UNIT=function(){var m=this.ptr;return Ed(m)},Object.defineProperty(ue.prototype,"PE_TYPE_UNIT",{get:ue.prototype.get_PE_TYPE_UNIT}),ue.prototype.get_PE_TYPE_LINUNIT=ue.prototype.get_PE_TYPE_LINUNIT=function(){var m=this.ptr;return Md(m)},Object.defineProperty(ue.prototype,"PE_TYPE_LINUNIT",{get:ue.prototype.get_PE_TYPE_LINUNIT}),ue.prototype.get_PE_STR_OPTS_NONE=ue.prototype.get_PE_STR_OPTS_NONE=function(){var m=this.ptr;return Pd(m)},Object.defineProperty(ue.prototype,"PE_STR_OPTS_NONE",{get:ue.prototype.get_PE_STR_OPTS_NONE}),ue.prototype.get_PE_STR_AUTH_NONE=ue.prototype.get_PE_STR_AUTH_NONE=function(){var m=this.ptr;return Cl(m)},Object.defineProperty(ue.prototype,"PE_STR_AUTH_NONE",{get:ue.prototype.get_PE_STR_AUTH_NONE}),ue.prototype.get_PE_STR_AUTH_TOP=ue.prototype.get_PE_STR_AUTH_TOP=function(){var m=this.ptr;return Rs(m)},Object.defineProperty(ue.prototype,"PE_STR_AUTH_TOP",{get:ue.prototype.get_PE_STR_AUTH_TOP}),ue.prototype.get_PE_STR_NAME_CANON=ue.prototype.get_PE_STR_NAME_CANON=function(){var m=this.ptr;return lo(m)},Object.defineProperty(ue.prototype,"PE_STR_NAME_CANON",{get:ue.prototype.get_PE_STR_NAME_CANON}),ue.prototype.get_PE_STR_FMT_WKT=ue.prototype.get_PE_STR_FMT_WKT=function(){var m=this.ptr;return Pa(m)},Object.defineProperty(ue.prototype,"PE_STR_FMT_WKT",{get:ue.prototype.get_PE_STR_FMT_WKT}),ue.prototype.get_PE_STR_FMT_WKT2=ue.prototype.get_PE_STR_FMT_WKT2=function(){var m=this.ptr;return Ds(m)},Object.defineProperty(ue.prototype,"PE_STR_FMT_WKT2",{get:ue.prototype.get_PE_STR_FMT_WKT2}),ue.prototype.get_PE_PARM_X0=ue.prototype.get_PE_PARM_X0=function(){var m=this.ptr;return gi(m)},Object.defineProperty(ue.prototype,"PE_PARM_X0",{get:ue.prototype.get_PE_PARM_X0}),ue.prototype.get_PE_PARM_ND=ue.prototype.get_PE_PARM_ND=function(){var m=this.ptr;return ts(m)},Object.defineProperty(ue.prototype,"PE_PARM_ND",{get:ue.prototype.get_PE_PARM_ND}),ue.prototype.get_PE_TRANSFORM_1_TO_2=ue.prototype.get_PE_TRANSFORM_1_TO_2=function(){var m=this.ptr;return Id(m)},Object.defineProperty(ue.prototype,"PE_TRANSFORM_1_TO_2",{get:ue.prototype.get_PE_TRANSFORM_1_TO_2}),ue.prototype.get_PE_TRANSFORM_2_TO_1=ue.prototype.get_PE_TRANSFORM_2_TO_1=function(){var m=this.ptr;return Tl(m)},Object.defineProperty(ue.prototype,"PE_TRANSFORM_2_TO_1",{get:ue.prototype.get_PE_TRANSFORM_2_TO_1}),ue.prototype.get_PE_TRANSFORM_P_TO_G=ue.prototype.get_PE_TRANSFORM_P_TO_G=function(){var m=this.ptr;return El(m)},Object.defineProperty(ue.prototype,"PE_TRANSFORM_P_TO_G",{get:ue.prototype.get_PE_TRANSFORM_P_TO_G}),ue.prototype.get_PE_TRANSFORM_G_TO_P=ue.prototype.get_PE_TRANSFORM_G_TO_P=function(){var m=this.ptr;return Ia(m)},Object.defineProperty(ue.prototype,"PE_TRANSFORM_G_TO_P",{get:ue.prototype.get_PE_TRANSFORM_G_TO_P}),ue.prototype.get_PE_HORIZON_RECT=ue.prototype.get_PE_HORIZON_RECT=function(){var m=this.ptr;return Ad(m)},Object.defineProperty(ue.prototype,"PE_HORIZON_RECT",{get:ue.prototype.get_PE_HORIZON_RECT}),ue.prototype.get_PE_HORIZON_POLY=ue.prototype.get_PE_HORIZON_POLY=function(){var m=this.ptr;return Ld(m)},Object.defineProperty(ue.prototype,"PE_HORIZON_POLY",{get:ue.prototype.get_PE_HORIZON_POLY}),ue.prototype.get_PE_HORIZON_LINE=ue.prototype.get_PE_HORIZON_LINE=function(){var m=this.ptr;return Ml(m)},Object.defineProperty(ue.prototype,"PE_HORIZON_LINE",{get:ue.prototype.get_PE_HORIZON_LINE}),ue.prototype.get_PE_HORIZON_DELTA=ue.prototype.get_PE_HORIZON_DELTA=function(){var m=this.ptr;return kd(m)},Object.defineProperty(ue.prototype,"PE_HORIZON_DELTA",{get:ue.prototype.get_PE_HORIZON_DELTA}),Or.prototype=Object.create(dt.prototype),Or.prototype.constructor=Or,Or.prototype.__class__=Or,Or.__cache__={},a.PeDouble=Or,Or.prototype.get_val=Or.prototype.get_val=function(){var m=this.ptr;return Pl(m)},Or.prototype.set_val=Or.prototype.set_val=function(m){var k=this.ptr;m&&typeof m=="object"&&(m=m.ptr),Il(k,m)},Object.defineProperty(Or.prototype,"val",{get:Or.prototype.get_val,set:Or.prototype.set_val}),Or.prototype.__destroy__=Or.prototype.__destroy__=function(){var m=this.ptr;Nd(m)},fn.prototype=Object.create(dt.prototype),fn.prototype.constructor=fn,fn.prototype.__class__=fn,fn.__cache__={},a.PeFactory=fn,fn.prototype.initialize=fn.prototype.initialize=function(m){Ze.prepare(),m=m&&typeof m=="object"?m.ptr:mm(m),Aa(m)},fn.prototype.factoryByType=fn.prototype.factoryByType=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),nr(Rd(m,k),Kt)},fn.prototype.fromString=fn.prototype.fromString=function(m,k){return Ze.prepare(),m&&typeof m=="object"&&(m=m.ptr),k=k&&typeof k=="object"?k.ptr:mm(k),nr(Al(m,k),Kt)},fn.prototype.getCode=fn.prototype.getCode=function(m){return m&&typeof m=="object"&&(m=m.ptr),Dd(m)},xr.prototype=Object.create(dt.prototype),xr.prototype.constructor=xr,xr.prototype.__class__=xr,xr.__cache__={},a.PeGCSExtent=xr,xr.prototype.getLLon=xr.prototype.getLLon=function(){var m=this.ptr;return $d(m)},xr.prototype.getSLat=xr.prototype.getSLat=function(){var m=this.ptr;return Ll(m)},xr.prototype.getRLon=xr.prototype.getRLon=function(){var m=this.ptr;return kl(m)},xr.prototype.getNLat=xr.prototype.getNLat=function(){var m=this.ptr;return Fd(m)},xr.prototype.__destroy__=xr.prototype.__destroy__=function(){var m=this.ptr;Ol(m)},_t.prototype=Object.create(Lr.prototype),_t.prototype.constructor=_t,_t.prototype.__class__=_t,_t.__cache__={},a.PeGeogcs=_t,_t.prototype.Delete=_t.prototype.Delete=function(){var m=this.ptr;Nl(m)},_t.prototype.cloneAlterUnits=_t.prototype.cloneAlterUnits=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),nr(Ud(k,m),_t)},_t.prototype.getDatum=_t.prototype.getDatum=function(){var m=this.ptr;return nr(uo(m),Kr)},_t.prototype.getPrimem=_t.prototype.getPrimem=function(){var m=this.ptr;return nr(rs(m),Qr)},_t.prototype.getUnit=_t.prototype.getUnit=function(){var m=this.ptr;return nr(Vd(m),Xr)},_t.prototype.isEqual=_t.prototype.isEqual=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!La(k,m)},_t.prototype.getCode=_t.prototype.getCode=function(){var m=this.ptr;return ka(m)},_t.prototype.getName=_t.prototype.getName=function(m){var k=this.ptr;return Ze.prepare(),typeof m=="object"&&(m=ri(m)),vr(zd(k,m))},_t.prototype.getType=_t.prototype.getType=function(){var m=this.ptr;return Fs(m)},jt.prototype=Object.create(Kt.prototype),jt.prototype.constructor=jt,jt.prototype.__class__=jt,jt.__cache__={},a.PeGeogtran=jt,jt.prototype.isEqual=jt.prototype.isEqual=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Rl(k,m)},jt.prototype.getGeogcs1=jt.prototype.getGeogcs1=function(){var m=this.ptr;return nr(Dl(m),_t)},jt.prototype.getGeogcs2=jt.prototype.getGeogcs2=function(){var m=this.ptr;return nr(Oa(m),_t)},jt.prototype.getParameters=jt.prototype.getParameters=function(){var m=this.ptr;return $l(m)},jt.prototype.loadConstants=jt.prototype.loadConstants=function(){var m=this.ptr;return!!Wd(m)},jt.prototype.getCode=jt.prototype.getCode=function(){var m=this.ptr;return wi(m)},jt.prototype.getName=jt.prototype.getName=function(m){var k=this.ptr;return Ze.prepare(),typeof m=="object"&&(m=ri(m)),vr(Bd(k,m))},jt.prototype.getType=jt.prototype.getType=function(){var m=this.ptr;return Gd(m)},Hn.prototype=Object.create(dt.prototype),Hn.prototype.constructor=Hn,Hn.prototype.__class__=Hn,Hn.__cache__={},a.PeGTlistExtended=Hn,Hn.prototype.getGTlist=Hn.prototype.getGTlist=function(m,k,Y,ce,pe,Te){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),ce&&typeof ce=="object"&&(ce=ce.ptr),pe&&typeof pe=="object"&&(pe=pe.ptr),Te&&typeof Te=="object"&&(Te=Te.ptr),nr(jd(m,k,Y,ce,pe,Te),Tn)},Hn.prototype.get_PE_GTLIST_OPTS_COMMON=Hn.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var m=this.ptr;return Fl(m)},Object.defineProperty(Hn.prototype,"PE_GTLIST_OPTS_COMMON",{get:Hn.prototype.get_PE_GTLIST_OPTS_COMMON}),Tn.prototype=Object.create(dt.prototype),Tn.prototype.constructor=Tn,Tn.prototype.__class__=Tn,Tn.__cache__={},a.PeGTlistExtendedEntry=Tn,Tn.prototype.getEntries=Tn.prototype.getEntries=function(){var m=this.ptr;return nr(Ul(m),ni)},Tn.prototype.getSteps=Tn.prototype.getSteps=function(){var m=this.ptr;return _r(m)},Tn.prototype.Delete=Tn.prototype.Delete=function(m){m&&typeof m=="object"&&(m=m.ptr),Hd(m)},ni.prototype=Object.create(dt.prototype),ni.prototype.constructor=ni,ni.prototype.__class__=ni,ni.__cache__={},a.PeGTlistExtendedGTs=ni,ni.prototype.getDirection=ni.prototype.getDirection=function(){var m=this.ptr;return qd(m)},ni.prototype.getGeogtran=ni.prototype.getGeogtran=function(){var m=this.ptr;return nr(Zd(m),jt)},hr.prototype=Object.create(dt.prototype),hr.prototype.constructor=hr,hr.prototype.__class__=hr,hr.__cache__={},a.PeHorizon=hr,hr.prototype.getNump=hr.prototype.getNump=function(){var m=this.ptr;return Yd(m)},hr.prototype.getKind=hr.prototype.getKind=function(){var m=this.ptr;return Jd(m)},hr.prototype.getInclusive=hr.prototype.getInclusive=function(){var m=this.ptr;return Vl(m)},hr.prototype.getSize=hr.prototype.getSize=function(){var m=this.ptr;return Xd(m)},hr.prototype.getCoord=hr.prototype.getCoord=function(){var m=this.ptr;return zl(m)},Nr.prototype=Object.create(dt.prototype),Nr.prototype.constructor=Nr,Nr.prototype.__class__=Nr,Nr.__cache__={},a.PeInteger=Nr,Nr.prototype.get_val=Nr.prototype.get_val=function(){var m=this.ptr;return Us(m)},Nr.prototype.set_val=Nr.prototype.set_val=function(m){var k=this.ptr;m&&typeof m=="object"&&(m=m.ptr),zi(k,m)},Object.defineProperty(Nr.prototype,"val",{get:Nr.prototype.get_val,set:Nr.prototype.set_val}),Nr.prototype.__destroy__=Nr.prototype.__destroy__=function(){var m=this.ptr;Vs(m)},pn.prototype=Object.create(dt.prototype),pn.prototype.constructor=pn,pn.prototype.__class__=pn,pn.__cache__={},a.PeLineType=pn,pn.prototype.geodetic_distance=pn.prototype.geodetic_distance=function(m,k,Y,ce,pe,Te,Ue,Re,at,En){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),ce&&typeof ce=="object"&&(ce=ce.ptr),pe&&typeof pe=="object"&&(pe=pe.ptr),Te&&typeof Te=="object"&&(Te=Te.ptr),Ue&&typeof Ue=="object"&&(Ue=Ue.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),at&&typeof at=="object"&&(at=at.ptr),En&&typeof En=="object"&&(En=En.ptr),Kd(m,k,Y,ce,pe,Te,Ue,Re,at,En)},pn.prototype.geodetic_coordinate=pn.prototype.geodetic_coordinate=function(m,k,Y,ce,pe,Te,Ue,Re,at){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),ce&&typeof ce=="object"&&(ce=ce.ptr),pe&&typeof pe=="object"&&(pe=pe.ptr),Te&&typeof Te=="object"&&(Te=Te.ptr),Ue&&typeof Ue=="object"&&(Ue=Ue.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),at&&typeof at=="object"&&(at=at.ptr),Bl(m,k,Y,ce,pe,Te,Ue,Re,at)},pn.prototype.geodesic_coordinate=pn.prototype.geodesic_coordinate=function(m,k,Y,ce,pe,Te,Ue,Re){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),ce&&typeof ce=="object"&&(ce=ce.ptr),pe&&typeof pe=="object"&&(pe=pe.ptr),Te&&typeof Te=="object"&&(Te=Te.ptr),Ue&&typeof Ue=="object"&&(Ue=Ue.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),Gl(m,k,Y,ce,pe,Te,Ue,Re)},pn.prototype.great_elliptic_distance=pn.prototype.great_elliptic_distance=function(m,k,Y,ce,pe,Te,Ue,Re,at){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),ce&&typeof ce=="object"&&(ce=ce.ptr),pe&&typeof pe=="object"&&(pe=pe.ptr),Te&&typeof Te=="object"&&(Te=Te.ptr),Ue&&typeof Ue=="object"&&(Ue=Ue.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),at&&typeof at=="object"&&(at=at.ptr),jl(m,k,Y,ce,pe,Te,Ue,Re,at)},Rr.prototype=Object.create(dt.prototype),Rr.prototype.constructor=Rr,Rr.prototype.__class__=Rr,Rr.__cache__={},a.PeMath=Rr,Rr.prototype.phi_to_eta=Rr.prototype.phi_to_eta=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),ns(m,k)},Rr.prototype.eta_to_phi=Rr.prototype.eta_to_phi=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Qd(m,k)},Rr.prototype.phi_to_phig=Rr.prototype.phi_to_phig=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),ef(m,k)},Rr.prototype.q=Rr.prototype.q=function(m,k,Y){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),tf(m,k,Y)},Rr.prototype.q90=Rr.prototype.q90=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),rf(m,k)},Pt.prototype=Object.create(dt.prototype),Pt.prototype.constructor=Pt,Pt.prototype.__class__=Pt,Pt.__cache__={},a.PeNotationMgrs=Pt,Pt.prototype.get_PE_MGRS_STYLE_NEW=Pt.prototype.get_PE_MGRS_STYLE_NEW=function(){var m=this.ptr;return nf(m)},Object.defineProperty(Pt.prototype,"PE_MGRS_STYLE_NEW",{get:Pt.prototype.get_PE_MGRS_STYLE_NEW}),Pt.prototype.get_PE_MGRS_STYLE_OLD=Pt.prototype.get_PE_MGRS_STYLE_OLD=function(){var m=this.ptr;return of(m)},Object.defineProperty(Pt.prototype,"PE_MGRS_STYLE_OLD",{get:Pt.prototype.get_PE_MGRS_STYLE_OLD}),Pt.prototype.get_PE_MGRS_STYLE_AUTO=Pt.prototype.get_PE_MGRS_STYLE_AUTO=function(){var m=this.ptr;return Na(m)},Object.defineProperty(Pt.prototype,"PE_MGRS_STYLE_AUTO",{get:Pt.prototype.get_PE_MGRS_STYLE_AUTO}),Pt.prototype.get_PE_MGRS_180_ZONE_1_PLUS=Pt.prototype.get_PE_MGRS_180_ZONE_1_PLUS=function(){var m=this.ptr;return sf(m)},Object.defineProperty(Pt.prototype,"PE_MGRS_180_ZONE_1_PLUS",{get:Pt.prototype.get_PE_MGRS_180_ZONE_1_PLUS}),Pt.prototype.get_PE_MGRS_ADD_SPACES=Pt.prototype.get_PE_MGRS_ADD_SPACES=function(){var m=this.ptr;return zs(m)},Object.defineProperty(Pt.prototype,"PE_MGRS_ADD_SPACES",{get:Pt.prototype.get_PE_MGRS_ADD_SPACES}),Qt.prototype=Object.create(dt.prototype),Qt.prototype.constructor=Qt,Qt.prototype.__class__=Qt,Qt.__cache__={},a.PeNotationUtm=Qt,Qt.prototype.get_PE_UTM_OPTS_NONE=Qt.prototype.get_PE_UTM_OPTS_NONE=function(){var m=this.ptr;return af(m)},Object.defineProperty(Qt.prototype,"PE_UTM_OPTS_NONE",{get:Qt.prototype.get_PE_UTM_OPTS_NONE}),Qt.prototype.get_PE_UTM_OPTS_NS=Qt.prototype.get_PE_UTM_OPTS_NS=function(){var m=this.ptr;return Ra(m)},Object.defineProperty(Qt.prototype,"PE_UTM_OPTS_NS",{get:Qt.prototype.get_PE_UTM_OPTS_NS}),Qt.prototype.get_PE_UTM_OPTS_NS_STRICT=Qt.prototype.get_PE_UTM_OPTS_NS_STRICT=function(){var m=this.ptr;return cf(m)},Object.defineProperty(Qt.prototype,"PE_UTM_OPTS_NS_STRICT",{get:Qt.prototype.get_PE_UTM_OPTS_NS_STRICT}),Qt.prototype.get_PE_UTM_OPTS_ADD_SPACES=Qt.prototype.get_PE_UTM_OPTS_ADD_SPACES=function(){var m=this.ptr;return lf(m)},Object.defineProperty(Qt.prototype,"PE_UTM_OPTS_ADD_SPACES",{get:Qt.prototype.get_PE_UTM_OPTS_ADD_SPACES}),mn.prototype=Object.create(Kt.prototype),mn.prototype.constructor=mn,mn.prototype.__class__=mn,mn.__cache__={},a.PeParameter=mn,mn.prototype.getValue=mn.prototype.getValue=function(){var m=this.ptr;return Hl(m)},mn.prototype.getCode=mn.prototype.getCode=function(){var m=this.ptr;return is(m)},mn.prototype.getName=mn.prototype.getName=function(m){var k=this.ptr;return Ze.prepare(),typeof m=="object"&&(m=ri(m)),vr(yi(k,m))},mn.prototype.getType=mn.prototype.getType=function(){var m=this.ptr;return ql(m)},He.prototype=Object.create(dt.prototype),He.prototype.constructor=He,He.prototype.__class__=He,He.__cache__={},a.PePCSInfo=He,He.prototype.getCentralMeridian=He.prototype.getCentralMeridian=function(){var m=this.ptr;return Da(m)},He.prototype.getDomainMinx=He.prototype.getDomainMinx=function(){var m=this.ptr;return uf(m)},He.prototype.getDomainMiny=He.prototype.getDomainMiny=function(){var m=this.ptr;return df(m)},He.prototype.getDomainMaxx=He.prototype.getDomainMaxx=function(){var m=this.ptr;return ff(m)},He.prototype.getDomainMaxy=He.prototype.getDomainMaxy=function(){var m=this.ptr;return pf(m)},He.prototype.getNorthPoleLocation=He.prototype.getNorthPoleLocation=function(){var m=this.ptr;return mf(m)},He.prototype.getNorthPoleGeometry=He.prototype.getNorthPoleGeometry=function(){var m=this.ptr;return hf(m)},He.prototype.getSouthPoleLocation=He.prototype.getSouthPoleLocation=function(){var m=this.ptr;return gf(m)},He.prototype.getSouthPoleGeometry=He.prototype.getSouthPoleGeometry=function(){var m=this.ptr;return wf(m)},He.prototype.isDensificationNeeded=He.prototype.isDensificationNeeded=function(){var m=this.ptr;return!!yf(m)},He.prototype.isGcsHorizonMultiOverlap=He.prototype.isGcsHorizonMultiOverlap=function(){var m=this.ptr;return!!bf(m)},He.prototype.isPannableRectangle=He.prototype.isPannableRectangle=function(){var m=this.ptr;return!!p(m)},He.prototype.generate=He.prototype.generate=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),nr(f(m,k),He)},He.prototype.get_PE_PCSINFO_OPTION_NONE=He.prototype.get_PE_PCSINFO_OPTION_NONE=function(){var m=this.ptr;return w(m)},Object.defineProperty(He.prototype,"PE_PCSINFO_OPTION_NONE",{get:He.prototype.get_PE_PCSINFO_OPTION_NONE}),He.prototype.get_PE_PCSINFO_OPTION_DOMAIN=He.prototype.get_PE_PCSINFO_OPTION_DOMAIN=function(){var m=this.ptr;return _(m)},Object.defineProperty(He.prototype,"PE_PCSINFO_OPTION_DOMAIN",{get:He.prototype.get_PE_PCSINFO_OPTION_DOMAIN}),He.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=He.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=function(){var m=this.ptr;return T(m)},Object.defineProperty(He.prototype,"PE_POLE_OUTSIDE_BOUNDARY",{get:He.prototype.get_PE_POLE_OUTSIDE_BOUNDARY}),He.prototype.get_PE_POLE_POINT=He.prototype.get_PE_POLE_POINT=function(){var m=this.ptr;return E(m)},Object.defineProperty(He.prototype,"PE_POLE_POINT",{get:He.prototype.get_PE_POLE_POINT}),Qr.prototype=Object.create(Kt.prototype),Qr.prototype.constructor=Qr,Qr.prototype.__class__=Qr,Qr.__cache__={},a.PePrimem=Qr,Qr.prototype.getLongitude=Qr.prototype.getLongitude=function(){var m=this.ptr;return A(m)},Qr.prototype.getCode=Qr.prototype.getCode=function(){var m=this.ptr;return O(m)},Qr.prototype.getName=Qr.prototype.getName=function(m){var k=this.ptr;return Ze.prepare(),typeof m=="object"&&(m=ri(m)),vr($(k,m))},Qr.prototype.getType=Qr.prototype.getType=function(){var m=this.ptr;return j(m)},gt.prototype=Object.create(Lr.prototype),gt.prototype.constructor=gt,gt.prototype.__class__=gt,gt.__cache__={},a.PeProjcs=gt,gt.prototype.Delete=gt.prototype.Delete=function(){var m=this.ptr;U(m)},gt.prototype.getGeogcs=gt.prototype.getGeogcs=function(){var m=this.ptr;return nr(ee(m),_t)},gt.prototype.getProjection=gt.prototype.getProjection=function(){var m=this.ptr;return nr(le(m),Kt)},gt.prototype.getParameters=gt.prototype.getParameters=function(){var m=this.ptr;return be(m)},gt.prototype.getUnit=gt.prototype.getUnit=function(){var m=this.ptr;return nr(ye(m),kr)},gt.prototype.loadConstants=gt.prototype.loadConstants=function(){var m=this.ptr;return!!ve(m)},gt.prototype.horizonGcsGenerate=gt.prototype.horizonGcsGenerate=function(){var m=this.ptr;return nr(Oe(m),hr)},gt.prototype.horizonPcsGenerate=gt.prototype.horizonPcsGenerate=function(){var m=this.ptr;return nr(Pe(m),hr)},gt.prototype.isEqual=gt.prototype.isEqual=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!$e(k,m)},gt.prototype.getCode=gt.prototype.getCode=function(){var m=this.ptr;return Ke(m)},gt.prototype.getName=gt.prototype.getName=function(m){var k=this.ptr;return Ze.prepare(),typeof m=="object"&&(m=ri(m)),vr(nt(k,m))},gt.prototype.getType=gt.prototype.getType=function(){var m=this.ptr;return Be(m)},Cr.prototype=Object.create(Kt.prototype),Cr.prototype.constructor=Cr,Cr.prototype.__class__=Cr,Cr.__cache__={},a.PeSpheroid=Cr,Cr.prototype.getAxis=Cr.prototype.getAxis=function(){var m=this.ptr;return Qe(m)},Cr.prototype.getFlattening=Cr.prototype.getFlattening=function(){var m=this.ptr;return Sr(m)},Cr.prototype.getCode=Cr.prototype.getCode=function(){var m=this.ptr;return Mt(m)},Cr.prototype.getName=Cr.prototype.getName=function(m){var k=this.ptr;return Ze.prepare(),typeof m=="object"&&(m=ri(m)),vr(Jr(k,m))},Cr.prototype.getType=Cr.prototype.getType=function(){var m=this.ptr;return Cn(m)},po.prototype=Object.create(dt.prototype),po.prototype.constructor=po,po.prototype.__class__=po,po.__cache__={},a.PeVersion=po,po.prototype.version_string=po.prototype.version_string=function(){var m=this.ptr;return vr(jn(m))},a.ensureCache=Ze,a.ensureString=mm,a.ensureInt8=ri,a.ensureInt16=lv,a.ensureInt32=uv,a.ensureFloat32=dv,a.ensureFloat64=fv,d},e.exports=r),Qk.exports;var e,t,r}var Kk,Qk,yJ,bJ,tO=V(()=>{Yk();Qk={exports:{}};yJ=Zk(wJ()),bJ=Object.freeze(Object.defineProperty({__proto__:null,default:yJ},Symbol.toStringTag,{value:"Module"}))});function rO(){return!!q}function vJ(){return!!he("esri-wasm")}function nO(){return X4||(X4=Promise.resolve().then(()=>(tO(),eO)).then(e=>e.p).then(({default:e})=>e({locateFile:t=>Ip(`esri/geometry/support/${t}`)})).then(e=>{sO(e)}),X4)}function sO(e){function t(o,s,c){o[s]=c(o[s])}q=e,Zt.init(),Ib.init(),Ab.init(),Lb.init(),kb.init(),iO=class extends q.PeDouble{constructor(o=NaN){super(o)}destroy(){q.destroy(this)}[Symbol.dispose](){this.destroy()}},oO=class extends q.PeGCSExtent{destroy(){q.destroy(this)}[Symbol.dispose](){this.destroy()}};let r=[q.PeAngunit,q.PeDatum,q.PeGeogcs,q.PeGeogtran,q.PeObject,q.PeParameter,q.PePrimem,q.PeProjcs,q.PeSpheroid,q.PeUnit];for(let o of r)t(o.prototype,"getName",s=>function(){return s.call(this,new Array(Zt.PE_NAME_MAX))});for(let o of[q.PeGeogtran,q.PeProjcs])t(o.prototype,"getParameters",s=>function(){let c=new Array(Zt.PE_PARM_MAX),a=s.call(this);for(let d=0;d<c.length;d++){let h=q.getValue(a,"*");c[d]=h?q.wrapPointer(h,q.PeParameter):null,a+=Int32Array.BYTES_PER_ELEMENT}return c});t(q.PeHorizon.prototype,"getCoord",o=>function(s=!1){let c=this.getSize();if(!c)return null;let a=[];return Yc(a,c,o.call(this),s),a}),t(q.PeGTlistExtendedEntry.prototype,"getEntries",o=>{let s=q._pe_getPeGTlistExtendedGTsSize();return function(){let c=null,a=o.call(this);if(!q.compare(a,q.NULL)){c=[a];let d=this.getSteps();if(d>1){let h=q.getPointer(a);for(let g=1;g<d;g++)c.push(q.wrapPointer(h+s*g,q.PeGTlistExtendedGTs))}}return c}});let n=q._pe_getPeHorizonSize(),i=o=>function(){let s=this._cache;if(s||(s=new Map,this._cache=s),s.has(o))return s.get(o);let c=null,a=o.call(this);if(!q.compare(a,q.NULL)){c=[a];let d=a.getNump();if(d>1){let h=q.getPointer(a);for(let g=1;g<d;g++)c.push(q.wrapPointer(h+n*g,q.PeHorizon))}}return s.set(o,c),c};t(q.PeProjcs.prototype,"horizonGcsGenerate",i),t(q.PeProjcs.prototype,"horizonPcsGenerate",i),q.PeObject.prototype.toString=function(o=Zt.PE_STR_OPTS_NONE){q.ensureCache.prepare();let s=q.getPointer(this),c=q.ensureInt8(new Array(Zt.PE_BUFFER_MAX));return q.UTF8ToString(q._pe_object_to_string_ext(s,o,c))},q.PeGeogcs.prototype.destroy=function(){this.Delete(),Go(this),this.ptr=0},q.PeGeogcs.prototype[Symbol.dispose]=function(){this.destroy()},q.PeProjcs.prototype.destroy=function(){this.Delete(),Go(this),this.ptr=0},q.PeProjcs.prototype[Symbol.dispose]=function(){this.destroy()}}function Go(e){if(!e)return;let t=q.getClass(e);if(!t)return;let r=q.getCache(t);if(!r)return;let n=q.getPointer(e);n&&delete r[n]}function Mb(e,t){let r=[],n=new Array(t);for(let i=0;i<e;i++)r.push(q.ensureInt8(n));return r}function Bu(e){return ArrayBuffer.isView(e)?e:Array.isArray(e[0])?e.flat():e}function Yc(e,t,r,n=!1){if(n)for(let i=0;i<2*t;i++)e[i]=q.getValue(r+i*Float64Array.BYTES_PER_ELEMENT,"double");else{let i=e.length===0;for(let o=0;o<t;o++)i&&(e[o]=new Array(2)),e[o][0]=q.getValue(r,"double"),e[o][1]=q.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}var X4,q,K4,Zt,iO,Pb,oO,Ib,Q4,e5,t5,r5,n5,Ab,i5,Lb,kb,o5,Qye,aO=V(()=>{Kw();et();q=null;(function(e){function t(o,s,c){q.ensureCache.prepare();let a=Bu(c),d=c===a,h=q.ensureFloat64(a),g=q._pe_geog_to_proj(q.getPointer(o),s,h);return g&&Yc(c,s,h,d),g}function r(o,s,c,a){switch(a){case Zt.PE_TRANSFORM_P_TO_G:return n(o,s,c);case Zt.PE_TRANSFORM_G_TO_P:return t(o,s,c)}return 0}function n(o,s,c){return i(o,s,c,0)}function i(o,s,c,a){q.ensureCache.prepare();let d=Bu(c),h=c===d,g=q.ensureFloat64(d),v=q._pe_proj_to_geog_center(q.getPointer(o),s,g,a);return v&&Yc(c,s,g,h),v}e.geogToProj=t,e.projGeog=r,e.projToGeog=n,e.projToGeogCenter=i})(K4||(K4={})),function(e){function t(){e.PE_BUFFER_MAX=q.PeDefs.prototype.PE_BUFFER_MAX,e.PE_NAME_MAX=q.PeDefs.prototype.PE_NAME_MAX,e.PE_MGRS_MAX=q.PeDefs.prototype.PE_MGRS_MAX,e.PE_USNG_MAX=q.PeDefs.prototype.PE_USNG_MAX,e.PE_DD_MAX=q.PeDefs.prototype.PE_DD_MAX,e.PE_DDM_MAX=q.PeDefs.prototype.PE_DDM_MAX,e.PE_DMS_MAX=q.PeDefs.prototype.PE_DMS_MAX,e.PE_UTM_MAX=q.PeDefs.prototype.PE_UTM_MAX,e.PE_PARM_MAX=q.PeDefs.prototype.PE_PARM_MAX,e.PE_TYPE_NONE=q.PeDefs.prototype.PE_TYPE_NONE,e.PE_TYPE_GEOGCS=q.PeDefs.prototype.PE_TYPE_GEOGCS,e.PE_TYPE_PROJCS=q.PeDefs.prototype.PE_TYPE_PROJCS,e.PE_TYPE_GEOGTRAN=q.PeDefs.prototype.PE_TYPE_GEOGTRAN,e.PE_TYPE_COORDSYS=q.PeDefs.prototype.PE_TYPE_COORDSYS,e.PE_TYPE_UNIT=q.PeDefs.prototype.PE_TYPE_UNIT,e.PE_TYPE_LINUNIT=q.PeDefs.prototype.PE_TYPE_LINUNIT,e.PE_STR_OPTS_NONE=q.PeDefs.prototype.PE_STR_OPTS_NONE,e.PE_STR_AUTH_NONE=q.PeDefs.prototype.PE_STR_AUTH_NONE,e.PE_STR_AUTH_TOP=q.PeDefs.prototype.PE_STR_AUTH_TOP,e.PE_STR_NAME_CANON=q.PeDefs.prototype.PE_STR_NAME_CANON,e.PE_STR_FMT_WKT=q.PeDefs.prototype.PE_STR_FMT_WKT,e.PE_STR_FMT_WKT2=q.PeDefs.prototype.PE_STR_FMT_WKT2,e.PE_PARM_X0=q.PeDefs.prototype.PE_PARM_X0,e.PE_PARM_ND=q.PeDefs.prototype.PE_PARM_ND,e.PE_TRANSFORM_1_TO_2=q.PeDefs.prototype.PE_TRANSFORM_1_TO_2,e.PE_TRANSFORM_2_TO_1=q.PeDefs.prototype.PE_TRANSFORM_2_TO_1,e.PE_TRANSFORM_P_TO_G=q.PeDefs.prototype.PE_TRANSFORM_P_TO_G,e.PE_TRANSFORM_G_TO_P=q.PeDefs.prototype.PE_TRANSFORM_G_TO_P,e.PE_HORIZON_RECT=q.PeDefs.prototype.PE_HORIZON_RECT,e.PE_HORIZON_POLY=q.PeDefs.prototype.PE_HORIZON_POLY,e.PE_HORIZON_LINE=q.PeDefs.prototype.PE_HORIZON_LINE,e.PE_HORIZON_DELTA=q.PeDefs.prototype.PE_HORIZON_DELTA}e.init=t}(Zt||(Zt={}));iO=null;(function(e){let t={},r={},n=S=>{let M=S.getType();switch(M){case Zt.PE_TYPE_GEOGCS:S=q.castObject(S,q.PeGeogcs);break;case Zt.PE_TYPE_PROJCS:S=q.castObject(S,q.PeProjcs);break;case Zt.PE_TYPE_GEOGTRAN:S=q.castObject(S,q.PeGeogtran);break;default:M&Zt.PE_TYPE_UNIT&&(S=q.castObject(S,q.PeUnit))}return S};function i(){q.PeFactory.prototype.initialize(null)}function o(S){return s(Zt.PE_TYPE_COORDSYS,S)}function s(S,M){let I=null,R=t[S];if(R||(R={},t[S]=R),R.hasOwnProperty(String(M))&&(I=R[M],q.compare(I,q.NULL)&&(I=null)),!I){let B=q.PeFactory.prototype.factoryByType(S,M);q.compare(B,q.NULL)||(I=n(B),R[M]=I)}return I}function c(S,M){let I=null,R=r[S];if(R||(R={},r[S]=R),R.hasOwnProperty(M)&&(I=R[M],q.compare(I,q.NULL)&&(I=null)),!I){let B=q.PeFactory.prototype.fromString(S,M);q.compare(B,q.NULL)||(I=n(B),R[M]=I)}return I}function a(S){return s(Zt.PE_TYPE_GEOGCS,S)}function d(S){return s(Zt.PE_TYPE_GEOGTRAN,S)}function h(S){return q.PeFactory.prototype.getCode(S)}function g(S){return s(Zt.PE_TYPE_PROJCS,S)}function v(S){return s(Zt.PE_TYPE_UNIT,S)}e.initialize=i,e.coordsys=o,e.factoryByType=s,e.fromString=c,e.geogcs=a,e.geogtran=d,e.getCode=h,e.projcs=g,e.unit=v})(Pb||(Pb={}));oO=null;(function(e){let t;function r(){e.PE_GTLIST_OPTS_COMMON=q.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,t=q._pe_getPeGTlistExtendedEntrySize()}function n(i,o,s,c,a,d){let h=null,g=new q.PeInteger(d);try{let v=q.PeGTlistExtended.prototype.getGTlist(i,o,s,c,a,g);if((d=g.val)&&(h=[v],d>1)){let S=q.getPointer(v);for(let M=1;M<d;M++)h.push(q.wrapPointer(S+t*M,q.PeGTlistExtendedEntry))}}finally{q.destroy(g)}return h}e.init=r,e.getGTlist=n})(Ib||(Ib={})),function(e){function t(r){if(r?.length){for(let n of r)Go(n),n.getEntries().forEach(i=>{Go(i);let o=i.getGeogtran();Go(o),o.getParameters().forEach(Go),[o.getGeogcs1(),o.getGeogcs2()].forEach(s=>{Go(s);let c=s.getDatum();Go(c),Go(c.getSpheroid()),Go(s.getPrimem()),Go(s.getUnit())})});q.PeGTlistExtendedEntry.prototype.Delete(r[0])}}e.destroy=t}(Q4||(Q4={})),function(e){function t(r,n,i,o,s){q.ensureCache.prepare();let c=Bu(i),a=i===c,d=q.ensureFloat64(c),h=0;o&&(h=q.ensureFloat64(o));let g=q._pe_geog_to_geog(q.getPointer(r),n,d,h,s);return g&&Yc(i,n,d,a),g}e.geogToGeog=t}(e5||(e5={})),function(e){function t(o,s,c,a,d,h,g,v){q.PeLineType.prototype.geodesic_coordinate(o,s,c,a,d,h,g,v)}function r(o,s,c,a,d,h,g,v,S){q.PeLineType.prototype.geodetic_coordinate(o,s,c,a,d,h,g,v,S)}function n(o,s,c,a,d,h,g,v,S,M){q.PeLineType.prototype.geodetic_distance(o,s,c,a,d,h,g,v,S,M)}function i(o,s,c,a,d,h,g,v,S){q.PeLineType.prototype.great_elliptic_distance(o,s,c,a,d,h,g,v,S)}e.geodesicCoordinate=t,e.geodeticCoordinate=r,e.geodeticDistance=n,e.greatEllipticDistance=i}(t5||(t5={})),function(e){function t(s,c){return q.PeMath.prototype.phi_to_eta(s,c)}function r(s,c){return q.PeMath.prototype.eta_to_phi(s,c)}function n(s,c){return q.PeMath.prototype.phi_to_phig(s,c)}function i(s,c,a){return q.PeMath.prototype.q(s,c,a)}function o(s,c){return q.PeMath.prototype.q90(s,c)}e.phiToEta=t,e.etaToPhi=r,e.phiToPhig=n,e.q=i,e.q90=o}(r5||(r5={})),function(e){let t=(d,h,g,v,S,M)=>{let I,R;switch(q.ensureCache.prepare(),d){case"dd":I=q._pe_geog_to_dd,R=Zt.PE_DD_MAX;break;case"ddm":I=q._pe_geog_to_ddm,R=Zt.PE_DDM_MAX;break;case"dms":I=q._pe_geog_to_dms,R=Zt.PE_DMS_MAX}let B=0;h&&(B=q.getPointer(h));let F=Bu(v),G=q.ensureFloat64(F),J=Mb(g,R),re=I(B,g,G,S,q.ensureInt32(J));if(re)for(let de=0;de<g;de++)M[de]=q.UTF8ToString(J[de]);return re},r=(d,h,g,v,S)=>{let M;switch(q.ensureCache.prepare(),d){case"dd":M=q._pe_dd_to_geog;break;case"ddm":M=q._pe_ddm_to_geog;break;case"dms":M=q._pe_dms_to_geog}let I=0;h&&(I=q.getPointer(h));let R=v.map(J=>q.ensureString(J)),B=q.ensureInt32(R),F=q.ensureFloat64(new Array(2*g)),G=M(I,g,B,F);return G&&Yc(S,g,F),G};function n(d,h,g,v,S){return t("dms",d,h,g,v,S)}function i(d,h,g,v){return r("dms",d,h,g,v)}function o(d,h,g,v,S){return t("ddm",d,h,g,v,S)}function s(d,h,g,v){return r("ddm",d,h,g,v)}function c(d,h,g,v,S){return t("dd",d,h,g,v,S)}function a(d,h,g,v){return r("dd",d,h,g,v)}e.geogToDms=n,e.dmsToGeog=i,e.geogToDdm=o,e.ddmToGeog=s,e.geogToDd=c,e.ddToGeog=a}(n5||(n5={})),function(e){function t(){e.PE_MGRS_STYLE_NEW=q.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=q.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=q.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=q.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=q.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES}function r(i,o,s,c,a,d,h){q.ensureCache.prepare();let g=0;i&&(g=q.getPointer(i));let v=Bu(s),S=q.ensureFloat64(v),M=Mb(o,Zt.PE_MGRS_MAX),I=q.ensureInt32(M),R=q._pe_geog_to_mgrs_extended(g,o,S,c,a,d,I);if(R)for(let B=0;B<o;B++)h[B]=q.UTF8ToString(M[B]);return R}function n(i,o,s,c,a){q.ensureCache.prepare();let d=0;i&&(d=q.getPointer(i));let h=s.map(M=>q.ensureString(M)),g=q.ensureInt32(h),v=q.ensureFloat64(new Array(2*o)),S=q._pe_mgrs_to_geog_extended(d,o,g,c,v);return S&&Yc(a,o,v),S}e.init=t,e.geogToMgrsExtended=r,e.mgrsToGeogExtended=n}(Ab||(Ab={})),function(e){function t(n,i,o,s,c,a,d){q.ensureCache.prepare();let h=0;n&&(h=q.getPointer(n));let g=Bu(o),v=q.ensureFloat64(g),S=Mb(i,Zt.PE_MGRS_MAX),M=q.ensureInt32(S),I=q._pe_geog_to_usng(h,i,v,s,c,a,M);if(I)for(let R=0;R<i;R++)d[R]=q.UTF8ToString(S[R]);return I}function r(n,i,o,s){q.ensureCache.prepare();let c=0;n&&(c=q.getPointer(n));let a=o.map(v=>q.ensureString(v)),d=q.ensureInt32(a),h=q.ensureFloat64(new Array(2*i)),g=q._pe_usng_to_geog(c,i,d,h);return g&&Yc(s,i,h),g}e.geogToUsng=t,e.usngToGeog=r}(i5||(i5={})),function(e){function t(){e.PE_UTM_OPTS_NONE=q.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=q.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=q.PeNotationUtm.prototype.PE_UTM_OPTS_NS}function r(i,o,s,c,a){q.ensureCache.prepare();let d=0;i&&(d=q.getPointer(i));let h=Bu(s),g=q.ensureFloat64(h),v=Mb(o,Zt.PE_UTM_MAX),S=q.ensureInt32(v),M=q._pe_geog_to_utm(d,o,g,c,S);if(M)for(let I=0;I<o;I++)a[I]=q.UTF8ToString(v[I]);return M}function n(i,o,s,c,a){q.ensureCache.prepare();let d=0;i&&(d=q.getPointer(i));let h=s.map(M=>q.ensureString(M)),g=q.ensureInt32(h),v=q.ensureFloat64(new Array(2*o)),S=q._pe_utm_to_geog(d,o,g,c,v);return S&&Yc(a,o,v),S}e.init=t,e.geogToUtm=r,e.utmToGeog=n}(Lb||(Lb={})),function(e){let t=new Map;function r(){e.PE_PCSINFO_OPTION_NONE=q.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=q.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=q.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=q.PePCSInfo.prototype.PE_POLE_POINT}function n(i,o=e.PE_PCSINFO_OPTION_DOMAIN){let s=null,c=null;return t.has(i)&&(c=t.get(i),c[o]&&(s=c[o])),s||(s=q.PePCSInfo.prototype.generate(i,o),c||(c=[],t.set(i,c)),c[o]=s),s}e.init=r,e.generate=n}(kb||(kb={})),function(e){function t(){return q.PeVersion.prototype.version_string()}e.versionString=t}(o5||(o5={}));Qye=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return K4},get PeDefs(){return Zt},get PeDouble(){return iO},get PeFactory(){return Pb},get PeGCSExtent(){return oO},get PeGTTransformations(){return e5},get PeGTlistExtended(){return Ib},get PeGTlistExtendedEntry(){return Q4},get PeLineType(){return t5},get PeMath(){return r5},get PeNotationDms(){return n5},get PeNotationMgrs(){return Ab},get PeNotationUsng(){return i5},get PeNotationUtm(){return Lb},get PePCSInfo(){return kb},get PeVersion(){return o5},_init:sO,get _pe(){return q},isLoaded:rO,isSupported:vJ,load:nO},Symbol.toStringTag,{value:"Module"}))});var em,cO=V(()=>{(function(e){e[e.CGCS2000=4490]="CGCS2000",e[e.GCSMARS2000=104971]="GCSMARS2000",e[e.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",e[e.GCSMOON2000=104903]="GCSMOON2000"})(em||(em={}))});var l,P,s5=V(()=>{P={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5e4,15e4],units:["Meter","Foot","Foot_US","Foot_Clarke","Yard_Clarke","Link_Clarke","Yard_Sears","Foot_Sears","Chain_Sears","Chain_Benoit_1895_B","Yard_Indian","Yard_Indian_1937","Foot_Gold_Coast","Chain","Chain_Sears_1922_Truncated","50_Kilometers","150_Kilometers"],2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5041:0,5042:0,5048:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,9793:0,9794:0,9869:0,9874:0,9875:0,9880:0,9895:0,9943:0,9945:0,9947:0,9967:0,9972:0,9977:0,10160:0,10183:0,10188:0,10194:0,10199:0,10207:0,10212:0,10217:0,10222:0,10227:0,10235:0,10240:0,10250:0,10254:0,10270:0,10275:0,10280:0,10306:0,10329:0,10471:0,10477:0,10481:2,10516:2,10592:0,10594:0,10596:0,10598:0,10601:0,10603:0,10626:0,10632:0,10665:0,20002:0,20042:0,20050:1,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22239:0,22240:0,22332:0,22337:0,22338:0,22391:0,22392:0,22639:0,22700:0,22739:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25e3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,54090:0,54091:0,65061:2,65062:2,65161:0,65163:0,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102731:0,102732:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2,103897:1,103978:2,103979:0,103980:2,103981:0};for(l=2e3;l<=2045;l++)P[l]=0;for(l=2056;l<=2065;l++)P[l]=0;for(l=2067;l<=2135;l++)P[l]=0;for(l=2137;l<=2154;l++)P[l]=0;for(l=2161;l<=2170;l++)P[l]=0;for(l=2172;l<=2193;l++)P[l]=0;for(l=2195;l<=2198;l++)P[l]=0;for(l=2200;l<=2203;l++)P[l]=0;for(l=2205;l<=2217;l++)P[l]=0;for(l=2222;l<=2224;l++)P[l]=1;for(l=2225;l<=2250;l++)P[l]=2;for(l=2251;l<=2253;l++)P[l]=1;for(l=2257;l<=2264;l++)P[l]=2;for(l=2274;l<=2279;l++)P[l]=2;for(l=2280;l<=2282;l++)P[l]=1;for(l=2283;l<=2289;l++)P[l]=2;for(l=2290;l<=2292;l++)P[l]=0;for(l=2308;l<=2313;l++)P[l]=0;for(l=2315;l<=2491;l++)P[l]=0;for(l=2494;l<=2866;l++)P[l]=0;for(l=2867;l<=2869;l++)P[l]=1;for(l=2870;l<=2888;l++)P[l]=2;for(l=2891;l<=2895;l++)P[l]=2;for(l=2896;l<=2898;l++)P[l]=1;for(l=2902;l<=2908;l++)P[l]=2;for(l=2915;l<=2920;l++)P[l]=2;for(l=2921;l<=2923;l++)P[l]=1;for(l=2924;l<=2930;l++)P[l]=2;for(l=2931;l<=2962;l++)P[l]=0;for(l=2964;l<=2968;l++)P[l]=2;for(l=2969;l<=2973;l++)P[l]=0;for(l=2975;l<=2991;l++)P[l]=0;for(l=2995;l<=3051;l++)P[l]=0;for(l=3054;l<=3079;l++)P[l]=0;for(l=3081;l<=3088;l++)P[l]=0;for(l=3092;l<=3101;l++)P[l]=0;for(l=3106;l<=3138;l++)P[l]=0;for(l=3146;l<=3151;l++)P[l]=0;for(l=3153;l<=3166;l++)P[l]=0;for(l=3168;l<=3172;l++)P[l]=0;for(l=3174;l<=3203;l++)P[l]=0;for(l=3294;l<=3358;l++)P[l]=0;for(l=3367;l<=3403;l++)P[l]=0;for(l=3408;l<=3416;l++)P[l]=0;for(l=3417;l<=3438;l++)P[l]=2;for(l=3441;l<=3446;l++)P[l]=2;for(l=3447;l<=3450;l++)P[l]=0;for(l=3451;l<=3459;l++)P[l]=2;for(l=3460;l<=3478;l++)P[l]=0;for(l=3554;l<=3559;l++)P[l]=0;for(l=3560;l<=3570;l++)P[l]=2;for(l=3571;l<=3581;l++)P[l]=0;for(l=3594;l<=3597;l++)P[l]=0;for(l=3601;l<=3604;l++)P[l]=0;for(l=3637;l<=3639;l++)P[l]=0;for(l=3665;l<=3667;l++)P[l]=0;for(l=3693;l<=3695;l++)P[l]=0;for(l=3701;l<=3727;l++)P[l]=0;for(l=3728;l<=3739;l++)P[l]=2;for(l=3740;l<=3751;l++)P[l]=0;for(l=3753;l<=3760;l++)P[l]=2;for(l=3761;l<=3773;l++)P[l]=0;for(l=3775;l<=3777;l++)P[l]=0;for(l=3779;l<=3781;l++)P[l]=0;for(l=3783;l<=3785;l++)P[l]=0;for(l=3788;l<=3791;l++)P[l]=0;for(l=3797;l<=3802;l++)P[l]=0;for(l=3814;l<=3816;l++)P[l]=0;for(l=3825;l<=3829;l++)P[l]=0;for(l=3832;l<=3841;l++)P[l]=0;for(l=3844;l<=3852;l++)P[l]=0;for(l=3873;l<=3885;l++)P[l]=0;for(l=3890;l<=3893;l++)P[l]=0;for(l=3907;l<=3912;l++)P[l]=0;for(l=3942;l<=3950;l++)P[l]=0;for(l=3968;l<=3970;l++)P[l]=0;for(l=3973;l<=3976;l++)P[l]=0;for(l=3986;l<=3989;l++)P[l]=0;for(l=3994;l<=3997;l++)P[l]=0;for(l=4048;l<=4051;l++)P[l]=0;for(l=4056;l<=4063;l++)P[l]=0;for(l=4093;l<=4096;l++)P[l]=0;for(l=4390;l<=4398;l++)P[l]=0;for(l=4399;l<=4413;l++)P[l]=2;for(l=4418;l<=4433;l++)P[l]=2;for(l=4455;l<=4457;l++)P[l]=2;for(l=4484;l<=4489;l++)P[l]=0;for(l=4491;l<=4554;l++)P[l]=0;for(l=4568;l<=4589;l++)P[l]=0;for(l=4652;l<=4656;l++)P[l]=0;for(l=4766;l<=4800;l++)P[l]=0;for(l=5014;l<=5016;l++)P[l]=0;for(l=5069;l<=5072;l++)P[l]=0;for(l=5105;l<=5130;l++)P[l]=0;for(l=5167;l<=5188;l++)P[l]=0;for(l=5253;l<=5259;l++)P[l]=0;for(l=5269;l<=5275;l++)P[l]=0;for(l=5292;l<=5311;l++)P[l]=0;for(l=5329;l<=5331;l++)P[l]=0;for(l=5343;l<=5349;l++)P[l]=0;for(l=5355;l<=5357;l++)P[l]=0;for(l=5387;l<=5389;l++)P[l]=0;for(l=5459;l<=5463;l++)P[l]=0;for(l=5479;l<=5482;l++)P[l]=0;for(l=5518;l<=5520;l++)P[l]=0;for(l=5530;l<=5539;l++)P[l]=0;for(l=5550;l<=5552;l++)P[l]=0;for(l=5562;l<=5583;l++)P[l]=0;for(l=5623;l<=5625;l++)P[l]=2;for(l=5631;l<=5639;l++)P[l]=0;for(l=5649;l<=5653;l++)P[l]=0;for(l=5663;l<=5680;l++)P[l]=0;for(l=5682;l<=5685;l++)P[l]=0;for(l=5875;l<=5877;l++)P[l]=0;for(l=5896;l<=5899;l++)P[l]=0;for(l=5921;l<=5940;l++)P[l]=0;for(l=6050;l<=6125;l++)P[l]=0;for(l=6244;l<=6275;l++)P[l]=0;for(l=6328;l<=6348;l++)P[l]=0;for(l=6350;l<=6356;l++)P[l]=0;for(l=6366;l<=6372;l++)P[l]=0;for(l=6381;l<=6387;l++)P[l]=0;for(l=6393;l<=6404;l++)P[l]=0;for(l=6480;l<=6483;l++)P[l]=0;for(l=6511;l<=6514;l++)P[l]=0;for(l=6579;l<=6581;l++)P[l]=0;for(l=6619;l<=6624;l++)P[l]=0;for(l=6625;l<=6627;l++)P[l]=2;for(l=6628;l<=6632;l++)P[l]=0;for(l=6634;l<=6637;l++)P[l]=0;for(l=6669;l<=6692;l++)P[l]=0;for(l=6707;l<=6709;l++)P[l]=0;for(l=6720;l<=6723;l++)P[l]=0;for(l=6732;l<=6738;l++)P[l]=0;for(l=6931;l<=6933;l++)P[l]=0;for(l=6956;l<=6959;l++)P[l]=0;for(l=7005;l<=7007;l++)P[l]=0;for(l=7057;l<=7070;l++)P[l]=2;for(l=7074;l<=7082;l++)P[l]=0;for(l=7109;l<=7118;l++)P[l]=0;for(l=7119;l<=7127;l++)P[l]=1;for(l=7374;l<=7376;l++)P[l]=0;for(l=7528;l<=7586;l++)P[l]=0;for(l=7587;l<=7645;l++)P[l]=2;for(l=7692;l<=7696;l++)P[l]=0;for(l=7755;l<=7787;l++)P[l]=0;for(l=7791;l<=7795;l++)P[l]=0;for(l=7799;l<=7801;l++)P[l]=0;for(l=7803;l<=7805;l++)P[l]=0;for(l=7825;l<=7831;l++)P[l]=0;for(l=7845;l<=7859;l++)P[l]=0;for(l=8013;l<=8032;l++)P[l]=0;for(l=8065;l<=8068;l++)P[l]=1;for(l=8518;l<=8529;l++)P[l]=2;for(l=8533;l<=8536;l++)P[l]=2;for(l=8538;l<=8540;l++)P[l]=2;for(l=8677;l<=8679;l++)P[l]=0;for(l=8836;l<=8840;l++)P[l]=0;for(l=8857;l<=8859;l++)P[l]=0;for(l=8908;l<=8910;l++)P[l]=0;for(l=9154;l<=9159;l++)P[l]=0;for(l=9205;l<=9218;l++)P[l]=0;for(l=9271;l<=9273;l++)P[l]=0;for(l=9295;l<=9297;l++)P[l]=0;for(l=9356;l<=9360;l++)P[l]=0;for(l=9404;l<=9407;l++)P[l]=0;for(l=9476;l<=9482;l++)P[l]=0;for(l=9487;l<=9494;l++)P[l]=0;for(l=9697;l<=9699;l++)P[l]=0;for(l=9821;l<=9865;l++)P[l]=0;for(l=10285;l<=10291;l++)P[l]=0;for(l=10314;l<=10317;l++)P[l]=0;for(l=10448;l<=10465;l++)P[l]=0;for(l=10731;l<=10733;l++)P[l]=0;for(l=11114;l<=11118;l++)P[l]=0;for(l=20004;l<=20032;l++)P[l]=0;for(l=20047;l<=20049;l++)P[l]=0;for(l=20062;l<=20092;l++)P[l]=0;for(l=20135;l<=20138;l++)P[l]=0;for(l=20248;l<=20258;l++)P[l]=0;for(l=20348;l<=20358;l++)P[l]=0;for(l=20436;l<=20440;l++)P[l]=0;for(l=20822;l<=20824;l++)P[l]=0;for(l=20904;l<=20932;l++)P[l]=0;for(l=20934;l<=20936;l++)P[l]=0;for(l=21004;l<=21032;l++)P[l]=0;for(l=21035;l<=21037;l++)P[l]=0;for(l=21095;l<=21097;l++)P[l]=0;for(l=21148;l<=21150;l++)P[l]=0;for(l=21207;l<=21264;l++)P[l]=0;for(l=21307;l<=21364;l++)P[l]=0;for(l=21413;l<=21423;l++)P[l]=0;for(l=21453;l<=21463;l++)P[l]=0;for(l=21473;l<=21483;l++)P[l]=0;for(l=21780;l<=21782;l++)P[l]=0;for(l=21891;l<=21894;l++)P[l]=0;for(l=21896;l<=21899;l++)P[l]=0;for(l=22171;l<=22177;l++)P[l]=0;for(l=22181;l<=22187;l++)P[l]=0;for(l=22191;l<=22197;l++)P[l]=0;for(l=22207;l<=22222;l++)P[l]=0;for(l=22229;l<=22232;l++)P[l]=0;for(l=22234;l<=22236;l++)P[l]=0;for(l=22243;l<=22250;l++)P[l]=0;for(l=22262;l<=22265;l++)P[l]=0;for(l=22307;l<=22322;l++)P[l]=0;for(l=22348;l<=22357;l++)P[l]=0;for(l=22407;l<=22422;l++)P[l]=0;for(l=22462;l<=22465;l++)P[l]=0;for(l=22521;l<=22525;l++)P[l]=0;for(l=22607;l<=22622;l++)P[l]=0;for(l=22641;l<=22646;l++)P[l]=0;for(l=22648;l<=22657;l++)P[l]=0;for(l=22707;l<=22722;l++)P[l]=0;for(l=22762;l<=22765;l++)P[l]=0;for(l=22807;l<=22822;l++)P[l]=0;for(l=22991;l<=22994;l++)P[l]=0;for(l=23028;l<=23038;l++)P[l]=0;for(l=23301;l<=23333;l++)P[l]=2;for(l=23830;l<=23853;l++)P[l]=0;for(l=23866;l<=23872;l++)P[l]=0;for(l=23877;l<=23884;l++)P[l]=0;for(l=23886;l<=23894;l++)P[l]=0;for(l=23946;l<=23948;l++)P[l]=0;for(l=24311;l<=24313;l++)P[l]=0;for(l=24342;l<=24347;l++)P[l]=0;for(l=24370;l<=24374;l++)P[l]=10;for(l=24375;l<=24381;l++)P[l]=0;for(l=24718;l<=24721;l++)P[l]=0;for(l=24817;l<=24821;l++)P[l]=0;for(l=24877;l<=24882;l++)P[l]=0;for(l=24891;l<=24893;l++)P[l]=0;for(l=25391;l<=25395;l++)P[l]=0;for(l=25828;l<=25838;l++)P[l]=0;for(l=26191;l<=26195;l++)P[l]=0;for(l=26391;l<=26393;l++)P[l]=0;for(l=26701;l<=26722;l++)P[l]=0;for(l=26729;l<=26799;l++)P[l]=2;for(l=26801;l<=26803;l++)P[l]=2;for(l=26811;l<=26813;l++)P[l]=2;for(l=26847;l<=26870;l++)P[l]=2;for(l=26891;l<=26899;l++)P[l]=0;for(l=26901;l<=26923;l++)P[l]=0;for(l=26929;l<=26946;l++)P[l]=0;for(l=26948;l<=26998;l++)P[l]=0;for(l=27037;l<=27040;l++)P[l]=0;for(l=27205;l<=27232;l++)P[l]=0;for(l=27258;l<=27260;l++)P[l]=0;for(l=27391;l<=27398;l++)P[l]=0;for(l=27561;l<=27564;l++)P[l]=0;for(l=27571;l<=27574;l++)P[l]=0;for(l=27581;l<=27584;l++)P[l]=0;for(l=27591;l<=27594;l++)P[l]=0;for(l=27700;l<=27707;l++)P[l]=0;for(l=28191;l<=28193;l++)P[l]=0;for(l=28348;l<=28358;l++)P[l]=0;for(l=28402;l<=28432;l++)P[l]=0;for(l=28462;l<=28492;l++)P[l]=0;for(l=29118;l<=29122;l++)P[l]=0;for(l=29168;l<=29172;l++)P[l]=0;for(l=29177;l<=29185;l++)P[l]=0;for(l=29187;l<=29195;l++)P[l]=0;for(l=29900;l<=29903;l++)P[l]=0;for(l=30161;l<=30179;l++)P[l]=0;for(l=30491;l<=30494;l++)P[l]=0;for(l=30729;l<=30732;l++)P[l]=0;for(l=31251;l<=31259;l++)P[l]=0;for(l=31265;l<=31268;l++)P[l]=0;for(l=31275;l<=31279;l++)P[l]=0;for(l=31281;l<=31297;l++)P[l]=0;for(l=31461;l<=31469;l++)P[l]=0;for(l=31491;l<=31495;l++)P[l]=0;for(l=31917;l<=31922;l++)P[l]=0;for(l=31965;l<=32e3;l++)P[l]=0;for(l=32001;l<=32003;l++)P[l]=2;for(l=32005;l<=32031;l++)P[l]=2;for(l=32033;l<=32060;l++)P[l]=2;for(l=32064;l<=32067;l++)P[l]=2;for(l=32074;l<=32077;l++)P[l]=2;for(l=32081;l<=32086;l++)P[l]=0;for(l=32107;l<=32130;l++)P[l]=0;for(l=32133;l<=32159;l++)P[l]=0;for(l=32164;l<=32167;l++)P[l]=2;for(l=32180;l<=32199;l++)P[l]=0;for(l=32201;l<=32260;l++)P[l]=0;for(l=32301;l<=32360;l++)P[l]=0;for(l=32401;l<=32460;l++)P[l]=0;for(l=32501;l<=32560;l++)P[l]=0;for(l=32601;l<=32662;l++)P[l]=0;for(l=32664;l<=32667;l++)P[l]=2;for(l=32701;l<=32761;l++)P[l]=0;for(l=53001;l<=53004;l++)P[l]=0;for(l=53008;l<=53019;l++)P[l]=0;for(l=53021;l<=53032;l++)P[l]=0;for(l=53034;l<=53037;l++)P[l]=0;for(l=53042;l<=53046;l++)P[l]=0;for(l=53074;l<=53080;l++)P[l]=0;for(l=54001;l<=54004;l++)P[l]=0;for(l=54008;l<=54019;l++)P[l]=0;for(l=54021;l<=54032;l++)P[l]=0;for(l=54034;l<=54037;l++)P[l]=0;for(l=54042;l<=54046;l++)P[l]=0;for(l=54048;l<=54053;l++)P[l]=0;for(l=54074;l<=54080;l++)P[l]=0;for(l=54098;l<=54101;l++)P[l]=0;for(l=102001;l<=102040;l++)P[l]=0;for(l=102042;l<=102063;l++)P[l]=0;for(l=102065;l<=102067;l++)P[l]=0;for(l=102070;l<=102117;l++)P[l]=0;for(l=102122;l<=102216;l++)P[l]=0;for(l=102221;l<=102377;l++)P[l]=0;for(l=102382;l<=102388;l++)P[l]=0;for(l=102389;l<=102398;l++)P[l]=2;for(l=102399;l<=102444;l++)P[l]=0;for(l=102445;l<=102447;l++)P[l]=2;for(l=102448;l<=102458;l++)P[l]=0;for(l=102459;l<=102468;l++)P[l]=2;for(l=102469;l<=102499;l++)P[l]=0;for(l=102500;l<=102519;l++)P[l]=1;for(l=102520;l<=102524;l++)P[l]=0;for(l=102525;l<=102529;l++)P[l]=2;for(l=102530;l<=102588;l++)P[l]=0;for(l=102590;l<=102598;l++)P[l]=0;for(l=102601;l<=102603;l++)P[l]=0;for(l=102605;l<=102628;l++)P[l]=0;for(l=102629;l<=102646;l++)P[l]=2;for(l=102648;l<=102700;l++)P[l]=2;for(l=102701;l<=102703;l++)P[l]=0;for(l=102707;l<=102730;l++)P[l]=2;for(l=102733;l<=102758;l++)P[l]=2;for(l=102767;l<=102900;l++)P[l]=0;for(l=102901;l<=102933;l++)P[l]=2;for(l=102934;l<=102950;l++)P[l]=13;for(l=102951;l<=102963;l++)P[l]=0;for(l=102965;l<=102969;l++)P[l]=0;for(l=102971;l<=102973;l++)P[l]=0;for(l=102975;l<=102989;l++)P[l]=0;for(l=102990;l<=102992;l++)P[l]=1;for(l=102997;l<=103002;l++)P[l]=0;for(l=103003;l<=103008;l++)P[l]=2;for(l=103009;l<=103011;l++)P[l]=0;for(l=103012;l<=103014;l++)P[l]=2;for(l=103019;l<=103021;l++)P[l]=0;for(l=103022;l<=103024;l++)P[l]=2;for(l=103029;l<=103031;l++)P[l]=0;for(l=103032;l<=103034;l++)P[l]=2;for(l=103065;l<=103068;l++)P[l]=0;for(l=103074;l<=103076;l++)P[l]=0;for(l=103077;l<=103079;l++)P[l]=1;for(l=103080;l<=103082;l++)P[l]=0;for(l=103083;l<=103085;l++)P[l]=2;for(l=103090;l<=103093;l++)P[l]=0;for(l=103097;l<=103099;l++)P[l]=0;for(l=103100;l<=103102;l++)P[l]=2;for(l=103107;l<=103109;l++)P[l]=0;for(l=103110;l<=103112;l++)P[l]=2;for(l=103113;l<=103116;l++)P[l]=0;for(l=103117;l<=103120;l++)P[l]=2;for(l=103153;l<=103157;l++)P[l]=0;for(l=103158;l<=103162;l++)P[l]=2;for(l=103163;l<=103165;l++)P[l]=0;for(l=103166;l<=103168;l++)P[l]=1;for(l=103169;l<=103171;l++)P[l]=2;for(l=103186;l<=103188;l++)P[l]=0;for(l=103189;l<=103191;l++)P[l]=2;for(l=103192;l<=103195;l++)P[l]=0;for(l=103196;l<=103199;l++)P[l]=2;for(l=103200;l<=103224;l++)P[l]=0;for(l=103225;l<=103227;l++)P[l]=1;for(l=103232;l<=103237;l++)P[l]=0;for(l=103238;l<=103243;l++)P[l]=2;for(l=103244;l<=103246;l++)P[l]=0;for(l=103247;l<=103249;l++)P[l]=2;for(l=103254;l<=103256;l++)P[l]=0;for(l=103257;l<=103259;l++)P[l]=2;for(l=103264;l<=103266;l++)P[l]=0;for(l=103267;l<=103269;l++)P[l]=2;for(l=103300;l<=103375;l++)P[l]=0;for(l=103381;l<=103383;l++)P[l]=0;for(l=103384;l<=103386;l++)P[l]=1;for(l=103387;l<=103389;l++)P[l]=0;for(l=103390;l<=103392;l++)P[l]=2;for(l=103397;l<=103399;l++)P[l]=0;for(l=103400;l<=103471;l++)P[l]=2;for(l=103476;l<=103478;l++)P[l]=0;for(l=103479;l<=103481;l++)P[l]=2;for(l=103486;l<=103488;l++)P[l]=0;for(l=103489;l<=103491;l++)P[l]=2;for(l=103492;l<=103495;l++)P[l]=0;for(l=103496;l<=103499;l++)P[l]=2;for(l=103528;l<=103543;l++)P[l]=0;for(l=103544;l<=103548;l++)P[l]=2;for(l=103549;l<=103551;l++)P[l]=0;for(l=103552;l<=103554;l++)P[l]=1;for(l=103555;l<=103557;l++)P[l]=2;for(l=103558;l<=103560;l++)P[l]=0;for(l=103571;l<=103573;l++)P[l]=0;for(l=103574;l<=103576;l++)P[l]=2;for(l=103577;l<=103580;l++)P[l]=0;for(l=103581;l<=103583;l++)P[l]=2;for(l=103595;l<=103694;l++)P[l]=0;for(l=103696;l<=103699;l++)P[l]=0;for(l=103700;l<=103793;l++)P[l]=2;for(l=103794;l<=103890;l++)P[l]=0;for(l=103891;l<=103896;l++)P[l]=2;for(l=103900;l<=103971;l++)P[l]=2;for(l=103972;l<=103977;l++)P[l]=0;for(l=112e3;l<=112101;l++)P[l]=0});function Jc(e,t){if(e===t)return!0;if(e==null||t==null)return!1;let r=e.wkid,n=t.wkid;if(r!=null||n!=null){if(r===n||Cs(e)&&Cs(t))return!0;let s=e.latestWkid;if(s!=null&&n===s)return!0;let c=t.latestWkid;return c!=null&&r===c}let i,o;return e.wkt2&&t.wkt2?(i=e.wkt2,o=t.wkt2):e.wkt&&t.wkt&&(i=e.wkt,o=t.wkt),!(!i||!o)&&i.toUpperCase()===o.toUpperCase()}function Gu(e){let t=e?.wkid;return t!=null&&t>=2e3&&uO[t]||null}function Wg(e){if(!fO(e))return!1;let{wkid:t}=e;if(t)return P[t]==null;let r=e.wkt2||e.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function rm(e){return e?.wkid===4326}function Cs(e){let t=e?.wkid;return t!=null&&t>=2e3&&lO.includes(t)}function l5(e){return e===em.GCSMARS2000||e===em.GCSMARS2000_SPHERE}function u5(e){return e===em.GCSMOON2000}function dO(e){let t=e?.wkid;return t!=null&&t>=2e3&&SJ.includes(t)}function fO(e){if(e==null)return!1;let t=e.wkid;return t!=null&&t>=2e3||e.wkt2!=null||e.wkt!=null}var lO,_J,SJ,tm,c5,a5,uO,d5,f5,pO,pa=V(()=>{ic();aO();cO();s5();lO=[102100,102113,3857,3785,900913],_J=[104905,104971],SJ=[4326,...lO,..._J],tm=[-20037508342788905e-9,20037508342788905e-9],c5=[-20037508342787e-6,20037508342787e-6],a5={wkTemplate:'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',valid:tm,origin:c5,dx:1e-5},uO={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:tm,origin:c5,dx:1e-5},102100:a5,3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:tm,origin:c5,dx:1e-5},3857:a5,4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},900913:a5};d5={wkid:4326,wkt:fs(uO[4326].wkTemplate,{Central_Meridian:"0.0"})},f5={wkid:102100,latestWkid:3857},pO={wkid:32662}});function p5(e){return{wkt:`GEOCCS["Spherical geocentric",
|
|
112
|
+
)}:host{display:flex}:host([open]) .container{pointer-events:auto;max-block-size:100%;align-items:center;opacity:1;--tw-shadow:0 4px 8px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);--tw-shadow-colored:0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}.container slot[name=title]::slotted(*),.container *::slotted([slot=title]){margin:0px;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1)}.container slot[name=message]::slotted(*),.container *::slotted([slot=message]){margin:0px;display:inline;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-2);margin-inline-end:var(--calcite-notice-spacing-token-small)}.notice-content{box-sizing:border-box;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;display:flex;min-inline-size:0px;flex-direction:column;overflow-wrap:break-word;flex:1 1 0;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:0 var(--calcite-notice-spacing-token-small)}.notice-content:first-of-type:not(:only-child){padding-inline-start:var(--calcite-notice-spacing-token-large)}.notice-content:only-of-type{padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large)}.notice-icon{display:flex;align-items:center;box-sizing:border-box;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto}.notice-close{display:flex;cursor:pointer;align-items:center;align-self:stretch;border-style:none;background-color:transparent;color:var(--calcite-color-text-3);outline:2px solid transparent;outline-offset:2px;box-sizing:border-box;transition:background-color, block-size, border-color, box-shadow, color, inset-block-end, inset-block-start, inset-inline-end, inset-inline-start inset-size, opacity, outline-color, transform var(--calcite-animation-timing) ease-in-out 0s, outline 0s, outline-offset 0s;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;-webkit-appearance:none}.notice-close:hover,.notice-close:focus{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}.notice-close:active{background-color:var(--calcite-color-foreground-3)}.actions-end{display:flex;align-self:stretch}:host([kind=brand]) .container{border-color:var(--calcite-color-brand)}:host([kind=brand]) .container .notice-icon{color:var(--calcite-color-brand)}:host([kind=info]) .container{border-color:var(--calcite-color-status-info)}:host([kind=info]) .container .notice-icon{color:var(--calcite-color-status-info)}:host([kind=danger]) .container{border-color:var(--calcite-color-status-danger)}:host([kind=danger]) .container .notice-icon{color:var(--calcite-color-status-danger)}:host([kind=success]) .container{border-color:var(--calcite-color-status-success)}:host([kind=success]) .container .notice-icon{color:var(--calcite-color-status-success)}:host([kind=warning]) .container{border-color:var(--calcite-color-status-warning)}:host([kind=warning]) .container .notice-icon{color:var(--calcite-color-status-warning)}:host([hidden]){display:none}[hidden]{display:none}`,nJ=rJ,Ik=Ft(class extends $t{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteNoticeBeforeClose=Lt(this,"calciteNoticeBeforeClose",6),this.calciteNoticeBeforeOpen=Lt(this,"calciteNoticeBeforeOpen",6),this.calciteNoticeClose=Lt(this,"calciteNoticeClose",6),this.calciteNoticeOpen=Lt(this,"calciteNoticeOpen",6),this.setTransitionEl=t=>{this.transitionEl=t},this.close=()=>{this.open=!1},this.openTransitionProp="opacity",this.open=!1,this.kind="brand",this.closable=!1,this.icon=void 0,this.iconFlipRtl=!1,this.scale="m",this.width="auto",this.messages=void 0,this.messageOverrides=void 0,this.effectiveLocale=void 0,this.defaultMessages=void 0}openHandler(){Gc(this)}onMessagesChange(){}updateRequestedIcon(){this.requestedIcon=aa(Wx,this.icon,this.kind)}connectedCallback(){Tk(this),cn(this),Vn(this)}disconnectedCallback(){Ek(this),ln(this),zn(this)}async componentWillLoad(){Nn(this),this.requestedIcon=aa(Wx,this.icon,this.kind),await Fn(this),this.open&&Gc(this)}componentDidLoad(){Rn(this)}render(){let{el:t}=this,r=X("button",{key:"52f9306ebe945398929f68fe66615359836ba2d8","aria-label":this.messages.close,class:Vg.close,onClick:this.close,ref:i=>this.closeButton=i},X("calcite-icon",{key:"f3601ac9547c73219661eebc7e7470db5dee7b52",icon:"x",scale:On(this.scale)})),n=Uy(t,Ug.actionsEnd);return X("div",{key:"3f8117ff7cdd08c92ce804ef4ac8af83003156a4",class:Vg.container,ref:this.setTransitionEl},this.requestedIcon?X("div",{class:Vg.icon},X("calcite-icon",{flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:On(this.scale)})):null,X("div",{key:"1b614ee86618bd5ce6e8834b466baf7d2564b5a1",class:Vg.content},X("slot",{key:"19467ed9718a78c7530c2a08c727028d565dee7b",name:Ug.title}),X("slot",{key:"191e71caf2f2147c62fd6b73602e41d95dc27558",name:Ug.message}),X("slot",{key:"d4fbf2b8aaa980cd24c5be89c6c8a36d091658f3",name:Ug.link})),n?X("div",{class:Vg.actionsEnd},X("slot",{name:Ug.actionsEnd})):null,this.closable?r:null)}async setFocus(){await Dn(this);let t=this.el.querySelector("calcite-link");if(!(!this.closeButton&&!t)){if(t)return t.setFocus();this.closeButton&&this.closeButton.focus()}}onBeforeClose(){this.calciteNoticeBeforeClose.emit()}onBeforeOpen(){this.calciteNoticeBeforeOpen.emit()}onClose(){this.calciteNoticeClose.emit()}onOpen(){this.calciteNoticeOpen.emit()}effectiveLocaleChange(){Un(this,this.effectiveLocale)}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{open:["openHandler"],messageOverrides:["onMessagesChange"],icon:["updateRequestedIcon"],kind:["updateRequestedIcon"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return nJ}},[1,"calcite-notice",{open:[1540],kind:[513],closable:[516],icon:[520],iconFlipRtl:[516,"icon-flip-rtl"],scale:[513],width:[513],messages:[1040],messageOverrides:[1040],effectiveLocale:[32],defaultMessages:[32],setFocus:[64]},void 0,{open:["openHandler"],messageOverrides:["onMessagesChange"],icon:["updateRequestedIcon"],kind:["updateRequestedIcon"],effectiveLocale:["effectiveLocaleChange"]}]);Ak();iJ=Ik,oJ=Ak});var Bx,Gx,sJ,Oi,jx,Ok=V(()=>{pt();JS();mt();et();tt();Vr();ut();YI();H4();dy();JI();KI();eA();HS();Bx="esri-identity-modal",Gx={base:Bx,info:`${Bx}__info`,notice:`${Bx}__notice`},sJ="ArcGIS Online",Oi=class extends ZI{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 zI({button:()=>Promise.resolve().then(()=>(eL(),QA)),dialog:()=>Promise.resolve().then(()=>(uk(),lk)),input:()=>Promise.resolve().then(()=>(_k(),vk)),label:()=>Promise.resolve().then(()=>(Ck(),xk)),notice:()=>Promise.resolve().then(()=>(kk(),Lk))})}get title(){return this.commonMessages?.auth.signIn}render(){let{open:e,title:t,messages:r,signingIn:n,oAuthPrompt:i,server:o,resource:s,error:c}=this,{info:a,oAuthInfo:d,lblItem:h,invalidUser:g,noAuthService:v,lblUser:S,lblPwd:M,lblCancel:I,lblSigning:R,lblOk:B}=r;return Pi("div",{class:this.classes(Gx.base,QI())},Pi("form",{bind:this,onsubmit:this._submit},Pi("calcite-dialog",{bind:this,heading:t,modal:!0,open:e,outsideCloseDisabled:!0,scale:"s",widthScale:"s",onCalciteDialogClose:this._cancel,onCalciteDialogOpen:this._focusUsernameInput},Pi("div",{class:Gx.info},GS(i?d:a,{server:o&&/\.arcgis\.com/i.test(o)?sJ:o,resource:`(${s||h})`})),c?Pi("calcite-notice",{class:Gx.notice,icon:"exclamation-mark-triangle",kind:"danger",open:!0},Pi("div",{slot:"message"},c.details?.httpStatus?g:v)):null,i?null:[Pi("calcite-label",null,S,Pi("calcite-input",{afterCreate:F=>this._usernameInputNode=F,autocomplete:"off",bind:this,name:"username",required:!0,spellcheck:!1,type:"text",value:""})),Pi("calcite-label",null,M,Pi("calcite-input",{afterCreate:F=>this._passwordInputNode=F,bind:this,name:"password",required:!0,type:"password",value:""}))],Pi("calcite-button",{appearance:"outline",bind:this,onclick:this._cancel,slot:"footer-end",type:"button"},I),Pi("calcite-button",{loading:!!n,slot:"footer-end",type:"submit"},n?R:B))))}_focusUsernameInput(){return wP(()=>this._usernameInputNode)}_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);let t=this.oAuthPrompt?{}:{username:this._usernameInputNode?.value,password:this._passwordInputNode?.value};this.emit("submit",t)}};N([z({readOnly:!0})],Oi.prototype,"container",void 0),N([z(),X4("esri/t9n/common")],Oi.prototype,"commonMessages",void 0),N([z()],Oi.prototype,"error",void 0),N([z(),X4("esri/identity/t9n/identity")],Oi.prototype,"messages",void 0),N([z()],Oi.prototype,"oAuthPrompt",void 0),N([z()],Oi.prototype,"open",void 0),N([z()],Oi.prototype,"signingIn",void 0),N([z()],Oi.prototype,"server",void 0),N([z({readOnly:!0})],Oi.prototype,"title",null),N([z()],Oi.prototype,"resource",void 0),Oi=N([Ie("esri.identity.IdentityModal")],Oi);jx=Oi});var Hx,Kp,Nk=V(()=>{Hx="esriJSAPIOAuth",Kp=class{constructor(t,r){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=t,this.storage=r,this._init()}isValid(){let t=!1;if(this.oAuthInfo&&this.userId&&(this.refreshToken||this.token)){if(this.expires==null&&this.refreshToken)t=!0;else if(this.expires){let r=Date.now();this.expires>r&&(this.expires-r)/1e3>60*this.oAuthInfo.minTimeUntilExpiration&&(t=!0)}}return t}save(){if(!this.storage)return!1;let t=this._load(),r=this.oAuthInfo;if(r?.authNamespace&&r.portalUrl){let n=t[r.authNamespace];n||(n=t[r.authNamespace]={}),this.appId||(this.appId=r.appId),n[r.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(Hx,JSON.stringify(t))}catch(i){return console.warn(i),!1}return!0}return!1}destroy(){let t=this._load(),r=this.oAuthInfo;if(r?.appId&&r?.portalUrl&&(this.expires==null||this.expires>Date.now())&&(this.refreshToken||this.token)){let n=r.portalUrl.replace(/^http:/i,"https:")+"/sharing/rest/oauth2/revokeToken",i=new FormData;if(i.append("f","json"),i.append("auth_token",this.refreshToken||this.token),i.append("client_id",r.appId),i.append("token_type_hint",this.refreshToken?"refresh_token":"access_token"),typeof navigator.sendBeacon=="function")navigator.sendBeacon(n,i);else{let o=new XMLHttpRequest;o.open("POST",n),o.send(i)}}if(r?.authNamespace&&r.portalUrl&&this.storage){let n=t[r.authNamespace];if(n){delete n[r.portalUrl];try{this.storage.setItem(Hx,JSON.stringify(t))}catch(i){console.log(i)}}}r&&(r._oAuthCred=null,this.oAuthInfo=null)}_init(){let t=this._load(),r=this.oAuthInfo;if(r?.authNamespace&&r.portalUrl){let n=t[r.authNamespace];n&&(n=n[r.portalUrl],n&&(this.appId=n.appId,this.codeVerifier=n.codeVerifier,this.expires=n.expires,this.refreshToken=n.refreshToken,this.ssl=n.ssl,this.stateUID=n.stateUID,this.token=n.token,this.userId=n.userId))}}_load(){let t={};if(this.storage){let r=this.storage.getItem(Hx);if(r)try{t=JSON.parse(r)}catch(n){console.warn(n)}}return t}};Kp.prototype.declaredClass="esri.identity.OAuthCredential"});var qx,_n,Zx,Rk=V(()=>{pt();Er();mt();et();tt();Vr();ut();_n=qx=class extends lt{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 qx.fromJSON(this.toJSON())}};N([z({json:{write:!0}})],_n.prototype,"appId",void 0),N([z({json:{write:!0}})],_n.prototype,"authNamespace",void 0),N([z({json:{write:!0}})],_n.prototype,"expiration",void 0),N([z({json:{write:!0}})],_n.prototype,"flowType",void 0),N([z({json:{write:!0}})],_n.prototype,"forceLogin",void 0),N([z({json:{write:!0}})],_n.prototype,"forceUserId",void 0),N([z({json:{write:!0}})],_n.prototype,"locale",void 0),N([z({json:{write:!0}})],_n.prototype,"minTimeUntilExpiration",void 0),N([z({json:{write:!0}})],_n.prototype,"popup",void 0),N([z({json:{write:!0}})],_n.prototype,"popupCallbackUrl",void 0),N([z({json:{write:!0}})],_n.prototype,"popupWindowFeatures",void 0),N([z({json:{write:!0}})],_n.prototype,"portalUrl",void 0),N([z({json:{write:!0}})],_n.prototype,"preserveUrlHash",void 0),N([z({json:{write:!0}})],_n.prototype,"userId",void 0),_n=qx=N([Ie("esri.identity.OAuthInfo")],_n);Zx=_n});var Ni,vb,Dk=V(()=>{pt();Er();mt();et();tt();Vr();ut();Ni=class extends lt{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}};N([z({json:{write:!0}})],Ni.prototype,"adminTokenServiceUrl",void 0),N([z({json:{write:!0}})],Ni.prototype,"currentVersion",void 0),N([z({json:{write:!0}})],Ni.prototype,"hasPortal",void 0),N([z({json:{write:!0}})],Ni.prototype,"hasServer",void 0),N([z({json:{write:!0}})],Ni.prototype,"owningSystemUrl",void 0),N([z({json:{write:!0}})],Ni.prototype,"owningTenant",void 0),N([z({json:{write:!0}})],Ni.prototype,"server",void 0),N([z({json:{write:!0}})],Ni.prototype,"shortLivedTokenValidity",void 0),N([z({json:{write:!0}})],Ni.prototype,"tokenServiceUrl",void 0),N([z({json:{write:!0}})],Ni.prototype,"webTierAuth",void 0),Ni=N([Ie("esri.identity.ServerInfo")],Ni);vb=Ni});var _b,$k,Yx,Sb,xb,zg,tr,Fk=V(()=>{pt();yc();jw();Xw();An();Hw();qh();or();ds();ko();Ic();mt();et();tt();ut();Ok();Nk();Rk();Dk();Dw();_b={},$k=e=>{let t=new kn(e.owningSystemUrl).host,r=new kn(e.server).host,n=/.+\.arcgis\.com$/i;return n.test(t)&&n.test(r)},Yx=(e,t)=>!!($k(e)&&t&&t.some(r=>r.test(e.server))),Sb=null,xb=null;try{Sb=window.localStorage,xb=window.sessionStorage}catch{}zg=class extends xu{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=window.origin!=="null"?window.origin:window.location.origin,this._appUrlObj=Tc(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._getPlatformSelfError=null,this._getOAuthLocationParams(),window.addEventListener("pageshow",t=>{this._pageShowHandler(t)})}registerServers(t){let r=this.serverInfos;r?(t=t.filter(n=>!this.findServerInfo(n.server)),this.serverInfos=r.concat(t)):this.serverInfos=t,t.forEach(n=>{n.owningSystemUrl&&this._portals.push(n.owningSystemUrl),n.hasPortal&&this._portals.push(n.server)})}registerOAuthInfos(t){let r=this.oAuthInfos;if(r){for(let n of t){let i=this.findOAuthInfo(n.portalUrl);i&&r.splice(r.indexOf(i),1)}this.oAuthInfos=r.concat(t)}else this.oAuthInfos=t}registerToken(t){t={...t};let r=this._sanitizeUrl(t.server),n=this._isServerRsrc(r),i,o=this.findServerInfo(r),s=!0;o||(o=new vb,o.server=this._getServerInstanceRoot(r),n?o.hasServer=!0:(o.tokenServiceUrl=this._getTokenSvcUrl(r),o.hasPortal=!0),this.registerServers([o])),i=this._findCredential(r),i?(delete t.server,Object.assign(i,t),s=!1):(i=new tr({userId:t.userId,server:o.server??void 0,token:t.token,expires:t.expires,ssl:t.ssl,scope:n?"server":"portal"}),i.resources=[r],this.credentials.push(i)),i.emitTokenChange(!1),s||i.refreshServerTokens()}toJSON(){return v0({serverInfos:this.serverInfos.map(t=>t.toJSON()),oAuthInfos:this.oAuthInfos.map(t=>t.toJSON()),credentials:this.credentials.map(t=>t.toJSON())})}initialize(t){if(!t)return;typeof t=="string"&&(t=JSON.parse(t));let r=t.serverInfos,n=t.oAuthInfos,i=t.credentials;if(r){let o=[];r.forEach(s=>{s.server&&s.tokenServiceUrl&&o.push(s.declaredClass?s:new vb(s))}),o.length&&this.registerServers(o)}if(n){let o=[];n.forEach(s=>{s.appId&&o.push(s.declaredClass?s:new Zx(s))}),o.length&&this.registerOAuthInfos(o)}i&&i.forEach(o=>{o.server&&o.token&&o.expires&&o.expires>Date.now()&&((o=o.declaredClass?o:new tr(o)).emitTokenChange(),this.credentials.push(o))})}findServerInfo(t){let r;t=this._sanitizeUrl(t);for(let n of this.serverInfos)if(this._hasSameServerInstance(n.server,t)){r=n;break}return r}findOAuthInfo(t){let r;t=this._sanitizeUrl(t);for(let n of this.oAuthInfos)if(this._hasSameServerInstance(n.portalUrl,t)){r=n;break}return r}findCredential(t,r){if(!t)return;let n;t=this._sanitizeUrl(t);let i=this._isServerRsrc(t)?"server":"portal";if(r){for(let o of this.credentials)if(this._hasSameServerInstance(o.server,t)&&r===o.userId&&o.scope===i){n=o;break}}else for(let o of this.credentials)if(this._hasSameServerInstance(o.server,t)&&this._getIdenticalSvcIdx(t,o)!==-1&&o.scope===i){n=o;break}return n}getCredential(t,r){let n,i,o=!0;r&&(n=!!r.token,i=r.error,o=r.prompt!==!1),r={...r},t=this._sanitizeUrl(t);let s=new AbortController,c=ci();if(r.signal&&Ci(r.signal,()=>{s.abort()}),Ci(s,()=>{c.reject(new We("identity-manager:user-aborted","ABORTED"))}),Ks(s))return c.promise;r.signal=s.signal;let a=this._isAdminResource(t),d=n?this.findCredential(t):null,h;if(d&&i&&i.details&&i.details.httpStatus===498)d.destroy();else if(d)return h=new We("identity-manager:not-authorized","You are currently signed in as: '"+d.userId+"'. You do not have access to this resource: "+t,{error:i}),c.reject(h),c.promise;let g=this._findCredential(t,r);if(g)return c.resolve(g),c.promise;let v=this.findServerInfo(t);if(v)!v.hasPortal&&v.server&&v.owningSystemUrl&&this._hasSameServerInstance(v.server,v.owningSystemUrl)&&(v.hasPortal=!0),!v.hasServer&&this._isServerRsrc(t)&&(v._restInfoPms=this._getTokenSvcUrl(t),v.hasServer=!0);else{let S=this._getTokenSvcUrl(t);if(!S)return h=new We("identity-manager:unknown-resource","Unknown resource - could not find token service endpoint."),c.reject(h),c.promise;v=new vb,v.server=this._getServerInstanceRoot(t),typeof S=="string"?(v.tokenServiceUrl=S,v.hasPortal=!0):(v._restInfoPms=S,v.hasServer=!0),this.registerServers([v])}return v.hasPortal&&v._selfReq===void 0&&(o||Jn(v.tokenServiceUrl,this._appOrigin)||this._gwDomains.some(S=>S.tokenServiceUrl===v.tokenServiceUrl))&&(v._selfReq={owningTenant:r?.owningTenant,selfDfd:this._getPortalSelf(v.tokenServiceUrl.replace(this._rePortalTokenSvc,"/sharing/rest/portals/self"),t)}),this._enqueue(t,v,r,c,a)}getResourceName(t){return this._isRESTService(t)?t.replace(this._regexSDirUrl,"").replace(this._regexServerType,"")||"":this._gwUser.test(t)&&t.replace(this._gwUser,"$1")||this._gwItem.test(t)&&t.replace(this._gwItem,"$1")||this._gwGroup.test(t)&&t.replace(this._gwGroup,"$1")||""}generateToken(t,r,n){let i=this._rePortalTokenSvc.test(t.tokenServiceUrl),o=new kn(this._appOrigin),s=t.shortLivedTokenValidity,c,a,d,h,g,v,S,M;r&&(M=this.tokenValidity||s||this._defaultTokenValidity,M>s&&s>0&&(M=s)),n&&(c=n.isAdmin,a=n.serverUrl,d=n.token,v=n.signal,S=n.ssl,t.customParameters=n.customParameters),c?h=t.adminTokenServiceUrl:(h=t.tokenServiceUrl,g=new kn(h.toLowerCase()),t.webTierAuth&&n?.serverUrl&&!S&&o.scheme==="http"&&(Jn(o.uri,h,!0)||g.scheme==="https"&&o.host===g.host&&o.port==="7080"&&g.port==="7443")&&(h=h.replace(/^https:/i,"http:").replace(/:7443/i,":7080")));let I={query:{request:"getToken",username:r?.username,password:r?.password,serverUrl:a,token:d,expiration:M,referer:c||i?this._appOrigin:null,client:c?"referer":null,f:"json",...t.customParameters},method:"post",authMode:"anonymous",useProxy:this._useProxy(t,n),signal:v,...n?.ioArgs};return i||(I.withCredentials=!1),cr(h,I).then(R=>{let B=R.data;if(!B?.token)return new We("identity-manager:authentication-failed","Unable to generate token");let F=t.server;return _b[F]||(_b[F]={}),r&&(_b[F][r.username]=r.password),B.validity=M,B})}isBusy(){return!!this._busy}async checkSignInStatus(t){return(await this.checkAppAccess(t,"")).credential}checkAppAccess(t,r,n){let i=!1;return this.getCredential(t,{prompt:!1}).then(o=>{let s,c={f:"json"};if(o.scope==="portal")if(r&&(this._doPortalSignIn(t)||n?.force))s=o.server+"/sharing/rest/oauth2/validateAppAccess",c.client_id=r;else{if(!o.token)return{credential:o};s=o.server+"/sharing/rest"}else{if(!o.token)return{credential:o};s=o.server+"/rest/services"}return o.token&&(c.token=o.token),cr(s,{query:c,authMode:"anonymous"}).then(a=>{if(a.data.valid===!1)throw new We("identity-manager:not-authorized",`You are currently signed in as: '${o.userId}'.`,a.data);return i=!!a.data.viewOnlyUserTypeApp,{credential:o}}).catch(a=>{if(a.name==="identity-manager:not-authorized")throw a;let d=a.details?.httpStatus;if(d===498)throw o.destroy(),new We("identity-manager:not-authenticated","User is not signed in.");if(d===400)throw new We("identity-manager:invalid-request");return{credential:o}})}).then(o=>({credential:o.credential,viewOnly:i}))}setOAuthResponseHash(t){t&&(t.charAt(0)==="#"&&(t=t.slice(1)),this._processOAuthPopupParams(Ec(t)))}setOAuthRedirectionHandler(t){this._oAuthRedirectFunc=t}setProtocolErrorHandler(t){this._protocolFunc=t}signIn(t,r,n={}){let i=ci(),o=()=>{a?.remove(),d?.remove(),this.dialog?.destroy(),this.dialog=a=d=null},s=()=>{o(),this._oAuthDfd=null,i.reject(new We("identity-manager:user-aborted","ABORTED"))};n.signal&&Ci(n.signal,()=>{s()});let c=new jx({open:!0,resource:this.getResourceName(t),server:r.server});this.dialog=c,this.emit("dialog-create");let a=c.on("cancel",s),d=c.on("submit",h=>{this.generateToken(r,h,{isAdmin:n.isAdmin,signal:n.signal}).then(g=>{o();let v=new tr({userId:h.username,server:r.server??void 0,token:g.token,expires:g.expires!=null?Number(g.expires):null,ssl:!!g.ssl,isAdmin:n.isAdmin,validity:g.validity});i.resolve(v)}).catch(g=>{c.error=g,c.signingIn=!1})});return i.promise}oAuthSignIn(t,r,n,i){this._oAuthDfd=ci();let o=this._oAuthDfd,s;i?.signal&&Ci(i.signal,()=>{let v=this._oAuthDfd&&this._oAuthDfd.oAuthWin_;v&&!v.closed?v.close():this.dialog&&h()}),o.resUrl_=t,o.sinfo_=r,o.oinfo_=n;let c=n._oAuthCred;if(c.storage&&(n.flowType==="authorization-code"||n.flowType==="auto"&&r.currentVersion>=8.4)){let v=crypto.getRandomValues(new Uint8Array(32));s=Bw(v),c.codeVerifier=s,v=crypto.getRandomValues(new Uint8Array(32)),c.stateUID=Bw(v),c.save()||(c.codeVerifier=s=null)}else c.codeVerifier=null;let a,d;this._getCodeChallenge(s).then(v=>{let S=!i||i.oAuthPopupConfirmation!==!1;if(!n.popup||!S)return void this._doOAuthSignIn(t,r,n,v);let M=new jx({oAuthPrompt:!0,server:r.server,open:!0});this.dialog=M,this.emit("dialog-create"),a=M.on("cancel",h),d=M.on("submit",()=>{g(),this._doOAuthSignIn(t,r,n,v)})});let h=()=>{g(),this._oAuthDfd=null,o.reject(new We("identity-manager:user-aborted","ABORTED"))},g=()=>{a?.remove(),d?.remove(),this.dialog?.destroy(),this.dialog=null};return o.promise}destroyCredentials(){this.credentials&&this.credentials.slice().forEach(t=>{t.destroy()}),this.emit("credentials-destroy")}enablePostMessageAuth(t="https://www.arcgis.com/sharing/rest"){this._postMessageAuthHandle&&this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=Sc(window,"message",r=>{if((r.origin===this._appOrigin||r.origin.endsWith(".arcgis.com"))&&r.data?.type==="arcgis:auth:requestCredential"){let n=r.source;this.getCredential(t).then(i=>{n.postMessage({type:"arcgis:auth:credential",credential:{expires:i.expires,server:i.server,ssl:i.ssl,token:i.token,userId:i.userId}},r.origin)}).catch(i=>{n.postMessage({type:"arcgis:auth:error",error:{name:i.name,message:i.message}},r.origin)})}})}disablePostMessageAuth(){this._postMessageAuthHandle&&(this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=null)}_getOAuthLocationParams(){let t=window.location.hash;if(t){t.charAt(0)==="#"&&(t=t.slice(1));let n=Ec(t),i=!1;if(n.access_token&&n.expires_in&&n.state&&n.hasOwnProperty("username"))try{n.state=JSON.parse(n.state),n.state.portalUrl&&(this._oAuthLocationParams=n,i=!0)}catch{}else if(n.error&&n.error_description&&(console.log("IdentityManager OAuth Error: ",n.error," - ",n.error_description),n.error==="access_denied"&&(i=!0,n.state)))try{n.state=JSON.parse(n.state)}catch{}i&&(window.location.hash=n.state?.hash||"")}let r=window.location.search;if(r){r.charAt(0)==="?"&&(r=r.slice(1));let n=Ec(r),i=!1;if(n.code&&n.state)try{n.state=JSON.parse(n.state),n.state.portalUrl&&n.state.uid&&(this._oAuthLocationParams=n,i=!0)}catch{}else if(n.error&&n.error_description&&(console.log("IdentityManager OAuth Error: ",n.error," - ",n.error_description),n.error==="access_denied"&&(i=!0,n.state)))try{n.state=JSON.parse(n.state)}catch{}if(i){let o={...n};["code","error","error_description","message_code","persist","state"].forEach(a=>{delete o[a]});let s=Su(o),c=window.location.pathname+(s?`?${s}`:"")+(n.state?.hash||"");window.history.replaceState(window.history.state,"",c)}}}_getOAuthToken(t,r,n,i,o){return t=t.replace(/^http:/i,"https:"),cr(`${t}/sharing/rest/oauth2/token`,{authMode:"anonymous",method:"post",query:i&&o?{grant_type:"authorization_code",code:r,redirect_uri:i,client_id:n,code_verifier:o}:{grant_type:"refresh_token",refresh_token:r,client_id:n}}).then(s=>s.data)}async _getCodeChallenge(t){if(t&&globalThis.isSecureContext){let r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r);return Bw(new Uint8Array(n))}return null}_pageShowHandler(t){if(t.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow){let r=new We("identity-manager:user-aborted","ABORTED");this._errbackFunc(r)}}_findCredential(t,r){let n,i,o,s,c=-1,a=r?.token,d=r?.resource,h=this._isServerRsrc(t)?"server":"portal",g=this.credentials.filter(v=>this._hasSameServerInstance(v.server,t)&&v.scope===h);if(t=d||t,g.length)if(g.length===1){if(n=g[0],o=this.findServerInfo(n.server),i=o?.owningSystemUrl,s=i?this.findCredential(i,n.userId):void 0,c=this._getIdenticalSvcIdx(t,n),!a)return c===-1&&n.resources.push(t),this._addResource(t,s),n;c!==-1&&(n.resources.splice(c,1),this._removeResource(t,s))}else{let v,S;if(g.some(M=>(S=this._getIdenticalSvcIdx(t,M),S!==-1&&(v=M,o=this.findServerInfo(v.server),i=o?.owningSystemUrl,s=i?this.findCredential(i,v.userId):void 0,c=S,!0))),a)v&&(v.resources.splice(c,1),this._removeResource(t,s));else if(v)return this._addResource(t,s),v}}_findOAuthInfo(t){let r=this.findOAuthInfo(t);if(!r){for(let n of this.oAuthInfos)if(this._isIdProvider(n.portalUrl,t)){r=n;break}}return r}_addResource(t,r){r&&this._getIdenticalSvcIdx(t,r)===-1&&r.resources.push(t)}_removeResource(t,r){let n=-1;r&&(n=this._getIdenticalSvcIdx(t,r),n>-1&&r.resources.splice(n,1))}_useProxy(t,r){return r?.isAdmin&&!Jn(t.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(t.tokenServiceUrl)&&String(t.currentVersion)==="10.1"&&!Jn(t.tokenServiceUrl,this._appOrigin)}_getOrigin(t){let r=new kn(t);return r.scheme+"://"+r.host+(r.port!=null?":"+r.port:"")}_getServerInstanceRoot(t){let r=t.toLowerCase(),n=r.indexOf(this._agsRest);return n===-1&&this._isAdminResource(t)&&(n=this._agsAdmin.test(t)?t.replace(this._agsAdmin,"$1").length:t.search(this._adminSvcs)),n!==-1||Rw(r)||(n=r.indexOf("/sharing")),n===-1&&r.endsWith("/")&&(n=r.length-1),n>-1?t.slice(0,n):t}_hasSameServerInstance(t,r){return t.endsWith("/")&&(t=t.slice(0,-1)),t=t.toLowerCase(),r=this._getServerInstanceRoot(r).toLowerCase(),t=RS(t),r=RS(r),(t=t.slice(Math.max(0,t.indexOf(":"))))===(r=r.slice(Math.max(0,r.indexOf(":"))))}_sanitizeUrl(t){let r=(Tt.request.proxyUrl||"").toLowerCase(),n=r?t.toLowerCase().indexOf(r+"?"):-1;return n!==-1&&(t=t.slice(n+r.length+1)),t=Vw(t),Tc(t).path}_isRESTService(t){return t.includes(this._agsRest)}_isAdminResource(t){return this._agsAdmin.test(t)||this._adminSvcs.test(t)}_isServerRsrc(t){return this._isRESTService(t)||this._isAdminResource(t)}_isIdenticalService(t,r){let n=!1;if(this._isRESTService(t)&&this._isRESTService(r)){let i=this._getSuffix(t).toLowerCase(),o=this._getSuffix(r).toLowerCase();if(n=i===o,!n){let s=/(.*)\/(MapServer|FeatureServer|UtilityNetworkServer).*/gi;n=i.replaceAll(s,"$1")===o.replaceAll(s,"$1")}}else this._isAdminResource(t)&&this._isAdminResource(r)?n=!0:this._isServerRsrc(t)||this._isServerRsrc(r)||!this._isPortalDomain(t)||(n=!0);return n}_isPortalDomain(t){let r=new kn(t.toLowerCase()),n=this._portalConfig,i=this._gwDomains.some(o=>o.regex.test(r.uri));return!i&&n&&(i=this._hasSameServerInstance(this._getServerInstanceRoot(n.restBaseUrl),r.uri)),i||Tt.portalUrl&&(i=Jn(r,Tt.portalUrl,!0)),i||(i=this._portals.some(o=>this._hasSameServerInstance(o,r.uri))),i=i||this._agsPortal.test(r.path),i}_isIdProvider(t,r){let n=-1,i=-1;this._gwDomains.forEach((s,c)=>{n===-1&&s.regex.test(t)&&(n=c),i===-1&&s.regex.test(r)&&(i=c)});let o=!1;if(n>-1&&i>-1&&(n===0||n===4?i!==0&&i!==4||(o=!0):n===1?i!==1&&i!==2||(o=!0):n===2?i===2&&(o=!0):n===3&&i===3&&(o=!0)),!o){let s=this.findServerInfo(r),c=s?.owningSystemUrl;c&&$k(s)&&this._isPortalDomain(c)&&this._isIdProvider(t,c)&&(o=!0)}return o}_getIdenticalSvcIdx(t,r){let n=-1;for(let i=0;i<r.resources.length;i++){let o=r.resources[i];if(this._isIdenticalService(t,o)){n=i;break}}return n}_getSuffix(t){return t.replace(this._regexSDirUrl,"").replace(this._regexServerType,"$1")}_getTokenSvcUrl(t){let r,n,i;if(this._isRESTService(t)||this._isAdminResource(t)){let o=this._getServerInstanceRoot(t);return r=o+"/admin/generateToken",n=cr(t=o+"/rest/info",{query:{f:"json"}}).then(s=>s.data),{adminUrl:r,promise:n}}if(this._isPortalDomain(t)){let o="";if(this._gwDomains.some(s=>(s.regex.test(t)&&(o=s.tokenServiceUrl),!!o)),o||this._portals.some(s=>(this._hasSameServerInstance(s,t)&&(o=s+this._gwTokenUrl),!!o)),o||(i=t.toLowerCase().indexOf("/sharing"),i!==-1&&(o=t.slice(0,i)+this._gwTokenUrl)),o||(o=this._getOrigin(t)+this._gwTokenUrl),o){let s=new kn(t).port;/^http:\/\//i.test(t)&&s==="7080"&&(o=o.replace(/:7080/i,":7443")),o=o.replace(/http:/i,"https:")}return o}}_processOAuthResponseParams(t,r,n){let i=r._oAuthCred;if(t.code){let s=i.codeVerifier;return i.codeVerifier=null,i.stateUID=null,i.save(),this._getOAuthToken(n.server,t.code,r.appId,this._getRedirectURI(r,!0),s).then(c=>{let a=new tr({userId:c.username,server:n.server??void 0,token:c.access_token,expires:Date.now()+1e3*c.expires_in,ssl:c.ssl,oAuthState:t.state,_oAuthCred:i});return r.userId=a.userId,i.storage=c.persist?Sb:xb,i.refreshToken=c.refresh_token,i.token=null,i.expires=c.refresh_token_expires_in?Date.now()+1e3*c.refresh_token_expires_in:null,i.userId=a.userId,i.ssl=a.ssl,i.save(),a})}let o=new tr({userId:t.username,server:n.server??void 0,token:t.access_token,expires:Date.now()+1e3*Number(t.expires_in),ssl:t.ssl==="true",oAuthState:t.state,_oAuthCred:i});return r.userId=o.userId,i.storage=t.persist?Sb:xb,i.refreshToken=null,i.token=o.token,i.expires=o.expires,i.userId=o.userId,i.ssl=o.ssl,i.save(),Promise.resolve(o)}_processOAuthPopupParams(t){let r=this._oAuthDfd;if(this._oAuthDfd=null,r)if(clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle?.remove(),t.error){let n=t.error==="access_denied",i=new We(n?"identity-manager:user-aborted":"identity-manager:authentication-failed",n?"ABORTED":"OAuth: "+t.error+" - "+t.error_description);r.reject(i)}else this._processOAuthResponseParams(t,r.oinfo_,r.sinfo_).then(n=>{r.resolve(n)}).catch(n=>{r.reject(n)})}_setOAuthResponseQueryString(t){t&&(t.charAt(0)==="?"&&(t=t.slice(1)),this._processOAuthPopupParams(Ec(t)))}async _exchangeToken(t,r,n){return(await cr(`${t}/sharing/rest/oauth2/exchangeToken`,{authMode:"anonymous",method:"post",query:{f:"json",client_id:r,token:n}})).data.token}async _getPlatformSelf(t,r){if(this._getPlatformSelfError&&Date.now()-this._getPlatformSelfError[1]<1e3)throw this._getPlatformSelfError[0];t=t.replace(/^http:/i,"https:");try{let n=await cr(`${t}/sharing/rest/oauth2/platformSelf`,{authMode:"anonymous",headers:{"X-Esri-Auth-Client-Id":r,"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/,"")},method:"post",query:{f:"json",expiration:30},withCredentials:!0});return this._getPlatformSelfError=null,n.data}catch(n){throw n.details?.messageCode==="OAUTH_0066"&&(this._getPlatformSelfError=[n,Date.now()]),n}}_getPortalSelf(t,r){let n;return this._gwDomains.some(i=>(i.regex.test(t)&&(n=i.customBaseUrl),!!n)),n?Promise.resolve({allSSL:!0,currentVersion:"8.4",customBaseUrl:n,portalMode:"multitenant",supportsOAuth:!0}):(this._appOrigin.startsWith("https:")?t=t.replace(/^http:/i,"https:").replace(/:7080/i,":7443"):/^http:/i.test(r)&&(t=t.replace(/^https:/i,"http:").replace(/:7443/i,":7080")),cr(t,{query:{f:"json"},authMode:"anonymous",withCredentials:!0}).then(i=>i.data))}_doPortalSignIn(t){let r=this._portalConfig,n=window.location.href,i=this.findServerInfo(t);return!(!r&&!this._isPortalDomain(n)||!(i?i.hasPortal||i.owningSystemUrl&&this._isPortalDomain(i.owningSystemUrl):this._isPortalDomain(t))||!(this._isIdProvider(n,t)||r&&(this._hasSameServerInstance(this._getServerInstanceRoot(r.restBaseUrl),t)||this._isIdProvider(r.restBaseUrl,t))||Jn(n,t,!0)))}_checkProtocol(t,r,n,i){let o=!0,s=i?r.adminTokenServiceUrl:r.tokenServiceUrl;return s.trim().toLowerCase().startsWith("https:")&&!this._appOrigin.startsWith("https:")&&Sp(s)&&(o=!!this._protocolFunc&&!!this._protocolFunc({resourceUrl:t,serverInfo:r}),!o)&&n(new We("identity-manager:aborted","Aborted the Sign-In process to avoid sending password over insecure connection.")),o}_enqueue(t,r,n,i,o,s){return i||(i=ci()),i.resUrl_=t,i.sinfo_=r,i.options_=n,i.admin_=o,i.refresh_=s,this._busy?this._hasSameServerInstance(this._getServerInstanceRoot(t),this._busy.resUrl_)?(this._oAuthDfd&&this._oAuthDfd.oAuthWin_&&this._oAuthDfd.oAuthWin_.focus(),this._soReqs.push(i)):this._xoReqs.push(i):this._doSignIn(i),i.promise}_doSignIn(t){this._busy=t,this._rejectOnPersistedPageShow=!1;let r=d=>{let h=t.options_?.resource,g=t.resUrl_,v=t.refresh_,S=!1;this.credentials.includes(d)||(v&&this.credentials.includes(v)?(v.userId=d.userId,v.token=d.token,v.expires=d.expires,v.validity=d.validity,v.ssl=d.ssl,v.creationTime=d.creationTime,S=!0,d=v):this.credentials.push(d)),d.resources||(d.resources=[]),d.resources.includes(h||g)||d.resources.push(h||g),d.scope=this._isServerRsrc(g)?"server":"portal",d.emitTokenChange();let M=this._soReqs,I={};this._soReqs=[],M.forEach(R=>{if(!this._isIdenticalService(g,R.resUrl_)){let B=this._getSuffix(R.resUrl_);I[B]||(I[B]=!0,d.resources.push(R.resUrl_))}}),t.resolve(d),M.forEach(R=>{this._hasSameServerInstance(this._getServerInstanceRoot(g),R.resUrl_)?R.resolve(d):this._soReqs.push(R)}),this._busy=t.resUrl_=t.sinfo_=t.refresh_=null,S||this.emit("credential-create",{credential:d}),this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},n=d=>{t.reject(d),this._busy=t.resUrl_=t.sinfo_=t.refresh_=null,this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},i=(d,h,g,v)=>{let S=t.sinfo_,M=!t.options_||t.options_.prompt!==!1,I=S.hasPortal&&this._findOAuthInfo(t.resUrl_),R,B;if(d)r(new tr({userId:d,server:S.server??void 0,token:g??void 0,expires:v!=null?Number(v):null,ssl:!!h}));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"]),t.resUrl_)){window.parent.postMessage({type:"arcgis:auth:requestCredential"},this._appUrlObj.query["arcgis-auth-origin"]);let F=Sc(window,"message",G=>{G.source===window.parent&&G.data&&(G.data.type==="arcgis:auth:credential"?(F.remove(),G.data.credential.expires<Date.now()?n(new We("identity-manager:credential-request-failed","Parent application's token has expired.")):r(new tr(G.data.credential))):G.data.type==="arcgis:auth:error"&&(F.remove(),G.data.error.name==="tokenExpiredError"?n(new We("identity-manager:credential-request-failed","Parent application's token has expired.")):n(We.fromJSON(G.data.error))))});Ci(t.options_?.signal,()=>{F.remove()})}else if(I){let F=I._oAuthCred;if(!F){let G=new Kp(I,Sb),J=new Kp(I,xb);G.isValid()&&J.isValid()?G.expires>J.expires?(F=G,J.destroy()):(F=J,G.destroy()):F=G.isValid()?G:J,I._oAuthCred=F}if(F.isValid()){R=new tr({userId:F.userId??void 0,server:S.server??void 0,token:F.token??void 0,expires:F.expires,ssl:F.ssl??void 0,_oAuthCred:F});let G=I.appId!==F.appId&&this._doPortalSignIn(t.resUrl_);G||F.refreshToken?(t._pendingDfd=F.refreshToken?this._getOAuthToken(S.server,F.refreshToken,F.appId).then(J=>(R.expires=Date.now()+1e3*J.expires_in,R.token=J.access_token,R)):Promise.resolve(R),t._pendingDfd.then(J=>G?this._exchangeToken(J.server,I.appId,J.token).then(re=>(J.token=re,J)).catch(()=>J):J).then(J=>{r(J)}).catch(J=>{let re=J.details?.httpStatus;re>0&&re!==404?(F.destroy(),i()):n(J)})):r(R)}else if(this._oAuthLocationParams&&this._hasSameServerInstance(I.portalUrl,this._oAuthLocationParams.state.portalUrl)&&(this._oAuthLocationParams.access_token||this._oAuthLocationParams.code&&this._oAuthLocationParams.state.uid===F.stateUID&&F.codeVerifier)){let G=this._oAuthLocationParams;this._oAuthLocationParams=null,t._pendingDfd=this._processOAuthResponseParams(G,I,S).then(J=>{r(J)}).catch(n)}else{let G=()=>{M?t._pendingDfd=this.oAuthSignIn(t.resUrl_,S,I,t.options_).then(r,n):(B=new We("identity-manager:not-authenticated","User is not signed in."),n(B))};this._doPortalSignIn(t.resUrl_)?t._pendingDfd=this._getPlatformSelf(S.server,I.appId).then(J=>{Jn(J.portalUrl,this._appOrigin,!0)?(R=new tr({userId:J.username,server:S.server??void 0,expires:Date.now()+1e3*J.expires_in,token:J.token}),r(R)):G()}).catch(G):G()}}else if(M){if(this._checkProtocol(t.resUrl_,S,n,t.admin_)){let F=t.options_;t.admin_&&(F=F||{},F.isAdmin=!0),t._pendingDfd=this.signIn(t.resUrl_,S,F).then(r,n)}}else B=new We("identity-manager:not-authenticated","User is not signed in."),n(B)},o=()=>{let d=t.sinfo_,h=d.owningSystemUrl,g=t.options_,v,S,M,I;if(g&&(v=g.token,S=g.error,M=g.prompt),I=this._findCredential(h,{token:v,resource:t.resUrl_}),!I){for(let R of this.credentials)if(this._isIdProvider(h,R.server)){I=R;break}}if(I){let R=this.findCredential(t.resUrl_,I.userId);if(R)r(R);else if(Yx(d,this._legacyFed)){let B=I.toJSON();B.server=d.server,B.resources=null,r(new tr(B))}else(t._pendingDfd=this.generateToken(this.findServerInfo(I.server),null,{serverUrl:t.resUrl_,token:I.token,signal:t.options_.signal,ssl:I.ssl})).then(B=>{r(new tr({userId:I?.userId,server:d.server??void 0,token:B.token,expires:B.expires!=null?Number(B.expires):null,ssl:!!B.ssl,isAdmin:t.admin_,validity:B.validity}))},n)}else this._busy=null,v&&(t.options_.token=null),(t._pendingDfd=this.getCredential(h.replace(/\/?$/,"/sharing"),{resource:t.resUrl_,owningTenant:d.owningTenant,signal:t.options_.signal,token:v,error:S,prompt:M})).then(()=>{this._enqueue(t.resUrl_,t.sinfo_,t.options_,t,t.admin_)},R=>{t.resUrl_=t.sinfo_=t.refresh_=null,t.reject(R)})};this._errbackFunc=n;let s=t.sinfo_.owningSystemUrl,c=this._isServerRsrc(t.resUrl_),a=t.sinfo_._restInfoPms;a?a.promise.then(d=>{let h=t.sinfo_;if(h._restInfoPms){h.adminTokenServiceUrl=h._restInfoPms.adminUrl,h._restInfoPms=null,h.tokenServiceUrl=(Hi("authInfo.tokenServicesUrl",d)||Hi("authInfo.tokenServiceUrl",d)||Hi("tokenServiceUrl",d))??null,h.shortLivedTokenValidity=Hi("authInfo.shortLivedTokenValidity",d)??null,h.currentVersion=d.currentVersion,h.owningTenant=d.owningTenant;let g=h.owningSystemUrl=d.owningSystemUrl;g&&this._portals.push(g)}c&&h.owningSystemUrl?o():i()},()=>{t.sinfo_._restInfoPms=null;let d=new We("identity-manager:server-identification-failed","Unknown resource - could not find token service endpoint.");n(d)}):c&&s?o():t.sinfo_._selfReq?t.sinfo_._selfReq.selfDfd.then(d=>{let h={},g,v,S,M;return d&&(g=d.user?.username,h.username=g,h.allSSL=d.allSSL,v=d.supportsOAuth,M=parseFloat(d.currentVersion),d.portalMode==="multitenant"&&(S=d.customBaseUrl),t.sinfo_.currentVersion=M),t.sinfo_.webTierAuth=!!g,g&&this.normalizeWebTierAuth?this.generateToken(t.sinfo_,null,{ssl:h.allSSL}).catch(()=>null).then(I=>(h.portalToken=I?.token,h.tokenExpiration=I?.expires,h)):!g&&v&&M>=4.4&&!this._findOAuthInfo(t.resUrl_)?this._generateOAuthInfo({portalUrl:t.sinfo_.server,customBaseUrl:S,owningTenant:t.sinfo_._selfReq.owningTenant}).catch(()=>null).then(()=>h):h}).catch(()=>null).then(d=>{t.sinfo_._selfReq=null,d?i(d.username,d.allSSL,d.portalToken,d.tokenExpiration):i()}):i()}_generateOAuthInfo(t){let r,n=null,i=t.portalUrl,o=t.customBaseUrl,s=t.owningTenant,c=!this._defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal;if(c){n=window.location.href;let a=n.indexOf("?");a>-1&&(n=n.slice(0,a)),a=n.search(/\/(apps|home)\//),n=a>-1?n.slice(0,a):null}return c&&n?(this._hasTestedIfAppIsOnPortal=!0,r=cr(n+"/sharing/rest",{query:{f:"json"}}).then(()=>{this._defaultOAuthInfo=new Zx({appId:"arcgisonline",popupCallbackUrl:n+"/home/oauth-callback.html"})})):r=Promise.resolve(),r.then(()=>{if(this._defaultOAuthInfo)return i=i.replace(/^http:/i,"https:"),cr(i+"/sharing/rest/oauth2/validateRedirectUri",{query:{accountId:s,client_id:this._defaultOAuthInfo.appId,redirect_uri:Mc(this._defaultOAuthInfo.popupCallbackUrl),f:"json"}}).then(a=>{if(a.data.valid){let d=this._defaultOAuthInfo.clone();a.data.urlKey&&o?d.portalUrl="https://"+a.data.urlKey.toLowerCase()+"."+o:d.portalUrl=i,d.popup=window!==window.top||!(Jn(i,this._appOrigin)||this._gwDomains.some(h=>h.regex.test(i)&&h.regex.test(this._appOrigin))),this.oAuthInfos.push(d)}})})}_doOAuthSignIn(t,r,n,i){let o=n._oAuthCred,s={portalUrl:n.portalUrl};!n.popup&&n.preserveUrlHash&&window.location.hash&&(s.hash=window.location.hash),o.stateUID&&(s.uid=o.stateUID);let c={client_id:n.appId,response_type:o.codeVerifier?"code":"token",state:JSON.stringify(s),expiration:n.expiration,locale:n.locale,redirect_uri:this._getRedirectURI(n,!!o.codeVerifier)};n.forceLogin&&(c.force_login=!0),n.forceUserId&&n.userId&&(c.prepopulatedusername=n.userId),!n.popup&&this._doPortalSignIn(t)&&(c.redirectToUserOrgUrl=!0),o.codeVerifier&&(c.code_challenge=i||o.codeVerifier,c.code_challenge_method=i?"S256":"plain");let a=n.portalUrl.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize",d=a+"?"+Su(c);if(n.popup){let h=window.open(d,"esriJSAPIOAuth",n.popupWindowFeatures);if(h)h.focus(),this._oAuthDfd.oAuthWin_=h,this._oAuthIntervalId=setInterval(()=>{if(h.closed){clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle.remove();let g=this._oAuthDfd;if(g){let v=new We("identity-manager:user-aborted","ABORTED");g.reject(v)}}},500),this._oAuthOnPopupHandle=Sc(window,["arcgis:auth:hash","arcgis:auth:location:search"],g=>{g.type==="arcgis:auth:hash"?this.setOAuthResponseHash(g.detail):this._setOAuthResponseQueryString(g.detail)});else{let g=new We("identity-manager:popup-blocked","ABORTED");this._oAuthDfd.reject(g)}}else this._rejectOnPersistedPageShow=!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:c,authorizeUrl:a,resourceUrl:t,serverInfo:r,oAuthInfo:n}):window.location.href=d}_getRedirectURI(t,r){let n=window.location.href.replace(/#.*$/,"");if(t.popup)return Mc(t.popupCallbackUrl);if(r){let i=Tc(n);return i.query&&["code","error","error_description","message_code","persist","state"].forEach(o=>{delete i.query[o]}),xp(i.path,i.query)}return n}};zg.prototype.declaredClass="esri.identity.IdentityManagerBase";tr=class extends xu.EventedAccessor{constructor(e){super(e),this._oAuthCred=null,this.tokenRefreshBuffer=2,e?._oAuthCred&&(this._oAuthCred=e._oAuthCred)}initialize(){this.resources=this.resources||[],this.creationTime==null&&(this.creationTime=Date.now())}refreshToken(){let e=Br,t=e.findServerInfo(this.server),r=t?.owningSystemUrl,n=!!r&&this.scope==="server",i=n&&Yx(t,e._legacyFed),o=t.webTierAuth,s=o&&e.normalizeWebTierAuth,c=_b[this.server],a=c?.[this.userId],d,h=this.resources&&this.resources[0],g=n?e.findServerInfo(r):null,v={username:this.userId,password:a};if(o&&!s)return;n&&!g&&e.serverInfos.some(M=>(e._isIdProvider(r,M.server)&&(g=M),!!g));let S=g?e.findCredential(g.server,this.userId):null;if(!n||S){if(!i){if(n)d={serverUrl:h,token:S?.token,ssl:S?.ssl};else if(s)v=null,d={ssl:this.ssl};else{if(!a){let M;return h&&(h=e._sanitizeUrl(h),this._enqueued=1,M=e._enqueue(h,t,null,null,this.isAdmin,this),M.then(()=>{this._enqueued=0,this.refreshServerTokens()}).catch(()=>{this._enqueued=0})),M}this.isAdmin&&(d={isAdmin:!0})}return e.generateToken(n?g:t,n?null:v,d).then(M=>{this.token=M.token,this.expires=M.expires!=null?Number(M.expires):null,this.creationTime=Date.now(),this.validity=M.validity,this.emitTokenChange(),this.refreshServerTokens()}).catch(()=>{})}S?.refreshToken()}}refreshServerTokens(){if(this.scope==="portal"){let e=Br;e.credentials.forEach(t=>{let r=e.findServerInfo(t.server),n=r?.owningSystemUrl;t!==this&&t.userId===this.userId&&n&&t.scope==="server"&&(e._hasSameServerInstance(this.server,n)||e._isIdProvider(n,this.server))&&(Yx(r,e._legacyFed)?(t.token=this.token,t.expires=this.expires,t.creationTime=this.creationTime,t.validity=this.validity,t.emitTokenChange()):t.refreshToken())})}}emitTokenChange(e){clearTimeout(this._refreshTimer);let t=Br,r=this.server?t.findServerInfo(this.server):null,n=r?.owningSystemUrl,i=n?t.findServerInfo(n):null;e===!1||n&&this.scope!=="portal"&&(!i?.webTierAuth||t.normalizeWebTierAuth)||this.expires==null&&this.validity==null||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);let e=Br,t=e.credentials.indexOf(this);t>-1&&e.credentials.splice(t,1),this.emitTokenChange(),this.emit("destroy")}toJSON(){let e=v0({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);let e=6e4*this.tokenRefreshBuffer,t=2**31-1,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)}};N([z()],tr.prototype,"creationTime",void 0),N([z()],tr.prototype,"expires",void 0),N([z()],tr.prototype,"isAdmin",void 0),N([z()],tr.prototype,"oAuthState",void 0),N([z()],tr.prototype,"resources",void 0),N([z()],tr.prototype,"scope",void 0),N([z()],tr.prototype,"server",void 0),N([z()],tr.prototype,"ssl",void 0),N([z()],tr.prototype,"token",void 0),N([z()],tr.prototype,"tokenRefreshBuffer",void 0),N([z()],tr.prototype,"userId",void 0),N([z()],tr.prototype,"validity",void 0),tr=N([Ie("esri.identity.Credential")],tr)});var Vk={};os(Vk,{default:()=>Uk});var Cb,Uk,zk=V(()=>{jw();Fk();Cb=class extends zg{};Cb.prototype.declaredClass="esri.identity.IdentityManager";Uk=new Cb;sM(Uk)});async function cr(e,t){e instanceof URL&&(e=e.toString()),t?.query instanceof URLSearchParams&&(t.query=Ec(t.query.toString().replaceAll("+"," ")));let r=Ww(e),n=zw(e);n||r||(e=Vw(e));let i={url:e,requestOptions:{...t}},o=v=>({data:v,getAllHeaders:Qp,getHeader:Qp,httpStatus:200,requestOptions:i.requestOptions,url:i.url}),s=FS(e,ro.internalInterceptors);if(s){let v=await Bk(s,i);if(v!=null)return o(v)}let c=FS(e);if(c){let v=await Bk(c,i);if(v!=null)return o(v);c.after||c.error||(c=null)}if(e=i.url,(t=i.requestOptions).responseType==="image"&&(he("host-webworker")||he("host-node")))throw xs("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),i);if(t.method==="head"){if(t.body)throw xs("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),i);if(r||n)throw xs("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),i)}if(await dJ(),Tb)return Tb.execute(e,t);let a=new AbortController,d=Ci(t,()=>a.abort()),h={controller:a,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:c,params:i,redoRequest:!1,useIdentity:ro.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},g=await hJ(h).finally(()=>d?.remove());return c?.after?.(g),g}function uJ(e){let t=li(e);t&&!cr._corsServers.includes(t)&&cr._corsServers.push(t)}function Wk(e){let t=li(e);return!t||t.endsWith(".arcgis.com")||cr._corsServers.includes(t)||Uw(t)}function xs(e,t,r,n){let i="Error",o={url:r.url,requestOptions:r.requestOptions,getAllHeaders:Qp,getHeader:Qp,ssl:!1};if(t instanceof We)return t.details?(t.details=qe(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=o,t;if(t){let s=n&&(()=>Array.from(n.headers)),c=n&&(h=>n.headers.get(h)),a=n?.status,d=t.message;d&&(i=d),s&&c&&(o.getAllHeaders=s,o.getHeader=c),o.httpStatus=(t.httpCode!=null?t.httpCode:t.code)||a||0,o.subCode=t.subcode,o.messageCode=t.messageCode,typeof t.details=="string"?o.messages=[t.details]:o.messages=t.details,o.raw=Eb in t?t[Eb]:t}return Zh(t)?hs():new We(e,i,o)}async function dJ(){he("host-webworker")&&!Tb&&(Tb=await Promise.resolve().then(()=>(wM(),gM)))}async function Jx(){Br||await Promise.resolve().then(()=>(zk(),Vk))}async function fJ(e){let t=e.params.url,r=e.params.requestOptions,n=e.controller.signal,i=r.body,o=null,s=null;if(Hk&&"HTMLFormElement"in globalThis&&(i instanceof FormData?o=i:i instanceof HTMLFormElement&&(o=new FormData(i))),typeof i=="string"&&(s=i),e.fetchOptions={cache:r.cacheBust?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:r.method==="head"?"HEAD":"GET",mode:"cors",priority:ro.priority,redirect:"follow",signal:n},(o||s)&&(e.fetchOptions.body=o||s),r.authMode==="anonymous"&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||o?.get("token")),!e.hasToken&&aM(t)&&(r.query||(r.query={}),r.query.token=Tt.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!qk(t)&&!Ks(n)){let c;r.authMode==="immediate"?(await Jx(),c=await Br.getCredential(t,{signal:n}),e.credential=c):r.authMode==="no-prompt"?(await Jx(),c=await Br.getCredential(t,{prompt:!1,signal:n}).catch(()=>{}),e.credential=c):Br&&(c=Br.findCredential(t)),c&&(e.credentialToken=c.token,e.useSSL=!!c.ssl)}}function qk(e){return lJ.some(t=>t.test(e))}async function pJ(e){let t=e.params.url,r=e.params.requestOptions,n=e.fetchOptions??{},i=zw(t)||Ww(t),o=r.responseType||"json",s=i?0:r.timeout!=null?r.timeout:ro.timeout,c=!1;if(!i){e.useSSL&&(t=Gw(t));let v={...r.query};e.credentialToken&&(v.token=e.credentialToken);let S=Su(v);he("esri-url-encodes-apostrophe")&&(S=S.replaceAll("'","%27"));let M=t.length+1+S.length,I;c=r.method==="delete"||r.method==="post"||r.method==="put"||!!r.body||M>ro.maxUrlLength;let R=r.useProxy||!!Sp(t);if(R){let B=eM(t);I=B.path,!c&&I.length+1+M>ro.maxUrlLength&&(c=!0),B.query&&(v={...B.query,...v})}if(n.method==="HEAD"&&(c||R)){if(c)throw M>ro.maxUrlLength?xs("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params):xs("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params);if(R)throw xs("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}c?(n.method=r.method==="delete"?"DELETE":r.method==="put"?"PUT":"POST",r.body?t=xp(t,v):(n.body=Su(v),n.headers||(n.headers={}),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=xp(t,v),R&&(e.useProxy=!0,t=`${I}?${t}`),v.token&&Hk&&n.body instanceof FormData&&!Rw(t)&&n.body.set("token",v.token),r.hasOwnProperty("withCredentials")?e.withCredentials=r.withCredentials:Jn(t,Fw())||(Uw(t)||Br&&Br.findServerInfo(t)?.webTierAuth)&&(e.withCredentials=!0),e.withCredentials&&(n.credentials="include",pM(t)&&await mM(c?xp(t,v):t))}let a,d,h=0,g=!1;s>0&&(h=setTimeout(()=>{g=!0,e.controller.abort()},s));try{if(r.responseType==="native-request-init")d=n,d.url=t,r.signal?d.signal=r.signal:delete d.signal;else if(r.responseType!=="image"||n.cache!=="default"||n.method!=="GET"||c||mJ(r.headers)||!i&&!e.useProxy&&ro.proxyUrl&&!Wk(t)){if(cr._beforeFetch&&await cr._beforeFetch(t,n),a=await fetch(t,n),cr._afterFetch&&await cr._afterFetch(a),e.useProxy||uJ(t),r.responseType==="native")d=a;else if(n.method!=="HEAD")if(a.ok){switch(o){case"array-buffer":d=await a.arrayBuffer();break;case"blob":case"image":d=await a.blob();break;default:d=await a.text()}if(h&&(clearTimeout(h),h=0),o==="json"||o==="xml"||o==="document")if(d)switch(o){case"json":d=JSON.parse(d);break;case"xml":d=Gk(d,"application/xml");break;case"document":d=Gk(d,"text/html")}else d=null;if(d){if(o==="array-buffer"||o==="blob"){let v=a.headers.get("Content-Type");if(v&&/application\/json|text\/plain/i.test(v)&&d[o==="blob"?"size":"byteLength"]<=750)try{let S=await new Response(d).json();S.error&&(d=S)}catch{}}o==="image"&&d instanceof Blob&&(d=await jk(URL.createObjectURL(d),e,!0))}}else{d=await a.text();try{d=JSON.parse(d)}catch{}}}else d=await jk(t,e)}catch(v){if(v.name==="AbortError")throw g?dM():hs("Request canceled");if(!(!a&&v instanceof TypeError&&ro.proxyUrl)||r.body||r.method==="delete"||r.method==="head"||r.method==="post"||r.method==="put"||e.useProxy||Wk(t))throw v;e.redoRequest=!0,nM({proxyUrl:ro.proxyUrl,urlPrefix:li(t)??""})}finally{h&&clearTimeout(h)}return[a,d]}async function Bk(e,t){if(e.responseData!=null)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,n;try{n=await e.before(t)}catch(i){r=xs("request:interceptor",i,t)}if((n instanceof Error||n instanceof We)&&(r=xs("request:interceptor",n,t)),r)throw e.error&&e.error(r),r;return n}}function mJ(e){if(e){for(let t of Object.getOwnPropertyNames(e))if(e[t])return!0}return!1}function Gk(e,t){let r;try{r=new DOMParser().parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function hJ(e){let t,r;await fJ(e);try{do[t,r]=await pJ(e);while(!await gJ(e,t,r))}catch(o){let s=xs("request:server",o,e.params,t);throw s.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(s),s}let n=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(n)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!Uw(n)){let o=li(n,!0);o&&ro.trustedServers.push(o)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&fM(r.authorizedCrossOriginNoCorsDomains)}let i=e.credential;if(i&&Br){let s=Br.findServerInfo(i.server)?.owningSystemUrl;if(s){s=s.replace(/\/?$/,"/sharing");let c=Br.findCredential(s,i.userId);c&&Br._getIdenticalSvcIdx(s,c)===-1&&c.resources.unshift(s)}}return{data:r,getAllHeaders:t?()=>Array.from(t.headers):Qp,getHeader:t?o=>t.headers.get(o):Qp,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}async function gJ(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;let n=e.params.requestOptions;if(!t||n.responseType==="native"||n.responseType==="native-request-init")return!0;let i,o;if(r&&(r.error&&typeof r.error=="object"?i=r.error:r.status==="error"&&Array.isArray(r.messages)&&(i={...r},i[Eb]=r,i.details=r.messages)),!i&&!t.ok)throw i=new Error(`Unable to load ${t.url} status: ${t.status}`),i[Eb]=r,i;let s,c=null;i&&(o=Number(i.code),c=i.hasOwnProperty("subcode")?Number(i.subcode):null,s=i.messageCode,s=s?.toUpperCase());let a=n.authMode;if(o===403&&(c===4||i.message?.toLowerCase().includes("ssl")&&!i.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&(a!=="no-prompt"||o===498)&&o!==void 0&&aJ.has(o)&&!qk(e.params.url)&&(o!==403||(!s||!cJ.has(s))&&(c==null||c===2&&e.credentialToken))){await Jx();try{let d=await Br.getCredential(e.params.url,{error:xs("request:server",i,e.params),prompt:a!=="no-prompt",signal:e.controller.signal,token:e.credentialToken});return e.credential=d,e.credentialToken=d.token,e.useSSL=e.useSSL||d.ssl,!1}catch(d){if(a==="no-prompt")return e.credential=void 0,e.credentialToken=void 0,!1;i=d}}if(i)throw i;return!0}function jk(e,t,r=!1){let n=t.controller.signal,i=new Image;return t.withCredentials?i.crossOrigin="use-credentials":i.crossOrigin="anonymous",i.alt="",i.fetchPriority=ro.priority,i.src=e,uM(i,e,r,n)}var Tb,ro,Hk,aJ,cJ,lJ,Qp,Eb,Xw=V(()=>{yc();jw();An();et();or();ko();Ic();Dw();cM();hM();ro=Tt.request,Hk="FormData"in globalThis,aJ=new Set([499,498,403,401]),cJ=new Set(["COM_0056","COM_0057","SB_0008"]),lJ=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],Qp=()=>null,Eb=Symbol();cr._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],cr._beforeFetch=void 0,cr._afterFetch=void 0});function Ip(e){if(!Tt.assetsPath)throw ct.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new We("assets:path-not-set","config.assetsPath is not set");return US(Tt.assetsPath,e)}var Kw=V(()=>{yc();Xw();An();tt();Ic()});function Zk(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yk=V(()=>{});var Jk=u9(()=>{});var Xk=u9(()=>{});var eO={};os(eO,{p:()=>bJ});function wJ(){return Kk||(Kk=1,e=Qk,t=typeof document<"u"?document.currentScript?.src:void 0,typeof __filename<"u"&&(t=t||__filename),r=function(n={}){var i,o,s,c,a=n,d=new Promise((m,k)=>{i=m,o=k}),h=typeof window=="object",g=typeof WorkerGlobalScope<"u",v=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer",S=Object.assign({},a),M="./this.program",I="";function R(m){return a.locateFile?a.locateFile(m,I):I+m}if(v){var B=Jk(),F=Xk();I=__dirname+"/",c=m=>(m=so(m)?new URL(m):F.normalize(m),B.readFileSync(m)),s=(m,k=!0)=>(m=so(m)?new URL(m):F.normalize(m),new Promise((Y,ce)=>{B.readFile(m,k?void 0:"utf8",(pe,Te)=>{pe?ce(pe):Y(k?Te.buffer:Te)})})),!a.thisProgram&&process.argv.length>1&&(M=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2)}else(h||g)&&(g?I=self.location.href:typeof document<"u"&&document.currentScript&&(I=document.currentScript.src),t&&(I=t),I=I.startsWith("blob:")?"":I.substr(0,I.replace(/[?#].*/,"").lastIndexOf("/")+1),g&&(c=m=>{var k=new XMLHttpRequest;return k.open("GET",m,!1),k.responseType="arraybuffer",k.send(null),new Uint8Array(k.response)}),s=m=>so(m)?new Promise((k,Y)=>{var ce=new XMLHttpRequest;ce.open("GET",m,!0),ce.responseType="arraybuffer",ce.onload=()=>{ce.status==200||ce.status==0&&ce.response?k(ce.response):Y(ce.status)},ce.onerror=Y,ce.send(null)}):fetch(m,{credentials:"same-origin"}).then(k=>k.ok?k.arrayBuffer():Promise.reject(new Error(k.status+" : "+k.url))));var G,J,re=console.log.bind(console),de=console.error.bind(console);Object.assign(a,S),S=null;var W,me,Le,xe,ke,ge,K,H=!1;function se(m,k){m||xn(k)}function fe(){var m=J.buffer;a.HEAP8=W=new Int8Array(m),a.HEAP16=Le=new Int16Array(m),a.HEAPU8=me=new Uint8Array(m),a.HEAPU16=new Uint16Array(m),a.HEAP32=xe=new Int32Array(m),a.HEAPU32=ke=new Uint32Array(m),a.HEAPF32=ge=new Float32Array(m),a.HEAPF64=K=new Float64Array(m)}var we=[],Ee=[],Ne=[];function Xe(){Jo(we)}function rt(){Jo(Ee)}function mr(){Jo(Ne)}function Yr(m){Ee.unshift(m)}var Gt=0,br=null;function Gn(m){Gt++}function $i(m){if(--Gt==0&&br){var k=br;br=null,k()}}function xn(m){de(m="Aborted("+m+")"),H=!0,m+=". Build with -sASSERTIONS for more info.";var k=new WebAssembly.RuntimeError(m);throw o(k),k}var Fe,od="data:application/octet-stream;base64,",Yo=m=>m.startsWith(od),so=m=>m.startsWith("file://");function il(){var m="pe-wasm.wasm";return Yo(m)?m:R(m)}function ya(m){if(m==Fe&&G)return new Uint8Array(G);if(c)return c(m);throw"both async and sync fetching of the wasm failed"}function Ls(m){return s(m).then(k=>new Uint8Array(k),()=>ya(m))}function Fi(m,k,Y){return Ls(m).then(ce=>WebAssembly.instantiate(ce,k)).then(Y,ce=>{de(`failed to asynchronously prepare wasm: ${ce}`),xn(ce)})}function sd(m,k,Y,ce){return typeof WebAssembly.instantiateStreaming!="function"||Yo(k)||so(k)||v||typeof fetch!="function"?Fi(k,Y,ce):fetch(k,{credentials:"same-origin"}).then(pe=>WebAssembly.instantiateStreaming(pe,Y).then(ce,function(Te){return de(`wasm streaming compile failed: ${Te}`),de("falling back to ArrayBuffer instantiation"),Fi(k,Y,ce)}))}function ks(){return{a:pm}}function fm(){var m=ks();function k(ce,pe){return Z=ce.exports,J=Z.t,fe(),Yr(Z.u),$i(),Z}function Y(ce){k(ce.instance)}return Gn(),Fe??(Fe=il()),sd(G,Fe,m,Y).catch(o),{}}var Jo=m=>{for(;m.length>0;)m.shift()(a)};function ba(m,k="i8"){switch(k.endsWith("*")&&(k="*"),k){case"i1":case"i8":return W[m];case"i16":return Le[m>>1];case"i32":return xe[m>>2];case"i64":xn("to do getValue(i64) use WASM_BIGINT");case"float":return ge[m>>2];case"double":return K[m>>3];case"*":return ke[m>>2];default:xn(`invalid type for getValue: ${k}`)}}var ol=typeof TextDecoder<"u"?new TextDecoder:void 0,sl=(m,k=0,Y=NaN)=>{for(var ce=k+Y,pe=k;m[pe]&&!(pe>=ce);)++pe;if(pe-k>16&&m.buffer&&ol)return ol.decode(m.subarray(k,pe));for(var Te="";k<pe;){var Ue=m[k++];if(128&Ue){var Re=63&m[k++];if((224&Ue)!=192){var at=63&m[k++];if((Ue=(240&Ue)==224?(15&Ue)<<12|Re<<6|at:(7&Ue)<<18|Re<<12|at<<6|63&m[k++])<65536)Te+=String.fromCharCode(Ue);else{var En=Ue-65536;Te+=String.fromCharCode(55296|En>>10,56320|1023&En)}}else Te+=String.fromCharCode((31&Ue)<<6|Re)}else Te+=String.fromCharCode(Ue)}return Te},vr=(m,k)=>m?sl(me,m,k):"";function ad(m,k,Y){return 0}var Xo=(m,k,Y,ce)=>{if(!(ce>0))return 0;for(var pe=Y,Te=Y+ce-1,Ue=0;Ue<m.length;++Ue){var Re=m.charCodeAt(Ue);if(Re>=55296&&Re<=57343&&(Re=65536+((1023&Re)<<10)|1023&m.charCodeAt(++Ue)),Re<=127){if(Y>=Te)break;k[Y++]=Re}else if(Re<=2047){if(Y+1>=Te)break;k[Y++]=192|Re>>6,k[Y++]=128|63&Re}else if(Re<=65535){if(Y+2>=Te)break;k[Y++]=224|Re>>12,k[Y++]=128|Re>>6&63,k[Y++]=128|63&Re}else{if(Y+3>=Te)break;k[Y++]=240|Re>>18,k[Y++]=128|Re>>12&63,k[Y++]=128|Re>>6&63,k[Y++]=128|63&Re}}return k[Y]=0,Y-pe},va=(m,k,Y)=>Xo(m,me,k,Y);function al(m,k,Y){return 0}function cd(m,k,Y,ce){}var cl=m=>m%4==0&&(m%100!=0||m%400==0),ll=[0,31,60,91,121,152,182,213,244,274,305,335],ul=[0,31,59,90,120,151,181,212,243,273,304,334],dl=m=>(cl(m.getFullYear())?ll:ul)[m.getMonth()]+m.getDate()-1,ld=(m,k)=>k+2097152>>>0<4194305-!!m?(m>>>0)+4294967296*k:NaN;function ao(m,k,Y){var ce=ld(m,k),pe=new Date(1e3*ce);xe[Y>>2]=pe.getSeconds(),xe[Y+4>>2]=pe.getMinutes(),xe[Y+8>>2]=pe.getHours(),xe[Y+12>>2]=pe.getDate(),xe[Y+16>>2]=pe.getMonth(),xe[Y+20>>2]=pe.getFullYear()-1900,xe[Y+24>>2]=pe.getDay();var Te=0|dl(pe);xe[Y+28>>2]=Te,xe[Y+36>>2]=-60*pe.getTimezoneOffset();var Ue=new Date(pe.getFullYear(),0,1),Re=new Date(pe.getFullYear(),6,1).getTimezoneOffset(),at=Ue.getTimezoneOffset(),En=0|(Re!=at&&pe.getTimezoneOffset()==Math.min(at,Re));xe[Y+32>>2]=En}var ud=()=>2147483648,fl=(m,k)=>Math.ceil(m/k)*k,Os=m=>{var k=(m-J.buffer.byteLength+65535)/65536|0;try{return J.grow(k),fe(),1}catch{}},Ui={},Ko=()=>M||"./this.program",co=()=>{if(!co.strings){var m={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Ko()};for(var k in Ui)Ui[k]===void 0?delete m[k]:m[k]=Ui[k];var Y=[];for(var k in m)Y.push(`${k}=${m[k]}`);co.strings=Y}return co.strings},pl=(m,k)=>{for(var Y=0;Y<m.length;++Y)W[k++]=m.charCodeAt(Y);W[k]=0};function dd(m,k,Y,ce,pe){return 70}var ml=[null,[],[]],_a=(m,k)=>{var Y=ml[m];k===0||k===10?((m===1?re:de)(sl(Y)),Y.length=0):Y.push(k)},fd=m=>{for(var k=0,Y=0;Y<m.length;++Y){var ce=m.charCodeAt(Y);ce<=127?k++:ce<=2047?k+=2:ce>=55296&&ce<=57343?(k+=4,++Y):k+=3}return k};function pd(m,k,Y){var ce=fd(m)+1,pe=new Array(ce);return Xo(m,pe,0,pe.length),pe}var pm={c:ad,q:(m,k,Y)=>{},h:al,d:cd,o:m=>{},n:(m,k)=>{},p:(m,k,Y)=>{},l:()=>{xn("")},s:(m,k,Y)=>me.copyWithin(m,k,k+Y),j:ao,r:(m,k,Y,ce)=>{var pe=new Date().getFullYear(),Te=new Date(pe,0,1),Ue=new Date(pe,6,1),Re=Te.getTimezoneOffset(),at=Ue.getTimezoneOffset(),En=Math.max(Re,at);ke[m>>2]=60*En,xe[k>>2]=+(Re!=at);var i1=a1=>{var pv=a1>=0?"-":"+",c1=Math.abs(a1);return`UTC${pv}${String(Math.floor(c1/60)).padStart(2,"0")}${String(c1%60).padStart(2,"0")}`},o1=i1(Re),s1=i1(at);at<Re?(va(o1,Y,17),va(s1,ce,17)):(va(o1,ce,17),va(s1,Y,17))},i:()=>Date.now(),m:m=>{var k=me.length;m>>>=0;var Y=ud();if(m>Y)return!1;for(var ce=1;ce<=4;ce*=2){var pe=k*(1+.2/ce);pe=Math.min(pe,m+100663296);var Te=Math.min(Y,fl(Math.max(m,pe),65536));if(Os(Te))return!0}return!1},e:(m,k)=>{var Y=0;return co().forEach((ce,pe)=>{var Te=k+Y;ke[m+4*pe>>2]=Te,pl(ce,Te),Y+=ce.length+1}),0},f:(m,k)=>{var Y=co();ke[m>>2]=Y.length;var ce=0;return Y.forEach(pe=>ce+=pe.length+1),ke[k>>2]=ce,0},a:m=>52,g:(m,k,Y,ce)=>52,k:dd,b:(m,k,Y,ce)=>{for(var pe=0,Te=0;Te<Y;Te++){var Ue=ke[k>>2],Re=ke[k+4>>2];k+=8;for(var at=0;at<Re;at++)_a(m,me[Ue+at]);pe+=Re}return ke[ce>>2]=pe,0}},Z=fm();a._webidl_free=m=>(a._webidl_free=Z.v)(m),a._webidl_malloc=m=>(a._webidl_malloc=Z.w)(m);var Qo,md=a._emscripten_bind_PeObject_getCode_0=m=>(md=a._emscripten_bind_PeObject_getCode_0=Z.x)(m),hd=a._emscripten_bind_PeObject_getName_1=(m,k)=>(hd=a._emscripten_bind_PeObject_getName_1=Z.y)(m,k),hl=a._emscripten_bind_PeObject_getType_0=m=>(hl=a._emscripten_bind_PeObject_getType_0=Z.z)(m),dn=a._emscripten_bind_PeCoordsys_isEqual_1=(m,k)=>(dn=a._emscripten_bind_PeCoordsys_isEqual_1=Z.A)(m,k),Vi=a._emscripten_bind_PeCoordsys_getCode_0=m=>(Vi=a._emscripten_bind_PeCoordsys_getCode_0=Z.B)(m),ti=a._emscripten_bind_PeCoordsys_getName_1=(m,k)=>(ti=a._emscripten_bind_PeCoordsys_getName_1=Z.C)(m,k),gd=a._emscripten_bind_PeCoordsys_getType_0=m=>(gd=a._emscripten_bind_PeCoordsys_getType_0=Z.D)(m),wd=a._emscripten_bind_PeUnit_getUnitFactor_0=m=>(wd=a._emscripten_bind_PeUnit_getUnitFactor_0=Z.E)(m),Sa=a._emscripten_bind_PeUnit_getCode_0=m=>(Sa=a._emscripten_bind_PeUnit_getCode_0=Z.F)(m),hi=a._emscripten_bind_PeUnit_getName_1=(m,k)=>(hi=a._emscripten_bind_PeUnit_getName_1=Z.G)(m,k),je=a._emscripten_bind_PeUnit_getType_0=m=>(je=a._emscripten_bind_PeUnit_getType_0=Z.H)(m),xa=a._emscripten_bind_VoidPtr___destroy___0=m=>(xa=a._emscripten_bind_VoidPtr___destroy___0=Z.I)(m),gl=a._emscripten_bind_PeAngunit_getCode_0=m=>(gl=a._emscripten_bind_PeAngunit_getCode_0=Z.J)(m),wl=a._emscripten_bind_PeAngunit_getName_1=(m,k)=>(wl=a._emscripten_bind_PeAngunit_getName_1=Z.K)(m,k),yl=a._emscripten_bind_PeAngunit_getType_0=m=>(yl=a._emscripten_bind_PeAngunit_getType_0=Z.L)(m),es=a._emscripten_bind_PeAngunit_getUnitFactor_0=m=>(es=a._emscripten_bind_PeAngunit_getUnitFactor_0=Z.M)(m),Ca=a._emscripten_bind_PeDatum_getSpheroid_0=m=>(Ca=a._emscripten_bind_PeDatum_getSpheroid_0=Z.N)(m),yd=a._emscripten_bind_PeDatum_getCode_0=m=>(yd=a._emscripten_bind_PeDatum_getCode_0=Z.O)(m),bd=a._emscripten_bind_PeDatum_getName_1=(m,k)=>(bd=a._emscripten_bind_PeDatum_getName_1=Z.P)(m,k),vd=a._emscripten_bind_PeDatum_getType_0=m=>(vd=a._emscripten_bind_PeDatum_getType_0=Z.Q)(m),bl=a._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=m=>(bl=a._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=Z.R)(m),_d=a._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=m=>(_d=a._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=Z.S)(m),vl=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=m=>(vl=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=Z.T)(m),_l=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=m=>(_l=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=Z.U)(m),Ns=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=m=>(Ns=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=Z.V)(m),Sl=a._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=m=>(Sl=a._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=Z.W)(m),Ta=a._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=m=>(Ta=a._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=Z.X)(m),xl=a._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=m=>(xl=a._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=Z.Y)(m),Sd=a._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=m=>(Sd=a._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=Z.Z)(m),Ea=a._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=m=>(Ea=a._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=Z._)(m),xd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=m=>(xd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=Z.$)(m),Ma=a._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=m=>(Ma=a._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=Z.aa)(m),Cd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=m=>(Cd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=Z.ba)(m),Td=a._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=m=>(Td=a._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=Z.ca)(m),Ed=a._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=m=>(Ed=a._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=Z.da)(m),Md=a._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=m=>(Md=a._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=Z.ea)(m),Pd=a._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=m=>(Pd=a._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=Z.fa)(m),Cl=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=m=>(Cl=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=Z.ga)(m),Rs=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=m=>(Rs=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=Z.ha)(m),lo=a._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=m=>(lo=a._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=Z.ia)(m),Pa=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=m=>(Pa=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=Z.ja)(m),Ds=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=m=>(Ds=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=Z.ka)(m),gi=a._emscripten_bind_PeDefs_get_PE_PARM_X0_0=m=>(gi=a._emscripten_bind_PeDefs_get_PE_PARM_X0_0=Z.la)(m),ts=a._emscripten_bind_PeDefs_get_PE_PARM_ND_0=m=>(ts=a._emscripten_bind_PeDefs_get_PE_PARM_ND_0=Z.ma)(m),Id=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=m=>(Id=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=Z.na)(m),Tl=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=m=>(Tl=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=Z.oa)(m),El=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=m=>(El=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=Z.pa)(m),Ia=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=m=>(Ia=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=Z.qa)(m),Ad=a._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=m=>(Ad=a._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=Z.ra)(m),Ld=a._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=m=>(Ld=a._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=Z.sa)(m),Ml=a._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=m=>(Ml=a._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=Z.ta)(m),kd=a._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=m=>(kd=a._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=Z.ua)(m),Od=a._emscripten_bind_PeDouble_PeDouble_1=m=>(Od=a._emscripten_bind_PeDouble_PeDouble_1=Z.va)(m),Pl=a._emscripten_bind_PeDouble_get_val_0=m=>(Pl=a._emscripten_bind_PeDouble_get_val_0=Z.wa)(m),Il=a._emscripten_bind_PeDouble_set_val_1=(m,k)=>(Il=a._emscripten_bind_PeDouble_set_val_1=Z.xa)(m,k),Nd=a._emscripten_bind_PeDouble___destroy___0=m=>(Nd=a._emscripten_bind_PeDouble___destroy___0=Z.ya)(m),Aa=a._emscripten_bind_PeFactory_initialize_1=m=>(Aa=a._emscripten_bind_PeFactory_initialize_1=Z.za)(m),Rd=a._emscripten_bind_PeFactory_factoryByType_2=(m,k)=>(Rd=a._emscripten_bind_PeFactory_factoryByType_2=Z.Aa)(m,k),Al=a._emscripten_bind_PeFactory_fromString_2=(m,k)=>(Al=a._emscripten_bind_PeFactory_fromString_2=Z.Ba)(m,k),Dd=a._emscripten_bind_PeFactory_getCode_1=m=>(Dd=a._emscripten_bind_PeFactory_getCode_1=Z.Ca)(m),$s=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=(m,k,Y,ce,pe,Te)=>($s=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=Z.Da)(m,k,Y,ce,pe,Te),$d=a._emscripten_bind_PeGCSExtent_getLLon_0=m=>($d=a._emscripten_bind_PeGCSExtent_getLLon_0=Z.Ea)(m),Ll=a._emscripten_bind_PeGCSExtent_getSLat_0=m=>(Ll=a._emscripten_bind_PeGCSExtent_getSLat_0=Z.Fa)(m),kl=a._emscripten_bind_PeGCSExtent_getRLon_0=m=>(kl=a._emscripten_bind_PeGCSExtent_getRLon_0=Z.Ga)(m),Fd=a._emscripten_bind_PeGCSExtent_getNLat_0=m=>(Fd=a._emscripten_bind_PeGCSExtent_getNLat_0=Z.Ha)(m),Ol=a._emscripten_bind_PeGCSExtent___destroy___0=m=>(Ol=a._emscripten_bind_PeGCSExtent___destroy___0=Z.Ia)(m),Nl=a._emscripten_bind_PeGeogcs_Delete_0=m=>(Nl=a._emscripten_bind_PeGeogcs_Delete_0=Z.Ja)(m),Ud=a._emscripten_bind_PeGeogcs_cloneAlterUnits_1=(m,k)=>(Ud=a._emscripten_bind_PeGeogcs_cloneAlterUnits_1=Z.Ka)(m,k),uo=a._emscripten_bind_PeGeogcs_getDatum_0=m=>(uo=a._emscripten_bind_PeGeogcs_getDatum_0=Z.La)(m),rs=a._emscripten_bind_PeGeogcs_getPrimem_0=m=>(rs=a._emscripten_bind_PeGeogcs_getPrimem_0=Z.Ma)(m),Vd=a._emscripten_bind_PeGeogcs_getUnit_0=m=>(Vd=a._emscripten_bind_PeGeogcs_getUnit_0=Z.Na)(m),La=a._emscripten_bind_PeGeogcs_isEqual_1=(m,k)=>(La=a._emscripten_bind_PeGeogcs_isEqual_1=Z.Oa)(m,k),ka=a._emscripten_bind_PeGeogcs_getCode_0=m=>(ka=a._emscripten_bind_PeGeogcs_getCode_0=Z.Pa)(m),zd=a._emscripten_bind_PeGeogcs_getName_1=(m,k)=>(zd=a._emscripten_bind_PeGeogcs_getName_1=Z.Qa)(m,k),Fs=a._emscripten_bind_PeGeogcs_getType_0=m=>(Fs=a._emscripten_bind_PeGeogcs_getType_0=Z.Ra)(m),Rl=a._emscripten_bind_PeGeogtran_isEqual_1=(m,k)=>(Rl=a._emscripten_bind_PeGeogtran_isEqual_1=Z.Sa)(m,k),Dl=a._emscripten_bind_PeGeogtran_getGeogcs1_0=m=>(Dl=a._emscripten_bind_PeGeogtran_getGeogcs1_0=Z.Ta)(m),Oa=a._emscripten_bind_PeGeogtran_getGeogcs2_0=m=>(Oa=a._emscripten_bind_PeGeogtran_getGeogcs2_0=Z.Ua)(m),$l=a._emscripten_bind_PeGeogtran_getParameters_0=m=>($l=a._emscripten_bind_PeGeogtran_getParameters_0=Z.Va)(m),Wd=a._emscripten_bind_PeGeogtran_loadConstants_0=m=>(Wd=a._emscripten_bind_PeGeogtran_loadConstants_0=Z.Wa)(m),wi=a._emscripten_bind_PeGeogtran_getCode_0=m=>(wi=a._emscripten_bind_PeGeogtran_getCode_0=Z.Xa)(m),Bd=a._emscripten_bind_PeGeogtran_getName_1=(m,k)=>(Bd=a._emscripten_bind_PeGeogtran_getName_1=Z.Ya)(m,k),Gd=a._emscripten_bind_PeGeogtran_getType_0=m=>(Gd=a._emscripten_bind_PeGeogtran_getType_0=Z.Za)(m),jd=a._emscripten_bind_PeGTlistExtended_getGTlist_6=(m,k,Y,ce,pe,Te)=>(jd=a._emscripten_bind_PeGTlistExtended_getGTlist_6=Z._a)(m,k,Y,ce,pe,Te),Fl=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=m=>(Fl=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=Z.$a)(m),Ul=a._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=m=>(Ul=a._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=Z.ab)(m),_r=a._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=m=>(_r=a._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=Z.bb)(m),Hd=a._emscripten_bind_PeGTlistExtendedEntry_Delete_1=m=>(Hd=a._emscripten_bind_PeGTlistExtendedEntry_Delete_1=Z.cb)(m),qd=a._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=m=>(qd=a._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=Z.db)(m),Zd=a._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=m=>(Zd=a._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=Z.eb)(m),Yd=a._emscripten_bind_PeHorizon_getNump_0=m=>(Yd=a._emscripten_bind_PeHorizon_getNump_0=Z.fb)(m),Jd=a._emscripten_bind_PeHorizon_getKind_0=m=>(Jd=a._emscripten_bind_PeHorizon_getKind_0=Z.gb)(m),Vl=a._emscripten_bind_PeHorizon_getInclusive_0=m=>(Vl=a._emscripten_bind_PeHorizon_getInclusive_0=Z.hb)(m),Xd=a._emscripten_bind_PeHorizon_getSize_0=m=>(Xd=a._emscripten_bind_PeHorizon_getSize_0=Z.ib)(m),zl=a._emscripten_bind_PeHorizon_getCoord_0=m=>(zl=a._emscripten_bind_PeHorizon_getCoord_0=Z.jb)(m),Wl=a._emscripten_bind_PeInteger_PeInteger_1=m=>(Wl=a._emscripten_bind_PeInteger_PeInteger_1=Z.kb)(m),Us=a._emscripten_bind_PeInteger_get_val_0=m=>(Us=a._emscripten_bind_PeInteger_get_val_0=Z.lb)(m),zi=a._emscripten_bind_PeInteger_set_val_1=(m,k)=>(zi=a._emscripten_bind_PeInteger_set_val_1=Z.mb)(m,k),Vs=a._emscripten_bind_PeInteger___destroy___0=m=>(Vs=a._emscripten_bind_PeInteger___destroy___0=Z.nb)(m),Kd=a._emscripten_bind_PeLineType_geodetic_distance_10=(m,k,Y,ce,pe,Te,Ue,Re,at,En)=>(Kd=a._emscripten_bind_PeLineType_geodetic_distance_10=Z.ob)(m,k,Y,ce,pe,Te,Ue,Re,at,En),Bl=a._emscripten_bind_PeLineType_geodetic_coordinate_9=(m,k,Y,ce,pe,Te,Ue,Re,at)=>(Bl=a._emscripten_bind_PeLineType_geodetic_coordinate_9=Z.pb)(m,k,Y,ce,pe,Te,Ue,Re,at),Gl=a._emscripten_bind_PeLineType_geodesic_coordinate_8=(m,k,Y,ce,pe,Te,Ue,Re)=>(Gl=a._emscripten_bind_PeLineType_geodesic_coordinate_8=Z.qb)(m,k,Y,ce,pe,Te,Ue,Re),jl=a._emscripten_bind_PeLineType_great_elliptic_distance_9=(m,k,Y,ce,pe,Te,Ue,Re,at)=>(jl=a._emscripten_bind_PeLineType_great_elliptic_distance_9=Z.rb)(m,k,Y,ce,pe,Te,Ue,Re,at),ns=a._emscripten_bind_PeMath_phi_to_eta_2=(m,k)=>(ns=a._emscripten_bind_PeMath_phi_to_eta_2=Z.sb)(m,k),Qd=a._emscripten_bind_PeMath_eta_to_phi_2=(m,k)=>(Qd=a._emscripten_bind_PeMath_eta_to_phi_2=Z.tb)(m,k),ef=a._emscripten_bind_PeMath_phi_to_phig_2=(m,k)=>(ef=a._emscripten_bind_PeMath_phi_to_phig_2=Z.ub)(m,k),tf=a._emscripten_bind_PeMath_q_3=(m,k,Y)=>(tf=a._emscripten_bind_PeMath_q_3=Z.vb)(m,k,Y),rf=a._emscripten_bind_PeMath_q90_2=(m,k)=>(rf=a._emscripten_bind_PeMath_q90_2=Z.wb)(m,k),nf=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=m=>(nf=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=Z.xb)(m),of=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=m=>(of=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=Z.yb)(m),Na=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=m=>(Na=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=Z.zb)(m),sf=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=m=>(sf=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=Z.Ab)(m),zs=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=m=>(zs=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=Z.Bb)(m),af=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=m=>(af=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=Z.Cb)(m),Ra=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=m=>(Ra=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=Z.Db)(m),cf=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=m=>(cf=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=Z.Eb)(m),lf=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=m=>(lf=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=Z.Fb)(m),Hl=a._emscripten_bind_PeParameter_getValue_0=m=>(Hl=a._emscripten_bind_PeParameter_getValue_0=Z.Gb)(m),is=a._emscripten_bind_PeParameter_getCode_0=m=>(is=a._emscripten_bind_PeParameter_getCode_0=Z.Hb)(m),yi=a._emscripten_bind_PeParameter_getName_1=(m,k)=>(yi=a._emscripten_bind_PeParameter_getName_1=Z.Ib)(m,k),ql=a._emscripten_bind_PeParameter_getType_0=m=>(ql=a._emscripten_bind_PeParameter_getType_0=Z.Jb)(m),Da=a._emscripten_bind_PePCSInfo_getCentralMeridian_0=m=>(Da=a._emscripten_bind_PePCSInfo_getCentralMeridian_0=Z.Kb)(m),uf=a._emscripten_bind_PePCSInfo_getDomainMinx_0=m=>(uf=a._emscripten_bind_PePCSInfo_getDomainMinx_0=Z.Lb)(m),df=a._emscripten_bind_PePCSInfo_getDomainMiny_0=m=>(df=a._emscripten_bind_PePCSInfo_getDomainMiny_0=Z.Mb)(m),ff=a._emscripten_bind_PePCSInfo_getDomainMaxx_0=m=>(ff=a._emscripten_bind_PePCSInfo_getDomainMaxx_0=Z.Nb)(m),pf=a._emscripten_bind_PePCSInfo_getDomainMaxy_0=m=>(pf=a._emscripten_bind_PePCSInfo_getDomainMaxy_0=Z.Ob)(m),mf=a._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=m=>(mf=a._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=Z.Pb)(m),hf=a._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=m=>(hf=a._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=Z.Qb)(m),gf=a._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=m=>(gf=a._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=Z.Rb)(m),wf=a._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=m=>(wf=a._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=Z.Sb)(m),yf=a._emscripten_bind_PePCSInfo_isDensificationNeeded_0=m=>(yf=a._emscripten_bind_PePCSInfo_isDensificationNeeded_0=Z.Tb)(m),bf=a._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=m=>(bf=a._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=Z.Ub)(m),p=a._emscripten_bind_PePCSInfo_isPannableRectangle_0=m=>(p=a._emscripten_bind_PePCSInfo_isPannableRectangle_0=Z.Vb)(m),f=a._emscripten_bind_PePCSInfo_generate_2=(m,k)=>(f=a._emscripten_bind_PePCSInfo_generate_2=Z.Wb)(m,k),w=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=m=>(w=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=Z.Xb)(m),_=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=m=>(_=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=Z.Yb)(m),T=a._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=m=>(T=a._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=Z.Zb)(m),E=a._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=m=>(E=a._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=Z._b)(m),A=a._emscripten_bind_PePrimem_getLongitude_0=m=>(A=a._emscripten_bind_PePrimem_getLongitude_0=Z.$b)(m),O=a._emscripten_bind_PePrimem_getCode_0=m=>(O=a._emscripten_bind_PePrimem_getCode_0=Z.ac)(m),$=a._emscripten_bind_PePrimem_getName_1=(m,k)=>($=a._emscripten_bind_PePrimem_getName_1=Z.bc)(m,k),j=a._emscripten_bind_PePrimem_getType_0=m=>(j=a._emscripten_bind_PePrimem_getType_0=Z.cc)(m),U=a._emscripten_bind_PeProjcs_Delete_0=m=>(U=a._emscripten_bind_PeProjcs_Delete_0=Z.dc)(m),ee=a._emscripten_bind_PeProjcs_getGeogcs_0=m=>(ee=a._emscripten_bind_PeProjcs_getGeogcs_0=Z.ec)(m),le=a._emscripten_bind_PeProjcs_getProjection_0=m=>(le=a._emscripten_bind_PeProjcs_getProjection_0=Z.fc)(m),be=a._emscripten_bind_PeProjcs_getParameters_0=m=>(be=a._emscripten_bind_PeProjcs_getParameters_0=Z.gc)(m),ye=a._emscripten_bind_PeProjcs_getUnit_0=m=>(ye=a._emscripten_bind_PeProjcs_getUnit_0=Z.hc)(m),ve=a._emscripten_bind_PeProjcs_loadConstants_0=m=>(ve=a._emscripten_bind_PeProjcs_loadConstants_0=Z.ic)(m),Oe=a._emscripten_bind_PeProjcs_horizonGcsGenerate_0=m=>(Oe=a._emscripten_bind_PeProjcs_horizonGcsGenerate_0=Z.jc)(m),Pe=a._emscripten_bind_PeProjcs_horizonPcsGenerate_0=m=>(Pe=a._emscripten_bind_PeProjcs_horizonPcsGenerate_0=Z.kc)(m),$e=a._emscripten_bind_PeProjcs_isEqual_1=(m,k)=>($e=a._emscripten_bind_PeProjcs_isEqual_1=Z.lc)(m,k),Ke=a._emscripten_bind_PeProjcs_getCode_0=m=>(Ke=a._emscripten_bind_PeProjcs_getCode_0=Z.mc)(m),nt=a._emscripten_bind_PeProjcs_getName_1=(m,k)=>(nt=a._emscripten_bind_PeProjcs_getName_1=Z.nc)(m,k),Be=a._emscripten_bind_PeProjcs_getType_0=m=>(Be=a._emscripten_bind_PeProjcs_getType_0=Z.oc)(m),Qe=a._emscripten_bind_PeSpheroid_getAxis_0=m=>(Qe=a._emscripten_bind_PeSpheroid_getAxis_0=Z.pc)(m),Sr=a._emscripten_bind_PeSpheroid_getFlattening_0=m=>(Sr=a._emscripten_bind_PeSpheroid_getFlattening_0=Z.qc)(m),Mt=a._emscripten_bind_PeSpheroid_getCode_0=m=>(Mt=a._emscripten_bind_PeSpheroid_getCode_0=Z.rc)(m),Jr=a._emscripten_bind_PeSpheroid_getName_1=(m,k)=>(Jr=a._emscripten_bind_PeSpheroid_getName_1=Z.sc)(m,k),Cn=a._emscripten_bind_PeSpheroid_getType_0=m=>(Cn=a._emscripten_bind_PeSpheroid_getType_0=Z.tc)(m),jn=a._emscripten_bind_PeVersion_version_string_0=m=>(jn=a._emscripten_bind_PeVersion_version_string_0=Z.uc)(m);function Ws(){function m(){Qo||(Qo=!0,a.calledRun=!0,H||(rt(),i(a),mr()))}Gt>0||(Xe(),Gt>0||m())}function dt(){}function $a(m){return(m||dt).__cache__}function nr(m,k){var Y=$a(k),ce=Y[m];return ce||((ce=Object.create((k||dt).prototype)).ptr=m,Y[m]=ce)}function iv(m,k){return nr(m.ptr,k)}function ov(m){if(!m.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";m.__destroy__(),delete $a(m.__class__)[m.ptr]}function sv(m,k){return m.ptr===k.ptr}function av(m){return m.ptr}function cv(m){return m.__class__}a._pe_getPeGTlistExtendedEntrySize=()=>(a._pe_getPeGTlistExtendedEntrySize=Z.vc)(),a._pe_getPeGTlistExtendedGTsSize=()=>(a._pe_getPeGTlistExtendedGTsSize=Z.wc)(),a._pe_getPeHorizonSize=()=>(a._pe_getPeHorizonSize=Z.xc)(),a._pe_geog_to_geog=(m,k,Y,ce,pe)=>(a._pe_geog_to_geog=Z.zc)(m,k,Y,ce,pe),a._pe_geog_to_proj=(m,k,Y)=>(a._pe_geog_to_proj=Z.Ac)(m,k,Y),a._pe_geog_to_dd=(m,k,Y,ce,pe)=>(a._pe_geog_to_dd=Z.Bc)(m,k,Y,ce,pe),a._pe_dd_to_geog=(m,k,Y,ce)=>(a._pe_dd_to_geog=Z.Cc)(m,k,Y,ce),a._pe_geog_to_ddm=(m,k,Y,ce,pe)=>(a._pe_geog_to_ddm=Z.Dc)(m,k,Y,ce,pe),a._pe_ddm_to_geog=(m,k,Y,ce)=>(a._pe_ddm_to_geog=Z.Ec)(m,k,Y,ce),a._pe_geog_to_dms=(m,k,Y,ce,pe)=>(a._pe_geog_to_dms=Z.Fc)(m,k,Y,ce,pe),a._pe_dms_to_geog=(m,k,Y,ce)=>(a._pe_dms_to_geog=Z.Gc)(m,k,Y,ce),a._pe_geog_to_mgrs_extended=(m,k,Y,ce,pe,Te,Ue)=>(a._pe_geog_to_mgrs_extended=Z.Hc)(m,k,Y,ce,pe,Te,Ue),a._pe_mgrs_to_geog_extended=(m,k,Y,ce,pe)=>(a._pe_mgrs_to_geog_extended=Z.Ic)(m,k,Y,ce,pe),a._pe_geog_to_usng=(m,k,Y,ce,pe,Te,Ue)=>(a._pe_geog_to_usng=Z.Jc)(m,k,Y,ce,pe,Te,Ue),a._pe_usng_to_geog=(m,k,Y,ce)=>(a._pe_usng_to_geog=Z.Kc)(m,k,Y,ce),a._pe_geog_to_utm=(m,k,Y,ce,pe)=>(a._pe_geog_to_utm=Z.Lc)(m,k,Y,ce,pe),a._pe_utm_to_geog=(m,k,Y,ce,pe)=>(a._pe_utm_to_geog=Z.Mc)(m,k,Y,ce,pe),a._pe_object_to_string_ext=(m,k,Y)=>(a._pe_object_to_string_ext=Z.Nc)(m,k,Y),a._pe_proj_to_geog_center=(m,k,Y,ce)=>(a._pe_proj_to_geog_center=Z.Oc)(m,k,Y,ce),a.getValue=ba,a.UTF8ToString=vr,br=function m(){Qo||Ws(),Qo||(br=m)},Ws(),dt.prototype=Object.create(dt.prototype),dt.prototype.constructor=dt,dt.prototype.__class__=dt,dt.__cache__={},a.WrapperObject=dt,a.getCache=$a,a.wrapPointer=nr,a.castObject=iv,a.NULL=nr(0),a.destroy=ov,a.compare=sv,a.getPointer=av,a.getClass=cv;var Ze={buffer:0,size:0,pos:0,temps:[],needed:0,prepare(){if(Ze.needed){for(var m=0;m<Ze.temps.length;m++)a._webidl_free(Ze.temps[m]);Ze.temps.length=0,a._webidl_free(Ze.buffer),Ze.buffer=0,Ze.size+=Ze.needed,Ze.needed=0}Ze.buffer||(Ze.size+=128,Ze.buffer=a._webidl_malloc(Ze.size),se(Ze.buffer)),Ze.pos=0},alloc(m,k){se(Ze.buffer);var Y,ce=k.BYTES_PER_ELEMENT,pe=m.length*ce;return pe=fl(pe,8),Ze.pos+pe>=Ze.size?(se(pe>0),Ze.needed+=pe,Y=a._webidl_malloc(pe),Ze.temps.push(Y)):(Y=Ze.buffer+Ze.pos,Ze.pos+=pe),Y},copy(m,k,Y){Y/=k.BYTES_PER_ELEMENT;for(var ce=0;ce<m.length;ce++)k[Y+ce]=m[ce]}};function mm(m){if(typeof m=="string"){var k=pd(m),Y=Ze.alloc(k,W);return Ze.copy(k,W,Y),Y}return m}function ri(m){if(typeof m=="object"){var k=Ze.alloc(m,W);return Ze.copy(m,W,k),k}return m}function lv(m){if(typeof m=="object"){var k=Ze.alloc(m,Le);return Ze.copy(m,Le,k),k}return m}function uv(m){if(typeof m=="object"){var k=Ze.alloc(m,xe);return Ze.copy(m,xe,k),k}return m}function dv(m){if(typeof m=="object"){var k=Ze.alloc(m,ge);return Ze.copy(m,ge,k),k}return m}function fv(m){if(typeof m=="object"){var k=Ze.alloc(m,K);return Ze.copy(m,K,k),k}return m}function Kt(){throw"cannot construct a PeObject, no constructor in IDL"}function Lr(){throw"cannot construct a PeCoordsys, no constructor in IDL"}function kr(){throw"cannot construct a PeUnit, no constructor in IDL"}function fo(){throw"cannot construct a VoidPtr, no constructor in IDL"}function Xr(){throw"cannot construct a PeAngunit, no constructor in IDL"}function Kr(){throw"cannot construct a PeDatum, no constructor in IDL"}function ue(){throw"cannot construct a PeDefs, no constructor in IDL"}function Or(m){m&&typeof m=="object"&&(m=m.ptr),this.ptr=Od(m),$a(Or)[this.ptr]=this}function fn(){throw"cannot construct a PeFactory, no constructor in IDL"}function xr(m,k,Y,ce,pe,Te){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),ce&&typeof ce=="object"&&(ce=ce.ptr),pe&&typeof pe=="object"&&(pe=pe.ptr),Te&&typeof Te=="object"&&(Te=Te.ptr),this.ptr=$s(m,k,Y,ce,pe,Te),$a(xr)[this.ptr]=this}function _t(){throw"cannot construct a PeGeogcs, no constructor in IDL"}function jt(){throw"cannot construct a PeGeogtran, no constructor in IDL"}function Hn(){throw"cannot construct a PeGTlistExtended, no constructor in IDL"}function Tn(){throw"cannot construct a PeGTlistExtendedEntry, no constructor in IDL"}function ni(){throw"cannot construct a PeGTlistExtendedGTs, no constructor in IDL"}function hr(){throw"cannot construct a PeHorizon, no constructor in IDL"}function Nr(m){m&&typeof m=="object"&&(m=m.ptr),this.ptr=Wl(m),$a(Nr)[this.ptr]=this}function pn(){throw"cannot construct a PeLineType, no constructor in IDL"}function Rr(){throw"cannot construct a PeMath, no constructor in IDL"}function Pt(){throw"cannot construct a PeNotationMgrs, no constructor in IDL"}function Qt(){throw"cannot construct a PeNotationUtm, no constructor in IDL"}function mn(){throw"cannot construct a PeParameter, no constructor in IDL"}function He(){throw"cannot construct a PePCSInfo, no constructor in IDL"}function Qr(){throw"cannot construct a PePrimem, no constructor in IDL"}function gt(){throw"cannot construct a PeProjcs, no constructor in IDL"}function Cr(){throw"cannot construct a PeSpheroid, no constructor in IDL"}function po(){throw"cannot construct a PeVersion, no constructor in IDL"}return Kt.prototype=Object.create(dt.prototype),Kt.prototype.constructor=Kt,Kt.prototype.__class__=Kt,Kt.__cache__={},a.PeObject=Kt,Kt.prototype.getCode=Kt.prototype.getCode=function(){var m=this.ptr;return md(m)},Kt.prototype.getName=Kt.prototype.getName=function(m){var k=this.ptr;return Ze.prepare(),typeof m=="object"&&(m=ri(m)),vr(hd(k,m))},Kt.prototype.getType=Kt.prototype.getType=function(){var m=this.ptr;return hl(m)},Lr.prototype=Object.create(Kt.prototype),Lr.prototype.constructor=Lr,Lr.prototype.__class__=Lr,Lr.__cache__={},a.PeCoordsys=Lr,Lr.prototype.isEqual=Lr.prototype.isEqual=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!dn(k,m)},Lr.prototype.getCode=Lr.prototype.getCode=function(){var m=this.ptr;return Vi(m)},Lr.prototype.getName=Lr.prototype.getName=function(m){var k=this.ptr;return Ze.prepare(),typeof m=="object"&&(m=ri(m)),vr(ti(k,m))},Lr.prototype.getType=Lr.prototype.getType=function(){var m=this.ptr;return gd(m)},kr.prototype=Object.create(Kt.prototype),kr.prototype.constructor=kr,kr.prototype.__class__=kr,kr.__cache__={},a.PeUnit=kr,kr.prototype.getUnitFactor=kr.prototype.getUnitFactor=function(){var m=this.ptr;return wd(m)},kr.prototype.getCode=kr.prototype.getCode=function(){var m=this.ptr;return Sa(m)},kr.prototype.getName=kr.prototype.getName=function(m){var k=this.ptr;return Ze.prepare(),typeof m=="object"&&(m=ri(m)),vr(hi(k,m))},kr.prototype.getType=kr.prototype.getType=function(){var m=this.ptr;return je(m)},fo.prototype=Object.create(dt.prototype),fo.prototype.constructor=fo,fo.prototype.__class__=fo,fo.__cache__={},a.VoidPtr=fo,fo.prototype.__destroy__=fo.prototype.__destroy__=function(){var m=this.ptr;xa(m)},Xr.prototype=Object.create(kr.prototype),Xr.prototype.constructor=Xr,Xr.prototype.__class__=Xr,Xr.__cache__={},a.PeAngunit=Xr,Xr.prototype.getCode=Xr.prototype.getCode=function(){var m=this.ptr;return gl(m)},Xr.prototype.getName=Xr.prototype.getName=function(m){var k=this.ptr;return Ze.prepare(),typeof m=="object"&&(m=ri(m)),vr(wl(k,m))},Xr.prototype.getType=Xr.prototype.getType=function(){var m=this.ptr;return yl(m)},Xr.prototype.getUnitFactor=Xr.prototype.getUnitFactor=function(){var m=this.ptr;return es(m)},Kr.prototype=Object.create(Kt.prototype),Kr.prototype.constructor=Kr,Kr.prototype.__class__=Kr,Kr.__cache__={},a.PeDatum=Kr,Kr.prototype.getSpheroid=Kr.prototype.getSpheroid=function(){var m=this.ptr;return nr(Ca(m),Cr)},Kr.prototype.getCode=Kr.prototype.getCode=function(){var m=this.ptr;return yd(m)},Kr.prototype.getName=Kr.prototype.getName=function(m){var k=this.ptr;return Ze.prepare(),typeof m=="object"&&(m=ri(m)),vr(bd(k,m))},Kr.prototype.getType=Kr.prototype.getType=function(){var m=this.ptr;return vd(m)},ue.prototype=Object.create(dt.prototype),ue.prototype.constructor=ue,ue.prototype.__class__=ue,ue.__cache__={},a.PeDefs=ue,ue.prototype.get_PE_BUFFER_MAX=ue.prototype.get_PE_BUFFER_MAX=function(){var m=this.ptr;return bl(m)},Object.defineProperty(ue.prototype,"PE_BUFFER_MAX",{get:ue.prototype.get_PE_BUFFER_MAX}),ue.prototype.get_PE_NAME_MAX=ue.prototype.get_PE_NAME_MAX=function(){var m=this.ptr;return _d(m)},Object.defineProperty(ue.prototype,"PE_NAME_MAX",{get:ue.prototype.get_PE_NAME_MAX}),ue.prototype.get_PE_MGRS_MAX=ue.prototype.get_PE_MGRS_MAX=function(){var m=this.ptr;return vl(m)},Object.defineProperty(ue.prototype,"PE_MGRS_MAX",{get:ue.prototype.get_PE_MGRS_MAX}),ue.prototype.get_PE_USNG_MAX=ue.prototype.get_PE_USNG_MAX=function(){var m=this.ptr;return _l(m)},Object.defineProperty(ue.prototype,"PE_USNG_MAX",{get:ue.prototype.get_PE_USNG_MAX}),ue.prototype.get_PE_DD_MAX=ue.prototype.get_PE_DD_MAX=function(){var m=this.ptr;return Ns(m)},Object.defineProperty(ue.prototype,"PE_DD_MAX",{get:ue.prototype.get_PE_DD_MAX}),ue.prototype.get_PE_DMS_MAX=ue.prototype.get_PE_DMS_MAX=function(){var m=this.ptr;return Sl(m)},Object.defineProperty(ue.prototype,"PE_DMS_MAX",{get:ue.prototype.get_PE_DMS_MAX}),ue.prototype.get_PE_DDM_MAX=ue.prototype.get_PE_DDM_MAX=function(){var m=this.ptr;return Ta(m)},Object.defineProperty(ue.prototype,"PE_DDM_MAX",{get:ue.prototype.get_PE_DDM_MAX}),ue.prototype.get_PE_UTM_MAX=ue.prototype.get_PE_UTM_MAX=function(){var m=this.ptr;return xl(m)},Object.defineProperty(ue.prototype,"PE_UTM_MAX",{get:ue.prototype.get_PE_UTM_MAX}),ue.prototype.get_PE_PARM_MAX=ue.prototype.get_PE_PARM_MAX=function(){var m=this.ptr;return Sd(m)},Object.defineProperty(ue.prototype,"PE_PARM_MAX",{get:ue.prototype.get_PE_PARM_MAX}),ue.prototype.get_PE_TYPE_NONE=ue.prototype.get_PE_TYPE_NONE=function(){var m=this.ptr;return Ea(m)},Object.defineProperty(ue.prototype,"PE_TYPE_NONE",{get:ue.prototype.get_PE_TYPE_NONE}),ue.prototype.get_PE_TYPE_GEOGCS=ue.prototype.get_PE_TYPE_GEOGCS=function(){var m=this.ptr;return xd(m)},Object.defineProperty(ue.prototype,"PE_TYPE_GEOGCS",{get:ue.prototype.get_PE_TYPE_GEOGCS}),ue.prototype.get_PE_TYPE_PROJCS=ue.prototype.get_PE_TYPE_PROJCS=function(){var m=this.ptr;return Ma(m)},Object.defineProperty(ue.prototype,"PE_TYPE_PROJCS",{get:ue.prototype.get_PE_TYPE_PROJCS}),ue.prototype.get_PE_TYPE_GEOGTRAN=ue.prototype.get_PE_TYPE_GEOGTRAN=function(){var m=this.ptr;return Cd(m)},Object.defineProperty(ue.prototype,"PE_TYPE_GEOGTRAN",{get:ue.prototype.get_PE_TYPE_GEOGTRAN}),ue.prototype.get_PE_TYPE_COORDSYS=ue.prototype.get_PE_TYPE_COORDSYS=function(){var m=this.ptr;return Td(m)},Object.defineProperty(ue.prototype,"PE_TYPE_COORDSYS",{get:ue.prototype.get_PE_TYPE_COORDSYS}),ue.prototype.get_PE_TYPE_UNIT=ue.prototype.get_PE_TYPE_UNIT=function(){var m=this.ptr;return Ed(m)},Object.defineProperty(ue.prototype,"PE_TYPE_UNIT",{get:ue.prototype.get_PE_TYPE_UNIT}),ue.prototype.get_PE_TYPE_LINUNIT=ue.prototype.get_PE_TYPE_LINUNIT=function(){var m=this.ptr;return Md(m)},Object.defineProperty(ue.prototype,"PE_TYPE_LINUNIT",{get:ue.prototype.get_PE_TYPE_LINUNIT}),ue.prototype.get_PE_STR_OPTS_NONE=ue.prototype.get_PE_STR_OPTS_NONE=function(){var m=this.ptr;return Pd(m)},Object.defineProperty(ue.prototype,"PE_STR_OPTS_NONE",{get:ue.prototype.get_PE_STR_OPTS_NONE}),ue.prototype.get_PE_STR_AUTH_NONE=ue.prototype.get_PE_STR_AUTH_NONE=function(){var m=this.ptr;return Cl(m)},Object.defineProperty(ue.prototype,"PE_STR_AUTH_NONE",{get:ue.prototype.get_PE_STR_AUTH_NONE}),ue.prototype.get_PE_STR_AUTH_TOP=ue.prototype.get_PE_STR_AUTH_TOP=function(){var m=this.ptr;return Rs(m)},Object.defineProperty(ue.prototype,"PE_STR_AUTH_TOP",{get:ue.prototype.get_PE_STR_AUTH_TOP}),ue.prototype.get_PE_STR_NAME_CANON=ue.prototype.get_PE_STR_NAME_CANON=function(){var m=this.ptr;return lo(m)},Object.defineProperty(ue.prototype,"PE_STR_NAME_CANON",{get:ue.prototype.get_PE_STR_NAME_CANON}),ue.prototype.get_PE_STR_FMT_WKT=ue.prototype.get_PE_STR_FMT_WKT=function(){var m=this.ptr;return Pa(m)},Object.defineProperty(ue.prototype,"PE_STR_FMT_WKT",{get:ue.prototype.get_PE_STR_FMT_WKT}),ue.prototype.get_PE_STR_FMT_WKT2=ue.prototype.get_PE_STR_FMT_WKT2=function(){var m=this.ptr;return Ds(m)},Object.defineProperty(ue.prototype,"PE_STR_FMT_WKT2",{get:ue.prototype.get_PE_STR_FMT_WKT2}),ue.prototype.get_PE_PARM_X0=ue.prototype.get_PE_PARM_X0=function(){var m=this.ptr;return gi(m)},Object.defineProperty(ue.prototype,"PE_PARM_X0",{get:ue.prototype.get_PE_PARM_X0}),ue.prototype.get_PE_PARM_ND=ue.prototype.get_PE_PARM_ND=function(){var m=this.ptr;return ts(m)},Object.defineProperty(ue.prototype,"PE_PARM_ND",{get:ue.prototype.get_PE_PARM_ND}),ue.prototype.get_PE_TRANSFORM_1_TO_2=ue.prototype.get_PE_TRANSFORM_1_TO_2=function(){var m=this.ptr;return Id(m)},Object.defineProperty(ue.prototype,"PE_TRANSFORM_1_TO_2",{get:ue.prototype.get_PE_TRANSFORM_1_TO_2}),ue.prototype.get_PE_TRANSFORM_2_TO_1=ue.prototype.get_PE_TRANSFORM_2_TO_1=function(){var m=this.ptr;return Tl(m)},Object.defineProperty(ue.prototype,"PE_TRANSFORM_2_TO_1",{get:ue.prototype.get_PE_TRANSFORM_2_TO_1}),ue.prototype.get_PE_TRANSFORM_P_TO_G=ue.prototype.get_PE_TRANSFORM_P_TO_G=function(){var m=this.ptr;return El(m)},Object.defineProperty(ue.prototype,"PE_TRANSFORM_P_TO_G",{get:ue.prototype.get_PE_TRANSFORM_P_TO_G}),ue.prototype.get_PE_TRANSFORM_G_TO_P=ue.prototype.get_PE_TRANSFORM_G_TO_P=function(){var m=this.ptr;return Ia(m)},Object.defineProperty(ue.prototype,"PE_TRANSFORM_G_TO_P",{get:ue.prototype.get_PE_TRANSFORM_G_TO_P}),ue.prototype.get_PE_HORIZON_RECT=ue.prototype.get_PE_HORIZON_RECT=function(){var m=this.ptr;return Ad(m)},Object.defineProperty(ue.prototype,"PE_HORIZON_RECT",{get:ue.prototype.get_PE_HORIZON_RECT}),ue.prototype.get_PE_HORIZON_POLY=ue.prototype.get_PE_HORIZON_POLY=function(){var m=this.ptr;return Ld(m)},Object.defineProperty(ue.prototype,"PE_HORIZON_POLY",{get:ue.prototype.get_PE_HORIZON_POLY}),ue.prototype.get_PE_HORIZON_LINE=ue.prototype.get_PE_HORIZON_LINE=function(){var m=this.ptr;return Ml(m)},Object.defineProperty(ue.prototype,"PE_HORIZON_LINE",{get:ue.prototype.get_PE_HORIZON_LINE}),ue.prototype.get_PE_HORIZON_DELTA=ue.prototype.get_PE_HORIZON_DELTA=function(){var m=this.ptr;return kd(m)},Object.defineProperty(ue.prototype,"PE_HORIZON_DELTA",{get:ue.prototype.get_PE_HORIZON_DELTA}),Or.prototype=Object.create(dt.prototype),Or.prototype.constructor=Or,Or.prototype.__class__=Or,Or.__cache__={},a.PeDouble=Or,Or.prototype.get_val=Or.prototype.get_val=function(){var m=this.ptr;return Pl(m)},Or.prototype.set_val=Or.prototype.set_val=function(m){var k=this.ptr;m&&typeof m=="object"&&(m=m.ptr),Il(k,m)},Object.defineProperty(Or.prototype,"val",{get:Or.prototype.get_val,set:Or.prototype.set_val}),Or.prototype.__destroy__=Or.prototype.__destroy__=function(){var m=this.ptr;Nd(m)},fn.prototype=Object.create(dt.prototype),fn.prototype.constructor=fn,fn.prototype.__class__=fn,fn.__cache__={},a.PeFactory=fn,fn.prototype.initialize=fn.prototype.initialize=function(m){Ze.prepare(),m=m&&typeof m=="object"?m.ptr:mm(m),Aa(m)},fn.prototype.factoryByType=fn.prototype.factoryByType=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),nr(Rd(m,k),Kt)},fn.prototype.fromString=fn.prototype.fromString=function(m,k){return Ze.prepare(),m&&typeof m=="object"&&(m=m.ptr),k=k&&typeof k=="object"?k.ptr:mm(k),nr(Al(m,k),Kt)},fn.prototype.getCode=fn.prototype.getCode=function(m){return m&&typeof m=="object"&&(m=m.ptr),Dd(m)},xr.prototype=Object.create(dt.prototype),xr.prototype.constructor=xr,xr.prototype.__class__=xr,xr.__cache__={},a.PeGCSExtent=xr,xr.prototype.getLLon=xr.prototype.getLLon=function(){var m=this.ptr;return $d(m)},xr.prototype.getSLat=xr.prototype.getSLat=function(){var m=this.ptr;return Ll(m)},xr.prototype.getRLon=xr.prototype.getRLon=function(){var m=this.ptr;return kl(m)},xr.prototype.getNLat=xr.prototype.getNLat=function(){var m=this.ptr;return Fd(m)},xr.prototype.__destroy__=xr.prototype.__destroy__=function(){var m=this.ptr;Ol(m)},_t.prototype=Object.create(Lr.prototype),_t.prototype.constructor=_t,_t.prototype.__class__=_t,_t.__cache__={},a.PeGeogcs=_t,_t.prototype.Delete=_t.prototype.Delete=function(){var m=this.ptr;Nl(m)},_t.prototype.cloneAlterUnits=_t.prototype.cloneAlterUnits=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),nr(Ud(k,m),_t)},_t.prototype.getDatum=_t.prototype.getDatum=function(){var m=this.ptr;return nr(uo(m),Kr)},_t.prototype.getPrimem=_t.prototype.getPrimem=function(){var m=this.ptr;return nr(rs(m),Qr)},_t.prototype.getUnit=_t.prototype.getUnit=function(){var m=this.ptr;return nr(Vd(m),Xr)},_t.prototype.isEqual=_t.prototype.isEqual=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!La(k,m)},_t.prototype.getCode=_t.prototype.getCode=function(){var m=this.ptr;return ka(m)},_t.prototype.getName=_t.prototype.getName=function(m){var k=this.ptr;return Ze.prepare(),typeof m=="object"&&(m=ri(m)),vr(zd(k,m))},_t.prototype.getType=_t.prototype.getType=function(){var m=this.ptr;return Fs(m)},jt.prototype=Object.create(Kt.prototype),jt.prototype.constructor=jt,jt.prototype.__class__=jt,jt.__cache__={},a.PeGeogtran=jt,jt.prototype.isEqual=jt.prototype.isEqual=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Rl(k,m)},jt.prototype.getGeogcs1=jt.prototype.getGeogcs1=function(){var m=this.ptr;return nr(Dl(m),_t)},jt.prototype.getGeogcs2=jt.prototype.getGeogcs2=function(){var m=this.ptr;return nr(Oa(m),_t)},jt.prototype.getParameters=jt.prototype.getParameters=function(){var m=this.ptr;return $l(m)},jt.prototype.loadConstants=jt.prototype.loadConstants=function(){var m=this.ptr;return!!Wd(m)},jt.prototype.getCode=jt.prototype.getCode=function(){var m=this.ptr;return wi(m)},jt.prototype.getName=jt.prototype.getName=function(m){var k=this.ptr;return Ze.prepare(),typeof m=="object"&&(m=ri(m)),vr(Bd(k,m))},jt.prototype.getType=jt.prototype.getType=function(){var m=this.ptr;return Gd(m)},Hn.prototype=Object.create(dt.prototype),Hn.prototype.constructor=Hn,Hn.prototype.__class__=Hn,Hn.__cache__={},a.PeGTlistExtended=Hn,Hn.prototype.getGTlist=Hn.prototype.getGTlist=function(m,k,Y,ce,pe,Te){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),ce&&typeof ce=="object"&&(ce=ce.ptr),pe&&typeof pe=="object"&&(pe=pe.ptr),Te&&typeof Te=="object"&&(Te=Te.ptr),nr(jd(m,k,Y,ce,pe,Te),Tn)},Hn.prototype.get_PE_GTLIST_OPTS_COMMON=Hn.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var m=this.ptr;return Fl(m)},Object.defineProperty(Hn.prototype,"PE_GTLIST_OPTS_COMMON",{get:Hn.prototype.get_PE_GTLIST_OPTS_COMMON}),Tn.prototype=Object.create(dt.prototype),Tn.prototype.constructor=Tn,Tn.prototype.__class__=Tn,Tn.__cache__={},a.PeGTlistExtendedEntry=Tn,Tn.prototype.getEntries=Tn.prototype.getEntries=function(){var m=this.ptr;return nr(Ul(m),ni)},Tn.prototype.getSteps=Tn.prototype.getSteps=function(){var m=this.ptr;return _r(m)},Tn.prototype.Delete=Tn.prototype.Delete=function(m){m&&typeof m=="object"&&(m=m.ptr),Hd(m)},ni.prototype=Object.create(dt.prototype),ni.prototype.constructor=ni,ni.prototype.__class__=ni,ni.__cache__={},a.PeGTlistExtendedGTs=ni,ni.prototype.getDirection=ni.prototype.getDirection=function(){var m=this.ptr;return qd(m)},ni.prototype.getGeogtran=ni.prototype.getGeogtran=function(){var m=this.ptr;return nr(Zd(m),jt)},hr.prototype=Object.create(dt.prototype),hr.prototype.constructor=hr,hr.prototype.__class__=hr,hr.__cache__={},a.PeHorizon=hr,hr.prototype.getNump=hr.prototype.getNump=function(){var m=this.ptr;return Yd(m)},hr.prototype.getKind=hr.prototype.getKind=function(){var m=this.ptr;return Jd(m)},hr.prototype.getInclusive=hr.prototype.getInclusive=function(){var m=this.ptr;return Vl(m)},hr.prototype.getSize=hr.prototype.getSize=function(){var m=this.ptr;return Xd(m)},hr.prototype.getCoord=hr.prototype.getCoord=function(){var m=this.ptr;return zl(m)},Nr.prototype=Object.create(dt.prototype),Nr.prototype.constructor=Nr,Nr.prototype.__class__=Nr,Nr.__cache__={},a.PeInteger=Nr,Nr.prototype.get_val=Nr.prototype.get_val=function(){var m=this.ptr;return Us(m)},Nr.prototype.set_val=Nr.prototype.set_val=function(m){var k=this.ptr;m&&typeof m=="object"&&(m=m.ptr),zi(k,m)},Object.defineProperty(Nr.prototype,"val",{get:Nr.prototype.get_val,set:Nr.prototype.set_val}),Nr.prototype.__destroy__=Nr.prototype.__destroy__=function(){var m=this.ptr;Vs(m)},pn.prototype=Object.create(dt.prototype),pn.prototype.constructor=pn,pn.prototype.__class__=pn,pn.__cache__={},a.PeLineType=pn,pn.prototype.geodetic_distance=pn.prototype.geodetic_distance=function(m,k,Y,ce,pe,Te,Ue,Re,at,En){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),ce&&typeof ce=="object"&&(ce=ce.ptr),pe&&typeof pe=="object"&&(pe=pe.ptr),Te&&typeof Te=="object"&&(Te=Te.ptr),Ue&&typeof Ue=="object"&&(Ue=Ue.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),at&&typeof at=="object"&&(at=at.ptr),En&&typeof En=="object"&&(En=En.ptr),Kd(m,k,Y,ce,pe,Te,Ue,Re,at,En)},pn.prototype.geodetic_coordinate=pn.prototype.geodetic_coordinate=function(m,k,Y,ce,pe,Te,Ue,Re,at){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),ce&&typeof ce=="object"&&(ce=ce.ptr),pe&&typeof pe=="object"&&(pe=pe.ptr),Te&&typeof Te=="object"&&(Te=Te.ptr),Ue&&typeof Ue=="object"&&(Ue=Ue.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),at&&typeof at=="object"&&(at=at.ptr),Bl(m,k,Y,ce,pe,Te,Ue,Re,at)},pn.prototype.geodesic_coordinate=pn.prototype.geodesic_coordinate=function(m,k,Y,ce,pe,Te,Ue,Re){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),ce&&typeof ce=="object"&&(ce=ce.ptr),pe&&typeof pe=="object"&&(pe=pe.ptr),Te&&typeof Te=="object"&&(Te=Te.ptr),Ue&&typeof Ue=="object"&&(Ue=Ue.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),Gl(m,k,Y,ce,pe,Te,Ue,Re)},pn.prototype.great_elliptic_distance=pn.prototype.great_elliptic_distance=function(m,k,Y,ce,pe,Te,Ue,Re,at){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),ce&&typeof ce=="object"&&(ce=ce.ptr),pe&&typeof pe=="object"&&(pe=pe.ptr),Te&&typeof Te=="object"&&(Te=Te.ptr),Ue&&typeof Ue=="object"&&(Ue=Ue.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),at&&typeof at=="object"&&(at=at.ptr),jl(m,k,Y,ce,pe,Te,Ue,Re,at)},Rr.prototype=Object.create(dt.prototype),Rr.prototype.constructor=Rr,Rr.prototype.__class__=Rr,Rr.__cache__={},a.PeMath=Rr,Rr.prototype.phi_to_eta=Rr.prototype.phi_to_eta=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),ns(m,k)},Rr.prototype.eta_to_phi=Rr.prototype.eta_to_phi=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Qd(m,k)},Rr.prototype.phi_to_phig=Rr.prototype.phi_to_phig=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),ef(m,k)},Rr.prototype.q=Rr.prototype.q=function(m,k,Y){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),tf(m,k,Y)},Rr.prototype.q90=Rr.prototype.q90=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),rf(m,k)},Pt.prototype=Object.create(dt.prototype),Pt.prototype.constructor=Pt,Pt.prototype.__class__=Pt,Pt.__cache__={},a.PeNotationMgrs=Pt,Pt.prototype.get_PE_MGRS_STYLE_NEW=Pt.prototype.get_PE_MGRS_STYLE_NEW=function(){var m=this.ptr;return nf(m)},Object.defineProperty(Pt.prototype,"PE_MGRS_STYLE_NEW",{get:Pt.prototype.get_PE_MGRS_STYLE_NEW}),Pt.prototype.get_PE_MGRS_STYLE_OLD=Pt.prototype.get_PE_MGRS_STYLE_OLD=function(){var m=this.ptr;return of(m)},Object.defineProperty(Pt.prototype,"PE_MGRS_STYLE_OLD",{get:Pt.prototype.get_PE_MGRS_STYLE_OLD}),Pt.prototype.get_PE_MGRS_STYLE_AUTO=Pt.prototype.get_PE_MGRS_STYLE_AUTO=function(){var m=this.ptr;return Na(m)},Object.defineProperty(Pt.prototype,"PE_MGRS_STYLE_AUTO",{get:Pt.prototype.get_PE_MGRS_STYLE_AUTO}),Pt.prototype.get_PE_MGRS_180_ZONE_1_PLUS=Pt.prototype.get_PE_MGRS_180_ZONE_1_PLUS=function(){var m=this.ptr;return sf(m)},Object.defineProperty(Pt.prototype,"PE_MGRS_180_ZONE_1_PLUS",{get:Pt.prototype.get_PE_MGRS_180_ZONE_1_PLUS}),Pt.prototype.get_PE_MGRS_ADD_SPACES=Pt.prototype.get_PE_MGRS_ADD_SPACES=function(){var m=this.ptr;return zs(m)},Object.defineProperty(Pt.prototype,"PE_MGRS_ADD_SPACES",{get:Pt.prototype.get_PE_MGRS_ADD_SPACES}),Qt.prototype=Object.create(dt.prototype),Qt.prototype.constructor=Qt,Qt.prototype.__class__=Qt,Qt.__cache__={},a.PeNotationUtm=Qt,Qt.prototype.get_PE_UTM_OPTS_NONE=Qt.prototype.get_PE_UTM_OPTS_NONE=function(){var m=this.ptr;return af(m)},Object.defineProperty(Qt.prototype,"PE_UTM_OPTS_NONE",{get:Qt.prototype.get_PE_UTM_OPTS_NONE}),Qt.prototype.get_PE_UTM_OPTS_NS=Qt.prototype.get_PE_UTM_OPTS_NS=function(){var m=this.ptr;return Ra(m)},Object.defineProperty(Qt.prototype,"PE_UTM_OPTS_NS",{get:Qt.prototype.get_PE_UTM_OPTS_NS}),Qt.prototype.get_PE_UTM_OPTS_NS_STRICT=Qt.prototype.get_PE_UTM_OPTS_NS_STRICT=function(){var m=this.ptr;return cf(m)},Object.defineProperty(Qt.prototype,"PE_UTM_OPTS_NS_STRICT",{get:Qt.prototype.get_PE_UTM_OPTS_NS_STRICT}),Qt.prototype.get_PE_UTM_OPTS_ADD_SPACES=Qt.prototype.get_PE_UTM_OPTS_ADD_SPACES=function(){var m=this.ptr;return lf(m)},Object.defineProperty(Qt.prototype,"PE_UTM_OPTS_ADD_SPACES",{get:Qt.prototype.get_PE_UTM_OPTS_ADD_SPACES}),mn.prototype=Object.create(Kt.prototype),mn.prototype.constructor=mn,mn.prototype.__class__=mn,mn.__cache__={},a.PeParameter=mn,mn.prototype.getValue=mn.prototype.getValue=function(){var m=this.ptr;return Hl(m)},mn.prototype.getCode=mn.prototype.getCode=function(){var m=this.ptr;return is(m)},mn.prototype.getName=mn.prototype.getName=function(m){var k=this.ptr;return Ze.prepare(),typeof m=="object"&&(m=ri(m)),vr(yi(k,m))},mn.prototype.getType=mn.prototype.getType=function(){var m=this.ptr;return ql(m)},He.prototype=Object.create(dt.prototype),He.prototype.constructor=He,He.prototype.__class__=He,He.__cache__={},a.PePCSInfo=He,He.prototype.getCentralMeridian=He.prototype.getCentralMeridian=function(){var m=this.ptr;return Da(m)},He.prototype.getDomainMinx=He.prototype.getDomainMinx=function(){var m=this.ptr;return uf(m)},He.prototype.getDomainMiny=He.prototype.getDomainMiny=function(){var m=this.ptr;return df(m)},He.prototype.getDomainMaxx=He.prototype.getDomainMaxx=function(){var m=this.ptr;return ff(m)},He.prototype.getDomainMaxy=He.prototype.getDomainMaxy=function(){var m=this.ptr;return pf(m)},He.prototype.getNorthPoleLocation=He.prototype.getNorthPoleLocation=function(){var m=this.ptr;return mf(m)},He.prototype.getNorthPoleGeometry=He.prototype.getNorthPoleGeometry=function(){var m=this.ptr;return hf(m)},He.prototype.getSouthPoleLocation=He.prototype.getSouthPoleLocation=function(){var m=this.ptr;return gf(m)},He.prototype.getSouthPoleGeometry=He.prototype.getSouthPoleGeometry=function(){var m=this.ptr;return wf(m)},He.prototype.isDensificationNeeded=He.prototype.isDensificationNeeded=function(){var m=this.ptr;return!!yf(m)},He.prototype.isGcsHorizonMultiOverlap=He.prototype.isGcsHorizonMultiOverlap=function(){var m=this.ptr;return!!bf(m)},He.prototype.isPannableRectangle=He.prototype.isPannableRectangle=function(){var m=this.ptr;return!!p(m)},He.prototype.generate=He.prototype.generate=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),nr(f(m,k),He)},He.prototype.get_PE_PCSINFO_OPTION_NONE=He.prototype.get_PE_PCSINFO_OPTION_NONE=function(){var m=this.ptr;return w(m)},Object.defineProperty(He.prototype,"PE_PCSINFO_OPTION_NONE",{get:He.prototype.get_PE_PCSINFO_OPTION_NONE}),He.prototype.get_PE_PCSINFO_OPTION_DOMAIN=He.prototype.get_PE_PCSINFO_OPTION_DOMAIN=function(){var m=this.ptr;return _(m)},Object.defineProperty(He.prototype,"PE_PCSINFO_OPTION_DOMAIN",{get:He.prototype.get_PE_PCSINFO_OPTION_DOMAIN}),He.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=He.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=function(){var m=this.ptr;return T(m)},Object.defineProperty(He.prototype,"PE_POLE_OUTSIDE_BOUNDARY",{get:He.prototype.get_PE_POLE_OUTSIDE_BOUNDARY}),He.prototype.get_PE_POLE_POINT=He.prototype.get_PE_POLE_POINT=function(){var m=this.ptr;return E(m)},Object.defineProperty(He.prototype,"PE_POLE_POINT",{get:He.prototype.get_PE_POLE_POINT}),Qr.prototype=Object.create(Kt.prototype),Qr.prototype.constructor=Qr,Qr.prototype.__class__=Qr,Qr.__cache__={},a.PePrimem=Qr,Qr.prototype.getLongitude=Qr.prototype.getLongitude=function(){var m=this.ptr;return A(m)},Qr.prototype.getCode=Qr.prototype.getCode=function(){var m=this.ptr;return O(m)},Qr.prototype.getName=Qr.prototype.getName=function(m){var k=this.ptr;return Ze.prepare(),typeof m=="object"&&(m=ri(m)),vr($(k,m))},Qr.prototype.getType=Qr.prototype.getType=function(){var m=this.ptr;return j(m)},gt.prototype=Object.create(Lr.prototype),gt.prototype.constructor=gt,gt.prototype.__class__=gt,gt.__cache__={},a.PeProjcs=gt,gt.prototype.Delete=gt.prototype.Delete=function(){var m=this.ptr;U(m)},gt.prototype.getGeogcs=gt.prototype.getGeogcs=function(){var m=this.ptr;return nr(ee(m),_t)},gt.prototype.getProjection=gt.prototype.getProjection=function(){var m=this.ptr;return nr(le(m),Kt)},gt.prototype.getParameters=gt.prototype.getParameters=function(){var m=this.ptr;return be(m)},gt.prototype.getUnit=gt.prototype.getUnit=function(){var m=this.ptr;return nr(ye(m),kr)},gt.prototype.loadConstants=gt.prototype.loadConstants=function(){var m=this.ptr;return!!ve(m)},gt.prototype.horizonGcsGenerate=gt.prototype.horizonGcsGenerate=function(){var m=this.ptr;return nr(Oe(m),hr)},gt.prototype.horizonPcsGenerate=gt.prototype.horizonPcsGenerate=function(){var m=this.ptr;return nr(Pe(m),hr)},gt.prototype.isEqual=gt.prototype.isEqual=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!$e(k,m)},gt.prototype.getCode=gt.prototype.getCode=function(){var m=this.ptr;return Ke(m)},gt.prototype.getName=gt.prototype.getName=function(m){var k=this.ptr;return Ze.prepare(),typeof m=="object"&&(m=ri(m)),vr(nt(k,m))},gt.prototype.getType=gt.prototype.getType=function(){var m=this.ptr;return Be(m)},Cr.prototype=Object.create(Kt.prototype),Cr.prototype.constructor=Cr,Cr.prototype.__class__=Cr,Cr.__cache__={},a.PeSpheroid=Cr,Cr.prototype.getAxis=Cr.prototype.getAxis=function(){var m=this.ptr;return Qe(m)},Cr.prototype.getFlattening=Cr.prototype.getFlattening=function(){var m=this.ptr;return Sr(m)},Cr.prototype.getCode=Cr.prototype.getCode=function(){var m=this.ptr;return Mt(m)},Cr.prototype.getName=Cr.prototype.getName=function(m){var k=this.ptr;return Ze.prepare(),typeof m=="object"&&(m=ri(m)),vr(Jr(k,m))},Cr.prototype.getType=Cr.prototype.getType=function(){var m=this.ptr;return Cn(m)},po.prototype=Object.create(dt.prototype),po.prototype.constructor=po,po.prototype.__class__=po,po.__cache__={},a.PeVersion=po,po.prototype.version_string=po.prototype.version_string=function(){var m=this.ptr;return vr(jn(m))},a.ensureCache=Ze,a.ensureString=mm,a.ensureInt8=ri,a.ensureInt16=lv,a.ensureInt32=uv,a.ensureFloat32=dv,a.ensureFloat64=fv,d},e.exports=r),Qk.exports;var e,t,r}var Kk,Qk,yJ,bJ,tO=V(()=>{Yk();Qk={exports:{}};yJ=Zk(wJ()),bJ=Object.freeze(Object.defineProperty({__proto__:null,default:yJ},Symbol.toStringTag,{value:"Module"}))});function rO(){return!!q}function vJ(){return!!he("esri-wasm")}function nO(){return Xx||(Xx=Promise.resolve().then(()=>(tO(),eO)).then(e=>e.p).then(({default:e})=>e({locateFile:t=>Ip(`esri/geometry/support/${t}`)})).then(e=>{sO(e)}),Xx)}function sO(e){function t(o,s,c){o[s]=c(o[s])}q=e,Zt.init(),Ib.init(),Ab.init(),Lb.init(),kb.init(),iO=class extends q.PeDouble{constructor(o=NaN){super(o)}destroy(){q.destroy(this)}[Symbol.dispose](){this.destroy()}},oO=class extends q.PeGCSExtent{destroy(){q.destroy(this)}[Symbol.dispose](){this.destroy()}};let r=[q.PeAngunit,q.PeDatum,q.PeGeogcs,q.PeGeogtran,q.PeObject,q.PeParameter,q.PePrimem,q.PeProjcs,q.PeSpheroid,q.PeUnit];for(let o of r)t(o.prototype,"getName",s=>function(){return s.call(this,new Array(Zt.PE_NAME_MAX))});for(let o of[q.PeGeogtran,q.PeProjcs])t(o.prototype,"getParameters",s=>function(){let c=new Array(Zt.PE_PARM_MAX),a=s.call(this);for(let d=0;d<c.length;d++){let h=q.getValue(a,"*");c[d]=h?q.wrapPointer(h,q.PeParameter):null,a+=Int32Array.BYTES_PER_ELEMENT}return c});t(q.PeHorizon.prototype,"getCoord",o=>function(s=!1){let c=this.getSize();if(!c)return null;let a=[];return Yc(a,c,o.call(this),s),a}),t(q.PeGTlistExtendedEntry.prototype,"getEntries",o=>{let s=q._pe_getPeGTlistExtendedGTsSize();return function(){let c=null,a=o.call(this);if(!q.compare(a,q.NULL)){c=[a];let d=this.getSteps();if(d>1){let h=q.getPointer(a);for(let g=1;g<d;g++)c.push(q.wrapPointer(h+s*g,q.PeGTlistExtendedGTs))}}return c}});let n=q._pe_getPeHorizonSize(),i=o=>function(){let s=this._cache;if(s||(s=new Map,this._cache=s),s.has(o))return s.get(o);let c=null,a=o.call(this);if(!q.compare(a,q.NULL)){c=[a];let d=a.getNump();if(d>1){let h=q.getPointer(a);for(let g=1;g<d;g++)c.push(q.wrapPointer(h+n*g,q.PeHorizon))}}return s.set(o,c),c};t(q.PeProjcs.prototype,"horizonGcsGenerate",i),t(q.PeProjcs.prototype,"horizonPcsGenerate",i),q.PeObject.prototype.toString=function(o=Zt.PE_STR_OPTS_NONE){q.ensureCache.prepare();let s=q.getPointer(this),c=q.ensureInt8(new Array(Zt.PE_BUFFER_MAX));return q.UTF8ToString(q._pe_object_to_string_ext(s,o,c))},q.PeGeogcs.prototype.destroy=function(){this.Delete(),Go(this),this.ptr=0},q.PeGeogcs.prototype[Symbol.dispose]=function(){this.destroy()},q.PeProjcs.prototype.destroy=function(){this.Delete(),Go(this),this.ptr=0},q.PeProjcs.prototype[Symbol.dispose]=function(){this.destroy()}}function Go(e){if(!e)return;let t=q.getClass(e);if(!t)return;let r=q.getCache(t);if(!r)return;let n=q.getPointer(e);n&&delete r[n]}function Mb(e,t){let r=[],n=new Array(t);for(let i=0;i<e;i++)r.push(q.ensureInt8(n));return r}function Bu(e){return ArrayBuffer.isView(e)?e:Array.isArray(e[0])?e.flat():e}function Yc(e,t,r,n=!1){if(n)for(let i=0;i<2*t;i++)e[i]=q.getValue(r+i*Float64Array.BYTES_PER_ELEMENT,"double");else{let i=e.length===0;for(let o=0;o<t;o++)i&&(e[o]=new Array(2)),e[o][0]=q.getValue(r,"double"),e[o][1]=q.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}var Xx,q,Kx,Zt,iO,Pb,oO,Ib,Qx,e5,t5,r5,n5,Ab,i5,Lb,kb,o5,Qye,aO=V(()=>{Kw();et();q=null;(function(e){function t(o,s,c){q.ensureCache.prepare();let a=Bu(c),d=c===a,h=q.ensureFloat64(a),g=q._pe_geog_to_proj(q.getPointer(o),s,h);return g&&Yc(c,s,h,d),g}function r(o,s,c,a){switch(a){case Zt.PE_TRANSFORM_P_TO_G:return n(o,s,c);case Zt.PE_TRANSFORM_G_TO_P:return t(o,s,c)}return 0}function n(o,s,c){return i(o,s,c,0)}function i(o,s,c,a){q.ensureCache.prepare();let d=Bu(c),h=c===d,g=q.ensureFloat64(d),v=q._pe_proj_to_geog_center(q.getPointer(o),s,g,a);return v&&Yc(c,s,g,h),v}e.geogToProj=t,e.projGeog=r,e.projToGeog=n,e.projToGeogCenter=i})(Kx||(Kx={})),function(e){function t(){e.PE_BUFFER_MAX=q.PeDefs.prototype.PE_BUFFER_MAX,e.PE_NAME_MAX=q.PeDefs.prototype.PE_NAME_MAX,e.PE_MGRS_MAX=q.PeDefs.prototype.PE_MGRS_MAX,e.PE_USNG_MAX=q.PeDefs.prototype.PE_USNG_MAX,e.PE_DD_MAX=q.PeDefs.prototype.PE_DD_MAX,e.PE_DDM_MAX=q.PeDefs.prototype.PE_DDM_MAX,e.PE_DMS_MAX=q.PeDefs.prototype.PE_DMS_MAX,e.PE_UTM_MAX=q.PeDefs.prototype.PE_UTM_MAX,e.PE_PARM_MAX=q.PeDefs.prototype.PE_PARM_MAX,e.PE_TYPE_NONE=q.PeDefs.prototype.PE_TYPE_NONE,e.PE_TYPE_GEOGCS=q.PeDefs.prototype.PE_TYPE_GEOGCS,e.PE_TYPE_PROJCS=q.PeDefs.prototype.PE_TYPE_PROJCS,e.PE_TYPE_GEOGTRAN=q.PeDefs.prototype.PE_TYPE_GEOGTRAN,e.PE_TYPE_COORDSYS=q.PeDefs.prototype.PE_TYPE_COORDSYS,e.PE_TYPE_UNIT=q.PeDefs.prototype.PE_TYPE_UNIT,e.PE_TYPE_LINUNIT=q.PeDefs.prototype.PE_TYPE_LINUNIT,e.PE_STR_OPTS_NONE=q.PeDefs.prototype.PE_STR_OPTS_NONE,e.PE_STR_AUTH_NONE=q.PeDefs.prototype.PE_STR_AUTH_NONE,e.PE_STR_AUTH_TOP=q.PeDefs.prototype.PE_STR_AUTH_TOP,e.PE_STR_NAME_CANON=q.PeDefs.prototype.PE_STR_NAME_CANON,e.PE_STR_FMT_WKT=q.PeDefs.prototype.PE_STR_FMT_WKT,e.PE_STR_FMT_WKT2=q.PeDefs.prototype.PE_STR_FMT_WKT2,e.PE_PARM_X0=q.PeDefs.prototype.PE_PARM_X0,e.PE_PARM_ND=q.PeDefs.prototype.PE_PARM_ND,e.PE_TRANSFORM_1_TO_2=q.PeDefs.prototype.PE_TRANSFORM_1_TO_2,e.PE_TRANSFORM_2_TO_1=q.PeDefs.prototype.PE_TRANSFORM_2_TO_1,e.PE_TRANSFORM_P_TO_G=q.PeDefs.prototype.PE_TRANSFORM_P_TO_G,e.PE_TRANSFORM_G_TO_P=q.PeDefs.prototype.PE_TRANSFORM_G_TO_P,e.PE_HORIZON_RECT=q.PeDefs.prototype.PE_HORIZON_RECT,e.PE_HORIZON_POLY=q.PeDefs.prototype.PE_HORIZON_POLY,e.PE_HORIZON_LINE=q.PeDefs.prototype.PE_HORIZON_LINE,e.PE_HORIZON_DELTA=q.PeDefs.prototype.PE_HORIZON_DELTA}e.init=t}(Zt||(Zt={}));iO=null;(function(e){let t={},r={},n=S=>{let M=S.getType();switch(M){case Zt.PE_TYPE_GEOGCS:S=q.castObject(S,q.PeGeogcs);break;case Zt.PE_TYPE_PROJCS:S=q.castObject(S,q.PeProjcs);break;case Zt.PE_TYPE_GEOGTRAN:S=q.castObject(S,q.PeGeogtran);break;default:M&Zt.PE_TYPE_UNIT&&(S=q.castObject(S,q.PeUnit))}return S};function i(){q.PeFactory.prototype.initialize(null)}function o(S){return s(Zt.PE_TYPE_COORDSYS,S)}function s(S,M){let I=null,R=t[S];if(R||(R={},t[S]=R),R.hasOwnProperty(String(M))&&(I=R[M],q.compare(I,q.NULL)&&(I=null)),!I){let B=q.PeFactory.prototype.factoryByType(S,M);q.compare(B,q.NULL)||(I=n(B),R[M]=I)}return I}function c(S,M){let I=null,R=r[S];if(R||(R={},r[S]=R),R.hasOwnProperty(M)&&(I=R[M],q.compare(I,q.NULL)&&(I=null)),!I){let B=q.PeFactory.prototype.fromString(S,M);q.compare(B,q.NULL)||(I=n(B),R[M]=I)}return I}function a(S){return s(Zt.PE_TYPE_GEOGCS,S)}function d(S){return s(Zt.PE_TYPE_GEOGTRAN,S)}function h(S){return q.PeFactory.prototype.getCode(S)}function g(S){return s(Zt.PE_TYPE_PROJCS,S)}function v(S){return s(Zt.PE_TYPE_UNIT,S)}e.initialize=i,e.coordsys=o,e.factoryByType=s,e.fromString=c,e.geogcs=a,e.geogtran=d,e.getCode=h,e.projcs=g,e.unit=v})(Pb||(Pb={}));oO=null;(function(e){let t;function r(){e.PE_GTLIST_OPTS_COMMON=q.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,t=q._pe_getPeGTlistExtendedEntrySize()}function n(i,o,s,c,a,d){let h=null,g=new q.PeInteger(d);try{let v=q.PeGTlistExtended.prototype.getGTlist(i,o,s,c,a,g);if((d=g.val)&&(h=[v],d>1)){let S=q.getPointer(v);for(let M=1;M<d;M++)h.push(q.wrapPointer(S+t*M,q.PeGTlistExtendedEntry))}}finally{q.destroy(g)}return h}e.init=r,e.getGTlist=n})(Ib||(Ib={})),function(e){function t(r){if(r?.length){for(let n of r)Go(n),n.getEntries().forEach(i=>{Go(i);let o=i.getGeogtran();Go(o),o.getParameters().forEach(Go),[o.getGeogcs1(),o.getGeogcs2()].forEach(s=>{Go(s);let c=s.getDatum();Go(c),Go(c.getSpheroid()),Go(s.getPrimem()),Go(s.getUnit())})});q.PeGTlistExtendedEntry.prototype.Delete(r[0])}}e.destroy=t}(Qx||(Qx={})),function(e){function t(r,n,i,o,s){q.ensureCache.prepare();let c=Bu(i),a=i===c,d=q.ensureFloat64(c),h=0;o&&(h=q.ensureFloat64(o));let g=q._pe_geog_to_geog(q.getPointer(r),n,d,h,s);return g&&Yc(i,n,d,a),g}e.geogToGeog=t}(e5||(e5={})),function(e){function t(o,s,c,a,d,h,g,v){q.PeLineType.prototype.geodesic_coordinate(o,s,c,a,d,h,g,v)}function r(o,s,c,a,d,h,g,v,S){q.PeLineType.prototype.geodetic_coordinate(o,s,c,a,d,h,g,v,S)}function n(o,s,c,a,d,h,g,v,S,M){q.PeLineType.prototype.geodetic_distance(o,s,c,a,d,h,g,v,S,M)}function i(o,s,c,a,d,h,g,v,S){q.PeLineType.prototype.great_elliptic_distance(o,s,c,a,d,h,g,v,S)}e.geodesicCoordinate=t,e.geodeticCoordinate=r,e.geodeticDistance=n,e.greatEllipticDistance=i}(t5||(t5={})),function(e){function t(s,c){return q.PeMath.prototype.phi_to_eta(s,c)}function r(s,c){return q.PeMath.prototype.eta_to_phi(s,c)}function n(s,c){return q.PeMath.prototype.phi_to_phig(s,c)}function i(s,c,a){return q.PeMath.prototype.q(s,c,a)}function o(s,c){return q.PeMath.prototype.q90(s,c)}e.phiToEta=t,e.etaToPhi=r,e.phiToPhig=n,e.q=i,e.q90=o}(r5||(r5={})),function(e){let t=(d,h,g,v,S,M)=>{let I,R;switch(q.ensureCache.prepare(),d){case"dd":I=q._pe_geog_to_dd,R=Zt.PE_DD_MAX;break;case"ddm":I=q._pe_geog_to_ddm,R=Zt.PE_DDM_MAX;break;case"dms":I=q._pe_geog_to_dms,R=Zt.PE_DMS_MAX}let B=0;h&&(B=q.getPointer(h));let F=Bu(v),G=q.ensureFloat64(F),J=Mb(g,R),re=I(B,g,G,S,q.ensureInt32(J));if(re)for(let de=0;de<g;de++)M[de]=q.UTF8ToString(J[de]);return re},r=(d,h,g,v,S)=>{let M;switch(q.ensureCache.prepare(),d){case"dd":M=q._pe_dd_to_geog;break;case"ddm":M=q._pe_ddm_to_geog;break;case"dms":M=q._pe_dms_to_geog}let I=0;h&&(I=q.getPointer(h));let R=v.map(J=>q.ensureString(J)),B=q.ensureInt32(R),F=q.ensureFloat64(new Array(2*g)),G=M(I,g,B,F);return G&&Yc(S,g,F),G};function n(d,h,g,v,S){return t("dms",d,h,g,v,S)}function i(d,h,g,v){return r("dms",d,h,g,v)}function o(d,h,g,v,S){return t("ddm",d,h,g,v,S)}function s(d,h,g,v){return r("ddm",d,h,g,v)}function c(d,h,g,v,S){return t("dd",d,h,g,v,S)}function a(d,h,g,v){return r("dd",d,h,g,v)}e.geogToDms=n,e.dmsToGeog=i,e.geogToDdm=o,e.ddmToGeog=s,e.geogToDd=c,e.ddToGeog=a}(n5||(n5={})),function(e){function t(){e.PE_MGRS_STYLE_NEW=q.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=q.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=q.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=q.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=q.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES}function r(i,o,s,c,a,d,h){q.ensureCache.prepare();let g=0;i&&(g=q.getPointer(i));let v=Bu(s),S=q.ensureFloat64(v),M=Mb(o,Zt.PE_MGRS_MAX),I=q.ensureInt32(M),R=q._pe_geog_to_mgrs_extended(g,o,S,c,a,d,I);if(R)for(let B=0;B<o;B++)h[B]=q.UTF8ToString(M[B]);return R}function n(i,o,s,c,a){q.ensureCache.prepare();let d=0;i&&(d=q.getPointer(i));let h=s.map(M=>q.ensureString(M)),g=q.ensureInt32(h),v=q.ensureFloat64(new Array(2*o)),S=q._pe_mgrs_to_geog_extended(d,o,g,c,v);return S&&Yc(a,o,v),S}e.init=t,e.geogToMgrsExtended=r,e.mgrsToGeogExtended=n}(Ab||(Ab={})),function(e){function t(n,i,o,s,c,a,d){q.ensureCache.prepare();let h=0;n&&(h=q.getPointer(n));let g=Bu(o),v=q.ensureFloat64(g),S=Mb(i,Zt.PE_MGRS_MAX),M=q.ensureInt32(S),I=q._pe_geog_to_usng(h,i,v,s,c,a,M);if(I)for(let R=0;R<i;R++)d[R]=q.UTF8ToString(S[R]);return I}function r(n,i,o,s){q.ensureCache.prepare();let c=0;n&&(c=q.getPointer(n));let a=o.map(v=>q.ensureString(v)),d=q.ensureInt32(a),h=q.ensureFloat64(new Array(2*i)),g=q._pe_usng_to_geog(c,i,d,h);return g&&Yc(s,i,h),g}e.geogToUsng=t,e.usngToGeog=r}(i5||(i5={})),function(e){function t(){e.PE_UTM_OPTS_NONE=q.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=q.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=q.PeNotationUtm.prototype.PE_UTM_OPTS_NS}function r(i,o,s,c,a){q.ensureCache.prepare();let d=0;i&&(d=q.getPointer(i));let h=Bu(s),g=q.ensureFloat64(h),v=Mb(o,Zt.PE_UTM_MAX),S=q.ensureInt32(v),M=q._pe_geog_to_utm(d,o,g,c,S);if(M)for(let I=0;I<o;I++)a[I]=q.UTF8ToString(v[I]);return M}function n(i,o,s,c,a){q.ensureCache.prepare();let d=0;i&&(d=q.getPointer(i));let h=s.map(M=>q.ensureString(M)),g=q.ensureInt32(h),v=q.ensureFloat64(new Array(2*o)),S=q._pe_utm_to_geog(d,o,g,c,v);return S&&Yc(a,o,v),S}e.init=t,e.geogToUtm=r,e.utmToGeog=n}(Lb||(Lb={})),function(e){let t=new Map;function r(){e.PE_PCSINFO_OPTION_NONE=q.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=q.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=q.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=q.PePCSInfo.prototype.PE_POLE_POINT}function n(i,o=e.PE_PCSINFO_OPTION_DOMAIN){let s=null,c=null;return t.has(i)&&(c=t.get(i),c[o]&&(s=c[o])),s||(s=q.PePCSInfo.prototype.generate(i,o),c||(c=[],t.set(i,c)),c[o]=s),s}e.init=r,e.generate=n}(kb||(kb={})),function(e){function t(){return q.PeVersion.prototype.version_string()}e.versionString=t}(o5||(o5={}));Qye=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return Kx},get PeDefs(){return Zt},get PeDouble(){return iO},get PeFactory(){return Pb},get PeGCSExtent(){return oO},get PeGTTransformations(){return e5},get PeGTlistExtended(){return Ib},get PeGTlistExtendedEntry(){return Qx},get PeLineType(){return t5},get PeMath(){return r5},get PeNotationDms(){return n5},get PeNotationMgrs(){return Ab},get PeNotationUsng(){return i5},get PeNotationUtm(){return Lb},get PePCSInfo(){return kb},get PeVersion(){return o5},_init:sO,get _pe(){return q},isLoaded:rO,isSupported:vJ,load:nO},Symbol.toStringTag,{value:"Module"}))});var em,cO=V(()=>{(function(e){e[e.CGCS2000=4490]="CGCS2000",e[e.GCSMARS2000=104971]="GCSMARS2000",e[e.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",e[e.GCSMOON2000=104903]="GCSMOON2000"})(em||(em={}))});var l,P,s5=V(()=>{P={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5e4,15e4],units:["Meter","Foot","Foot_US","Foot_Clarke","Yard_Clarke","Link_Clarke","Yard_Sears","Foot_Sears","Chain_Sears","Chain_Benoit_1895_B","Yard_Indian","Yard_Indian_1937","Foot_Gold_Coast","Chain","Chain_Sears_1922_Truncated","50_Kilometers","150_Kilometers"],2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5041:0,5042:0,5048:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,9793:0,9794:0,9869:0,9874:0,9875:0,9880:0,9895:0,9943:0,9945:0,9947:0,9967:0,9972:0,9977:0,10160:0,10183:0,10188:0,10194:0,10199:0,10207:0,10212:0,10217:0,10222:0,10227:0,10235:0,10240:0,10250:0,10254:0,10270:0,10275:0,10280:0,10306:0,10329:0,10471:0,10477:0,10481:2,10516:2,10592:0,10594:0,10596:0,10598:0,10601:0,10603:0,10626:0,10632:0,10665:0,20002:0,20042:0,20050:1,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22239:0,22240:0,22332:0,22337:0,22338:0,22391:0,22392:0,22639:0,22700:0,22739:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25e3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,54090:0,54091:0,65061:2,65062:2,65161:0,65163:0,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102731:0,102732:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2,103897:1,103978:2,103979:0,103980:2,103981:0};for(l=2e3;l<=2045;l++)P[l]=0;for(l=2056;l<=2065;l++)P[l]=0;for(l=2067;l<=2135;l++)P[l]=0;for(l=2137;l<=2154;l++)P[l]=0;for(l=2161;l<=2170;l++)P[l]=0;for(l=2172;l<=2193;l++)P[l]=0;for(l=2195;l<=2198;l++)P[l]=0;for(l=2200;l<=2203;l++)P[l]=0;for(l=2205;l<=2217;l++)P[l]=0;for(l=2222;l<=2224;l++)P[l]=1;for(l=2225;l<=2250;l++)P[l]=2;for(l=2251;l<=2253;l++)P[l]=1;for(l=2257;l<=2264;l++)P[l]=2;for(l=2274;l<=2279;l++)P[l]=2;for(l=2280;l<=2282;l++)P[l]=1;for(l=2283;l<=2289;l++)P[l]=2;for(l=2290;l<=2292;l++)P[l]=0;for(l=2308;l<=2313;l++)P[l]=0;for(l=2315;l<=2491;l++)P[l]=0;for(l=2494;l<=2866;l++)P[l]=0;for(l=2867;l<=2869;l++)P[l]=1;for(l=2870;l<=2888;l++)P[l]=2;for(l=2891;l<=2895;l++)P[l]=2;for(l=2896;l<=2898;l++)P[l]=1;for(l=2902;l<=2908;l++)P[l]=2;for(l=2915;l<=2920;l++)P[l]=2;for(l=2921;l<=2923;l++)P[l]=1;for(l=2924;l<=2930;l++)P[l]=2;for(l=2931;l<=2962;l++)P[l]=0;for(l=2964;l<=2968;l++)P[l]=2;for(l=2969;l<=2973;l++)P[l]=0;for(l=2975;l<=2991;l++)P[l]=0;for(l=2995;l<=3051;l++)P[l]=0;for(l=3054;l<=3079;l++)P[l]=0;for(l=3081;l<=3088;l++)P[l]=0;for(l=3092;l<=3101;l++)P[l]=0;for(l=3106;l<=3138;l++)P[l]=0;for(l=3146;l<=3151;l++)P[l]=0;for(l=3153;l<=3166;l++)P[l]=0;for(l=3168;l<=3172;l++)P[l]=0;for(l=3174;l<=3203;l++)P[l]=0;for(l=3294;l<=3358;l++)P[l]=0;for(l=3367;l<=3403;l++)P[l]=0;for(l=3408;l<=3416;l++)P[l]=0;for(l=3417;l<=3438;l++)P[l]=2;for(l=3441;l<=3446;l++)P[l]=2;for(l=3447;l<=3450;l++)P[l]=0;for(l=3451;l<=3459;l++)P[l]=2;for(l=3460;l<=3478;l++)P[l]=0;for(l=3554;l<=3559;l++)P[l]=0;for(l=3560;l<=3570;l++)P[l]=2;for(l=3571;l<=3581;l++)P[l]=0;for(l=3594;l<=3597;l++)P[l]=0;for(l=3601;l<=3604;l++)P[l]=0;for(l=3637;l<=3639;l++)P[l]=0;for(l=3665;l<=3667;l++)P[l]=0;for(l=3693;l<=3695;l++)P[l]=0;for(l=3701;l<=3727;l++)P[l]=0;for(l=3728;l<=3739;l++)P[l]=2;for(l=3740;l<=3751;l++)P[l]=0;for(l=3753;l<=3760;l++)P[l]=2;for(l=3761;l<=3773;l++)P[l]=0;for(l=3775;l<=3777;l++)P[l]=0;for(l=3779;l<=3781;l++)P[l]=0;for(l=3783;l<=3785;l++)P[l]=0;for(l=3788;l<=3791;l++)P[l]=0;for(l=3797;l<=3802;l++)P[l]=0;for(l=3814;l<=3816;l++)P[l]=0;for(l=3825;l<=3829;l++)P[l]=0;for(l=3832;l<=3841;l++)P[l]=0;for(l=3844;l<=3852;l++)P[l]=0;for(l=3873;l<=3885;l++)P[l]=0;for(l=3890;l<=3893;l++)P[l]=0;for(l=3907;l<=3912;l++)P[l]=0;for(l=3942;l<=3950;l++)P[l]=0;for(l=3968;l<=3970;l++)P[l]=0;for(l=3973;l<=3976;l++)P[l]=0;for(l=3986;l<=3989;l++)P[l]=0;for(l=3994;l<=3997;l++)P[l]=0;for(l=4048;l<=4051;l++)P[l]=0;for(l=4056;l<=4063;l++)P[l]=0;for(l=4093;l<=4096;l++)P[l]=0;for(l=4390;l<=4398;l++)P[l]=0;for(l=4399;l<=4413;l++)P[l]=2;for(l=4418;l<=4433;l++)P[l]=2;for(l=4455;l<=4457;l++)P[l]=2;for(l=4484;l<=4489;l++)P[l]=0;for(l=4491;l<=4554;l++)P[l]=0;for(l=4568;l<=4589;l++)P[l]=0;for(l=4652;l<=4656;l++)P[l]=0;for(l=4766;l<=4800;l++)P[l]=0;for(l=5014;l<=5016;l++)P[l]=0;for(l=5069;l<=5072;l++)P[l]=0;for(l=5105;l<=5130;l++)P[l]=0;for(l=5167;l<=5188;l++)P[l]=0;for(l=5253;l<=5259;l++)P[l]=0;for(l=5269;l<=5275;l++)P[l]=0;for(l=5292;l<=5311;l++)P[l]=0;for(l=5329;l<=5331;l++)P[l]=0;for(l=5343;l<=5349;l++)P[l]=0;for(l=5355;l<=5357;l++)P[l]=0;for(l=5387;l<=5389;l++)P[l]=0;for(l=5459;l<=5463;l++)P[l]=0;for(l=5479;l<=5482;l++)P[l]=0;for(l=5518;l<=5520;l++)P[l]=0;for(l=5530;l<=5539;l++)P[l]=0;for(l=5550;l<=5552;l++)P[l]=0;for(l=5562;l<=5583;l++)P[l]=0;for(l=5623;l<=5625;l++)P[l]=2;for(l=5631;l<=5639;l++)P[l]=0;for(l=5649;l<=5653;l++)P[l]=0;for(l=5663;l<=5680;l++)P[l]=0;for(l=5682;l<=5685;l++)P[l]=0;for(l=5875;l<=5877;l++)P[l]=0;for(l=5896;l<=5899;l++)P[l]=0;for(l=5921;l<=5940;l++)P[l]=0;for(l=6050;l<=6125;l++)P[l]=0;for(l=6244;l<=6275;l++)P[l]=0;for(l=6328;l<=6348;l++)P[l]=0;for(l=6350;l<=6356;l++)P[l]=0;for(l=6366;l<=6372;l++)P[l]=0;for(l=6381;l<=6387;l++)P[l]=0;for(l=6393;l<=6404;l++)P[l]=0;for(l=6480;l<=6483;l++)P[l]=0;for(l=6511;l<=6514;l++)P[l]=0;for(l=6579;l<=6581;l++)P[l]=0;for(l=6619;l<=6624;l++)P[l]=0;for(l=6625;l<=6627;l++)P[l]=2;for(l=6628;l<=6632;l++)P[l]=0;for(l=6634;l<=6637;l++)P[l]=0;for(l=6669;l<=6692;l++)P[l]=0;for(l=6707;l<=6709;l++)P[l]=0;for(l=6720;l<=6723;l++)P[l]=0;for(l=6732;l<=6738;l++)P[l]=0;for(l=6931;l<=6933;l++)P[l]=0;for(l=6956;l<=6959;l++)P[l]=0;for(l=7005;l<=7007;l++)P[l]=0;for(l=7057;l<=7070;l++)P[l]=2;for(l=7074;l<=7082;l++)P[l]=0;for(l=7109;l<=7118;l++)P[l]=0;for(l=7119;l<=7127;l++)P[l]=1;for(l=7374;l<=7376;l++)P[l]=0;for(l=7528;l<=7586;l++)P[l]=0;for(l=7587;l<=7645;l++)P[l]=2;for(l=7692;l<=7696;l++)P[l]=0;for(l=7755;l<=7787;l++)P[l]=0;for(l=7791;l<=7795;l++)P[l]=0;for(l=7799;l<=7801;l++)P[l]=0;for(l=7803;l<=7805;l++)P[l]=0;for(l=7825;l<=7831;l++)P[l]=0;for(l=7845;l<=7859;l++)P[l]=0;for(l=8013;l<=8032;l++)P[l]=0;for(l=8065;l<=8068;l++)P[l]=1;for(l=8518;l<=8529;l++)P[l]=2;for(l=8533;l<=8536;l++)P[l]=2;for(l=8538;l<=8540;l++)P[l]=2;for(l=8677;l<=8679;l++)P[l]=0;for(l=8836;l<=8840;l++)P[l]=0;for(l=8857;l<=8859;l++)P[l]=0;for(l=8908;l<=8910;l++)P[l]=0;for(l=9154;l<=9159;l++)P[l]=0;for(l=9205;l<=9218;l++)P[l]=0;for(l=9271;l<=9273;l++)P[l]=0;for(l=9295;l<=9297;l++)P[l]=0;for(l=9356;l<=9360;l++)P[l]=0;for(l=9404;l<=9407;l++)P[l]=0;for(l=9476;l<=9482;l++)P[l]=0;for(l=9487;l<=9494;l++)P[l]=0;for(l=9697;l<=9699;l++)P[l]=0;for(l=9821;l<=9865;l++)P[l]=0;for(l=10285;l<=10291;l++)P[l]=0;for(l=10314;l<=10317;l++)P[l]=0;for(l=10448;l<=10465;l++)P[l]=0;for(l=10731;l<=10733;l++)P[l]=0;for(l=11114;l<=11118;l++)P[l]=0;for(l=20004;l<=20032;l++)P[l]=0;for(l=20047;l<=20049;l++)P[l]=0;for(l=20062;l<=20092;l++)P[l]=0;for(l=20135;l<=20138;l++)P[l]=0;for(l=20248;l<=20258;l++)P[l]=0;for(l=20348;l<=20358;l++)P[l]=0;for(l=20436;l<=20440;l++)P[l]=0;for(l=20822;l<=20824;l++)P[l]=0;for(l=20904;l<=20932;l++)P[l]=0;for(l=20934;l<=20936;l++)P[l]=0;for(l=21004;l<=21032;l++)P[l]=0;for(l=21035;l<=21037;l++)P[l]=0;for(l=21095;l<=21097;l++)P[l]=0;for(l=21148;l<=21150;l++)P[l]=0;for(l=21207;l<=21264;l++)P[l]=0;for(l=21307;l<=21364;l++)P[l]=0;for(l=21413;l<=21423;l++)P[l]=0;for(l=21453;l<=21463;l++)P[l]=0;for(l=21473;l<=21483;l++)P[l]=0;for(l=21780;l<=21782;l++)P[l]=0;for(l=21891;l<=21894;l++)P[l]=0;for(l=21896;l<=21899;l++)P[l]=0;for(l=22171;l<=22177;l++)P[l]=0;for(l=22181;l<=22187;l++)P[l]=0;for(l=22191;l<=22197;l++)P[l]=0;for(l=22207;l<=22222;l++)P[l]=0;for(l=22229;l<=22232;l++)P[l]=0;for(l=22234;l<=22236;l++)P[l]=0;for(l=22243;l<=22250;l++)P[l]=0;for(l=22262;l<=22265;l++)P[l]=0;for(l=22307;l<=22322;l++)P[l]=0;for(l=22348;l<=22357;l++)P[l]=0;for(l=22407;l<=22422;l++)P[l]=0;for(l=22462;l<=22465;l++)P[l]=0;for(l=22521;l<=22525;l++)P[l]=0;for(l=22607;l<=22622;l++)P[l]=0;for(l=22641;l<=22646;l++)P[l]=0;for(l=22648;l<=22657;l++)P[l]=0;for(l=22707;l<=22722;l++)P[l]=0;for(l=22762;l<=22765;l++)P[l]=0;for(l=22807;l<=22822;l++)P[l]=0;for(l=22991;l<=22994;l++)P[l]=0;for(l=23028;l<=23038;l++)P[l]=0;for(l=23301;l<=23333;l++)P[l]=2;for(l=23830;l<=23853;l++)P[l]=0;for(l=23866;l<=23872;l++)P[l]=0;for(l=23877;l<=23884;l++)P[l]=0;for(l=23886;l<=23894;l++)P[l]=0;for(l=23946;l<=23948;l++)P[l]=0;for(l=24311;l<=24313;l++)P[l]=0;for(l=24342;l<=24347;l++)P[l]=0;for(l=24370;l<=24374;l++)P[l]=10;for(l=24375;l<=24381;l++)P[l]=0;for(l=24718;l<=24721;l++)P[l]=0;for(l=24817;l<=24821;l++)P[l]=0;for(l=24877;l<=24882;l++)P[l]=0;for(l=24891;l<=24893;l++)P[l]=0;for(l=25391;l<=25395;l++)P[l]=0;for(l=25828;l<=25838;l++)P[l]=0;for(l=26191;l<=26195;l++)P[l]=0;for(l=26391;l<=26393;l++)P[l]=0;for(l=26701;l<=26722;l++)P[l]=0;for(l=26729;l<=26799;l++)P[l]=2;for(l=26801;l<=26803;l++)P[l]=2;for(l=26811;l<=26813;l++)P[l]=2;for(l=26847;l<=26870;l++)P[l]=2;for(l=26891;l<=26899;l++)P[l]=0;for(l=26901;l<=26923;l++)P[l]=0;for(l=26929;l<=26946;l++)P[l]=0;for(l=26948;l<=26998;l++)P[l]=0;for(l=27037;l<=27040;l++)P[l]=0;for(l=27205;l<=27232;l++)P[l]=0;for(l=27258;l<=27260;l++)P[l]=0;for(l=27391;l<=27398;l++)P[l]=0;for(l=27561;l<=27564;l++)P[l]=0;for(l=27571;l<=27574;l++)P[l]=0;for(l=27581;l<=27584;l++)P[l]=0;for(l=27591;l<=27594;l++)P[l]=0;for(l=27700;l<=27707;l++)P[l]=0;for(l=28191;l<=28193;l++)P[l]=0;for(l=28348;l<=28358;l++)P[l]=0;for(l=28402;l<=28432;l++)P[l]=0;for(l=28462;l<=28492;l++)P[l]=0;for(l=29118;l<=29122;l++)P[l]=0;for(l=29168;l<=29172;l++)P[l]=0;for(l=29177;l<=29185;l++)P[l]=0;for(l=29187;l<=29195;l++)P[l]=0;for(l=29900;l<=29903;l++)P[l]=0;for(l=30161;l<=30179;l++)P[l]=0;for(l=30491;l<=30494;l++)P[l]=0;for(l=30729;l<=30732;l++)P[l]=0;for(l=31251;l<=31259;l++)P[l]=0;for(l=31265;l<=31268;l++)P[l]=0;for(l=31275;l<=31279;l++)P[l]=0;for(l=31281;l<=31297;l++)P[l]=0;for(l=31461;l<=31469;l++)P[l]=0;for(l=31491;l<=31495;l++)P[l]=0;for(l=31917;l<=31922;l++)P[l]=0;for(l=31965;l<=32e3;l++)P[l]=0;for(l=32001;l<=32003;l++)P[l]=2;for(l=32005;l<=32031;l++)P[l]=2;for(l=32033;l<=32060;l++)P[l]=2;for(l=32064;l<=32067;l++)P[l]=2;for(l=32074;l<=32077;l++)P[l]=2;for(l=32081;l<=32086;l++)P[l]=0;for(l=32107;l<=32130;l++)P[l]=0;for(l=32133;l<=32159;l++)P[l]=0;for(l=32164;l<=32167;l++)P[l]=2;for(l=32180;l<=32199;l++)P[l]=0;for(l=32201;l<=32260;l++)P[l]=0;for(l=32301;l<=32360;l++)P[l]=0;for(l=32401;l<=32460;l++)P[l]=0;for(l=32501;l<=32560;l++)P[l]=0;for(l=32601;l<=32662;l++)P[l]=0;for(l=32664;l<=32667;l++)P[l]=2;for(l=32701;l<=32761;l++)P[l]=0;for(l=53001;l<=53004;l++)P[l]=0;for(l=53008;l<=53019;l++)P[l]=0;for(l=53021;l<=53032;l++)P[l]=0;for(l=53034;l<=53037;l++)P[l]=0;for(l=53042;l<=53046;l++)P[l]=0;for(l=53074;l<=53080;l++)P[l]=0;for(l=54001;l<=54004;l++)P[l]=0;for(l=54008;l<=54019;l++)P[l]=0;for(l=54021;l<=54032;l++)P[l]=0;for(l=54034;l<=54037;l++)P[l]=0;for(l=54042;l<=54046;l++)P[l]=0;for(l=54048;l<=54053;l++)P[l]=0;for(l=54074;l<=54080;l++)P[l]=0;for(l=54098;l<=54101;l++)P[l]=0;for(l=102001;l<=102040;l++)P[l]=0;for(l=102042;l<=102063;l++)P[l]=0;for(l=102065;l<=102067;l++)P[l]=0;for(l=102070;l<=102117;l++)P[l]=0;for(l=102122;l<=102216;l++)P[l]=0;for(l=102221;l<=102377;l++)P[l]=0;for(l=102382;l<=102388;l++)P[l]=0;for(l=102389;l<=102398;l++)P[l]=2;for(l=102399;l<=102444;l++)P[l]=0;for(l=102445;l<=102447;l++)P[l]=2;for(l=102448;l<=102458;l++)P[l]=0;for(l=102459;l<=102468;l++)P[l]=2;for(l=102469;l<=102499;l++)P[l]=0;for(l=102500;l<=102519;l++)P[l]=1;for(l=102520;l<=102524;l++)P[l]=0;for(l=102525;l<=102529;l++)P[l]=2;for(l=102530;l<=102588;l++)P[l]=0;for(l=102590;l<=102598;l++)P[l]=0;for(l=102601;l<=102603;l++)P[l]=0;for(l=102605;l<=102628;l++)P[l]=0;for(l=102629;l<=102646;l++)P[l]=2;for(l=102648;l<=102700;l++)P[l]=2;for(l=102701;l<=102703;l++)P[l]=0;for(l=102707;l<=102730;l++)P[l]=2;for(l=102733;l<=102758;l++)P[l]=2;for(l=102767;l<=102900;l++)P[l]=0;for(l=102901;l<=102933;l++)P[l]=2;for(l=102934;l<=102950;l++)P[l]=13;for(l=102951;l<=102963;l++)P[l]=0;for(l=102965;l<=102969;l++)P[l]=0;for(l=102971;l<=102973;l++)P[l]=0;for(l=102975;l<=102989;l++)P[l]=0;for(l=102990;l<=102992;l++)P[l]=1;for(l=102997;l<=103002;l++)P[l]=0;for(l=103003;l<=103008;l++)P[l]=2;for(l=103009;l<=103011;l++)P[l]=0;for(l=103012;l<=103014;l++)P[l]=2;for(l=103019;l<=103021;l++)P[l]=0;for(l=103022;l<=103024;l++)P[l]=2;for(l=103029;l<=103031;l++)P[l]=0;for(l=103032;l<=103034;l++)P[l]=2;for(l=103065;l<=103068;l++)P[l]=0;for(l=103074;l<=103076;l++)P[l]=0;for(l=103077;l<=103079;l++)P[l]=1;for(l=103080;l<=103082;l++)P[l]=0;for(l=103083;l<=103085;l++)P[l]=2;for(l=103090;l<=103093;l++)P[l]=0;for(l=103097;l<=103099;l++)P[l]=0;for(l=103100;l<=103102;l++)P[l]=2;for(l=103107;l<=103109;l++)P[l]=0;for(l=103110;l<=103112;l++)P[l]=2;for(l=103113;l<=103116;l++)P[l]=0;for(l=103117;l<=103120;l++)P[l]=2;for(l=103153;l<=103157;l++)P[l]=0;for(l=103158;l<=103162;l++)P[l]=2;for(l=103163;l<=103165;l++)P[l]=0;for(l=103166;l<=103168;l++)P[l]=1;for(l=103169;l<=103171;l++)P[l]=2;for(l=103186;l<=103188;l++)P[l]=0;for(l=103189;l<=103191;l++)P[l]=2;for(l=103192;l<=103195;l++)P[l]=0;for(l=103196;l<=103199;l++)P[l]=2;for(l=103200;l<=103224;l++)P[l]=0;for(l=103225;l<=103227;l++)P[l]=1;for(l=103232;l<=103237;l++)P[l]=0;for(l=103238;l<=103243;l++)P[l]=2;for(l=103244;l<=103246;l++)P[l]=0;for(l=103247;l<=103249;l++)P[l]=2;for(l=103254;l<=103256;l++)P[l]=0;for(l=103257;l<=103259;l++)P[l]=2;for(l=103264;l<=103266;l++)P[l]=0;for(l=103267;l<=103269;l++)P[l]=2;for(l=103300;l<=103375;l++)P[l]=0;for(l=103381;l<=103383;l++)P[l]=0;for(l=103384;l<=103386;l++)P[l]=1;for(l=103387;l<=103389;l++)P[l]=0;for(l=103390;l<=103392;l++)P[l]=2;for(l=103397;l<=103399;l++)P[l]=0;for(l=103400;l<=103471;l++)P[l]=2;for(l=103476;l<=103478;l++)P[l]=0;for(l=103479;l<=103481;l++)P[l]=2;for(l=103486;l<=103488;l++)P[l]=0;for(l=103489;l<=103491;l++)P[l]=2;for(l=103492;l<=103495;l++)P[l]=0;for(l=103496;l<=103499;l++)P[l]=2;for(l=103528;l<=103543;l++)P[l]=0;for(l=103544;l<=103548;l++)P[l]=2;for(l=103549;l<=103551;l++)P[l]=0;for(l=103552;l<=103554;l++)P[l]=1;for(l=103555;l<=103557;l++)P[l]=2;for(l=103558;l<=103560;l++)P[l]=0;for(l=103571;l<=103573;l++)P[l]=0;for(l=103574;l<=103576;l++)P[l]=2;for(l=103577;l<=103580;l++)P[l]=0;for(l=103581;l<=103583;l++)P[l]=2;for(l=103595;l<=103694;l++)P[l]=0;for(l=103696;l<=103699;l++)P[l]=0;for(l=103700;l<=103793;l++)P[l]=2;for(l=103794;l<=103890;l++)P[l]=0;for(l=103891;l<=103896;l++)P[l]=2;for(l=103900;l<=103971;l++)P[l]=2;for(l=103972;l<=103977;l++)P[l]=0;for(l=112e3;l<=112101;l++)P[l]=0});function Jc(e,t){if(e===t)return!0;if(e==null||t==null)return!1;let r=e.wkid,n=t.wkid;if(r!=null||n!=null){if(r===n||Cs(e)&&Cs(t))return!0;let s=e.latestWkid;if(s!=null&&n===s)return!0;let c=t.latestWkid;return c!=null&&r===c}let i,o;return e.wkt2&&t.wkt2?(i=e.wkt2,o=t.wkt2):e.wkt&&t.wkt&&(i=e.wkt,o=t.wkt),!(!i||!o)&&i.toUpperCase()===o.toUpperCase()}function Gu(e){let t=e?.wkid;return t!=null&&t>=2e3&&uO[t]||null}function Wg(e){if(!fO(e))return!1;let{wkid:t}=e;if(t)return P[t]==null;let r=e.wkt2||e.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function rm(e){return e?.wkid===4326}function Cs(e){let t=e?.wkid;return t!=null&&t>=2e3&&lO.includes(t)}function l5(e){return e===em.GCSMARS2000||e===em.GCSMARS2000_SPHERE}function u5(e){return e===em.GCSMOON2000}function dO(e){let t=e?.wkid;return t!=null&&t>=2e3&&SJ.includes(t)}function fO(e){if(e==null)return!1;let t=e.wkid;return t!=null&&t>=2e3||e.wkt2!=null||e.wkt!=null}var lO,_J,SJ,tm,c5,a5,uO,d5,f5,pO,pa=V(()=>{ic();aO();cO();s5();lO=[102100,102113,3857,3785,900913],_J=[104905,104971],SJ=[4326,...lO,..._J],tm=[-20037508342788905e-9,20037508342788905e-9],c5=[-20037508342787e-6,20037508342787e-6],a5={wkTemplate:'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',valid:tm,origin:c5,dx:1e-5},uO={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:tm,origin:c5,dx:1e-5},102100:a5,3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:tm,origin:c5,dx:1e-5},3857:a5,4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},900913:a5};d5={wkid:4326,wkt:fs(uO[4326].wkTemplate,{Central_Meridian:"0.0"})},f5={wkid:102100,latestWkid:3857},pO={wkid:32662}});function p5(e){return{wkt:`GEOCCS["Spherical geocentric",
|
|
113
113
|
DATUM["Not specified",
|
|
114
114
|
SPHEROID["Sphere",${e.radius},0]],
|
|
115
115
|
PRIMEM["Greenwich",0.0,
|