@arcgis/coding-components 4.31.0-next.21 → 4.31.0-next.22
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/arcgis-coding-components.esm.js +2 -2
- package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +433 -22
- package/dist/arcgis-coding-components/index.esm.js +2 -2
- package/dist/arcgis-coding-components/{p-64137fec.js → p-04046096.js} +2 -2
- package/dist/arcgis-coding-components/{p-e1f9b463.entry.js → p-1e246aa1.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-cdc52d2f.js → p-31a7f388.js} +1 -1
- package/dist/arcgis-coding-components/{p-57b8bcd7.js → p-5c15b81f.js} +1 -1
- package/dist/arcgis-coding-components/{p-e5a924a1.js → p-698f50b7.js} +1 -1
- package/dist/arcgis-coding-components/{p-ff62d134.js → p-8cb2cec6.js} +2 -2
- package/dist/arcgis-coding-components/{p-8eb7e694.js → p-a223495a.js} +2 -2
- package/dist/arcgis-coding-components/p-a7ea4ad1.js +6 -0
- package/dist/arcgis-coding-components/{p-6621a80f.js → p-ae29fd38.js} +2 -2
- package/dist/arcgis-coding-components/{p-d7d1f130.js → p-aef68788.js} +9 -9
- package/dist/arcgis-coding-components/{p-f2d64a9d.js → p-b6f71862.js} +2 -2
- package/dist/arcgis-coding-components/{p-a2341e0c.js → p-bf3f0478.js} +2 -2
- package/dist/arcgis-coding-components/{p-1b799777.js → p-c49159a2.js} +2 -2
- package/dist/arcgis-coding-components/{p-56266a64.js → p-ccafb99e.js} +2 -2
- package/dist/arcgis-coding-components/{p-cbee273f.js → p-d0ac8a70.js} +2 -2
- package/dist/arcgis-coding-components/{p-4d5cf512.entry.js → p-d7d799d4.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-b715834b.js → p-ea1ee0c8.js} +3 -3
- package/dist/arcgis-coding-components/{p-ffce0588.entry.js → p-f3831703.entry.js} +2 -2
- package/dist/arcgis-coding-components/{p-5b67b62b.js → p-f71e9ed5.js} +2 -2
- package/dist/cjs/{app-globals-a9ef3ca8.js → app-globals-f02809f3.js} +1 -1
- package/dist/cjs/{arcade-defaults-f5241680.js → arcade-defaults-40184900.js} +4 -4
- package/dist/cjs/{arcade-language-features-0b9f3947.js → arcade-language-features-535d0206.js} +2 -2
- package/dist/cjs/{arcade-mode-cc08d9cd.js → arcade-mode-7b5b3660.js} +3 -3
- package/dist/cjs/arcgis-arcade-editor_6.cjs.entry.js +5 -5
- package/dist/cjs/arcgis-coding-components.cjs.js +3 -3
- package/dist/cjs/arcgis-sql-expression-editor.cjs.entry.js +4 -4
- package/dist/cjs/arcgis-sql-expression-fields.cjs.entry.js +4 -4
- package/dist/cjs/{css-bb6a49ec.js → css-259c266e.js} +1 -1
- package/dist/cjs/{cssMode-e7fac7d7.js → cssMode-02a6802b.js} +2 -2
- package/dist/cjs/{html-7ff4071d.js → html-e05ebdd6.js} +2 -2
- package/dist/cjs/{htmlMode-c89193ec.js → htmlMode-d6ac0a56.js} +2 -2
- package/dist/cjs/{index-4b7880ab.js → index-14b1186a.js} +1 -1
- package/dist/cjs/index.cjs.js +4 -4
- package/dist/cjs/{javascript-864c0220.js → javascript-2437a527.js} +3 -3
- package/dist/cjs/{jsonMode-ac4a7be7.js → jsonMode-fbeb801a.js} +2 -2
- package/dist/cjs/{language-defaults-base-57b37f9f.js → language-defaults-base-a8d8e0f8.js} +29 -9
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{sql-expr-defaults-245b036d.js → sql-expr-defaults-c040d302.js} +4 -4
- package/dist/cjs/sql-expr-mode-8bdb4b49.js +1825 -0
- package/dist/cjs/{tsMode-d30d4ab1.js → tsMode-66858edd.js} +2 -2
- package/dist/cjs/{typescript-6c87ddb3.js → typescript-b3955cad.js} +2 -2
- package/dist/components/arcade-defaults.js +1 -1
- package/dist/components/arcade-language-features.js +1 -1
- package/dist/components/arcade-mode.js +1 -1
- package/dist/components/arcade-results.js +1 -1
- package/dist/components/arcade-suggestions.js +1 -1
- package/dist/components/arcade-variables.js +1 -1
- package/dist/components/arcgis-arcade-editor.js +1 -1
- package/dist/components/arcgis-arcade-results.js +1 -1
- package/dist/components/arcgis-arcade-suggestions.js +1 -1
- package/dist/components/arcgis-arcade-variables.js +1 -1
- package/dist/components/arcgis-assets.d.ts +1 -1
- package/dist/components/arcgis-assets.js +1 -1
- package/dist/components/arcgis-code-editor.js +1 -1
- package/dist/components/arcgis-language-api-panel.js +1 -1
- package/dist/components/arcgis-sql-expression-editor.js +1 -1
- package/dist/components/arcgis-sql-expression-fields.js +1 -1
- package/dist/components/chunk-2JTWBRMN.js +1 -1
- package/dist/components/code-editor.js +1 -1
- package/dist/components/fields.js +20 -2
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js +1 -1
- package/dist/components/language-api-panel.js +1 -1
- package/dist/components/language-defaults-base.js +1 -1
- package/dist/components/markdown.js +1 -1
- package/dist/components/sql-expr-defaults.js +1 -1
- package/dist/components/sql-expr-mode.js +33 -19051
- package/dist/components/sql-expression-fields.js +1 -1
- package/dist/components/useT9n.js +1 -1
- package/dist/components/utilities.js +1 -1
- package/dist/esm/{app-globals-6d0ca11d.js → app-globals-8d4f9d3b.js} +1 -1
- package/dist/esm/{arcade-defaults-066445c4.js → arcade-defaults-3c61c6dd.js} +4 -4
- package/dist/esm/{arcade-language-features-0e00c199.js → arcade-language-features-678161da.js} +2 -2
- package/dist/esm/{arcade-mode-abf1e1cf.js → arcade-mode-df03d5ec.js} +3 -3
- package/dist/esm/arcgis-arcade-editor_6.entry.js +5 -5
- package/dist/esm/arcgis-coding-components.js +4 -4
- package/dist/esm/arcgis-sql-expression-editor.entry.js +4 -4
- package/dist/esm/arcgis-sql-expression-fields.entry.js +4 -4
- package/dist/esm/{css-c6dae12d.js → css-140b3abe.js} +1 -1
- package/dist/esm/{cssMode-052bb603.js → cssMode-812f7d07.js} +2 -2
- package/dist/esm/{html-572696a1.js → html-41815a5d.js} +2 -2
- package/dist/esm/{htmlMode-fc184f2d.js → htmlMode-943d8283.js} +2 -2
- package/dist/esm/{index-0edd9846.js → index-f59fc370.js} +1 -1
- package/dist/esm/index.js +4 -4
- package/dist/esm/{javascript-8bfc0096.js → javascript-0ba8a1a5.js} +3 -3
- package/dist/esm/{jsonMode-7adf94ff.js → jsonMode-bd76e932.js} +2 -2
- package/dist/esm/{language-defaults-base-85a7f476.js → language-defaults-base-e209fc24.js} +28 -10
- package/dist/esm/loader.js +4 -4
- package/dist/esm/{sql-expr-defaults-be84ec7f.js → sql-expr-defaults-3a4b9b1b.js} +4 -4
- package/dist/esm/sql-expr-mode-ebe0129d.js +1821 -0
- package/dist/esm/{tsMode-d10773c8.js → tsMode-a5f7147d.js} +2 -2
- package/dist/esm/{typescript-9491f23e.js → typescript-ec0c2161.js} +2 -2
- package/dist/loader/cdn.js +1 -1
- package/dist/loader/index.cjs.js +1 -1
- package/dist/loader/index.es2017.js +1 -1
- package/dist/loader/index.js +1 -1
- package/dist/types/utils/sql-expr-monaco/sql-expr-completion.d.ts +1 -1
- package/dist/types/utils/sql-expr-monaco/sql-expr-validation-utils.d.ts +7 -8
- package/dist/types/utils/sql-expr-monaco/sql-expr-validation.d.ts +2 -3
- package/dist/types/utils/sql-expr-monaco/types.d.ts +2 -6
- package/package.json +13 -14
- package/dist/arcgis-coding-components/p-77dd5521.js +0 -6
- package/dist/cjs/sql-expr-mode-304f5ce2.js +0 -20844
- package/dist/esm/sql-expr-mode-a4413e5c.js +0 -20840
- package/dist/types/utils/sql-expr-monaco/DependentFiles/DateOnly.d.ts +0 -41
- package/dist/types/utils/sql-expr-monaco/DependentFiles/SqlInterval.d.ts +0 -16
- package/dist/types/utils/sql-expr-monaco/DependentFiles/SqlTimestampOffset.d.ts +0 -26
- package/dist/types/utils/sql-expr-monaco/DependentFiles/TimeOnly.d.ts +0 -37
- package/dist/types/utils/sql-expr-monaco/DependentFiles/UnknownTimeZone.d.ts +0 -11
- package/dist/types/utils/sql-expr-monaco/DependentFiles/WhereGrammar.d.ts +0 -122
- package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlCompareUtils.d.ts +0 -5
- package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlDateParsingUtils.d.ts +0 -18
- package/dist/types/utils/sql-expr-monaco/DependentFiles/sqlUtils.d.ts +0 -6
- package/dist/types/utils/sql-expr-monaco/DependentFiles/standardizedFunctions.d.ts +0 -156
- package/dist/types/utils/sql-expr-monaco/DependentFiles/support.d.ts +0 -150
- package/dist/types/utils/sql-expr-monaco/PeggyGrammar/sql92grammar.d.ts +0 -1397
|
@@ -1,33 +1,444 @@
|
|
|
1
|
-
"use strict";(()=>{var ri=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?sr.isErrorNoTelemetry(t)?new sr(t.message+`
|
|
1
|
+
"use strict";(()=>{var Gk=Object.defineProperty;var JS=e=>t=>{var r=e[t];if(r)return r();throw new Error("Module not found in bundle: "+t)};var P=(e,t)=>()=>(e&&(t=e(e=0)),t);var XS=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ei=(e,t)=>{for(var r in t)Gk(e,r,{get:t[r],enumerable:!0})};var Is,_o=P(()=>{Is=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}};Is._m=2147483647,Is._a=48271,Is._c=0});function vo(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 h2(e,t,r,n){n=n||fx;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 px(e,t,r=e.length,n=t.length,i,o){if(n===0||r===0)return r;Nn.clear();for(let a=0;a<n;++a)Nn.add(t[a]);i=i||fx;let s=Math.max(0,i.last-10);for(let a=s;a<r;++a)if(Nn.has(e[a])&&(o?.push(e[a]),Nn.delete(e[a]),e[a]=e[r-1],--r,--a,Nn.size===0||r===0))return Nn.clear(),r;for(let a=0;a<s;++a)if(Nn.has(e[a])&&(o?.push(e[a]),Nn.delete(e[a]),e[a]=e[r-1],--r,--a,Nn.size===0||r===0))return Nn.clear(),r;return Nn.clear(),r}function mx(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function hx(e,t){return e!=null}var LR,PK,tu,fx,Nn,LK,So=P(()=>{_o();LR=1.5,PK=1/LR;tu=class{constructor(){this.last=0}},fx=new tu;Nn=new Set;LK=new Is});var gx=P(()=>{});function X(e){return typeof xo[e]=="function"?xo[e]=xo[e](globalThis):xo[e]}var xo,Fe=P(()=>{xo=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},X.add=(e,t,r,n)=>((n||xo[e]===void 0)&&(xo[e]=t),r&&X(e)),X.cache=xo,X.add("big-integer-warning-enabled",!0),X.add("esri-deprecation-warnings",!0),X.add("esri-tests-disable-screenshots",!1),X.add("esri-tests-use-full-window",!1),X.add("esri-tests-post-to-influx",!0),X.add("esri-cim-animations-enable-status","enabled"),X.add("esri-cim-animations-spotlight",!1),X.add("esri-cim-animations-freeze-time",!1),(()=>{X.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(X.add("host-browser",e),X.add("host-node",typeof globalThis.process=="object"&&globalThis.process.versions?.node&&globalThis.process.versions.v8),X.add("dom",e),X("host-browser")){let t=navigator,r=t.userAgent,n=t.appVersion,i=parseFloat(n);if(X.add("wp",parseFloat(r.split("Windows Phone")[1])||void 0),X.add("msapp",parseFloat(r.split("MSAppHost/")[1])||void 0),X.add("khtml",n.includes("Konqueror")?i:void 0),X.add("edge",parseFloat(r.split("Edge/")[1])||void 0),X.add("opr",parseFloat(r.split("OPR/")[1])||void 0),X.add("webkit",!X("wp")&&!X("edge")&&parseFloat(r.split("WebKit/")[1])||void 0),X.add("chrome",!X("edge")&&!X("opr")&&parseFloat(r.split("Chrome/")[1])||void 0),X.add("android",!X("wp")&&parseFloat(r.split("Android ")[1])||void 0),X.add("safari",!n.includes("Safari")||X("wp")||X("chrome")||X("android")||X("edge")||X("opr")?void 0:parseFloat(n.split("Version/")[1])),X.add("mac",n.includes("Macintosh")),!X("wp")&&/(iPhone|iPod|iPad)/.test(r)){let o=RegExp.$1.replace(/P/,"p"),s=/OS ([\d_]+)/.test(r)?RegExp.$1:"1",a=parseFloat(s.replace(/_/,".").replaceAll("_",""));X.add(o,a),X.add("ios",a)}X("webkit")||(!r.includes("Gecko")||X("wp")||X("khtml")||X("edge")||X.add("mozilla",i),X("mozilla")&&X.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&&X.add("esri-mobile",t),r&&X.add("esri-iPhone",r),X.add("esri-geolocation",!!navigator.geolocation)}X.add("esri-wasm","WebAssembly"in globalThis),X.add("esri-performance-mode-frames-between-render",20),X.add("esri-force-performance-mode",!1),X.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in globalThis,t=globalThis.crossOriginIsolated===!1;return e&&!t}),X.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))}),X.add("esri-atomics","Atomics"in globalThis),X.add("esri-workers","Worker"in globalThis),X.add("web-feat:cache","caches"in globalThis),X.add("esri-workers-arraybuffer-transfer",!X("safari")||Number(X("safari"))>=12),X.add("workers-pool-size",8),X.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),X.add("featurelayer-simplify-payload-size-factors",[1,1,4]),X.add("featurelayer-fast-triangulation-enabled",!0),X.add("featurelayer-animation-enabled",!0),X.add("featurelayer-snapshot-enabled",!0),X.add("featurelayer-snapshot-point-min-threshold",8e4),X.add("featurelayer-snapshot-point-max-threshold",4e5),X.add("featurelayer-snapshot-point-coverage",.1),X.add("featurelayer-query-max-depth",4),X.add("featurelayer-query-pausing-enabled",!1),X.add("featurelayer-advanced-symbols",!1),X.add("featurelayer-pbf",!0),X.add("featurelayer-pbf-statistics",!1),X.add("feature-layers-workers",!0),X.add("feature-polyline-generalization-factor",1),X.add("mapview-transitions-duration",200),X.add("mapview-essential-goto-duration",200),X.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),X.add("mapserver-pbf-version-support",10.81),X.add("mapservice-popup-identify-max-tolerance",20),X("host-webworker")||X("host-browser")&&(X.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),X.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(()=>{X.add("esri-image-decode",!0,!0,!0)}).catch(()=>{X.add("esri-image-decode",!1,!0,!0)})}return!1}),X.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()});function wx(e){return e?.constructor?.name==="Int8Array"}function yx(e){return e?.constructor?.name==="Uint8Array"}function bx(e){return e?.constructor?.name==="Uint8ClampedArray"}function _x(e){return e?.constructor?.name==="Int16Array"}function vx(e){return e?.constructor?.name==="Uint16Array"}function Sx(e){return e?.constructor?.name==="Int32Array"}function xx(e){return e?.constructor?.name==="Uint32Array"}function Cx(e){return e?.constructor?.name==="Float32Array"}function Tx(e){return e?.constructor?.name==="Float64Array"}var Ex=P(()=>{gx();Fe()});function Oh(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&Oh(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&e[r]===void 0&&delete e[r];return e}function Le(e){if(!e||typeof e!="object"||typeof e=="function")return e;let t=NR(e);if(t!=null)return t;if(IR(e))return e.clone();if(AR(e))return e.map(Le);if(kR(e))return e.clone();let r={};for(let n of Object.getOwnPropertyNames(e))r[n]=Le(e[n]);return r}function IR(e){return typeof e.clone=="function"}function AR(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function kR(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function Mx(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function NR(e){if(wx(e)||yx(e)||bx(e)||_x(e)||vx(e)||Sx(e)||xx(e)||Cx(e)||Tx(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,Le(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(Le(r));return t}return null}function ru(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 Px(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)&&vo(e,t):e instanceof Set?t instanceof Set&&DR(e,t):e instanceof Map?t instanceof Map&&OR(e,t):!!Mx(e)&&Mx(t)&&RR(e,t))}function RR(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 DR(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function OR(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 Qt=P(()=>{So();Ex()});function Lx(e,t,r=!1){return Ax(e,t,r)}function wn(e,t){if(t!=null)return t[e]||Ix(e.split("."),!1,t)}function Fi(e,t,r){let n=e.split("."),i=n.pop(),o=Ix(n,!0,r);o&&i&&(o[i]=t)}function Ix(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 Ax(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]=Le(s),n):(Array.isArray(s)||Array.isArray(n)?(o=o?Array.isArray(o)?n[i]=o.concat():n[i]=[o]:n[i]=[],s&&(Array.isArray(s)||(s=[s]),r?s.forEach(a=>{o.includes(a)||o.push(a)}):n[i]=s.concat())):s&&typeof s=="object"?n[i]=Ax(o,s,r):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=s),n)},e||{}):e}var ai=P(()=>{Qt()});function kx(e){return e??""}function li(e,t){return t?e.replaceAll($R,typeof t=="object"?(r,n)=>kx(wn(n,t)):(r,n)=>kx(t(n))):e}function Nx(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>t?.includes(r)?r:`\\${r}`)}function Rx(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var $R,Co=P(()=>{ai();$R=/\{([^}]+)\}/g});var Vi,$h,Fh,Vh,Rn,nl,At,Dn,To=P(()=>{Vi=class extends Error{},$h=class extends Vi{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},Fh=class extends Vi{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},Vh=class extends Vi{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},Rn=class extends Vi{},nl=class extends Vi{constructor(t){super(`Invalid unit ${t}`)}},At=class extends Vi{},Dn=class extends Vi{constructor(){super("Zone is an abstract class")}}});var le,On,Qr,Eo,nu,g2,iu,ou,su,au,lu,cu,uu,du,fu,pu,mu,hu,gu,wu,w2,yu,bu,_u,vu,Su=P(()=>{le="numeric",On="short",Qr="long",Eo={year:le,month:le,day:le},nu={year:le,month:On,day:le},g2={year:le,month:On,day:le,weekday:On},iu={year:le,month:Qr,day:le},ou={year:le,month:Qr,day:le,weekday:Qr},su={hour:le,minute:le},au={hour:le,minute:le,second:le},lu={hour:le,minute:le,second:le,timeZoneName:On},cu={hour:le,minute:le,second:le,timeZoneName:Qr},uu={hour:le,minute:le,hourCycle:"h23"},du={hour:le,minute:le,second:le,hourCycle:"h23"},fu={hour:le,minute:le,second:le,hourCycle:"h23",timeZoneName:On},pu={hour:le,minute:le,second:le,hourCycle:"h23",timeZoneName:Qr},mu={year:le,month:le,day:le,hour:le,minute:le},hu={year:le,month:le,day:le,hour:le,minute:le,second:le},gu={year:le,month:On,day:le,hour:le,minute:le},wu={year:le,month:On,day:le,hour:le,minute:le,second:le},w2={year:le,month:On,day:le,weekday:On,hour:le,minute:le},yu={year:le,month:Qr,day:le,hour:le,minute:le,timeZoneName:On},bu={year:le,month:Qr,day:le,hour:le,minute:le,second:le,timeZoneName:On},_u={year:le,month:Qr,day:le,weekday:Qr,hour:le,minute:le,timeZoneName:Qr},vu={year:le,month:Qr,day:le,weekday:Qr,hour:le,minute:le,second:le,timeZoneName:Qr}});var kt,As=P(()=>{To();kt=class{get type(){throw new Dn}get name(){throw new Dn}get ianaName(){return this.name}get isUniversal(){throw new Dn}offsetName(t,r){throw new Dn}formatOffset(t,r){throw new Dn}offset(t){throw new Dn}equals(t){throw new Dn}get isValid(){throw new Dn}}});var y2,Mo,Wh=P(()=>{Nr();As();y2=null,Mo=class e extends kt{static get instance(){return y2===null&&(y2=new e),y2}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return zh(t,r,n)}formatOffset(t,r){return Po(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}});function FR(e){return Bh[e]||(Bh[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"})),Bh[e]}function UR(e,t){let r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,o,s,a,u,d,f]=n;return[s,i,o,a,u,d,f]}function WR(e,t){let r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],a=VR[o];o==="era"?n[a]=s:_e(a)||(n[a]=parseInt(s,10))}return n}var Bh,VR,Gh,vt,Lo=P(()=>{Nr();As();Bh={};VR={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};Gh={},vt=class e extends kt{static create(t){return Gh[t]||(Gh[t]=new e(t)),Gh[t]}static resetCache(){Gh={},Bh={}}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 zh(t,r,n,this.name)}formatOffset(t,r){return Po(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let n=FR(this.name),[i,o,s,a,u,d,f]=n.formatToParts?WR(n,r):UR(n,r);a==="BC"&&(i=-Math.abs(i)+1);let w=il({year:i,month:o,day:s,hour:u===24?0:u,minute:d,second:f,millisecond:0}),_=+r,S=_%1e3;return _-=S>=0?S:1e3+S,(w-_)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}});function zR(e,t={}){let r=JSON.stringify([e,t]),n=Dx[r];return n||(n=new Intl.ListFormat(e,t),Dx[r]=n),n}function _2(e,t={}){let r=JSON.stringify([e,t]),n=b2[r];return n||(n=new Intl.DateTimeFormat(e,t),b2[r]=n),n}function GR(e,t={}){let r=JSON.stringify([e,t]),n=v2[r];return n||(n=new Intl.NumberFormat(e,t),v2[r]=n),n}function BR(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),o=S2[i];return o||(o=new Intl.RelativeTimeFormat(e,t),S2[i]=o),o}function qR(){return xu||(xu=new Intl.DateTimeFormat().resolvedOptions().locale,xu)}function jR(e){let t=Ox[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,Ox[e]=t}return t}function HR(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=_2(e).resolvedOptions(),i=e}catch{let u=e.substring(0,r);n=_2(u).resolvedOptions(),i=u}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function ZR(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function YR(e){let t=[];for(let r=1;r<=12;r++){let n=ae.utc(2009,r,1);t.push(e(n))}return t}function JR(e){let t=[];for(let r=1;r<=7;r++){let n=ae.utc(2016,11,13+r);t.push(e(n))}return t}function qh(e,t,r,n){let i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function XR(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 Dx,b2,v2,S2,xu,Ox,x2,C2,T2,QR,Ge,Tu=P(()=>{Nr();Zh();Io();ks();Lo();Dx={};b2={};v2={};S2={};xu=null;Ox={};x2=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 a={useGrouping:!1,...n};n.padTo>0&&(a.minimumIntegerDigits=n.padTo),this.inf=GR(t,a)}}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):ol(t,3);return mt(r,this.padTo)}}},C2=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),a=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&vt.create(a).valid?(i=a,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=_2(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()}},T2=class{constructor(t,r,n){this.opts={style:"long",...n},!r&&jh()&&(this.rtf=BR(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):$x(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}},QR={firstDay:1,minimalDays:4,weekend:[6,7]},Ge=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||Ve.defaultLocale,a=s||(o?"en-US":qR()),u=r||Ve.defaultNumberingSystem,d=n||Ve.defaultOutputCalendar,f=Cu(i)||Ve.defaultWeekSettings;return new e(a,u,d,f,s)}static resetCache(){xu=null,b2={},v2={},S2={}}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,a,u]=HR(t);this.locale=s,this.numberingSystem=r||a||null,this.outputCalendar=n||u||null,this.weekSettings=i,this.intl=ZR(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=XR(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,Cu(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 qh(this,t,E2,()=>{let n=r?{month:t,day:"numeric"}:{month:t},i=r?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=YR(o=>this.extract(o,n,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1){return qh(this,t,M2,()=>{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]=JR(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return qh(this,void 0,()=>P2,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[ae.utc(2016,11,13,9),ae.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return qh(this,t,L2,()=>{let r={era:t};return this.eraCache[t]||(this.eraCache[t]=[ae.utc(-40,1,1),ae.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(a=>a.type.toLowerCase()===n);return s?s.value:null}numberFormatter(t={}){return new x2(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new C2(t,this.intl,r)}relFormatter(t={}){return new T2(this.intl,this.isEnglish(),t)}listFormatter(t={}){return zR(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:Hh()?jR(this.locale):QR}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}}});var A2,Be,sl=P(()=>{Nr();As();A2=null,Be=class e extends kt{static get utcInstance(){return A2===null&&(A2=new e(0)),A2}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(Ns(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Po(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Po(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return Po(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 al,k2=P(()=>{As();al=class extends kt{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 $n(e,t){let r;if(_e(e)||e===null)return t;if(e instanceof kt)return e;if(Fx(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?Mo.instance:n==="utc"||n==="gmt"?Be.utcInstance:Be.parseSpecifier(n)||vt.create(e)}else return ci(e)?Be.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new al(e)}var Yh=P(()=>{As();Lo();sl();k2();Nr();Wh()});var Vx,Ux,Wx,zx,Gx,Bx,qx,jx,Ve,Io=P(()=>{Wh();Lo();Tu();Yh();Nr();Vx=()=>Date.now(),Ux="system",Wx=null,zx=null,Gx=null,Bx=60,jx=null,Ve=class{static get now(){return Vx}static set now(t){Vx=t}static set defaultZone(t){Ux=t}static get defaultZone(){return $n(Ux,Mo.instance)}static get defaultLocale(){return Wx}static set defaultLocale(t){Wx=t}static get defaultNumberingSystem(){return zx}static set defaultNumberingSystem(t){zx=t}static get defaultOutputCalendar(){return Gx}static set defaultOutputCalendar(t){Gx=t}static get defaultWeekSettings(){return jx}static set defaultWeekSettings(t){jx=Cu(t)}static get twoDigitCutoffYear(){return Bx}static set twoDigitCutoffYear(t){Bx=t%100}static get throwOnInvalid(){return qx}static set throwOnInvalid(t){qx=t}static resetCaches(){Ge.resetCache(),vt.resetCache()}}});var Kt,Eu=P(()=>{Kt=class{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}});function yn(e,t){return new Kt("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Jh(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 Yx(e,t,r){return r+(Ds(e)?Zx:Hx)[t-1]}function Jx(e,t){let r=Ds(e)?Zx:Hx,n=r.findIndex(o=>o<t),i=t-r[n];return{month:n+1,day:i}}function Xh(e,t){return(e-t+7)%7+1}function Mu(e,t=4,r=1){let{year:n,month:i,day:o}=e,s=Yx(n,i,o),a=Xh(Jh(n,i,o),r),u=Math.floor((s-a+14-t)/7),d;return u<1?(d=n-1,u=Rs(d,t,r)):u>Rs(n,t,r)?(d=n+1,u=1):d=n,{weekYear:d,weekNumber:u,weekday:a,...Lu(e)}}function N2(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=Xh(Jh(n,1,t),r),a=Ao(n),u=i*7+o-s-7+t,d;u<1?(d=n-1,u+=Ao(d)):u>a?(d=n+1,u-=Ao(n)):d=n;let{month:f,day:m}=Jx(d,u);return{year:d,month:f,day:m,...Lu(e)}}function Qh(e){let{year:t,month:r,day:n}=e,i=Yx(t,r,n);return{year:t,ordinal:i,...Lu(e)}}function R2(e){let{year:t,ordinal:r}=e,{month:n,day:i}=Jx(t,r);return{year:t,month:n,day:i,...Lu(e)}}function D2(e,t){if(!_e(e.localWeekday)||!_e(e.localWeekNumber)||!_e(e.localWeekYear)){if(!_e(e.weekday)||!_e(e.weekNumber)||!_e(e.weekYear))throw new Rn("Cannot mix locale-based week fields with ISO-based week fields");return _e(e.localWeekday)||(e.weekday=e.localWeekday),_e(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),_e(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 Xx(e,t=4,r=1){let n=Pu(e.weekYear),i=Kr(e.weekNumber,1,Rs(e.weekYear,t,r)),o=Kr(e.weekday,1,7);return n?i?o?!1:yn("weekday",e.weekday):yn("week",e.weekNumber):yn("weekYear",e.weekYear)}function Qx(e){let t=Pu(e.year),r=Kr(e.ordinal,1,Ao(e.year));return t?r?!1:yn("ordinal",e.ordinal):yn("year",e.year)}function O2(e){let t=Pu(e.year),r=Kr(e.month,1,12),n=Kr(e.day,1,ll(e.year,e.month));return t?r?n?!1:yn("day",e.day):yn("month",e.month):yn("year",e.year)}function $2(e){let{hour:t,minute:r,second:n,millisecond:i}=e,o=Kr(t,0,23)||t===24&&r===0&&n===0&&i===0,s=Kr(r,0,59),a=Kr(n,0,59),u=Kr(i,0,999);return o?s?a?u?!1:yn("millisecond",i):yn("second",n):yn("minute",r):yn("hour",t)}var Hx,Zx,F2=P(()=>{Nr();Eu();To();Hx=[0,31,59,90,120,151,181,212,243,273,304,334],Zx=[0,31,60,91,121,152,182,213,244,274,305,335]});function _e(e){return typeof e>"u"}function ci(e){return typeof e=="number"}function Pu(e){return typeof e=="number"&&e%1===0}function Fx(e){return typeof e=="string"}function e7(e){return Object.prototype.toString.call(e)==="[object Date]"}function jh(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Hh(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function t7(e){return Array.isArray(e)?e:[e]}function V2(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 r7(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function ko(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Cu(e){if(e==null)return null;if(typeof e!="object")throw new At("Week settings must be an object");if(!Kr(e.firstDay,1,7)||!Kr(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Kr(t,1,7)))throw new At("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Kr(e,t,r){return Pu(e)&&e>=t&&e<=r}function KR(e,t){return e-t*Math.floor(e/t)}function mt(e,t=2){let r=e<0,n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function Ui(e){if(!(_e(e)||e===null||e===""))return parseInt(e,10)}function No(e){if(!(_e(e)||e===null||e===""))return parseFloat(e)}function Iu(e){if(!(_e(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function ol(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function Ds(e){return e%4===0&&(e%100!==0||e%400===0)}function Ao(e){return Ds(e)?366:365}function ll(e,t){let r=KR(t-1,12)+1,n=e+(t-r)/12;return r===2?Ds(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function il(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 Kx(e,t,r){return-Xh(Jh(e,1,t),r)+t-1}function Rs(e,t=4,r=1){let n=Kx(e,t,r),i=Kx(e+1,t,r);return(Ao(e)-n+i)/7}function Au(e){return e>99?e:e>Ve.twoDigitCutoffYear?1900+e:2e3+e}function zh(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},a=new Intl.DateTimeFormat(r,s).formatToParts(i).find(u=>u.type.toLowerCase()==="timezonename");return a?a.value:null}function Ns(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 U2(e){let t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new At(`Invalid unit value ${e}`);return t}function cl(e,t){let r={};for(let n in e)if(ko(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=U2(i)}return r}function Po(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}${mt(r,2)}:${mt(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${mt(r,2)}${mt(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function Lu(e){return r7(e,["hour","minute","second","millisecond"])}var Nr=P(()=>{To();Io();F2()});function E2(e){switch(e){case"narrow":return[...tD];case"short":return[...W2];case"long":return[...eD];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 M2(e){switch(e){case"narrow":return[...rD];case"short":return[...G2];case"long":return[...z2];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function L2(e){switch(e){case"narrow":return[...oD];case"short":return[...iD];case"long":return[...nD];default:return null}}function n7(e){return P2[e.hour<12?0:1]}function i7(e,t){return M2(t)[e.weekday-1]}function o7(e,t){return E2(t)[e.month-1]}function s7(e,t){return L2(t)[e.year<0?0:1]}function $x(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 m=e==="days";switch(t){case 1:return m?"tomorrow":`next ${i[e][0]}`;case-1:return m?"yesterday":`last ${i[e][0]}`;case 0:return m?"today":`this ${i[e][0]}`;default:}}let s=Object.is(t,-0)||t<0,a=Math.abs(t),u=a===1,d=i[e],f=n?u?d[1]:d[2]||d[1]:u?i[e][0]:e;return s?`${a} ${f} ago`:`in ${a} ${f}`}var eD,W2,tD,z2,G2,rD,P2,nD,iD,oD,Zh=P(()=>{Su();Nr();eD=["January","February","March","April","May","June","July","August","September","October","November","December"],W2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],tD=["J","F","M","A","M","J","J","A","S","O","N","D"];z2=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],G2=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],rD=["M","T","W","T","F","S","S"];P2=["AM","PM"],nD=["Before Christ","Anno Domini"],iD=["BC","AD"],oD=["B","A"]});function a7(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}var sD,er,ku=P(()=>{Zh();Su();Nr();sD={D:Eo,DD:nu,DDD:iu,DDDD:ou,t:su,tt:au,ttt:lu,tttt:cu,T:uu,TT:du,TTT:fu,TTTT:pu,f:mu,ff:gu,fff:yu,ffff:_u,F:hu,FF:wu,FFF:bu,FFFF:vu},er=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 a=t.charAt(s);a==="'"?(n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),r=null,n="",i=!i):i||a===r?n+=a:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=a,r=a)}return n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(t){return sD[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 mt(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)=>this.loc.extract(t,_,S),s=_=>t.isOffsetFixed&&t.offset===0&&_.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,_.format):"",a=()=>n?n7(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),u=(_,S)=>n?o7(t,_):o(S?{month:_}:{month:_,day:"numeric"},"month"),d=(_,S)=>n?i7(t,_):o(S?{weekday:_}:{weekday:_,month:"long",day:"numeric"},"weekday"),f=_=>{let S=e.macroTokenToFormatOpts(_);return S?this.formatWithSystemDefault(t,S):_},m=_=>n?s7(t,_):o({era:_},"era"),w=_=>{switch(_){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 a();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 u("short",!0);case"LLLL":return u("long",!0);case"LLLLL":return u("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 u("short",!1);case"MMMM":return u("long",!1);case"MMMMM":return u("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 m("short");case"GG":return m("long");case"GGGGG":return m("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 f(_)}};return a7(e.parseFormat(r),w)}formatDurationFromString(t,r){let n=u=>{switch(u[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=u=>d=>{let f=n(d);return f?this.num(u.get(f),d.length):d},o=e.parseFormat(r),s=o.reduce((u,{literal:d,val:f})=>d?u:u.concat(f),[]),a=t.shiftTo(...s.map(n).filter(u=>u));return a7(o,i(a))}}});function dl(...e){let t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function fl(...e){return t=>e.reduce(([r,n,i],o)=>{let[s,a,u]=o(t,i);return[{...r,...s},a||n,u]},[{},null,1]).slice(0,2)}function pl(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 u7(...e){return(t,r)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=Ui(t[r+i]);return[n,null,r+i]}}function ul(e,t,r){let n=e[t];return _e(n)?r:Ui(n)}function hD(e,t){return[{year:ul(e,t),month:ul(e,t+1,1),day:ul(e,t+2,1)},null,t+3]}function ml(e,t){return[{hours:ul(e,t,0),minutes:ul(e,t+1,0),seconds:ul(e,t+2,0),milliseconds:Iu(e[t+3])},null,t+4]}function Nu(e,t){let r=!e[t]&&!e[t+1],n=Ns(e[t+1],e[t+2]),i=r?null:Be.instance(n);return[{},i,t+3]}function Ru(e,t){let r=e[t]?vt.create(e[t]):null;return[{},r,t+1]}function yD(e){let[t,r,n,i,o,s,a,u,d]=e,f=t[0]==="-",m=u&&u[0]==="-",w=(_,S=!1)=>_!==void 0&&(S||_&&f)?-_:_;return[{years:w(No(r)),months:w(No(n)),weeks:w(No(i)),days:w(No(o)),hours:w(No(s)),minutes:w(No(a)),seconds:w(No(u),u==="-0"),milliseconds:w(Iu(d),m)}]}function j2(e,t,r,n,i,o,s){let a={year:t.length===2?Au(Ui(t)):Ui(t),month:W2.indexOf(r)+1,day:Ui(n),hour:Ui(i),minute:Ui(o)};return s&&(a.second=Ui(s)),e&&(a.weekday=e.length>3?z2.indexOf(e)+1:G2.indexOf(e)+1),a}function vD(e){let[,t,r,n,i,o,s,a,u,d,f,m]=e,w=j2(t,i,n,r,o,s,a),_;return u?_=bD[u]:d?_=0:_=Ns(f,m),[w,new Be(_)]}function SD(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function l7(e){let[,t,r,n,i,o,s,a]=e;return[j2(t,i,n,r,o,s,a),Be.utcInstance]}function ED(e){let[,t,r,n,i,o,s,a]=e;return[j2(t,a,r,n,i,o,s),Be.utcInstance]}function h7(e){return pl(e,[MD,m7],[PD,AD],[LD,kD],[ID,ND])}function g7(e){return pl(SD(e),[_D,vD])}function w7(e){return pl(e,[xD,l7],[CD,l7],[TD,ED])}function y7(e){return pl(e,[wD,yD])}function b7(e){return pl(e,[gD,RD])}function _7(e){return pl(e,[DD,m7],[OD,$D])}var c7,d7,aD,B2,f7,q2,lD,cD,uD,dD,fD,pD,p7,mD,gD,wD,bD,_D,xD,CD,TD,MD,PD,LD,ID,m7,AD,kD,ND,RD,DD,OD,$D,H2=P(()=>{Nr();Zh();sl();Lo();c7=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;d7=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,aD=`(?:${d7.source}?(?:\\[(${c7.source})\\])?)?`,B2=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,f7=RegExp(`${B2.source}${aD}`),q2=RegExp(`(?:T${f7.source})?`),lD=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,cD=/(\d{4})-?W(\d\d)(?:-?(\d))?/,uD=/(\d{4})-?(\d{3})/,dD=u7("weekYear","weekNumber","weekDay"),fD=u7("year","ordinal"),pD=/(\d{4})-(\d\d)-(\d\d)/,p7=RegExp(`${B2.source} ?(?:${d7.source}|(${c7.source}))?`),mD=RegExp(`(?: ${p7.source})?`);gD=RegExp(`^T?${B2.source}$`),wD=/^-?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)?)?)$/;bD={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};_D=/^(?:(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)))$/;xD=/^(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$/,CD=/^(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$/,TD=/^(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})$/;MD=dl(lD,q2),PD=dl(cD,q2),LD=dl(uD,q2),ID=dl(f7),m7=fl(hD,ml,Nu,Ru),AD=fl(dD,ml,Nu,Ru),kD=fl(fD,ml,Nu,Ru),ND=fl(ml,Nu,Ru);RD=fl(ml);DD=dl(pD,mD),OD=dl(p7),$D=fl(ml,Nu,Ru)});function Ro(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 ht(n)}function C7(e,t){let r=t.milliseconds??0;for(let n of UD.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function S7(e,t){let r=C7(e,t)<0?-1:1;Os.reduceRight((n,i)=>{if(_e(t[i]))return n;if(n){let o=t[n]*r,s=e[i][n],a=Math.floor(o/s);t[i]+=a*r,t[n]-=a*s*r}return i},null),Os.reduce((n,i)=>{if(_e(t[i]))return n;if(n){let o=t[n]%1;t[n]-=o,t[i]+=o*e[n][i]}return i},null)}function WD(e){let t={};for(let[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}var v7,x7,FD,bn,hl,VD,Os,UD,ht,Du=P(()=>{To();ku();Eu();Tu();H2();Nr();Io();ks();v7="Invalid Duration",x7={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}},FD={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},...x7},bn=146097/400,hl=146097/4800,VD={years:{quarters:4,months:12,weeks:bn/7,days:bn,hours:bn*24,minutes:bn*24*60,seconds:bn*24*60*60,milliseconds:bn*24*60*60*1e3},quarters:{months:3,weeks:bn/28,days:bn/4,hours:bn*24/4,minutes:bn*24*60/4,seconds:bn*24*60*60/4,milliseconds:bn*24*60*60*1e3/4},months:{weeks:hl/7,days:hl,hours:hl*24,minutes:hl*24*60,seconds:hl*24*60*60,milliseconds:hl*24*60*60*1e3},...x7},Os=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],UD=Os.slice(0).reverse();ht=class e{constructor(t){let r=t.conversionAccuracy==="longterm"||!1,n=r?VD:FD;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||Ge.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 At(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:cl(t,e.normalizeUnit),loc:Ge.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if(ci(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t=="object")return e.fromObject(t);throw new At(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){let[n]=y7(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]=b7(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 At("need to specify a reason the Duration is invalid");let n=t instanceof Kt?t:new Kt(t,r);if(Ve.throwOnInvalid)throw new Vh(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 nl(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?er.create(this.loc,n).formatDurationFromString(this,t):v7}toHuman(t={}){if(!this.isValid)return v7;let r=Os.map(n=>{let i=this.values[n];return _e(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+=ol(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},ae.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?C7(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 Os)(ko(r.values,i)||ko(this.values,i))&&(n[i]=r.get(i)+this.get(i));return Ro(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]=U2(t(this.values[n],n));return Ro(this,{values:r},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r={...this.values,...cl(t,e.normalizeUnit)};return Ro(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 Ro(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return S7(this.matrix,t),Ro(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=WD(this.normalize().shiftToAll().toObject());return Ro(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 Os)if(t.indexOf(s)>=0){o=s;let a=0;for(let d in n)a+=this.matrix[d][s]*n[d],n[d]=0;ci(i[s])&&(a+=i[s]);let u=Math.trunc(a);r[s]=u,n[s]=(a*1e3-u*1e3)/1e3}else ci(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 S7(this.matrix,r),Ro(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 Ro(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 Os)if(!r(this.values[n],t.values[n]))return!1;return!0}}});function zD(e,t){return!e||!e.isValid?Wi.invalid("missing or invalid start"):!t||!t.isValid?Wi.invalid("missing or invalid end"):t<e?Wi.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 gl,Wi,Z2=P(()=>{ks();Du();Io();To();Eu();ku();Su();gl="Invalid Interval";Wi=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 At("need to specify a reason the Interval is invalid");let n=t instanceof Kt?t:new Kt(t,r);if(Ve.throwOnInvalid)throw new Fh(n);return new e({invalid:n})}static fromDateTimes(t,r){let n=wl(t),i=wl(r),o=zD(n,i);return o??new e({start:n,end:i})}static after(t,r){let n=ht.fromDurationLike(r),i=wl(t);return e.fromDateTimes(i,i.plus(n))}static before(t,r){let n=ht.fromDurationLike(r),i=wl(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=ae.fromISO(n,r),s=o.isValid}catch{s=!1}let a,u;try{a=ae.fromISO(i,r),u=a.isValid}catch{u=!1}if(s&&u)return e.fromDateTimes(o,a);if(s){let d=ht.fromISO(i,r);if(d.isValid)return e.after(o,d)}else if(u){let d=ht.fromISO(n,r);if(d.isValid)return e.before(a,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(wl).filter(s=>this.contains(s)).sort((s,a)=>s.toMillis()-a.toMillis()),n=[],{s:i}=this,o=0;for(;i<this.e;){let s=r[o]||this.e,a=+s>+this.e?this.e:s;n.push(e.fromDateTimes(i,a)),i=a,o+=1}return n}splitBy(t){let r=ht.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 a=this.start.plus(r.mapUnits(u=>u*i));o=+a>+this.e?this.e:a,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(u=>[{time:u.s,type:"s"},{time:u.e,type:"e"}]),s=Array.prototype.concat(...o),a=s.sort((u,d)=>u.time-d.time);for(let u of a)n+=u.type==="s"?1:-1,n===1?r=u.time:(r&&+r!=+u.time&&i.push(e.fromDateTimes(r,u.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()})`:gl}[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=Eo,r={}){return this.isValid?er.create(this.s.loc.clone(r),t).formatInterval(this):gl}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:gl}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:gl}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:gl}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:gl}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):ht.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}}});var zi,Y2=P(()=>{ks();Io();Tu();Lo();Yh();Nr();zi=class{static hasDST(t=Ve.defaultZone){let r=ae.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return vt.isValidZone(t)}static normalizeZone(t){return $n(t,Ve.defaultZone)}static getStartOfWeek({locale:t=null,locObj:r=null}={}){return(r||Ge.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:r=null}={}){return(r||Ge.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:r=null}={}){return(r||Ge.create(t)).getWeekendDays().slice()}static months(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||Ge.create(r,n,o)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||Ge.create(r,n,o)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||Ge.create(r,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||Ge.create(r,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return Ge.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return Ge.create(r,null,"gregory").eras(t)}static features(){return{relative:jh(),localeWeek:Hh()}}}});function T7(e,t){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(ht.fromMillis(n).as("days"))}function GD(e,t,r){let n=[["years",(u,d)=>d.year-u.year],["quarters",(u,d)=>d.quarter-u.quarter+(d.year-u.year)*4],["months",(u,d)=>d.month-u.month+(d.year-u.year)*12],["weeks",(u,d)=>{let f=T7(u,d);return(f-f%7)/7}],["days",T7]],i={},o=e,s,a;for(let[u,d]of n)r.indexOf(u)>=0&&(s=u,i[u]=d(e,t),a=o.plus(i),a>t?(i[u]--,e=o.plus(i),e>t&&(a=e,i[u]--,e=o.plus(i))):e=a);return[e,i,a,s]}function E7(e,t,r,n){let[i,o,s,a]=GD(e,t,r),u=t-i,d=r.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);d.length===0&&(s<t&&(s=i.plus({[a]:1})),s!==i&&(o[a]=(o[a]||0)+u/(s-i)));let f=ht.fromObject(o,n);return d.length>0?ht.fromMillis(u,n).shiftTo(...d).plus(f):f}var M7=P(()=>{Du()});function L7(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(J2.hanidec)!==-1)t+=BD.indexOf(e[r]);else for(let i in P7){let[o,s]=P7[i];n>=o&&n<=s&&(t+=n-o)}}return parseInt(t,10)}else return t}function _n({numberingSystem:e},t=""){return new RegExp(`${J2[e||"latn"]}${t}`)}var J2,P7,BD,I7=P(()=>{J2={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"},P7={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]},BD=J2.hanidec.replace(/[\[|\]]/g,"").split("")});function Ue(e,t=r=>r){return{regex:e,deser:([r])=>t(L7(r))}}function HD(e){return e.replace(/\./g,"\\.?").replace(R7,N7)}function A7(e){return e.replace(/\./g,"").replace(R7," ").toLowerCase()}function Fn(e,t){return e===null?null:{regex:RegExp(e.map(HD).join("|")),deser:([r])=>e.findIndex(n=>A7(r)===A7(n))+t}}function k7(e,t){return{regex:e,deser:([,r,n])=>Ns(r,n),groups:t}}function Kh(e){return{regex:e,deser:([t])=>t}}function ZD(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function YD(e,t){let r=_n(t),n=_n(t,"{2}"),i=_n(t,"{3}"),o=_n(t,"{4}"),s=_n(t,"{6}"),a=_n(t,"{1,2}"),u=_n(t,"{1,3}"),d=_n(t,"{1,6}"),f=_n(t,"{1,9}"),m=_n(t,"{2,4}"),w=_n(t,"{4,6}"),_=M=>({regex:RegExp(ZD(M.val)),deser:([N])=>N,literal:!0}),C=(M=>{if(e.literal)return _(M);switch(M.val){case"G":return Fn(t.eras("short"),0);case"GG":return Fn(t.eras("long"),0);case"y":return Ue(d);case"yy":return Ue(m,Au);case"yyyy":return Ue(o);case"yyyyy":return Ue(w);case"yyyyyy":return Ue(s);case"M":return Ue(a);case"MM":return Ue(n);case"MMM":return Fn(t.months("short",!0),1);case"MMMM":return Fn(t.months("long",!0),1);case"L":return Ue(a);case"LL":return Ue(n);case"LLL":return Fn(t.months("short",!1),1);case"LLLL":return Fn(t.months("long",!1),1);case"d":return Ue(a);case"dd":return Ue(n);case"o":return Ue(u);case"ooo":return Ue(i);case"HH":return Ue(n);case"H":return Ue(a);case"hh":return Ue(n);case"h":return Ue(a);case"mm":return Ue(n);case"m":return Ue(a);case"q":return Ue(a);case"qq":return Ue(n);case"s":return Ue(a);case"ss":return Ue(n);case"S":return Ue(u);case"SSS":return Ue(i);case"u":return Kh(f);case"uu":return Kh(a);case"uuu":return Ue(r);case"a":return Fn(t.meridiems(),0);case"kkkk":return Ue(o);case"kk":return Ue(m,Au);case"W":return Ue(a);case"WW":return Ue(n);case"E":case"c":return Ue(r);case"EEE":return Fn(t.weekdays("short",!1),1);case"EEEE":return Fn(t.weekdays("long",!1),1);case"ccc":return Fn(t.weekdays("short",!0),1);case"cccc":return Fn(t.weekdays("long",!0),1);case"Z":case"ZZ":return k7(new RegExp(`([+-]${a.source})(?::(${n.source}))?`),2);case"ZZZ":return k7(new RegExp(`([+-]${a.source})(${n.source})?`),2);case"z":return Kh(/[a-z_+-/]{1,256}?/i);case" ":return Kh(/[^\S\n\r]/);default:return _(M)}})(e)||{invalidReason:qD};return C.token=e,C}function XD(e,t,r){let{type:n,value:i}=e;if(n==="literal"){let u=/^\s+$/.test(i);return{literal:!u,val:u?" ":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 a=JD[s];if(typeof a=="object"&&(a=a[o]),a)return{literal:!1,val:a}}function QD(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function KD(e,t,r){let n=e.match(t);if(n){let i={},o=1;for(let s in r)if(ko(r,s)){let a=r[s],u=a.groups?a.groups+1:1;!a.literal&&a.token&&(i[a.token.val[0]]=a.deser(n.slice(o,o+u))),o+=u}return[n,i]}else return[n,{}]}function eO(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 _e(e.z)||(r=vt.create(e.z)),_e(e.Z)||(r||(r=new Be(e.Z)),n=e.Z),_e(e.q)||(e.M=(e.q-1)*3+1),_e(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),_e(e.u)||(e.S=Iu(e.u)),[Object.keys(e).reduce((o,s)=>{let a=t(s);return a&&(o[a]=e[s]),o},{}),r,n]}function tO(){return X2||(X2=ae.fromMillis(1555555555555)),X2}function rO(e,t){if(e.literal)return e;let r=er.macroTokenToFormatOpts(e.val),n=eb(r,t);return n==null||n.includes(void 0)?e:n}function Q2(e,t){return Array.prototype.concat(...e.map(r=>rO(r,t)))}function K2(e,t,r){let n=Q2(er.parseFormat(r),e),i=n.map(s=>YD(s,e)),o=i.find(s=>s.invalidReason);if(o)return{input:t,tokens:n,invalidReason:o.invalidReason};{let[s,a]=QD(i),u=RegExp(s,"i"),[d,f]=KD(t,u,a),[m,w,_]=f?eO(f):[null,null,void 0];if(ko(f,"a")&&ko(f,"H"))throw new Rn("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:n,regex:u,rawMatches:d,matches:f,result:m,zone:w,specificOffset:_}}}function D7(e,t,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=K2(e,t,r);return[n,i,o,s]}function eb(e,t){if(!e)return null;let n=er.create(t,e).dtFormatter(tO()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>XD(s,e,o))}var qD,jD,N7,R7,JD,X2,O7=P(()=>{Nr();ku();sl();Lo();ks();I7();To();qD="missing Intl.DateTimeFormat.formatToParts support";jD="\xA0",N7=`[ ${jD}]`,R7=new RegExp(N7,"g");JD={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"}};X2=null});function e1(e){return new Kt("unsupported zone",`the zone "${e.name}" is not supported`)}function rb(e){return e.weekData===null&&(e.weekData=Mu(e.c)),e.weekData}function nb(e){return e.localWeekData===null&&(e.localWeekData=Mu(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function $s(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new ae({...r,...t,old:r})}function B7(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 t1(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 n1(e,t,r){return B7(il(e),t,r)}function F7(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,ll(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=ht.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"),a=il(o),[u,d]=B7(a,r,e.zone);return s!==0&&(u+=s,d=e.zone.offset(u)),{ts:u,o:d}}function Ou(e,t,r,n,i,o){let{setZone:s,zone:a}=r;if(e&&Object.keys(e).length!==0||t){let u=t||a,d=ae.fromObject(e,{...r,zone:u,specificOffset:o});return s?d:d.setZone(a)}else return ae.invalid(new Kt("unparsable",`the input "${i}" can't be parsed as ${n}`))}function r1(e,t,r=!0){return e.isValid?er.create(Ge.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function ib(e,t){let r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=mt(e.c.year,r?6:4),t?(n+="-",n+=mt(e.c.month),n+="-",n+=mt(e.c.day)):(n+=mt(e.c.month),n+=mt(e.c.day)),n}function V7(e,t,r,n,i,o){let s=mt(e.c.hour);return t?(s+=":",s+=mt(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=":")):s+=mt(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=mt(e.c.second),(e.c.millisecond!==0||!n)&&(s+=".",s+=mt(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!o?s+="Z":e.o<0?(s+="-",s+=mt(Math.trunc(-e.o/60)),s+=":",s+=mt(Math.trunc(-e.o%60))):(s+="+",s+=mt(Math.trunc(e.o/60)),s+=":",s+=mt(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}function aO(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 nl(e);return t}function U7(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return aO(e)}}function W7(e,t){let r=$n(t.zone,Ve.defaultZone),n=Ge.fromObject(t),i=Ve.now(),o,s;if(_e(e.year))o=i;else{for(let d of j7)_e(e[d])&&(e[d]=q7[d]);let a=O2(e)||$2(e);if(a)return ae.invalid(a);let u=r.offset(i);[o,s]=n1(e,u,r)}return new ae({ts:o,zone:r,loc:n,o:s})}function z7(e,t,r){let n=_e(r.round)?!0:r.round,i=(s,a)=>(s=ol(s,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(s,a)),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 a=o(s);if(Math.abs(a)>=1)return i(a,s)}return i(e>t?-0:0,r.units[r.units.length-1])}function G7(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 wl(e){if(ae.isDateTime(e))return e;if(e&&e.valueOf&&ci(e.valueOf()))return ae.fromJSDate(e);if(e&&typeof e=="object")return ae.fromObject(e);throw new At(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var tb,$7,q7,nO,iO,j7,oO,sO,ae,ks=P(()=>{Du();Z2();Io();Y2();ku();sl();Tu();Nr();Yh();M7();H2();O7();F2();Su();To();Eu();tb="Invalid DateTime",$7=864e13;q7={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},nO={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},iO={ordinal:1,hour:0,minute:0,second:0,millisecond:0},j7=["year","month","day","hour","minute","second","millisecond"],oO=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],sO=["year","ordinal","hour","minute","second","millisecond"];ae=class e{constructor(t){let r=t.zone||Ve.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new Kt("invalid input"):null)||(r.isValid?null:e1(r));this.ts=_e(t.ts)?Ve.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 a=r.offset(this.ts);i=t1(this.ts,a),n=Number.isNaN(i.year)?new Kt("invalid input"):null,i=n?null:i,o=n?null:a}this._zone=r,this.loc=t.loc||Ge.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]=G7(arguments),[n,i,o,s,a,u,d]=r;return W7({year:n,month:i,day:o,hour:s,minute:a,second:u,millisecond:d},t)}static utc(){let[t,r]=G7(arguments),[n,i,o,s,a,u,d]=r;return t.zone=Be.utcInstance,W7({year:n,month:i,day:o,hour:s,minute:a,second:u,millisecond:d},t)}static fromJSDate(t,r={}){let n=e7(t)?t.valueOf():NaN;if(Number.isNaN(n))return e.invalid("invalid input");let i=$n(r.zone,Ve.defaultZone);return i.isValid?new e({ts:n,zone:i,loc:Ge.fromObject(r)}):e.invalid(e1(i))}static fromMillis(t,r={}){if(ci(t))return t<-$7||t>$7?e.invalid("Timestamp out of range"):new e({ts:t,zone:$n(r.zone,Ve.defaultZone),loc:Ge.fromObject(r)});throw new At(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(ci(t))return new e({ts:t*1e3,zone:$n(r.zone,Ve.defaultZone),loc:Ge.fromObject(r)});throw new At("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};let n=$n(r.zone,Ve.defaultZone);if(!n.isValid)return e.invalid(e1(n));let i=Ge.fromObject(r),o=cl(t,U7),{minDaysInFirstWeek:s,startOfWeek:a}=D2(o,i),u=Ve.now(),d=_e(r.specificOffset)?n.offset(u):r.specificOffset,f=!_e(o.ordinal),m=!_e(o.year),w=!_e(o.month)||!_e(o.day),_=m||w,S=o.weekYear||o.weekNumber;if((_||f)&&S)throw new Rn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(w&&f)throw new Rn("Can't mix ordinal dates with month/day");let C=S||o.weekday&&!_,M,N,L=t1(u,d);C?(M=oO,N=nO,L=Mu(L,s,a)):f?(M=sO,N=iO,L=Qh(L)):(M=j7,N=q7);let k=!1;for(let ge of M){let ue=o[ge];_e(ue)?k?o[ge]=N[ge]:o[ge]=L[ge]:k=!0}let W=C?Xx(o,s,a):f?Qx(o):O2(o),Z=W||$2(o);if(Z)return e.invalid(Z);let ee=C?N2(o,s,a):f?R2(o):o,[ne,te]=n1(ee,d,n),pe=new e({ts:ne,zone:n,o:te,loc:i});return o.weekday&&_&&t.weekday!==pe.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${pe.toISO()}`):pe}static fromISO(t,r={}){let[n,i]=h7(t);return Ou(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=g7(t);return Ou(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=w7(t);return Ou(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(_e(t)||_e(r))throw new At("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=Ge.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[a,u,d,f]=D7(s,t,r);return f?e.invalid(f):Ou(a,u,n,`format ${r}`,t,d)}static fromString(t,r,n={}){return e.fromFormat(t,r,n)}static fromSQL(t,r={}){let[n,i]=_7(t);return Ou(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new At("need to specify a reason the DateTime is invalid");let n=t instanceof Kt?t:new Kt(t,r);if(Ve.throwOnInvalid)throw new $h(n);return new e({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){let n=eb(t,Ge.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(t,r={}){return Q2(er.parseFormat(t),Ge.fromObject(r)).map(i=>i.val).join("")}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?rb(this).weekYear:NaN}get weekNumber(){return this.isValid?rb(this).weekNumber:NaN}get weekday(){return this.isValid?rb(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?nb(this).weekday:NaN}get localWeekNumber(){return this.isValid?nb(this).weekNumber:NaN}get localWeekYear(){return this.isValid?nb(this).weekYear:NaN}get ordinal(){return this.isValid?Qh(this.c).ordinal:NaN}get monthShort(){return this.isValid?zi.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?zi.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?zi.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?zi.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=il(this.c),i=this.zone.offset(n-t),o=this.zone.offset(n+t),s=this.zone.offset(n-i*r),a=this.zone.offset(n-o*r);if(s===a)return[this];let u=n-s*r,d=n-a*r,f=t1(u,s),m=t1(d,a);return f.hour===m.hour&&f.minute===m.minute&&f.second===m.second&&f.millisecond===m.millisecond?[$s(this,{ts:u}),$s(this,{ts:d})]:[this]}get isInLeapYear(){return Ds(this.year)}get daysInMonth(){return ll(this.year,this.month)}get daysInYear(){return this.isValid?Ao(this.year):NaN}get weeksInWeekYear(){return this.isValid?Rs(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Rs(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:r,numberingSystem:n,calendar:i}=er.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(t=0,r={}){return this.setZone(Be.instance(t),r)}toLocal(){return this.setZone(Ve.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=$n(t,Ve.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]=n1(s,o,t)}return $s(this,{ts:i,zone:t})}else return e.invalid(e1(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return $s(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let r=cl(t,U7),{minDaysInFirstWeek:n,startOfWeek:i}=D2(r,this.loc),o=!_e(r.weekYear)||!_e(r.weekNumber)||!_e(r.weekday),s=!_e(r.ordinal),a=!_e(r.year),u=!_e(r.month)||!_e(r.day),d=a||u,f=r.weekYear||r.weekNumber;if((d||s)&&f)throw new Rn("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&s)throw new Rn("Can't mix ordinal dates with month/day");let m;o?m=N2({...Mu(this.c,n,i),...r},n,i):_e(r.ordinal)?(m={...this.toObject(),...r},_e(r.day)&&(m.day=Math.min(ll(m.year,m.month),m.day))):m=R2({...Qh(this.c),...r});let[w,_]=n1(m,this.o,this.zone);return $s(this,{ts:w,o:_})}plus(t){if(!this.isValid)return this;let r=ht.fromDurationLike(t);return $s(this,F7(this,r))}minus(t){if(!this.isValid)return this;let r=ht.fromDurationLike(t).negate();return $s(this,F7(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=ht.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?er.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):tb}toLocaleString(t=Eo,r={}){return this.isValid?er.create(this.loc.clone(r),t).formatDateTime(this):tb}toLocaleParts(t={}){return this.isValid?er.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",a=ib(this,s);return a+="T",a+=V7(this,s,r,n,i,o),a}toISODate({format:t="extended"}={}){return this.isValid?ib(this,t==="extended"):null}toISOWeekDate(){return r1(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":"")+V7(this,s==="extended",r,t,n,o):null}toRFC2822(){return r1(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return r1(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?ib(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")),r1(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():tb}[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 ht.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=t7(r).map(ht.normalizeUnit),s=t.valueOf()>this.valueOf(),a=s?this:t,u=s?t:this,d=E7(a,u,o,i);return s?d.negate():d}diffNow(t="milliseconds",r={}){return this.diff(e.now(),t,r)}until(t){return this.isValid?Wi.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),z7(r,this.plus(n),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?z7(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 At("min requires all arguments be DateTimes");return V2(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new At("max requires all arguments be DateTimes");return V2(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=Ge.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return K2(s,t,r)}static fromStringExplain(t,r,n={}){return e.fromFormatExplain(t,r,n)}static get DATE_SHORT(){return Eo}static get DATE_MED(){return nu}static get DATE_MED_WITH_WEEKDAY(){return g2}static get DATE_FULL(){return iu}static get DATE_HUGE(){return ou}static get TIME_SIMPLE(){return su}static get TIME_WITH_SECONDS(){return au}static get TIME_WITH_SHORT_OFFSET(){return lu}static get TIME_WITH_LONG_OFFSET(){return cu}static get TIME_24_SIMPLE(){return uu}static get TIME_24_WITH_SECONDS(){return du}static get TIME_24_WITH_SHORT_OFFSET(){return fu}static get TIME_24_WITH_LONG_OFFSET(){return pu}static get DATETIME_SHORT(){return mu}static get DATETIME_SHORT_WITH_SECONDS(){return hu}static get DATETIME_MED(){return gu}static get DATETIME_MED_WITH_SECONDS(){return wu}static get DATETIME_MED_WITH_WEEKDAY(){return w2}static get DATETIME_FULL(){return yu}static get DATETIME_FULL_WITH_SECONDS(){return bu}static get DATETIME_HUGE(){return _u}static get DATETIME_HUGE_WITH_SECONDS(){return vu}}});var Rr=P(()=>{ks();Du();Z2();Y2();As();sl();Lo();k2();Wh();Io()});function Fs(e){return e instanceof kt?e===Bt.instance:e?.toString().toLowerCase()==="unknown"}function i1(e){return Fs(e)?Bt.instance:e}var Bt,$u=P(()=>{Rr();Bt=class{};Bt.instance=new vt("Etc/UTC")});function yl(e,t,r){return e<t?e-t:e>r?e-r:0}function bl(e,t,r){return e<t?t:e>r?r:e}function Vn(e,t=!0){if(e instanceof kt)return e;if(e.toLowerCase()==="system")return"system";if(e.toLowerCase()==="utc")return"UTC";if(e.toLowerCase()==="unknown")return Bt.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){let n=Be.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(n)return n}let r=vt.create(e);if(!r.isValid){if(t)throw new ob(o1.TimeZoneNotRecognized);return null}return r}var o1,lO,ob,Vs,sb=P(()=>{Co();$u();Rr();(function(e){e.TimeZoneNotRecognized="TimeZoneNotRecognized"})(o1||(o1={}));lO={[o1.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},ob=class e extends Error{constructor(t,r){super(li(lO[t],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};Vs=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,a=0,u){if(isNaN(t)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||isNaN(s)||isNaN(a))return null;let d=ae.local(t,r).daysInMonth,f=ae.fromObject({day:bl(n,1,d),year:t,month:bl(r,1,12),hour:bl(i,0,23),minute:bl(o,0,59),second:bl(s,0,59),millisecond:bl(a,0,999)},{zone:Vn(u)});return f=f.plus({months:yl(r,1,12),days:yl(n,1,d),hours:yl(i,0,23),minutes:yl(o,0,59),seconds:yl(s,0,59),milliseconds:yl(a,0,999)}),new e(f)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(t,r){let n=Vn(r);return t.isUnknownTimeZone||n===Bt.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(ae.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,r="system"){let n=Vn(r);return new e(ae.fromJSDate(t,{zone:n}))}static unknownEpochToArcadeDate(t){return new e(ae.fromMillis(t,{zone:Bt.instance}))}static unknownDateJSToArcadeDate(t){return new e(ae.fromMillis(t.getTime(),{zone:Bt.instance}))}static epochToArcadeDate(t,r="system"){let n=Vn(r);return new e(ae.fromMillis(t,{zone:n}))}static dateTimeToArcadeDate(t){return new e(t)}clone(){return new e(this._date)}changeTimeZone(t){let r=Vn(t);return e.dateTimeToArcadeDate(this._date.setZone(r))}static dateTimeAndZoneToArcadeDate(t,r){let n=Vn(r);return t.zone===Bt.instance||n===Bt.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=Vn(t);return new e(ae.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new e(ae.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===Bt.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=ae.fromISO(t,{setZone:!0});return new e(r)}}});var O,cO,z,Un,ere,Do=P(()=>{Co();(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"})(O||(O={}));cO={[O.InvalidValueForAggregateFunction]:"Invalid value used in aggregate function",[O.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[O.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[O.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[O.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[O.UnsupportedOperator]:"Unsupported operator - {operator}",[O.UnsupportedSyntax]:"Unsupported syntax - {node}",[O.UnsupportedSqlFunction]:"Sql function not found = {function}",[O.InvalidDataType]:"Invalid sql data type",[O.InvalidDate]:"Invalid date encountered",[O.InvalidOperator]:"Invalid operator encountered",[O.InvalidTime]:"Invalid time encountered",[O.IllegalInterval]:"Illegal interval",[O.FunctionNotRecognized]:"Function not recognized",[O.InvalidTimeStamp]:"Invalid timestamp encountered",[O.InvalidParameterCount]:"Invalid parameter count for call to {name}",[O.PrimarySecondaryQualifiers]:"Primary and Secondary SqlInterval qualifiers not supported",[O.YearMonthIntervals]:"Year-Month Intervals not supported",[O.CannotCastValue]:"Cannot cast value to the required data type"},z=class e extends Error{constructor(t,r){super(li(cO[t],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};(function(e){e.NeverReach="NeverReach",e.NotImplemented="NotImplemented",e.Cancelled="Cancelled",e.InvalidStatResponse="InvalidStatResponse",e.InvalidRequest="InvalidRequest",e.RequestFailed="RequestFailed",e.MissingFeatures="MissingFeatures",e.AggregationFieldNotFound="AggregationFieldNotFound",e.DataElementsNotFound="DataElementsNotFound"})(Un||(Un={}));ere={[Un.Cancelled]:"Cancelled",[Un.InvalidStatResponse]:"Invalid statistics response from service",[Un.InvalidRequest]:"Invalid request",[Un.RequestFailed]:"Request failed - {reason}",[Un.MissingFeatures]:"Missing features",[Un.AggregationFieldNotFound]:"Aggregation field not found",[Un.DataElementsNotFound]:"Data elements not found on service",[Un.NeverReach]:"Encountered unreachable logic",[Un.NotImplemented]:"Not implemented"}});function We(e){return e?{remove(){e&&(e(),e=void 0)}}:uO}function dO(e){e.forEach(t=>t?.remove())}function Us(e){return We(()=>dO(e))}var uO,qr=P(()=>{uO={remove:()=>{}}});function H7(){return pO??globalThis.navigator?.language??"en"}function en(){return Fu===void 0&&(Fu=H7()),Fu}function ab(e){return s1.push(e),We(()=>s1.splice(s1.indexOf(e),1))}function _l(e){return a1.push(e),We(()=>a1.splice(a1.indexOf(e),1))}function mO(){let e=fO??H7();Fu!==e&&([...a1].forEach(t=>t(e)),Fu=e,[...s1].forEach(t=>t(e)))}var fO,Fu,pO,s1,a1,Gi=P(()=>{qr();pO=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale;s1=[];a1=[];globalThis.addEventListener?.("languagechange",mO)});function Z7(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 qt,Vu=P(()=>{sb();Gi();Rr();qt=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 ae.fromObject({day:this.day,month:this.month,year:this.year},{zone:Vn(t)})}toDateTimeLuxon(t){return ae.fromObject({day:this.day,month:this.month,year:this.year},{zone:Vn(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=Z7(t)),!t)return"";let n=this.toDateTime("unknown");return Vs.dateTimeToArcadeDate(n).toFormat(t,{locale:en(),numberingSystem:"latn"})}toArcadeDate(){let t=this.toDateTime("unknown");return Vs.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 ae.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=ae.fromMillis(t,{zone:Be.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromSeconds(t){let r=ae.fromSeconds(t,{zone:Be.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=Z7(r))&&n.push(r);else if(r===null||r===""){let i=ae.fromISO(t,{setZone:!0});return i.isValid?e.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=ae.fromFormat(t,r??i);if(o.isValid)return new e(o.year,o.month,o.day)}return null}static fromNow(t="system"){let r=ae.fromJSDate(new Date).setZone(Vn(t));return new e(r.year,r.month,r.day)}}});function Y7(e){return Number.isNaN(e)||e===0?e:Math.trunc(e)}var pr,Uu=P(()=>{Rr();pr=class e{constructor(t){this._timeStampOffset=t,this._date=null}toDateTime(){return this._date??(this._date=ae.fromISO(this._timeStampOffset,{setZone:!0})),this._date}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return Y7(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return Y7(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(ae.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,a=0,u=!1,d=0,f=0){let m=`${t.toString().padStart(4,"0")}-${r.toString().padStart(2,"0")}-${n.toString().padStart(2,"0")}`,w="";s<10&&(w="0");let _=`${i.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${w+s.toString()}`;a!==0&&(_+="."+a.toString().padStart(3,"0"));let S=`${u?"-":"+"}${d.toString().padStart(2,"0")}:${f.toString().padStart(2,"0")}`;return new e(m+"T"+_+S)}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 R(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 a=e.length-1;a>=0;a--)(i=e[a])&&(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 tr=P(()=>{});var l1,lb=P(()=>{l1="20240709"});var Ze,Ws=P(()=>{Fe();ai();lb();Ze={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:6e4,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(Lx(Ze,globalThis.esriConfig,!0),delete Ze.has),!Ze.assetsPath){{let e="4.31.0";Ze.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${l1}/assets`}Ze.defaultAssetsPath=Ze.assetsPath}});function hO(e,t,...r){console[e](`[${t}]`,...r)}function gO(...e){return Rx(JSON.stringify(e,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var J7,Ce,qe=P(()=>{Ws();Fe();Co();J7={info:0,warn:1,error:2,none:3},Ce=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=gO(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 Ze.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",hO)}_matchLevel(t){let r=Ze.log.level||"warn";return J7[this._parentWithMember("level",r)]<=J7[t]}static _scheduleTickCounterIncrement(){e._tickCounterScheduled||(e._tickCounterScheduled=!0,Promise.resolve().then(()=>{e._tickCounter++,e._tickCounterScheduled=!1}))}};Ce._loggers=new Map,Ce._tickCounter=0,Ce._tickCounterScheduled=!1,Ce._throttlingDisabled=!1});function c1(e,t,r){let n=e.get(t);if(n!==void 0)return n;let i=r();return e.set(t,i),i}var cb=P(()=>{});function wO(e){return e==null?e:new Date(e)}function yO(e){return e==null?e:!!e}function bO(e){return e==null?e:e.toString()}function pb(e){return e==null?e:(e=parseFloat(e),isNaN(e)?0:e)}function _O(e){return e==null?e:Math.round(parseFloat(e))}function vO(e){return null}function Q7(e){return e?.constructor&&e.constructor.__accessorMetadata__!==void 0}function u1(e,t){return t!=null&&e&&!(t instanceof e)}function K7(e){return e&&"isCollection"in e}function X7(e){return e?.Type?typeof e.Type=="function"?e.Type:e.Type.base:null}function SO(e,t){if(!t?.constructor||!K7(t.constructor))return ub(e,t)?t:new e(t);let r=X7(e.prototype.itemType),n=X7(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(ub(e,t),t):new e(t):t}function ub(e,t){return!!Q7(t)&&(vl().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+d1(e)+"'"),!0)}function xO(e,t){return t==null?t:K7(e)?SO(e,t):u1(e,t)?ub(e,t)?t:new e(t):t}function d1(e){return e?.prototype?.declaredClass||"unknown"}function TO(e){switch(e){case Number:return pb;case ui:return _O;case Boolean:return yO;case String:return bO;case Date:return wO;case zu:return vO;default:return c1(CO,e,()=>xO.bind(null,e))}}function vn(e,t){let r=TO(e);return arguments.length===1?r:r(t)}function Sl(e,t,r){return arguments.length===1?Sl.bind(null,e):t&&(Array.isArray(t)?t.map(n=>e(n,r)):[e(t,r)])}function e8(e,t){return arguments.length===1?Sl(r=>vn(e,r)):Sl(r=>vn(e,r),t)}function t8(e,t,r){return t!==0&&Array.isArray(r)?r.map(n=>t8(e,t-1,n)):e(r)}function Wu(e,t,r){if(arguments.length===2)return o=>Wu(e,t,o);if(!r)return r;r=t8(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 r8(e,t,r){return arguments.length===2?Wu(n=>vn(e,n),t):Wu(n=>vn(e,n),t,r)}function f1(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!(r==="string"||r==="number"||r==="function"&&e.length>1)})}function p1(e,t){if(arguments.length===2)return p1(e).call(null,t);let r=new Set,n=e.filter(a=>typeof a!="function"),i=e.filter(a=>typeof a=="function");for(let a of e)typeof a!="string"&&typeof a!="number"||r.add(a);let o=null,s=null;return(a,u)=>{if(a==null)return a;let d=typeof a,f=d==="string"||d==="number";return f&&(r.has(a)||i.some(m=>d==="string"&&m===String||d==="number"&&m===Number))||d==="object"&&i.some(m=>!u1(a,m))?a:(f&&n.length?(o||(o=n.map(m=>typeof m=="string"?`'${m}'`:`${m}`).join(", ")),vl().error("Accessor#set",`'${a}' is not a valid value for this property, only the following values are valid: ${o}`)):typeof a=="object"&&i.length?(s||(s=i.map(m=>d1(m)).join(", ")),vl().error("Accessor#set",`'${a}' is not a valid value for this property, value must be one of ${s}`)):vl().error("Accessor#set",`'${a}' is not a valid value for this property`),u&&(u.valid=!1),null)}}function Oo(e,t){if(arguments.length===2)return Oo(e).call(null,t);let r={},n=[],i=[];for(let u in e.typeMap){let d=e.typeMap[u];r[u]=vn(d),n.push(d1(d)),i.push(u)}let o=()=>`'${n.join("', '")}'`,s=()=>`'${i.join("', '")}'`,a=typeof e.key=="string"?u=>u[e.key]:e.key;return u=>{if(e.base&&!u1(e.base,u)||u==null)return u;let d=a(u)||e.defaultKeyValue,f=r[d];if(!f)return vl().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(!u1(e.typeMap[d],u))return u;if(typeof e.key=="string"&&!Q7(u)){let m={};for(let w in u)w!==e.key&&(m[w]=u[w]);return f(m)}return f(u)}}function n8(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function mb(e){switch(e.type){case"native":return vn(e.value);case"array":return Sl(mb(e.value));case"one-of":return EO(e);default:return null}}function EO(e){let t=null;return(r,n)=>fb(r,e)?r:(t==null&&(t=db(e)),vl().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}function db(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case ui:return"integer";case Date:return"date";case zu:return"null";default:return d1(e.value)}case"array":return`array of ${db(e.value)}`;case"one-of":{let t=e.values.map(r=>db(r));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function fb(e,t){if(e==null)return!0;switch(t.type){case"native":switch(t.value){case Number:case ui:return typeof e=="number";case Boolean:return typeof e=="boolean";case String:return typeof e=="string";case zu:return e===null}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(r=>!fb(r,t.value));case"one-of":return t.values.some(r=>fb(e,r))}}var vl,CO,ui,zu,$o=P(()=>{Fe();qe();cb();vl=()=>Ce.getLogger("esri.core.accessorSupport.ensureTypes");CO=new WeakMap;ui=class{},zu=class{}});function di(e){return e.__accessor__??null}function o8(e,t){return e?.metadata?.[t]!=null}function xl(e,t,r){return r?m1(e,t,{policy:r,path:""}):m1(e,t,null)}function m1(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=i,s=null,a="merge";if(r&&(s=r.path?`${r.path}.${i}`:i,a=r.policy(s)),a==="replace"||a==="replace-arrays"&&Array.isArray(n[o]))return n[o]=t[o],n;if(n[o]===void 0)return n[o]=Le(t[o]),n;let u=n[o],d=t[o];if(u===d)return n;if(Array.isArray(d)||Array.isArray(n))u=u?Array.isArray(u)?n[o]=u.concat():n[o]=[u]:n[o]=[],d&&(Array.isArray(d)||(d=[d]),d.forEach(f=>{u.includes(f)||u.push(f)}));else if(d&&typeof d=="object")if(r){let f=r.path;r.path=s,n[o]=m1(u,d,r),r.path=f}else n[o]=m1(u,d,null);else n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[o]=d);return n},e||{}):e}function h1(e){return Array.isArray(e)?e:e.split(".")}function i8(e){return e.includes(",")?e.split(",").map(t=>t.trim()):[e.trim()]}function MO(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...i8(r));return t}return i8(e)}function hb(e,t,r,n){let i=MO(t);if(i.length!==1){let o=i.map(s=>n(e,s,r));return Us(o)}return n(e,i[0],r)}var Fo=P(()=>{qr();Qt()});function s8(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=di(t);return o8(n,r)?n.get(r):t[r]}function a8(e,t,r){if(e==null)return e;let n=s8(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:a8(n,t,r+1)}function zs(e,t,r=0){return typeof t!="string"||t.includes(".")?a8(e,h1(t),r):s8(t,e)}function Wn(e,t){return zs(e,t)}function gb(e,t){return zs(t,e)!==void 0}var Gs=P(()=>{Fo()});function Vo(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]=Le(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 Cl(e,t){let r=Vo(e),n=r[t];return n||(n=r[t]={}),n}function l8(e,t){return xl(e,t,LO)}function LO(e){return PO.test(e)?"replace":"merge"}var PO,Tl=P(()=>{Qt();Fo();PO=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function IO(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(wn(n,t)??"").toString())}var El,wb=P(()=>{ai();El=class{constructor(t,r,n=void 0){this.name=t,this.details=n,this.message=(r&&IO(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var he,vr=P(()=>{Qt();qe();wb();he=class e extends El{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 Le(r)}catch{return"[object]"}}))}}catch(t){throw Ce.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)}};he.prototype.type="error"});function Ml(e,t,r){if(e&&t)if(typeof t=="object")for(let n of Object.getOwnPropertyNames(t))Ml(e,n,t[n]);else{if(t.includes(".")){let i=t.split("."),o=i.splice(-1,1)[0];return void Ml(Wn(e,i),o,r)}let n=e.__accessor__;n!=null&&AO(t,n),e[t]=r}}function AO(e,t){if(X("esri-unknown-property-errors")&&!kO(e,t))throw new he("set:unknown-property",NO(e,t))}function kO(e,t){return t.metadata[e]!=null}function NO(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}var yb=P(()=>{vr();Fe();qe();Gs()});function j(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=Cl(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&&Ce.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 u=typeof o=="string"?o:o.source,d=typeof o=="string"?null:o.overridable===!0,f;i.dependsOn=[u],i.get=function(){let m=Wn(this,u);if(typeof m=="function"){f||(f=u.split(".").slice(0,-1).join("."));let w=Wn(this,f);w&&(m=m.bind(w))}return m},i.readOnly||(i.set=d?function(m){this._override(r,m)}:function(m){Ml(this,u,m)})}let s=e.type,a=e.types;i.cast||(s?i.cast=RO(s):a&&(Array.isArray(a)?i.cast=Sl(Oo(a[0])):i.cast=Oo(a))),l8(i,e),e.range&&(i.cast=DO(i.cast,e.range))}}function g1(e,t,r){let n=Cl(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 RO(e){let t=0,r=e;if(n8(e))return mb(e);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],t++;let n=r;if(f1(n))return t===0?p1(n):Wu(p1(n),t);if(t===1)return e8(n);if(t>1)return r8(n,t);let i=e;return i.from?i.from:vn(i)}function DO(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}}var rr=P(()=>{qe();$o();Gs();Tl();yb()});var w1,bb=P(()=>{w1=Symbol("Accessor-beforeDestroy")});var nr,Gu=P(()=>{(function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"})(nr||(nr={}))});var De,y1=P(()=>{(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"})(De||(De={}))});function Se(e){qu.onObservableAccessed(e)}function zn(e,t,r){if(b1)return _b(e,t,r);d8(e);let n=t.call(r);return f8(),n}function u8(e,t){return zn(v1,e,t)}function _b(e,t,r){let n=b1;b1=!0,d8(e);let i=null;try{i=t.call(r)}catch(o){_1&&Ce.getLogger("esri.core.accessorSupport.tracking").error(o)}return f8(),b1=n,i}function d8(e){qu=e,Bu.push(e)}function f8(){let e=Bu.length;if(e>1){let t=Bu.pop();qu=Bu[e-2],t.onTrackingEnd()}else if(e===1){let t=Bu.pop();qu=v1,t.onTrackingEnd()}else qu=v1}function vb(e,t){if(t.flags&De.DepTrackingInitialized)return;let r=_1;_1=!1,t.flags&De.AutoTracked?_b(t,t.metadata.get,e):Sb(e,t),_1=r}function Sb(e,t){t.flags&De.ExplicitlyTracking||(t.flags|=De.ExplicitlyTracking,_b(t,()=>{let r=t.metadata.dependsOn||OO;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=h1(n);for(let o=0,s=e;o<i.length&&s!=null&&typeof s=="object";++o)s=c8(s,i[o],o!==i.length-1)}else c8(e,n,!1)}),t.flags&=~De.ExplicitlyTracking)}function c8(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=di(e);if(i){let o=i.propertiesByName.get(n);o&&(Se(o),vb(e,o))}return r?e[n]:void 0}var v1,Bu,qu,b1,_1,OO,Bs=P(()=>{Fe();qe();Fo();y1();v1={onObservableAccessed:()=>{},onTrackingEnd:()=>{}},Bu=[],qu=v1;b1=!1,_1=!1;OO=[]});function p8(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 m8=P(()=>{});var ju,h8=P(()=>{wb();ju=class extends El{constructor(t,r,n){super(t,r,n)}};ju.prototype.type="warning"});function S1(e){return!!e&&e.prototype?.declaredClass&&e.prototype.declaredClass.indexOf("esri.core.Collection")===0}var xb=P(()=>{});function Tb(e,t,r){e&&(!r&&!t.read||t.read?.reader||t.read?.enabled===!1||UO(e)&&Fi("read.reader",$O(e),t))}function $O(e){let t=e.ndimArray??0;if(t>1)return VO(e);if(t===1)return g8(e);if("type"in e&&y8(e.type)){let r=e.type.prototype?.itemType?.Type,n=g8(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let a=n(i,o,s);return a&&new e.type(a)}}return Eb(e)}function Eb(e){return"type"in e?FO(e.type):WO(e.types)}function FO(e){return e.prototype.read?(t,r,n)=>{if(t==null)return t;let i=typeof t;if(i!=="object")return void Cb().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 w8(e,t,r,n){return n!==0&&Array.isArray(t)?t.map(i=>w8(e,i,r,n-1)):e(t,void 0,r)}function VO(e){let t=Eb(e),r=w8.bind(null,t),n=e.ndimArray??0;return(i,o,s)=>{if(i==null)return i;i=r(i,s,n);let a=n,u=i;for(;a>0&&Array.isArray(u);)a--,u=u[0];if(u!==void 0)for(let d=0;d<a;d++)i=[i];return i}}function g8(e){let t=Eb(e);return(r,n,i)=>{if(r==null)return r;if(Array.isArray(r)){let s=[];for(let a of r){let u=t(a,void 0,i);u!==void 0&&s.push(u)}return s}let o=t(r,void 0,i);return o!==void 0?[o]:void 0}}function y8(e){if(!S1(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&(typeof t.Type=="function"?Mb(t.Type):b8(t.Type))}function UO(e){return"types"in e?b8(e.types):Mb(e.type)}function Mb(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||y8(e))}function b8(e){for(let t in e.typeMap)if(!Mb(e.typeMap[t]))return!1;return!0}function WO(e){let t=null,r=e.errorContext??"type",n=e.validate;return(i,o,s)=>{if(i==null)return i;let a=typeof i;if(a!=="object")return void Cb().error(`Expected JSON value of type 'object' to deserialize, but got '${a}'`);t||(t=zO(e));let u=e.key;if(typeof u!="string")return;let d=i[u],f=d?t[d]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!f){let w=`Type '${d||"unknown"}' is not supported`;return s?.messages&&i&&s.messages.push(new ju(`${r}:unsupported`,w,{definition:i,context:s})),void Cb().error(w)}let m=new f;return m.read(i,s),n?n(m):m}}function zO(e){let t={};for(let r in e.typeMap){let n=e.typeMap[r],i=Vo(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 a=s.target,u=typeof a=="string"?a:e.key,d={};s.writer(r,d,u),d[u]&&(t[d[u]]=n)}return t}var Cb,_8=P(()=>{qe();ai();h8();Tl();xb();Cb=()=>Ce.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function C8(e){if(e.json||(e.json={}),S8(e.json),x8(e.json),v8(e.json),e.json.origins)for(let t in e.json.origins)S8(e.json.origins[t]),x8(e.json.origins[t]),v8(e.json.origins[t]);return!0}function v8(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 S8(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 x8(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 T8=P(()=>{});function Pb(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&&S1(e.type))?t.write.writer=jO:r>1?t.write.writer=HO(r):t.types?Array.isArray(t.types)?t.write.writer=BO(t.types[0]):t.write.writer=GO(t.types):t.write.writer=Hu}function GO(e){return(t,r,n,i)=>t?E8(t,e,i)?Hu(t,r,n,i):void 0:Hu(t,r,n,i)}function E8(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 he(`${n}:unsupported`,i,{definition:e,context:r})),Ce.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function BO(e){return(t,r,n,i)=>!t||!Array.isArray(t)?Hu(t,r,n,i):Hu(t.filter(o=>E8(o,e,i)),r,n,i)}function Hu(e,t,r,n){Fi(r,x1(e,n),t)}function x1(e,t){return e&&typeof e.write=="function"?e.write({},t):e&&typeof e.toJSON=="function"?e.toJSON():typeof e=="number"?qO(e):e}function qO(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function jO(e,t,r,n){let i;e===null?i=null:e&&typeof e.map=="function"?(i=e.map(o=>x1(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[x1(e,n)],Fi(r,i,t)}function M8(e,t,r){return r!==0&&Array.isArray(e)?e.map(n=>M8(n,t,r-1)):x1(e,t)}function HO(e){return(t,r,n,i)=>{let o;if(t===null)o=null;else{o=M8(t,i,e);let s=e,a=o;for(;s>0&&Array.isArray(a);)s--,a=a[0];if(a!==void 0)for(let u=0;u<s;u++)o=[o]}Fi(n,o,r)}}var P8=P(()=>{vr();qe();ai();xb()});function L8(e,t){return Ib(e,"any",t?.origin)}function C1(e,t){return Ib(e,"read",t?.origin)}function I8(e,t){return Ib(e,"write",t?.origin)}function Ib(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 ZO(e){let t=YO(e);if(e.json.origins)for(let r in e.json.origins){let n=e.json.origins[r],i=n.types?JO(n):t;Tb(i,n,!1),n.types&&!n.write&&e.json.write?.enabled&&(n.write={...e.json.write}),Pb(i,n)}Tb(t,e.json,!0),Pb(t,e.json)}function YO(e){return e.json.types?Lb(e.json):e.type?A8(e):Lb(e)}function JO(e){return e.type?A8(e):Lb(e)}function A8(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!f1(r);)r=r[0],t++;return{type:r,ndimArray:t}}function Lb(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 k8(e){C8(e)&&(p8(e),ZO(e))}var T1=P(()=>{$o();m8();_8();T8();P8()});function Me(e){return t=>{e??(e="esri.core.Accessor"),t.prototype.declaredClass=e,QO(t);let r=[],n=[],i=t.prototype;for(;i;)i.hasOwnProperty("initialize")&&!Ab.has(i.initialize)&&(Ab.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!kb.has(i.destroy)&&(kb.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);Ab.clear(),kb.clear();let o=class extends t{constructor(...a){if(super(...a),this.constructor===o&&typeof this.postscript=="function"){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let u=r.length-1;u>=0;u--)r[u].call(this)}}),n.length){let u=!1,d=this[w1];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!u){u=!0,d.call(this);for(let f=0;f<n.length;f++)n[f].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};o.__accessorMetadata__=Vo(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 XO(e,t){return t.get==null?function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n===void 0)return;Se(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 QO(e){let t=e.prototype,r=Vo(t),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];k8(o),n[i]={enumerable:!0,configurable:!0,get:XO(i,o),set(s){let a=this.__accessor__;if(a!==void 0){if(!Object.isFrozen(this))return a.initialized&&o.readOnly?N8("read-only",i):a.lifecycle===nr.CONSTRUCTED&&o.constructOnly?N8("construct-only",i):void a.set(i,s)}else Object.defineProperty(this,i,{enumerable:!0,configurable:!0,writable:!0,value:s})}}}Object.defineProperties(e.prototype,n)}var Ab,kb,N8,jt=P(()=>{Fe();qe();bb();Gu();Tl();Bs();T1();Ab=new Set,kb=new Set;N8=(e,t)=>{Ce.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}});function KO(e,t,r=!1){let n=`\u{1F6D1} DEPRECATED - ${t}`;if(!r)return void e.warn(n);let i=R8.get(e);i||(i=new Set,R8.set(e,i)),i.has(t)||(i.add(t),e.warn(n))}function E1(e,t,r={}){if(X("esri-deprecation-warnings")){let{moduleName:n}=r;e$(e,`Function: ${(n?n+"::":"")+t+"()"}`,r)}}function e$(e,t,r={}){if(X("esri-deprecation-warnings")){let{replacement:n,version:i,see:o,warnOnce:s}=r,a=t;n&&(a+=`
|
|
2
|
+
\u{1F6E0}\uFE0F Replacement: ${n}`),i&&(a+=`
|
|
3
|
+
\u2699\uFE0F Version: ${i}`),o&&(a+=`
|
|
4
|
+
\u{1F517} See ${o} for more details.`),KO(e,a,s)}}var R8,Nb=P(()=>{Fe();R8=new WeakMap});function Rb(e){return e!=null&&typeof e[Symbol.iterator]=="function"}var D8=P(()=>{});function M1(e){return e||"_default_"}function O8(e){for(let t of e)t instanceof Pl?t.removeAll():t.remove()}function $8(e){return e!=null&&(!!e.remove||e instanceof Pl)}var Pl,F8=P(()=>{D8();Pl=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(Rb(t)){let n=this._getOrCreateGroup(r);for(let i of t)$8(i)&&n.push(i)}else $8(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(M1(t))}remove(t){if(typeof t!="string"&&Rb(t)){for(let r of t)this.remove(r);return this}return this.has(t)?(O8(this._getGroup(t)),this._groups.delete(M1(t)),this):this}removeAll(){return this._groups.forEach(O8),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(M1(t),r),r}_getGroup(t){return this._groups.get(M1(t))}}});function Zu(e){return e?.destroy(),null}function Yu(e){return e?.remove(),null}function V8(e){return e?.abort(),null}var qs=P(()=>{});function t$(e){return e?.release&&typeof e.release=="function"}function r$(e){return e?.acquire&&typeof e.acquire=="function"}var Gn,Ju=P(()=>{Gn=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):r$(r)&&r.acquire(...t),r}release(t){t&&!e.test.disabled&&(this._releaseFunction?this._releaseFunction(t):t$(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()}};Gn.test={disabled:!1}});var P1,U8=P(()=>{So();P1=class{constructor(t,r){this._observers=t,this._observer=r}remove(){mx(this._observers,this._observer)}}});var Ll,n$,Db=P(()=>{qr();U8();Ll=class{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return n$;this._observers==null&&(this._observers=[]);let r=this._observers,n=!1,i=!1,o=r.length;for(let s=0;s<o;++s){let a=r[s];if(a.destroyed)i=!0;else if(a===t){n=!0;break}}return n||(r.push(t),i&&this._removeDestroyedObservers()),new P1(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}}},n$=We()});function L1(e){switch(e){case"defaults":return ke.DEFAULTS;case"service":return ke.SERVICE;case"portal-item":return ke.PORTAL_ITEM;case"web-scene":return ke.WEB_SCENE;case"web-map":return ke.WEB_MAP;case"link-chart":return ke.LINK_CHART;case"user":return ke.USER;default:return null}}function I1(e){switch(e){case ke.DEFAULTS:return"defaults";case ke.SERVICE:return"service";case ke.PORTAL_ITEM:return"portal-item";case ke.WEB_SCENE:return"web-scene";case ke.WEB_MAP:return"web-map";case ke.LINK_CHART:return"link-chart";case ke.USER:return"user"}}function W8(e){return I1(e)}var ke,Zne,js=P(()=>{(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"})(ke||(ke={}));Zne=ke.USER+1});var Xu,z8=P(()=>{Db();js();Bs();y1();Xu=class extends Ll{constructor(t,r){super(),this.propertyName=t,this.metadata=r,this._accessed=null,this._handles=null,this.flags=0,this.flags=De.Dirty|(r.nonNullable?De.NonNullable:0)|(r.hasOwnProperty("value")?De.HasDefaultValue:0)|(r.get===void 0?De.DepTrackingInitialized:0)|(r.dependsOn===void 0?De.AutoTracked:0)}destroy(){this.flags&De.Dirty&&this.onCommitted(),super.destroy(),this._accessed=null,this._clearObservationHandles()}getComputed(t){Se(this);let r=t.store,n=this.propertyName,i=this.flags,o=r.get(n);if(i&De.Computing||~i&De.Dirty&&r.has(n))return o;this.flags|=De.Computing;let s=t.host,a;i&De.AutoTracked?a=zn(this,this.metadata.get,s):(Sb(s,this),a=this.metadata.get.call(s)),r.set(n,a,ke.COMPUTED);let u=r.get(n);return u===o?this.flags&=~De.Dirty:u8(this.commit,this),this.flags&=~De.Computing,u}onObservableAccessed(t){t!==this&&(this._accessed??(this._accessed=new Set),this._accessed.add(t))}onTrackingEnd(){this._clearObservationHandles(),this.flags|=De.DepTrackingInitialized,this._accessed!=null&&(this._handles??(this._handles=[]),this._accessed.forEach(t=>{this._handles.push(t.observe(this))}),this._accessed.clear())}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~De.Dirty,this.onCommitted()}_clearObservationHandles(){let t=this._handles;if(t!==null){for(let r=0;r<t.length;++r)t[r].remove();t.length=0}}onInvalidated(){~this.flags&De.Overridden&&(this.flags|=De.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 A1,G8=P(()=>{Qt();js();A1=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,Le(n))}),r}get(t){return this._values.get(t)}originOf(){return ke.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 k1(e,t,r){return e!==void 0}function B8(e,t,r,n){return e!==void 0&&(!(r==null&&e.flags&De.NonNullable)||(n.lifecycle,nr.INITIALIZING,!1))}var N1,$b,Ob,q8=P(()=>{Fe();Qt();qe();Ju();Gu();z8();js();G8();Bs();y1();N1=class{constructor(t){this.host=t,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=nr.INITIALIZING,this.store=new A1,this._origin=ke.USER;let r=this.host.constructor.__accessorMetadata__;for(let n in r){let i=new Xu(n,r[n]);this.propertiesByName.set(n,i)}this.metadata=r}initialize(){this.lifecycle=nr.CONSTRUCTING}constructed(){this.lifecycle=nr.CONSTRUCTED}destroy(){this.lifecycle=nr.DESTROYED,this.propertiesByName.forEach(t=>t.destroy())}get initialized(){return this.lifecycle!==nr.INITIALIZING}get(t){let r=this.propertiesByName.get(t);if(r.metadata.get)return r.getComputed(this);Se(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&De.HasDefaultValue)return"defaults"}return I1(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(k1(r))return this.store.has(t)?this.store.get(t):r.metadata.value}internalSet(t,r){let n=this.propertiesByName.get(t);k1(n)&&this._internalSet(n,r)}getDependsInfo(t,r,n){let i=this.propertiesByName.get(r);if(!k1(i))return"";let o=new Set,s=zn({onObservableAccessed:u=>o.add(u),onTrackingEnd:()=>{}},()=>i.metadata.get?.call(t)),a=`${n}${t.declaredClass.split(".").pop()}.${r}: ${s}
|
|
5
|
+
`;if(o.size===0)return a;n+=" ";for(let u of o)u instanceof Xu&&(a+=`${n}${u.propertyName}: undefined
|
|
6
|
+
`);return a}setAtOrigin(t,r,n){let i=this.propertiesByName.get(t);if(k1(i))return this._setAtOrigin(i,r,n)}isOverridden(t){let r=this.propertiesByName.get(t);return r!==void 0&&!!(r.flags&De.Overridden)}clearOverride(t){let r=this.propertiesByName.get(t);r&&r.flags&De.Overridden&&(r.flags&=~De.Overridden,r.notifyChange())}override(t,r){let n=this.propertiesByName.get(t);if(!B8(n,t,r,this))return;let i=n.metadata.cast;if(i){let o=this._cast(i,r),{valid:s,value:a}=o;if(Ob.release(o),!s)return;r=a}n.flags|=De.Overridden,this._internalSet(n,r)}set(t,r){let n=this.propertiesByName.get(t);if(!B8(n,t,r,this))return;let i=n.metadata.cast;if(i){let s=this._cast(i,r),{valid:a,value:u}=s;if(Ob.release(s),!a)return;r=u}let o=n.metadata.set;o?o.call(this.host,r):this._internalSet(n,r)}setDefaultOrigin(t){this._origin=L1(t)}getDefaultOrigin(){return I1(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!==nr.INITIALIZING?this._origin:ke.DEFAULTS;this._setAtOrigin(t,r,n)}_setAtOrigin(t,r,n){let i=this.store,o=t.propertyName;i.has(o,n)&&ru(r,i.get(o))&&~t.flags&De.Overridden&&n===i.originOf(o)||(t.invalidate(),i.set(o,r,n),t.commit(),vb(this.host,t))}_cast(t,r){let n=Ob.acquire();return n.valid=!0,n.value=r,t&&(n.value=t.call(this.host,r,n)),n}},$b=class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}},Ob=new Gn($b)});function Fb(){return i$}var i$,j8,H8=P(()=>{(function(e){e[e.Ignore=0]="Ignore",e[e.Destroy=1]="Destroy",e[e.ThrowError=2]="ThrowError"})(j8||(j8={}))});function o$(e){e.length=0}var Dr,Vb,R1=P(()=>{Ju();Dr=class{constructor(t=50,r=50){this._pool=new Gn(Array,void 0,o$,r,t)}acquire(){return this._pool.acquire()}release(t){this._pool.release(t)}prune(){this._pool.prune(0)}static acquire(){return Vb.acquire()}static release(t){return Vb.release(t)}static prune(){Vb.prune()}},Vb=new Dr(100)});var D1,Z8=P(()=>{Ju();D1=class extends Gn{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 Y8(e){O1.push(e),O1.length===1&&queueMicrotask(()=>{let t=O1.slice();O1.length=0;for(let r of t)r()})}var O1,J8=P(()=>{O1=[]});var Qu,X8=P(()=>{Qu=class{constructor(t,r=30){this.name=t,this._counter=0,this._samples=new Array(r)}record(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 Ub,Wb,Q8=P(()=>{(function(e){let t=(o,s,a,u)=>{let d=s,f=s,m=a>>>1,w=o[d-1];for(;f<=m;){f=d<<1,f<a&&u(o[f-1],o[f])<0&&++f;let _=o[f-1];if(u(_,w)<=0)break;o[d-1]=_,d=f}o[d-1]=w},r=(o,s)=>o<s?-1:o>s?1:0;function n(o,s,a,u){s===void 0&&(s=0),a===void 0&&(a=o.length),u===void 0&&(u=r);for(let f=a>>>1;f>s;f--)t(o,f,a,u);let d=s+1;for(let f=a-1;f>s;f--){let m=o[s];o[s]=o[f],o[f]=m,t(o,d,f,u)}}function*i(o,s,a,u){s===void 0&&(s=0),a===void 0&&(a=o.length),u===void 0&&(u=r);for(let f=a>>>1;f>s;f--)t(o,f,a,u),yield;let d=s+1;for(let f=a-1;f>s;f--){let m=o[s];o[s]=o[f],o[f]=m,t(o,d,f,u),yield}}e.sort=n,e.iterableSort=i})(Ub||(Ub={}));Wb=Ub});function K8(e){e.data.length>s$*e.length&&(e.data.length=Math.floor(e.length*a$))}var s$,a$,Ku,e6=P(()=>{So();Q8();s$=1.5,a$=1.1,Ku=class{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new tu,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=()=>K8(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++,K8(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=h2(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(h2(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=px(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){Wb.sort(this.data,0,this.length,t)}iterableSort(t){return Wb.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){for(let n=0;n<this.length;++n){let i=this.data[n];if(t.call(r,i,n))return i}}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 l$(e){return{setTimeout:(t,r)=>{let n=e.setTimeout(t,r);return We(()=>e.clearTimeout(n))}}}var t6,r6=P(()=>{qr();t6=l$(globalThis)});function ed(e){return c$(e)||n6(e)}function c$(e){return e!=null&&typeof e=="object"&&"on"in e&&typeof e.on=="function"}function n6(e){return e!=null&&typeof e=="object"&&"addEventListener"in e&&typeof e.addEventListener=="function"}function Uo(e,t,r){if(!ed(e))throw new TypeError("target is not a Evented or EventTarget object");return n6(e)?u$(e,t,r):e.on(t,r)}function u$(e,t,r,n){if(Array.isArray(t)){let i=t.slice();for(let o of i)e.addEventListener(o,r,n);return We(()=>{for(let o of i)e.removeEventListener(o,r,n)})}return e.addEventListener(t,r,n),We(()=>e.removeEventListener(t,r,n))}function i6(e,t,r){if(!ed(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);let n=Uo(e,t,i=>{n.remove(),r.call(e,i)});return n}var td=P(()=>{qr()});function Bi(e="Aborted"){return new he("AbortError",e)}function s6(e){return e instanceof AbortSignal?e:e?.signal}function Wo(e){let t=s6(e);return t!=null&&t.aborted}function zb(e){if(!rd(e))throw e}function tn(e,t){let r=s6(e);if(r!=null){if(!r.aborted)return i6(r,"abort",()=>t());t()}}function rd(e){return e?.name==="AbortError"}function d$(e,t=void 0,r){let n=new AbortController;return tn(r,()=>n.abort()),new Promise((i,o)=>{let s=setTimeout(()=>{s=0,i(t)},e);tn(n,()=>{s&&(clearTimeout(s),o(Bi()))})})}function f$(e){return e&&typeof e.then=="function"}function o6(e){return f$(e)?e:Promise.resolve(e)}function a6(e,t=-1){let r,n,i,o,s=null,a=(...u)=>{if(r){n=u,o&&o.reject(Bi()),o=rn();let w=o.promise;if(s){let _=s;s=null,_.abort()}return w}if(i=o||rn(),o=null,t>0){let w=new AbortController;r=o6(e(...u,w.signal));let _=r;d$(t).then(()=>{r===_&&(o?w.abort():s=w)})}else r=1,r=o6(e(...u));let d=()=>{let w=n;n=i=r=s=null,w!=null&&a(...w)},f=r,m=i;return f.then(d,d),f.then(m.resolve,m.reject),m.promise};return a}function rn(){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)=>t6.setTimeout(()=>n.reject(o),i),n.promise=r,n}var fi=P(()=>{r6();vr();td();qe();qs()});var l6=P(()=>{});function p$(){id!=null&&(cancelAnimationFrame(id),id=requestAnimationFrame(d6))}function V1(e){let t=new Gb(e);return qb.push(t),F1.willDispatch||(F1.willDispatch=!0,Y8(p6)),t}function m$(e=!1){Il.forAll(t=>{t.removed=!0}),e&&f6()}function d6(){let e=performance.now();id=null,id=Il.length>0?requestAnimationFrame(d6):null,F1.executeFrameTasks(e)}function h$(e){let t=e-c6;c6=e;let r=u6>0?u6:1e3/60,n=Math.max(0,t-r);nd.time=e,nd.frameDuration=r-n;for(let i=0;i<Bb.length;i++){let o=performance.now(),s=Bb[i];Il.forAll(a=>{a.paused||a.removed||(i===0&&a.ticks++,a.phases[s]&&(nd.elapsedFrameTime=performance.now()-e,nd.deltaTime=a.ticks===0?0:t,a.phases[s]?.call(a,nd)))}),g$[i].record(performance.now()-o)}f6(),w$.record(performance.now()-e)}function f6(){Il.forAll(e=>{e.removed&&$1.push(e)}),Il.removeUnorderedMany($1.data,$1.length),$1.clear()}function p6(){for(;qb.length;){let e=qb.shift();e.isActive&&e.callback()}F1.willDispatch=!1}var Gb,c6,u6,nd,Bb,qb,Il,F1,id,$1,g$,w$,jb=P(()=>{J8();X8();e6();fi();l6();Gb=class{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}},c6=0,u6=0,nd={time:0,deltaTime:0,elapsedFrameTime:0,frameDuration:0},Bb=["prepare","preRender","render","postRender","update","finish"],qb=[],Il=new Ku;F1={frameTasks:Il,willDispatch:!1,clearFrameTasks:m$,dispatch:p6,executeFrameTasks:h$,reschedule:p$};id=null;$1=new Ku;g$=Bb.map(e=>new Qu(e)),w$=new Qu("total")});function m6(e,t){if(!t)return e;for(let r of t)r!=null&&e.add(r);return e}function h6(e,t){let r=new Set;return m6(r,e),m6(r,t),r}var Hb=P(()=>{});function U1(){return++y$}var y$,g6=P(()=>{y$=0});function b$(){}var Hs,Zb,w6,Yb=P(()=>{Hs=class{constructor(t){this._accessed=new Set,this._handles=[],this._observerObject=new Zb(t),w6.register(this,new WeakRef(this._observerObject),this)}destroy(){w6.unregister(this._observerObject),this._accessed.clear(),this._observerObject?.destroy(),this.clear()}onObservableAccessed(t){this._accessed.add(t)}onTrackingEnd(){let t=this._handles,r=this._observerObject;this._accessed.forEach(n=>{t.push(n.observe(r))}),this._accessed.clear()}clear(){let t=this._handles;for(let r=0;r<t.length;++r)t[r].remove();t.length=0}},Zb=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=b$}},w6=new FinalizationRegistry(e=>{e.deref()?.destroy()})});function Xb(e,t){let r=new Hs(o),n=null,i=!1;function o(){if(!r||i)return;if(Jb)return void _$(o);let a=n;r.clear(),Jb=!0,i=!0,n=zn(r,e),i=!1,Jb=!1,t(n,a),v$()}function s(){r&&(r.destroy(),r=null,n=null)}return i=!0,n=zn(r,e),i=!1,We(s)}function Qb(e,t){let r=new Hs(i),n=null;function i(){t(n,s)}function o(){r&&(r.destroy(),r=null),n=null}function s(){return r?(r.clear(),n=zn(r,e),n):null}return s(),We(o)}function _$(e){W1.includes(e)||W1.unshift(e)}function v$(){for(;W1.length;)W1.pop()()}var Jb,W1,Kb=P(()=>{qr();Bs();Yb();Jb=!1,W1=[]});function B1(e){zo.delete(e),zo.add(e),G1||(G1=V1(x$))}function S$(e){if(e.removed)return;let t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function y6(e){for(let t of zo.values())t.target===e&&(t.removed=!0)}function x$(){let e=10;for(;G1&&e--;){G1=null;let t=C$(),r=z1.acquire();for(let n of t){let i=n.uid;S$(n),i===n.uid&&n.removed&&r.push(n)}for(let n of zo)n.removed&&(r.push(n),zo.delete(n));for(let n of r)Zs.pool.release(n);z1.release(r),z1.release(t),T$.forEach(n=>n())}}function C$(){let e=z1.acquire();e.length=zo.size;let t=0;for(let r of zo)e[t]=r,++t;return zo.clear(),e}function E$(e,t,r){let n=hb(e,t,r,(i,o,s)=>{let a,u,d=Qb(()=>zs(i,o),(f,m)=>{i.__accessor__?.lifecycle===nr.DESTROYED||a&&a.uid!==u?n.remove():(a||(a=Zs.acquireUntracked(f,s,m,i,o),u=a.uid),B1(a))});return We(()=>{d.remove(),a&&(a.uid!==u||a.removed||(a.removed=!0,B1(a)),a=null),n=d=null})});return n}function M$(e,t,r){let n=hb(e,t,r,(i,o,s)=>{let a=!1;return Xb(()=>zs(i,o),(u,d)=>{i.__accessor__.lifecycle!==nr.DESTROYED?a||(a=!0,ru(d,u)||s.call(i,u,d,o,i),a=!1):n.remove()})});return n}function b6(e,t,r,n=!1){return e.__accessor__&&e.__accessor__.lifecycle!==nr.DESTROYED?n?M$(e,t,r):E$(e,t,r):We()}function P$(e,t,r){let n,i,o=Qb(e,(s,a)=>{n&&n.uid!==i?o.remove():(n||(n=Zs.acquireTracked(s,t,a,r),i=n.uid),B1(n))});return We(()=>{o.remove(),n&&(n.uid!==i||n.removed||(n.removed=!0,B1(n)),n=null),o=null})}function L$(e,t,r){let n=!1;return Xb(e,(i,o)=>{n||(n=!0,r(o,i)||t(i,o),n=!1)})}function _6(e,t,r=!1,n=Px){return r?L$(e,t,n):P$(e,t,n)}var od,Zs,z1,zo,G1,T$,e_=P(()=>{R1();qr();Qt();Z8();jb();Hb();g6();Gs();Gu();Kb();Fo();(function(e){e[e.Untracked=0]="Untracked",e[e.Tracked=1]="Tracked"})(od||(od={}));Zs=class{constructor(){this.uid=U1(),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(od.Untracked,t,r,n,i,o,ru)}static acquireTracked(t,r,n,i){return this.pool.acquire(od.Tracked,t,r,n,null,null,i)}notify(t,r){this.type===od.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,a){this.uid=U1(),this.removed=!1,this.type=t,this.oldValue=r,this.callback=n,this.getValue=i,this.target=o,this.path=s,this.equals=a}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=U1(),this.removed=!0}};Zs.pool=new D1(Zs);z1=new Dr,zo=new Set;T$=new Set});function I$(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 v6,S6,pi,t_,mi,sd=P(()=>{Nb();F8();qe();qs();bb();Gs();Gu();Tl();q8();yb();H8();e_();rr();jt();pi=Symbol("Accessor-Handles"),t_=Symbol("Accessor-Initialized"),mi=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(...u){super(...u),this.inherited=null,i&&i.apply(this,u)}}Vo(s.prototype);for(let a in t){let u=t[a];s.prototype[a]=typeof u=="function"?function(...d){let f=this.inherited,m;this.inherited=function(...w){if(o.prototype[a])return o.prototype[a].apply(this,w)};try{m=u.apply(this,d)}catch(w){throw this.inherited=f,w}return this.inherited=f,m}:t[a]}for(let a in r){let u=I$(r[a]);j(u)(s.prototype,a)}return Me(n)(s)}constructor(...t){if(this[v6]=null,this[S6]=!1,this.constructor===e)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");let r=new N1(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:r}),t.length>0&&(r.ctorArgs=this.normalizeCtorArgs?.apply(this,t)??t[0]),Fb()?.onInstanceConstruct(this)}postscript(){let t=this.__accessor__,r=t.ctorArgs;t.initialize(),r&&(this.set(r),t.ctorArgs=null),t.constructed(),this.initialize(),this[t_]=!0}initialize(){}[w1](){this[pi]=Zu(this[pi])}destroy(){this.destroyed||(y6(this),this.__accessor__.destroy(),Fb()?.onInstanceDestroy(this))}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[t_]}get destroyed(){return this.__accessor__?.lifecycle===nr.DESTROYED||!1}commitProperty(t){Wn(this,t)}get(t){return E1(Ce.getLogger(this),"`Accessor.get` is deprecated in favor of using optional chaining",{version:"4.28",see:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining"}),Wn(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 Ml(this,t,r),this}watch(t,r,n){return b6(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[pi]??(this[pi]=new Pl)).add(t,r)}removeHandles(t){this[pi]?.remove(t)}removeAllHandles(){this[pi]?.removeAll()}removeHandlesReference(t){this[pi]?.removeReference(t)}hasHandles(t){return this[pi]?.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}};v6=pi,S6=t_});var q1,r_,x6=P(()=>{Qt();js();q1=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,Le(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??ke.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))===ke.DEFAULTS){let i=this._values.get(t);if(i?.origin!=null&&i.origin>n)return}this._values.set(t,new r_(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===ke.DEFAULTS?t:ke.USER}},r_=class{constructor(t,r){this.value=t,this.origin=r}}});function C6(e,t,r){t.keys().forEach(i=>{r.set(i,t.get(i),ke.DEFAULTS)});let n=e.metadata;Object.keys(n).forEach(i=>{e.internalGet(i)&&r.set(i,e.internalGet(i),ke.DEFAULTS)})}var T6=P(()=>{js()});function A$(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&&gb(n,r))return!0}else for(let i of n)if(i===t||i.includes(".")&&i.indexOf(t)===0&&gb(i,r))return!0;return!1}function k$(e){return e&&(!e.read||e.read.enabled!==!1&&!e.read.source)}function N$(e,t,r,n,i){let o=C1(t[r],i);k$(o)&&(e[r]=!0);for(let s of Object.getOwnPropertyNames(t))o=C1(t[s],i),A$(o,r,n)&&(e[s]=!0)}function R$(e,t,r,n){let i=r.metadata,o=L8(i[t],n),s=o?.default;if(s===void 0)return;let a=typeof s=="function"?s.call(e,t,n):s;a!==void 0&&r.set(t,a)}function E6(e,t,r=D$){if(!t||typeof t!="object")return;let n=di(e),i=n.metadata,o={};for(let s of Object.getOwnPropertyNames(t))N$(o,i,s,t,r);n.setDefaultOrigin(r.origin);for(let s of Object.getOwnPropertyNames(o)){let a=C1(i[s],r).read,u=a?.source,d;d=u&&typeof u=="string"?zs(t,u):t[s],a?.reader&&(d=a.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]||R$(e,s,n,r)}n.setDefaultOrigin("user")}var D$,M6=P(()=>{Gs();Fo();T1();D$={origin:"service"}});function O$(e,t,r,n,i){let o={};return t.write?.writer?.call(e,n,o,r,i),o}function $$(e,t,r,n,i,o){if(!n?.write)return!1;let s=Wn(e,r);if(!i&&n.write.overridePolicy){let a=n.write.overridePolicy.call(e,s,r,o??void 0);a!==void 0&&(i=a)}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 a=new he("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return a&&o?.messages?o.messages.push(a):a&&!o&&Ce.getLogger("esri.core.accessorSupport.write").error(a.name,a.message),!1}return!(s===void 0||s===null&&!i.allowNull&&!i.writerEnsuresNonNull||!i.alwaysWriteDefaults&&(!t.store.multipleOriginsSupported||t.store.originOf(r)===ke.DEFAULTS)&&F$(e,r,o,n,s)||!i.ignoreOrigin&&o?.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<L1(o.origin))}function F$(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 vo(s,i)}return!1}return o===i}function P6(e,t,r){if(e&&typeof e.toJSON=="function"&&(!e.toJSON.isDefaultToJSON||!e.write))return xl(t,e.toJSON(r));let n=di(e),i=n.metadata;for(let o in i){let s=I8(i[o],r);if(!$$(e,n,o,s,void 0,r))continue;let a=Wn(e,o),u=O$(e,s,s.write&&typeof s.write.target=="string"?s.write.target:o,a,r);Object.keys(u).length>0&&(t=xl(t,u),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>xl(t,u,()=>"replace-arrays"))),r?.writtenProperties&&r.writtenProperties.push({target:e,propName:o,oldOrigin:W8(n.store.originOf(o)),newOrigin:r.origin}))}return t}var L6=P(()=>{So();vr();qe();Gs();js();Fo();T1()});function U$(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 ad(e){return e&&typeof e=="object"&&"toJSON"in e&&typeof e.toJSON=="function"}var V$,hi,Ys=P(()=>{tr();sd();x6();T6();M6();Fo();L6();jt();V$=e=>{let t=class extends e{constructor(...r){super(...r);let n=di(this),i=n.store,o=new q1;n.store=o,C6(n,i,o)}read(r,n){E6(this,r,n)}write(r,n){return P6(this,r??{},n)}toJSON(r){return this.write({},r)}static fromJSON(r,n){return U$.call(this,r,n)}};return t=R([Me("esri.core.JSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};hi=class extends V$(mi){};hi=R([Me("esri.core.JSONSupport")],hi)});function j1(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 a=o.constructor.prototype;n.forEach(u=>{let d=g1(o,u,i);d.read&&typeof d.read=="object"||(d.read={}),d.read.reader=a[s],r&&(d.read.source=(d.read.source||[]).concat(r))})}}var n_=P(()=>{rr()});function W$(e){let t={};for(let r in e)t[e[r]]=r;return t}function I6(e){let t=[];for(let r in e)t.push(r);return t.sort(),t}function gi(){return function(e,t){return new i_(e,{ignoreUnknown:!0,...t})}}var i_,H1=P(()=>{ai();i_=class{constructor(t,r={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=t,this._options=r,this.apiValues=[],this.jsonValues=[],this._apiToJSON=W$(t),this.apiValues=I6(this._apiToJSON),this.jsonValues=I6(this._jsonToAPI),this.read=n=>this.fromJSON(n),this.write=(n,i,o)=>{let s=this.toJSON(n);s!==void 0&&Fi(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 ld,Bn,Z1,Y1,J1=P(()=>{ld=class{constructor(t,r,n,i){this.semiMajorAxis=t,this.flattening=r,this.outerAtmosphereRimWidth=n;let o=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*o,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=i||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}},Bn=new ld(6378137,1/298.257223563,3e5,.006694379990137799),Z1=new ld(3396190,1/169.8944472236118,23e4),Y1=new ld(1737400,0,0)});function X1(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function o_(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 Q1=P(()=>{});function A6(e){let t=new Uint8Array(e),r="";for(let n=0;n<t.length;n++)r+=String.fromCharCode(t[n]);return btoa(r)}var k6=P(()=>{});function Q$(){let e=Sr.path,t=e.substring(0,e.lastIndexOf(e.split("/")[e.split("/").length-1]));return`${`${Sr.scheme}://${Sr.host}${Sr.port!=null?`:${Sr.port}`:""}`}${t}`}function Go(e){if(!e)return null;let t={path:null,query:null},r=new xr(e),n=e.indexOf("?");return r.query===null?t.path=e:(t.path=e.substring(0,n),t.query=Bo(r.query)),r.fragment&&(t.hash=r.fragment,r.query===null&&(t.path=t.path.substring(0,t.path.length-(r.fragment.length+1)))),t}function Bo(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 a=r[o];typeof a=="string"&&(a=r[o]=[a]),Array.isArray(a)?a.push(s):r[o]=s}return r}function Js(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=>ad(s)?i+encodeURIComponent(JSON.stringify(s)):i+encodeURIComponent(s)).join("&"):ad(n)?i+encodeURIComponent(JSON.stringify(n)):i+encodeURIComponent(n)}).filter(r=>r).join("&"):""}function O6(e=!1){let t,r=Al.proxyUrl;if(typeof e=="string"){t=eF(e);let n=kl(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw z$().warn(N6),new he("urlUtils:proxy-not-set",N6);return t&&s_()&&(r=s0(r)),Go(r)}function $6(e){let t=e.indexOf("?");return t!==-1?(cd.path=e.slice(0,t),cd.query=e.slice(t+1)):(cd.path=e,cd.query=null),cd}function F6(e){return e=(e=W6(e=oF(e=$6(e).path),!0)).toLowerCase()}function V6(e){let t={proxyUrl:e.proxyUrl,urlPrefix:F6(e.urlPrefix)},r=Al.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 kl(e){let t=Al.proxyRules,r=F6(e);for(let n=0;n<t.length;n++)if(r.indexOf(t[n].urlPrefix)===0)return t[n]}function l_(e,t=Al.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 Or(e,t,r=!1){if(!e||!t)return!1;let n=a_(e),i=a_(t);return!(!r&&n.scheme!==i.scheme)&&n.host!=null&&i.host!=null&&n.host.toLowerCase()===i.host.toLowerCase()&&n.port===i.port}function t0(e){if(typeof e=="string"){if(!U6(e))return!0;e=a_(e)}if(Or(e,Sr))return!0;let t=Al.trustedServers||[];for(let r=0;r<t.length;r++){let n=K$(t[r]);for(let i=0;i<n.length;i++)if(Or(e,n[i]))return!0}return!1}function K$(e){return K1[e]||(u_(e)||jo(e)?K1[e]=[new xr(qo(e))]:K1[e]=[new xr(`http://${e}`),new xr(`https://${e}`)]),K1[e]}function qo(e,t=X$,r){return jo(e)?r?.preserveProtocolRelative?e:Sr.scheme==="http"&&Sr.authority===jr(e).slice(2)?`http:${e}`:`https:${e}`:u_(e)?e:c_(e[0]==="/"?iF(t):t,e)}function r0(e){return e=lF(e=aF(e=sF(e=qo(e=e.trim()))))}function c_(...e){let t=e.filter(hx);if(!t?.length)return;let r=[];if(U6(t[0])){let i=t[0],o=i.indexOf("//");o!==-1&&(r.push(i.slice(0,o+1)),rF(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 jr(e,t=!1){if(e==null||n0(e)||i0(e))return null;let r=e.indexOf("://");if(r===-1&&jo(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=W6(e,!0)),e}function U6(e){return jo(e)||u_(e)}function n0(e){return e!=null&&e.slice(0,5)==="blob:"}function i0(e){return e!=null&&e.slice(0,5)==="data:"}function o0(e){return A6(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function jo(e){return e!=null&&e[0]==="/"&&e[1]==="/"}function u_(e){return e!=null&&R6.test(e)}function eF(e){return e!=null&&G$.test(e)||Sr.scheme==="https"&&jo(e)}function tF(e){return e!=null&&D6.test(e)||Sr.scheme==="http"&&jo(e)}function rF(e){return e!=null&&B$.test(e)}function s0(e){return jo(e)?`https:${e}`:e.replace(D6,"https:")}function nF(){return Sr.scheme==="http"}function s_(){return Sr.scheme==="https"}function W6(e,t=!1){return jo(e)?e.slice(2):(e=e.replace(R6,""),t&&e.length>1&&e[0]==="/"&&e[1]==="/"&&(e=e.slice(2)),e)}function iF(e){let t=e.indexOf("//"),r=e.indexOf("/",t+2);return r===-1?e:e.slice(0,r)}function oF(e){return e.endsWith("/")?e:`${e}/`}function sF(e){if(/^https?:\/\//i.test(e)){let t=$6(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}function aF(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}function lF(e){let t=Al.httpsDomains;if(!tF(e))return e;let r=e.indexOf("/",7),n;if(n=r===-1?e:e.slice(0,r),n=n.toLowerCase().slice(7),q$.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return nF()&&n===Sr.authority&&!j$.test(e)||(s_()&&n===Sr.authority||t&&t.some(i=>n===i||n.endsWith(`.${i}`))||s_()&&!kl(e))&&(e=s0(e)),e}function a_(e){return typeof e=="string"?new xr(qo(e)):(e.scheme||(e.scheme=Sr.scheme),e)}function Nl(e,t){if(!t)return e;let r=Go(e),n=r.query||{};for(let[o,s]of Object.entries(t))s!=null&&(n[o]=s);let i=Js(n);return i?`${r.path}?${i}`:r.path}var z$,Al,N6,R6,D6,G$,B$,q$,j$,H$,Z$,xr,K1,Y$,Sr,J$,X$,e0,cd,Ho=P(()=>{Ws();So();vr();Ys();qe();Q1();k6();z$=()=>Ce.getLogger("esri.core.urlUtils"),Al=Ze.request,N6="esri/config: esriConfig.request.proxyUrl is not set.",R6=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,D6=/^\s*http:/i,G$=/^\s*https:/i,B$=/^\s*file:/i,q$=/:\d+$/,j$=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,H$=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),Z$=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$"),xr=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(H$);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(Z$),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}},K1={},Y$=new xr(Ze.applicationUrl),Sr=Y$,J$=Q$(),X$=J$,e0=()=>Sr;cd={path:"",query:""}});function z6(e){Ht=e}var cF,Ht,uF,a0=P(()=>{Fe();Ho();lb();Symbol.dispose??(Symbol.dispose=Symbol("Symbol.dispose")),Symbol.asyncDispose??(Symbol.asyncDispose=Symbol("Symbol.asyncDispose"));cF="4.31",uF=cF;uF=`4.31.0-next.${l1}`;X("host-webworker")});function G6(e){let t=jr(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!dF.has(t)&&!e.endsWith("/sharing/rest/generateToken")}var dF,B6=P(()=>{Ho();dF=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"])});function j6(e,t,r=!1,n){return new Promise((i,o)=>{if(Wo(n))return void o(q6());let s=()=>{d(),o(new Error(`Unable to load ${t}`))},a=()=>{let f=e;d(),i(f)},u=()=>{if(!e)return;let f=e;d(),f.src="",o(q6())},d=()=>{X("esri-image-decode")||(e.removeEventListener("error",s),e.removeEventListener("load",a)),s=null,a=null,e=null,n?.removeEventListener("abort",u),u=null,r&&URL.revokeObjectURL(t)};n?.addEventListener("abort",u),X("esri-image-decode")?e.decode().then(a,s):(e.addEventListener("error",s),e.addEventListener("load",a))})}function q6(){try{return new DOMException("Aborted","AbortError")}catch{let e=new Error;return e.name="AbortError",e}}function H6(){return new Error(fF)}function Z6(e){Ze.request.crossOriginNoCorsDomains||(Ze.request.crossOriginNoCorsDomains={});let t=Ze.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[jr(r)??""]=0:(t[jr("http://"+r)??""]=0,t[jr("https://"+r)??""]=0)}function Y6(e){let t=Ze.request.crossOriginNoCorsDomains;if(t){let r=jr(e);if(r)return r=r.toLowerCase(),!Or(r,e0())&&t[r]<Date.now()-36e5}return!1}async function J6(e){let t=Ze.request.crossOriginNoCorsDomains,r=jr(e);t&&r&&(t[r.toLowerCase()]=Date.now());let n=Go(e);e=n.path,n.query?.f==="json"&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}}var fF,X6=P(()=>{Ws();Fe();fi();Ho();fF="Timeout exceeded"});var Q6={};ei(Q6,{execute:()=>pF});function pF(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,a,u,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"||(u=await o.text(),r!=="json")))){try{s=JSON.parse(u||null)}catch(f){let m={...f,url:e,requestOptions:t};throw new he("request:server",f.message,m)}if(s.error){let f={...s.error,url:e,requestOptions:t};throw new he("request:server",s.error.message,f)}}}else r==="native"&&(i.data.signal=n,a=await fetch(i.data.url,i.data),i.httpStatus=a.status);switch(r){case"blob":d=o;break;case"json":d=s;break;case"native":d=a;break;case"text":d=u;break;default:d=i.data}return{data:d,httpStatus:i.httpStatus,requestOptions:t,ssl:i.ssl,url:e}})}var K6=P(()=>{vr()});var Rl,Xs,l0=P(()=>{tr();sd();qr();jt();Rl=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 a=this._target||this,u=!1;for(let d of s.slice()){let f="deref"in d?d.deref():d;f?f?.call(a,o):u=!0}return u&&(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 a=i.map(u=>this.on(u,o));return Us(a)}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),We(()=>{let a=this._listenersMap?.get(i),u=a?.indexOf(o)??-1;u>=0&&a.splice(u,1)})}once(i,o){let s=this.on(i,a=>{s.remove(),("deref"in o?o.deref():o)?.call(null,a)});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=R([Me("esri.core.Evented")],i),i};let r=class extends mi{constructor(){super(...arguments),this._emitter=new Rl.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=R([Me("esri.core.Evented.EventedAccessor")],r),e.EventedAccessor=r})(Rl||(Rl={}));Xs=Rl});var d_,eC=P(()=>{d_=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 mF(e){return"timeZoneIANA"in e}function hF(e){return e.startsWith("UTC")}function c0(e,t=ud){return e?mF(e)?e.timeZoneIANA:gF(e,t):t}function gF(e,t=ud){if(!e||!d_.has(e.timeZone))return t;let r=d_.get(e.timeZone);return hF(e.timeZone)||e.respectsDaylightSaving?r:wF(r)}function wF(e){let t=ae.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${Be.instance(-r).formatOffset(0,"narrow")}`}var ud,Qs,Ks,tC,u0=P(()=>{eC();Rr();ud="system",Qs="unknown",Ks="UTC",tC=Intl.DateTimeFormat().resolvedOptions().timeZone});function vF(e){let t=f_.get(e);if(!t){let r=en(),n=bF[r]||r,i=SF(e.timeZone??ud),o={...e,timeZone:i};t=new Intl.DateTimeFormat(n,o),f_.set(e,t)}return t}function ta(e,t=_F){return vF(t).format(e)}function SF(e){switch(e){case ud:return tC;case Qs:return Ks;default:return e}}var wi,dd,fd,pd,Zo,ea,rC,md,hd,yF,jse,bF,f_,_F,d0=P(()=>{H1();Gi();u0();Rr();wi={year:"numeric",month:"numeric",day:"numeric"},dd={year:"numeric",month:"long",day:"numeric"},fd={year:"numeric",month:"short",day:"numeric"},pd={year:"numeric",month:"long",weekday:"long",day:"numeric"},Zo={hour:"numeric",minute:"numeric"},ea={...Zo,second:"numeric"},rC={hourCycle:"h23"},md={...Zo,...rC},hd={...ea,...rC},yF={"short-date":wi,"short-date-short-time":{...wi,...Zo},"short-date-short-time-24":{...wi,...md},"short-date-long-time":{...wi,...ea},"short-date-long-time-24":{...wi,...hd},"short-date-le":wi,"short-date-le-short-time":{...wi,...Zo},"short-date-le-short-time-24":{...wi,...md},"short-date-le-long-time":{...wi,...ea},"short-date-le-long-time-24":{...wi,...hd},"long-month-day-year":dd,"long-month-day-year-short-time":{...dd,...Zo},"long-month-day-year-short-time-24":{...dd,...md},"long-month-day-year-long-time":{...dd,...ea},"long-month-day-year-long-time-24":{...dd,...hd},"day-short-month-year":fd,"day-short-month-year-short-time":{...fd,...Zo},"day-short-month-year-short-time-24":{...fd,...md},"day-short-month-year-long-time":{...fd,...ea},"day-short-month-year-long-time-24":{...fd,...hd},"long-date":pd,"long-date-short-time":{...pd,...Zo},"long-date-short-time-24":{...pd,...md},"long-date-long-time":{...pd,...ea},"long-date-long-time-24":{...pd,...hd},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":Zo,"long-time":ea},jse=gi()({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"}),bF={ar:"ar-u-nu-latn-ca-gregory"},f_=new WeakMap,_F=yF["short-date-short-time"];_l(()=>{f_=new WeakMap})});function CF(e){let t=e||nC;if(!f0.has(t)){let r=en(),n=xF[en()]||r;f0.set(t,new Intl.NumberFormat(n,e))}return f0.get(t)}function Dl(e,t){return Object.is(e,-0)&&(e=0),CF(t).format(e)}var xF,f0,nC,p_=P(()=>{Gi();xF={ar:"ar-u-nu-latn"},f0=new WeakMap,nC={};_l(()=>{f0=new WeakMap,nC={}})});function m_(e,t,r={}){let{format:n={}}=r;return li(e,i=>TF(i,t,n))}function TF(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=wn(n,t);if(s==null)return"";let a=(i?r?.[i]:null)??r?.[n];return a?EF(s,a):i?MF(s,i):h_(s)}function EF(e,t){switch(t.type){case"date":return ta(e,t.intlOptions);case"number":return Dl(e,t.intlOptions);default:return iC().warn("missing format descriptor for key {key}"),h_(e)}}function MF(e,t){switch(t.toLowerCase()){case"dateformat":return ta(e);case"numberformat":return Dl(e);default:return iC().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?ta(e):/^numberformat/i.test(t)?Dl(e):h_(e)}}function h_(e){switch(typeof e){case"string":return e;case"number":return Dl(e);case"boolean":return""+e;default:return e instanceof Date?ta(e):""}}var iC,g_=P(()=>{qe();ai();Co();d0();p_();iC=()=>Ce.getLogger("esri.intl.substitute")});function sC(e){return e in PF}function aC(e){for(let t of Ol.keys())cC(e.pattern,t)&&Ol.delete(t)}function lC(e){return gd.includes(e)||(aC(e),gd.unshift(e)),We(()=>{let t=gd.indexOf(e);t>-1&&(gd.splice(t,1),aC(e))})}async function w_(e){let t=en();Ol.has(e)||Ol.set(e,LF(e,t));let r=Ol.get(e);return r&&await IF.add(r),r}function y_(e){if(!oC.test(e))return null;let t=oC.exec(e);if(t===null)return null;let[,r,n]=t,i=r+(n?"-"+n.toUpperCase():"");return sC(i)?i:sC(r)?r:null}async function LF(e,t){let r=[];for(let n of gd)if(cC(n.pattern,e))try{return await n.fetchMessageBundle(e,t)}catch(i){r.push(i)}throw r.length?new he("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r}):new he("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}function cC(e,t){return typeof e=="string"?t.startsWith(e):e.test(t)}var oC,PF,gd,Ol,IF,wd=P(()=>{vr();qr();fi();Gi();oC=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,PF={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};gd=[],Ol=new Map;_l(()=>{Ol.clear()});IF=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=rn())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&this._numLoading===0&&(this._dfd.resolve(),this._dfd=null)}}});async function AF(e,t,r,n){let i=t.exec(r);if(!i)throw new he("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);let o=i[1]?`${i[1]}/`:"",s=i[2],a=y_(n),u=`${o}${s}.json`,d=a?`${o}${s}_${a}.json`:u,f;try{f=await uC(e(d))}catch(m){if(d===u)throw new he("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:m});try{f=await uC(e(u))}catch(w){throw new he("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:w})}}return f}async function uC(e){if(dC.fetchBundleAsset!=null)return dC.fetchBundleAsset(e);let t=await gt(e,{responseType:"text"});return JSON.parse(t.data)}function fC(e){return new b_(e)}var b_,dC,pC=P(()=>{p0();vr();wd();b_=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 AF(this.getAssetUrl,this.matcher,t,r)}};dC={}});var h0=P(()=>{d0();p_();g_();Gi();wd();wd();pC();m0();lC(fC({pattern:"esri/",location:$l}))});function mC(e){return typeof e=="string"?document.getElementById(e):e??null}var Cae,hC=P(()=>{Cae=typeof Element.prototype.closest=="function"?(e,t)=>e.closest(t):(e,t)=>{let r=e;do{if(r.matches(t))return r;r=r.parentElement}while(r!==null&&r.nodeType===1);return null}});var Yo,__,v_,gC,wC=P(()=>{tr();sd();fi();jt();(function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"})(Yo||(Yo={}));__=class{constructor(){this._resolver=rn(),this._status=Yo.PENDING,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=Yo.RESOLVED,this._cleanUp()},()=>{this._status=Yo.REJECTED,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return this._status===Yo.RESOLVED}isRejected(){return this._status===Yo.REJECTED}isFulfilled(){return this._status!==Yo.PENDING}abort(){this._resolver.reject(Bi())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;let t=rn(),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||rd(i)||this._resolver.reject(i)}),t.resolve()}},v_=e=>{let t=class extends e{constructor(...r){super(...r),this._promiseProps=new __,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=R([Me("esri.core.Promise")],t),t},gC=class extends v_(mi){};gC=R([Me("esri.core.Promise")],gC)});function OF(e){return{ok:!0,value:e}}function $F(e){return{ok:!1,error:e}}function FF(e){return e!=null&&e.ok===!0?e.value:null}function VF(e){return e!=null&&e.ok===!1?e.error:null}var ra,yC=P(()=>{tr();sd();qs();fi();rr();jt();ra=class extends mi{get value(){return FF(this._result)}get error(){return VF(this._result)}get finished(){return this._result!=null}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=V8(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=OF(n),this._cleanup()},n=>{this._result=$F(n),this._cleanup()}),this._abortHandle=tn(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=Yu(this._abortHandle),this._abortController=null}};R([j()],ra.prototype,"value",null),R([j()],ra.prototype,"error",null),R([j()],ra.prototype,"finished",null),R([j()],ra.prototype,"promise",void 0),R([j()],ra.prototype,"_result",void 0),ra=R([Me("esri.core.asyncUtils.ReactiveTask")],ra)});var Oe,bC=P(()=>{(function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"})(Oe||(Oe={}))});function _C(e){return(t,r)=>{t[r]=e}}var vC=P(()=>{});var g0,SC=P(()=>{Db();g0=class extends Ll{notify(){let t=this._observers;if(t&&t.length>0){let r=t.slice();for(let n of r)n.onInvalidated(),n.onCommitted()}}}});function xC(e){e&&typeof e=="object"&&"destroy"in e&&typeof e.destroy=="function"&&e.destroy()}function S_(e){return e?e instanceof Ko?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function x_(e){if(e?.length)return e[0]}function UF(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 CC(e,t,r,n){t&&t.forEach((i,o,s)=>{e.push(i),CC(e,r.call(n,i,o,s),r,n)})}var qi,T_,E_,Sn,Jo,Xo,Qo,C_,WF,Ko,TC=P(()=>{tr();R1();l0();qr();Qt();Ju();bC();jb();$o();Bs();rr();vC();jt();SC();T_=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}},E_=class{constructor(t,r,n,i,o){this.target=t,this.added=r,this.removed=n,this.start=i,this.deleteCount=o}},Sn=new Gn(T_,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});Jo=new Set,Xo=new Set,Qo=new Set,C_=new Map,WF=0,Ko=qi=class extends Xs.EventedAccessor{static isCollection(e){return e!=null&&e instanceof qi}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new g0,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:WF++})}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof qi?{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 Se(this._observable),this._items}set items(e){this._emitBeforeChanges(Oe.ADD)||(this._splice(0,this.length,S_(e)),this._emitAfterChanges(Oe.ADD))}hasEventListener(e){return!this.destroyed&&(e==="change"?this._chgListeners.length>0:this._emitter.hasEventListener(e))}on(e,t){if(this.destroyed)return We();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:[]}),We(()=>{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(Se(this._observable),this._emitBeforeChanges(Oe.ADD))return this;let r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(Oe.ADD),this}addMany(e,t=this._items.length){if(Se(this._observable),!e?.length)return this;if(this._emitBeforeChanges(Oe.ADD))return this;let r=this.getNextIndex(t);return this._splice(r,0,S_(e)),this._emitAfterChanges(Oe.ADD),this}at(e){if(Se(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if(Se(this._observable),!this.length||this._emitBeforeChanges(Oe.REMOVE))return[];let e=this._removeAllRaw();return this._emitAfterChanges(Oe.REMOVE),e}_removeAllRaw(){return this.length===0?[]:this._splice(0,this.length)||[]}clone(){return Se(this._observable),this._createNewInstance({items:this._items.map(Le)})}concat(...e){Se(this._observable);let t=e.map(S_);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if(Se(this._observable),!this.length||this._emitBeforeChanges(Oe.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(Oe.REMOVE)}destroyAll(){this.drain(xC)}destroyMany(e){let t=this.removeMany(e);return t.forEach(xC),t}every(e,t){return Se(this._observable),this._items.every(e,t)}filter(e,t){let r;return Se(this._observable),r=arguments.length===2?this._items.filter(e,t):this._items.filter(e),this._createNewInstance({items:r})}find(e,t){return Se(this._observable),this._items.find(e,t)}findIndex(e,t){return Se(this._observable),this._items.findIndex(e,t)}flatten(e,t){Se(this._observable);let r=[];return CC(r,this,e,t),new qi(r)}forEach(e,t){return Se(this._observable),this._items.forEach(e,t)}getItemAt(e){return Se(this._observable),this._items[e]}getNextIndex(e){Se(this._observable);let t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return Se(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return Se(this._observable),this._items.indexOf(e,t)}join(e=","){return Se(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return Se(this._observable),this._items.lastIndexOf(e,t)}map(e,t){Se(this._observable);let r=this._items.map(e,t);return new qi({items:r})}reorder(e,t=this.length-1){Se(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(Oe.MOVE))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(Oe.MOVE)}return e}}pop(){if(Se(this._observable),!this.length||this._emitBeforeChanges(Oe.REMOVE))return;let e=x_(this._splice(this.length-1,1));return this._emitAfterChanges(Oe.REMOVE),e}push(...e){return Se(this._observable),this._emitBeforeChanges(Oe.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(Oe.ADD)),this.length}reduce(e,t){Se(this._observable);let r=this._items;return arguments.length===2?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){Se(this._observable);let r=this._items;return arguments.length===2?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return Se(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if(Se(this._observable),e<0||e>=this.length||this._emitBeforeChanges(Oe.REMOVE))return;let t=x_(this._splice(e,1));return this._emitAfterChanges(Oe.REMOVE),t}removeMany(e){if(Se(this._observable),!e?.length||this._emitBeforeChanges(Oe.REMOVE))return[];let t=e instanceof qi?e.toArray():e,r=this._items,n=[],i=t.length;for(let o=0;o<i;o++){let s=t[o],a=r.indexOf(s);if(a>-1){let u=1+UF(t,r,o+1,a+1),d=this._splice(a,u);d&&d.length>0&&n.push.apply(n,d),o+=u-1}}return this._emitAfterChanges(Oe.REMOVE),n}reverse(){if(Se(this._observable),this._emitBeforeChanges(Oe.MOVE))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(Oe.MOVE),this}shift(){if(Se(this._observable),!this.length||this._emitBeforeChanges(Oe.REMOVE))return;let e=x_(this._splice(0,1));return this._emitAfterChanges(Oe.REMOVE),e}slice(e=0,t=this.length){return Se(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return Se(this._observable),this._items.some(e,t)}sort(e){if(Se(this._observable),!this.length||this._emitBeforeChanges(Oe.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(Oe.MOVE),this}splice(e,t,...r){Se(this._observable);let n=(t?Oe.REMOVE:0)|(r.length?Oe.ADD:0);if(this._emitBeforeChanges(n))return[];let i=this._splice(e,t,r)||[];return this._emitAfterChanges(n),i}toArray(){return Se(this._observable),this._items.slice()}toJSON(){return Se(this._observable),this.toArray()}toLocaleString(){return Se(this._observable),this._items.toLocaleString()}toString(){return Se(this._observable),this._items.toString()}unshift(...e){return Se(this._observable),!e.length||this._emitBeforeChanges(Oe.ADD)||(this._splice(0,0,e),this._emitAfterChanges(Oe.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=V1(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(s=n.splice(e,t),this.hasEventListener("before-remove")){let a=Sn.acquire();a.target=this,a.cancellable=!0;for(let u=0,d=s.length;u<d;u++)o=s[u],a.reset(o),this.emit("before-remove",a),a.defaultPrevented&&(s.splice(u,1),n.splice(e,0,o),e+=1,u-=1,d-=1);Sn.release(a)}if(this.length=this._items.length,this.hasEventListener("after-remove")){let a=Sn.acquire();a.target=this,a.cancellable=!1;let u=s.length;for(let d=0;d<u;d++)a.reset(s[d]),this.emit("after-remove",a);Sn.release(a)}}if(r?.length){if(i){let f=[];for(let m of r){let w=i.ensureType(m);w==null&&m!=null||f.push(w)}r=f}let a=this.hasEventListener("before-add"),u=this.hasEventListener("after-add"),d=e===this.length;if(a||u){let f=Sn.acquire();f.target=this,f.cancellable=!0;let m=Sn.acquire();m.target=this,m.cancellable=!1;for(let w of r)a?(f.reset(w),this.emit("before-add",f),f.defaultPrevented||(d?n.push(w):n.splice(e++,0,w),this._set("length",n.length),u&&(m.reset(w),this.emit("after-add",m)))):(d?n.push(w):n.splice(e++,0,w),this._set("length",n.length),m.reset(w),this.emit("after-add",m));Sn.release(m),Sn.release(f)}else{if(d)for(let f of r)n.push(f);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 a=new E_(this,r,s,e,t);this.emit("after-splice",a)}return s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let r=Sn.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,Sn.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=Sn.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),Sn.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;Jo.clear(),Xo.clear(),Qo.clear();for(let{added:u,removed:d}of r){if(u)if(Qo.size===0&&Xo.size===0)for(let f of u)Jo.add(f);else for(let f of u)Xo.has(f)?(Qo.add(f),Xo.delete(f)):Qo.has(f)||Jo.add(f);if(d)if(Qo.size===0&&Jo.size===0)for(let f of d)Xo.add(f);else for(let f of d)Jo.has(f)?Jo.delete(f):(Qo.delete(f),Xo.add(f))}let n=Dr.acquire();Jo.forEach(u=>{n.push(u)});let i=Dr.acquire();Xo.forEach(u=>{i.push(u)});let o=this._items,s=t.items,a=Dr.acquire();if(Qo.forEach(u=>{s.indexOf(u)!==o.indexOf(u)&&a.push(u)}),t.listeners&&(n.length||i.length||a.length)){let u={target:this,added:n,removed:i,moved:a},d=t.listeners.length;for(let f=0;f<d;f++){let m=t.listeners[f];m.removed||m.callback.call(this,u)}}Dr.release(n),Dr.release(i),Dr.release(a)}Jo.clear(),Xo.clear(),Qo.clear()}};Ko.ofType=e=>{if(!e)return qi;if(C_.has(e))return C_.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 qi{};return R([_C({Type:e,ensureType:typeof e=="function"?vn(e):Oo(e)})],r.prototype,"itemType",void 0),r=R([Me(`esri.core.Collection<${t}>`)],r),C_.set(e,r),r},R([j()],Ko.prototype,"_updating",void 0),R([j()],Ko.prototype,"length",void 0),R([j()],Ko.prototype,"items",null),R([j({readOnly:!0})],Ko.prototype,"updating",null),Ko=qi=R([Me("esri.core.Collection")],Ko)});function yd(e,t,r={}){return MC(e,t,r,zF)}function EC(e,t,r={}){return MC(e,t,r,GF)}function MC(e,t,r={},n){let i=null,o=r.once?(s,a)=>{n(s)&&(Yu(i),t(s,a))}:(s,a)=>{n(s)&&t(s,a)};if(i=_6(e,o,r.sync,r.equals),r.initial){let s=e();o(s,s)}return i}function zF(e){return!0}function GF(e){return!!e}var w0,M_=P(()=>{yC();TC();td();qr();qs();fi();e_();Kb();w0={sync:!0,initial:!0}});function PC(){if(BF)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 BF,LC=P(()=>{BF="randomUUID"in crypto});function jF(e){let t="__accessorMetadata__"in e?vn(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 HF.apply(this,r)}}function HF(e,t,r,n){Cl(e,t).cast=n}function ZF(e){return(t,r)=>{Cl(t,e).cast=t[r]}}function y0(...e){if(e.length!==3||typeof e[1]!="string")return e.length===1&&qF.call(e[0])==="[object Function]"?jF(e[0]):e.length===1&&typeof e[0]=="string"?ZF(e[0]):void 0}var qF,P_=P(()=>{$o();Tl();qF=Object.prototype.toString});function RC(){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 YF(e,t,r){}function JF(e,t,r){}function QF(e,t){return XF.test(t)?"":t}function eV(e,t){e=bd.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,n=!1,i=0,o=0,s="";function a(){if(!n){var f=bd.trim(e.slice(i,o)),m=f.indexOf(":");if(m!==-1){var w=bd.trim(f.slice(0,m)),_=bd.trim(f.slice(m+1));if(w){var S=t(i,s.length,w,_,f);S&&(s+=S+"; ")}}}i=o+1}for(;o<r;o++){var u=e[o];if(u==="/"&&e[o+1]==="*"){var d=e.indexOf("*/",o+2);if(d===-1)break;o=d+1,i=o+1,n=!1}else u==="("?n=!0:u===")"?n=!1:u===";"?n||a():u===`
|
|
7
|
+
`&&a()}return bd.trim(s)}function IC(e){return e==null}function nV(e){var t={};for(var r in e)t[r]=e[r];return t}function DC(e){e=nV(e||{}),e.whiteList=e.whiteList||b0.whiteList,e.onAttr=e.onAttr||b0.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||b0.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||b0.safeAttrValue,this.options=e}function OC(){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 aV(e,t,r){}function lV(e,t,r){}function cV(e,t,r){}function uV(e,t,r){}function FC(e){return e.replace(fV,"<").replace(pV,">")}function dV(e,t,r,n){if(r=BC(r),t==="href"||t==="src"){if(r=C0.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(_0.lastIndex=0,_0.test(r))return""}else if(t==="style"){if(AC.lastIndex=0,AC.test(r)||(kC.lastIndex=0,kC.test(r)&&(_0.lastIndex=0,_0.test(r))))return"";n!==!1&&(n=n||$C,r=n.process(r))}return r=qC(r),r}function VC(e){return e.replace(mV,""")}function UC(e){return e.replace(hV,'"')}function WC(e){return e.replace(gV,function(r,n){return n[0]==="x"||n[0]==="X"?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})}function zC(e){return e.replace(wV,":").replace(yV," ")}function GC(e){for(var t="",r=0,n=e.length;r<n;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return C0.trim(t)}function BC(e){return e=UC(e),e=WC(e),e=zC(e),e=GC(e),e}function qC(e){return e=VC(e),e=FC(e),e}function bV(){return""}function _V(e,t){typeof t!="function"&&(t=function(){});var r=!Array.isArray(e);function n(s){return r?!0:C0.indexOf(e,s)!==-1}var i=[],o=!1;return{onIgnoreTag:function(s,a,u){if(n(s))if(u.isClosing){var d="[/removed]",f=u.position+d.length;return i.push([o!==!1?o:u.position,f]),o=!1,d}else return o||(o=u.position),"[removed]";else return t(s,a,u)},remove:function(s){var a="",u=0;return C0.forEach(i,function(d){a+=s.slice(u,d[0]),u=d[1]}),a+=s.slice(u),a}}}function vV(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 SV(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 xV(e){var t=es.spaceIndex(e),r;return t===-1?r=e.slice(1,-1):r=e.slice(1,t+1),r=es.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function CV(e){return e.slice(0,2)==="</"}function TV(e,t,r){var n="",i=0,o=!1,s=!1,a=0,u=e.length,d="",f="";e:for(a=0;a<u;a++){var m=e.charAt(a);if(o===!1){if(m==="<"){o=a;continue}}else if(s===!1){if(m==="<"){n+=r(e.slice(i,a)),o=a,i=a;continue}if(m===">"){n+=r(e.slice(i,o)),f=e.slice(o,a+1),d=xV(f),n+=t(o,n.length,d,f,CV(f)),i=a+1,o=!1;continue}if(m==='"'||m==="'")for(var w=1,_=e.charAt(a-w);_.trim()===""||_==="=";){if(_==="="){s=m;continue e}_=e.charAt(a-++w)}}else if(m===s){s=!1;continue}}return i<e.length&&(n+=r(e.substr(i))),n}function MV(e,t){var r=0,n=0,i=[],o=!1,s=e.length;function a(w,_){if(w=es.trim(w),w=w.replace(EV,"").toLowerCase(),!(w.length<1)){var S=t(w,_||"");S&&i.push(S)}}for(var u=0;u<s;u++){var d=e.charAt(u),f,m;if(o===!1&&d==="="){o=e.slice(r,u),r=u+1,n=e.charAt(r)==='"'||e.charAt(r)==="'"?r:LV(e,u+1);continue}if(o!==!1&&u===n){if(m=e.indexOf(d,u+1),m===-1)break;f=es.trim(e.slice(n+1,m)),a(o,f),o=!1,u=m,r=u+1;continue}if(/\s|\n|\t/.test(d))if(e=e.replace(/\s|\n|\t/g," "),o===!1)if(m=PV(e,u),m===-1){f=es.trim(e.slice(r,u)),a(f),o=!1,r=u+1;continue}else{u=m-1;continue}else if(m=IV(e,u-1),m===-1){f=es.trim(e.slice(r,u)),f=NC(f),a(o,f),o=!1,r=u+1;continue}else continue}return r<e.length&&(o===!1?a(e.slice(r)):a(o,NC(es.trim(e.slice(r))))),es.trim(i.join(" "))}function PV(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="="?t:-1}}function LV(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="'"||r==='"'?t:-1}}function IV(e,t){for(;t>0;t--){var r=e[t];if(r!==" ")return r==="="?t:-1}}function AV(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function NC(e){return AV(e)?e.substr(1,e.length-2):e}function v0(e){return e==null}function DV(e){var t=S0.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=S0.trim(e.slice(t+1,-1));var r=e[e.length-1]==="/";return r&&(e=S0.trim(e.slice(0,-1))),{html:e,closing:r}}function OV(e){var t={};for(var r in e)t[r]=e[r];return t}function $V(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 HC(e){e=OV(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=qn.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=$V(e.whiteList||e.allowList):e.whiteList=qn.whiteList,e.onTag=e.onTag||qn.onTag,e.onTagAttr=e.onTagAttr||qn.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||qn.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||qn.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||qn.safeAttrValue,e.escapeHtml=e.escapeHtml||qn.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new kV(e.css))}var x0,L_,wt,I_,na,XF,KF,bd,tV,b0,rV,iV,A_,k_,oV,sV,C0,$C,fV,pV,mV,hV,gV,wV,yV,_0,AC,kC,T0,es,EV,kV,qn,jC,NV,RV,S0,FV,Fl,VV,ZC,YC=P(()=>{x0=function(){return x0=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},x0.apply(this,arguments)},L_={exports:{}},wt={},I_={exports:{}},na={};XF=/javascript\s*\:/img;na.whiteList=RC();na.getDefaultWhiteList=RC;na.onAttr=YF;na.onIgnoreAttr=JF;na.safeAttrValue=QF;KF={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,"")}},bd=KF;tV=eV,b0=na,rV=tV;DC.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,a=rV(e,function(u,d,f,m,w){var _=n[f],S=!1;if(_===!0?S=_:typeof _=="function"?S=_(m):_ instanceof RegExp&&(S=_.test(m)),S!==!0&&(S=!1),m=s(f,m),!!m){var C={position:d,sourcePosition:u,source:w,isWhite:S};if(S){var M=i(f,m,C);return IC(M)?f+":"+m:M}else{var M=o(f,m,C);if(!IC(M))return M}}});return a};iV=DC;(function(e,t){var r=na,n=iV;function i(s,a){var u=new n(a);return u.process(s)}t=e.exports=i,t.FilterCSS=n;for(var o in r)t[o]=r[o]})(I_,I_.exports);A_=I_.exports,k_={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}},oV=A_.FilterCSS,sV=A_.getDefaultWhiteList,C0=k_;$C=new oV;fV=/</g,pV=/>/g,mV=/"/g,hV=/"/g,gV=/&#([a-zA-Z0-9]*);?/gim,wV=/:?/gim,yV=/&newline;?/gim,_0=/((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,AC=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,kC=/u\s*r\s*l\s*\(.*/gi;wt.whiteList=OC();wt.getDefaultWhiteList=OC;wt.onTag=aV;wt.onIgnoreTag=lV;wt.onTagAttr=cV;wt.onIgnoreTagAttr=uV;wt.safeAttrValue=dV;wt.escapeHtml=FC;wt.escapeQuote=VC;wt.unescapeQuote=UC;wt.escapeHtmlEntities=WC;wt.escapeDangerHtml5Entities=zC;wt.clearNonPrintableCharacter=GC;wt.friendlyAttrValue=BC;wt.escapeAttrValue=qC;wt.onIgnoreTagStripAll=bV;wt.StripTagBody=_V;wt.stripCommentTag=vV;wt.stripBlankChar=SV;wt.cssFilter=$C;wt.getDefaultCSSWhiteList=sV;T0={},es=k_;EV=/[^a-zA-Z0-9\\_:.-]/gim;T0.parseTag=TV;T0.parseAttr=MV;kV=A_.FilterCSS,qn=wt,jC=T0,NV=jC.parseTag,RV=jC.parseAttr,S0=k_;HC.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,a=r.onIgnoreTagAttr,u=r.safeAttrValue,d=r.escapeHtml,f=t.cssFilter;r.stripBlankChar&&(e=qn.stripBlankChar(e)),r.allowCommentTag||(e=qn.stripCommentTag(e));var m=!1;r.stripIgnoreTagBody&&(m=qn.StripTagBody(r.stripIgnoreTagBody,o),o=m.onIgnoreTag);var w=NV(e,function(_,S,C,M,N){var L={sourcePosition:_,position:S,isClosing:N,isWhite:Object.prototype.hasOwnProperty.call(n,C)},k=i(C,M,L);if(!v0(k))return k;if(L.isWhite){if(L.isClosing)return"</"+C+">";var W=DV(M),Z=n[C],ee=RV(W.html,function(ne,te){var pe=S0.indexOf(Z,ne)!==-1,ge=s(C,ne,te,pe);return v0(ge)?pe?(te=u(C,ne,te,f),te?ne+'="'+te+'"':ne):(ge=a(C,ne,te,pe),v0(ge)?void 0:ge):ge});return M="<"+C,ee&&(M+=" "+ee),W.closing&&(M+=" /"),M+=">",M}else return k=o(C,M,L),v0(k)?d(M):k},d);return m&&(w=m.remove(w)),w};FV=HC;(function(e,t){var r=wt,n=T0,i=FV;function o(a,u){var d=new i(u);return d.process(a)}t=e.exports=o,t.filterXSS=o,t.FilterXSS=i,function(){for(var a in r)t[a]=r[a];for(var u in n)t[u]=n[u]}();function s(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}s()&&(self.filterXSS=e.exports)})(L_,L_.exports);Fl=L_.exports,VV=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},ZC=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"],details:["style"],div:["align","style","aria-label","aria-hidden"],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:["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=x0(x0({},Fl.getDefaultCSSWhiteList()),{flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,"line-height":!0,"justify-content":!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,a,u){return o==="a"&&s==="href"||(o==="img"||o==="source")&&s==="src"?n.sanitizeUrl(a):Fl.safeAttrValue(o,s,a,u)}},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(a){return i.css.whiteList[a]=s[a]})}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 Fl.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==="/",a=/^#/.test(t),u=o&&this.allowedProtocols.indexOf(o.toLowerCase())>-1;return s||a||u?Fl.escapeAttrValue(t):!o&&!i?Fl.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):Fl.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(a,u){var d=n.validate(u,r);return d.isValid?a.concat([u]):(i=!0,a.concat([d.sanitized]))},[]);else if(VV(t)){var s=Object.keys(t);o=s.reduce(function(a,u){var d=t[u],f=n.validate(d,r);return f.isValid?a[u]=d:(i=!0,a[u]=f.sanitized),a},{})}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 M0(){E0.clear()}function JC(e){return E0.get(e)}function XC(e,t){E0.set(e,t)}function P0(e){E0.delete(e)}var E0,N_=P(()=>{E0=new Map});function QC(...e){let t=Dr.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 Dr.release(t),r}var $le,UV,WV,zV,R_,L0=P(()=>{YC();R1();qr();Fe();qe();M_();N_();$le=(()=>{let e=new Map,t=new ResizeObserver(n=>{M0();for(let i of n)e.get(i.target)?.(i)}),r=(n,i,o)=>(e.set(n,i),t.observe(n,o),We(()=>{t.unobserve(n),e.delete(n)}));return(n,i,o)=>{let s=null;return Us([yd(()=>typeof n=="function"?n():n,a=>{s?.remove(),a&&(s=r(a,i,o))},w0),We(()=>s?.remove())])}})(),UV=["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"],WV=UV.reduce((e,t)=>(e[t]=[],e),{}),zV=["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"],R_=new ZC({whiteList:WV,onTagAttr:(e,t,r)=>{let n=`${t}="${r}"`;if(zV.includes(t))return n},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0)});function F_(e){if(!(e instanceof Element&&e.tagName.includes("-")))return!1;let t=window.customElements.get(e.tagName.toLowerCase());return!!t&&e instanceof t}var nT,A0,iT,KC,k0,U_,oT,GV,D_,BV,O_,$_,sT,eT,tT,rT,qV,I0,jV,W_,ia,V_,HV,ZV,Vl,aT=P(()=>{L0();nT="http://www.w3.org/",A0=`${nT}2000/svg`,iT=`${nT}1999/xlink`,KC=[],k0=(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},U_=(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),oT=e=>{if(typeof e!="string")throw new Error("Style values must be strings")},GV=(e,t,r)=>{if(t.vnodeSelector!==""){for(let n=r;n<e.length;n++)if(U_(e[n],t))return n}return-1},D_=(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 a=e[s];if(U_(a,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.`)}}},BV=e=>{if(e.properties){let t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},O_=[],$_=!1,sT=e=>{(e.children||[]).forEach(sT),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},eT=()=>{$_=!1,O_.forEach(sT),O_.length=0},tT=e=>{O_.push(e),$_||($_=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(eT,{timeout:16}):setTimeout(eT,16))},rT=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),tT(e))},e.properties)}t.parentNode&&(t.parentNode.removeChild(t),tT(e))},qV=(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 a=i[s],u=t[a];if(a==="className")throw new Error('Property "className" is not supported, use "class".');if(a==="class")V_(e,u,!0);else if(a==="classes"){let d=Object.keys(u),f=d.length;for(let m=0;m<f;m++){let w=d[m];u[w]&&e.classList.add(w)}}else if(a==="styles"){let d=Object.keys(u),f=d.length;for(let m=0;m<f;m++){let w=d[m],_=u[w];_&&(oT(_),r.styleApplyer(e,w,_))}}else if(a!=="key"&&u!=null){let d=typeof u;d==="function"?(a.lastIndexOf("on",0)===0&&(n&&(u=n(a,u,e,t)),a==="oninput"&&function(){let f=u;u=function(m){f.apply(this,[m]),m.target["oninput-value"]=m.target.value}}()),e[a]=u):r.namespace===A0?a==="href"?e.setAttributeNS(iT,a,u):e.setAttribute(a,u):d==="string"&&a!=="value"?a==="innerHTML"?e[a]=R_.sanitize(u):F_(e)&&a in e?e[a]=u:e.setAttribute(a,u):e[a]=u}}};jV=(e,t,r)=>{if(t)for(let n of t)ia(n,e,void 0,r)},W_=(e,t,r)=>{jV(e,t.children,r),t.text&&(e.textContent=t.text),qV(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])},ia=(e,t,r,n)=>{let i,o=0,s=e.vnodeSelector,a=t.ownerDocument;if(s==="")i=e.domNode=a.createTextNode(e.text),r!==void 0?t.insertBefore(i,r):t.appendChild(i);else{for(let u=0;u<=s.length;++u){let d=s.charAt(u);if(u===s.length||d==="."||d==="#"){let f=s.charAt(o-1),m=s.slice(o,u);f==="."?i.classList.add(m):f==="#"?i.id=m:(m==="svg"&&(n=k0(n,{namespace:A0})),n.namespace!==void 0?i=e.domNode=a.createElementNS(n.namespace,m):(i=e.domNode=e.domNode||a.createElement(m),m==="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=u+1}}W_(i,e,n)}},V_=(e,t,r)=>{t&&t.split(" ").forEach(n=>{n&&e.classList.toggle(n,r)})},HV=(e,t,r,n)=>{if(!r)return;let i=!1,o=Object.keys(r),s=o.length;for(let a=0;a<s;a++){let u=o[a],d=r[u],f=t[u];if(u==="class")f!==d&&(V_(e,f,!1),V_(e,d,!0));else if(u==="classes"){let m=e.classList,w=Object.keys(d),_=w.length;for(let S=0;S<_;S++){let C=w[S],M=!!d[C];M!==!!f[C]&&(i=!0,M?m.add(C):m.remove(C))}}else if(u==="styles"){let m=Object.keys(d),w=m.length;for(let _=0;_<w;_++){let S=m[_],C=d[S];C!==f[S]&&(i=!0,C?(oT(C),n.styleApplyer(e,S,C)):n.styleApplyer(e,S,""))}}else if(d||typeof f!="string"||(d=""),u!=="value"||F_(e)){if(d!==f){let m=typeof d;m==="function"&&n.eventHandlerInterceptor||(n.namespace===A0?u==="href"?e.setAttributeNS(iT,u,d):e.setAttribute(u,d):m==="string"?u==="innerHTML"?e[u]=R_.sanitize(d):u==="role"&&d===""?e.removeAttribute(u):F_(e)&&u in e?e[u]=d:e.setAttribute(u,d):e[u]!==d&&(e[u]=d),i=!0)}}else{let m=e[u];m!==d&&(e["oninput-value"]?m===e["oninput-value"]:d!==f)&&(e[u]=d,e["oninput-value"]=void 0),d!==f&&(i=!0)}}return i},ZV=(e,t,r,n,i)=>{if(r===n)return!1;n=n||KC;let o,s=(r=r||KC).length,a=n.length,u=0,d=0,f=!1;for(;d<a;){let m=u<s?r[u]:void 0,w=n[d];if(m!==void 0&&U_(m,w))f=I0(m,w,i)||f,u++;else{let _=GV(r,w,u+1);if(_>=0){for(o=u;o<_;o++)rT(r[o]),D_(r,o,e,"removed");f=I0(r[_],w,i)||f,u=_+1}else ia(w,t,u<s?r[u].domNode:void 0,i),BV(w),D_(n,d,e,"added")}d++}if(s>u)for(o=u;o<s;o++)rT(r[o]),D_(r,o,e,"removed");return f};I0=(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=k0(r,{namespace:A0})),e.text!==t.text&&(o=!0,t.text===void 0?n.removeChild(n.firstChild):n.textContent=t.text),t.domNode=n,o=ZV(t,n,e.children,t.children,r)||o,o=HV(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};Vl=(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,I0(n,r,t)},domNode:e.domNode})});var YV,Ul,Wl,z_=P(()=>{aT();YV={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.charAt(0)==="-"?e.style.setProperty(t,r):e.style[t]=r}},Ul=e=>k0(YV,e),Wl={create:(e,t)=>(t=Ul(t),ia(e,document.createElement("div"),void 0,t),Vl(e,t)),append:(e,t,r)=>(r=Ul(r),ia(t,e,void 0,r),Vl(t,r)),insertBefore:(e,t,r)=>(r=Ul(r),ia(t,e.parentNode,e,r),Vl(t,r)),merge:(e,t,r)=>(r=Ul(r),t.domNode=e,W_(e,t,r),Vl(t,r)),replace:(e,t,r)=>(r=Ul(r),ia(t,e.parentNode,e,r),e.parentNode.removeChild(e),Vl(t,r))}});var JV,lT=P(()=>{z_();JV=Array.prototype.find?(e,t)=>e.find(t):(e,t)=>e.filter(t)[0]});var cT,uT=P(()=>{cT={handleInterceptedEvent:(e,t,r,n)=>(e.scheduleRender(),t.properties[`on${n.type}`].apply(t.properties.bind||r,[n]))}});var XV,dT,fT=P(()=>{XV={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.charAt(0)==="-"?e.style.setProperty(t,r):e.style[t]=r}},dT=e=>({...XV,...e})});var QV,KV,pT,mT,hT=P(()=>{z_();lT();uT();fT();QV=(e,t)=>{let r=[];for(;e&&e!==t;)r.push(e),e=e.parentNode;return r},KV=(e,t)=>e.find(t),pT=(e,t,r=!1)=>{let n=e;return t.forEach((i,o)=>{let s=n?.children?KV(n.children,a=>a.domNode===i):void 0;r&&!s&&o!==t.length-1||(n=s)}),n},mT=e=>{let t,r={...cT,...e},n=dT(r),i=n.performanceLogger,o,s=!0,a=!1,u=[],d=[],f=(w,_,S)=>{let C;n.eventHandlerInterceptor=(N,L,k,W)=>function(Z){let ee;i("domEvent",Z);let ne=QV(Z.currentTarget,C.domNode),te=ne.some(ge=>customElements.get(ge?.tagName?.toLowerCase()));if(Z.eventPhase===Event.CAPTURING_PHASE||!te)ne.reverse(),ee=pT(C.getLastRender(),ne);else{let ge=Z.composedPath(),ue=ge.slice(ge.indexOf(Z.currentTarget),ge.indexOf(C.domNode)).reverse();ee=pT(C.getLastRender(),ue,!0)}let pe;return ee&&(pe=r.handleInterceptedEvent(t,ee,this,Z)),i("domEventProcessed",Z),pe},r.postProcessProjectionOptions?.(n);let M=S();C=w(_,M,n),n.eventHandlerInterceptor=void 0,u.push(C),d.push(S),r.afterFirstVNodeRendered&&r.afterFirstVNodeRendered(C,M)},m=()=>{if(o=void 0,s){s=!1,i("renderStart",void 0);for(let w=0;w<u.length;w++){let _=d[w]();i("rendered",void 0),u[w].update(_),i("patched",void 0)}i("renderDone",void 0),s=!0}};return r.modifyDoRenderImplementation&&(m=r.modifyDoRenderImplementation(m,u,d)),t={renderNow:m,scheduleRender:()=>{o||a||(o=requestAnimationFrame(m))},stop:()=>{o&&(cancelAnimationFrame(o),o=void 0),a=!0},resume:()=>{a=!1,s=!0,t.scheduleRender()},append:(w,_)=>{f(Wl.append,w,_)},insertBefore:(w,_)=>{f(Wl.insertBefore,w,_)},merge:(w,_)=>{f(Wl.merge,w,_)},replace:(w,_)=>{f(Wl.replace,w,_)},detach:w=>{for(let _=0;_<d.length;_++)if(d[_]===w)return d.splice(_,1),u.splice(_,1)[0];throw new Error("renderFunction was not found")}},t}});var G_,B_,eU,_d,vd=P(()=>{G_="calcite-mode-auto",B_="calcite-mode-dark",eU="calcite-mode-light",_d={autoMode:G_,darkMode:B_,lightMode:eU,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"}});var T,N0,at=P(()=>{T={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},N0="app"});var OU,q_=P(()=>{OU=JS({})});var ST={};ei(ST,{scopeCss:()=>DU});var tU,rU,nU,Sd,gT,wT,Z_,iU,oU,sU,oa,aU,lU,cU,R0,Y_,uU,dU,fU,pU,mU,hU,gU,wU,yU,bU,_U,vU,D0,H_,SU,xU,yT,bT,CU,TU,EU,MU,PU,LU,IU,_T,AU,kU,NU,vT,RU,j_,DU,xT=P(()=>{tU=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");rU=e=>{let t=[],r=0;return e=e.replace(/(\[[^\]]*\])/g,(o,s)=>{let a=`__ph-${r}__`;return t.push(s),r++,a}),{content:e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,(o,s,a)=>{let u=`__ph-${r}__`;return t.push(a),r++,s+u}),placeholders:t}},nU=(e,t)=>t.replace(/__ph-(\d+)__/g,(r,n)=>e[+n]),Sd="-shadowcsshost",gT="-shadowcssslotted",wT="-shadowcsscontext",Z_=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",iU=new RegExp("("+Sd+Z_,"gim"),oU=new RegExp("("+wT+Z_,"gim"),sU=new RegExp("("+gT+Z_,"gim"),oa=Sd+"-no-combinator",aU=/-shadowcsshost-no-combinator([^\s]*)/,lU=[/::shadow/g,/::content/g],cU="([>\\s~+[.,{:][\\s\\S]*)?$",R0=/-shadowcsshost/gim,Y_=e=>new RegExp(`((?<!(^@supports(.*)))|(?<={.*))(${e}\\b)`,"gim"),uU=Y_("::slotted"),dU=Y_(":host"),fU=Y_(":host-context"),pU=/\/\*\s*[\s\S]*?\*\//g,mU=e=>e.replace(pU,""),hU=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,gU=e=>e.match(hU)||[],wU=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,yU=/([{}])/g,bU=/(^.*?[^\\])??((:+)(.*)|$)/,_U="{",vU="}",D0="%BLOCK%",H_=(e,t)=>{let r=SU(e),n=0;return r.escapedString.replace(wU,(...i)=>{let o=i[2],s="",a=i[4],u="";a&&a.startsWith("{"+D0)&&(s=r.blocks[n++],a=a.substring(D0.length+1),u="{");let f=t({selector:o,content:s});return`${i[1]}${f.selector}${i[3]}${u}${f.content}${a}`})},SU=e=>{let t=e.split(yU),r=[],n=[],i=0,o=[];for(let a=0;a<t.length;a++){let u=t[a];u===vU&&i--,i>0?o.push(u):(o.length>0&&(n.push(o.join("")),r.push(D0),o=[]),r.push(u)),u===_U&&i++}return o.length>0&&(n.push(o.join("")),r.push(D0)),{escapedString:r.join(""),blocks:n}},xU=e=>(e=e.replace(fU,`$1${wT}`).replace(dU,`$1${Sd}`).replace(uU,`$1${gT}`),e),yT=(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 a=i[s].trim();if(!a)break;o.push(r(oa,a,n[3]))}return o.join(",")}else return oa+n[3]}),bT=(e,t,r)=>e+t.replace(Sd,"")+r,CU=e=>yT(e,iU,bT),TU=(e,t,r)=>t.indexOf(Sd)>-1?bT(e,t,r):e+t+r+", "+t+" "+e+r,EU=(e,t)=>{let r="."+t+" > ",n=[];return e=e.replace(sU,(...i)=>{if(i[2]){let o=i[2].trim(),s=i[3],a=r+o+s,u="";for(let m=i[4]-1;m>=0;m--){let w=i[5][m];if(w==="}"||w===",")break;u=w+u}let d=(u+a).trim(),f=`${u.trimEnd()}${a.trim()}`.trim();if(d!==f){let m=`${f}, ${d}`;n.push({orgSelector:d,updatedSelector:m})}return a}else return oa+i[3]}),{selectors:n,cssText:e}},MU=e=>yT(e,oU,TU),PU=e=>lU.reduce((t,r)=>t.replace(r," "),e),LU=e=>{let t=/\[/g,r=/\]/g;return e=e.replace(t,"\\[").replace(r,"\\]"),new RegExp("^("+e+")"+cU,"m")},IU=(e,t)=>!LU(t).test(e),_T=(e,t)=>e.replace(bU,(r,n="",i,o="",s="")=>n+t+o+s),AU=(e,t,r)=>{if(R0.lastIndex=0,R0.test(e)){let n=`.${r}`;return e.replace(aU,(i,o)=>_T(o,n)).replace(R0,n+" ")}return t+" "+e},kU=(e,t,r)=>{let n=/\[is=([^\]]*)\]/g;t=t.replace(n,(S,...C)=>C[0]);let i="."+t,o=S=>{let C=S.trim();if(!C)return"";if(S.indexOf(oa)>-1)C=AU(S,t,r);else{let M=S.replace(R0,"");M.length>0&&(C=_T(M,i))}return C},s=rU(e);e=s.content;let a="",u=0,d,f=/( |>|\+|~(?!=))\s*/g,w=!(e.indexOf(oa)>-1);for(;(d=f.exec(e))!==null;){let S=d[1],C=e.slice(u,d.index).trim();w=w||C.indexOf(oa)>-1;let M=w?o(C):C;a+=`${M} ${S} `,u=f.lastIndex}let _=e.substring(u);return w=w||_.indexOf(oa)>-1,a+=w?o(_):_,nU(s.placeholders,a)},NU=(e,t,r,n)=>e.split(",").map(i=>n&&i.indexOf("."+n)>-1?i.trim():IU(i,t)?kU(i,t,r).trim():i.trim()).join(", "),vT=(e,t,r,n,i)=>H_(e,o=>{let s=o.selector,a=o.content;return o.selector[0]!=="@"?s=NU(o.selector,t,r,n):(o.selector.startsWith("@media")||o.selector.startsWith("@supports")||o.selector.startsWith("@page")||o.selector.startsWith("@document"))&&(a=vT(o.content,t,r,n,i)),{selector:s.replace(/\s{2,}/g," ").trim(),content:a}}),RU=(e,t,r,n,i)=>{e=xU(e),e=CU(e),e=MU(e);let o=EU(e,n);return e=o.cssText,e=PU(e),t&&(e=vT(e,t,r,n,i)),e=j_(e,r),e=e.replace(/>\s*\*\s+([^{, ]+)/gm," $1 "),{cssText:e.trim(),slottedSelectors:o.selectors.map(s=>({orgSelector:j_(s.orgSelector,r),updatedSelector:j_(s.updatedSelector,r)}))}},j_=(e,t)=>e.replace(/-shadowcsshost-no-combinator/g,`.${t}`),DU=(e,t,r)=>{let n=t+"-h",i=t+"-s",o=gU(e);e=mU(e);let s=[];if(r){let u=d=>{let f=`/*!@___${s.length}___*/`,m=`/*!@${d.selector}*/`;return s.push({placeholder:f,comment:m}),d.selector=f+d.selector,d};e=H_(e,d=>d.selector[0]!=="@"?u(d):((d.selector.startsWith("@media")||d.selector.startsWith("@supports")||d.selector.startsWith("@page")||d.selector.startsWith("@document"))&&(d.content=H_(d.content,u)),d))}let a=RU(e,t,n,i,r);return e=[a.cssText,...o].join(`
|
|
8
|
+
`),r&&s.forEach(({placeholder:u,comment:d})=>{e=e.replace(u,d)}),a.slottedSelectors.forEach(u=>{let d=new RegExp(tU(u.orgSelector),"g");e=e.replace(d,u.updatedSelector)}),e}});function zU(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 BU(e,t){if(e.isOk){let r=t(e.value);return r instanceof Promise?r.then(n=>K_(n)):K_(r)}if(e.isErr){let r=e.value;return BT(r)}throw"should never get here"}function kT(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var $U,FU,Cr,la,cv,CT,VU,UU,WU,uv,GU,K_,BT,qU,jU,HU,Zi,ZU,YU,JU,XU,QU,ev,TT,ET,KU,MT,eW,J,ql,on,tv,tW,PT,rW,nW,iW,rv,nv,oW,sW,aW,mr,dv,LT,lW,iv,cW,qT,IT,uW,AT,jT,dW,HT,zl,ov,Hi,fv,F0,B0,nn,V0,ZT,xd,YT,JT,fW,O0,pv,XT,Gl,q0,ji,QT,NT,KT,Hr,eE,pW,RT,mW,hW,tE,j0,gW,DT,wW,yW,OT,$T,FT,ts,bW,yi,Bl,rE,nE,_W,vW,iE,VT,sv,SW,xW,J_,CW,TW,oE,sE,EW,MW,PW,LW,IW,AW,aE,lE,av,cE,jl,mv,Nt,lv,kW,NW,RW,uE,jn,DW,UT,OW,Yi,dE,U0,Cd,WT,$W,W0,FW,Hl,ir,Rt,et,aa,VW,UW,WW,X_,z0,$0,sa,Q_,fE,zT,GT,G0,H0,pE,zW,Dt=P(()=>{at();at();at();at();at();at();at();at();at();at();at();at();at();at();at();at();at();at();at();at();at();at();at();at();at();q_();$U=Object.defineProperty,FU=(e,t)=>{for(var r in t)$U(e,r,{get:t[r],enumerable:!0})},Cr={isDev:!!T.isDev,isBrowser:!0,isServer:!1,isTesting:!!T.isTesting},la=e=>{let t=new URL(e,et.$resourcesUrl$);return t.origin!==Hl.location.origin?t.href:t.pathname},cv=e=>et.$resourcesUrl$=e,CT={},VU="http://www.w3.org/2000/svg",UU="http://www.w3.org/1999/xhtml",WU=e=>e!=null,uv=e=>(e=typeof e,e==="object"||e==="function");GU={};FU(GU,{err:()=>BT,map:()=>BU,ok:()=>K_,unwrap:()=>qU,unwrapErr:()=>jU});K_=e=>({isOk:!0,isErr:!1,value:e}),BT=e=>({isOk:!1,isErr:!0,value:e});qU=e=>{if(e.isOk)return e.value;throw e.value},jU=e=>{if(e.isErr)return e.value;throw e.value},HU=0,Zi=(e,t="")=>{if(T.profile&&performance.mark){let r=`st:${e}:${t}:${HU++}`;return performance.mark(r),()=>performance.measure(`[Stencil] ${e}() <${t}>`,r)}else return()=>{}},ZU=(e,t)=>T.profile&&performance.mark?(performance.getEntriesByName(e,"mark").length===0&&performance.mark(e),()=>{performance.getEntriesByName(t,"measure").length===0&&performance.measure(t,e)}):()=>{},YU="r",JU="o",XU="s",QU="t",ev="s-id",TT="sty-id",ET="c-id",KU="slot-fb{display:contents}slot-fb[hidden]{display:none}",MT="http://www.w3.org/1999/xlink",eW=["formAssociatedCallback","formResetCallback","formDisabledCallback","formStateRestoreCallback"],J=(e,t,...r)=>{let n=null,i=null,o=null,s=!1,a=!1,u=[],d=m=>{for(let w=0;w<m.length;w++)n=m[w],Array.isArray(n)?d(n):n!=null&&typeof n!="boolean"&&((s=typeof e!="function"&&!uv(n))?n=String(n):T.isDev&&typeof e!="function"&&n.$flags$===void 0&&U0(`vNode passed as children has unexpected type.
|
|
9
|
+
Make sure it's using the correct h() function.
|
|
10
|
+
Empty objects can also be the cause, look for JSX comments that became objects.`),s&&a?u[u.length-1].$text$+=n:u.push(s?ql(null,n):n),a=s)};if(d(r),t&&(T.isDev&&e==="input"&&nW(t),T.vdomKey&&t.key&&(i=t.key),T.slotRelocation&&t.name&&(o=t.name),T.vdomClass)){let m=t.className||t.class;m&&(t.class=typeof m!="object"?m:Object.keys(m).filter(w=>m[w]).join(" "))}if(T.isDev&&u.some(tv)&&U0(`The <Host> must be the single root component. Make sure:
|
|
11
|
+
- You are NOT using hostData() and <Host> in the same component.
|
|
12
|
+
- <Host> is used once, and it's the single root component of the render() function.`),T.vdomFunctional&&typeof e=="function")return e(t===null?{}:t,u,tW);let f=ql(e,null);return f.$attrs$=t,u.length>0&&(f.$children$=u),T.vdomKey&&(f.$key$=i),T.slotRelocation&&(f.$name$=o),f},ql=(e,t)=>{let r={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return T.vdomAttribute&&(r.$attrs$=null),T.vdomKey&&(r.$key$=null),T.slotRelocation&&(r.$name$=null),r},on={},tv=e=>e&&e.$tag$===on,tW={forEach:(e,t)=>e.map(PT).forEach(t),map:(e,t)=>e.map(PT).map(t).map(rW)},PT=e=>({vattrs:e.$attrs$,vchildren:e.$children$,vkey:e.$key$,vname:e.$name$,vtag:e.$tag$,vtext:e.$text$}),rW=e=>{if(typeof e.vtag=="function"){let r={...e.vattrs};return e.vkey&&(r.key=e.vkey),e.vname&&(r.name=e.vname),J(e.vtag,r,...e.vchildren||[])}let t=ql(e.vtag,e.vtext);return t.$attrs$=e.vattrs,t.$children$=e.vchildren,t.$key$=e.vkey,t.$name$=e.vname,t},nW=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)&&Cd('The "value" prop of <input> should be set after "min", "max", "type" and "step"')},iW=(e,t,r,n)=>{let i=Zi("hydrateClient",t),o=e.shadowRoot,s=[],a=[],u=T.shadowDom&&o?[]:null,d=n.$vnode$=ql(t,null);et.$orgLocNodes$||nv(ir.body,et.$orgLocNodes$=new Map),e[ev]=r,e.removeAttribute(ev),rv(d,s,a,u,e,e,r),s.map(f=>{let m=f.$hostId$+"."+f.$nodeId$,w=et.$orgLocNodes$.get(m),_=f.$elm$;w&&aa&&w["s-en"]===""&&w.parentNode.insertBefore(_,w.nextSibling),o||(_["s-hn"]=t,w&&(_["s-ol"]=w,_["s-ol"]["s-nr"]=_)),et.$orgLocNodes$.delete(m)}),T.shadowDom&&o&&u.map(f=>{f&&o.appendChild(f)}),i()},rv=(e,t,r,n,i,o,s)=>{let a,u,d,f;if(o.nodeType===1){for(a=o.getAttribute(ET),a&&(u=a.split("."),(u[0]===s||u[0]==="0")&&(d={$flags$:0,$hostId$:u[0],$nodeId$:u[1],$depth$:u[2],$index$:u[3],$tag$:o.tagName.toLowerCase(),$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},t.push(d),o.removeAttribute(ET),e.$children$||(e.$children$=[]),e.$children$[d.$index$]=d,e=d,n&&d.$depth$==="0"&&(n[d.$index$]=d.$elm$))),f=o.childNodes.length-1;f>=0;f--)rv(e,t,r,n,i,o.childNodes[f],s);if(o.shadowRoot)for(f=o.shadowRoot.childNodes.length-1;f>=0;f--)rv(e,t,r,n,i,o.shadowRoot.childNodes[f],s)}else if(o.nodeType===8)u=o.nodeValue.split("."),(u[1]===s||u[1]==="0")&&(a=u[0],d={$flags$:0,$hostId$:u[1],$nodeId$:u[2],$depth$:u[3],$index$:u[4],$elm$:o,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},a===QU?(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&&(a===XU?(d.$tag$="slot",u[5]?o["s-sn"]=d.$name$=u[5]:o["s-sn"]="",o["s-sr"]=!0,T.shadowDom&&n&&(d.$elm$=ir.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):a===YU&&(T.shadowDom&&n?o.remove():T.slotRelocation&&(i["s-cr"]=o,o["s-cn"]=!0))));else if(e&&e.$tag$==="style"){let m=ql(null,o.textContent);m.$elm$=o,m.$index$="0",e.$children$=[m]}},nv=(e,t)=>{if(e.nodeType===1){let r=0;for(;r<e.childNodes.length;r++)nv(e.childNodes[r],t);if(e.shadowRoot)for(r=0;r<e.shadowRoot.childNodes.length;r++)nv(e.shadowRoot.childNodes[r],t)}else if(e.nodeType===8){let r=e.nodeValue.split(".");r[0]===JU&&(t.set(r[1]+"."+r[2],e),e.nodeValue="",e["s-en"]=r[3])}},oW=e=>FW.map(t=>t(e)).find(t=>!!t),sW=(e,t)=>e!=null&&!uv(e)?T.propBoolean&&t&4?e==="false"?!1:e===""||!!e:T.propNumber&&t&2?parseFloat(e):T.propString&&t&1?String(e):e:e,aW=e=>T.lazyLoad?jn(e).$hostElement$:e,mr=(e,t,r)=>{let n=aW(e);return{emit:i=>(T.isDev&&!n.isConnected&&Cd(`The "${t}" event was emitted, but the dispatcher node is no longer connected to the dom.`),dv(n,t,{bubbles:!!(r&4),composed:!!(r&2),cancelable:!!(r&1),detail:i}))}},dv=(e,t,r)=>{let n=et.ce(t,r);return e.dispatchEvent(n),n},LT=new WeakMap,lW=(e,t,r)=>{let n=W0.get(e);WW&&r?(n=n||new CSSStyleSheet,typeof n=="string"?n=t:n.replaceSync(t)):n=t,W0.set(e,n)},iv=(e,t,r)=>{var n;let i=qT(t,r),o=W0.get(i);if(!T.attachStyles)return i;if(e=e.nodeType===11?e:ir,o)if(typeof o=="string"){e=e.head||e;let s=LT.get(e),a;if(s||LT.set(e,s=new Set),!s.has(i)){if(T.hydrateClientSide&&e.host&&(a=e.querySelector(`[${TT}="${i}"]`)))a.innerHTML=o;else{a=ir.createElement("style"),a.innerHTML=o;let u=(n=et.$nonce$)!=null?n:zU(ir);u!=null&&a.setAttribute("nonce",u),(T.hydrateServerSide||T.hotModuleReplacement)&&a.setAttribute(TT,i),e.insertBefore(a,e.querySelector("link"))}t.$flags$&4&&(a.innerHTML+=KU),s&&s.add(i)}}else T.constructableCSS&&!e.adoptedStyleSheets.includes(o)&&(e.adoptedStyleSheets=[...e.adoptedStyleSheets,o]);return i},cW=e=>{let t=e.$cmpMeta$,r=e.$hostElement$,n=t.$flags$,i=Zi("attachStyles",t.$tagName$),o=iv(T.shadowDom&&aa&&r.shadowRoot?r.shadowRoot:r.getRootNode(),t,e.$modeName$);(T.shadowDom||T.scoped)&&T.cssAnnotations&&n&10&&(r["s-sc"]=o,r.classList.add(o+"-h"),T.scoped&&n&2&&r.classList.add(o+"-s")),i()},qT=(e,t)=>"sc-"+(T.mode&&t&&e.$flags$&32?e.$tagName$+"-"+t:e.$tagName$),IT=(e,t,r,n,i,o)=>{if(r!==n){let s=UT(e,t),a=t.toLowerCase();if(T.vdomClass&&t==="class"){let u=e.classList,d=AT(r),f=AT(n);u.remove(...d.filter(m=>m&&!f.includes(m))),u.add(...f.filter(m=>m&&!d.includes(m)))}else if(T.vdomStyle&&t==="style"){if(T.updatable)for(let u in r)(!n||n[u]==null)&&(!T.hydrateServerSide&&u.includes("-")?e.style.removeProperty(u):e.style[u]="");for(let u in n)(!r||n[u]!==r[u])&&(!T.hydrateServerSide&&u.includes("-")?e.style.setProperty(u,n[u]):e.style[u]=n[u])}else if(!(T.vdomKey&&t==="key")){if(T.vdomRef&&t==="ref")n&&n(e);else if(T.vdomListener&&(T.lazyLoad?!s:!e.__lookupSetter__(t))&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):UT(Hl,a)?t=a.slice(2):t=a[2]+t.slice(3),r||n){let u=t.endsWith(jT);t=t.replace(dW,""),r&&et.rel(e,t,r,u),n&&et.ael(e,t,n,u)}}else if(T.vdomPropOrAttr){let u=uv(n);if((s||u&&n!==null)&&!i)try{if(e.tagName.includes("-"))e[t]=n;else{let f=n??"";t==="list"?s=!1:(r==null||e[t]!=f)&&(e[t]=f)}}catch{}let d=!1;T.vdomXlink&&a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,d=!0),n==null||n===!1?(n!==!1||e.getAttribute(t)==="")&&(T.vdomXlink&&d?e.removeAttributeNS(MT,t):e.removeAttribute(t)):(!s||o&4||i)&&!u&&(n=n===!0?"":n,T.vdomXlink&&d?e.setAttributeNS(MT,t,n):e.setAttribute(t,n))}}}},uW=/\s/,AT=e=>e?e.split(uW):[],jT="Capture",dW=new RegExp(jT+"$"),HT=(e,t,r)=>{let n=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,i=e&&e.$attrs$||CT,o=t.$attrs$||CT;if(T.updatable)for(let s of kT(Object.keys(i)))s in o||IT(n,s,i[s],void 0,r,t.$flags$);for(let s of kT(Object.keys(o)))IT(n,s,i[s],o[s],r,t.$flags$)};fv=!1,F0=!1,B0=!1,nn=!1,V0=(e,t,r,n)=>{var i;let o=t.$children$[r],s=0,a,u,d;if(T.slotRelocation&&!fv&&(B0=!0,o.$tag$==="slot"&&(zl&&n.classList.add(zl+"-s"),o.$flags$|=o.$children$?2:1)),T.isDev&&o.$elm$&&U0(`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`),T.vdomText&&o.$text$!==null)a=o.$elm$=ir.createTextNode(o.$text$);else if(T.slotRelocation&&o.$flags$&1)a=o.$elm$=T.isDebug||T.hydrateServerSide?mW(o):ir.createTextNode("");else{if(T.svg&&!nn&&(nn=o.$tag$==="svg"),a=o.$elm$=T.svg?ir.createElementNS(nn?VU:UU,T.slotRelocation&&o.$flags$&2?"slot-fb":o.$tag$):ir.createElement(T.slotRelocation&&o.$flags$&2?"slot-fb":o.$tag$),T.svg&&nn&&o.$tag$==="foreignObject"&&(nn=!1),T.vdomAttribute&&HT(null,o,nn),(T.shadowDom||T.scoped)&&WU(zl)&&a["s-si"]!==zl&&a.classList.add(a["s-si"]=zl),o.$children$)for(s=0;s<o.$children$.length;++s)u=V0(e,o,s,a),u&&a.appendChild(u);T.svg&&(o.$tag$==="svg"?nn=!1:a.tagName==="foreignObject"&&(nn=!0))}return a["s-hn"]=Hi,T.slotRelocation&&o.$flags$&3&&(a["s-sr"]=!0,a["s-cr"]=ov,a["s-sn"]=o.$name$||"",a["s-rf"]=(i=o.$attrs$)==null?void 0:i.ref,d=e&&e.$children$&&e.$children$[r],d&&d.$tag$===o.$tag$&&e.$elm$&&(T.experimentalSlotFixes?ZT(e.$elm$):xd(e.$elm$,!1))),a},ZT=e=>{et.$flags$|=1;let t=e.closest(Hi.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&&(Hr(t,i,r??null),i["s-sh"]=void 0,B0=!0)}et.$flags$&=-2},xd=(e,t)=>{et.$flags$|=1;let r=Array.from(e.childNodes);if(e["s-sr"]&&T.experimentalSlotFixes){let n=e;for(;n=n.nextSibling;)n&&n["s-sn"]===e["s-sn"]&&n["s-sh"]===Hi&&r.push(n)}for(let n=r.length-1;n>=0;n--){let i=r[n];i["s-hn"]!==Hi&&i["s-ol"]&&(Hr(XT(i),i,pv(i)),i["s-ol"].remove(),i["s-ol"]=void 0,i["s-sh"]=void 0,B0=!0),t&&xd(i,t)}et.$flags$&=-2},YT=(e,t,r,n,i,o)=>{let s=T.slotRelocation&&e["s-cr"]&&e["s-cr"].parentNode||e,a;for(T.shadowDom&&s.shadowRoot&&s.tagName===Hi&&(s=s.shadowRoot);i<=o;++i)n[i]&&(a=V0(null,r,i,e),a&&(n[i].$elm$=a,Hr(s,a,T.slotRelocation?pv(t):t)))},JT=(e,t,r)=>{for(let n=t;n<=r;++n){let i=e[n];if(i){let o=i.$elm$;KT(i),o&&(T.slotRelocation&&(F0=!0,o["s-ol"]?o["s-ol"].remove():xd(o,!0)),o.remove())}}},fW=(e,t,r,n,i=!1)=>{let o=0,s=0,a=0,u=0,d=t.length-1,f=t[0],m=t[d],w=n.length-1,_=n[0],S=n[w],C,M;for(;o<=d&&s<=w;)if(f==null)f=t[++o];else if(m==null)m=t[--d];else if(_==null)_=n[++s];else if(S==null)S=n[--w];else if(O0(f,_,i))Gl(f,_,i),f=t[++o],_=n[++s];else if(O0(m,S,i))Gl(m,S,i),m=t[--d],S=n[--w];else if(O0(f,S,i))T.slotRelocation&&(f.$tag$==="slot"||S.$tag$==="slot")&&xd(f.$elm$.parentNode,!1),Gl(f,S,i),Hr(e,f.$elm$,m.$elm$.nextSibling),f=t[++o],S=n[--w];else if(O0(m,_,i))T.slotRelocation&&(f.$tag$==="slot"||S.$tag$==="slot")&&xd(m.$elm$.parentNode,!1),Gl(m,_,i),Hr(e,m.$elm$,f.$elm$),m=t[--d],_=n[++s];else{if(a=-1,T.vdomKey){for(u=o;u<=d;++u)if(t[u]&&t[u].$key$!==null&&t[u].$key$===_.$key$){a=u;break}}T.vdomKey&&a>=0?(M=t[a],M.$tag$!==_.$tag$?C=V0(t&&t[s],r,a,e):(Gl(M,_,i),t[a]=void 0,C=M.$elm$),_=n[++s]):(C=V0(t&&t[s],r,s,e),_=n[++s]),C&&(T.slotRelocation?Hr(XT(f.$elm$),C,pv(f.$elm$)):Hr(f.$elm$.parentNode,C,f.$elm$))}o>d?YT(e,n[w+1]==null?null:n[w+1].$elm$,r,n,s,w):T.updatable&&s>w&&JT(t,o,d)},O0=(e,t,r=!1)=>e.$tag$===t.$tag$?T.slotRelocation&&e.$tag$==="slot"?e.$name$===t.$name$:T.vdomKey&&!r?e.$key$===t.$key$:!0:!1,pv=e=>e&&e["s-ol"]||e,XT=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,Gl=(e,t,r=!1)=>{let n=t.$elm$=e.$elm$,i=e.$children$,o=t.$children$,s=t.$tag$,a=t.$text$,u;!T.vdomText||a===null?(T.svg&&(nn=s==="svg"?!0:s==="foreignObject"?!1:nn),(T.vdomAttribute||T.reflect)&&(T.slot&&s==="slot"&&!fv?T.experimentalSlotFixes&&e.$name$!==t.$name$&&(t.$elm$["s-sn"]=t.$name$||"",ZT(t.$elm$.parentElement)):HT(e,t,nn)),T.updatable&&i!==null&&o!==null?fW(n,i,t,o,r):o!==null?(T.updatable&&T.vdomText&&e.$text$!==null&&(n.textContent=""),YT(n,null,t,o,0,o.length-1)):T.updatable&&i!==null&&JT(i,0,i.length-1),T.svg&&nn&&s==="svg"&&(nn=!1)):T.vdomText&&T.slotRelocation&&(u=n["s-cr"])?u.parentNode.textContent=a:T.vdomText&&e.$text$!==a&&(n.data=a)},q0=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}}}q0(r)}},ji=[],QT=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"]&&(!T.experimentalSlotFixes||!t["s-sh"]||t["s-sh"]!==i["s-hn"]))if(NT(t,o)){let s=ji.find(a=>a.$nodeToRelocate$===t);F0=!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"],ji.push({$slotRefNode$:i,$nodeToRelocate$:t})),t["s-sr"]&&ji.map(a=>{NT(a.$nodeToRelocate$,t["s-sn"])&&(s=ji.find(u=>u.$nodeToRelocate$===t),s&&!a.$slotRefNode$&&(a.$slotRefNode$=s.$slotRefNode$))})}else ji.some(s=>s.$nodeToRelocate$===t)||ji.push({$nodeToRelocate$:t})}i.nodeType===1&&QT(i)}},NT=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",KT=e=>{T.vdomRef&&(e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(KT))},Hr=(e,t,r)=>{let n=e?.insertBefore(t,r);return T.scoped&&pW(t,e),n},eE=e=>e?e["s-rsc"]||e["s-si"]||e["s-sc"]||eE(e.parentElement):void 0,pW=(e,t)=>{var r,n,i;if(e&&t){let o=e["s-rsc"],s=eE(t);o&&((r=e.classList)!=null&&r.contains(o))&&e.classList.remove(o),s&&(e["s-rsc"]=s,!((n=e.classList)!=null&&n.contains(s))&&((i=e.classList)==null||i.add(s)))}},RT=(e,t,r=!1)=>{var n,i,o,s,a;let u=e.$hostElement$,d=e.$cmpMeta$,f=e.$vnode$||ql(null,null),m=tv(t)?t:J(null,null,t);if(Hi=u.tagName,T.isDev&&Array.isArray(t)&&t.some(tv))throw new Error(`The <Host> must be the single root component.
|
|
13
|
+
Looks like the render() function of "${Hi.toLowerCase()}" is returning an array that contains the <Host>.
|
|
14
|
+
|
|
15
|
+
The render() function should look like this instead:
|
|
16
|
+
|
|
17
|
+
render() {
|
|
18
|
+
// Do not return an array
|
|
19
|
+
return (
|
|
20
|
+
<Host>{content}</Host>
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
`);if(T.reflect&&d.$attrsToReflect$&&(m.$attrs$=m.$attrs$||{},d.$attrsToReflect$.map(([w,_])=>m.$attrs$[_]=u[w])),r&&m.$attrs$)for(let w of Object.keys(m.$attrs$))u.hasAttribute(w)&&!["key","ref","style","class"].includes(w)&&(m.$attrs$[w]=u[w]);if(m.$tag$=null,m.$flags$|=4,e.$vnode$=m,m.$elm$=f.$elm$=T.shadowDom&&u.shadowRoot||u,(T.scoped||T.shadowDom)&&(zl=u["s-sc"]),fv=aa&&(d.$flags$&1)!==0,T.slotRelocation&&(ov=u["s-cr"],F0=!1),Gl(f,m,r),T.slotRelocation){if(et.$flags$|=1,B0){QT(m.$elm$);for(let w of ji){let _=w.$nodeToRelocate$;if(!_["s-ol"]){let S=T.isDebug||T.hydrateServerSide?hW(_):ir.createTextNode("");S["s-nr"]=_,Hr(_.parentNode,_["s-ol"]=S,_)}}for(let w of ji){let _=w.$nodeToRelocate$,S=w.$slotRefNode$;if(S){let C=S.parentNode,M=S.nextSibling;if(!T.experimentalSlotFixes||M&&M.nodeType===1){let N=(n=_["s-ol"])==null?void 0:n.previousSibling;for(;N;){let L=(i=N["s-nr"])!=null?i:null;if(L&&L["s-sn"]===_["s-sn"]&&C===L.parentNode){for(L=L.nextSibling;L===_||L?.["s-sr"];)L=L?.nextSibling;if(!L||!L["s-nr"]){M=L;break}}N=N.previousSibling}}(!M&&C!==_.parentNode||_.nextSibling!==M)&&_!==M&&(!T.experimentalSlotFixes&&!_["s-hn"]&&_["s-ol"]&&(_["s-hn"]=_["s-ol"].parentNode.nodeName),Hr(C,_,M),_.nodeType===1&&(_.hidden=(o=_["s-ih"])!=null?o:!1)),_&&typeof S["s-rf"]=="function"&&S["s-rf"](_)}else _.nodeType===1&&(r&&(_["s-ih"]=(s=_.hidden)!=null?s:!1),_.hidden=!0)}}F0&&q0(m.$elm$),et.$flags$&=-2,ji.length=0}if(T.experimentalScopedSlotChanges&&d.$flags$&2)for(let w of m.$elm$.childNodes)w["s-hn"]!==Hi&&!w["s-sh"]&&(r&&w["s-ih"]==null&&(w["s-ih"]=(a=w.hidden)!=null?a:!1),w.hidden=!0);ov=void 0},mW=e=>ir.createComment(`<slot${e.$name$?' name="'+e.$name$+'"':""}> (host=${Hi.toLowerCase()})`),hW=e=>ir.createComment("org-location for "+(e.localName?`<${e.localName}> (host=${e["s-hn"]})`:`[${e.textContent}]`)),tE=(e,t)=>{T.asyncLoading&&t&&!e.$onRenderResolve$&&t["s-p"]&&t["s-p"].push(new Promise(r=>e.$onRenderResolve$=r))},j0=(e,t)=>{if(T.taskQueue&&T.updatable&&(e.$flags$|=16),T.asyncLoading&&e.$flags$&4){e.$flags$|=512;return}tE(e,e.$ancestorComponent$);let r=()=>gW(e,t);return T.taskQueue?zW(r):r()},gW=(e,t)=>{let r=e.$hostElement$,n=Zi("scheduleUpdate",e.$cmpMeta$.$tagName$),i=T.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?(T.lazyLoad&&T.hostListener&&(e.$flags$|=256,e.$queuedListeners$&&(e.$queuedListeners$.map(([s,a])=>yi(i,s,a)),e.$queuedListeners$=void 0)),Bl(r,"componentWillLoad"),T.cmpWillLoad&&(o=yi(i,"componentWillLoad"))):(Bl(r,"componentWillUpdate"),T.cmpWillUpdate&&(o=yi(i,"componentWillUpdate"))),Bl(r,"componentWillRender"),T.cmpWillRender&&(o=DT(o,()=>yi(i,"componentWillRender"))),n(),DT(o,()=>yW(e,i,t))},DT=(e,t)=>wW(e)?e.then(t):t(),wW=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",yW=async(e,t,r)=>{var n;let i=e.$hostElement$,o=Zi("update",e.$cmpMeta$.$tagName$),s=i["s-rc"];T.style&&r&&cW(e);let a=Zi("render",e.$cmpMeta$.$tagName$);if(T.isDev&&(e.$flags$|=1024),T.hydrateServerSide?await $T(e,t,i,r):$T(e,t,i,r),T.isDev&&(e.$renderCount$=e.$renderCount$===void 0?1:e.$renderCount$+1,e.$flags$&=-1025),T.hydrateServerSide)try{nE(i),r&&(e.$cmpMeta$.$flags$&1?i["s-en"]="":e.$cmpMeta$.$flags$&2&&(i["s-en"]="c"))}catch(u){Yi(u,i)}if(T.asyncLoading&&s&&(s.map(u=>u()),i["s-rc"]=void 0),a(),o(),T.asyncLoading){let u=(n=i["s-p"])!=null?n:[],d=()=>FT(e);u.length===0?d():(Promise.all(u).then(d),e.$flags$|=4,u.length=0)}else FT(e)},OT=null,$T=(e,t,r,n)=>{let i=!!T.allRenderFn,o=!!T.lazyLoad,s=!!T.taskQueue,a=!!T.updatable;try{if(OT=t,t=(i||t.render)&&t.render(),a&&s&&(e.$flags$&=-17),(a||o)&&(e.$flags$|=2),T.hasRenderFn||T.reflect)if(T.vdomRender||T.reflect){if(T.hydrateServerSide)return Promise.resolve(t).then(u=>RT(e,u,n));RT(e,t,n)}else{let u=r.shadowRoot;e.$cmpMeta$.$flags$&1?u.textContent=t:r.textContent=t}}catch(u){Yi(u,e.$hostElement$)}return OT=null,null},FT=e=>{let t=e.$cmpMeta$.$tagName$,r=e.$hostElement$,n=Zi("postUpdate",t),i=T.lazyLoad?e.$lazyInstance$:r,o=e.$ancestorComponent$;T.cmpDidRender&&(T.isDev&&(e.$flags$|=1024),yi(i,"componentDidRender"),T.isDev&&(e.$flags$&=-1025)),Bl(r,"componentDidRender"),e.$flags$&64?(T.cmpDidUpdate&&(T.isDev&&(e.$flags$|=1024),yi(i,"componentDidUpdate"),T.isDev&&(e.$flags$&=-1025)),Bl(r,"componentDidUpdate"),n()):(e.$flags$|=64,T.asyncLoading&&T.cssAnnotations&&rE(r),T.cmpDidLoad&&(T.isDev&&(e.$flags$|=2048),yi(i,"componentDidLoad"),T.isDev&&(e.$flags$&=-2049)),Bl(r,"componentDidLoad"),n(),T.asyncLoading&&(e.$onReadyResolve$(r),o||bW(t))),T.method&&T.lazyLoad&&e.$onInstanceResolve$(r),T.asyncLoading&&(e.$onRenderResolve$&&(e.$onRenderResolve$(),e.$onRenderResolve$=void 0),e.$flags$&512&&H0(()=>j0(e,!1)),e.$flags$&=-517)},ts=e=>{if(T.updatable&&(Cr.isBrowser||Cr.isTesting)){let t=jn(e),r=t.$hostElement$.isConnected;return r&&(t.$flags$&18)===2&&j0(t,!1),r}return!1},bW=e=>{T.cssAnnotations&&rE(ir.documentElement),T.asyncQueue&&(et.$flags$|=2),H0(()=>dv(Hl,"appload",{detail:{namespace:N0}})),T.profile&&performance.measure&&performance.measure(`[Stencil] ${N0} initial load (by ${e})`,"st:app:start")},yi=(e,t,r)=>{if(e&&e[t])try{return e[t](r)}catch(n){Yi(n)}},Bl=(e,t)=>{T.lifecycleDOMEvents&&dv(e,"stencil_"+t,{bubbles:!0,composed:!0,detail:{namespace:N0}})},rE=e=>{var t,r;return T.hydratedClass?e.classList.add((t=T.hydratedSelectorName)!=null?t:"hydrated"):T.hydratedAttribute?e.setAttribute((r=T.hydratedSelectorName)!=null?r:"hydrated",""):void 0},nE=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(),nE(i)}},_W=(e,t)=>jn(e).$instanceValues$.get(t),vW=(e,t,r,n)=>{let i=jn(e);if(T.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=T.lazyLoad?i.$hostElement$:e,s=i.$instanceValues$.get(t),a=i.$flags$,u=T.lazyLoad?i.$lazyInstance$:o;r=sW(r,n.$members$[t][0]);let d=Number.isNaN(s)&&Number.isNaN(r),f=r!==s&&!d;if((!T.lazyLoad||!(a&8)||s===void 0)&&f&&(i.$instanceValues$.set(t,r),T.isDev&&(i.$flags$&1024?Cd(`The state/prop "${t}" changed during rendering. This can potentially lead to infinite-loops and other bugs.`,`
|
|
24
|
+
Element`,o,`
|
|
25
|
+
New value`,r,`
|
|
26
|
+
Old value`,s):i.$flags$&2048&&Cd(`The state/prop "${t}" changed during "componentDidLoad()", this triggers extra re-renders, try to setup on "componentWillLoad()"`,`
|
|
27
|
+
Element`,o,`
|
|
28
|
+
New value`,r,`
|
|
29
|
+
Old value`,s)),!T.lazyLoad||u)){if(T.watchCallback&&n.$watchers$&&a&128){let m=n.$watchers$[t];m&&m.map(w=>{try{u[w](r,s,t)}catch(_){Yi(_,o)}})}if(T.updatable&&(a&18)===2){if(T.cmpShouldUpdate&&u.componentShouldUpdate&&u.componentShouldUpdate(r,s,t)===!1)return;j0(i,!1)}}},iE=(e,t,r)=>{var n;let i=e.prototype;if(T.formAssociated&&t.$flags$&64&&r&1&&eW.forEach(o=>Object.defineProperty(i,o,{value(...s){let a=jn(this),u=T.lazyLoad?a.$hostElement$:this,d=T.lazyLoad?a.$lazyInstance$:u;if(!d)a.$onReadyPromise$.then(f=>{let m=f[o];typeof m=="function"&&m.call(f,...s)});else{let f=d[o];typeof f=="function"&&f.call(d,...s)}}})),T.member&&t.$members$){T.watchCallback&&e.watchers&&(t.$watchers$=e.watchers);let o=Object.entries(t.$members$);if(o.map(([s,[a]])=>{(T.prop||T.state)&&(a&31||(!T.lazyLoad||r&2)&&a&32)?Object.defineProperty(i,s,{get(){return _W(this,s)},set(u){if(T.isDev){let d=jn(this);!(r&1)&&(d&&d.$flags$&8)===0&&a&31&&!(a&1024)&&Cd(`@Prop() "${s}" on <${t.$tagName$}> is immutable but was modified from within the component.
|
|
30
|
+
More information: https://stenciljs.com/docs/properties#prop-mutability`)}vW(this,s,u,t)},configurable:!0,enumerable:!0}):T.lazyLoad&&T.method&&r&1&&a&64&&Object.defineProperty(i,s,{value(...u){var d;let f=jn(this);return(d=f?.$onInstancePromise$)==null?void 0:d.then(()=>{var m;return(m=f.$lazyInstance$)==null?void 0:m[s](...u)})}})}),T.observeAttribute&&(!T.lazyLoad||r&1)){let s=new Map;i.attributeChangedCallback=function(a,u,d){et.jmp(()=>{var f;let m=s.get(a);if(this.hasOwnProperty(m))d=this[m],delete this[m];else{if(i.hasOwnProperty(m)&&typeof this[m]=="number"&&this[m]==d)return;if(m==null){let w=jn(this),_=w?.$flags$;if(_&&!(_&8)&&_&128&&d!==u){let S=T.lazyLoad?w.$hostElement$:this,C=T.lazyLoad?w.$lazyInstance$:S,M=(f=t.$watchers$)==null?void 0:f[a];M?.forEach(N=>{C[N]!=null&&C[N].call(C,d,u,a)})}return}}this[m]=d===null&&typeof this[m]=="boolean"?!1:d})},e.observedAttributes=Array.from(new Set([...Object.keys((n=t.$watchers$)!=null?n:{}),...o.filter(([a,u])=>u[0]&15).map(([a,u])=>{var d;let f=u[1]||a;return s.set(f,a),T.reflect&&u[0]&512&&((d=t.$attrsToReflect$)==null||d.push([a,f])),f})]))}}return e},VT=async(e,t,r,n)=>{let i;if(!(t.$flags$&32)){t.$flags$|=32;let a=r.$lazyBundleId$;if((T.lazyLoad||T.hydrateClientSide)&&a){let u=$W(r,t,n);if(u&&"then"in u){let f=ZU(`st:load:${r.$tagName$}:${t.$modeName$}`,`[Stencil] Load module for <${r.$tagName$}>`);i=await u,f()}else i=u;if(!i)throw new Error(`Constructor for "${r.$tagName$}#${t.$modeName$}" was not found`);T.member&&!i.isProxied&&(T.watchCallback&&(r.$watchers$=i.watchers),iE(i,r,2),i.isProxied=!0);let d=Zi("createInstance",r.$tagName$);T.member&&(t.$flags$|=8);try{new i(t)}catch(f){Yi(f)}T.member&&(t.$flags$&=-9),T.watchCallback&&(t.$flags$|=128),d(),sv(t.$lazyInstance$)}else{i=e.constructor;let u=e.localName;customElements.whenDefined(u).then(()=>t.$flags$|=128)}if(T.style&&i&&i.style){let u=i.style;T.mode&&typeof u!="string"&&(t.$modeName$=oW(e),t.$modeName$&&(u=u[t.$modeName$]),T.hydrateServerSide&&t.$modeName$&&e.setAttribute("s-mode",t.$modeName$));let d=qT(r,t.$modeName$);if(!W0.has(d)){let f=Zi("registerStyles",r.$tagName$);!T.hydrateServerSide&&T.shadowDom&&T.shadowDomShim&&r.$flags$&8&&(u=await Promise.resolve().then(()=>(xT(),ST)).then(m=>m.scopeCss(u,d,!1))),lW(d,u,!!(r.$flags$&1)),f()}}}let o=t.$ancestorComponent$,s=()=>j0(t,!0);T.asyncLoading&&o&&o["s-rc"]?o["s-rc"].push(s):s()},sv=e=>{T.lazyLoad&&T.connectedCallback&&yi(e,"connectedCallback")},SW=e=>{if(!(et.$flags$&1)){let t=jn(e),r=t.$cmpMeta$,n=Zi("connectedCallback",r.$tagName$);if(T.hostListenerTargetParent&&lv(e,t,r.$listeners$,!0),t.$flags$&1)lv(e,t,r.$listeners$,!1),t?.$lazyInstance$?sv(t.$lazyInstance$):t?.$onReadyPromise$&&t.$onReadyPromise$.then(()=>sv(t.$lazyInstance$));else{t.$flags$|=1;let i;if(T.hydrateClientSide&&(i=e.getAttribute(ev),i)){if(T.shadowDom&&aa&&r.$flags$&1){let o=T.mode?iv(e.shadowRoot,r,e.getAttribute("s-mode")):iv(e.shadowRoot,r);e.classList.remove(o+"-h",o+"-s")}iW(e,r.$tagName$,i,t)}if(T.slotRelocation&&!i&&(T.hydrateServerSide||(T.slot||T.shadowDom)&&r.$flags$&12)&&xW(e),T.asyncLoading){let o=e;for(;o=o.parentNode||o.host;)if(T.hydrateClientSide&&o.nodeType===1&&o.hasAttribute("s-id")&&o["s-p"]||o["s-p"]){tE(t,t.$ancestorComponent$=o);break}}T.prop&&!T.hydrateServerSide&&r.$members$&&Object.entries(r.$members$).map(([o,[s]])=>{if(s&31&&e.hasOwnProperty(o)){let a=e[o];delete e[o],e[o]=a}}),T.initializeNextTick?H0(()=>VT(e,t,r)):VT(e,t,r)}n()}},xW=e=>{let t=e["s-cr"]=ir.createComment(T.isDebug?`content-ref (host=${e.localName})`:"");t["s-cn"]=!0,Hr(e,t,e.firstChild)},J_=e=>{T.lazyLoad&&T.disconnectedCallback&&yi(e,"disconnectedCallback"),T.cmpDidUnload&&yi(e,"componentDidUnload")},CW=async e=>{if(!(et.$flags$&1)){let t=jn(e);T.hostListener&&t.$rmListeners$&&(t.$rmListeners$.map(r=>r()),t.$rmListeners$=void 0),T.lazyLoad?t?.$lazyInstance$?J_(t.$lazyInstance$):t?.$onReadyPromise$&&t.$onReadyPromise$.then(()=>J_(t.$lazyInstance$)):J_(e)}},TW=(e,t)=>{oE(e),sE(e),PW(e),MW(e),AW(e),LW(e),IW(e),aE(e),lE(e,t),EW(e)},oE=e=>{let t=e.cloneNode;e.cloneNode=function(r){let n=this,i=T.shadowDom?n.shadowRoot&&aa:!1,o=t.call(n,i?r:!1);if(T.slot&&!i&&r){let s=0,a,u,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-rsc"];for(;s<n.childNodes.length;s++)a=n.childNodes[s]["s-nr"],u=d.every(f=>!n.childNodes[s][f]),a&&(T.appendChildSlotFix&&o.__appendChild?o.__appendChild(a.cloneNode(!0)):o.appendChild(a.cloneNode(!0))),u&&o.appendChild(n.childNodes[s].cloneNode(!0))}return o}},sE=e=>{e.__appendChild=e.appendChild,e.appendChild=function(t){let r=t["s-sn"]=cE(t),n=jl(this.childNodes,r,this.tagName);if(n){let i=mv(n,r),o=i[i.length-1],s=Hr(o.parentNode,t,o.nextSibling);return q0(this),s}return this.__appendChild(t)}},EW=e=>{e.__removeChild=e.removeChild,e.removeChild=function(t){if(t&&typeof t["s-sn"]<"u"){let r=jl(this.childNodes,t["s-sn"],this.tagName);if(r){let i=mv(r,t["s-sn"]).find(o=>o===t);if(i){i.remove(),q0(this);return}}}return this.__removeChild(t)}},MW=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"]=cE(n),o=jl(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 u=mv(o,i)[0];return Hr(u.parentNode,n,u.nextSibling)}return n.nodeType===1&&n.getAttribute("slot")&&(n.hidden=!0),t.call(this,n)})}},PW=e=>{e.append=function(...t){t.forEach(r=>{typeof r=="string"&&(r=this.ownerDocument.createTextNode(r)),this.appendChild(r)})}},LW=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)}},IW=e=>{e.insertAdjacentText=function(t,r){this.insertAdjacentHTML(t,r)}},AW=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)}},aE=e=>{let t=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(e,"__textContent",t),T.experimentalScopedSlotChanges?Object.defineProperty(e,"textContent",{get(){return" "+av(this.childNodes).map(i=>{var o,s;let a=[],u=i.nextSibling;for(;u&&u["s-sn"]===i["s-sn"];)(u.nodeType===3||u.nodeType===1)&&a.push((s=(o=u.textContent)==null?void 0:o.trim())!=null?s:""),u=u.nextSibling;return a.filter(d=>d!=="").join(" ")}).filter(i=>i!=="").join(" ")+" "},set(r){av(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"]="",Hr(i.parentElement,s,i.nextSibling)}else i.remove()})}}):Object.defineProperty(e,"textContent",{get(){var r;let n=jl(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=jl(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&&Hr(this,o,this.firstChild)}}})},lE=(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(!(et.$flags$&1)&&jn(this).$flags$&2){let o=new r;for(let s=0;s<i.length;s++){let a=i[s]["s-nr"];a&&o.push(a)}return o}return r.from(i)}})}},av=e=>{let t=[];for(let r of Array.from(e))r["s-sr"]&&t.push(r),t.push(...av(r.childNodes));return t},cE=e=>e["s-sn"]||e.nodeType===1&&e.getAttribute("slot")||"",jl=(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=jl(i.childNodes,t,r),i))return i;return null},mv=(e,t)=>{let r=[e];for(;(e=e.nextSibling)&&e["s-sn"]===t;)r.push(e);return r},Nt=(e,t)=>{let r={$flags$:t[0],$tagName$:t[1]};T.member&&(r.$members$=t[2]),T.hostListener&&(r.$listeners$=t[3]),T.watchCallback&&(r.$watchers$=e.$watchers$),T.reflect&&(r.$attrsToReflect$=[]),T.shadowDom&&!aa&&r.$flags$&1&&(r.$flags$|=8),T.experimentalSlotFixes?T.scoped&&r.$flags$&2&&TW(e.prototype,r):(T.slotChildNodesFix&&lE(e.prototype,r),T.cloneNodeFix&&oE(e.prototype),T.appendChildSlotFix&&sE(e.prototype),T.scopedSlotTextContentFix&&r.$flags$&2&&aE(e.prototype));let n=e.prototype.connectedCallback,i=e.prototype.disconnectedCallback;return Object.assign(e.prototype,{__registerHost(){DW(this,r)},connectedCallback(){SW(this),T.connectedCallback&&n&&n.call(this)},disconnectedCallback(){CW(this),T.disconnectedCallback&&i&&i.call(this)},__attachShadow(){aa?T.shadowDelegatesFocus?this.attachShadow({mode:"open",delegatesFocus:!!(r.$flags$&16)}):this.attachShadow({mode:"open"}):this.shadowRoot=this}}),e.is=r.$tagName$,iE(e,r,3)},lv=(e,t,r,n)=>{T.hostListener&&r&&(T.hostListenerTargetParent&&(n?r=r.filter(([i])=>i&32):r=r.filter(([i])=>!(i&32))),r.map(([i,o,s])=>{let a=T.hostListenerTarget?NW(e,i):e,u=kW(t,s),d=RW(i);et.ael(a,o,u,d),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>et.rel(a,o,u,d))}))},kW=(e,t)=>r=>{try{T.lazyLoad?e.$flags$&256?e.$lazyInstance$[t](r):(e.$queuedListeners$=e.$queuedListeners$||[]).push([t,r]):e.$hostElement$[t](r)}catch(n){Yi(n)}},NW=(e,t)=>T.hostListenerTargetDocument&&t&4?ir:T.hostListenerTargetWindow&&t&8?Hl:T.hostListenerTargetBody&&t&16?ir.body:T.hostListenerTargetParent&&t&32?e.parentElement:e,RW=e=>VW?{passive:(e&1)!==0,capture:(e&2)!==0}:(e&2)!==0,uE=T.hotModuleReplacement?window.__STENCIL_HOSTREFS__||(window.__STENCIL_HOSTREFS__=new WeakMap):new WeakMap,jn=e=>uE.get(e),DW=(e,t)=>{let r={$flags$:0,$hostElement$:e,$cmpMeta$:t,$instanceValues$:new Map};return T.isDev&&(r.$renderCount$=0),T.method&&T.lazyLoad&&(r.$onInstancePromise$=new Promise(n=>r.$onInstanceResolve$=n)),T.asyncLoading&&(r.$onReadyPromise$=new Promise(n=>r.$onReadyResolve$=n),e["s-p"]=[],e["s-rc"]=[]),lv(e,r,t.$listeners$,!1),uE.set(e,r)},UT=(e,t)=>t in e,Yi=(e,t)=>(OW||console.error)(e,t),dE=T.isTesting?["STENCIL:"]:["%cstencil","color: white;background:#4c47ff;font-weight: bold; font-size:10px; padding:2px 6px; border-radius: 5px"],U0=(...e)=>console.error(...dE,...e),Cd=(...e)=>console.warn(...dE,...e),WT=new Map,$W=(e,t,r)=>{let n=e.$tagName$.replace(/-/g,"_"),i=e.$lazyBundleId$;if(T.isDev&&typeof i!="string"){U0(`Trying to lazily load component <${e.$tagName$}> with style mode "${t.$modeName$}", but it does not exist.`);return}let o=T.hotModuleReplacement?!1:WT.get(i);if(o)return o[n];return OU(`./${i}.entry.js${T.hotModuleReplacement&&r?"?s-hmr="+r:""}`).then(s=>(T.hotModuleReplacement||WT.set(i,s),s[n]),Yi)},W0=new Map,FW=[],Hl=typeof window<"u"?window:{},ir=Hl.document||{head:{}},Rt=Hl.HTMLElement||class{},et={$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)},aa=T.shadowDomShim&&T.shadowDom?(ir.head.attachShadow+"").indexOf("[native")>-1:!0,VW=(()=>{let e=!1;try{ir.addEventListener("e",null,Object.defineProperty({},"passive",{get(){e=!0}}))}catch{}return e})(),UW=e=>Promise.resolve(e),WW=T.constructableCSS?(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replaceSync=="function"}catch{}return!1})():!1,X_=0,z0=!1,$0=[],sa=[],Q_=[],fE=(e,t)=>r=>{e.push(r),z0||(z0=!0,t&&et.$flags$&4?H0(G0):et.raf(G0))},zT=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(r){Yi(r)}e.length=0},GT=(e,t)=>{let r=0,n=0;for(;r<e.length&&(n=performance.now())<t;)try{e[r++](n)}catch(i){Yi(i)}r===e.length?e.length=0:r!==0&&e.splice(0,r)},G0=()=>{if(T.asyncQueue&&X_++,zT($0),T.asyncQueue){let e=(et.$flags$&6)===2?performance.now()+14*Math.ceil(X_*.1):1/0;GT(sa,e),GT(Q_,e),sa.length>0&&(Q_.push(...sa),sa.length=0),(z0=$0.length+sa.length+Q_.length>0)?et.raf(G0):X_=0}else zT(sa),(z0=$0.length>0)&&et.raf(G0)},H0=e=>UW().then(e),pE=fE($0,!1),zW=fE(sa,!0)});function mE(){let{classList:e}=document.body,t=window.matchMedia("(prefers-color-scheme: dark)").matches,r=()=>e.contains(B_)||e.contains(G_)&&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 GW(){typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document&&(document.readyState==="interactive"?mE():document.addEventListener("DOMContentLoaded",()=>mE(),{once:!0}))}var BW,hE=P(()=>{vd();Dt();BW=GW;BW()});function wE(){try{la(".")}catch{cv(qo($l(gE)))}}function yE(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 gE,hv=P(()=>{hE();m0();Fe();Ho();gE="components/assets"});var Z0,Y0,gv=P(()=>{Z0=Symbol("widget"),Y0=Symbol("widget-test-data")});function wv(e,t){let r=t.children;if(r?.length)for(let i=0;i<r.length;++i)r[i]=wv(e,r[i]);else r=qW;let n=t.vnodeSelector;if(Zl(n)){let i=t.properties||jW,o=i.key||n,s={key:o,afterCreate:HW,afterUpdate:ZW,afterRemoved:bE,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 HW(e,t,r,{parentWidget:n,widgetConstructor:i,widgetProperties:o}){let s=new i(o);s.container=e,J0.set(e,s),s.afterCreate?.(s,e),n.addHandles(We(()=>bE(e))),queueMicrotask(()=>{s[Y0].projector.renderNow()})}function ZW(e,t,r,{widgetProperties:n}){let i=J0.get(e);i&&(i.set(n),i.afterUpdate?.(i,e))}function bE(e){let t=J0.get(e);t&&(t.afterRemoved?.(t,e),t.destroy(),J0.delete(e))}function Zl(e){return typeof e=="function"&&e[Z0]}var qW,jW,J0,yv=P(()=>{qr();gv();qW=[],jW={},J0=new WeakMap});function vE(e){_E.add(e),e.finally(()=>_E.delete(e))}var _E,SE=P(()=>{_E=new Set});function CE(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"?CE(e[n],t[n]):e[n]=t[n]);return e}var xE,YW,JW,XW,bv,Ot,TE,EE=P(()=>{tr();h0();Nb();hC();l0();td();Fe();Qt();qe();qs();wC();fi();M_();LC();rr();P_();jt();Bs();Yb();hT();hv();yv();gv();SE();N_();L0();Gi();wd();YW="esri.widgets.Widget",JW=0;XW=mT({postProcessProjectionOptions(e){let t=e.eventHandlerInterceptor,r=/capture$/i;e.eventHandlerInterceptor=(n,i,o,s)=>{let a=t?.(n,i,o,s),u=r.test(n);if(!((n=n.replace(r,"")).toLowerCase()in o)||u){let d=n[2].toLowerCase()+n.slice(3),f=_=>a?.call(o,_);o.addEventListener(d,f,u);let m=()=>o.removeEventListener(d,f,u),w=s.afterRemoved;s.afterRemoved=_=>{w?.(_),m()}}return a}},handleInterceptedEvent(e,t,r,n){let{eventPhase:i,type:o}=n,s=i===Event.CAPTURING_PHASE,a=`on${o}${s?"capture":""}`,u=t.properties;(u&&a in u||(a=`on${o[0].toUpperCase()}${o.slice(1)}${s?"Capture":""}`,u&&a in u))&&(M0(),e.scheduleRender(),u[a].call(u.bind||r,n))}}),bv=!1,Ot=class extends v_(Xs.EventedAccessor){constructor(e,t){super(e,t),this._attached=!1,this._projector=XW,this._readyForTrueRender=!1,this.key=this,this.autoRenderingEnabled=!0,this._loadLocale=a6(async()=>{if(this._messageBundleProps?.length){let a=await Promise.allSettled(this._messageBundleProps.map(async({bundlePath:u,propertyName:d})=>{if(this.destroyed)return;let f=await w_(u);this.uiStrings&&Object.keys(this.uiStrings)&&(f=CE(Le(f),this.uiStrings)),this[d]=f}));if(this.destroyed)return;for(let u of a)u.status==="rejected"&&Ce.getLogger(this).error("widget-intl:locale-error",this.declaredClass,u.reason)}await this.loadLocale()}),wE();let r="esri-widget-uid-"+PC(),n=this.render.bind(this);this._trackingTarget=new Hs(()=>{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 f;if(!this._readyForTrueRender||this.destroyed)return null;let a=n()??i(),u=a.properties??(a.properties={});if(u.key??(u.key=r),Zl(a.vnodeSelector)){if(!this.visible)return i()}else this.visible?u.styles||(u.styles={}):(u.class="",u.styles={display:"none"}),(f=u.styles).display??(f.display="");let d=0;return a.children?.forEach(m=>{var w;Zl(m.vnodeSelector)||(m.properties??(m.properties={}),(w=m.properties).key??(w.key=`${this.id}--${d++}`))}),wv(this,a)};this.render=()=>{if(bv)return o();let a=JC(this)??null;if(a)return a;this._trackingTarget.clear(),bv=!0;try{a=zn(this._trackingTarget,o)}catch(u){throw Ce.getLogger(this).error(u),u}finally{bv=!1}return a&&XC(this,a),a};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),vE(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(zb):null}loadDependencies(){return null}loadLocale(){return null}destroy(){this.destroyed||(Zu(this._trackingTarget),Zu(this.viewModel),this._detach(this.container),this._set("container",null),this._emitter.clear(),this.render=()=>null,this._projector=null,P0(this))}set container(e){this._get("container")||this._set("container",e)}castContainer(e){return mC(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-"+JW++}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[(xE=Z0,Y0)](){return{projector:this._projector}}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||(P0(this),this._projector.scheduleRender())}own(e){E1(Ce.getLogger(this),"`Widget.own()` is deprecated in favor of 'Widget.addHandles()'",{replacement:"Widget.addHandles()",version:"4.28"}),this.addHandles(e)}classes(...e){return QC.apply(this,e)}renderNow(){P0(this),this._projector.renderNow()}_postInitialize(){if(this.destroyed)return;this.scheduleRender(),this._delegatedEventNames?.length&&this.addHandles(yd(()=>this.viewModel,(t,r)=>{r&&this.removeHandles("delegated-events"),t&&ed(t)&&this.addHandles(this._delegatedEventNames.map(n=>Uo(t,n,i=>{this.emit(n,i)})),"delegated-events")},w0)),this.postInitialize();let e=async()=>{await this._loadLocale().catch(zb),this.scheduleRender()};this.addHandles([ab(e),yd(()=>this.uiStrings,e),EC(()=>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)}};Ot[xE]=!0,Ot.vnodeSelector="div",R([j()],Ot.prototype,"_readyForTrueRender",void 0),R([j({value:null})],Ot.prototype,"container",null),R([y0("container")],Ot.prototype,"castContainer",null),R([j()],Ot.prototype,"icon",null),R([j()],Ot.prototype,"id",null),R([j()],Ot.prototype,"label",null),R([j()],Ot.prototype,"renderable",null),R([j()],Ot.prototype,"uiStrings",void 0),R([j()],Ot.prototype,"viewModel",void 0),R([j({value:!0})],Ot.prototype,"visible",null),R([j()],Ot.prototype,"key",void 0),R([j()],Ot.prototype,"children",void 0),R([j()],Ot.prototype,"afterCreate",void 0),R([j()],Ot.prototype,"afterUpdate",void 0),R([j()],Ot.prototype,"afterRemoved",void 0),Ot=R([Me(YW)],Ot);TE=Ot});function _v(e){return(t,r)=>{t.hasOwnProperty("_messageBundleProps")||(t._messageBundleProps=t._messageBundleProps?t._messageBundleProps.slice():[]),t._messageBundleProps.push({bundlePath:e,propertyName:r})}}var ME=P(()=>{});function $r(e,t,...r){return typeof e!="function"||Zl(e)?KW(e,t,...r):e(t,...r)}var QW,PE,KW,LE=P(()=>{yv();QW=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},PE=function(e,t){for(var r=0,n=e.length;r<n;r++){var i=e[r];Array.isArray(i)?PE(i,t):i!=null&&i!==!1&&(i.hasOwnProperty("vnodeSelector")||(i=QW(i)),t.push(i))}},KW=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 PE(r,i),{vnodeSelector:e,properties:t||void 0,children:i,text:void 0,domNode:null}}});function tz(){return getComputedStyle(document.body).getPropertyValue("--esri-calcite-mode-name").replaceAll(/\s|'|"/g,"")}function rz(){return tz().startsWith("dark")}function IE(){return`${ez}${rz()?"dark":"light"}`}var ez,AE=P(()=>{ez="calcite-mode-"});function nz(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 X0,vv=P(()=>{X0=()=>nz([2,1,1,1,3])});function Tv(e){return e?e.id=e.id||`${e.tagName.toLowerCase()}-${X0()}`:""}function Yl(e){let t="dir",r=`[${t}]`,n=bi(e,r);return n?n.getAttribute(t):"ltr"}function UE(e){return e.getRootNode()}function WE(e){return e.host||null}function ng(e,{selector:t,id:r}){function n(i){if(!i)return null;i.assignedSlot&&(i=i.assignedSlot);let o=UE(i),s=r?"getElementById"in o?o.getElementById(r):null:t?o.querySelector(t):null,a=WE(o);return s||(a?n(a):null)}return n(e)}function bi(e,t){function r(n){return n?n.closest(t)||r(WE(UE(n))):null}return r(e)}function bz(e,t){return zE(e,t)}function zE(e,t){if(!e)return;let r=t(e);if(r!==void 0)return r;let{parentNode:n}=e;return zE(n instanceof ShadowRoot?n.host:n,t)}function GE(e,t){return!!bz(t,r=>r===e?!0:void 0)}function _z(e){return typeof e?.setFocus=="function"}async function BE(e){if(e)return _z(e)?e.setFocus():e.focus()}function vz(e){if(e)return xv(e,Cv)[0]??e}function qE(e){vz(e)?.focus()}function Ji(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}"]`:Td;return r?.all?Sz(e,n,r):xz(e,n,r)}function jE(e,t){return e?Array.from(e.children||[]).filter(r=>r?.matches(t)):[]}function Sz(e,t,r){let n=t===Td?jE(e,Td):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 xz(e,t,r){let n=t===Td?jE(e,Td)[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 Xi(e,t,r){if(typeof t=="string"&&t!=="")return t;if(t==="")return e[r]}function ig(e){return(!!e).toString()}function HE(e){return og(e)||Tz(e)}function Cz(e){return Ez(e).filter(t=>t.nodeType===Node.TEXT_NODE).map(t=>t.textContent).join("").trim()}function Tz(e){return!!Cz(e)}function Ez(e){return e.target.assignedNodes({flatten:!0})}function og(e){return!!Mz(e).length}function Mz(e){return e.target.assignedElements({flatten:!0})}function ZE(e){return!!(e.isPrimary&&e.button===0)}function YE(e,t){if(e.parentNode!==t.parentNode)return!1;let r=Array.from(e.parentNode.children);return r.indexOf(e)<r.indexOf(t)}var NE,Q0,RE,ca,K0,eg,iz,DE,OE,$E,rs,oz,sz,FE,az,lz,cz,uz,dz,fz,pz,kE,mz,hz,tg,Sv,gz,wz,xv,VE,ua,yz,rg,Cv,Td,sn=P(()=>{vv();vd();NE=["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])"],Q0=NE.join(","),RE=typeof Element>"u",ca=RE?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,K0=!RE&&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},eg=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},iz=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},DE=function(t,r,n){if(eg(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Q0));return r&&ca.call(t,Q0)&&i.unshift(t),i=i.filter(n),i},OE=function e(t,r,n){for(var i=[],o=Array.from(t);o.length;){var s=o.shift();if(!eg(s,!1))if(s.tagName==="SLOT"){var a=s.assignedElements(),u=a.length?a:s.children,d=e(u,!0,n);n.flatten?i.push.apply(i,d):i.push({scopeParent:s,candidates:d})}else{var f=ca.call(s,Q0);f&&n.filter(s)&&(r||!t.includes(s))&&i.push(s);var m=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),w=!eg(m,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(m&&w){var _=e(m===!0?s.children:m.children,!0,n);n.flatten?i.push.apply(i,_):i.push({scopeParent:s,candidates:_})}else o.unshift.apply(o,s.children)}}return i},$E=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},rs=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||iz(t))&&!$E(t)?0:t.tabIndex},oz=function(t,r){var n=rs(t);return n<0&&r&&!$E(t)?0:n},sz=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},FE=function(t){return t.tagName==="INPUT"},az=function(t){return FE(t)&&t.type==="hidden"},lz=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},cz=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},uz=function(t){if(!t.name)return!0;var r=t.form||K0(t),n=function(a){return r.querySelectorAll('input[type="radio"][name="'+a+'"]')},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=cz(i,t.form);return!o||o===t},dz=function(t){return FE(t)&&t.type==="radio"},fz=function(t){return dz(t)&&!uz(t)},pz=function(t){var r,n=t&&K0(t),i=(r=n)===null||r===void 0?void 0:r.host,o=!1;if(n&&n!==t){var s,a,u;for(o=!!((s=i)!==null&&s!==void 0&&(a=s.ownerDocument)!==null&&a!==void 0&&a.contains(i)||t!=null&&(u=t.ownerDocument)!==null&&u!==void 0&&u.contains(t));!o&&i;){var d,f,m;n=K0(i),i=(d=n)===null||d===void 0?void 0:d.host,o=!!((f=i)!==null&&f!==void 0&&(m=f.ownerDocument)!==null&&m!==void 0&&m.contains(i))}}return o},kE=function(t){var r=t.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},mz=function(t,r){var n=r.displayCheck,i=r.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=ca.call(t,"details>summary:first-of-type"),s=o?t.parentElement:t;if(ca.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof i=="function"){for(var a=t;t;){var u=t.parentElement,d=K0(t);if(u&&!u.shadowRoot&&i(u)===!0)return kE(t);t.assignedSlot?t=t.assignedSlot:!u&&d!==t.ownerDocument?t=d.host:t=u}t=a}if(pz(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return kE(t);return!1},hz=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 ca.call(r,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}r=r.parentElement}return!1},tg=function(t,r){return!(r.disabled||eg(r)||az(r)||mz(r,t)||lz(r)||hz(r))},Sv=function(t,r){return!(fz(r)||rs(r)<0||!tg(t,r))},gz=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},wz=function e(t){var r=[],n=[];return t.forEach(function(i,o){var s=!!i.scopeParent,a=s?i.scopeParent:i,u=oz(a,s),d=s?e(i.candidates):a;u===0?s?r.push.apply(r,d):r.push(a):n.push({documentOrder:o,tabIndex:u,item:i,isScope:s,content:d})}),n.sort(sz).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},xv=function(t,r){r=r||{};var n;return r.getShadowRoot?n=OE([t],r.includeContainer,{filter:Sv.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:gz}):n=DE(t,r.includeContainer,Sv.bind(null,r)),wz(n)},VE=function(t,r){r=r||{};var n;return r.getShadowRoot?n=OE([t],r.includeContainer,{filter:tg.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=DE(t,r.includeContainer,tg.bind(null,r)),n},ua=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return ca.call(t,Q0)===!1?!1:Sv(r,t)},yz=NE.concat("iframe").join(","),rg=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return ca.call(t,yz)===!1?!1:tg(r,t)},Cv={getShadowRoot:!0};Td=":not([slot])"});function Lz(e){return`${e.split("-").map((n,i)=>i===0?n:`${n[0].toUpperCase()}${n.slice(1)}`).join("")}${Pz.includes(e)?"Input":"Change"}`}function Pv(e){return"checked"in e}function Iz(e,t){if(bi(t.parentElement,"[form]"))return!0;let n="calciteInternalFormComponentRegister",i=!1;return e.addEventListener(n,o=>{i=o.composedPath().some(s=>Lv.has(s)),o.stopPropagation()},{once:!0}),t.dispatchEvent(new CustomEvent(n,{bubbles:!0,composed:!0})),i}function Az(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 KE(e){return e.nodeName==="CALCITE-RADIO-BUTTON"?bi(e,"calcite-radio-button-group"):e}function JE(e){let t=e?.target,r=t?.validationMessage,n=KE(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(kz),Az(n,{message:r,icon:!0,status:"invalid"});let s=Lz(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 sg(e){let{formEl:t}=e;return t?(t.addEventListener("invalid",JE,!0),t.requestSubmit(),t.removeEventListener("invalid",JE,!0),requestAnimationFrame(()=>{let r=t.querySelectorAll("[status=invalid]");for(let n of r)if(n?.validationMessage){n?.setFocus();break}}),!0):!1}function eM(e){e.formEl?.reset()}function tM(e){let{el:t,value:r}=e,n=Iv(e);if(!n||Iz(n,t))return;e.formEl=n,e.defaultValue=r,Pv(e)&&(e.defaultChecked=e.checked);let i=(e.onFormReset||Nz).bind(e);n.addEventListener("reset",i),Mv.set(e.el,i),Lv.add(t)}function Iv(e){let{el:t,form:r}=e;return r?ng(t,{id:r}):bi(t,"form")}function Nz(){if("status"in this&&(this.status="idle"),"validationIcon"in this&&(this.validationIcon=!1),"validationMessage"in this&&(this.validationMessage=""),Pv(this)){this.checked=this.defaultChecked;return}this.value=this.defaultValue}function rM(e){let{el:t,formEl:r}=e;if(!r)return;let n=Mv.get(t);r.removeEventListener("reset",n),Mv.delete(t),e.formEl=null,Lv.delete(t)}function Rz(e){let{el:t,formEl:r,name:n,value:i}=e,{ownerDocument:o}=t,s=t.querySelectorAll(`input[slot="${Ev}"]`);if(!r||!n){s.forEach(m=>{XE(m),m.remove()});return}let a=Array.isArray(i)?i:[i],u=[],d=new Set;s.forEach(m=>{let w=a.find(_=>_==m.value);w!=null?(d.add(w),QE(e,m,w)):u.push(m)});let f;a.forEach(m=>{if(d.has(m))return;let w=u.pop();w||(w=o.createElement("input"),w.slot=Ev),f||(f=o.createDocumentFragment()),f.append(w),w.addEventListener("input",nM),QE(e,w,m)}),f&&t.append(f),u.forEach(m=>{XE(m),m.remove()})}function QE(e,t,r){let{defaultValue:n,disabled:i,form:o,name:s,required:a}=e;t.defaultValue=n,t.disabled=i,t.name=s,t.required=a,t.tabIndex=-1,o?t.setAttribute("form",o):t.removeAttribute("form"),Pv(e)?(t.checked=e.checked,t.defaultChecked=e.defaultChecked,t.value=e.checked?r||"on":""):t.value=r||"",e.syncHiddenFormInput?.(t);let u=KE(e.el);if(u&&"validity"in u)for(let d in{...t?.validity})u.validity[d]=t.validity[d]}var Pz,Ev,Mv,Lv,kz,ag,nM,XE,iM,Av=P(()=>{Dt();sn();Pz=["calcite-input","calcite-input-number","calcite-input-text","calcite-text-area"];Ev="hidden-form-input";Mv=new WeakMap,Lv=new WeakSet;kz=new CustomEvent("calciteInvalid",{bubbles:!0,composed:!0});ag="calciteInternalHiddenInputInput",nM=e=>{e.target.dispatchEvent(new CustomEvent(ag,{bubbles:!0}))},XE=e=>e.removeEventListener("input",nM);iM=({component:e})=>(Rz(e),J("slot",{name:Ev}))});function Dz(){return navigator.userAgentData}function Oz(){if(!Cr.isBrowser)return"";let e=Dz();return e?.brands?e.brands.map(({brand:t,version:r})=>`${t}/${r}`).join(" "):navigator.userAgent}function $z(){let{disabled:e}=this;e||HTMLElement.prototype.click.call(this)}function sM(e){let t=e.target;if(fa&&!da.get(t))return;let{disabled:r}=t;r&&e.preventDefault()}function lM(e){let t=e.target;fa&&!da.get(t)||t.disabled&&(e.stopImmediatePropagation(),e.preventDefault())}function cg(e){if(e.disabled){e.el.setAttribute("aria-disabled","true"),e.el.contains(document.activeElement)&&document.activeElement.blur(),cM(e);return}uM(e),e.el.removeAttribute("aria-disabled")}function cM(e){if(e.el.click=$z,fa){let t=Fz(e),r=da.get(e.el);r!==t&&(kv(r),da.set(e.el,t)),oM(da.get(e.el));return}oM(e.el)}function oM(e){e&&(e.addEventListener("pointerdown",sM,lg),aM.forEach(t=>e.addEventListener(t,lM,lg)))}function Fz(e){return e.el.parentElement||e.el}function uM(e){if(delete e.el.click,fa){kv(da.get(e.el)),da.delete(e.el);return}kv(e.el)}function kv(e){e&&(e.removeEventListener("pointerdown",sM,lg),aM.forEach(t=>e.removeEventListener(t,lM,lg)))}function ug(e){!e.disabled||!fa||cM(e)}function dg(e){fa&&uM(e)}function fg({disabled:e},t){return J("div",{class:Vz.container,inert:e},...t)}var fa,da,aM,lg,Vz,Nv=P(()=>{Dt();fa=/firefox/i.test(Oz()),da=fa?new WeakMap:null;aM=["mousedown","mouseup","click"];lg={capture:!0};Vz={container:"interaction-container"}});function Zr(e){return e==="l"?"m":"s"}async function Ed(e){await(Uz(e)?e.componentOnReady():new Promise(t=>requestAnimationFrame(()=>t())))}function Uz(e){return typeof e.componentOnReady=="function"}async function dM(e){if(await Ed(e),!(!Cr.isBrowser&&!Cr.isTesting))return Wz(e),new Promise(t=>requestAnimationFrame(()=>t()))}var Wz,pa=P(()=>{Dt();Wz=Cr.isTesting?ts:()=>{}});function Gz(e,t){let r,n="custom-element-ancestor-check",i=s=>{s.stopImmediatePropagation();let a=s.composedPath();r=a.slice(a.indexOf(t),a.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 Xl(e){if(!e)return;let t=zz(e.el);if(Md.has(t)&&t===e.labelEl||!t&&ma.has(e))return;let r=qz.bind(e);if(t){e.labelEl=t;let n=Jl.get(t)||[];n.push(e),Jl.set(t,n.sort(hM)),Md.has(e.labelEl)||(Md.set(e.labelEl,pM),e.labelEl.addEventListener(mM,pM)),ma.delete(e),document.removeEventListener(Id,Ld.get(e)),pg.set(e,r),document.addEventListener(Pd,r)}else ma.has(e)||(r(),document.removeEventListener(Pd,pg.get(e)))}function mg(e){if(!e||(ma.delete(e),document.removeEventListener(Id,Ld.get(e)),document.removeEventListener(Pd,pg.get(e)),Ld.delete(e),pg.delete(e),!e.labelEl))return;let t=Jl.get(e.labelEl);t.length===1&&(e.labelEl.removeEventListener(mM,Md.get(e.labelEl)),Md.delete(e.labelEl)),Jl.set(e.labelEl,t.filter(r=>r!==e).sort(hM)),e.labelEl=null}function hM(e,t){return YE(e.el,t.el)?-1:1}function Ad(e){return e.label||e.labelEl?.textContent?.trim()||""}function pM(e){let t=e.detail.sourceEvent.target,r=Jl.get(this),n=r.find(s=>s.el===t);if(r.includes(n))return;let o=r[0];o.disabled||o.onLabelClick(e)}function Bz(){ma.has(this)&&Xl(this)}function qz(){ma.add(this);let e=Ld.get(this)||Bz.bind(this);Ld.set(this,e),document.addEventListener(Id,e)}async function gM(e){if(await Ed(e),Jl.has(e))return;let r=e.ownerDocument?.getElementById(e.for);r&&requestAnimationFrame(()=>{for(let n of ma)if(n.el===r){Xl(n);break}})}var mM,Id,Pd,fM,Jl,Md,Ld,pg,ma,zz,hg=P(()=>{sn();pa();mM="calciteInternalLabelClick",Id="calciteInternalLabelConnected",Pd="calciteInternalLabelDisconnected",fM="calcite-label",Jl=new WeakMap,Md=new WeakMap,Ld=new WeakMap,pg=new WeakMap,ma=new Set,zz=e=>{let{id:t}=e,r=t&&ng(e,{selector:`${fM}[for="${t}"]`});if(r)return r;let n=bi(e,fM);return!n||Gz(n,e)?null:n}});function ns(e){jz.set(e,new Promise(t=>wM.set(e,t)))}function is(e){wM.get(e)()}async function os(e){await dM(e.el)}var wM,jz,kd=P(()=>{pa();wM=new WeakMap,jz=new WeakMap});var Nd,Rv=P(()=>{Nd=["0","1","2","3","4","5","6","7","8","9"]});function Tr(e,t,r){if(!Cr.isBrowser)return;let n=Hz(e);return new n(t,r)}function Hz(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 ss=P(()=>{Dt();});function Hn(e){return!(!e||isNaN(Number(e)))}function yM(e){return!e||!rG(e)?"":gg(e,t=>{let r=!1,n=t.split("").filter((i,o)=>i.match(/\./g)&&!r?(r=!0,!0):i.match(/-/g)&&o===0?!0:Nd.includes(i)).join("");return Hn(n)?new Er(n).toString():""})}function eG(e){let t=e.split(".")[1],r=new Er(e).toString(),[n,i]=r.split(".");return t&&i!==t?`${n}.${t}`:r}function gg(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 tG(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])||"",a=o[1]||"",u=(m,w)=>{let _=Math.abs(w)-m.length,S=_>0?`${"0".repeat(_)}${m}`:m;return`${S.slice(0,w)}.${S.slice(w)}`},d=(m,w)=>{let _=w>m.length?`${m}${"0".repeat(w-m.length)}`:m;return`${_.slice(0,w)}.${_.slice(w)}`},f=i>0?`${s}${d(a,i)}`:`${u(s,i)}${a}`;return`${n?"-":""}${f.charAt(0)==="."?"0":""}${f.replace(Zz,"").replace(bM,"")}`}function rG(e){return Nd.some(t=>e.includes(t))}function vM(e,t,r){let n=t.split(".")[1];if(n){let i=n.match(Kz)[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 $v(e,t="cldr"){let r=t==="cldr"?iG:nG;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).`),as))):as}function _i(e){aG(e),Rd.size===0&&CM?.observe(document.documentElement,{attributes:!0,attributeFilter:["lang"],subtree:!0}),Rd.add(e)}function aG(e){e.effectiveLocale=lG(e)}function vi(e){Rd.delete(e),Rd.size===0&&CM.disconnect()}function lG(e){return e.el.lang||bi(e.el,"[lang]")?.lang||document.documentElement.lang||as}var Zz,Yz,Er,bM,Jz,Xz,Qz,Kz,_M,as,nG,iG,oG,SM,Dv,xM,sG,Rd,CM,Ov,Zn,ha=P(()=>{sn();Rv();ss();Zz=new RegExp("\\.(0+)?$"),Yz=new RegExp("0+$"),Er=class e{constructor(t){if(t instanceof e)return t;let[r,n]=tG(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(Yz,"");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)}};Er.DECIMALS=100;Er.ROUNDED=!0;Er.SHIFT=BigInt("1"+"0".repeat(Er.DECIMALS));Er._divRound=(e,t)=>Er.fromBigInt(e/t+(Er.ROUNDED?e*BigInt(2)/t%BigInt(2):BigInt(0)));Er.fromBigInt=e=>Object.assign(Object.create(Er.prototype),{value:e,isNegative:e<BigInt(0)});bM=/^([-0])0+(?=\d)/,Jz=/(?!^\.)\.$/,Xz=/(?!^-)-/g,Qz=/^-\b0\b\.?0*$/,Kz=/0*$/,_M=e=>gg(e,t=>{let r=t.replace(Xz,"").replace(Jz,"").replace(bM,"$1");return Hn(r)?Qz.test(r)?r:eG(r):t});as="en",nG=["ar","bg","bs","ca","cs","da","de","el",as,"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"],iG=["ar","bg","bs","ca","cs","da","de","de-AT","de-CH","el",as,"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"],oG=["arab","arabext","latn"],SM=e=>oG.includes(e),Dv=new Intl.NumberFormat().resolvedOptions().numberingSystem,xM=Dv==="arab"||!SM(Dv)?"latn":Dv,sG=e=>SM(e)?e:xM;Rd=new Set;CM=Tr("mutation",e=>{e.forEach(t=>{let r=t.target;Rd.forEach(n=>{if(!GE(r,n.el))return;let o=bi(n.el,"[lang]");if(!o){n.effectiveLocale=as;return}let s=o.lang;n.effectiveLocale=o.hasAttribute("lang")&&s===""?as:s})})});Ov=class{constructor(){this.delocalize=t=>this._numberFormatOptions?gg(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?gg(t,r=>Hn(r.trim())?new Er(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=$v(t?.locale),t.numberingSystem=sG(t?.numberingSystem),!this._numberFormatOptions&&t.locale===as&&t.numberingSystem===xM&&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)}},Zn=new Ov});async function cG(e,t){let r=`${t}_${e}`;return wg[r]||(wg[r]=fetch(la(`./assets/${t}/t9n/messages_${e}.json`)).then(n=>(n.ok||TM(),n.json())).catch(()=>TM())),wg[r]}function TM(){throw new Error("could not fetch component message bundle")}function Fv(e){e.messages={...e.defaultMessages,...e.messageOverrides}}function uG(){}async function Si(e){e.defaultMessages=await EM(e,e.effectiveLocale),Fv(e)}async function EM(e,t){if(!Cr.isBrowser)return{};let{el:r}=e,i=r.tagName.toLowerCase().replace("calcite-","");return cG($v(t,"t9n"),i)}async function xi(e,t){e.defaultMessages=await EM(e,t),Fv(e)}function Ci(e){e.onMessagesChange=dG}function Ti(e){e.onMessagesChange=uG}function dG(){Fv(this)}var wg,Ql=P(()=>{Dt();ha();wg={}});function LM({icon:e,scale:t}){let r=PM[t],n=hG(e),i=n.charAt(n.length-1)==="F";return`${i?n.substring(0,n.length-1):n}${r}${i?"F":""}`}async function pG(e){let t=LM(e),r=IM(t);if(r)return r;Vv[t]||(Vv[t]=fetch(la(`./assets/icon/${t}.json`)).then(i=>i.json()).catch(()=>(console.error(`"${t}" is not a valid calcite-ui-icon name`),"")));let n=await Vv[t];return MM[t]=n,n}function mG(e){return IM(LM(e))}function IM(e){return MM[e]}function hG(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(u,d){return s===0&&d===0?u:u.toUpperCase()})).join("")}return t?`i${e}`:e}function Yn(){if(typeof customElements>"u")return;["calcite-icon"].forEach(t=>{switch(t){case"calcite-icon":customElements.get(t)||customElements.define(t,yG);break}})}var fG,MM,Vv,PM,gG,wG,yG,Kl=P(()=>{Dt();sn();ss();fG={icon:"icon",flipRtl:"flip-rtl"},MM={},Vv={},PM={s:16,m:24,l:32};gG=":host{display:inline-flex;color:var(--calcite-ui-icon-color)}: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}",wG=gG,yG=Nt(class extends Rt{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=Yl(t),a=PM[i],u=!!o,d=[].concat(n||"");return J(on,{key:"03df405731dff4dbb4e6e9bd1c7f809b620d7505","aria-hidden":ig(!u),"aria-label":u?o:null,role:u?"img":null},J("svg",{key:"d8fbf4132b6819717415a30ae11bf3695c282d78","aria-hidden":"true",class:{[fG.flipRtl]:s==="rtl"&&r,svg:!0},fill:"currentColor",height:"100%",viewBox:`0 0 ${a} ${a}`,width:"100%",xmlns:"http://www.w3.org/2000/svg"},d.map(f=>typeof f=="string"?J("path",{d:f}):J("path",{d:f.d,opacity:"opacity"in f?f.opacity:1}))))}async loadIconPathData(){let{icon:t,scale:r,visible:n}=this;if(!Cr.isBrowser||!t||!n)return;let i={icon:t,scale:r},o=mG(i)||await pG(i);t===this.icon&&(this.pathData=o)}waitUntilVisible(t){if(this.intersectionObserver=Tr("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 wG}},[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"]}]);Yn()});function ga(){if(typeof customElements>"u")return;["calcite-loader"].forEach(t=>{switch(t){case"calcite-loader":customElements.get(t)||customElements.define(t,vG);break}})}var bG,_G,vG,yg=P(()=>{Dt();vv();bG='@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--2);--calcite-loader-size:2rem;--calcite-loader-size-inline:0.75rem}:host([scale=m]){--calcite-loader-font-size:var(--calcite-font-size-0);--calcite-loader-size:4rem;--calcite-loader-size-inline:1rem}:host([scale=l]){--calcite-loader-font-size:var(--calcite-font-size-2);--calcite-loader-size:6rem;--calcite-loader-size-inline:1.5rem}: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{position:absolute;display:block;text-align:center;color:var(--calcite-color-text-1);font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size);inset-inline-start:50%;margin-inline-start:calc(var(--calcite-loader-size) / 2 * -1);line-height:0.25;transform:scale(1, 1)}.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}.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]){animation:none;stroke:var(--calcite-color-border-3)}:host([type=determinate]) .loader__svgs{animation:none}:host([type=determinate]) .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}',_G=bG,vG=Nt(class extends Rt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.inline=!1,this.label=void 0,this.scale="m",this.type=void 0,this.value=0,this.text=""}render(){let{el:t,inline:r,label:n,scale:i,text:o,type:s,value:a}=this,u=t.id||X0(),d=.45,f=r?this.getInlineSize(i):this.getSize(i),m=f*d,w=`0 0 ${f} ${f}`,_=s==="determinate",S=2*m*Math.PI,C=a/100*S,M=S-C,N=Math.floor(a),L={"aria-valuenow":N,"aria-valuemin":0,"aria-valuemax":100,complete:N===100},k={r:m,cx:f/2,cy:f/2},W={"stroke-dasharray":`${C} ${M}`};return J(on,{key:"ce84a5ded3682993ddc4ec3f2e306ae3572a4568","aria-label":n,id:u,role:"progressbar",..._?L:{}},J("div",{key:"95ff4494320a3e6bd89fbebcedbd9cbb70c8ffef",class:"loader__svgs"},J("svg",{key:"4146bb7fc1e5df62711440d814744ff3fec68eb4","aria-hidden":"true",class:"loader__svg loader__svg--1",viewBox:w},J("circle",{key:"9341646f9919ce53da66099d35a162a280928e4b",...k})),J("svg",{key:"31aa1629ef8e18b423967e2582f13f7f98fa5df4","aria-hidden":"true",class:"loader__svg loader__svg--2",viewBox:w},J("circle",{key:"37d6397d84c7f5f41ba105c7c7d3fb8c744e54d4",...k})),J("svg",{key:"531e8c9a6432d8bc90910f4cb122c4493ecd77e8","aria-hidden":"true",class:"loader__svg loader__svg--3",viewBox:w,..._?{style:W}:{}},J("circle",{key:"9900b647bdcc69a57916b0afe59e72d771c89b1b",...k}))),o&&J("div",{key:"b65e809315da297e9ffda47b004d67805ce3c957",class:"loader__text"},o),_&&J("div",{key:"3f811a02e572c1b352a46740955804006849d3a8",class:"loader__percentage"},a))}getSize(t){return{s:32,m:56,l:80}[t]}getInlineSize(t){return{s:12,m:16,l:20}[t]}get el(){return this}static get style(){return _G}},[1,"calcite-loader",{inline:[516],label:[1],scale:[513],type:[513],value:[2],text:[1]}]);ga()});function Wv(){if(typeof customElements>"u")return;["calcite-button","calcite-icon","calcite-loader"].forEach(t=>{switch(t){case"calcite-button":customElements.get(t)||customElements.define(t,Uv);break;case"calcite-icon":customElements.get(t)||Yn();break;case"calcite-loader":customElements.get(t)||ga();break}})}var an,SG,xG,Uv,AM=P(()=>{Dt();Av();Nv();hg();kd();ha();ss();pa();Ql();sn();Kl();yg();an={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"},SG=`: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(
|
|
31
|
+
2px *
|
|
32
|
+
calc(
|
|
33
|
+
1 -
|
|
34
|
+
2 * clamp(
|
|
35
|
+
0,
|
|
36
|
+
var(--calcite-offset-invert-focus),
|
|
37
|
+
1
|
|
38
|
+
)
|
|
39
|
+
)
|
|
40
|
+
)}: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;transition:inline-size var(--calcite-internal-animation-timing-slow) ease-in-out, opacity var(--calcite-internal-animation-timing-slow) ease-in-out, transform var(--calcite-internal-animation-timing-slow) ease-in-out}.calcite-button--loader calcite-loader.loading-in{animation-name:loader-in;animation-duration:var(--calcite-internal-animation-timing-slow)}.calcite-button--loader calcite-loader.loading-out{animation-name:loader-out;animation-duration:var(--calcite-internal-animation-timing-slow)}: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}`,xG=SG,Uv=Nt(class extends Rt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.mutationObserver=Tr("mutation",()=>this.updateHasContent()),this.resizeObserver=Tr("resize",()=>this.setTooltipText()),this.handleClick=()=>{let{type:t}=this;this.href||(t==="submit"?sg(this):t==="reset"&&eM(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.hasLoader=!1,this.effectiveLocale="",this.defaultMessages=void 0,this.tooltipText=void 0}handleGlobalAttributesChanged(){ts(this)}loadingChanged(t,r){t&&!r&&(this.hasLoader=!0),!t&&r&&window.setTimeout(()=>{this.hasLoader=!1},300)}onMessagesChange(){}async connectedCallback(){ug(this),_i(this),Ci(this),this.hasLoader=this.loading,this.setupTextContentObserver(),Xl(this),this.formEl=Iv(this)}disconnectedCallback(){this.mutationObserver?.disconnect(),dg(this),mg(this),vi(this),Ti(this),this.resizeObserver?.disconnect(),this.formEl=null}async componentWillLoad(){ns(this),Cr.isBrowser&&(this.updateHasContent(),await Si(this))}componentDidLoad(){is(this),this.setTooltipText()}componentDidRender(){cg(this)}render(){let t=this.href?"a":"button",r=t,n=this.hasLoader?J("div",{class:an.buttonLoader},J("calcite-loader",{class:this.loading?an.loadingIn:an.loadingOut,inline:!0,label:this.messages.loading,scale:this.scale==="l"?"m":"s"})):null,i=!this.iconStart&&!this.iconEnd,o=J("calcite-icon",{key:"45941adf90ef50fe1aa5ed4a874dc8a841f4b16f",class:{[an.icon]:!0,[an.iconStart]:!0},flipRtl:this.iconFlipRtl==="start"||this.iconFlipRtl==="both",icon:this.iconStart,scale:Zr(this.scale)}),s=J("calcite-icon",{key:"dcd2f544410e55c7dc3a277f9c5c04da0c00b041",class:{[an.icon]:!0,[an.iconEnd]:!0},flipRtl:this.iconFlipRtl==="end"||this.iconFlipRtl==="both",icon:this.iconEnd,scale:Zr(this.scale)}),a=J("span",{key:"38df650fbf83b178f60d2df42f59d2a7aefbde30",class:an.content,ref:u=>this.contentEl=u},J("slot",{key:"5214ba6eeaedfedc6c7eb10643ecf37d8a30a651"}));return J(fg,{key:"bda810b730243b9d82c1046e5eeaf736536e5e5e",disabled:this.disabled},J(r,{key:"9b35bb5043f98ceb94f762db9b622e7e7578c801","aria-disabled":t==="a"?ig(this.disabled||this.loading):null,"aria-expanded":this.el.getAttribute("aria-expanded"),"aria-label":this.loading?this.messages.loading:Ad(this),"aria-live":"polite",class:{[an.buttonPadding]:i,[an.buttonPaddingShrunk]:!i,[an.contentSlotted]:this.hasContent,[an.iconStartEmpty]:!this.iconStart,[an.iconEndEmpty]:!this.iconEnd},disabled:t==="button"?this.disabled||this.loading:null,download:t==="a"&&(this.download===""||this.download)?this.download: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?a:null,this.iconEnd?s:null))}async setFocus(){await os(this),this.childEl?.focus()}effectiveLocaleChange(){xi(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"],loading:["loadingChanged"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}}static get style(){return xG}},[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],hasLoader:[32],effectiveLocale:[32],defaultMessages:[32],tooltipText:[32],setFocus:[64]},void 0,{"aria-expanded":["handleGlobalAttributesChanged"],loading:["loadingChanged"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}]);Wv()});var kM={};ei(kM,{CalciteButton:()=>CG,defineCustomElement:()=>TG});var CG,TG,NM=P(()=>{AM();CG=Uv,TG=Wv});var EG,RM,DM=P(()=>{Dt();EG={validationContainer:"validation-container"},RM=({scale:e,status:t,icon:r,message:n})=>J("div",{class:EG.validationContainer},J("calcite-input-message",{icon:r,scale:e,status:t},n))});function ec(e,t,r,n){let i=r.toLowerCase(),o=e[r];n&&o!=null?t.setAttribute(i,`${o}`):t.removeAttribute(i)}function OM(e,t,r){r.type=e==="textarea"?"text":e;let n=MG.includes(e),i=t;ec(i,r,"min",n),ec(i,r,"max",n),ec(i,r,"step",n);let o=LG.includes(e),s=t;ec(s,r,"minLength",o),ec(s,r,"maxLength",o);let a=PG.includes(e);ec(s,r,"pattern",a)}var MG,PG,LG,$M=P(()=>{MG=["date","datetime-local","month","number","range","time","week"],PG=["email","password","search","tel","text","url"],LG=["email","password","search","tel","text","textarea","url"]});function zv(){if(typeof customElements>"u")return;["calcite-input-message","calcite-icon"].forEach(t=>{switch(t){case"calcite-input-message":customElements.get(t)||customElements.define(t,kG);break;case"calcite-icon":customElements.get(t)||Yn();break}})}var FM,IG,AG,kG,VM=P(()=>{Dt();sn();Kl();FM={valid:"check-circle",invalid:"exclamation-mark-triangle",idle:"information"},IG=":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}",AG=IG,kG=Nt(class extends Rt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.icon=void 0,this.iconFlipRtl=!1,this.scale="m",this.status="idle"}handleIconEl(){this.requestedIcon=Xi(FM,this.icon,this.status)}connectedCallback(){this.requestedIcon=Xi(FM,this.icon,this.status)}render(){let t=this.el.hidden;return J(on,{key:"f7008c19417cc42c784a3f71f811e7ea497398e4","calcite-hydrated-hidden":t},this.renderIcon(this.requestedIcon),J("slot",{key:"2f15a032a0a51dc475c09fa24ad9789d5d55e49e"}))}renderIcon(t){if(t)return J("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 AG}},[1,"calcite-input-message",{icon:[520],iconFlipRtl:[516,"icon-flip-rtl"],scale:[513],status:[513]},void 0,{status:["handleIconEl"],icon:["handleIconEl"]}]);zv()});function Gv(){if(typeof customElements>"u")return;["calcite-progress"].forEach(t=>{switch(t){case"calcite-progress":customElements.get(t)||customElements.define(t,DG);break}})}var NG,RG,DG,UM=P(()=>{Dt();sn();vd();NG=":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:var(--calcite-color-border-3)}.bar{z-index:var(--calcite-z-index);background-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-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}",RG=NG,DG=Nt(class extends Rt{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=Yl(this.el);return J("div",{key:"c86314688985d7c85e033a0115d0a074f7a6107b","aria-label":this.label||this.text,"aria-valuemax":1,"aria-valuemin":0,"aria-valuenow":this.value,role:"progressbar"},J("div",{key:"67cbdc62121dcc98469f4f087b0875bb81b205a1",class:"track"},J("div",{key:"e2a222f91f461296ce3909cf4b1c711452258d91",class:{bar:!0,indeterminate:this.type==="indeterminate",[_d.rtl]:n==="rtl",reversed:this.reversed},style:r})),this.text?J("div",{class:"text"},this.text):null)}get el(){return this}static get style(){return RG}},[1,"calcite-progress",{type:[513],value:[2],label:[1],text:[1],reversed:[516]}]);Gv()});function qv(){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,Bv);break;case"calcite-icon":customElements.get(t)||Yn();break;case"calcite-input-message":customElements.get(t)||zv();break;case"calcite-progress":customElements.get(t)||Gv();break}})}var Mr,WM,OG,$G,FG,Bv,zM=P(()=>{Dt();sn();Av();Nv();Rv();hg();kd();ha();ss();vd();Ql();pa();DM();$M();Kl();VM();UM();Mr={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"},WM={tel:"phone",password:"lock",email:"email-address",date:"calendar",time:"clock",search:"search"},OG={action:"action"},$G=`: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(
|
|
41
|
+
-2px *
|
|
42
|
+
calc(
|
|
43
|
+
1 -
|
|
44
|
+
2 * clamp(
|
|
45
|
+
0,
|
|
46
|
+
var(--calcite-offset-invert-focus),
|
|
47
|
+
1
|
|
48
|
+
)
|
|
49
|
+
)
|
|
50
|
+
)}:host([status=invalid]) input,:host([status=invalid]) textarea{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) input:focus,:host([status=invalid]) textarea:focus{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(
|
|
51
|
+
-2px *
|
|
52
|
+
calc(
|
|
53
|
+
1 -
|
|
54
|
+
2 * clamp(
|
|
55
|
+
0,
|
|
56
|
+
var(--calcite-offset-invert-focus),
|
|
57
|
+
1
|
|
58
|
+
)
|
|
59
|
+
)
|
|
60
|
+
)}:host([scale=s]) .icon{inset-inline-start:0.5rem}:host([scale=m]) .icon{inset-inline-start:0.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{padding-inline-start:2rem}:host([icon][scale=m]) input{padding-inline-start:2.5rem}:host([icon][scale=l]) input{padding-inline-start:3.5rem}.element-wrapper{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center}.icon{pointer-events:none;position:absolute;display:block;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}.icon,.resize-icon-wrapper{z-index:var(--calcite-z-index)}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;block-size:0px;inline-size:0px}input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration,input[type=date]::-webkit-clear-button,input[type=time]::-webkit-clear-button{display:none}.clear-button{pointer-events:initial;order:4;margin:0px;box-sizing:border-box;display:flex;min-block-size:100%;cursor:pointer;align-items:center;justify-content:center;align-self:stretch;border-width:1px;border-style:solid;border-color:var(--calcite-color-border-input);background-color:var(--calcite-color-foreground-1);outline-color:transparent;border-inline-start-width:0px}.clear-button:hover{background-color:var(--calcite-color-foreground-2);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}.clear-button:hover calcite-icon{color:var(--calcite-color-text-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}.clear-button:active{background-color:var(--calcite-color-foreground-3)}.clear-button:active calcite-icon{color:var(--calcite-color-text-1)}.clear-button:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(
|
|
61
|
+
-2px *
|
|
62
|
+
calc(
|
|
63
|
+
1 -
|
|
64
|
+
2 * clamp(
|
|
65
|
+
0,
|
|
66
|
+
var(--calcite-offset-invert-focus),
|
|
67
|
+
1
|
|
68
|
+
)
|
|
69
|
+
)
|
|
70
|
+
)}.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}.suffix{order:5;border-inline-start-width:0px}: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}`,FG=$G,Bv=Nt(class extends Rt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteInternalInputFocus=mr(this,"calciteInternalInputFocus",6),this.calciteInternalInputBlur=mr(this,"calciteInternalInputBlur",6),this.calciteInputInput=mr(this,"calciteInputInput",7),this.calciteInputChange=mr(this,"calciteInputChange",6),this.childElType="input",this.previousValueOrigin="initial",this.mutationObserver=Tr("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"&&sg(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=Ji(this.el,"action");t.target!==r&&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;Zn.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};let n=Zn.delocalize(r);t.inputType==="insertFromPaste"?(Hn(n)||t.preventDefault(),this.setValue({nativeEvent:t,origin:"user",value:yM(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=[...Nd,"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}Zn.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},!(t.key===Zn.decimal&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.indexOf(Zn.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(!ZE(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"){Zn.numberFormatOptions={locale:this.effectiveLocale,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator,signDisplay:"never"};let s=this.previousValue?.length>o.length||this.value?.length>o.length,a=o.charAt(o.length-1)===".",u=a&&s?o:_M(o),d=o&&!u?Hn(this.previousValue)?this.previousValue:"":u,f=Zn.localize(d);n!=="connected"&&!a&&(f=vM(f,d,Zn)),this.displayedValue=a&&s?`${f}${Zn.decimal}`:f,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"?Zn.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(){ts(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"?Hn(t)?t:this.previousValue||"":t}),this.warnAboutInvalidNumberValue(t)}this.userChangedValue=!1}updateRequestedIcon(){this.requestedIcon=Xi(WM,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(){xi(this,this.effectiveLocale)}connectedCallback(){ug(this),_i(this),Ci(this),this.inlineEditableEl=this.el.closest("calcite-inline-editable"),this.inlineEditableEl&&(this.editingEnabled=this.inlineEditableEl.editingEnabled||!1),Xl(this),tM(this),this.mutationObserver?.observe(this.el,{childList:!0}),this.setDisabledAction(),this.el.addEventListener(ag,this.onHiddenFormInputInput)}disconnectedCallback(){dg(this),mg(this),rM(this),vi(this),Ti(this),this.mutationObserver?.disconnect(),this.el.removeEventListener(ag,this.onHiddenFormInputInput)}async componentWillLoad(){ns(this),this.childElType=this.type==="textarea"?"textarea":"input",this.maxString=this.max?.toString(),this.minString=this.min?.toString(),this.requestedIcon=Xi(WM,this.icon,this.type),await Si(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:Hn(this.value)?this.value:""})))}componentDidLoad(){is(this)}componentShouldUpdate(t,r,n){return this.type==="number"&&n==="value"&&t&&!Hn(t)?(this.setValue({origin:"reset",value:r}),!1):!0}componentDidRender(){cg(this)}async setFocus(){await os(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,a=this.step==="any"?1:Math.abs(this.step||1),d=new Er(o!==""?o:"0").add(`${a*s}`),f=()=>typeof n=="number"&&!isNaN(n)&&d.subtract(`${n}`).isNegative,m=()=>typeof r=="number"&&!isNaN(r)&&!d.subtract(`${r}`).isNegative,w=f()?`${n}`:m()?`${r}`:d.toString();this.setValue({committing:!0,nativeEvent:i,origin:"user",value:w})}syncHiddenFormInput(t){OM(this.type,this,t)}setDisabledAction(){let t=Ji(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"?Hn(t)?t:"":t}warnAboutInvalidNumberValue(t){this.type==="number"&&t&&!Hn(t)&&console.warn(`The specified value "${t}" cannot be parsed, or is out of range.`)}render(){let t=Yl(this.el),r=J("div",{key:"599833d3f1a495f7d8e40cdfad2c09ee122c84e7",class:Mr.loader},J("calcite-progress",{key:"50ad81fdf660667bcb55fbb0abeadeb7b8e24ade",label:this.messages.loading,type:"indeterminate"})),n=J("button",{key:"81d0f8aee2853fc3360e1ae4a78afdcca481a413","aria-label":this.messages.clear,class:Mr.clearButton,disabled:this.disabled||this.readOnly,onClick:this.clearInputValue,tabIndex:-1,type:"button"},J("calcite-icon",{key:"6f740ebf49a2c8c094f12c8e38e5b10c6c5aae0a",icon:"x",scale:Zr(this.scale)})),i=J("calcite-icon",{key:"5ea5b4a12b81f8bb6ca796b8aaa95f4505b878dc",class:Mr.inputIcon,flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:Zr(this.scale)}),o=this.numberButtonType==="horizontal",s=J("button",{key:"cc50d1314f7ea7a5f8f20d7131c8e01674d4e39e","aria-hidden":"true",class:{[Mr.numberButtonItem]:!0,[Mr.buttonItemHorizontal]:o},"data-adjustment":"up",disabled:this.disabled||this.readOnly,onPointerDown:this.numberButtonPointerDownHandler,onPointerOut:this.numberButtonPointerUpAndOutHandler,onPointerUp:this.numberButtonPointerUpAndOutHandler,tabIndex:-1,type:"button"},J("calcite-icon",{key:"9ba3a8a2ef9e1d399943c25742f859b8b077738c",icon:"chevron-up",scale:Zr(this.scale)})),a=J("button",{key:"24488ad87ca61fa5c7d42c268ea633025dabbd45","aria-hidden":"true",class:{[Mr.numberButtonItem]:!0,[Mr.buttonItemHorizontal]:o},"data-adjustment":"down",disabled:this.disabled||this.readOnly,onPointerDown:this.numberButtonPointerDownHandler,onPointerOut:this.numberButtonPointerUpAndOutHandler,onPointerUp:this.numberButtonPointerUpAndOutHandler,tabIndex:-1,type:"button"},J("calcite-icon",{key:"ede8f373d9c150654edd8ea1464f54437f508b7d",icon:"chevron-down",scale:Zr(this.scale)})),u=J("div",{key:"caaefff0ff0d8c240a900b62a7dede9d285dd88e",class:Mr.numberButtonWrapper},s,a),d=J("div",{key:"8bc496fa2a6474b6febab6abd5eab1c0eaa7fa54",class:Mr.prefix},this.prefixText),f=J("div",{key:"ef6ea4800c799ca1884b50f75adc51932b16d892",class:Mr.suffix},this.suffixText),m=this.el.autofocus||this.el.hasAttribute("autofocus")?!0:null,w=this.el.enterKeyHint||this.el.getAttribute("enterkeyhint"),_=this.el.inputMode||this.el.getAttribute("inputmode"),S=this.type==="number"?J("input",{accept:this.accept,"aria-label":Ad(this),autocomplete:this.autocomplete,autofocus:m,defaultValue:this.defaultValue,disabled:this.disabled?!0:null,enterKeyHint:w,inputMode:_,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,C=this.type!=="number"?[J(this.childElType,{accept:this.accept,"aria-label":Ad(this),autocomplete:this.autocomplete,autofocus:m,class:{[Mr.editingEnabled]:this.editingEnabled,[Mr.inlineChild]:!!this.inlineEditableEl},defaultValue:this.defaultValue,disabled:this.disabled?!0:null,enterKeyHint:w,inputMode:_,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?J("div",{class:Mr.resizeIconWrapper},J("calcite-icon",{icon:"chevron-down",scale:Zr(this.scale)})):null]:null;return J(on,{key:"35b2cf8cf5a44addeacbb83d534b50dbabd44cda",onClick:this.clickHandler,onKeyDown:this.keyDownHandler},J(fg,{key:"da59535187da349eadb86a44dedf8b3bc643ac75",disabled:this.disabled},J("div",{key:"abe41a00af024f1ef06d12b4c35e35307918fcb7",class:{[Mr.inputWrapper]:!0,[_d.rtl]:t==="rtl"}},this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?a:null,this.prefixText?d:null,J("div",{key:"04186a21eb812b6405aba43c7fd173d828ea4e1c",class:Mr.wrapper},S,C,this.isClearable?n:null,this.requestedIcon?i:null,this.loading?r:null),J("div",{key:"11954db36cefe99687f449ef1f914e2868f74519",class:Mr.actionWrapper},J("slot",{key:"c292d324afa35e170e5e235186e4ff268746b0c6",name:OG.action})),this.type==="number"&&this.numberButtonType==="vertical"&&!this.readOnly?u:null,this.suffixText?f:null,this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?s:null,J(iM,{key:"820c285afeca160d0f19a7974e7e401f31ecb8ad",component:this})),this.validationMessage&&this.status==="invalid"?J(RM,{icon:this.validationIcon,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 FG}},[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"]}]);qv()});var GM={};ei(GM,{CalciteInput:()=>VG,defineCustomElement:()=>UG});var VG,UG,BM=P(()=>{zM();VG=Bv,UG=qv});function Hv(){if(typeof customElements>"u")return;["calcite-label"].forEach(t=>{switch(t){case"calcite-label":customElements.get(t)||customElements.define(t,jv);break}})}var WG,zG,GG,jv,qM=P(()=>{Dt();hg();WG={container:"container"},zG=":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}",GG=zG,jv=Nt(class extends Rt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteInternalLabelClick=mr(this,"calciteInternalLabelClick",2),this.labelClickHandler=t=>{this.calciteInternalLabelClick.emit({sourceEvent:t})},this.alignment="start",this.for=void 0,this.scale="m",this.layout="default"}handleForChange(){gM(this.el)}connectedCallback(){document.dispatchEvent(new CustomEvent(Id))}disconnectedCallback(){document.dispatchEvent(new CustomEvent(Pd))}render(){return J(on,{key:"6a8bf489a2e99059115391eebcfcd3ac60a15f84",onClick:this.labelClickHandler},J("div",{key:"3a690f256f850829107789b0560c0789a8578e09",class:WG.container},J("slot",{key:"ebb67d2ba5254b87058c5bf45edc2d6299da00e7"})))}get el(){return this}static get watchers(){return{for:["handleForChange"]}}static get style(){return GG}},[1,"calcite-label",{alignment:[513],for:[513],scale:[513],layout:[513]},void 0,{for:["handleForChange"]}]);Hv()});var jM={};ei(jM,{CalciteLabel:()=>BG,defineCustomElement:()=>qG});var BG,qG,HM=P(()=>{qM();BG=jv,qG=Hv});function _g(e){bg||(bg=Tr("mutation",HG)),bg.observe(e.el,jG)}function vg(e){bg.unobserve(e.el)}function HG(e){e.forEach(({target:t})=>{ts(t)})}var bg,jG,Zv=P(()=>{Dt();ss();jG={childList:!0}});function ZM(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 YM(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZM(Object(r),!0).forEach(function(n){ZG(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZM(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function ZG(e,t,r){return t=JG(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function YG(e,t){if(typeof e!="object"||e===null)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 JG(e){var t=YG(e,"string");return typeof t=="symbol"?t:String(t)}function KM(e,t){let{el:r}=e,n=t?.focusTrapEl||r;if(!n)return;let i={clickOutsideDeactivates:!0,escapeDeactivates:!1,fallbackFocus:n,setReturnFocus:o=>(BE(o),!1),...t?.focusTrapOptions,document:r.ownerDocument,tabbableOptions:Cv,trapStack:iB};e.focusTrap=rB(n,i)}function Yv(e,t){e.focusTrapDisabled||e.focusTrap?.activate(t)}function xg(e,t){e.focusTrap?.deactivate(t)}function eP(e){e.focusTrap?.updateContainerElements(e.el)}var JM,XG,QG,Od,KG,eB,XM,QM,Dd,Sg,tB,rB,nB,iB,tP=P(()=>{sn();JM={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()}},XG=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},QG=function(t){return t?.key==="Escape"||t?.key==="Esc"||t?.keyCode===27},Od=function(t){return t?.key==="Tab"||t?.keyCode===9},KG=function(t){return Od(t)&&!t.shiftKey},eB=function(t){return Od(t)&&t.shiftKey},XM=function(t){return setTimeout(t,0)},QM=function(t,r){var n=-1;return t.every(function(i,o){return r(i)?(n=o,!1):!0}),n},Dd=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},Sg=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},tB=[],rB=function(t,r){var n=r?.document||document,i=r?.trapStack||tB,o=YM({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:KG,isKeyBackward:eB},r),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},a,u=function(G,D,B){return G&&G[D]!==void 0?G[D]:o[B||D]},d=function(G,D){var B=typeof D?.composedPath=="function"?D.composedPath():void 0;return s.containerGroups.findIndex(function(K){var Q=K.container,se=K.tabbableNodes;return Q.contains(G)||B?.includes(Q)||se.find(function(de){return de===G})})},f=function(G){var D=o[G];if(typeof D=="function"){for(var B=arguments.length,K=new Array(B>1?B-1:0),Q=1;Q<B;Q++)K[Q-1]=arguments[Q];D=D.apply(void 0,K)}if(D===!0&&(D=void 0),!D){if(D===void 0||D===!1)return D;throw new Error("`".concat(G,"` was specified but was not a node, or did not return a node"))}var se=D;if(typeof D=="string"&&(se=n.querySelector(D),!se))throw new Error("`".concat(G,"` as selector refers to no known node"));return se},m=function(){var G=f("initialFocus");if(G===!1)return!1;if(G===void 0||!rg(G,o.tabbableOptions))if(d(n.activeElement)>=0)G=n.activeElement;else{var D=s.tabbableGroups[0],B=D&&D.firstTabbableNode;G=B||f("fallbackFocus")}if(!G)throw new Error("Your focus-trap needs to have at least one focusable element");return G},w=function(){if(s.containerGroups=s.containers.map(function(G){var D=xv(G,o.tabbableOptions),B=VE(G,o.tabbableOptions),K=D.length>0?D[0]:void 0,Q=D.length>0?D[D.length-1]:void 0,se=B.find(function(Pe){return ua(Pe)}),de=B.slice().reverse().find(function(Pe){return ua(Pe)}),we=!!D.find(function(Pe){return rs(Pe)>0});return{container:G,tabbableNodes:D,focusableNodes:B,posTabIndexesFound:we,firstTabbableNode:K,lastTabbableNode:Q,firstDomTabbableNode:se,lastDomTabbableNode:de,nextTabbableNode:function(Ke){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,xt=D.indexOf(Ke);return xt<0?Ft?B.slice(B.indexOf(Ke)+1).find(function(ar){return ua(ar)}):B.slice(0,B.indexOf(Ke)).reverse().find(function(ar){return ua(ar)}):D[xt+(Ft?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(G){return G.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!f("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(G){return G.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.")},_=function ue(G){var D=G.activeElement;if(D)return D.shadowRoot&&D.shadowRoot.activeElement!==null?ue(D.shadowRoot):D},S=function ue(G){if(G!==!1&&G!==_(document)){if(!G||!G.focus){ue(m());return}G.focus({preventScroll:!!o.preventScroll}),s.mostRecentlyFocusedNode=G,XG(G)&&G.select()}},C=function(G){var D=f("setReturnFocus",G);return D||(D===!1?!1:G)},M=function(G){var D=G.target,B=G.event,K=G.isBackward,Q=K===void 0?!1:K;D=D||Sg(B),w();var se=null;if(s.tabbableGroups.length>0){var de=d(D,B),we=de>=0?s.containerGroups[de]:void 0;if(de<0)Q?se=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:se=s.tabbableGroups[0].firstTabbableNode;else if(Q){var Pe=QM(s.tabbableGroups,function(yr){var dn=yr.firstTabbableNode;return D===dn});if(Pe<0&&(we.container===D||rg(D,o.tabbableOptions)&&!ua(D,o.tabbableOptions)&&!we.nextTabbableNode(D,!1))&&(Pe=de),Pe>=0){var Ke=Pe===0?s.tabbableGroups.length-1:Pe-1,Ft=s.tabbableGroups[Ke];se=rs(D)>=0?Ft.lastTabbableNode:Ft.lastDomTabbableNode}else Od(B)||(se=we.nextTabbableNode(D,!1))}else{var xt=QM(s.tabbableGroups,function(yr){var dn=yr.lastTabbableNode;return D===dn});if(xt<0&&(we.container===D||rg(D,o.tabbableOptions)&&!ua(D,o.tabbableOptions)&&!we.nextTabbableNode(D))&&(xt=de),xt>=0){var ar=xt===s.tabbableGroups.length-1?0:xt+1,ki=s.tabbableGroups[ar];se=rs(D)>=0?ki.firstTabbableNode:ki.firstDomTabbableNode}else Od(B)||(se=we.nextTabbableNode(D))}}else se=f("fallbackFocus");return se},N=function(G){var D=Sg(G);if(!(d(D,G)>=0)){if(Dd(o.clickOutsideDeactivates,G)){a.deactivate({returnFocus:o.returnFocusOnDeactivate});return}Dd(o.allowOutsideClick,G)||G.preventDefault()}},L=function(G){var D=Sg(G),B=d(D,G)>=0;if(B||D instanceof Document)B&&(s.mostRecentlyFocusedNode=D);else{G.stopImmediatePropagation();var K,Q=!0;if(s.mostRecentlyFocusedNode)if(rs(s.mostRecentlyFocusedNode)>0){var se=d(s.mostRecentlyFocusedNode),de=s.containerGroups[se].tabbableNodes;if(de.length>0){var we=de.findIndex(function(Pe){return Pe===s.mostRecentlyFocusedNode});we>=0&&(o.isKeyForward(s.recentNavEvent)?we+1<de.length&&(K=de[we+1],Q=!1):we-1>=0&&(K=de[we-1],Q=!1))}}else s.containerGroups.some(function(Pe){return Pe.tabbableNodes.some(function(Ke){return rs(Ke)>0})})||(Q=!1);else Q=!1;Q&&(K=M({target:s.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(s.recentNavEvent)})),S(K||s.mostRecentlyFocusedNode||m())}s.recentNavEvent=void 0},k=function(G){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=G;var B=M({event:G,isBackward:D});B&&(Od(G)&&G.preventDefault(),S(B))},W=function(G){if(QG(G)&&Dd(o.escapeDeactivates,G)!==!1){G.preventDefault(),a.deactivate();return}(o.isKeyForward(G)||o.isKeyBackward(G))&&k(G,o.isKeyBackward(G))},Z=function(G){var D=Sg(G);d(D,G)>=0||Dd(o.clickOutsideDeactivates,G)||Dd(o.allowOutsideClick,G)||(G.preventDefault(),G.stopImmediatePropagation())},ee=function(){if(s.active)return JM.activateTrap(i,a),s.delayInitialFocusTimer=o.delayInitialFocus?XM(function(){S(m())}):S(m()),n.addEventListener("focusin",L,!0),n.addEventListener("mousedown",N,{capture:!0,passive:!1}),n.addEventListener("touchstart",N,{capture:!0,passive:!1}),n.addEventListener("click",Z,{capture:!0,passive:!1}),n.addEventListener("keydown",W,{capture:!0,passive:!1}),a},ne=function(){if(s.active)return n.removeEventListener("focusin",L,!0),n.removeEventListener("mousedown",N,!0),n.removeEventListener("touchstart",N,!0),n.removeEventListener("click",Z,!0),n.removeEventListener("keydown",W,!0),a},te=function(G){var D=G.some(function(B){var K=Array.from(B.removedNodes);return K.some(function(Q){return Q===s.mostRecentlyFocusedNode})});D&&S(m())},pe=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(te):void 0,ge=function(){pe&&(pe.disconnect(),s.active&&!s.paused&&s.containers.map(function(G){pe.observe(G,{subtree:!0,childList:!0})}))};return a={get active(){return s.active},get paused(){return s.paused},activate:function(G){if(s.active)return this;var D=u(G,"onActivate"),B=u(G,"onPostActivate"),K=u(G,"checkCanFocusTrap");K||w(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=n.activeElement,D?.();var Q=function(){K&&w(),ee(),ge(),B?.()};return K?(K(s.containers.concat()).then(Q,Q),this):(Q(),this)},deactivate:function(G){if(!s.active)return this;var D=YM({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},G);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,ne(),s.active=!1,s.paused=!1,ge(),JM.deactivateTrap(i,a);var B=u(D,"onDeactivate"),K=u(D,"onPostDeactivate"),Q=u(D,"checkCanReturnFocus"),se=u(D,"returnFocus","returnFocusOnDeactivate");B?.();var de=function(){XM(function(){se&&S(C(s.nodeFocusedBeforeActivation)),K?.()})};return se&&Q?(Q(C(s.nodeFocusedBeforeActivation)).then(de,de),this):(de(),this)},pause:function(G){if(s.paused||!s.active)return this;var D=u(G,"onPause"),B=u(G,"onPostPause");return s.paused=!0,D?.(),ne(),ge(),B?.(),this},unpause:function(G){if(!s.paused||!s.active)return this;var D=u(G,"onUnpause"),B=u(G,"onPostUnpause");return s.paused=!1,D?.(),w(),ee(),ge(),B?.(),this},updateContainerElements:function(G){var D=[].concat(G).filter(Boolean);return s.containers=D.map(function(B){return typeof B=="string"?n.querySelector(B):B}),s.active&&w(),ge(),this}},a.updateContainerElements(t),a},nB=globalThis.calciteConfig,iB=nB?.focusTrapStack||[]});function Cg(e){return"opened"in e?e.opened:e.open}function rP(e,t=!1){(t?e[e.transitionProp]:Cg(e))?e.onBeforeOpen():e.onBeforeClose(),(t?e[e.transitionProp]:Cg(e))?e.onOpen():e.onClose()}function $d(e,t=!1){pE(()=>{if(!e.transitionEl)return;let{transitionDuration:r,transitionProperty:n}=getComputedStyle(e.transitionEl),i=r.split(","),s=n.split(",").indexOf(e.openTransitionProp),a=i[s]??i[0];if(a==="0s"){rP(e,t);return}let u=setTimeout(()=>{e.transitionEl.removeEventListener("transitionstart",d),e.transitionEl.removeEventListener("transitionend",f),e.transitionEl.removeEventListener("transitioncancel",f),rP(e,t)},parseFloat(a)*1e3);e.transitionEl.addEventListener("transitionstart",d),e.transitionEl.addEventListener("transitionend",f),e.transitionEl.addEventListener("transitioncancel",f);function d(m){m.propertyName===e.openTransitionProp&&m.target===e.transitionEl&&(clearTimeout(u),e.transitionEl.removeEventListener("transitionstart",d),(t?e[e.transitionProp]:Cg(e))?e.onBeforeOpen():e.onBeforeClose())}function f(m){m.propertyName===e.openTransitionProp&&m.target===e.transitionEl&&((t?e[e.transitionProp]:Cg(e))?e.onOpen():e.onClose(),e.transitionEl.removeEventListener("transitionend",f),e.transitionEl.removeEventListener("transitioncancel",f))}})}var Jv=P(()=>{Dt();});function Xv(){if(typeof customElements>"u")return;["calcite-scrim","calcite-loader"].forEach(t=>{switch(t){case"calcite-scrim":customElements.get(t)||customElements.define(t,aB);break;case"calcite-loader":customElements.get(t)||ga();break}})}var nP,iP,oB,sB,aB,oP=P(()=>{Dt();ha();Ql();ss();sn();yg();nP={scrim:"scrim",content:"content"},iP={s:72,l:480},oB=":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}",sB=oB,aB=Nt(class extends Rt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.resizeObserver=Tr("resize",()=>this.handleResize()),this.handleDefaultSlotChange=t=>{this.hasContent=HE(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(){xi(this,this.effectiveLocale)}connectedCallback(){_i(this),Ci(this),this.resizeObserver?.observe(this.el)}async componentWillLoad(){await Si(this)}disconnectedCallback(){vi(this),Ti(this),this.resizeObserver?.disconnect()}render(){let{hasContent:t,loading:r,messages:n}=this;return J("div",{key:"8da71202fdcfc4d149c91d99870c2be6254baecd",class:nP.scrim},r?J("calcite-loader",{label:n.loading,ref:this.storeLoaderEl,scale:this.loaderScale}):null,J("div",{key:"893fff6ab8f12415f79cc1a51831029a25215523",class:nP.content,hidden:!t},J("slot",{key:"08f17320892c630d53a80f5853299f4d7cc72a7e",onSlotchange:this.handleDefaultSlotChange})))}getScale(t){return t<iP.s?"s":t>=iP.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 sB}},[1,"calcite-scrim",{loading:[516],messages:[1040],messageOverrides:[1040],loaderScale:[32],defaultMessages:[32],effectiveLocale:[32],hasContent:[32]},void 0,{messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"]}]);Xv()});var cP={};ei(cP,{CalciteModal:()=>dB,defineCustomElement:()=>fB});function lP(){if(typeof customElements>"u")return;["calcite-modal","calcite-icon","calcite-loader","calcite-scrim"].forEach(t=>{switch(t){case"calcite-modal":customElements.get(t)||customElements.define(t,aP);break;case"calcite-icon":customElements.get(t)||Yn();break;case"calcite-loader":customElements.get(t)||ga();break;case"calcite-scrim":customElements.get(t)||Xv();break}})}var Ye,lB,Jn,cB,uB,Qv,sP,aP,dB,fB,uP=P(()=>{Dt();Zv();sn();tP();kd();ss();Jv();ha();Ql();pa();Kl();yg();oP();Ye={modal:"modal",title:"title",header:"header",footer:"footer",scrim:"scrim",back:"back",close:"close",secondary:"secondary",primary:"primary",container:"container",containerOpen:"container--open",content:"content",contentNoFooter:"content--no-footer",contentBottom:"content-bottom",contentTop:"content-top",slottedInShell:"slotted-in-shell",openingIdle:"modal--opening-idle",openingActive:"modal--opening-active",closingIdle:"modal--closing-idle",closingActive:"modal--closing-active"},lB={close:"x"},Jn={content:"content",contentBottom:"content-bottom",contentTop:"content-top",header:"header",back:"back",secondary:"secondary",primary:"primary"},cB=`:host{--calcite-modal-scrim-background:rgba(0, 0, 0, 0.85);position:absolute;inset:0px;z-index:var(--calcite-z-index-overlay);display:flex;opacity:0;visibility:hidden !important;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);--calcite-modal-scrim-background-internal:rgba(0, 0, 0, 0.85)}.content-top[hidden],.content-bottom[hidden]{display:none}.container{position:fixed;inset:0px;z-index:var(--calcite-z-index-overlay);display:flex;align-items:center;justify-content:center;overflow-y:hidden;color:var(--calcite-color-text-2);opacity:0;visibility:hidden !important;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([scale=s]){--calcite-modal-padding-internal:0.75rem;--calcite-modal-padding-large-internal:1rem;--calcite-modal-title-text-internal:var(--calcite-font-size-1);--calcite-modal-content-text-internal:var(--calcite-font-size--1)}:host([scale=m]){--calcite-modal-padding-internal:1rem;--calcite-modal-padding-large-internal:1.25rem;--calcite-modal-title-text-internal:var(--calcite-font-size-2);--calcite-modal-content-text-internal:var(--calcite-font-size-0)}:host([scale=l]){--calcite-modal-padding-internal:1.25rem;--calcite-modal-padding-large-internal:1.5rem;--calcite-modal-title-text-internal:var(--calcite-font-size-3);--calcite-modal-content-text-internal:var(--calcite-font-size-1)}.scrim{--calcite-scrim-background:var(--calcite-modal-scrim-background, var(--calcite-color-transparent-scrim));position:fixed;inset:0px;display:flex;overflow-y:hidden}.modal{pointer-events:none;z-index:var(--calcite-z-index-modal);float:none;margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;overflow:hidden;border-radius:0.25rem;background-color:var(--calcite-color-foreground-1);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:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), 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);--calcite-modal-hidden-position:translate3d(0, 20px, 0);--calcite-modal-shown-position:translate3d(0, 0, 0)}.modal--opening-idle{transform:var(--calcite-modal-hidden-position)}.modal--opening-active{transform:var(--calcite-modal-shown-position)}.modal--closing-idle{transform:var(--calcite-modal-shown-position)}.modal--closing-active{transform:var(--calcite-modal-hidden-position)}:host([opened]){opacity:1;visibility:visible !important;transition-delay:0ms}.container--open{opacity:1;visibility:visible !important;transition-delay:0ms}.container--open .modal{pointer-events:auto;visibility:visible;opacity:1;transition:transform var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), visibility 0ms linear, opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-inline-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88), max-block-size var(--calcite-internal-animation-timing-slow) cubic-bezier(0.215, 0.44, 0.42, 0.88);transition-delay:0ms}.header{z-index:var(--calcite-z-index-header);display:flex;min-inline-size:0px;max-inline-size:100%;border-start-start-radius:0.25rem;border-start-end-radius:0.25rem;border-width:0px;border-block-end-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);flex:0 0 auto}.close{order:2;margin:0px;cursor:pointer;appearance:none;border-style:none;background-color:transparent;color:var(--calcite-color-text-3);outline-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;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-internal);flex:0 0 auto}.close calcite-icon{pointer-events:none;vertical-align:-2px}.close:focus{outline:2px solid var(--calcite-ui-focus-color, var(--calcite-color-brand));outline-offset:calc(
|
|
71
|
+
-2px *
|
|
72
|
+
calc(
|
|
73
|
+
1 -
|
|
74
|
+
2 * clamp(
|
|
75
|
+
0,
|
|
76
|
+
var(--calcite-offset-invert-focus),
|
|
77
|
+
1
|
|
78
|
+
)
|
|
79
|
+
)
|
|
80
|
+
)}.close:hover,.close:focus,.close:active{background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1)}.title{order:1;display:flex;min-inline-size:0px;align-items:center;flex:1 1 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}slot[name=header]::slotted(*),*::slotted([slot=header]){margin:0px;font-weight:var(--calcite-font-weight-normal);color:var(--calcite-color-text-1);font-size:var(--calcite-modal-title-text-internal)}.content{position:relative;box-sizing:border-box;display:block;block-size:100%;overflow:auto;padding:0px;background-color:var(--calcite-modal-content-background, var(--calcite-color-foreground-1));max-block-size:100%;padding:var(--calcite-modal-content-padding, var(--calcite-modal-padding-internal))}.content-top,.content-bottom{z-index:var(--calcite-z-index-header);display:flex;border-width:0px;border-style:solid;border-color:var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);flex:0 0 auto;padding:var(--calcite-modal-padding-internal)}.content-top{min-inline-size:0px;max-inline-size:100%;border-block-end-width:1px}.content-bottom{margin-block-start:auto;box-sizing:border-box;inline-size:100%;justify-content:space-between;border-block-start-width:1px}.content-top:not(.header~.content-top){border-start-start-radius:0.25rem;border-start-end-radius:0.25rem}.content-bottom:not(.content-bottom~.footer),.content--no-footer{border-end-end-radius:0.25rem;border-end-start-radius:0.25rem}slot[name=content]::slotted(*),*::slotted([slot=content]){font-size:var(--calcite-modal-context-text-internal)}.footer{z-index:var(--calcite-z-index-header);margin-block-start:auto;box-sizing:border-box;display:flex;inline-size:100%;justify-content:space-between;border-end-end-radius:0.25rem;border-end-start-radius:0.25rem;border-width:0px;border-block-start-width:1px;border-style:solid;border-color:var(--calcite-color-border-3);background-color:var(--calcite-color-foreground-1);flex:0 0 auto;padding-block:var(--calcite-modal-padding-internal);padding-inline:var(--calcite-modal-padding-large-internal)}.footer--hide-back .back,.footer--hide-secondary .secondary{display:none}.back{display:block;margin-inline-end:auto}.secondary{margin-inline:0.25rem;display:block}slot[name=primary]{display:block}:host([width=small]) .modal{inline-size:auto}:host([width-scale=s]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 32rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 35rem){:host([width-scale=s]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width-scale=s]) .content{flex:1 1 auto;max-block-size:unset}:host([width-scale=s][docked]) .container{align-items:flex-end}}:host([width-scale=m]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 48rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 51rem){:host([width-scale=m]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width-scale=m]) .content{flex:1 1 auto;max-block-size:unset}:host([width-scale=m][docked]) .container{align-items:flex-end}}:host([width-scale=l]) .modal{max-block-size:100%;max-inline-size:100%;inline-size:var(--calcite-modal-width, 94rem);block-size:var(--calcite-modal-height, auto)}@media screen and (max-width: 97rem){:host([width-scale=l]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%}:host([width-scale=l]) .content{flex:1 1 auto;max-block-size:unset}:host([width-scale=l][docked]) .container{align-items:flex-end}}:host([fullscreen]) .modal{margin:0px;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0px;--calcite-modal-hidden-position:translate3D(0, 20px, 0) scale(0.95);--calcite-modal-shown-position:translate3D(0, 0, 0) scale(1)}:host([fullscreen]) .content{max-block-size:100%;flex:1 1 auto}:host([opened][fullscreen]) .header,:host([opened][fullscreen]) .footer,:host([opened][fullscreen]) .content-top,:host([opened][fullscreen]) .content-bottom{border-radius:0}:host([docked]) .modal{block-size:var(--calcite-modal-height, auto)}:host([docked]) .content{block-size:auto;flex:1 1 auto}:host([kind=brand]) .modal{border-color:var(--calcite-color-brand)}:host([kind=danger]) .modal{border-color:var(--calcite-color-status-danger)}:host([kind=info]) .modal{border-color:var(--calcite-color-status-info)}:host([kind=success]) .modal{border-color:var(--calcite-color-status-success)}:host([kind=warning]) .modal{border-color:var(--calcite-color-status-warning)}:host([kind=brand]) .modal,:host([kind=danger]) .modal,:host([kind=info]) .modal,:host([kind=success]) .modal,:host([kind=warning]) .modal{border-width:0px;border-block-start-width:4px;border-style:solid}:host([kind=brand]) .header,:host([kind=brand]) .content-top,:host([kind=danger]) .header,:host([kind=danger]) .content-top,:host([kind=info]) .header,:host([kind=info]) .content-top,:host([kind=success]) .header,:host([kind=success]) .content-top,:host([kind=warning]) .header,:host([kind=warning]) .content-top{border-radius:0.25rem;border-end-end-radius:0px;border-end-start-radius:0px}@media screen and (max-width: 860px){* slot[name=header]::slotted(content-top),* content-top::slotted([slot=header]){font-size:var(--calcite-font-size-1)}.footer,.content-bottom{position:sticky;inset-block-end:0px}}@media screen and (max-width: 480px){.footer,.content-bottom{flex-direction:column}.back,.secondary{margin:0px;margin-block-end:0.25rem}}.container.slotted-in-shell{position:absolute;pointer-events:auto}.container.slotted-in-shell calcite-scrim{position:absolute}:host([hidden]){display:none}[hidden]{display:none}`,uB=cB,Qv=0,sP="",aP=Nt(class extends Rt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteModalBeforeClose=mr(this,"calciteModalBeforeClose",6),this.calciteModalClose=mr(this,"calciteModalClose",6),this.calciteModalBeforeOpen=mr(this,"calciteModalBeforeOpen",6),this.calciteModalOpen=mr(this,"calciteModalOpen",6),this.ignoreOpenChange=!1,this.mutationObserver=Tr("mutation",()=>this.handleMutationObserver()),this.cssVarObserver=Tr("mutation",()=>{this.updateSizeCssVars()}),this.openTransitionProp="opacity",this.setTransitionEl=t=>{this.transitionEl=t},this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteModalOpen",this.openEnd)},this.handleCloseClick=()=>{this.open=!1},this.handleOutsideClose=()=>{this.outsideCloseDisabled||(this.open=!1)},this.closeModal=async()=>{if(this.beforeClose)try{await this.beforeClose(this.el)}catch{requestAnimationFrame(()=>{this.ignoreOpenChange=!0,this.open=!0,this.ignoreOpenChange=!1});return}Qv--,this.opened=!1,this.removeOverflowHiddenClass()},this.handleMutationObserver=()=>{this.updateFooterVisibility(),this.updateFocusTrapElements()},this.updateFooterVisibility=()=>{this.hasFooter=!!Ji(this.el,[Jn.back,Jn.primary,Jn.secondary])},this.updateSizeCssVars=()=>{this.cssWidth=getComputedStyle(this.el).getPropertyValue("--calcite-modal-width"),this.cssHeight=getComputedStyle(this.el).getPropertyValue("--calcite-modal-height")},this.contentTopSlotChangeHandler=t=>{this.hasContentTop=og(t)},this.contentBottomSlotChangeHandler=t=>{this.hasContentBottom=og(t)},this.open=!1,this.opened=!1,this.beforeClose=void 0,this.closeButtonDisabled=!1,this.focusTrapDisabled=!1,this.outsideCloseDisabled=!1,this.docked=void 0,this.escapeDisabled=!1,this.scale="m",this.widthScale="m",this.fullscreen=void 0,this.kind=void 0,this.messages=void 0,this.messageOverrides=void 0,this.slottedInShell=void 0,this.cssWidth=void 0,this.cssHeight=void 0,this.hasFooter=!0,this.hasContentTop=!1,this.hasContentBottom=!1,this.effectiveLocale=void 0,this.defaultMessages=void 0}handleFocusTrapDisabled(t){this.open&&(t?xg(this):Yv(this))}onMessagesChange(){}async componentWillLoad(){await Si(this),ns(this),this.open&&this.openModal()}componentDidLoad(){is(this)}connectedCallback(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.cssVarObserver?.observe(this.el,{attributeFilter:["style"]}),this.updateSizeCssVars(),this.updateFooterVisibility(),_g(this),_i(this),Ci(this),KM(this)}disconnectedCallback(){this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),this.cssVarObserver?.disconnect(),vg(this),xg(this),vi(this),Ti(this),this.slottedInShell=!1}render(){return J(on,{key:"d1e018c6bd88b964c4708d93d9a8206bd708873a","aria-describedby":this.contentId,"aria-labelledby":this.titleId,"aria-modal":"true",role:"dialog"},J("div",{key:"9e49f29d18a2e73d8e27219fae8ce80a8aaa70a8",class:{[Ye.container]:!0,[Ye.containerOpen]:this.opened,[Ye.slottedInShell]:this.slottedInShell}},J("calcite-scrim",{key:"16ad63350946bfdc9d93e1de099c35ec4085923f",class:Ye.scrim,onClick:this.handleOutsideClose}),this.renderStyle(),J("div",{key:"6bc90f5591d025ab11b9e20460888a5c90079fc4",class:{[Ye.modal]:!0},ref:this.setTransitionEl},J("div",{key:"bb3c7cdcb9aeb984608faf5adc83aeecfb76236b",class:Ye.header},this.renderCloseButton(),J("header",{key:"4c90d6d66e1dfeffb967d14c95b84568be92846d",class:Ye.title},J("slot",{key:"547d39c10dd55af959d9c2595969ad205af4fdcc",name:Ye.header}))),this.renderContentTop(),J("div",{key:"fe344731d2dcde79ef625640f73b585ca278a158",class:{[Ye.content]:!0,[Ye.contentNoFooter]:!this.hasFooter},ref:t=>this.modalContent=t},J("slot",{key:"2fdbe6fa9a7c424e46db9bc00ad76e9cd8f1d242",name:Jn.content})),this.renderContentBottom(),this.renderFooter())))}renderFooter(){return this.hasFooter?J("div",{class:Ye.footer,key:"footer"},J("span",{class:Ye.back},J("slot",{name:Jn.back})),J("span",{class:Ye.secondary},J("slot",{name:Jn.secondary})),J("span",{class:Ye.primary},J("slot",{name:Jn.primary}))):null}renderContentTop(){return J("div",{class:Ye.contentTop,hidden:!this.hasContentTop},J("slot",{name:Jn.contentTop,onSlotchange:this.contentTopSlotChangeHandler}))}renderContentBottom(){return J("div",{class:Ye.contentBottom,hidden:!this.hasContentBottom},J("slot",{name:Jn.contentBottom,onSlotchange:this.contentBottomSlotChangeHandler}))}renderCloseButton(){return this.closeButtonDisabled?null:J("button",{"aria-label":this.messages.close,class:Ye.close,key:"button",onClick:this.handleCloseClick,ref:t=>this.closeButtonEl=t,title:this.messages.close},J("calcite-icon",{icon:lB.close,scale:Zr(this.scale)}))}renderStyle(){if(!this.fullscreen&&(this.cssWidth||this.cssHeight))return J("style",null,`.${Ye.container} {
|
|
81
|
+
${this.docked&&this.cssWidth?"align-items: center !important;":""}
|
|
82
|
+
}
|
|
83
|
+
.${Ye.modal} {
|
|
84
|
+
block-size: ${this.cssHeight?this.cssHeight:"auto"} !important;
|
|
85
|
+
${this.cssWidth?`inline-size: ${this.cssWidth} !important;`:""}
|
|
86
|
+
${this.cssWidth?`max-inline-size: ${this.cssWidth} !important;`:""}
|
|
87
|
+
${this.docked?"border-radius: var(--calcite-border-radius) !important;":""}
|
|
88
|
+
}
|
|
89
|
+
@media screen and (max-width: ${this.cssWidth}) {
|
|
90
|
+
.${Ye.container} {
|
|
91
|
+
${this.docked?"align-items: flex-end !important;":""}
|
|
92
|
+
}
|
|
93
|
+
.${Ye.modal} {
|
|
94
|
+
max-block-size: 100% !important;
|
|
95
|
+
inline-size: 100% !important;
|
|
96
|
+
max-inline-size: 100% !important;
|
|
97
|
+
min-inline-size: 100% !important;
|
|
98
|
+
margin: 0 !important;
|
|
99
|
+
${this.docked?"":"block-size: 100% !important;"}
|
|
100
|
+
${this.docked?"":"border-radius: 0 !important;"}
|
|
101
|
+
${this.docked?"border-radius: var(--calcite-border-radius) var(--calcite-border-radius) 0 0 !important;":""}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
`)}effectiveLocaleChange(){xi(this,this.effectiveLocale)}handleEscape(t){this.open&&!this.escapeDisabled&&t.key==="Escape"&&!t.defaultPrevented&&(this.open=!1,t.preventDefault())}async setFocus(){await os(this),qE(this.el)}async updateFocusTrapElements(){eP(this)}async scrollContent(t=0,r=0){this.modalContent&&(this.modalContent.scrollTo?this.modalContent.scrollTo({top:t,left:r,behavior:"smooth"}):(this.modalContent.scrollTop=t,this.modalContent.scrollLeft=r))}onBeforeOpen(){this.transitionEl.classList.add(Ye.openingActive),this.calciteModalBeforeOpen.emit()}onOpen(){this.transitionEl.classList.remove(Ye.openingIdle,Ye.openingActive),this.calciteModalOpen.emit(),Yv(this)}onBeforeClose(){this.transitionEl.classList.add(Ye.closingActive),this.calciteModalBeforeClose.emit()}onClose(){this.transitionEl.classList.remove(Ye.closingIdle,Ye.closingActive),this.calciteModalClose.emit(),xg(this)}toggleModal(t){this.ignoreOpenChange||(t?this.openModal():this.closeModal())}handleOpenedChange(t){let r=t?Ye.openingIdle:Ye.closingIdle;this.transitionEl.classList.add(r),$d(this)}async openModal(){await Ed(this.el),this.el.addEventListener("calciteModalOpen",this.openEnd),this.opened=!0;let t=Ji(this.el,Jn.header),r=Ji(this.el,Jn.content);this.titleId=Tv(t),this.contentId=Tv(r),this.slottedInShell||(Qv===0&&(sP=document.documentElement.style.overflow),Qv++,document.documentElement.style.setProperty("overflow","hidden"))}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",sP)}static get assetsDirs(){return["assets"]}get el(){return this}static get watchers(){return{focusTrapDisabled:["handleFocusTrapDisabled"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"],open:["toggleModal"],opened:["handleOpenedChange"]}}static get style(){return uB}},[1,"calcite-modal",{open:[1540],opened:[1540],beforeClose:[16],closeButtonDisabled:[516,"close-button-disabled"],focusTrapDisabled:[516,"focus-trap-disabled"],outsideCloseDisabled:[516,"outside-close-disabled"],docked:[516],escapeDisabled:[516,"escape-disabled"],scale:[513],widthScale:[513,"width-scale"],fullscreen:[516],kind:[513],messages:[1040],messageOverrides:[1040],slottedInShell:[1028,"slotted-in-shell"],cssWidth:[32],cssHeight:[32],hasFooter:[32],hasContentTop:[32],hasContentBottom:[32],effectiveLocale:[32],defaultMessages:[32],setFocus:[64],updateFocusTrapElements:[64],scrollContent:[64]},[[8,"keydown","handleEscape"]],{focusTrapDisabled:["handleFocusTrapDisabled"],messageOverrides:["onMessagesChange"],effectiveLocale:["effectiveLocaleChange"],open:["toggleModal"],opened:["handleOpenedChange"]}]);lP();dB=aP,fB=lP});var Kv,dP=P(()=>{Kv={brand:"lightbulb",danger:"exclamationMarkTriangle",info:"information",success:"checkCircle",warning:"exclamationMarkTriangle"}});var mP={};ei(mP,{CalciteNotice:()=>hB,defineCustomElement:()=>gB});function pP(){if(typeof customElements>"u")return;["calcite-notice","calcite-icon"].forEach(t=>{switch(t){case"calcite-notice":customElements.get(t)||customElements.define(t,fP);break;case"calcite-icon":customElements.get(t)||Yn();break}})}var Fd,Vd,pB,mB,fP,hB,gB,hP=P(()=>{Dt();Zv();sn();kd();ha();Ql();dP();Jv();pa();Kl();Fd={title:"title",message:"message",link:"link",actionsEnd:"actions-end"},Vd={actionsEnd:"actions-end",close:"notice-close",container:"container",content:"notice-content",icon:"notice-icon"},pB=`: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:none;inline-size:100%;background-color:var(--calcite-color-foreground-1);opacity: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;max-block-size:0;text-align:start;border-inline-start:0px 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(
|
|
105
|
+
-2px *
|
|
106
|
+
calc(
|
|
107
|
+
1 -
|
|
108
|
+
2 * clamp(
|
|
109
|
+
0,
|
|
110
|
+
var(--calcite-offset-invert-focus),
|
|
111
|
+
1
|
|
112
|
+
)
|
|
113
|
+
)
|
|
114
|
+
)}:host{display:flex}:host([open]) .container{pointer-events:auto;display:flex;max-block-size:100%;align-items:center;border-width:2px;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}`,mB=pB,fP=Nt(class extends Rt{constructor(){super(),this.__registerHost(),this.__attachShadow(),this.calciteNoticeBeforeClose=mr(this,"calciteNoticeBeforeClose",6),this.calciteNoticeBeforeOpen=mr(this,"calciteNoticeBeforeOpen",6),this.calciteNoticeClose=mr(this,"calciteNoticeClose",6),this.calciteNoticeOpen=mr(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(){$d(this)}onMessagesChange(){}updateRequestedIcon(){this.requestedIcon=Xi(Kv,this.icon,this.kind)}connectedCallback(){_g(this),_i(this),Ci(this)}disconnectedCallback(){vg(this),vi(this),Ti(this)}async componentWillLoad(){ns(this),this.requestedIcon=Xi(Kv,this.icon,this.kind),await Si(this),this.open&&$d(this)}componentDidLoad(){is(this)}render(){let{el:t}=this,r=J("button",{key:"898b161c8f357e36a623c0a02de98be2cb2c2a73","aria-label":this.messages.close,class:Vd.close,onClick:this.close,ref:i=>this.closeButton=i},J("calcite-icon",{key:"258b71c704cbd390cd7fc031bc04a4ea2eef7ee6",icon:"x",scale:Zr(this.scale)})),n=Ji(t,Fd.actionsEnd);return J("div",{key:"eb7ea8a838d8ea2182e02fba8701dc816dafbc60",class:Vd.container,ref:this.setTransitionEl},this.requestedIcon?J("div",{class:Vd.icon},J("calcite-icon",{flipRtl:this.iconFlipRtl,icon:this.requestedIcon,scale:Zr(this.scale)})):null,J("div",{key:"3ac734d3b085f1c80bfb16b14df7cb8d1b7058cb",class:Vd.content},J("slot",{key:"2698e3774993b1af1bd93a2955e312705fd22543",name:Fd.title}),J("slot",{key:"b8fb3c294c893ce2edaddf46066a4df45d8832cd",name:Fd.message}),J("slot",{key:"01a792e1d41a8d935ddbb04b1eb857b8b88c8882",name:Fd.link})),n?J("div",{class:Vd.actionsEnd},J("slot",{name:Fd.actionsEnd})):null,this.closable?r:null)}async setFocus(){await os(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(){xi(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 mB}},[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"]}]);pP();hB=fP,gB=pP});var e4,t4,wB,ln,r4,gP=P(()=>{tr();h0();rr();Fe();qe();_o();jt();EE();hv();L0();ME();LE();AE();g_();e4="esri-identity-modal",t4={base:e4,info:`${e4}__info`,notice:`${e4}__notice`},wB="ArcGIS Online",ln=class extends TE{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 yE({button:()=>Promise.resolve().then(()=>(NM(),kM)),input:()=>Promise.resolve().then(()=>(BM(),GM)),label:()=>Promise.resolve().then(()=>(HM(),jM)),modal:()=>Promise.resolve().then(()=>(uP(),cP)),notice:()=>Promise.resolve().then(()=>(hP(),mP))})}get title(){return this.commonMessages?.auth.signIn}render(){let{open:e,title:t,messages:r,signingIn:n,oAuthPrompt:i,server:o,resource:s,error:a}=this,{info:u,oAuthInfo:d,lblItem:f,invalidUser:m,noAuthService:w,lblUser:_,lblPwd:S,lblCancel:C,lblSigning:M,lblOk:N}=r;return $r("div",{class:this.classes(t4.base,IE())},$r("form",{bind:this,onsubmit:this._submit},$r("calcite-modal",{bind:this,open:e,outsideCloseDisabled:!0,scale:"s",widthScale:"s",onCalciteModalClose:this._cancel,onCalciteModalOpen:this._focusUsernameInput},$r("div",{slot:"header"},t),$r("div",{slot:"content"},$r("div",{class:t4.info},m_(i?d:u,{server:o&&/\.arcgis\.com/i.test(o)?wB:o,resource:`(${s||f})`})),a?$r("calcite-notice",{class:t4.notice,icon:"exclamation-mark-triangle",kind:"danger",open:!0},$r("div",{slot:"message"},a.details?.httpStatus?m:w)):null,i?null:[$r("calcite-label",null,_,$r("calcite-input",{afterCreate:L=>this._usernameInputNode=L,autocomplete:"off",bind:this,name:"username",required:!0,spellcheck:!1,type:"text",value:""})),$r("calcite-label",null,S,$r("calcite-input",{afterCreate:L=>this._passwordInputNode=L,bind:this,name:"password",required:!0,type:"password",value:""}))]),$r("calcite-button",{appearance:"outline",bind:this,onclick:this._cancel,slot:"secondary",type:"button",width:"full"},C),$r("calcite-button",{loading:!!n,slot:"primary",type:"submit",width:"full"},n?M:N))))}_focusUsernameInput(){requestAnimationFrame(()=>{this._usernameInputNode?.setFocus()})}_cancel(){this._set("signingIn",!1),this.open=!1,this._usernameInputNode&&(this._usernameInputNode.value=""),this._passwordInputNode&&(this._passwordInputNode.value=""),this.emit("cancel")}_submit(e){e.preventDefault(),this._set("signingIn",!0);let t=this.oAuthPrompt?{}:{username:this._usernameInputNode?.value,password:this._passwordInputNode?.value};this.emit("submit",t)}};R([j({readOnly:!0})],ln.prototype,"container",void 0),R([j(),_v("esri/t9n/common")],ln.prototype,"commonMessages",void 0),R([j()],ln.prototype,"error",void 0),R([j(),_v("esri/identity/t9n/identity")],ln.prototype,"messages",void 0),R([j()],ln.prototype,"oAuthPrompt",void 0),R([j()],ln.prototype,"open",void 0),R([j()],ln.prototype,"signingIn",void 0),R([j()],ln.prototype,"server",void 0),R([j({readOnly:!0})],ln.prototype,"title",null),R([j()],ln.prototype,"resource",void 0),ln=R([Me("esri.identity.IdentityModal")],ln);r4=ln});var n4,tc,wP=P(()=>{n4="esriJSAPIOAuth",tc=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(n4,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(n4,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(n4);if(r)try{t=JSON.parse(r)}catch(n){console.warn(n)}}return t}};tc.prototype.declaredClass="esri.identity.OAuthCredential"});var i4,hr,o4,yP=P(()=>{tr();Ys();rr();Fe();qe();_o();jt();hr=i4=class extends hi{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 i4.fromJSON(this.toJSON())}};R([j({json:{write:!0}})],hr.prototype,"appId",void 0),R([j({json:{write:!0}})],hr.prototype,"authNamespace",void 0),R([j({json:{write:!0}})],hr.prototype,"expiration",void 0),R([j({json:{write:!0}})],hr.prototype,"flowType",void 0),R([j({json:{write:!0}})],hr.prototype,"forceLogin",void 0),R([j({json:{write:!0}})],hr.prototype,"forceUserId",void 0),R([j({json:{write:!0}})],hr.prototype,"locale",void 0),R([j({json:{write:!0}})],hr.prototype,"minTimeUntilExpiration",void 0),R([j({json:{write:!0}})],hr.prototype,"popup",void 0),R([j({json:{write:!0}})],hr.prototype,"popupCallbackUrl",void 0),R([j({json:{write:!0}})],hr.prototype,"popupWindowFeatures",void 0),R([j({json:{write:!0}})],hr.prototype,"portalUrl",void 0),R([j({json:{write:!0}})],hr.prototype,"preserveUrlHash",void 0),R([j({json:{write:!0}})],hr.prototype,"userId",void 0),hr=i4=R([Me("esri.identity.OAuthInfo")],hr);o4=hr});var cn,Tg,bP=P(()=>{tr();Ys();rr();Fe();qe();_o();jt();cn=class extends hi{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}};R([j({json:{write:!0}})],cn.prototype,"adminTokenServiceUrl",void 0),R([j({json:{write:!0}})],cn.prototype,"currentVersion",void 0),R([j({json:{write:!0}})],cn.prototype,"hasPortal",void 0),R([j({json:{write:!0}})],cn.prototype,"hasServer",void 0),R([j({json:{write:!0}})],cn.prototype,"owningSystemUrl",void 0),R([j({json:{write:!0}})],cn.prototype,"owningTenant",void 0),R([j({json:{write:!0}})],cn.prototype,"server",void 0),R([j({json:{write:!0}})],cn.prototype,"shortLivedTokenValidity",void 0),R([j({json:{write:!0}})],cn.prototype,"tokenServiceUrl",void 0),R([j({json:{write:!0}})],cn.prototype,"webTierAuth",void 0),cn=R([Me("esri.identity.ServerInfo")],cn);Tg=cn});var Eg,_P,s4,Mg,Pg,Ud,ut,vP=P(()=>{tr();Ws();a0();p0();vr();l0();td();Qt();ai();fi();Ho();rr();Fe();qe();jt();gP();wP();yP();bP();Q1();Eg={},_P=e=>{let t=new xr(e.owningSystemUrl).host,r=new xr(e.server).host,n=/.+\.arcgis\.com$/i;return n.test(t)&&n.test(r)},s4=(e,t)=>!!(_P(e)&&t&&t.some(r=>r.test(e.server))),Mg=null,Pg=null;try{Mg=window.localStorage,Pg=window.sessionStorage}catch{}Ud=class extends Xs{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=Go(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 Tg,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 ut({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 Oh({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 Tg(s))}),o.length&&this.registerServers(o)}if(n){let o=[];n.forEach(s=>{s.appId&&o.push(s.declaredClass?s:new o4(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 ut(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,a=rn();if(r.signal&&tn(r.signal,()=>{s.abort()}),tn(s,()=>{a.reject(new he("identity-manager:user-aborted","ABORTED"))}),Wo(s))return a.promise;r.signal=s.signal;let u=this._isAdminResource(t),d=n?this.findCredential(t):null,f;if(d&&i&&i.details&&i.details.httpStatus===498)d.destroy();else if(d)return f=new he("identity-manager:not-authorized","You are currently signed in as: '"+d.userId+"'. You do not have access to this resource: "+t,{error:i}),a.reject(f),a.promise;let m=this._findCredential(t,r);if(m)return a.resolve(m),a.promise;let w=this.findServerInfo(t);if(w)!w.hasPortal&&w.server&&w.owningSystemUrl&&this._hasSameServerInstance(w.server,w.owningSystemUrl)&&(w.hasPortal=!0),!w.hasServer&&this._isServerRsrc(t)&&(w._restInfoPms=this._getTokenSvcUrl(t),w.hasServer=!0);else{let _=this._getTokenSvcUrl(t);if(!_)return f=new he("identity-manager:unknown-resource","Unknown resource - could not find token service endpoint."),a.reject(f),a.promise;w=new Tg,w.server=this._getServerInstanceRoot(t),typeof _=="string"?(w.tokenServiceUrl=_,w.hasPortal=!0):(w._restInfoPms=_,w.hasServer=!0),this.registerServers([w])}return w.hasPortal&&w._selfReq===void 0&&(o||Or(w.tokenServiceUrl,this._appOrigin)||this._gwDomains.some(_=>_.tokenServiceUrl===w.tokenServiceUrl))&&(w._selfReq={owningTenant:r?.owningTenant,selfDfd:this._getPortalSelf(w.tokenServiceUrl.replace(this._rePortalTokenSvc,"/sharing/rest/portals/self"),t)}),this._enqueue(t,w,r,a,u)}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 xr(this._appOrigin),s=t.shortLivedTokenValidity,a,u,d,f,m,w,_,S;r&&(S=this.tokenValidity||s||this._defaultTokenValidity,S>s&&s>0&&(S=s)),n&&(a=n.isAdmin,u=n.serverUrl,d=n.token,w=n.signal,_=n.ssl,t.customParameters=n.customParameters),a?f=t.adminTokenServiceUrl:(f=t.tokenServiceUrl,m=new xr(f.toLowerCase()),t.webTierAuth&&n?.serverUrl&&!_&&o.scheme==="http"&&(Or(o.uri,f,!0)||m.scheme==="https"&&o.host===m.host&&o.port==="7080"&&m.port==="7443")&&(f=f.replace(/^https:/i,"http:").replace(/:7443/i,":7080")));let C={query:{request:"getToken",username:r?.username,password:r?.password,serverUrl:u,token:d,expiration:S,referer:a||i?this._appOrigin:null,client:a?"referer":null,f:"json",...t.customParameters},method:"post",authMode:"anonymous",useProxy:this._useProxy(t,n),signal:w,...n?.ioArgs};return i||(C.withCredentials=!1),gt(f,C).then(M=>{let N=M.data;if(!N?.token)return new he("identity-manager:authentication-failed","Unable to generate token");let L=t.server;return Eg[L]||(Eg[L]={}),r&&(Eg[L][r.username]=r.password),N.validity=S,N})}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,a={f:"json"};if(o.scope==="portal")if(r&&(this._doPortalSignIn(t)||n?.force))s=o.server+"/sharing/rest/oauth2/validateAppAccess",a.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&&(a.token=o.token),gt(s,{query:a,authMode:"anonymous"}).then(u=>{if(u.data.valid===!1)throw new he("identity-manager:not-authorized",`You are currently signed in as: '${o.userId}'.`,u.data);return i=!!u.data.viewOnlyUserTypeApp,{credential:o}}).catch(u=>{if(u.name==="identity-manager:not-authorized")throw u;let d=u.details?.httpStatus;if(d===498)throw o.destroy(),new he("identity-manager:not-authenticated","User is not signed in.");if(d===400)throw new he("identity-manager:invalid-request");return{credential:o}})}).then(o=>({credential:o.credential,viewOnly:i}))}setOAuthResponseHash(t){t&&(t.charAt(0)==="#"&&(t=t.substring(1)),this._processOAuthPopupParams(Bo(t)))}setOAuthRedirectionHandler(t){this._oAuthRedirectFunc=t}setProtocolErrorHandler(t){this._protocolFunc=t}signIn(t,r,n={}){let i=rn(),o=()=>{u?.remove(),d?.remove(),this.dialog?.destroy(),this.dialog=u=d=null},s=()=>{o(),this._oAuthDfd=null,i.reject(new he("identity-manager:user-aborted","ABORTED"))};n.signal&&tn(n.signal,()=>{s()});let a=new r4({open:!0,resource:this.getResourceName(t),server:r.server});this.dialog=a,this.emit("dialog-create");let u=a.on("cancel",s),d=a.on("submit",f=>{this.generateToken(r,f,{isAdmin:n.isAdmin,signal:n.signal}).then(m=>{o();let w=new ut({userId:f.username,server:r.server??void 0,token:m.token,expires:m.expires!=null?Number(m.expires):null,ssl:!!m.ssl,isAdmin:n.isAdmin,validity:m.validity});i.resolve(w)}).catch(m=>{a.error=m,a.signingIn=!1})});return i.promise}oAuthSignIn(t,r,n,i){this._oAuthDfd=rn();let o=this._oAuthDfd,s;i?.signal&&tn(i.signal,()=>{let w=this._oAuthDfd&&this._oAuthDfd.oAuthWin_;w&&!w.closed?w.close():this.dialog&&f()}),o.resUrl_=t,o.sinfo_=r,o.oinfo_=n;let a=n._oAuthCred;if(a.storage&&(n.flowType==="authorization-code"||n.flowType==="auto"&&r.currentVersion>=8.4)){let w=crypto.getRandomValues(new Uint8Array(32));s=o0(w),a.codeVerifier=s,w=crypto.getRandomValues(new Uint8Array(32)),a.stateUID=o0(w),a.save()||(a.codeVerifier=s=null)}else a.codeVerifier=null;let u,d;this._getCodeChallenge(s).then(w=>{let _=!i||i.oAuthPopupConfirmation!==!1;if(!n.popup||!_)return void this._doOAuthSignIn(t,r,n,w);let S=new r4({oAuthPrompt:!0,server:r.server,open:!0});this.dialog=S,this.emit("dialog-create"),u=S.on("cancel",f),d=S.on("submit",()=>{m(),this._doOAuthSignIn(t,r,n,w)})});let f=()=>{m(),this._oAuthDfd=null,o.reject(new he("identity-manager:user-aborted","ABORTED"))},m=()=>{u?.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=Uo(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.substring(1));let n=Bo(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.substring(1));let n=Bo(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(u=>{delete o[u]});let s=Js(o),a=window.location.pathname+(s?`?${s}`:"")+(n.state?.hash||"");window.history.replaceState(window.history.state,"",a)}}}_getOAuthToken(t,r,n,i,o){return t=t.replace(/^http:/i,"https:"),gt(`${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 o0(new Uint8Array(n))}return null}_pageShowHandler(t){if(t.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow){let r=new he("identity-manager:user-aborted","ABORTED");this._errbackFunc(r)}}_findCredential(t,r){let n,i,o,s,a=-1,u=r?.token,d=r?.resource,f=this._isServerRsrc(t)?"server":"portal",m=this.credentials.filter(w=>this._hasSameServerInstance(w.server,t)&&w.scope===f);if(t=d||t,m.length)if(m.length===1){if(n=m[0],o=this.findServerInfo(n.server),i=o?.owningSystemUrl,s=i?this.findCredential(i,n.userId):void 0,a=this._getIdenticalSvcIdx(t,n),!u)return a===-1&&n.resources.push(t),this._addResource(t,s),n;a!==-1&&(n.resources.splice(a,1),this._removeResource(t,s))}else{let w,_;if(m.some(S=>(_=this._getIdenticalSvcIdx(t,S),_!==-1&&(w=S,o=this.findServerInfo(w.server),i=o?.owningSystemUrl,s=i?this.findCredential(i,w.userId):void 0,a=_,!0))),u)w&&(w.resources.splice(a,1),this._removeResource(t,s));else if(w)return this._addResource(t,s),w}}_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&&!Or(t.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(t.tokenServiceUrl)&&String(t.currentVersion)==="10.1"&&!Or(t.tokenServiceUrl,this._appOrigin)}_getOrigin(t){let r=new xr(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||X1(r)||(n=r.indexOf("/sharing")),n===-1&&r.endsWith("/")&&(n=r.length-1),n>-1?t.substring(0,n):t}_hasSameServerInstance(t,r){return t.endsWith("/")&&(t=t.slice(0,-1)),t=t.toLowerCase(),r=this._getServerInstanceRoot(r).toLowerCase(),t=o_(t),r=o_(r),(t=t.substring(t.indexOf(":")))===(r=r.substring(r.indexOf(":")))}_sanitizeUrl(t){let r=(Ze.request.proxyUrl||"").toLowerCase(),n=r?t.toLowerCase().indexOf(r+"?"):-1;return n!==-1&&(t=t.substring(n+r.length+1)),t=r0(t),Go(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 xr(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||Ze.portalUrl&&(i=Or(r,Ze.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,a)=>{n===-1&&s.regex.test(t)&&(n=a),i===-1&&s.regex.test(r)&&(i=a)});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),a=s?.owningSystemUrl;a&&_P(s)&&this._isPortalDomain(a)&&this._isIdProvider(t,a)&&(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=gt(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.substring(0,i)+this._gwTokenUrl)),o||(o=this._getOrigin(t)+this._gwTokenUrl),o){let s=new xr(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(a=>{let u=new ut({userId:a.username,server:n.server??void 0,token:a.access_token,expires:Date.now()+1e3*a.expires_in,ssl:a.ssl,oAuthState:t.state,_oAuthCred:i});return r.userId=u.userId,i.storage=a.persist?Mg:Pg,i.refreshToken=a.refresh_token,i.token=null,i.expires=a.refresh_token_expires_in?Date.now()+1e3*a.refresh_token_expires_in:null,i.userId=u.userId,i.ssl=u.ssl,i.save(),u})}let o=new ut({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?Mg:Pg,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 he(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.substring(1)),this._processOAuthPopupParams(Bo(t)))}async _exchangeToken(t,r,n){return(await gt(`${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 gt(`${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")),gt(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))||Or(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:")&&kl(s)&&(o=!!this._protocolFunc&&!!this._protocolFunc({resourceUrl:t,serverInfo:r}),!o)&&n(new he("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=rn()),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 f=t.options_?.resource,m=t.resUrl_,w=t.refresh_,_=!1;this.credentials.includes(d)||(w&&this.credentials.includes(w)?(w.userId=d.userId,w.token=d.token,w.expires=d.expires,w.validity=d.validity,w.ssl=d.ssl,w.creationTime=d.creationTime,_=!0,d=w):this.credentials.push(d)),d.resources||(d.resources=[]),d.resources.includes(f||m)||d.resources.push(f||m),d.scope=this._isServerRsrc(m)?"server":"portal",d.emitTokenChange();let S=this._soReqs,C={};this._soReqs=[],S.forEach(M=>{if(!this._isIdenticalService(m,M.resUrl_)){let N=this._getSuffix(M.resUrl_);C[N]||(C[N]=!0,d.resources.push(M.resUrl_))}}),t.resolve(d),S.forEach(M=>{this._hasSameServerInstance(this._getServerInstanceRoot(m),M.resUrl_)?M.resolve(d):this._soReqs.push(M)}),this._busy=t.resUrl_=t.sinfo_=t.refresh_=null,_||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,f,m,w)=>{let _=t.sinfo_,S=!t.options_||t.options_.prompt!==!1,C=_.hasPortal&&this._findOAuthInfo(t.resUrl_),M,N;if(d)r(new ut({userId:d,server:_.server??void 0,token:m??void 0,expires:w!=null?Number(w):null,ssl:!!f}));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 L=Uo(window,"message",k=>{k.source===window.parent&&k.data&&(k.data.type==="arcgis:auth:credential"?(L.remove(),k.data.credential.expires<Date.now()?n(new he("identity-manager:credential-request-failed","Parent application's token has expired.")):r(new ut(k.data.credential))):k.data.type==="arcgis:auth:error"&&(L.remove(),k.data.error.name==="tokenExpiredError"?n(new he("identity-manager:credential-request-failed","Parent application's token has expired.")):n(he.fromJSON(k.data.error))))});tn(t.options_?.signal,()=>{L.remove()})}else if(C){let L=C._oAuthCred;if(!L){let k=new tc(C,Mg),W=new tc(C,Pg);k.isValid()&&W.isValid()?k.expires>W.expires?(L=k,W.destroy()):(L=W,k.destroy()):L=k.isValid()?k:W,C._oAuthCred=L}if(L.isValid()){M=new ut({userId:L.userId??void 0,server:_.server??void 0,token:L.token??void 0,expires:L.expires,ssl:L.ssl??void 0,_oAuthCred:L});let k=C.appId!==L.appId&&this._doPortalSignIn(t.resUrl_);k||L.refreshToken?(t._pendingDfd=L.refreshToken?this._getOAuthToken(_.server,L.refreshToken,L.appId).then(W=>(M.expires=Date.now()+1e3*W.expires_in,M.token=W.access_token,M)):Promise.resolve(M),t._pendingDfd.then(W=>k?this._exchangeToken(W.server,C.appId,W.token).then(Z=>(W.token=Z,W)).catch(()=>W):W).then(W=>{r(W)}).catch(()=>{L?.destroy(),i()})):r(M)}else if(this._oAuthLocationParams&&this._hasSameServerInstance(C.portalUrl,this._oAuthLocationParams.state.portalUrl)&&(this._oAuthLocationParams.access_token||this._oAuthLocationParams.code&&this._oAuthLocationParams.state.uid===L.stateUID&&L.codeVerifier)){let k=this._oAuthLocationParams;this._oAuthLocationParams=null,t._pendingDfd=this._processOAuthResponseParams(k,C,_).then(W=>{r(W)}).catch(n)}else{let k=()=>{S?t._pendingDfd=this.oAuthSignIn(t.resUrl_,_,C,t.options_).then(r,n):(N=new he("identity-manager:not-authenticated","User is not signed in."),n(N))};this._doPortalSignIn(t.resUrl_)?t._pendingDfd=this._getPlatformSelf(_.server,C.appId).then(W=>{Or(W.portalUrl,this._appOrigin,!0)?(M=new ut({userId:W.username,server:_.server??void 0,expires:Date.now()+1e3*W.expires_in,token:W.token}),r(M)):k()}).catch(k):k()}}else if(S){if(this._checkProtocol(t.resUrl_,_,n,t.admin_)){let L=t.options_;t.admin_&&(L=L||{},L.isAdmin=!0),t._pendingDfd=this.signIn(t.resUrl_,_,L).then(r,n)}}else N=new he("identity-manager:not-authenticated","User is not signed in."),n(N)},o=()=>{let d=t.sinfo_,f=d.owningSystemUrl,m=t.options_,w,_,S,C;if(m&&(w=m.token,_=m.error,S=m.prompt),C=this._findCredential(f,{token:w,resource:t.resUrl_}),!C){for(let M of this.credentials)if(this._isIdProvider(f,M.server)){C=M;break}}if(C){let M=this.findCredential(t.resUrl_,C.userId);if(M)r(M);else if(s4(d,this._legacyFed)){let N=C.toJSON();N.server=d.server,N.resources=null,r(new ut(N))}else(t._pendingDfd=this.generateToken(this.findServerInfo(C.server),null,{serverUrl:t.resUrl_,token:C.token,signal:t.options_.signal,ssl:C.ssl})).then(N=>{r(new ut({userId:C?.userId,server:d.server??void 0,token:N.token,expires:N.expires!=null?Number(N.expires):null,ssl:!!N.ssl,isAdmin:t.admin_,validity:N.validity}))},n)}else this._busy=null,w&&(t.options_.token=null),(t._pendingDfd=this.getCredential(f.replace(/\/?$/,"/sharing"),{resource:t.resUrl_,owningTenant:d.owningTenant,signal:t.options_.signal,token:w,error:_,prompt:S})).then(()=>{this._enqueue(t.resUrl_,t.sinfo_,t.options_,t,t.admin_)},M=>{t.resUrl_=t.sinfo_=t.refresh_=null,t.reject(M)})};this._errbackFunc=n;let s=t.sinfo_.owningSystemUrl,a=this._isServerRsrc(t.resUrl_),u=t.sinfo_._restInfoPms;u?u.promise.then(d=>{let f=t.sinfo_;if(f._restInfoPms){f.adminTokenServiceUrl=f._restInfoPms.adminUrl,f._restInfoPms=null,f.tokenServiceUrl=(wn("authInfo.tokenServicesUrl",d)||wn("authInfo.tokenServiceUrl",d)||wn("tokenServiceUrl",d))??null,f.shortLivedTokenValidity=wn("authInfo.shortLivedTokenValidity",d)??null,f.currentVersion=d.currentVersion,f.owningTenant=d.owningTenant;let m=f.owningSystemUrl=d.owningSystemUrl;m&&this._portals.push(m)}a&&f.owningSystemUrl?o():i()},()=>{t.sinfo_._restInfoPms=null;let d=new he("identity-manager:server-identification-failed","Unknown resource - could not find token service endpoint.");n(d)}):a&&s?o():t.sinfo_._selfReq?t.sinfo_._selfReq.selfDfd.then(d=>{let f={},m,w,_,S;return d&&(m=d.user?.username,f.username=m,f.allSSL=d.allSSL,w=d.supportsOAuth,S=parseFloat(d.currentVersion),d.portalMode==="multitenant"&&(_=d.customBaseUrl),t.sinfo_.currentVersion=S),t.sinfo_.webTierAuth=!!m,m&&this.normalizeWebTierAuth?this.generateToken(t.sinfo_,null,{ssl:f.allSSL}).catch(()=>null).then(C=>(f.portalToken=C?.token,f.tokenExpiration=C?.expires,f)):!m&&w&&S>=4.4&&!this._findOAuthInfo(t.resUrl_)?this._generateOAuthInfo({portalUrl:t.sinfo_.server,customBaseUrl:_,owningTenant:t.sinfo_._selfReq.owningTenant}).catch(()=>null).then(()=>f):f}).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,a=!this._defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal;if(a){n=window.location.href;let u=n.indexOf("?");u>-1&&(n=n.slice(0,u)),u=n.search(/\/(apps|home)\//),n=u>-1?n.slice(0,u):null}return a&&n?(this._hasTestedIfAppIsOnPortal=!0,r=gt(n+"/sharing/rest",{query:{f:"json"}}).then(()=>{this._defaultOAuthInfo=new o4({appId:"arcgisonline",popupCallbackUrl:n+"/home/oauth-callback.html"})})):r=Promise.resolve(),r.then(()=>{if(this._defaultOAuthInfo)return i=i.replace(/^http:/i,"https:"),gt(i+"/sharing/rest/oauth2/validateRedirectUri",{query:{accountId:s,client_id:this._defaultOAuthInfo.appId,redirect_uri:qo(this._defaultOAuthInfo.popupCallbackUrl),f:"json"}}).then(u=>{if(u.data.valid){let d=this._defaultOAuthInfo.clone();u.data.urlKey&&o?d.portalUrl="https://"+u.data.urlKey.toLowerCase()+"."+o:d.portalUrl=i,d.popup=window!==window.top||!(Or(i,this._appOrigin)||this._gwDomains.some(f=>f.regex.test(i)&&f.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 a={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&&(a.force_login=!0),n.forceUserId&&n.userId&&(a.prepopulatedusername=n.userId),!n.popup&&this._doPortalSignIn(t)&&(a.redirectToUserOrgUrl=!0),o.codeVerifier&&(a.code_challenge=i||o.codeVerifier,a.code_challenge_method=i?"S256":"plain");let u=n.portalUrl.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize",d=u+"?"+Js(a);if(n.popup){let f=window.open(d,"esriJSAPIOAuth",n.popupWindowFeatures);if(f)f.focus(),this._oAuthDfd.oAuthWin_=f,this._oAuthIntervalId=setInterval(()=>{if(f.closed){clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle.remove();let m=this._oAuthDfd;if(m){let w=new he("identity-manager:user-aborted","ABORTED");m.reject(w)}}},500),this._oAuthOnPopupHandle=Uo(window,["arcgis:auth:hash","arcgis:auth:location:search"],m=>{m.type==="arcgis:auth:hash"?this.setOAuthResponseHash(m.detail):this._setOAuthResponseQueryString(m.detail)});else{let m=new he("identity-manager:popup-blocked","ABORTED");this._oAuthDfd.reject(m)}}else this._rejectOnPersistedPageShow=!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:a,authorizeUrl:u,resourceUrl:t,serverInfo:r,oAuthInfo:n}):window.location.href=d}_getRedirectURI(t,r){let n=window.location.href.replace(/#.*$/,"");if(t.popup)return qo(t.popupCallbackUrl);if(r){let i=Go(n);return i.query&&["code","error","error_description","message_code","persist","state"].forEach(o=>{delete i.query[o]}),Nl(i.path,i.query)}return n}};Ud.prototype.declaredClass="esri.identity.IdentityManagerBase";ut=class extends Xs.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=Ht,t=e.findServerInfo(this.server),r=t?.owningSystemUrl,n=!!r&&this.scope==="server",i=n&&s4(t,e._legacyFed),o=t.webTierAuth,s=o&&e.normalizeWebTierAuth,a=Eg[this.server],u=a?.[this.userId],d,f=this.resources&&this.resources[0],m=n?e.findServerInfo(r):null,w={username:this.userId,password:u};if(o&&!s)return;n&&!m&&e.serverInfos.some(S=>(e._isIdProvider(r,S.server)&&(m=S),!!m));let _=m?e.findCredential(m.server,this.userId):null;if(!n||_){if(!i){if(n)d={serverUrl:f,token:_?.token,ssl:_?.ssl};else if(s)w=null,d={ssl:this.ssl};else{if(!u){let S;return f&&(f=e._sanitizeUrl(f),this._enqueued=1,S=e._enqueue(f,t,null,null,this.isAdmin,this),S.then(()=>{this._enqueued=0,this.refreshServerTokens()}).catch(()=>{this._enqueued=0})),S}this.isAdmin&&(d={isAdmin:!0})}return e.generateToken(n?m:t,n?null:w,d).then(S=>{this.token=S.token,this.expires=S.expires!=null?Number(S.expires):null,this.creationTime=Date.now(),this.validity=S.validity,this.emitTokenChange(),this.refreshServerTokens()}).catch(()=>{})}_?.refreshToken()}}refreshServerTokens(){if(this.scope==="portal"){let e=Ht;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))&&(s4(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=Ht,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=Ht,t=e.credentials.indexOf(this);t>-1&&e.credentials.splice(t,1),this.emitTokenChange(),this.emit("destroy")}toJSON(){let e=Oh({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)}};R([j()],ut.prototype,"creationTime",void 0),R([j()],ut.prototype,"expires",void 0),R([j()],ut.prototype,"isAdmin",void 0),R([j()],ut.prototype,"oAuthState",void 0),R([j()],ut.prototype,"resources",void 0),R([j()],ut.prototype,"scope",void 0),R([j()],ut.prototype,"server",void 0),R([j()],ut.prototype,"ssl",void 0),R([j()],ut.prototype,"token",void 0),R([j()],ut.prototype,"tokenRefreshBuffer",void 0),R([j()],ut.prototype,"userId",void 0),R([j()],ut.prototype,"validity",void 0),ut=R([Me("esri.identity.Credential")],ut)});var xP={};ei(xP,{default:()=>SP});var Lg,SP,CP=P(()=>{a0();vP();Lg=class extends Ud{};Lg.prototype.declaredClass="esri.identity.IdentityManager";SP=new Lg;z6(SP)});async function gt(e,t){e instanceof URL&&(e=e.toString()),t?.query instanceof URLSearchParams&&(t.query=Bo(t.query.toString().replaceAll("+"," ")));let r=i0(e),n=n0(e);n||r||(e=r0(e));let i={url:e,requestOptions:{...t}},o=w=>({data:w,getAllHeaders:rc,getHeader:rc,httpStatus:200,requestOptions:i.requestOptions,url:i.url}),s=l_(e,xn.internalInterceptors);if(s){let w=await EP(s,i);if(w!=null)return o(w)}let a=l_(e);if(a){let w=await EP(a,i);if(w!=null)return o(w);a.after||a.error||(a=null)}if(e=i.url,(t=i.requestOptions).responseType==="image"&&(X("host-webworker")||X("host-node")))throw Ei("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 Ei("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),i);if(r||n)throw Ei("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),i)}if(await SB(),Ig)return Ig.execute(e,t);let u=new AbortController,d=tn(t,()=>u.abort()),f={controller:u,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:a,params:i,redoRequest:!1,useIdentity:xn.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},m=await EB(f).finally(()=>d?.remove());return a?.after?.(m),m}function vB(e){let t=jr(e);t&&!gt._corsServers.includes(t)&>._corsServers.push(t)}function TP(e){let t=jr(e);return!t||t.endsWith(".arcgis.com")||gt._corsServers.includes(t)||t0(t)}function Ei(e,t,r,n){let i="Error",o={url:r.url,requestOptions:r.requestOptions,getAllHeaders:rc,getHeader:rc,ssl:!1};if(t instanceof he)return t.details?(t.details=Le(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)),a=n&&(f=>n.headers.get(f)),u=n?.status,d=t.message;d&&(i=d),s&&a&&(o.getAllHeaders=s,o.getHeader=a),o.httpStatus=(t.httpCode!=null?t.httpCode:t.code)||u||0,o.subCode=t.subcode,o.messageCode=t.messageCode,typeof t.details=="string"?o.messages=[t.details]:o.messages=t.details,o.raw=Ag in t?t[Ag]:t}return rd(t)?Bi():new he(e,i,o)}async function SB(){X("host-webworker")&&!Ig&&(Ig=await Promise.resolve().then(()=>(K6(),Q6)))}async function a4(){Ht||await Promise.resolve().then(()=>(CP(),xP))}async function xB(e){let t=e.params.url,r=e.params.requestOptions,n=e.controller.signal,i=r.body,o=null,s=null;if(LP&&"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:xn.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&&Ze.apiKey&&G6(t)&&(r.query||(r.query={}),r.query.token=Ze.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!IP(t)&&!Wo(n)){let a;r.authMode==="immediate"?(await a4(),a=await Ht.getCredential(t,{signal:n}),e.credential=a):r.authMode==="no-prompt"?(await a4(),a=await Ht.getCredential(t,{prompt:!1,signal:n}).catch(()=>{}),e.credential=a):Ht&&(a=Ht.findCredential(t)),a&&(e.credentialToken=a.token,e.useSSL=!!a.ssl)}}function IP(e){return _B.some(t=>t.test(e))}async function CB(e){let t=e.params.url,r=e.params.requestOptions,n=e.fetchOptions??{},i=n0(t)||i0(t),o=r.responseType||"json",s=i?0:r.timeout!=null?r.timeout:xn.timeout,a=!1;if(!i){e.useSSL&&(t=s0(t));let w={...r.query};e.credentialToken&&(w.token=e.credentialToken);let _=Js(w);X("esri-url-encodes-apostrophe")&&(_=_.replaceAll("'","%27"));let S=t.length+1+_.length,C;a=r.method==="delete"||r.method==="post"||r.method==="put"||!!r.body||S>xn.maxUrlLength;let M=r.useProxy||!!kl(t);if(M){let N=O6(t);C=N.path,!a&&C.length+1+S>xn.maxUrlLength&&(a=!0),N.query&&(w={...N.query,...w})}if(n.method==="HEAD"&&(a||M)){if(a)throw S>xn.maxUrlLength?Ei("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params):Ei("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params);if(M)throw Ei("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}a?(n.method=r.method==="delete"?"DELETE":r.method==="put"?"PUT":"POST",r.body?t=Nl(t,w):(n.body=Js(w),n.headers||(n.headers={}),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=Nl(t,w),M&&(e.useProxy=!0,t=`${C}?${t}`),w.token&&LP&&n.body instanceof FormData&&!X1(t)&&n.body.set("token",w.token),r.hasOwnProperty("withCredentials")?e.withCredentials=r.withCredentials:Or(t,e0())||(t0(t)||Ht&&Ht.findServerInfo(t)?.webTierAuth)&&(e.withCredentials=!0),e.withCredentials&&(n.credentials="include",Y6(t)&&await J6(a?Nl(t,w):t))}let u,d,f=0,m=!1;s>0&&(f=setTimeout(()=>{m=!0,e.controller.abort()},s));try{if(r.responseType==="native-request-init")d=n,d.url=t;else if(r.responseType!=="image"||n.cache!=="default"||n.method!=="GET"||a||TB(r.headers)||!i&&!e.useProxy&&xn.proxyUrl&&!TP(t)){if(gt._beforeFetch&&await gt._beforeFetch(t,n),u=await fetch(t,n),gt._afterFetch&&await gt._afterFetch(u),e.useProxy||vB(t),r.responseType==="native")d=u;else if(n.method!=="HEAD")if(u.ok){switch(o){case"array-buffer":d=await u.arrayBuffer();break;case"blob":case"image":d=await u.blob();break;default:d=await u.text()}if(f&&(clearTimeout(f),f=0),o==="json"||o==="xml"||o==="document")if(d)switch(o){case"json":d=JSON.parse(d);break;case"xml":d=MP(d,"application/xml");break;case"document":d=MP(d,"text/html")}else d=null;if(d){if(o==="array-buffer"||o==="blob"){let w=u.headers.get("Content-Type");if(w&&/application\/json|text\/plain/i.test(w)&&d[o==="blob"?"size":"byteLength"]<=750)try{let _=await new Response(d).json();_.error&&(d=_)}catch{}}o==="image"&&d instanceof Blob&&(d=await PP(URL.createObjectURL(d),e,!0))}}else{d=await u.text();try{d=JSON.parse(d)}catch{}}}else d=await PP(t,e)}catch(w){if(w.name==="AbortError")throw m?H6():Bi("Request canceled");if(!(!u&&w instanceof TypeError&&xn.proxyUrl)||r.body||r.method==="delete"||r.method==="head"||r.method==="post"||r.method==="put"||e.useProxy||TP(t))throw w;e.redoRequest=!0,V6({proxyUrl:xn.proxyUrl,urlPrefix:jr(t)??""})}finally{f&&clearTimeout(f)}return[u,d]}async function EP(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=Ei("request:interceptor",i,t)}if((n instanceof Error||n instanceof he)&&(r=Ei("request:interceptor",n,t)),r)throw e.error&&e.error(r),r;return n}}function TB(e){if(e){for(let t of Object.getOwnPropertyNames(e))if(e[t])return!0}return!1}function MP(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 EB(e){let t,r;await xB(e);try{do[t,r]=await CB(e);while(!await MB(e,t,r))}catch(o){let s=Ei("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&&!t0(n)){let o=jr(n,!0);o&&xn.trustedServers.push(o)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&Z6(r.authorizedCrossOriginNoCorsDomains)}let i=e.credential;if(i&&Ht){let s=Ht.findServerInfo(i.server)?.owningSystemUrl;if(s){s=s.replace(/\/?$/,"/sharing");let a=Ht.findCredential(s,i.userId);a&&Ht._getIdenticalSvcIdx(s,a)===-1&&a.resources.unshift(s)}}return{data:r,getAllHeaders:t?()=>Array.from(t.headers):rc,getHeader:t?o=>t.headers.get(o):rc,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}async function MB(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[Ag]=r,i.details=r.messages)),!i&&!t.ok)throw i=new Error(`Unable to load ${t.url} status: ${t.status}`),i[Ag]=r,i;let s,a=null;i&&(o=Number(i.code),a=i.hasOwnProperty("subcode")?Number(i.subcode):null,s=i.messageCode,s=s?.toUpperCase());let u=n.authMode;if(o===403&&(a===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&&(u!=="no-prompt"||o===498)&&o!==void 0&&yB.has(o)&&!IP(e.params.url)&&(o!==403||(!s||!bB.has(s))&&(a==null||a===2&&e.credentialToken))){await a4();try{let d=await Ht.getCredential(e.params.url,{error:Ei("request:server",i,e.params),prompt:u!=="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(u==="no-prompt")return e.credential=void 0,e.credentialToken=void 0,!1;i=d}}if(i)throw i;return!0}function PP(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=xn.priority,i.src=e,j6(i,e,r,n)}var Ig,xn,LP,yB,bB,_B,rc,Ag,p0=P(()=>{Ws();a0();vr();Fe();Qt();fi();Ho();Q1();B6();X6();xn=Ze.request,LP="FormData"in globalThis,yB=new Set([499,498,403,401]),bB=new Set(["COM_0056","COM_0057","SB_0008"]),_B=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],rc=()=>null,Ag=Symbol();gt._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],gt._beforeFetch=void 0,gt._afterFetch=void 0});function $l(e){if(!Ze.assetsPath)throw Ce.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new he("assets:path-not-set","config.assetsPath is not set");return c_(Ze.assetsPath,e)}var m0=P(()=>{Ws();p0();vr();qe();Ho()});function AP(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kP=P(()=>{});var NP=XS(()=>{});var RP=XS(()=>{});var FP={};ei(FP,{p:()=>LB});var DP,kg,OP,$P,PB,LB,VP=P(()=>{kP();$P={exports:{}};DP=$P,kg=typeof document<"u"?document.currentScript?.src:void 0,typeof __filename<"u"&&(kg||(kg=__filename)),OP=function(e={}){var t,r,n,i,o,s=Object.assign({},e),a=new Promise((p,E)=>{t=p,r=E}),u=typeof window=="object",d=typeof importScripts=="function",f=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string",m=Object.assign({},s),w="./this.program",_="";function S(p){return s.locateFile?s.locateFile(p,_):_+p}if(f){var C=NP(),M=RP();_=__dirname+"/",n=(p,E)=>(p=La(p)?new URL(p):M.normalize(p),C.readFileSync(p,E?void 0:"utf8")),o=p=>{var E=n(p,!0);return E.buffer||(E=new Uint8Array(E)),E},i=(p,E,U,Y=!0)=>{p=La(p)?new URL(p):M.normalize(p),C.readFile(p,Y?void 0:"utf8",(ie,be)=>{ie?U(ie):E(Y?be.buffer:be)})},!s.thisProgram&&process.argv.length>1&&(w=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2)}else(u||d)&&(d?_=self.location.href:typeof document<"u"&&document.currentScript&&(_=document.currentScript.src),kg&&(_=kg),_=_.startsWith("blob:")?"":_.substr(0,_.replace(/[?#].*/,"").lastIndexOf("/")+1),n=p=>{var E=new XMLHttpRequest;return E.open("GET",p,!1),E.send(null),E.responseText},d&&(o=p=>{var E=new XMLHttpRequest;return E.open("GET",p,!1),E.responseType="arraybuffer",E.send(null),new Uint8Array(E.response)}),i=(p,E,U)=>{var Y=new XMLHttpRequest;Y.open("GET",p,!0),Y.responseType="arraybuffer",Y.onload=()=>{Y.status==200||Y.status==0&&Y.response?E(Y.response):U()},Y.onerror=U,Y.send(null)});var N,L,k=console.log.bind(console),W=console.error.bind(console);Object.assign(s,m),m=null;var Z,ee,ne,te,pe,ge,ue,G=!1;function D(p,E){p||yr(E)}function B(){var p=L.buffer;s.HEAP8=Z=new Int8Array(p),s.HEAP16=ne=new Int16Array(p),s.HEAPU8=ee=new Uint8Array(p),s.HEAPU16=new Uint16Array(p),s.HEAP32=te=new Int32Array(p),s.HEAPU32=pe=new Uint32Array(p),s.HEAPF32=ge=new Float32Array(p),s.HEAPF64=ue=new Float64Array(p)}var K=[],Q=[],se=[];function de(){pc(K)}function we(){pc(Q)}function Pe(){pc(se)}function Ke(p){Q.unshift(p)}var Ft=0,xt=null;function ar(p){Ft++}function ki(p){if(--Ft==0&&xt){var E=xt;xt=null,E()}}function yr(p){W(p="Aborted("+p+")"),G=!0,p+=". Build with -sASSERTIONS for more info.";var E=new WebAssembly.RuntimeError(p);throw r(E),E}var dn,fc="data:application/octet-stream;base64,",ef=p=>p.startsWith(fc),La=p=>p.startsWith("file://");function ow(){var p="pe-wasm.wasm";return ef(p)?p:S(p)}function tf(p){if(p==dn&&N)return new Uint8Array(N);if(o)return o(p);throw"both async and sync fetching of the wasm failed"}function sw(p){if(u||d){if(typeof fetch=="function"&&!La(p))return fetch(p,{credentials:"same-origin"}).then(E=>{if(!E.ok)throw`failed to load wasm binary file at '${p}'`;return E.arrayBuffer()}).catch(()=>tf(p));if(i)return new Promise((E,U)=>{i(p,Y=>E(new Uint8Array(Y)),U)})}return Promise.resolve().then(()=>tf(p))}function rf(p,E,U){return sw(p).then(Y=>WebAssembly.instantiate(Y,E)).then(U,Y=>{W(`failed to asynchronously prepare wasm: ${Y}`),yr(Y)})}function aw(p,E,U,Y){return typeof WebAssembly.instantiateStreaming!="function"||ef(E)||La(E)||f||typeof fetch!="function"?rf(E,U,Y):fetch(E,{credentials:"same-origin"}).then(ie=>WebAssembly.instantiateStreaming(ie,U).then(Y,function(be){return W(`wasm streaming compile failed: ${be}`),W("falling back to ArrayBuffer instantiation"),rf(E,U,Y)}))}function lw(){return{a:Ew}}function cw(){var p=lw();function E(Y,ie){return $=Y.exports,L=$.t,B(),Ke($.u),ki(),$}function U(Y){E(Y.instance)}return ar(),dn||(dn=ow()),aw(N,dn,p,U).catch(r),{}}var pc=p=>{for(;p.length>0;)p.shift()(s)};function uw(p,E="i8"){switch(E.endsWith("*")&&(E="*"),E){case"i1":case"i8":return Z[p];case"i16":return ne[p>>1];case"i32":return te[p>>2];case"i64":yr("to do getValue(i64) use WASM_BIGINT");case"float":return ge[p>>2];case"double":return ue[p>>3];case"*":return pe[p>>2];default:yr(`invalid type for getValue: ${E}`)}}var nf=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,of=(p,E,U)=>{for(var Y=E+U,ie=E;p[ie]&&!(ie>=Y);)++ie;if(ie-E>16&&p.buffer&&nf)return nf.decode(p.subarray(E,ie));for(var be="";E<ie;){var ze=p[E++];if(128&ze){var Ie=63&p[E++];if((224&ze)!=192){var Wt=63&p[E++];if((ze=(240&ze)==224?(15&ze)<<12|Ie<<6|Wt:(7&ze)<<18|Ie<<12|Wt<<6|63&p[E++])<65536)be+=String.fromCharCode(ze);else{var io=ze-65536;be+=String.fromCharCode(55296|io>>10,56320|1023&io)}}else be+=String.fromCharCode((31&ze)<<6|Ie)}else be+=String.fromCharCode(ze)}return be},Wr=(p,E)=>p?of(ee,p,E):"";function dw(p,E,U){return 0}var sf=(p,E,U,Y)=>{if(!(Y>0))return 0;for(var ie=U,be=U+Y-1,ze=0;ze<p.length;++ze){var Ie=p.charCodeAt(ze);if(Ie>=55296&&Ie<=57343&&(Ie=65536+((1023&Ie)<<10)|1023&p.charCodeAt(++ze)),Ie<=127){if(U>=be)break;E[U++]=Ie}else if(Ie<=2047){if(U+1>=be)break;E[U++]=192|Ie>>6,E[U++]=128|63&Ie}else if(Ie<=65535){if(U+2>=be)break;E[U++]=224|Ie>>12,E[U++]=128|Ie>>6&63,E[U++]=128|63&Ie}else{if(U+3>=be)break;E[U++]=240|Ie>>18,E[U++]=128|Ie>>12&63,E[U++]=128|Ie>>6&63,E[U++]=128|63&Ie}}return E[U]=0,U-ie},Ia=(p,E,U)=>sf(p,ee,E,U);function fw(p,E,U){return 0}function pw(p,E,U,Y){}var mw=p=>p%4==0&&(p%100!=0||p%400==0),hw=[0,31,60,91,121,152,182,213,244,274,305,335],gw=[0,31,59,90,120,151,181,212,243,273,304,334],ww=p=>(mw(p.getFullYear())?hw:gw)[p.getMonth()]+p.getDate()-1,af=(p,E)=>E+2097152>>>0<4194305-!!p?(p>>>0)+4294967296*E:NaN;function yw(p,E,U){var Y=af(p,E),ie=new Date(1e3*Y);te[U>>2]=ie.getSeconds(),te[U+4>>2]=ie.getMinutes(),te[U+8>>2]=ie.getHours(),te[U+12>>2]=ie.getDate(),te[U+16>>2]=ie.getMonth(),te[U+20>>2]=ie.getFullYear()-1900,te[U+24>>2]=ie.getDay();var be=0|ww(ie);te[U+28>>2]=be,te[U+36>>2]=-60*ie.getTimezoneOffset();var ze=new Date(ie.getFullYear(),0,1),Ie=new Date(ie.getFullYear(),6,1).getTimezoneOffset(),Wt=ze.getTimezoneOffset(),io=0|(Ie!=Wt&&ie.getTimezoneOffset()==Math.min(Wt,Ie));te[U+32>>2]=io}var Aa=()=>2147483648,bw=p=>{var E=(p-L.buffer.byteLength+65535)/65536;try{return L.grow(E),B(),1}catch{}},mc={},_w=()=>w||"./this.program",no=()=>{if(!no.strings){var p={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",_:_w()};for(var E in mc)mc[E]===void 0?delete p[E]:p[E]=mc[E];var U=[];for(var E in p)U.push(`${E}=${p[E]}`);no.strings=U}return no.strings},vw=(p,E)=>{for(var U=0;U<p.length;++U)Z[E++]=p.charCodeAt(U);Z[E]=0};function lf(p,E,U,Y,ie){return 70}var Sw=[null,[],[]],xw=(p,E)=>{var U=Sw[p];E===0||E===10?((p===1?k:W)(of(U,0)),U.length=0):U.push(E)},Cw=p=>{for(var E=0,U=0;U<p.length;++U){var Y=p.charCodeAt(U);Y<=127?E++:Y<=2047?E+=2:Y>=55296&&Y<=57343?(E+=4,++U):E+=3}return E};function cf(p,E,U){var Y=Cw(p)+1,ie=new Array(Y);return sf(p,ie,0,ie.length),ie}var Tw=(p,E)=>Math.ceil(p/E)*E,Ew={c:dw,r:(p,E,U)=>{},h:fw,d:pw,p:p=>{},o:(p,E)=>{},q:(p,E,U)=>{},l:()=>{yr("")},s:(p,E,U)=>ee.copyWithin(p,E,E+U),j:yw,n:(p,E,U,Y)=>{var ie=new Date().getFullYear(),be=new Date(ie,0,1),ze=new Date(ie,6,1),Ie=be.getTimezoneOffset(),Wt=ze.getTimezoneOffset(),io=Math.max(Ie,Wt);pe[p>>2]=60*io,te[E>>2]=+(Ie!=Wt);var Mm=Ow=>Ow.toLocaleTimeString(void 0,{hour12:!1,timeZoneName:"short"}).split(" ")[1],Pm=Mm(be),Lm=Mm(ze);Wt<Ie?(Ia(Pm,U,17),Ia(Lm,Y,17)):(Ia(Pm,Y,17),Ia(Lm,U,17))},i:()=>Date.now(),m:p=>{var E=ee.length;p>>>=0;var U=Aa();if(p>U)return!1;for(var Y=(Ie,Wt)=>Ie+(Wt-Ie%Wt)%Wt,ie=1;ie<=4;ie*=2){var be=E*(1+.2/ie);be=Math.min(be,p+100663296);var ze=Math.min(U,Y(Math.max(p,be),65536));if(bw(ze))return!0}return!1},e:(p,E)=>{var U=0;return no().forEach((Y,ie)=>{var be=E+U;pe[p+4*ie>>2]=be,vw(Y,be),U+=Y.length+1}),0},f:(p,E)=>{var U=no();pe[p>>2]=U.length;var Y=0;return U.forEach(ie=>Y+=ie.length+1),pe[E>>2]=Y,0},a:p=>52,g:(p,E,U,Y)=>52,k:lf,b:(p,E,U,Y)=>{for(var ie=0,be=0;be<U;be++){var ze=pe[E>>2],Ie=pe[E+4>>2];E+=8;for(var Wt=0;Wt<Ie;Wt++)xw(p,ee[ze+Wt]);ie+=Ie}return pe[Y>>2]=ie,0}},$=cw();s._webidl_free=p=>(s._webidl_free=$.v)(p),s._webidl_malloc=p=>(s._webidl_malloc=$.w)(p);var ka,uf=s._emscripten_bind_PeObject_getCode_0=p=>(uf=s._emscripten_bind_PeObject_getCode_0=$.x)(p),df=s._emscripten_bind_PeObject_getName_1=(p,E)=>(df=s._emscripten_bind_PeObject_getName_1=$.y)(p,E),ff=s._emscripten_bind_PeObject_getType_0=p=>(ff=s._emscripten_bind_PeObject_getType_0=$.z)(p),pf=s._emscripten_bind_PeCoordsys_getCode_0=p=>(pf=s._emscripten_bind_PeCoordsys_getCode_0=$.A)(p),gs=s._emscripten_bind_PeCoordsys_getName_1=(p,E)=>(gs=s._emscripten_bind_PeCoordsys_getName_1=$.B)(p,E),mf=s._emscripten_bind_PeCoordsys_getType_0=p=>(mf=s._emscripten_bind_PeCoordsys_getType_0=$.C)(p),hf=s._emscripten_bind_VoidPtr___destroy___0=p=>(hf=s._emscripten_bind_VoidPtr___destroy___0=$.D)(p),gf=s._emscripten_bind_PeDatum_getSpheroid_0=p=>(gf=s._emscripten_bind_PeDatum_getSpheroid_0=$.E)(p),wf=s._emscripten_bind_PeDatum_getCode_0=p=>(wf=s._emscripten_bind_PeDatum_getCode_0=$.F)(p),hc=s._emscripten_bind_PeDatum_getName_1=(p,E)=>(hc=s._emscripten_bind_PeDatum_getName_1=$.G)(p,E),yf=s._emscripten_bind_PeDatum_getType_0=p=>(yf=s._emscripten_bind_PeDatum_getType_0=$.H)(p),bf=s._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=p=>(bf=s._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=$.I)(p),gc=s._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=p=>(gc=s._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=$.J)(p),_f=s._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=p=>(_f=s._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=$.K)(p),wc=s._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=p=>(wc=s._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=$.L)(p),yc=s._emscripten_bind_PeDefs_get_PE_DD_MAX_0=p=>(yc=s._emscripten_bind_PeDefs_get_PE_DD_MAX_0=$.M)(p),vf=s._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=p=>(vf=s._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=$.N)(p),Sf=s._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=p=>(Sf=s._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=$.O)(p),xf=s._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=p=>(xf=s._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=$.P)(p),Cf=s._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=p=>(Cf=s._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=$.Q)(p),Tf=s._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=p=>(Tf=s._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=$.R)(p),Ef=s._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=p=>(Ef=s._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=$.S)(p),Mf=s._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=p=>(Mf=s._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=$.T)(p),Pf=s._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=p=>(Pf=s._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=$.U)(p),Lf=s._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=p=>(Lf=s._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=$.V)(p),If=s._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=p=>(If=s._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=$.W)(p),Af=s._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=p=>(Af=s._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=$.X)(p),kf=s._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=p=>(kf=s._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=$.Y)(p),Nf=s._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=p=>(Nf=s._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=$.Z)(p),Rf=s._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=p=>(Rf=s._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=$._)(p),Df=s._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=p=>(Df=s._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=$.$)(p),Of=s._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=p=>(Of=s._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=$.aa)(p),$f=s._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=p=>($f=s._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=$.ba)(p),Ff=s._emscripten_bind_PeDefs_get_PE_PARM_X0_0=p=>(Ff=s._emscripten_bind_PeDefs_get_PE_PARM_X0_0=$.ca)(p),Vf=s._emscripten_bind_PeDefs_get_PE_PARM_ND_0=p=>(Vf=s._emscripten_bind_PeDefs_get_PE_PARM_ND_0=$.da)(p),Uf=s._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=p=>(Uf=s._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=$.ea)(p),Wf=s._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=p=>(Wf=s._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=$.fa)(p),zf=s._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=p=>(zf=s._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=$.ga)(p),Gf=s._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=p=>(Gf=s._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=$.ha)(p),Bf=s._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=p=>(Bf=s._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=$.ia)(p),qf=s._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=p=>(qf=s._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=$.ja)(p),jf=s._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=p=>(jf=s._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=$.ka)(p),Hf=s._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=p=>(Hf=s._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=$.la)(p),Zf=s._emscripten_bind_PeFactory_initialize_1=p=>(Zf=s._emscripten_bind_PeFactory_initialize_1=$.ma)(p),Yf=s._emscripten_bind_PeFactory_factoryByType_2=(p,E)=>(Yf=s._emscripten_bind_PeFactory_factoryByType_2=$.na)(p,E),Jf=s._emscripten_bind_PeFactory_fromString_2=(p,E)=>(Jf=s._emscripten_bind_PeFactory_fromString_2=$.oa)(p,E),Xf=s._emscripten_bind_PeFactory_getCode_1=p=>(Xf=s._emscripten_bind_PeFactory_getCode_1=$.pa)(p),Qf=s._emscripten_bind_PeGCSExtent_PeGCSExtent_6=(p,E,U,Y,ie,be)=>(Qf=s._emscripten_bind_PeGCSExtent_PeGCSExtent_6=$.qa)(p,E,U,Y,ie,be),Kf=s._emscripten_bind_PeGCSExtent_getLLon_0=p=>(Kf=s._emscripten_bind_PeGCSExtent_getLLon_0=$.ra)(p),ep=s._emscripten_bind_PeGCSExtent_getSLat_0=p=>(ep=s._emscripten_bind_PeGCSExtent_getSLat_0=$.sa)(p),tp=s._emscripten_bind_PeGCSExtent_getRLon_0=p=>(tp=s._emscripten_bind_PeGCSExtent_getRLon_0=$.ta)(p),rp=s._emscripten_bind_PeGCSExtent_getNLat_0=p=>(rp=s._emscripten_bind_PeGCSExtent_getNLat_0=$.ua)(p),np=s._emscripten_bind_PeGCSExtent___destroy___0=p=>(np=s._emscripten_bind_PeGCSExtent___destroy___0=$.va)(p),ip=s._emscripten_bind_PeGeogcs_getDatum_0=p=>(ip=s._emscripten_bind_PeGeogcs_getDatum_0=$.wa)(p),op=s._emscripten_bind_PeGeogcs_getPrimem_0=p=>(op=s._emscripten_bind_PeGeogcs_getPrimem_0=$.xa)(p),sp=s._emscripten_bind_PeGeogcs_getUnit_0=p=>(sp=s._emscripten_bind_PeGeogcs_getUnit_0=$.ya)(p),ap=s._emscripten_bind_PeGeogcs_getCode_0=p=>(ap=s._emscripten_bind_PeGeogcs_getCode_0=$.za)(p),lp=s._emscripten_bind_PeGeogcs_getName_1=(p,E)=>(lp=s._emscripten_bind_PeGeogcs_getName_1=$.Aa)(p,E),cp=s._emscripten_bind_PeGeogcs_getType_0=p=>(cp=s._emscripten_bind_PeGeogcs_getType_0=$.Ba)(p),up=s._emscripten_bind_PeGeogtran_isEqual_1=(p,E)=>(up=s._emscripten_bind_PeGeogtran_isEqual_1=$.Ca)(p,E),dp=s._emscripten_bind_PeGeogtran_getGeogcs1_0=p=>(dp=s._emscripten_bind_PeGeogtran_getGeogcs1_0=$.Da)(p),fp=s._emscripten_bind_PeGeogtran_getGeogcs2_0=p=>(fp=s._emscripten_bind_PeGeogtran_getGeogcs2_0=$.Ea)(p),pp=s._emscripten_bind_PeGeogtran_getParameters_0=p=>(pp=s._emscripten_bind_PeGeogtran_getParameters_0=$.Fa)(p),mp=s._emscripten_bind_PeGeogtran_loadConstants_0=p=>(mp=s._emscripten_bind_PeGeogtran_loadConstants_0=$.Ga)(p),hp=s._emscripten_bind_PeGeogtran_getCode_0=p=>(hp=s._emscripten_bind_PeGeogtran_getCode_0=$.Ha)(p),gp=s._emscripten_bind_PeGeogtran_getName_1=(p,E)=>(gp=s._emscripten_bind_PeGeogtran_getName_1=$.Ia)(p,E),wp=s._emscripten_bind_PeGeogtran_getType_0=p=>(wp=s._emscripten_bind_PeGeogtran_getType_0=$.Ja)(p),yp=s._emscripten_bind_PeGTlistExtended_getGTlist_6=(p,E,U,Y,ie,be)=>(yp=s._emscripten_bind_PeGTlistExtended_getGTlist_6=$.Ka)(p,E,U,Y,ie,be),bc=s._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=p=>(bc=s._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=$.La)(p),_c=s._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=p=>(_c=s._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=$.Ma)(p),bp=s._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=p=>(bp=s._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=$.Na)(p),_p=s._emscripten_bind_PeGTlistExtendedEntry_Delete_1=p=>(_p=s._emscripten_bind_PeGTlistExtendedEntry_Delete_1=$.Oa)(p),vc=s._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=p=>(vc=s._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=$.Pa)(p),vp=s._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=p=>(vp=s._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=$.Qa)(p),Sc=s._emscripten_bind_PeHorizon_getNump_0=p=>(Sc=s._emscripten_bind_PeHorizon_getNump_0=$.Ra)(p),Sp=s._emscripten_bind_PeHorizon_getKind_0=p=>(Sp=s._emscripten_bind_PeHorizon_getKind_0=$.Sa)(p),xp=s._emscripten_bind_PeHorizon_getInclusive_0=p=>(xp=s._emscripten_bind_PeHorizon_getInclusive_0=$.Ta)(p),Cp=s._emscripten_bind_PeHorizon_getSize_0=p=>(Cp=s._emscripten_bind_PeHorizon_getSize_0=$.Ua)(p),xc=s._emscripten_bind_PeHorizon_getCoord_0=p=>(xc=s._emscripten_bind_PeHorizon_getCoord_0=$.Va)(p),Tp=s._emscripten_bind_PeInteger_PeInteger_1=p=>(Tp=s._emscripten_bind_PeInteger_PeInteger_1=$.Wa)(p),Ep=s._emscripten_bind_PeInteger_get_val_0=p=>(Ep=s._emscripten_bind_PeInteger_get_val_0=$.Xa)(p),Mp=s._emscripten_bind_PeInteger_set_val_1=(p,E)=>(Mp=s._emscripten_bind_PeInteger_set_val_1=$.Ya)(p,E),Pp=s._emscripten_bind_PeInteger___destroy___0=p=>(Pp=s._emscripten_bind_PeInteger___destroy___0=$.Za)(p),Lp=s._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=p=>(Lp=s._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=$._a)(p),Ip=s._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=p=>(Ip=s._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=$.$a)(p),Ap=s._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=p=>(Ap=s._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=$.ab)(p),kp=s._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=p=>(kp=s._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=$.bb)(p),Np=s._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=p=>(Np=s._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=$.cb)(p),Rp=s._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=p=>(Rp=s._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=$.db)(p),Dp=s._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=p=>(Dp=s._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=$.eb)(p),Op=s._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=p=>(Op=s._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=$.fb)(p),$p=s._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=p=>($p=s._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=$.gb)(p),Cc=s._emscripten_bind_PeParameter_getValue_0=p=>(Cc=s._emscripten_bind_PeParameter_getValue_0=$.hb)(p),Fp=s._emscripten_bind_PeParameter_getCode_0=p=>(Fp=s._emscripten_bind_PeParameter_getCode_0=$.ib)(p),Tc=s._emscripten_bind_PeParameter_getName_1=(p,E)=>(Tc=s._emscripten_bind_PeParameter_getName_1=$.jb)(p,E),Vp=s._emscripten_bind_PeParameter_getType_0=p=>(Vp=s._emscripten_bind_PeParameter_getType_0=$.kb)(p),Up=s._emscripten_bind_PePCSInfo_getCentralMeridian_0=p=>(Up=s._emscripten_bind_PePCSInfo_getCentralMeridian_0=$.lb)(p),Wp=s._emscripten_bind_PePCSInfo_getDomainMinx_0=p=>(Wp=s._emscripten_bind_PePCSInfo_getDomainMinx_0=$.mb)(p),zp=s._emscripten_bind_PePCSInfo_getDomainMiny_0=p=>(zp=s._emscripten_bind_PePCSInfo_getDomainMiny_0=$.nb)(p),Gp=s._emscripten_bind_PePCSInfo_getDomainMaxx_0=p=>(Gp=s._emscripten_bind_PePCSInfo_getDomainMaxx_0=$.ob)(p),Bp=s._emscripten_bind_PePCSInfo_getDomainMaxy_0=p=>(Bp=s._emscripten_bind_PePCSInfo_getDomainMaxy_0=$.pb)(p),qp=s._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=p=>(qp=s._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=$.qb)(p),jp=s._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=p=>(jp=s._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=$.rb)(p),Hp=s._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=p=>(Hp=s._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=$.sb)(p),Zp=s._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=p=>(Zp=s._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=$.tb)(p),Yp=s._emscripten_bind_PePCSInfo_isDensificationNeeded_0=p=>(Yp=s._emscripten_bind_PePCSInfo_isDensificationNeeded_0=$.ub)(p),Jp=s._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=p=>(Jp=s._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=$.vb)(p),Xp=s._emscripten_bind_PePCSInfo_isPannableRectangle_0=p=>(Xp=s._emscripten_bind_PePCSInfo_isPannableRectangle_0=$.wb)(p),Qp=s._emscripten_bind_PePCSInfo_generate_2=(p,E)=>(Qp=s._emscripten_bind_PePCSInfo_generate_2=$.xb)(p,E),Kp=s._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=p=>(Kp=s._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=$.yb)(p),em=s._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=p=>(em=s._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=$.zb)(p),tm=s._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=p=>(tm=s._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=$.Ab)(p),rm=s._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=p=>(rm=s._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=$.Bb)(p),nm=s._emscripten_bind_PePrimem_getLongitude_0=p=>(nm=s._emscripten_bind_PePrimem_getLongitude_0=$.Cb)(p),im=s._emscripten_bind_PePrimem_getCode_0=p=>(im=s._emscripten_bind_PePrimem_getCode_0=$.Db)(p),om=s._emscripten_bind_PePrimem_getName_1=(p,E)=>(om=s._emscripten_bind_PePrimem_getName_1=$.Eb)(p,E),sm=s._emscripten_bind_PePrimem_getType_0=p=>(sm=s._emscripten_bind_PePrimem_getType_0=$.Fb)(p),am=s._emscripten_bind_PeProjcs_getGeogcs_0=p=>(am=s._emscripten_bind_PeProjcs_getGeogcs_0=$.Gb)(p),lm=s._emscripten_bind_PeProjcs_getParameters_0=p=>(lm=s._emscripten_bind_PeProjcs_getParameters_0=$.Hb)(p),cm=s._emscripten_bind_PeProjcs_getUnit_0=p=>(cm=s._emscripten_bind_PeProjcs_getUnit_0=$.Ib)(p),um=s._emscripten_bind_PeProjcs_loadConstants_0=p=>(um=s._emscripten_bind_PeProjcs_loadConstants_0=$.Jb)(p),dm=s._emscripten_bind_PeProjcs_horizonGcsGenerate_0=p=>(dm=s._emscripten_bind_PeProjcs_horizonGcsGenerate_0=$.Kb)(p),fm=s._emscripten_bind_PeProjcs_horizonPcsGenerate_0=p=>(fm=s._emscripten_bind_PeProjcs_horizonPcsGenerate_0=$.Lb)(p),pm=s._emscripten_bind_PeProjcs_getCode_0=p=>(pm=s._emscripten_bind_PeProjcs_getCode_0=$.Mb)(p),mm=s._emscripten_bind_PeProjcs_getName_1=(p,E)=>(mm=s._emscripten_bind_PeProjcs_getName_1=$.Nb)(p,E),hm=s._emscripten_bind_PeProjcs_getType_0=p=>(hm=s._emscripten_bind_PeProjcs_getType_0=$.Ob)(p),gm=s._emscripten_bind_PeSpheroid_getAxis_0=p=>(gm=s._emscripten_bind_PeSpheroid_getAxis_0=$.Pb)(p),wm=s._emscripten_bind_PeSpheroid_getFlattening_0=p=>(wm=s._emscripten_bind_PeSpheroid_getFlattening_0=$.Qb)(p),ym=s._emscripten_bind_PeSpheroid_getCode_0=p=>(ym=s._emscripten_bind_PeSpheroid_getCode_0=$.Rb)(p),bm=s._emscripten_bind_PeSpheroid_getName_1=(p,E)=>(bm=s._emscripten_bind_PeSpheroid_getName_1=$.Sb)(p,E),_m=s._emscripten_bind_PeSpheroid_getType_0=p=>(_m=s._emscripten_bind_PeSpheroid_getType_0=$.Tb)(p),vm=s._emscripten_bind_PeUnit_getUnitFactor_0=p=>(vm=s._emscripten_bind_PeUnit_getUnitFactor_0=$.Ub)(p),Sm=s._emscripten_bind_PeUnit_getCode_0=p=>(Sm=s._emscripten_bind_PeUnit_getCode_0=$.Vb)(p),xm=s._emscripten_bind_PeUnit_getName_1=(p,E)=>(xm=s._emscripten_bind_PeUnit_getName_1=$.Wb)(p,E),Cm=s._emscripten_bind_PeUnit_getType_0=p=>(Cm=s._emscripten_bind_PeUnit_getType_0=$.Xb)(p),Tm=s._emscripten_bind_PeVersion_version_string_0=p=>(Tm=s._emscripten_bind_PeVersion_version_string_0=$.Yb)(p);function Em(){function p(){ka||(ka=!0,s.calledRun=!0,G||(we(),t(s),Pe()))}Ft>0||(de(),Ft>0||p())}function ot(){}function ws(p){return(p||ot).__cache__}function Ct(p,E){var U=ws(E),Y=U[p];return Y||((Y=Object.create((E||ot).prototype)).ptr=p,U[p]=Y)}function Mw(p,E){return Ct(p.ptr,E)}function Pw(p){if(!p.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";p.__destroy__(),delete ws(p.__class__)[p.ptr]}function Lw(p,E){return p.ptr===E.ptr}function Iw(p){return p.ptr}function Aw(p){return p.__class__}s._pe_getPeGTlistExtendedEntrySize=()=>(s._pe_getPeGTlistExtendedEntrySize=$.Zb)(),s._pe_getPeGTlistExtendedGTsSize=()=>(s._pe_getPeGTlistExtendedGTsSize=$._b)(),s._pe_getPeHorizonSize=()=>(s._pe_getPeHorizonSize=$.$b)(),s._pe_geog_to_geog=(p,E,U,Y,ie)=>(s._pe_geog_to_geog=$.bc)(p,E,U,Y,ie),s._pe_geog_to_proj=(p,E,U)=>(s._pe_geog_to_proj=$.cc)(p,E,U),s._pe_geog_to_dd=(p,E,U,Y,ie)=>(s._pe_geog_to_dd=$.dc)(p,E,U,Y,ie),s._pe_dd_to_geog=(p,E,U,Y)=>(s._pe_dd_to_geog=$.ec)(p,E,U,Y),s._pe_geog_to_ddm=(p,E,U,Y,ie)=>(s._pe_geog_to_ddm=$.fc)(p,E,U,Y,ie),s._pe_ddm_to_geog=(p,E,U,Y)=>(s._pe_ddm_to_geog=$.gc)(p,E,U,Y),s._pe_geog_to_dms=(p,E,U,Y,ie)=>(s._pe_geog_to_dms=$.hc)(p,E,U,Y,ie),s._pe_dms_to_geog=(p,E,U,Y)=>(s._pe_dms_to_geog=$.ic)(p,E,U,Y),s._pe_geog_to_mgrs_extended=(p,E,U,Y,ie,be,ze)=>(s._pe_geog_to_mgrs_extended=$.jc)(p,E,U,Y,ie,be,ze),s._pe_mgrs_to_geog_extended=(p,E,U,Y,ie)=>(s._pe_mgrs_to_geog_extended=$.kc)(p,E,U,Y,ie),s._pe_geog_to_usng=(p,E,U,Y,ie,be,ze)=>(s._pe_geog_to_usng=$.lc)(p,E,U,Y,ie,be,ze),s._pe_usng_to_geog=(p,E,U,Y)=>(s._pe_usng_to_geog=$.mc)(p,E,U,Y),s._pe_geog_to_utm=(p,E,U,Y,ie)=>(s._pe_geog_to_utm=$.nc)(p,E,U,Y,ie),s._pe_utm_to_geog=(p,E,U,Y,ie)=>(s._pe_utm_to_geog=$.oc)(p,E,U,Y,ie),s._pe_object_to_string_ext=(p,E,U)=>(s._pe_object_to_string_ext=$.pc)(p,E,U),s._pe_proj_to_geog_center=(p,E,U,Y)=>(s._pe_proj_to_geog_center=$.qc)(p,E,U,Y),s.getValue=uw,s.UTF8ToString=Wr,xt=function p(){ka||Em(),ka||(xt=p)},Em(),ot.prototype=Object.create(ot.prototype),ot.prototype.constructor=ot,ot.prototype.__class__=ot,ot.__cache__={},s.WrapperObject=ot,s.getCache=ws,s.wrapPointer=Ct,s.castObject=Mw,s.NULL=Ct(0),s.destroy=Pw,s.compare=Lw,s.getPointer=Iw,s.getClass=Aw;var ve={buffer:0,size:0,pos:0,temps:[],needed:0,prepare(){if(ve.needed){for(var p=0;p<ve.temps.length;p++)s._webidl_free(ve.temps[p]);ve.temps.length=0,s._webidl_free(ve.buffer),ve.buffer=0,ve.size+=ve.needed,ve.needed=0}ve.buffer||(ve.size+=128,ve.buffer=s._webidl_malloc(ve.size),D(ve.buffer)),ve.pos=0},alloc(p,E){D(ve.buffer);var U,Y=E.BYTES_PER_ELEMENT,ie=p.length*Y;return ie=Tw(ie,8),ve.pos+ie>=ve.size?(D(ie>0),ve.needed+=ie,U=s._webidl_malloc(ie),ve.temps.push(U)):(U=ve.buffer+ve.pos,ve.pos+=ie),U},copy(p,E,U){U/=E.BYTES_PER_ELEMENT;for(var Y=0;Y<p.length;Y++)E[U+Y]=p[Y]}};function Ec(p){if(typeof p=="string"){var E=cf(p),U=ve.alloc(E,Z);return ve.copy(E,Z,U),U}return p}function Jr(p){if(typeof p=="object"){var E=ve.alloc(p,Z);return ve.copy(p,Z,E),E}return p}function kw(p){if(typeof p=="object"){var E=ve.alloc(p,ne);return ve.copy(p,ne,E),E}return p}function Nw(p){if(typeof p=="object"){var E=ve.alloc(p,te);return ve.copy(p,te,E),E}return p}function Rw(p){if(typeof p=="object"){var E=ve.alloc(p,ge);return ve.copy(p,ge,E),E}return p}function Dw(p){if(typeof p=="object"){var E=ve.alloc(p,ue);return ve.copy(p,ue,E),E}return p}function dt(){throw"cannot construct a PeObject, no constructor in IDL"}function lr(){throw"cannot construct a PeCoordsys, no constructor in IDL"}function Tn(){throw"cannot construct a VoidPtr, no constructor in IDL"}function Yt(){throw"cannot construct a PeDatum, no constructor in IDL"}function H(){throw"cannot construct a PeDefs, no constructor in IDL"}function cr(){throw"cannot construct a PeFactory, no constructor in IDL"}function Lt(p,E,U,Y,ie,be){p&&typeof p=="object"&&(p=p.ptr),E&&typeof E=="object"&&(E=E.ptr),U&&typeof U=="object"&&(U=U.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),ie&&typeof ie=="object"&&(ie=ie.ptr),be&&typeof be=="object"&&(be=be.ptr),this.ptr=Qf(p,E,U,Y,ie,be),ws(Lt)[this.ptr]=this}function ft(){throw"cannot construct a PeGeogcs, no constructor in IDL"}function st(){throw"cannot construct a PeGeogtran, no constructor in IDL"}function Pr(){throw"cannot construct a PeGTlistExtended, no constructor in IDL"}function br(){throw"cannot construct a PeGTlistExtendedEntry, no constructor in IDL"}function zr(){throw"cannot construct a PeGTlistExtendedGTs, no constructor in IDL"}function Tt(){throw"cannot construct a PeHorizon, no constructor in IDL"}function Vt(p){p&&typeof p=="object"&&(p=p.ptr),this.ptr=Tp(p),ws(Vt)[this.ptr]=this}function je(){throw"cannot construct a PeNotationMgrs, no constructor in IDL"}function ct(){throw"cannot construct a PeNotationUtm, no constructor in IDL"}function ur(){throw"cannot construct a PeParameter, no constructor in IDL"}function ye(){throw"cannot construct a PePCSInfo, no constructor in IDL"}function Jt(){throw"cannot construct a PePrimem, no constructor in IDL"}function tt(){throw"cannot construct a PeProjcs, no constructor in IDL"}function It(){throw"cannot construct a PeSpheroid, no constructor in IDL"}function Ut(){throw"cannot construct a PeUnit, no constructor in IDL"}function En(){throw"cannot construct a PeVersion, no constructor in IDL"}return dt.prototype=Object.create(ot.prototype),dt.prototype.constructor=dt,dt.prototype.__class__=dt,dt.__cache__={},s.PeObject=dt,dt.prototype.getCode=dt.prototype.getCode=function(){var p=this.ptr;return uf(p)},dt.prototype.getName=dt.prototype.getName=function(p){var E=this.ptr;return ve.prepare(),typeof p=="object"&&(p=Jr(p)),Wr(df(E,p))},dt.prototype.getType=dt.prototype.getType=function(){var p=this.ptr;return ff(p)},lr.prototype=Object.create(dt.prototype),lr.prototype.constructor=lr,lr.prototype.__class__=lr,lr.__cache__={},s.PeCoordsys=lr,lr.prototype.getCode=lr.prototype.getCode=function(){var p=this.ptr;return pf(p)},lr.prototype.getName=lr.prototype.getName=function(p){var E=this.ptr;return ve.prepare(),typeof p=="object"&&(p=Jr(p)),Wr(gs(E,p))},lr.prototype.getType=lr.prototype.getType=function(){var p=this.ptr;return mf(p)},Tn.prototype=Object.create(ot.prototype),Tn.prototype.constructor=Tn,Tn.prototype.__class__=Tn,Tn.__cache__={},s.VoidPtr=Tn,Tn.prototype.__destroy__=Tn.prototype.__destroy__=function(){var p=this.ptr;hf(p)},Yt.prototype=Object.create(dt.prototype),Yt.prototype.constructor=Yt,Yt.prototype.__class__=Yt,Yt.__cache__={},s.PeDatum=Yt,Yt.prototype.getSpheroid=Yt.prototype.getSpheroid=function(){var p=this.ptr;return Ct(gf(p),It)},Yt.prototype.getCode=Yt.prototype.getCode=function(){var p=this.ptr;return wf(p)},Yt.prototype.getName=Yt.prototype.getName=function(p){var E=this.ptr;return ve.prepare(),typeof p=="object"&&(p=Jr(p)),Wr(hc(E,p))},Yt.prototype.getType=Yt.prototype.getType=function(){var p=this.ptr;return yf(p)},H.prototype=Object.create(ot.prototype),H.prototype.constructor=H,H.prototype.__class__=H,H.__cache__={},s.PeDefs=H,H.prototype.get_PE_BUFFER_MAX=H.prototype.get_PE_BUFFER_MAX=function(){var p=this.ptr;return bf(p)},Object.defineProperty(H.prototype,"PE_BUFFER_MAX",{get:H.prototype.get_PE_BUFFER_MAX}),H.prototype.get_PE_NAME_MAX=H.prototype.get_PE_NAME_MAX=function(){var p=this.ptr;return gc(p)},Object.defineProperty(H.prototype,"PE_NAME_MAX",{get:H.prototype.get_PE_NAME_MAX}),H.prototype.get_PE_MGRS_MAX=H.prototype.get_PE_MGRS_MAX=function(){var p=this.ptr;return _f(p)},Object.defineProperty(H.prototype,"PE_MGRS_MAX",{get:H.prototype.get_PE_MGRS_MAX}),H.prototype.get_PE_USNG_MAX=H.prototype.get_PE_USNG_MAX=function(){var p=this.ptr;return wc(p)},Object.defineProperty(H.prototype,"PE_USNG_MAX",{get:H.prototype.get_PE_USNG_MAX}),H.prototype.get_PE_DD_MAX=H.prototype.get_PE_DD_MAX=function(){var p=this.ptr;return yc(p)},Object.defineProperty(H.prototype,"PE_DD_MAX",{get:H.prototype.get_PE_DD_MAX}),H.prototype.get_PE_DMS_MAX=H.prototype.get_PE_DMS_MAX=function(){var p=this.ptr;return vf(p)},Object.defineProperty(H.prototype,"PE_DMS_MAX",{get:H.prototype.get_PE_DMS_MAX}),H.prototype.get_PE_DDM_MAX=H.prototype.get_PE_DDM_MAX=function(){var p=this.ptr;return Sf(p)},Object.defineProperty(H.prototype,"PE_DDM_MAX",{get:H.prototype.get_PE_DDM_MAX}),H.prototype.get_PE_UTM_MAX=H.prototype.get_PE_UTM_MAX=function(){var p=this.ptr;return xf(p)},Object.defineProperty(H.prototype,"PE_UTM_MAX",{get:H.prototype.get_PE_UTM_MAX}),H.prototype.get_PE_PARM_MAX=H.prototype.get_PE_PARM_MAX=function(){var p=this.ptr;return Cf(p)},Object.defineProperty(H.prototype,"PE_PARM_MAX",{get:H.prototype.get_PE_PARM_MAX}),H.prototype.get_PE_TYPE_NONE=H.prototype.get_PE_TYPE_NONE=function(){var p=this.ptr;return Tf(p)},Object.defineProperty(H.prototype,"PE_TYPE_NONE",{get:H.prototype.get_PE_TYPE_NONE}),H.prototype.get_PE_TYPE_GEOGCS=H.prototype.get_PE_TYPE_GEOGCS=function(){var p=this.ptr;return Ef(p)},Object.defineProperty(H.prototype,"PE_TYPE_GEOGCS",{get:H.prototype.get_PE_TYPE_GEOGCS}),H.prototype.get_PE_TYPE_PROJCS=H.prototype.get_PE_TYPE_PROJCS=function(){var p=this.ptr;return Mf(p)},Object.defineProperty(H.prototype,"PE_TYPE_PROJCS",{get:H.prototype.get_PE_TYPE_PROJCS}),H.prototype.get_PE_TYPE_GEOGTRAN=H.prototype.get_PE_TYPE_GEOGTRAN=function(){var p=this.ptr;return Pf(p)},Object.defineProperty(H.prototype,"PE_TYPE_GEOGTRAN",{get:H.prototype.get_PE_TYPE_GEOGTRAN}),H.prototype.get_PE_TYPE_COORDSYS=H.prototype.get_PE_TYPE_COORDSYS=function(){var p=this.ptr;return Lf(p)},Object.defineProperty(H.prototype,"PE_TYPE_COORDSYS",{get:H.prototype.get_PE_TYPE_COORDSYS}),H.prototype.get_PE_TYPE_UNIT=H.prototype.get_PE_TYPE_UNIT=function(){var p=this.ptr;return If(p)},Object.defineProperty(H.prototype,"PE_TYPE_UNIT",{get:H.prototype.get_PE_TYPE_UNIT}),H.prototype.get_PE_TYPE_LINUNIT=H.prototype.get_PE_TYPE_LINUNIT=function(){var p=this.ptr;return Af(p)},Object.defineProperty(H.prototype,"PE_TYPE_LINUNIT",{get:H.prototype.get_PE_TYPE_LINUNIT}),H.prototype.get_PE_STR_OPTS_NONE=H.prototype.get_PE_STR_OPTS_NONE=function(){var p=this.ptr;return kf(p)},Object.defineProperty(H.prototype,"PE_STR_OPTS_NONE",{get:H.prototype.get_PE_STR_OPTS_NONE}),H.prototype.get_PE_STR_AUTH_NONE=H.prototype.get_PE_STR_AUTH_NONE=function(){var p=this.ptr;return Nf(p)},Object.defineProperty(H.prototype,"PE_STR_AUTH_NONE",{get:H.prototype.get_PE_STR_AUTH_NONE}),H.prototype.get_PE_STR_AUTH_TOP=H.prototype.get_PE_STR_AUTH_TOP=function(){var p=this.ptr;return Rf(p)},Object.defineProperty(H.prototype,"PE_STR_AUTH_TOP",{get:H.prototype.get_PE_STR_AUTH_TOP}),H.prototype.get_PE_STR_NAME_CANON=H.prototype.get_PE_STR_NAME_CANON=function(){var p=this.ptr;return Df(p)},Object.defineProperty(H.prototype,"PE_STR_NAME_CANON",{get:H.prototype.get_PE_STR_NAME_CANON}),H.prototype.get_PE_STR_FMT_WKT=H.prototype.get_PE_STR_FMT_WKT=function(){var p=this.ptr;return Of(p)},Object.defineProperty(H.prototype,"PE_STR_FMT_WKT",{get:H.prototype.get_PE_STR_FMT_WKT}),H.prototype.get_PE_STR_FMT_WKT2=H.prototype.get_PE_STR_FMT_WKT2=function(){var p=this.ptr;return $f(p)},Object.defineProperty(H.prototype,"PE_STR_FMT_WKT2",{get:H.prototype.get_PE_STR_FMT_WKT2}),H.prototype.get_PE_PARM_X0=H.prototype.get_PE_PARM_X0=function(){var p=this.ptr;return Ff(p)},Object.defineProperty(H.prototype,"PE_PARM_X0",{get:H.prototype.get_PE_PARM_X0}),H.prototype.get_PE_PARM_ND=H.prototype.get_PE_PARM_ND=function(){var p=this.ptr;return Vf(p)},Object.defineProperty(H.prototype,"PE_PARM_ND",{get:H.prototype.get_PE_PARM_ND}),H.prototype.get_PE_TRANSFORM_1_TO_2=H.prototype.get_PE_TRANSFORM_1_TO_2=function(){var p=this.ptr;return Uf(p)},Object.defineProperty(H.prototype,"PE_TRANSFORM_1_TO_2",{get:H.prototype.get_PE_TRANSFORM_1_TO_2}),H.prototype.get_PE_TRANSFORM_2_TO_1=H.prototype.get_PE_TRANSFORM_2_TO_1=function(){var p=this.ptr;return Wf(p)},Object.defineProperty(H.prototype,"PE_TRANSFORM_2_TO_1",{get:H.prototype.get_PE_TRANSFORM_2_TO_1}),H.prototype.get_PE_TRANSFORM_P_TO_G=H.prototype.get_PE_TRANSFORM_P_TO_G=function(){var p=this.ptr;return zf(p)},Object.defineProperty(H.prototype,"PE_TRANSFORM_P_TO_G",{get:H.prototype.get_PE_TRANSFORM_P_TO_G}),H.prototype.get_PE_TRANSFORM_G_TO_P=H.prototype.get_PE_TRANSFORM_G_TO_P=function(){var p=this.ptr;return Gf(p)},Object.defineProperty(H.prototype,"PE_TRANSFORM_G_TO_P",{get:H.prototype.get_PE_TRANSFORM_G_TO_P}),H.prototype.get_PE_HORIZON_RECT=H.prototype.get_PE_HORIZON_RECT=function(){var p=this.ptr;return Bf(p)},Object.defineProperty(H.prototype,"PE_HORIZON_RECT",{get:H.prototype.get_PE_HORIZON_RECT}),H.prototype.get_PE_HORIZON_POLY=H.prototype.get_PE_HORIZON_POLY=function(){var p=this.ptr;return qf(p)},Object.defineProperty(H.prototype,"PE_HORIZON_POLY",{get:H.prototype.get_PE_HORIZON_POLY}),H.prototype.get_PE_HORIZON_LINE=H.prototype.get_PE_HORIZON_LINE=function(){var p=this.ptr;return jf(p)},Object.defineProperty(H.prototype,"PE_HORIZON_LINE",{get:H.prototype.get_PE_HORIZON_LINE}),H.prototype.get_PE_HORIZON_DELTA=H.prototype.get_PE_HORIZON_DELTA=function(){var p=this.ptr;return Hf(p)},Object.defineProperty(H.prototype,"PE_HORIZON_DELTA",{get:H.prototype.get_PE_HORIZON_DELTA}),cr.prototype=Object.create(ot.prototype),cr.prototype.constructor=cr,cr.prototype.__class__=cr,cr.__cache__={},s.PeFactory=cr,cr.prototype.initialize=cr.prototype.initialize=function(p){ve.prepare(),p=p&&typeof p=="object"?p.ptr:Ec(p),Zf(p)},cr.prototype.factoryByType=cr.prototype.factoryByType=function(p,E){return p&&typeof p=="object"&&(p=p.ptr),E&&typeof E=="object"&&(E=E.ptr),Ct(Yf(p,E),dt)},cr.prototype.fromString=cr.prototype.fromString=function(p,E){return ve.prepare(),p&&typeof p=="object"&&(p=p.ptr),E=E&&typeof E=="object"?E.ptr:Ec(E),Ct(Jf(p,E),dt)},cr.prototype.getCode=cr.prototype.getCode=function(p){return p&&typeof p=="object"&&(p=p.ptr),Xf(p)},Lt.prototype=Object.create(ot.prototype),Lt.prototype.constructor=Lt,Lt.prototype.__class__=Lt,Lt.__cache__={},s.PeGCSExtent=Lt,Lt.prototype.getLLon=Lt.prototype.getLLon=function(){var p=this.ptr;return Kf(p)},Lt.prototype.getSLat=Lt.prototype.getSLat=function(){var p=this.ptr;return ep(p)},Lt.prototype.getRLon=Lt.prototype.getRLon=function(){var p=this.ptr;return tp(p)},Lt.prototype.getNLat=Lt.prototype.getNLat=function(){var p=this.ptr;return rp(p)},Lt.prototype.__destroy__=Lt.prototype.__destroy__=function(){var p=this.ptr;np(p)},ft.prototype=Object.create(lr.prototype),ft.prototype.constructor=ft,ft.prototype.__class__=ft,ft.__cache__={},s.PeGeogcs=ft,ft.prototype.getDatum=ft.prototype.getDatum=function(){var p=this.ptr;return Ct(ip(p),Yt)},ft.prototype.getPrimem=ft.prototype.getPrimem=function(){var p=this.ptr;return Ct(op(p),Jt)},ft.prototype.getUnit=ft.prototype.getUnit=function(){var p=this.ptr;return Ct(sp(p),Ut)},ft.prototype.getCode=ft.prototype.getCode=function(){var p=this.ptr;return ap(p)},ft.prototype.getName=ft.prototype.getName=function(p){var E=this.ptr;return ve.prepare(),typeof p=="object"&&(p=Jr(p)),Wr(lp(E,p))},ft.prototype.getType=ft.prototype.getType=function(){var p=this.ptr;return cp(p)},st.prototype=Object.create(dt.prototype),st.prototype.constructor=st,st.prototype.__class__=st,st.__cache__={},s.PeGeogtran=st,st.prototype.isEqual=st.prototype.isEqual=function(p){var E=this.ptr;return p&&typeof p=="object"&&(p=p.ptr),!!up(E,p)},st.prototype.getGeogcs1=st.prototype.getGeogcs1=function(){var p=this.ptr;return Ct(dp(p),ft)},st.prototype.getGeogcs2=st.prototype.getGeogcs2=function(){var p=this.ptr;return Ct(fp(p),ft)},st.prototype.getParameters=st.prototype.getParameters=function(){var p=this.ptr;return pp(p)},st.prototype.loadConstants=st.prototype.loadConstants=function(){var p=this.ptr;return!!mp(p)},st.prototype.getCode=st.prototype.getCode=function(){var p=this.ptr;return hp(p)},st.prototype.getName=st.prototype.getName=function(p){var E=this.ptr;return ve.prepare(),typeof p=="object"&&(p=Jr(p)),Wr(gp(E,p))},st.prototype.getType=st.prototype.getType=function(){var p=this.ptr;return wp(p)},Pr.prototype=Object.create(ot.prototype),Pr.prototype.constructor=Pr,Pr.prototype.__class__=Pr,Pr.__cache__={},s.PeGTlistExtended=Pr,Pr.prototype.getGTlist=Pr.prototype.getGTlist=function(p,E,U,Y,ie,be){return p&&typeof p=="object"&&(p=p.ptr),E&&typeof E=="object"&&(E=E.ptr),U&&typeof U=="object"&&(U=U.ptr),Y&&typeof Y=="object"&&(Y=Y.ptr),ie&&typeof ie=="object"&&(ie=ie.ptr),be&&typeof be=="object"&&(be=be.ptr),Ct(yp(p,E,U,Y,ie,be),br)},Pr.prototype.get_PE_GTLIST_OPTS_COMMON=Pr.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var p=this.ptr;return bc(p)},Object.defineProperty(Pr.prototype,"PE_GTLIST_OPTS_COMMON",{get:Pr.prototype.get_PE_GTLIST_OPTS_COMMON}),br.prototype=Object.create(ot.prototype),br.prototype.constructor=br,br.prototype.__class__=br,br.__cache__={},s.PeGTlistExtendedEntry=br,br.prototype.getEntries=br.prototype.getEntries=function(){var p=this.ptr;return Ct(_c(p),zr)},br.prototype.getSteps=br.prototype.getSteps=function(){var p=this.ptr;return bp(p)},br.prototype.Delete=br.prototype.Delete=function(p){p&&typeof p=="object"&&(p=p.ptr),_p(p)},zr.prototype=Object.create(ot.prototype),zr.prototype.constructor=zr,zr.prototype.__class__=zr,zr.__cache__={},s.PeGTlistExtendedGTs=zr,zr.prototype.getDirection=zr.prototype.getDirection=function(){var p=this.ptr;return vc(p)},zr.prototype.getGeogtran=zr.prototype.getGeogtran=function(){var p=this.ptr;return Ct(vp(p),st)},Tt.prototype=Object.create(ot.prototype),Tt.prototype.constructor=Tt,Tt.prototype.__class__=Tt,Tt.__cache__={},s.PeHorizon=Tt,Tt.prototype.getNump=Tt.prototype.getNump=function(){var p=this.ptr;return Sc(p)},Tt.prototype.getKind=Tt.prototype.getKind=function(){var p=this.ptr;return Sp(p)},Tt.prototype.getInclusive=Tt.prototype.getInclusive=function(){var p=this.ptr;return xp(p)},Tt.prototype.getSize=Tt.prototype.getSize=function(){var p=this.ptr;return Cp(p)},Tt.prototype.getCoord=Tt.prototype.getCoord=function(){var p=this.ptr;return xc(p)},Vt.prototype=Object.create(ot.prototype),Vt.prototype.constructor=Vt,Vt.prototype.__class__=Vt,Vt.__cache__={},s.PeInteger=Vt,Vt.prototype.get_val=Vt.prototype.get_val=function(){var p=this.ptr;return Ep(p)},Vt.prototype.set_val=Vt.prototype.set_val=function(p){var E=this.ptr;p&&typeof p=="object"&&(p=p.ptr),Mp(E,p)},Object.defineProperty(Vt.prototype,"val",{get:Vt.prototype.get_val,set:Vt.prototype.set_val}),Vt.prototype.__destroy__=Vt.prototype.__destroy__=function(){var p=this.ptr;Pp(p)},je.prototype=Object.create(ot.prototype),je.prototype.constructor=je,je.prototype.__class__=je,je.__cache__={},s.PeNotationMgrs=je,je.prototype.get_PE_MGRS_STYLE_NEW=je.prototype.get_PE_MGRS_STYLE_NEW=function(){var p=this.ptr;return Lp(p)},Object.defineProperty(je.prototype,"PE_MGRS_STYLE_NEW",{get:je.prototype.get_PE_MGRS_STYLE_NEW}),je.prototype.get_PE_MGRS_STYLE_OLD=je.prototype.get_PE_MGRS_STYLE_OLD=function(){var p=this.ptr;return Ip(p)},Object.defineProperty(je.prototype,"PE_MGRS_STYLE_OLD",{get:je.prototype.get_PE_MGRS_STYLE_OLD}),je.prototype.get_PE_MGRS_STYLE_AUTO=je.prototype.get_PE_MGRS_STYLE_AUTO=function(){var p=this.ptr;return Ap(p)},Object.defineProperty(je.prototype,"PE_MGRS_STYLE_AUTO",{get:je.prototype.get_PE_MGRS_STYLE_AUTO}),je.prototype.get_PE_MGRS_180_ZONE_1_PLUS=je.prototype.get_PE_MGRS_180_ZONE_1_PLUS=function(){var p=this.ptr;return kp(p)},Object.defineProperty(je.prototype,"PE_MGRS_180_ZONE_1_PLUS",{get:je.prototype.get_PE_MGRS_180_ZONE_1_PLUS}),je.prototype.get_PE_MGRS_ADD_SPACES=je.prototype.get_PE_MGRS_ADD_SPACES=function(){var p=this.ptr;return Np(p)},Object.defineProperty(je.prototype,"PE_MGRS_ADD_SPACES",{get:je.prototype.get_PE_MGRS_ADD_SPACES}),ct.prototype=Object.create(ot.prototype),ct.prototype.constructor=ct,ct.prototype.__class__=ct,ct.__cache__={},s.PeNotationUtm=ct,ct.prototype.get_PE_UTM_OPTS_NONE=ct.prototype.get_PE_UTM_OPTS_NONE=function(){var p=this.ptr;return Rp(p)},Object.defineProperty(ct.prototype,"PE_UTM_OPTS_NONE",{get:ct.prototype.get_PE_UTM_OPTS_NONE}),ct.prototype.get_PE_UTM_OPTS_NS=ct.prototype.get_PE_UTM_OPTS_NS=function(){var p=this.ptr;return Dp(p)},Object.defineProperty(ct.prototype,"PE_UTM_OPTS_NS",{get:ct.prototype.get_PE_UTM_OPTS_NS}),ct.prototype.get_PE_UTM_OPTS_NS_STRICT=ct.prototype.get_PE_UTM_OPTS_NS_STRICT=function(){var p=this.ptr;return Op(p)},Object.defineProperty(ct.prototype,"PE_UTM_OPTS_NS_STRICT",{get:ct.prototype.get_PE_UTM_OPTS_NS_STRICT}),ct.prototype.get_PE_UTM_OPTS_ADD_SPACES=ct.prototype.get_PE_UTM_OPTS_ADD_SPACES=function(){var p=this.ptr;return $p(p)},Object.defineProperty(ct.prototype,"PE_UTM_OPTS_ADD_SPACES",{get:ct.prototype.get_PE_UTM_OPTS_ADD_SPACES}),ur.prototype=Object.create(dt.prototype),ur.prototype.constructor=ur,ur.prototype.__class__=ur,ur.__cache__={},s.PeParameter=ur,ur.prototype.getValue=ur.prototype.getValue=function(){var p=this.ptr;return Cc(p)},ur.prototype.getCode=ur.prototype.getCode=function(){var p=this.ptr;return Fp(p)},ur.prototype.getName=ur.prototype.getName=function(p){var E=this.ptr;return ve.prepare(),typeof p=="object"&&(p=Jr(p)),Wr(Tc(E,p))},ur.prototype.getType=ur.prototype.getType=function(){var p=this.ptr;return Vp(p)},ye.prototype=Object.create(ot.prototype),ye.prototype.constructor=ye,ye.prototype.__class__=ye,ye.__cache__={},s.PePCSInfo=ye,ye.prototype.getCentralMeridian=ye.prototype.getCentralMeridian=function(){var p=this.ptr;return Up(p)},ye.prototype.getDomainMinx=ye.prototype.getDomainMinx=function(){var p=this.ptr;return Wp(p)},ye.prototype.getDomainMiny=ye.prototype.getDomainMiny=function(){var p=this.ptr;return zp(p)},ye.prototype.getDomainMaxx=ye.prototype.getDomainMaxx=function(){var p=this.ptr;return Gp(p)},ye.prototype.getDomainMaxy=ye.prototype.getDomainMaxy=function(){var p=this.ptr;return Bp(p)},ye.prototype.getNorthPoleLocation=ye.prototype.getNorthPoleLocation=function(){var p=this.ptr;return qp(p)},ye.prototype.getNorthPoleGeometry=ye.prototype.getNorthPoleGeometry=function(){var p=this.ptr;return jp(p)},ye.prototype.getSouthPoleLocation=ye.prototype.getSouthPoleLocation=function(){var p=this.ptr;return Hp(p)},ye.prototype.getSouthPoleGeometry=ye.prototype.getSouthPoleGeometry=function(){var p=this.ptr;return Zp(p)},ye.prototype.isDensificationNeeded=ye.prototype.isDensificationNeeded=function(){var p=this.ptr;return!!Yp(p)},ye.prototype.isGcsHorizonMultiOverlap=ye.prototype.isGcsHorizonMultiOverlap=function(){var p=this.ptr;return!!Jp(p)},ye.prototype.isPannableRectangle=ye.prototype.isPannableRectangle=function(){var p=this.ptr;return!!Xp(p)},ye.prototype.generate=ye.prototype.generate=function(p,E){return p&&typeof p=="object"&&(p=p.ptr),E&&typeof E=="object"&&(E=E.ptr),Ct(Qp(p,E),ye)},ye.prototype.get_PE_PCSINFO_OPTION_NONE=ye.prototype.get_PE_PCSINFO_OPTION_NONE=function(){var p=this.ptr;return Kp(p)},Object.defineProperty(ye.prototype,"PE_PCSINFO_OPTION_NONE",{get:ye.prototype.get_PE_PCSINFO_OPTION_NONE}),ye.prototype.get_PE_PCSINFO_OPTION_DOMAIN=ye.prototype.get_PE_PCSINFO_OPTION_DOMAIN=function(){var p=this.ptr;return em(p)},Object.defineProperty(ye.prototype,"PE_PCSINFO_OPTION_DOMAIN",{get:ye.prototype.get_PE_PCSINFO_OPTION_DOMAIN}),ye.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=ye.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=function(){var p=this.ptr;return tm(p)},Object.defineProperty(ye.prototype,"PE_POLE_OUTSIDE_BOUNDARY",{get:ye.prototype.get_PE_POLE_OUTSIDE_BOUNDARY}),ye.prototype.get_PE_POLE_POINT=ye.prototype.get_PE_POLE_POINT=function(){var p=this.ptr;return rm(p)},Object.defineProperty(ye.prototype,"PE_POLE_POINT",{get:ye.prototype.get_PE_POLE_POINT}),Jt.prototype=Object.create(dt.prototype),Jt.prototype.constructor=Jt,Jt.prototype.__class__=Jt,Jt.__cache__={},s.PePrimem=Jt,Jt.prototype.getLongitude=Jt.prototype.getLongitude=function(){var p=this.ptr;return nm(p)},Jt.prototype.getCode=Jt.prototype.getCode=function(){var p=this.ptr;return im(p)},Jt.prototype.getName=Jt.prototype.getName=function(p){var E=this.ptr;return ve.prepare(),typeof p=="object"&&(p=Jr(p)),Wr(om(E,p))},Jt.prototype.getType=Jt.prototype.getType=function(){var p=this.ptr;return sm(p)},tt.prototype=Object.create(lr.prototype),tt.prototype.constructor=tt,tt.prototype.__class__=tt,tt.__cache__={},s.PeProjcs=tt,tt.prototype.getGeogcs=tt.prototype.getGeogcs=function(){var p=this.ptr;return Ct(am(p),ft)},tt.prototype.getParameters=tt.prototype.getParameters=function(){var p=this.ptr;return lm(p)},tt.prototype.getUnit=tt.prototype.getUnit=function(){var p=this.ptr;return Ct(cm(p),Ut)},tt.prototype.loadConstants=tt.prototype.loadConstants=function(){var p=this.ptr;return!!um(p)},tt.prototype.horizonGcsGenerate=tt.prototype.horizonGcsGenerate=function(){var p=this.ptr;return Ct(dm(p),Tt)},tt.prototype.horizonPcsGenerate=tt.prototype.horizonPcsGenerate=function(){var p=this.ptr;return Ct(fm(p),Tt)},tt.prototype.getCode=tt.prototype.getCode=function(){var p=this.ptr;return pm(p)},tt.prototype.getName=tt.prototype.getName=function(p){var E=this.ptr;return ve.prepare(),typeof p=="object"&&(p=Jr(p)),Wr(mm(E,p))},tt.prototype.getType=tt.prototype.getType=function(){var p=this.ptr;return hm(p)},It.prototype=Object.create(dt.prototype),It.prototype.constructor=It,It.prototype.__class__=It,It.__cache__={},s.PeSpheroid=It,It.prototype.getAxis=It.prototype.getAxis=function(){var p=this.ptr;return gm(p)},It.prototype.getFlattening=It.prototype.getFlattening=function(){var p=this.ptr;return wm(p)},It.prototype.getCode=It.prototype.getCode=function(){var p=this.ptr;return ym(p)},It.prototype.getName=It.prototype.getName=function(p){var E=this.ptr;return ve.prepare(),typeof p=="object"&&(p=Jr(p)),Wr(bm(E,p))},It.prototype.getType=It.prototype.getType=function(){var p=this.ptr;return _m(p)},Ut.prototype=Object.create(dt.prototype),Ut.prototype.constructor=Ut,Ut.prototype.__class__=Ut,Ut.__cache__={},s.PeUnit=Ut,Ut.prototype.getUnitFactor=Ut.prototype.getUnitFactor=function(){var p=this.ptr;return vm(p)},Ut.prototype.getCode=Ut.prototype.getCode=function(){var p=this.ptr;return Sm(p)},Ut.prototype.getName=Ut.prototype.getName=function(p){var E=this.ptr;return ve.prepare(),typeof p=="object"&&(p=Jr(p)),Wr(xm(E,p))},Ut.prototype.getType=Ut.prototype.getType=function(){var p=this.ptr;return Cm(p)},En.prototype=Object.create(ot.prototype),En.prototype.constructor=En,En.prototype.__class__=En,En.__cache__={},s.PeVersion=En,En.prototype.version_string=En.prototype.version_string=function(){var p=this.ptr;return Wr(Tm(p))},s.ensureCache=ve,s.ensureString=Ec,s.ensureInt8=Jr,s.ensureInt16=kw,s.ensureInt32=Nw,s.ensureFloat32=Rw,s.ensureFloat64=Dw,a},DP.exports=OP;PB=AP($P.exports),LB=Object.freeze(Object.defineProperty({__proto__:null,default:PB},Symbol.toStringTag,{value:"Module"}))});function UP(){return!!I}function IB(){return!!X("esri-wasm")}function WP(){return l4||(l4=Promise.resolve().then(()=>(VP(),FP)).then(e=>e.p).then(({default:e})=>e({locateFile:t=>$l(`esri/geometry/support/${t}`)})).then(e=>{GP(e)}),l4)}function GP(e){function t(o,s,a){o[s]=a(o[s])}I=e,lt.init(),Dg.init(),Og.init(),$g.init(),Fg.init(),zP=class extends I.PeGCSExtent{destroy(){I.destroy(this)}};let r=[I.PeDatum,I.PeGeogcs,I.PeGeogtran,I.PeObject,I.PeParameter,I.PePrimem,I.PeProjcs,I.PeSpheroid,I.PeUnit];for(let o of r)t(o.prototype,"getName",s=>function(){return s.call(this,new Array(lt.PE_NAME_MAX))});for(let o of[I.PeGeogtran,I.PeProjcs])t(o.prototype,"getParameters",s=>function(){let a=new Array(lt.PE_PARM_MAX),u=s.call(this);for(let d=0;d<a.length;d++){let f=I.getValue(u,"*");a[d]=f?I.wrapPointer(f,I.PeParameter):null,u+=Int32Array.BYTES_PER_ELEMENT}return a});t(I.PeHorizon.prototype,"getCoord",o=>function(){let s=this.getSize();if(!s)return null;let a=[];return ls(a,s,o.call(this)),a}),t(I.PeGTlistExtendedEntry.prototype,"getEntries",o=>{let s=I._pe_getPeGTlistExtendedGTsSize();return function(){let a=null,u=o.call(this);if(!I.compare(u,I.NULL)){a=[u];let d=this.getSteps();if(d>1){let f=I.getPointer(u);for(let m=1;m<d;m++)a.push(I.wrapPointer(f+s*m,I.PeGTlistExtendedGTs))}}return a}});let n=I._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 a=null,u=o.call(this);if(!I.compare(u,I.NULL)){a=[u];let d=u.getNump();if(d>1){let f=I.getPointer(u);for(let m=1;m<d;m++)a.push(I.wrapPointer(f+n*m,I.PeHorizon))}}return s.set(o,a),a};t(I.PeProjcs.prototype,"horizonGcsGenerate",i),t(I.PeProjcs.prototype,"horizonPcsGenerate",i),I.PeObject.prototype.toString=function(o=lt.PE_STR_OPTS_NONE){I.ensureCache.prepare();let s=I.getPointer(this),a=I.ensureInt8(new Array(lt.PE_BUFFER_MAX));return I.UTF8ToString(I._pe_object_to_string_ext(s,o,a))}}function Qi(e){if(!e)return;let t=I.getClass(e);if(!t)return;let r=I.getCache(t);if(!r)return;let n=I.getPointer(e);n&&delete r[n]}function Ng(e,t){let r=[],n=new Array(t);for(let i=0;i<e;i++)r.push(I.ensureInt8(n));return r}function wa(e){let t;return Array.isArray(e[0])?(t=[],e.forEach(r=>{t.push(r[0],r[1])})):t=e,t}function ls(e,t,r,n=!1){if(n)for(let i=0;i<2*t;i++)e[i]=I.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]=I.getValue(r,"double"),e[o][1]=I.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}var l4,I,c4,lt,Rg,zP,Dg,u4,d4,f4,Og,p4,$g,Fg,m4,Sme,BP=P(()=>{m0();Fe();I=null;(function(e){function t(o,s,a){I.ensureCache.prepare();let u=wa(a),d=a===u,f=I.ensureFloat64(u),m=I._pe_geog_to_proj(I.getPointer(o),s,f);return m&&ls(a,s,f,d),m}function r(o,s,a,u){switch(u){case lt.PE_TRANSFORM_P_TO_G:return n(o,s,a);case lt.PE_TRANSFORM_G_TO_P:return t(o,s,a)}return 0}function n(o,s,a){return i(o,s,a,0)}function i(o,s,a,u){I.ensureCache.prepare();let d=wa(a),f=a===d,m=I.ensureFloat64(d),w=I._pe_proj_to_geog_center(I.getPointer(o),s,m,u);return w&&ls(a,s,m,f),w}e.geogToProj=t,e.projGeog=r,e.projToGeog=n,e.projToGeogCenter=i})(c4||(c4={})),function(e){function t(){e.PE_BUFFER_MAX=I.PeDefs.prototype.PE_BUFFER_MAX,e.PE_NAME_MAX=I.PeDefs.prototype.PE_NAME_MAX,e.PE_MGRS_MAX=I.PeDefs.prototype.PE_MGRS_MAX,e.PE_USNG_MAX=I.PeDefs.prototype.PE_USNG_MAX,e.PE_DD_MAX=I.PeDefs.prototype.PE_DD_MAX,e.PE_DDM_MAX=I.PeDefs.prototype.PE_DDM_MAX,e.PE_DMS_MAX=I.PeDefs.prototype.PE_DMS_MAX,e.PE_UTM_MAX=I.PeDefs.prototype.PE_UTM_MAX,e.PE_PARM_MAX=I.PeDefs.prototype.PE_PARM_MAX,e.PE_TYPE_NONE=I.PeDefs.prototype.PE_TYPE_NONE,e.PE_TYPE_GEOGCS=I.PeDefs.prototype.PE_TYPE_GEOGCS,e.PE_TYPE_PROJCS=I.PeDefs.prototype.PE_TYPE_PROJCS,e.PE_TYPE_GEOGTRAN=I.PeDefs.prototype.PE_TYPE_GEOGTRAN,e.PE_TYPE_COORDSYS=I.PeDefs.prototype.PE_TYPE_COORDSYS,e.PE_TYPE_UNIT=I.PeDefs.prototype.PE_TYPE_UNIT,e.PE_TYPE_LINUNIT=I.PeDefs.prototype.PE_TYPE_LINUNIT,e.PE_STR_OPTS_NONE=I.PeDefs.prototype.PE_STR_OPTS_NONE,e.PE_STR_AUTH_NONE=I.PeDefs.prototype.PE_STR_AUTH_NONE,e.PE_STR_AUTH_TOP=I.PeDefs.prototype.PE_STR_AUTH_TOP,e.PE_STR_NAME_CANON=I.PeDefs.prototype.PE_STR_NAME_CANON,e.PE_STR_FMT_WKT=I.PeDefs.prototype.PE_STR_FMT_WKT,e.PE_STR_FMT_WKT2=I.PeDefs.prototype.PE_STR_FMT_WKT2,e.PE_PARM_X0=I.PeDefs.prototype.PE_PARM_X0,e.PE_PARM_ND=I.PeDefs.prototype.PE_PARM_ND,e.PE_TRANSFORM_1_TO_2=I.PeDefs.prototype.PE_TRANSFORM_1_TO_2,e.PE_TRANSFORM_2_TO_1=I.PeDefs.prototype.PE_TRANSFORM_2_TO_1,e.PE_TRANSFORM_P_TO_G=I.PeDefs.prototype.PE_TRANSFORM_P_TO_G,e.PE_TRANSFORM_G_TO_P=I.PeDefs.prototype.PE_TRANSFORM_G_TO_P,e.PE_HORIZON_RECT=I.PeDefs.prototype.PE_HORIZON_RECT,e.PE_HORIZON_POLY=I.PeDefs.prototype.PE_HORIZON_POLY,e.PE_HORIZON_LINE=I.PeDefs.prototype.PE_HORIZON_LINE,e.PE_HORIZON_DELTA=I.PeDefs.prototype.PE_HORIZON_DELTA}e.init=t}(lt||(lt={})),function(e){let t={},r={},n=_=>{if(_){let S=_.getType();switch(S){case lt.PE_TYPE_GEOGCS:_=I.castObject(_,I.PeGeogcs);break;case lt.PE_TYPE_PROJCS:_=I.castObject(_,I.PeProjcs);break;case lt.PE_TYPE_GEOGTRAN:_=I.castObject(_,I.PeGeogtran);break;default:S<.PE_TYPE_UNIT&&(_=I.castObject(_,I.PeUnit))}}return _};function i(){I.PeFactory.prototype.initialize(null)}function o(_){return s(lt.PE_TYPE_COORDSYS,_)}function s(_,S){let C=null,M=t[_];if(M||(M={},t[_]=M),M.hasOwnProperty(String(S)))C=M[S];else{let N=I.PeFactory.prototype.factoryByType(_,S);I.compare(N,I.NULL)||(C=N,M[S]=C)}return C=n(C),C}function a(_,S){let C=null,M=r[_];if(M||(M={},r[_]=M),M.hasOwnProperty(S))C=M[S];else{let N=I.PeFactory.prototype.fromString(_,S);I.compare(N,I.NULL)||(C=N,M[S]=C)}return C=n(C),C}function u(_){return s(lt.PE_TYPE_GEOGCS,_)}function d(_){return s(lt.PE_TYPE_GEOGTRAN,_)}function f(_){return I.PeFactory.prototype.getCode(_)}function m(_){return s(lt.PE_TYPE_PROJCS,_)}function w(_){return s(lt.PE_TYPE_UNIT,_)}e.initialize=i,e.coordsys=o,e.factoryByType=s,e.fromString=a,e.geogcs=u,e.geogtran=d,e.getCode=f,e.projcs=m,e.unit=w}(Rg||(Rg={}));zP=null;(function(e){let t;function r(){e.PE_GTLIST_OPTS_COMMON=I.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,t=I._pe_getPeGTlistExtendedEntrySize()}function n(i,o,s,a,u,d){let f=null,m=new I.PeInteger(d);try{let w=I.PeGTlistExtended.prototype.getGTlist(i,o,s,a,u,m);if((d=m.val)&&(f=[w],d>1)){let _=I.getPointer(w);for(let S=1;S<d;S++)f.push(I.wrapPointer(_+t*S,I.PeGTlistExtendedEntry))}}finally{I.destroy(m)}return f}e.init=r,e.getGTlist=n})(Dg||(Dg={})),function(e){function t(r){if(r?.length){for(let n of r)Qi(n),n.getEntries().forEach(i=>{Qi(i);let o=i.getGeogtran();Qi(o),o.getParameters().forEach(Qi),[o.getGeogcs1(),o.getGeogcs2()].forEach(s=>{Qi(s);let a=s.getDatum();Qi(a),Qi(a.getSpheroid()),Qi(s.getPrimem()),Qi(s.getUnit())})});I.PeGTlistExtendedEntry.prototype.Delete(r[0])}}e.destroy=t}(u4||(u4={})),function(e){function t(r,n,i,o,s){I.ensureCache.prepare();let a=wa(i),u=i===a,d=I.ensureFloat64(a),f=0;o&&(f=I.ensureFloat64(o));let m=I._pe_geog_to_geog(I.getPointer(r),n,d,f,s);return m&&ls(i,n,d,u),m}e.geogToGeog=t}(d4||(d4={})),function(e){let t=(d,f,m,w,_,S)=>{let C,M;switch(I.ensureCache.prepare(),d){case"dd":C=I._pe_geog_to_dd,M=lt.PE_DD_MAX;break;case"ddm":C=I._pe_geog_to_ddm,M=lt.PE_DDM_MAX;break;case"dms":C=I._pe_geog_to_dms,M=lt.PE_DMS_MAX}let N=0;f&&(N=I.getPointer(f));let L=wa(w),k=I.ensureFloat64(L),W=Ng(m,M),Z=C(N,m,k,_,I.ensureInt32(W));if(Z)for(let ee=0;ee<m;ee++)S[ee]=I.UTF8ToString(W[ee]);return Z},r=(d,f,m,w,_)=>{let S;switch(I.ensureCache.prepare(),d){case"dd":S=I._pe_dd_to_geog;break;case"ddm":S=I._pe_ddm_to_geog;break;case"dms":S=I._pe_dms_to_geog}let C=0;f&&(C=I.getPointer(f));let M=w.map(W=>I.ensureString(W)),N=I.ensureInt32(M),L=I.ensureFloat64(new Array(2*m)),k=S(C,m,N,L);return k&&ls(_,m,L),k};function n(d,f,m,w,_){return t("dms",d,f,m,w,_)}function i(d,f,m,w){return r("dms",d,f,m,w)}function o(d,f,m,w,_){return t("ddm",d,f,m,w,_)}function s(d,f,m,w){return r("ddm",d,f,m,w)}function a(d,f,m,w,_){return t("dd",d,f,m,w,_)}function u(d,f,m,w){return r("dd",d,f,m,w)}e.geogToDms=n,e.dmsToGeog=i,e.geogToDdm=o,e.ddmToGeog=s,e.geogToDd=a,e.ddToGeog=u}(f4||(f4={})),function(e){function t(){e.PE_MGRS_STYLE_NEW=I.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=I.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=I.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=I.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=I.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES}function r(i,o,s,a,u,d,f){I.ensureCache.prepare();let m=0;i&&(m=I.getPointer(i));let w=wa(s),_=I.ensureFloat64(w),S=Ng(o,lt.PE_MGRS_MAX),C=I.ensureInt32(S),M=I._pe_geog_to_mgrs_extended(m,o,_,a,u,d,C);if(M)for(let N=0;N<o;N++)f[N]=I.UTF8ToString(S[N]);return M}function n(i,o,s,a,u){I.ensureCache.prepare();let d=0;i&&(d=I.getPointer(i));let f=s.map(S=>I.ensureString(S)),m=I.ensureInt32(f),w=I.ensureFloat64(new Array(2*o)),_=I._pe_mgrs_to_geog_extended(d,o,m,a,w);return _&&ls(u,o,w),_}e.init=t,e.geogToMgrsExtended=r,e.mgrsToGeogExtended=n}(Og||(Og={})),function(e){function t(n,i,o,s,a,u,d){I.ensureCache.prepare();let f=0;n&&(f=I.getPointer(n));let m=wa(o),w=I.ensureFloat64(m),_=Ng(i,lt.PE_MGRS_MAX),S=I.ensureInt32(_),C=I._pe_geog_to_usng(f,i,w,s,a,u,S);if(C)for(let M=0;M<i;M++)d[M]=I.UTF8ToString(_[M]);return C}function r(n,i,o,s){I.ensureCache.prepare();let a=0;n&&(a=I.getPointer(n));let u=o.map(w=>I.ensureString(w)),d=I.ensureInt32(u),f=I.ensureFloat64(new Array(2*i)),m=I._pe_usng_to_geog(a,i,d,f);return m&&ls(s,i,f),m}e.geogToUsng=t,e.usngToGeog=r}(p4||(p4={})),function(e){function t(){e.PE_UTM_OPTS_NONE=I.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=I.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=I.PeNotationUtm.prototype.PE_UTM_OPTS_NS}function r(i,o,s,a,u){I.ensureCache.prepare();let d=0;i&&(d=I.getPointer(i));let f=wa(s),m=I.ensureFloat64(f),w=Ng(o,lt.PE_UTM_MAX),_=I.ensureInt32(w),S=I._pe_geog_to_utm(d,o,m,a,_);if(S)for(let C=0;C<o;C++)u[C]=I.UTF8ToString(w[C]);return S}function n(i,o,s,a,u){I.ensureCache.prepare();let d=0;i&&(d=I.getPointer(i));let f=s.map(S=>I.ensureString(S)),m=I.ensureInt32(f),w=I.ensureFloat64(new Array(2*o)),_=I._pe_utm_to_geog(d,o,m,a,w);return _&&ls(u,o,w),_}e.init=t,e.geogToUtm=r,e.utmToGeog=n}($g||($g={})),function(e){let t=new Map;function r(){e.PE_PCSINFO_OPTION_NONE=I.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=I.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=I.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=I.PePCSInfo.prototype.PE_POLE_POINT}function n(i,o=e.PE_PCSINFO_OPTION_DOMAIN){let s=null,a=null;return t.has(i)&&(a=t.get(i),a[o]&&(s=a[o])),s||(s=I.PePCSInfo.prototype.generate(i,o),a||(a=[],t.set(i,a)),a[o]=s),s}e.init=r,e.generate=n}(Fg||(Fg={})),function(e){function t(){return I.PeVersion.prototype.version_string()}e.versionString=t}(m4||(m4={}));Sme=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return c4},get PeDefs(){return lt},get PeFactory(){return Rg},get PeGCSExtent(){return zP},get PeGTTransformations(){return d4},get PeGTlistExtended(){return Dg},get PeGTlistExtendedEntry(){return u4},get PeNotationDms(){return f4},get PeNotationMgrs(){return Og},get PeNotationUsng(){return p4},get PeNotationUtm(){return $g},get PePCSInfo(){return Fg},get PeVersion(){return m4},_init:GP,get _pe(){return I},isLoaded:UP,isSupported:IB,load:WP},Symbol.toStringTag,{value:"Module"}))});var nc,qP=P(()=>{(function(e){e[e.CGCS2000=4490]="CGCS2000",e[e.GCSMARS2000=104971]="GCSMARS2000",e[e.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",e[e.GCSMOON2000=104903]="GCSMOON2000"})(nc||(nc={}))});var l,v,h4=P(()=>{v={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,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};for(l=2e3;l<=2045;l++)v[l]=0;for(l=2056;l<=2065;l++)v[l]=0;for(l=2067;l<=2135;l++)v[l]=0;for(l=2137;l<=2154;l++)v[l]=0;for(l=2161;l<=2170;l++)v[l]=0;for(l=2172;l<=2193;l++)v[l]=0;for(l=2195;l<=2198;l++)v[l]=0;for(l=2200;l<=2203;l++)v[l]=0;for(l=2205;l<=2217;l++)v[l]=0;for(l=2222;l<=2224;l++)v[l]=1;for(l=2225;l<=2250;l++)v[l]=2;for(l=2251;l<=2253;l++)v[l]=1;for(l=2257;l<=2264;l++)v[l]=2;for(l=2274;l<=2279;l++)v[l]=2;for(l=2280;l<=2282;l++)v[l]=1;for(l=2283;l<=2289;l++)v[l]=2;for(l=2290;l<=2292;l++)v[l]=0;for(l=2308;l<=2313;l++)v[l]=0;for(l=2315;l<=2491;l++)v[l]=0;for(l=2494;l<=2866;l++)v[l]=0;for(l=2867;l<=2869;l++)v[l]=1;for(l=2870;l<=2888;l++)v[l]=2;for(l=2891;l<=2895;l++)v[l]=2;for(l=2896;l<=2898;l++)v[l]=1;for(l=2902;l<=2908;l++)v[l]=2;for(l=2915;l<=2920;l++)v[l]=2;for(l=2921;l<=2923;l++)v[l]=1;for(l=2924;l<=2930;l++)v[l]=2;for(l=2931;l<=2962;l++)v[l]=0;for(l=2964;l<=2968;l++)v[l]=2;for(l=2969;l<=2973;l++)v[l]=0;for(l=2975;l<=2991;l++)v[l]=0;for(l=2995;l<=3051;l++)v[l]=0;for(l=3054;l<=3079;l++)v[l]=0;for(l=3081;l<=3088;l++)v[l]=0;for(l=3092;l<=3101;l++)v[l]=0;for(l=3106;l<=3138;l++)v[l]=0;for(l=3146;l<=3151;l++)v[l]=0;for(l=3153;l<=3166;l++)v[l]=0;for(l=3168;l<=3172;l++)v[l]=0;for(l=3174;l<=3203;l++)v[l]=0;for(l=3294;l<=3358;l++)v[l]=0;for(l=3367;l<=3403;l++)v[l]=0;for(l=3408;l<=3416;l++)v[l]=0;for(l=3417;l<=3438;l++)v[l]=2;for(l=3441;l<=3446;l++)v[l]=2;for(l=3447;l<=3450;l++)v[l]=0;for(l=3451;l<=3459;l++)v[l]=2;for(l=3460;l<=3478;l++)v[l]=0;for(l=3554;l<=3559;l++)v[l]=0;for(l=3560;l<=3570;l++)v[l]=2;for(l=3571;l<=3581;l++)v[l]=0;for(l=3594;l<=3597;l++)v[l]=0;for(l=3601;l<=3604;l++)v[l]=0;for(l=3637;l<=3639;l++)v[l]=0;for(l=3665;l<=3667;l++)v[l]=0;for(l=3693;l<=3695;l++)v[l]=0;for(l=3701;l<=3727;l++)v[l]=0;for(l=3728;l<=3739;l++)v[l]=2;for(l=3740;l<=3751;l++)v[l]=0;for(l=3753;l<=3760;l++)v[l]=2;for(l=3761;l<=3773;l++)v[l]=0;for(l=3775;l<=3777;l++)v[l]=0;for(l=3779;l<=3781;l++)v[l]=0;for(l=3783;l<=3785;l++)v[l]=0;for(l=3788;l<=3791;l++)v[l]=0;for(l=3797;l<=3802;l++)v[l]=0;for(l=3814;l<=3816;l++)v[l]=0;for(l=3825;l<=3829;l++)v[l]=0;for(l=3832;l<=3841;l++)v[l]=0;for(l=3844;l<=3852;l++)v[l]=0;for(l=3873;l<=3885;l++)v[l]=0;for(l=3890;l<=3893;l++)v[l]=0;for(l=3907;l<=3912;l++)v[l]=0;for(l=3942;l<=3950;l++)v[l]=0;for(l=3968;l<=3970;l++)v[l]=0;for(l=3973;l<=3976;l++)v[l]=0;for(l=3986;l<=3989;l++)v[l]=0;for(l=3994;l<=3997;l++)v[l]=0;for(l=4048;l<=4051;l++)v[l]=0;for(l=4056;l<=4063;l++)v[l]=0;for(l=4093;l<=4096;l++)v[l]=0;for(l=4390;l<=4398;l++)v[l]=0;for(l=4399;l<=4413;l++)v[l]=2;for(l=4418;l<=4433;l++)v[l]=2;for(l=4455;l<=4457;l++)v[l]=2;for(l=4484;l<=4489;l++)v[l]=0;for(l=4491;l<=4554;l++)v[l]=0;for(l=4568;l<=4589;l++)v[l]=0;for(l=4652;l<=4656;l++)v[l]=0;for(l=4766;l<=4800;l++)v[l]=0;for(l=5014;l<=5016;l++)v[l]=0;for(l=5069;l<=5072;l++)v[l]=0;for(l=5105;l<=5130;l++)v[l]=0;for(l=5167;l<=5188;l++)v[l]=0;for(l=5253;l<=5259;l++)v[l]=0;for(l=5269;l<=5275;l++)v[l]=0;for(l=5292;l<=5311;l++)v[l]=0;for(l=5329;l<=5331;l++)v[l]=0;for(l=5343;l<=5349;l++)v[l]=0;for(l=5355;l<=5357;l++)v[l]=0;for(l=5387;l<=5389;l++)v[l]=0;for(l=5459;l<=5463;l++)v[l]=0;for(l=5479;l<=5482;l++)v[l]=0;for(l=5518;l<=5520;l++)v[l]=0;for(l=5530;l<=5539;l++)v[l]=0;for(l=5550;l<=5552;l++)v[l]=0;for(l=5562;l<=5583;l++)v[l]=0;for(l=5623;l<=5625;l++)v[l]=2;for(l=5631;l<=5639;l++)v[l]=0;for(l=5649;l<=5653;l++)v[l]=0;for(l=5663;l<=5680;l++)v[l]=0;for(l=5682;l<=5685;l++)v[l]=0;for(l=5875;l<=5877;l++)v[l]=0;for(l=5896;l<=5899;l++)v[l]=0;for(l=5921;l<=5940;l++)v[l]=0;for(l=6050;l<=6125;l++)v[l]=0;for(l=6244;l<=6275;l++)v[l]=0;for(l=6328;l<=6348;l++)v[l]=0;for(l=6350;l<=6356;l++)v[l]=0;for(l=6366;l<=6372;l++)v[l]=0;for(l=6381;l<=6387;l++)v[l]=0;for(l=6393;l<=6404;l++)v[l]=0;for(l=6480;l<=6483;l++)v[l]=0;for(l=6511;l<=6514;l++)v[l]=0;for(l=6579;l<=6581;l++)v[l]=0;for(l=6619;l<=6624;l++)v[l]=0;for(l=6625;l<=6627;l++)v[l]=2;for(l=6628;l<=6632;l++)v[l]=0;for(l=6634;l<=6637;l++)v[l]=0;for(l=6669;l<=6692;l++)v[l]=0;for(l=6707;l<=6709;l++)v[l]=0;for(l=6720;l<=6723;l++)v[l]=0;for(l=6732;l<=6738;l++)v[l]=0;for(l=6931;l<=6933;l++)v[l]=0;for(l=6956;l<=6959;l++)v[l]=0;for(l=7005;l<=7007;l++)v[l]=0;for(l=7057;l<=7070;l++)v[l]=2;for(l=7074;l<=7082;l++)v[l]=0;for(l=7109;l<=7118;l++)v[l]=0;for(l=7119;l<=7127;l++)v[l]=1;for(l=7374;l<=7376;l++)v[l]=0;for(l=7528;l<=7586;l++)v[l]=0;for(l=7587;l<=7645;l++)v[l]=2;for(l=7692;l<=7696;l++)v[l]=0;for(l=7755;l<=7787;l++)v[l]=0;for(l=7791;l<=7795;l++)v[l]=0;for(l=7799;l<=7801;l++)v[l]=0;for(l=7803;l<=7805;l++)v[l]=0;for(l=7825;l<=7831;l++)v[l]=0;for(l=7845;l<=7859;l++)v[l]=0;for(l=8013;l<=8032;l++)v[l]=0;for(l=8065;l<=8068;l++)v[l]=1;for(l=8518;l<=8529;l++)v[l]=2;for(l=8533;l<=8536;l++)v[l]=2;for(l=8538;l<=8540;l++)v[l]=2;for(l=8677;l<=8679;l++)v[l]=0;for(l=8836;l<=8840;l++)v[l]=0;for(l=8857;l<=8859;l++)v[l]=0;for(l=8908;l<=8910;l++)v[l]=0;for(l=9154;l<=9159;l++)v[l]=0;for(l=9205;l<=9218;l++)v[l]=0;for(l=9271;l<=9273;l++)v[l]=0;for(l=9295;l<=9297;l++)v[l]=0;for(l=9356;l<=9360;l++)v[l]=0;for(l=9404;l<=9407;l++)v[l]=0;for(l=9476;l<=9482;l++)v[l]=0;for(l=9487;l<=9494;l++)v[l]=0;for(l=9697;l<=9699;l++)v[l]=0;for(l=9821;l<=9865;l++)v[l]=0;for(l=10285;l<=10291;l++)v[l]=0;for(l=10314;l<=10317;l++)v[l]=0;for(l=10448;l<=10465;l++)v[l]=0;for(l=10731;l<=10733;l++)v[l]=0;for(l=11114;l<=11118;l++)v[l]=0;for(l=20004;l<=20032;l++)v[l]=0;for(l=20047;l<=20049;l++)v[l]=0;for(l=20062;l<=20092;l++)v[l]=0;for(l=20135;l<=20138;l++)v[l]=0;for(l=20248;l<=20258;l++)v[l]=0;for(l=20348;l<=20358;l++)v[l]=0;for(l=20436;l<=20440;l++)v[l]=0;for(l=20822;l<=20824;l++)v[l]=0;for(l=20904;l<=20932;l++)v[l]=0;for(l=20934;l<=20936;l++)v[l]=0;for(l=21004;l<=21032;l++)v[l]=0;for(l=21035;l<=21037;l++)v[l]=0;for(l=21095;l<=21097;l++)v[l]=0;for(l=21148;l<=21150;l++)v[l]=0;for(l=21207;l<=21264;l++)v[l]=0;for(l=21307;l<=21364;l++)v[l]=0;for(l=21413;l<=21423;l++)v[l]=0;for(l=21453;l<=21463;l++)v[l]=0;for(l=21473;l<=21483;l++)v[l]=0;for(l=21780;l<=21782;l++)v[l]=0;for(l=21891;l<=21894;l++)v[l]=0;for(l=21896;l<=21899;l++)v[l]=0;for(l=22171;l<=22177;l++)v[l]=0;for(l=22181;l<=22187;l++)v[l]=0;for(l=22191;l<=22197;l++)v[l]=0;for(l=22207;l<=22222;l++)v[l]=0;for(l=22229;l<=22232;l++)v[l]=0;for(l=22234;l<=22236;l++)v[l]=0;for(l=22243;l<=22250;l++)v[l]=0;for(l=22262;l<=22265;l++)v[l]=0;for(l=22307;l<=22322;l++)v[l]=0;for(l=22348;l<=22357;l++)v[l]=0;for(l=22407;l<=22422;l++)v[l]=0;for(l=22462;l<=22465;l++)v[l]=0;for(l=22521;l<=22525;l++)v[l]=0;for(l=22607;l<=22622;l++)v[l]=0;for(l=22641;l<=22646;l++)v[l]=0;for(l=22648;l<=22657;l++)v[l]=0;for(l=22707;l<=22722;l++)v[l]=0;for(l=22762;l<=22765;l++)v[l]=0;for(l=22807;l<=22822;l++)v[l]=0;for(l=22991;l<=22994;l++)v[l]=0;for(l=23028;l<=23038;l++)v[l]=0;for(l=23301;l<=23333;l++)v[l]=2;for(l=23830;l<=23853;l++)v[l]=0;for(l=23866;l<=23872;l++)v[l]=0;for(l=23877;l<=23884;l++)v[l]=0;for(l=23886;l<=23894;l++)v[l]=0;for(l=23946;l<=23948;l++)v[l]=0;for(l=24311;l<=24313;l++)v[l]=0;for(l=24342;l<=24347;l++)v[l]=0;for(l=24370;l<=24374;l++)v[l]=10;for(l=24375;l<=24381;l++)v[l]=0;for(l=24718;l<=24721;l++)v[l]=0;for(l=24817;l<=24821;l++)v[l]=0;for(l=24877;l<=24882;l++)v[l]=0;for(l=24891;l<=24893;l++)v[l]=0;for(l=25391;l<=25395;l++)v[l]=0;for(l=25828;l<=25838;l++)v[l]=0;for(l=26191;l<=26195;l++)v[l]=0;for(l=26391;l<=26393;l++)v[l]=0;for(l=26701;l<=26722;l++)v[l]=0;for(l=26729;l<=26799;l++)v[l]=2;for(l=26801;l<=26803;l++)v[l]=2;for(l=26811;l<=26813;l++)v[l]=2;for(l=26847;l<=26870;l++)v[l]=2;for(l=26891;l<=26899;l++)v[l]=0;for(l=26901;l<=26923;l++)v[l]=0;for(l=26929;l<=26946;l++)v[l]=0;for(l=26948;l<=26998;l++)v[l]=0;for(l=27037;l<=27040;l++)v[l]=0;for(l=27205;l<=27232;l++)v[l]=0;for(l=27258;l<=27260;l++)v[l]=0;for(l=27391;l<=27398;l++)v[l]=0;for(l=27561;l<=27564;l++)v[l]=0;for(l=27571;l<=27574;l++)v[l]=0;for(l=27581;l<=27584;l++)v[l]=0;for(l=27591;l<=27594;l++)v[l]=0;for(l=27700;l<=27707;l++)v[l]=0;for(l=28191;l<=28193;l++)v[l]=0;for(l=28348;l<=28358;l++)v[l]=0;for(l=28402;l<=28432;l++)v[l]=0;for(l=28462;l<=28492;l++)v[l]=0;for(l=29118;l<=29122;l++)v[l]=0;for(l=29168;l<=29172;l++)v[l]=0;for(l=29177;l<=29185;l++)v[l]=0;for(l=29187;l<=29195;l++)v[l]=0;for(l=29900;l<=29903;l++)v[l]=0;for(l=30161;l<=30179;l++)v[l]=0;for(l=30491;l<=30494;l++)v[l]=0;for(l=30729;l<=30732;l++)v[l]=0;for(l=31251;l<=31259;l++)v[l]=0;for(l=31265;l<=31268;l++)v[l]=0;for(l=31275;l<=31279;l++)v[l]=0;for(l=31281;l<=31297;l++)v[l]=0;for(l=31461;l<=31469;l++)v[l]=0;for(l=31491;l<=31495;l++)v[l]=0;for(l=31917;l<=31922;l++)v[l]=0;for(l=31965;l<=32e3;l++)v[l]=0;for(l=32001;l<=32003;l++)v[l]=2;for(l=32005;l<=32031;l++)v[l]=2;for(l=32033;l<=32060;l++)v[l]=2;for(l=32064;l<=32067;l++)v[l]=2;for(l=32074;l<=32077;l++)v[l]=2;for(l=32081;l<=32086;l++)v[l]=0;for(l=32107;l<=32130;l++)v[l]=0;for(l=32133;l<=32159;l++)v[l]=0;for(l=32164;l<=32167;l++)v[l]=2;for(l=32180;l<=32199;l++)v[l]=0;for(l=32201;l<=32260;l++)v[l]=0;for(l=32301;l<=32360;l++)v[l]=0;for(l=32401;l<=32460;l++)v[l]=0;for(l=32501;l<=32560;l++)v[l]=0;for(l=32601;l<=32662;l++)v[l]=0;for(l=32664;l<=32667;l++)v[l]=2;for(l=32701;l<=32761;l++)v[l]=0;for(l=53001;l<=53004;l++)v[l]=0;for(l=53008;l<=53019;l++)v[l]=0;for(l=53021;l<=53032;l++)v[l]=0;for(l=53034;l<=53037;l++)v[l]=0;for(l=53042;l<=53046;l++)v[l]=0;for(l=53074;l<=53080;l++)v[l]=0;for(l=54001;l<=54004;l++)v[l]=0;for(l=54008;l<=54019;l++)v[l]=0;for(l=54021;l<=54032;l++)v[l]=0;for(l=54034;l<=54037;l++)v[l]=0;for(l=54042;l<=54046;l++)v[l]=0;for(l=54048;l<=54053;l++)v[l]=0;for(l=54074;l<=54080;l++)v[l]=0;for(l=54098;l<=54101;l++)v[l]=0;for(l=102001;l<=102040;l++)v[l]=0;for(l=102042;l<=102063;l++)v[l]=0;for(l=102065;l<=102067;l++)v[l]=0;for(l=102070;l<=102117;l++)v[l]=0;for(l=102122;l<=102216;l++)v[l]=0;for(l=102221;l<=102377;l++)v[l]=0;for(l=102382;l<=102388;l++)v[l]=0;for(l=102389;l<=102398;l++)v[l]=2;for(l=102399;l<=102444;l++)v[l]=0;for(l=102445;l<=102447;l++)v[l]=2;for(l=102448;l<=102458;l++)v[l]=0;for(l=102459;l<=102468;l++)v[l]=2;for(l=102469;l<=102499;l++)v[l]=0;for(l=102500;l<=102519;l++)v[l]=1;for(l=102520;l<=102524;l++)v[l]=0;for(l=102525;l<=102529;l++)v[l]=2;for(l=102530;l<=102588;l++)v[l]=0;for(l=102590;l<=102598;l++)v[l]=0;for(l=102601;l<=102603;l++)v[l]=0;for(l=102605;l<=102628;l++)v[l]=0;for(l=102629;l<=102646;l++)v[l]=2;for(l=102648;l<=102700;l++)v[l]=2;for(l=102701;l<=102703;l++)v[l]=0;for(l=102707;l<=102730;l++)v[l]=2;for(l=102733;l<=102758;l++)v[l]=2;for(l=102767;l<=102900;l++)v[l]=0;for(l=102901;l<=102933;l++)v[l]=2;for(l=102934;l<=102950;l++)v[l]=13;for(l=102951;l<=102963;l++)v[l]=0;for(l=102965;l<=102969;l++)v[l]=0;for(l=102971;l<=102973;l++)v[l]=0;for(l=102975;l<=102989;l++)v[l]=0;for(l=102990;l<=102992;l++)v[l]=1;for(l=102997;l<=103002;l++)v[l]=0;for(l=103003;l<=103008;l++)v[l]=2;for(l=103009;l<=103011;l++)v[l]=0;for(l=103012;l<=103014;l++)v[l]=2;for(l=103019;l<=103021;l++)v[l]=0;for(l=103022;l<=103024;l++)v[l]=2;for(l=103029;l<=103031;l++)v[l]=0;for(l=103032;l<=103034;l++)v[l]=2;for(l=103065;l<=103068;l++)v[l]=0;for(l=103074;l<=103076;l++)v[l]=0;for(l=103077;l<=103079;l++)v[l]=1;for(l=103080;l<=103082;l++)v[l]=0;for(l=103083;l<=103085;l++)v[l]=2;for(l=103090;l<=103093;l++)v[l]=0;for(l=103097;l<=103099;l++)v[l]=0;for(l=103100;l<=103102;l++)v[l]=2;for(l=103107;l<=103109;l++)v[l]=0;for(l=103110;l<=103112;l++)v[l]=2;for(l=103113;l<=103116;l++)v[l]=0;for(l=103117;l<=103120;l++)v[l]=2;for(l=103153;l<=103157;l++)v[l]=0;for(l=103158;l<=103162;l++)v[l]=2;for(l=103163;l<=103165;l++)v[l]=0;for(l=103166;l<=103168;l++)v[l]=1;for(l=103169;l<=103171;l++)v[l]=2;for(l=103186;l<=103188;l++)v[l]=0;for(l=103189;l<=103191;l++)v[l]=2;for(l=103192;l<=103195;l++)v[l]=0;for(l=103196;l<=103199;l++)v[l]=2;for(l=103200;l<=103224;l++)v[l]=0;for(l=103225;l<=103227;l++)v[l]=1;for(l=103232;l<=103237;l++)v[l]=0;for(l=103238;l<=103243;l++)v[l]=2;for(l=103244;l<=103246;l++)v[l]=0;for(l=103247;l<=103249;l++)v[l]=2;for(l=103254;l<=103256;l++)v[l]=0;for(l=103257;l<=103259;l++)v[l]=2;for(l=103264;l<=103266;l++)v[l]=0;for(l=103267;l<=103269;l++)v[l]=2;for(l=103300;l<=103375;l++)v[l]=0;for(l=103381;l<=103383;l++)v[l]=0;for(l=103384;l<=103386;l++)v[l]=1;for(l=103387;l<=103389;l++)v[l]=0;for(l=103390;l<=103392;l++)v[l]=2;for(l=103397;l<=103399;l++)v[l]=0;for(l=103400;l<=103471;l++)v[l]=2;for(l=103476;l<=103478;l++)v[l]=0;for(l=103479;l<=103481;l++)v[l]=2;for(l=103486;l<=103488;l++)v[l]=0;for(l=103489;l<=103491;l++)v[l]=2;for(l=103492;l<=103495;l++)v[l]=0;for(l=103496;l<=103499;l++)v[l]=2;for(l=103528;l<=103543;l++)v[l]=0;for(l=103544;l<=103548;l++)v[l]=2;for(l=103549;l<=103551;l++)v[l]=0;for(l=103552;l<=103554;l++)v[l]=1;for(l=103555;l<=103557;l++)v[l]=2;for(l=103558;l<=103560;l++)v[l]=0;for(l=103571;l<=103573;l++)v[l]=0;for(l=103574;l<=103576;l++)v[l]=2;for(l=103577;l<=103580;l++)v[l]=0;for(l=103581;l<=103583;l++)v[l]=2;for(l=103595;l<=103694;l++)v[l]=0;for(l=103696;l<=103699;l++)v[l]=0;for(l=103700;l<=103793;l++)v[l]=2;for(l=103794;l<=103890;l++)v[l]=0;for(l=103891;l<=103896;l++)v[l]=2;for(l=103900;l<=103971;l++)v[l]=2;for(l=103972;l<=103977;l++)v[l]=0;for(l=112e3;l<=112101;l++)v[l]=0});function cs(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||Mi(e)&&Mi(t))return!0;let s=e.latestWkid;if(s!=null&&n===s)return!0;let a=t.latestWkid;return a!=null&&r===a}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 ya(e){let t=e?.wkid;return t!=null&&t>=2e3&&ZP[t]||null}function Wd(e){if(!JP(e))return!1;let{wkid:t}=e;if(t)return v[t]==null;let r=e.wkt2||e.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function ic(e){return e?.wkid===4326}function Mi(e){let t=e?.wkid;return t!=null&&t>=2e3&&HP.includes(t)}function g4(e){return e===nc.GCSMARS2000||e===nc.GCSMARS2000_SPHERE}function w4(e){return e===nc.GCSMOON2000}function YP(e){let t=e?.wkid;return t!=null&&t>=2e3&&kB.includes(t)}function JP(e){if(e==null)return!1;let t=e.wkid;return t!=null&&t>=2e3||e.wkt2!=null||e.wkt!=null}var HP,AB,kB,jP,Vg,Ug,ZP,y4,b4,XP,Ki=P(()=>{Co();BP();qP();h4();HP=[102100,102113,3857,3785],AB=[104905,104971],kB=[4326,...HP,...AB],jP='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]]',Vg=[-20037508342788905e-9,20037508342788905e-9],Ug=[-20037508342787e-6,20037508342787e-6],ZP={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:Vg,origin:Ug,dx:1e-5},102100:{wkTemplate:jP,valid:Vg,origin:Ug,dx:1e-5},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:Vg,origin:Ug,dx:1e-5},3857:{wkTemplate:jP,valid:Vg,origin:Ug,dx:1e-5},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}};y4={wkid:4326,wkt:li(ZP[4326].wkTemplate,{Central_Meridian:"0.0"})},b4={wkid:102100,latestWkid:3857},XP={wkid:32662}});function _4(e){return{wkt:`GEOCCS["Spherical geocentric",
|
|
115
|
+
DATUM["Not specified",
|
|
116
|
+
SPHEROID["Sphere",${e.radius},0]],
|
|
117
|
+
PRIMEM["Greenwich",0.0,
|
|
118
|
+
AUTHORITY["EPSG","8901"]],
|
|
119
|
+
UNIT["m",1.0],
|
|
120
|
+
AXIS["Geocentric X",OTHER],
|
|
121
|
+
AXIS["Geocentric Y",EAST],
|
|
122
|
+
AXIS["Geocentric Z",NORTH]
|
|
123
|
+
]`}}var Rme,NB,RB,Dme,Ome,$me,QP=P(()=>{J1();Ki();Rme=_4(Bn),NB=_4(Z1),RB=_4(Y1),Dme={wkt:`GEOCCS["WGS 84",
|
|
124
|
+
DATUM["WGS_1984",
|
|
125
|
+
SPHEROID["WGS 84",${Bn.radius},298.257223563,
|
|
126
|
+
AUTHORITY["EPSG","7030"]],
|
|
127
|
+
AUTHORITY["EPSG","6326"]],
|
|
128
|
+
PRIMEM["Greenwich",0,
|
|
129
|
+
AUTHORITY["EPSG","8901"]],
|
|
130
|
+
UNIT["m",1.0,
|
|
131
|
+
AUTHORITY["EPSG","9001"]],
|
|
132
|
+
AXIS["Geocentric X",OTHER],
|
|
133
|
+
AXIS["Geocentric Y",OTHER],
|
|
134
|
+
AXIS["Geocentric Z",NORTH],
|
|
135
|
+
AUTHORITY["EPSG","4978"]
|
|
136
|
+
]`},Ome=NB.wkt.toUpperCase(),$me=RB.wkt.toUpperCase()});function FB(e){return $B.fromJSON(e.toLowerCase())||null}function nL(e,t=Bn.metersPerDegree){return VB(e,!0)??t}function VB(e,t=!1){let r=e?.wkid??null,n=e?.wkt2??e?.wkt??null,i=null;if(r){if(g4(r))return Z1.metersPerDegree;if(w4(r))return Y1.metersPerDegree;i=ba.values[ba[r]],!i&&t&&OB.has(r)&&(i=DB)}else n&&(aL(n)?i=eL(tL.exec(n),i):sL(n)&&(i=eL(rL.exec(n),i)));return i}function eL(e,t){return e?.[1]?iL(e[1]):t}function iL(e){return parseFloat(e.split(",")[1])}function oL(e){let t=e?.wkid??null,r=e?.wkt2??e?.wkt??null,n=null;if(t)n=ba.units[ba[t]];else if(r){let i=aL(r)?tL:sL(r)?rL:null;if(i){let o=i.exec(r);o?.[1]&&(n=WB(o[1]))}}return n!=null?FB(n):null}function sL(e){return/^GEOCCS/i.test(e)}function aL(e){return/^\s*(?:PROJCS|PROJCRS|PROJECTEDCRS)/i.test(e)}function WB(e){let r=/[\\"']{1}([^\\"']+)/.exec(e)?.[1];if(!r||!ba.units.includes(r)){let n=iL(e);r=null;let i=ba.values;for(let o=0;o<i.length;++o)if(Math.abs(n-i[o])<UB){r=ba.units[o];break}}return r}var DB,tL,ba,rL,OB,$B,Pi,us,KP,Hme,UB,zB,GB,BB,Zme,Yme,Jme,lL=P(()=>{Fe();H1();QP();J1();Ki();h4();DB=Bn.radius*Math.PI/200,tL=/(?:LENGTH)?UNIT\[([^\]]+)]]$/i,ba=v,rL=/UNIT\[([^\]]+)]/i,OB=new Set([4261,4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104139,104140]),$B=gi()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),Pi=e=>e*e,us=e=>e*e*e,KP={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:Pi(.001)},"square-centimeters":{inBaseUnits:Pi(.01)},"square-decimeters":{inBaseUnits:Pi(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:Pi(1e3)},"square-inches":{inBaseUnits:Pi(.0254)},"square-feet":{inBaseUnits:Pi(.3048)},"square-yards":{inBaseUnits:Pi(.9144)},"square-miles":{inBaseUnits:Pi(1609.344)},"square-us-feet":{inBaseUnits:Pi(1200/3937)},acres:{inBaseUnits:.0015625*Pi(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*us(.001)},"cubic-centimeters":{inBaseUnits:1e3*us(.01)},"cubic-decimeters":{inBaseUnits:1e3*us(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*us(1e3)},"cubic-inches":{inBaseUnits:1e3*us(.0254)},"cubic-feet":{inBaseUnits:1e3*us(.3048)},"cubic-yards":{inBaseUnits:1e3*us(.9144)},"cubic-miles":{inBaseUnits:1e3*us(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},Hme=(()=>{let e={};for(let t in KP)for(let r in KP[t].units)e[r]=t;return e})();UB=1e-7;zB={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},GB={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},BB={esriDUDecimalDegrees:"degrees",esriDURadians:"radians"},Zme=gi()(zB),Yme=gi()(GB),Jme=gi()(BB)});function Xn(e,t,r){let n,i;return t===void 0?(i=e,n=[void 0]):typeof t!="string"?(i=e,n=[void 0],r=t):(i=t,n=Array.isArray(e)?e:[e]),(o,s)=>{let a=o.constructor.prototype;for(let u of n){let d=g1(o,u,i);d.write&&typeof d.write=="object"||(d.write={}),r&&(d.write.target=r),d.write.writer=a[s]}}}var oc=P(()=>{rr()});var Li,Ne,yt,eo=P(()=>{tr();Ys();Qt();lL();$o();rr();jt();oc();Ki();Ne=Li=class extends hi{static fromJSON(e){if(!e)return null;if(e?.wkid===102100)return Li.WebMercator;if(e?.wkid===4326)return Li.WGS84;let t=new Li;return t.read(e),t}constructor(e){super(e),this.latestWkid=null,this.wkid=null,this.wkt=null,this.wkt2=null,this.vcsWkid=null,this.latestVcsWkid=null,this.imageCoordinateSystem=null}normalizeCtorArgs(e){return e&&typeof e=="object"?e:{[typeof e=="string"?"wkt":"wkid"]:e}}get isWGS84(){return ic(this)}get isWebMercator(){return Mi(this)}get isGeographic(){return Wd(this)}get isWrappable(){return YP(this)}get metersPerUnit(){return nL(this)}get unit(){return oL(this)||(this.isGeographic?"degrees":null)}writeWkt(e,t){this.wkid||(t.wkt=e)}clone(){if(this===Li.WGS84)return new Li(y4);if(this===Li.WebMercator)return new Li(b4);let e=new Li;return this.wkid!=null?(e.wkid=this.wkid,this.latestWkid!=null&&(e.latestWkid=this.latestWkid),this.vcsWkid!=null&&(e.vcsWkid=this.vcsWkid),this.latestVcsWkid!=null&&(e.latestVcsWkid=this.latestVcsWkid)):(this.wkt!=null&&(e.wkt=this.wkt),this.wkt2!=null&&(e.wkt2=this.wkt2)),this.imageCoordinateSystem&&(e.imageCoordinateSystem=Le(this.imageCoordinateSystem)),e}equals(e){if(e==null)return!1;if(this.imageCoordinateSystem||e.imageCoordinateSystem){if(this.imageCoordinateSystem==null||e.imageCoordinateSystem==null)return!1;let{id:t,referenceServiceName:r}=e.imageCoordinateSystem,{geodataXform:n}=e.imageCoordinateSystem,i=this.imageCoordinateSystem;return t==null||n?JSON.stringify(i)===JSON.stringify(e.imageCoordinateSystem):r?i.id===t&&i.referenceServiceName===r:i.id===t}return cs(this,e)}toJSON(e){return this.write(void 0,e)}};Ne.GCS_NAD_1927=null,Ne.WGS84=null,Ne.WebMercator=null,Ne.PlateCarree=null,R([j({readOnly:!0})],Ne.prototype,"isWGS84",null),R([j({readOnly:!0})],Ne.prototype,"isWebMercator",null),R([j({readOnly:!0})],Ne.prototype,"isGeographic",null),R([j({readOnly:!0})],Ne.prototype,"isWrappable",null),R([j({type:ui,json:{write:!0}})],Ne.prototype,"latestWkid",void 0),R([j({readOnly:!0})],Ne.prototype,"metersPerUnit",null),R([j({readOnly:!0})],Ne.prototype,"unit",null),R([j({type:ui,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:this.wkt==null}}}}}}})],Ne.prototype,"wkid",void 0),R([j({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:this.wkid==null}}}}}}})],Ne.prototype,"wkt",void 0),R([Xn("wkt"),Xn("web-scene","wkt")],Ne.prototype,"writeWkt",null),R([j({type:String,json:{write:!1}})],Ne.prototype,"wkt2",void 0),R([j({type:ui,json:{write:!0}})],Ne.prototype,"vcsWkid",void 0),R([j({type:ui,json:{write:!0}})],Ne.prototype,"latestVcsWkid",void 0),R([j()],Ne.prototype,"imageCoordinateSystem",void 0),Ne=Li=R([Me("esri.geometry.SpatialReference")],Ne),Ne.prototype.toJSON.isDefaultToJSON=!0,Ne.GCS_NAD_1927=new Ne({wkid:4267,wkt:'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'}),Ne.WGS84=new Ne(y4),Ne.WebMercator=new Ne(b4),Ne.PlateCarree=new Ne(XP),Object.freeze&&(Object.freeze(Ne.GCS_NAD_1927),Object.freeze(Ne.WGS84),Object.freeze(Ne.WebMercator),Object.freeze(Ne.PlateCarree));yt=Ne});var Ii,un,ds=P(()=>{tr();Ys();rr();Fe();qe();_o();n_();jt();eo();Ii=class extends hi{constructor(...e){super(...e),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=yt.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(e,t){if(e instanceof yt)return e;if(e!=null){let r=new yt;return r.read(e,t),r}return e}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(e){return this.cache[e]}setCacheValue(e,t){this.cache[e]=t}};R([j()],Ii.prototype,"type",void 0),R([j({readOnly:!0})],Ii.prototype,"cache",null),R([j({readOnly:!0})],Ii.prototype,"extent",null),R([j({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],Ii.prototype,"hasM",void 0),R([j({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],Ii.prototype,"hasZ",void 0),R([j({type:yt,json:{write:!0},value:yt.WGS84})],Ii.prototype,"spatialReference",void 0),R([j1("spatialReference")],Ii.prototype,"readSpatialReference",null),Ii=R([Me("esri.geometry.Geometry")],Ii);un=Ii});function cL(e){return e*qB}function uL(e){return e*jB}function S4(e){return e.wkid!=null||e.wkt!=null}function Wg(e,t,r,n,i){let o=e,s=i;if(s.spatialReference=r,"x"in o&&"x"in s)[s.x,s.y]=t(o.x,o.y,v4,n);else if("xmin"in o&&"xmin"in s)[s.xmin,s.ymin]=t(o.xmin,o.ymin,v4,n),[s.xmax,s.ymax]=t(o.xmax,o.ymax,v4,n);else if("paths"in o&&"paths"in s||"rings"in o&&"rings"in s){let a="paths"in o?o.paths:o.rings,u=[],d;for(let f=0;f<a.length;f++){let m=a[f];d=[],u.push(d);for(let w=0;w<m.length;w++)d.push(t(m[w][0],m[w][1],[0,0],n)),m[w].length>2&&d[w].push(m[w][2]),m[w].length>3&&d[w].push(m[w][3])}"paths"in s?s.paths=u:s.rings=u}else if("points"in o&&"points"in s){let a=o.points,u=[];for(let d=0;d<a.length;d++)u[d]=t(a[d][0],a[d][1],[0,0],n),a[d].length>2&&u[d].push(a[d][2]),a[d].length>3&&u[d].push(a[d][3]);s.points=u}return i}function zd(e,t){let r=e&&(S4(e)?e:e.spatialReference),n=t&&(S4(t)?t:t.spatialReference);return!(e&&"type"in e&&e.type==="mesh"||t&&"type"in t&&t.type==="mesh"||!r||!n)&&(!!cs(n,r)||Mi(n)&&ic(r)||Mi(r)&&ic(n))}function dL(e,t){if(e==null)return null;let r=e.spatialReference,n=t&&(S4(t)?t:t.spatialReference);return zd(r,n)?cs(r,n)?Le(e):Mi(n)?Wg(e,_a,yt.WebMercator,!1,Le(e)):ic(n)?Wg(e,sc,yt.WGS84,!1,Le(e)):null:null}function _a(e,t,r=[0,0]){t>89.99999?t=89.99999:t<-89.99999&&(t=-89.99999);let n=uL(t);return r[0]=uL(e)*Bn.radius,r[1]=Bn.halfSemiMajorAxis*Math.log((1+Math.sin(n))/(1-Math.sin(n))),r}function sc(e,t,r=[0,0],n=!1){let i=cL(e/Bn.radius);return r[0]=n?i:i-360*Math.floor((i+180)/360),r[1]=cL(Math.PI/2-2*Math.atan(Math.exp(-t/Bn.radius))),r}function zg(e,t=!1,r=Le(e)){return Wg(e,_a,yt.WebMercator,t,r)}function Gd(e,t=!1,r=Le(e)){return Wg(e,sc,yt.WGS84,t,r)}var qB,jB,v4,Bd=P(()=>{Qt();eo();J1();Ki();qB=57.29577951308232,jB=.017453292519943;v4=[0,0]});function fL(e,t){let r=e.x-t.x,n=e.y-t.y,i=e.z!=null&&t.z!=null?e.z-t.z:0;return Math.sqrt(r*r+n*n+i*i)}function pL(e){return hL(e,gL)?.[0]??null}function mL(e){return hL(e,gL)?.[1]??null}function hL({x:e,y:t,spatialReference:r},n=[0,0]){if(r){if(Mi(r))return sc(e,t,n);if(Wd(r))return n[0]=e,n[1]=t,n}return null}var gL,wL=P(()=>{Ki();Bd();gL=[0,0]});function yL(e){return e&&(e.declaredClass==="esri.geometry.SpatialReference"||e.wkid!=null)}var Gg,x4,Fr,bt,va=P(()=>{tr();qe();rr();P_();_o();Fe();n_();jt();oc();$o();ds();eo();wL();Ki();Bd();x4=[0,0];Fr=Gg=class extends un{static copy(e,t){t._set("x",e._get("x")),t._set("y",e._get("y")),t._set("z",e._get("z")),t._set("m",e._get("m"));let r=e._get("spatialReference");t._set("spatialReference",Object.isFrozen(r)?r:r.clone())}constructor(...e){super(...e),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(e,t,r,n,i){let o;if(Array.isArray(e))o=e,i=t,e=o[0],t=o[1],r=o[2],n=o[3];else if(e&&typeof e=="object"){if(o=e,e=o.x!=null?o.x:o.longitude,t=o.y!=null?o.y:o.latitude,r=o.z,n=o.m,(i=o.spatialReference)&&i.declaredClass!=="esri.geometry.SpatialReference"&&(i=new yt(i)),o.longitude!=null||o.latitude!=null){if(o.longitude==null)Ce.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(o.latitude==null)Ce.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!o.declaredClass&&i?.isWebMercator){let a=_a(o.longitude,o.latitude,x4);e=a[0],t=a[1]}}}else yL(r)?(i=r,r=null):yL(n)&&(i=n,n=null);let s={x:e,y:t};return s.x==null&&s.y!=null?Ce.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):s.y==null&&s.x!=null&&Ce.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),i!=null&&(s.spatialReference=i),r!=null&&(s.z=r),n!=null&&(s.m=n),s}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return this.m!==void 0}set hasM(e){e!==(this._get("m")!==void 0)&&(this._set("m",e?0:void 0),this._set("hasM",e))}get hasZ(){return this.z!==void 0}set hasZ(e){e!==(this._get("z")!==void 0)&&(this._set("z",e?0:void 0),this._set("hasZ",e))}get latitude(){return mL(this)}set latitude(e){let{spatialReference:t,x:r}=this;e!=null&&t&&(t.isWebMercator?this._set("y",_a(r,e,x4)[1]):t.isGeographic&&this._set("y",e),this._set("latitude",e))}get longitude(){return pL(this)}set longitude(e){let{y:t,spatialReference:r}=this;e!=null&&r&&(r.isWebMercator?this._set("x",_a(e,t,x4)[0]):r.isGeographic&&this._set("x",e),this._set("longitude",e))}writeX(e,t,r){t[r]=isNaN(e)?"NaN":e}readX(e){return typeof e=="string"?NaN:e}clone(){let e=new Gg;return e.x=this.x,e.y=this.y,e.z=this.z,e.m=this.m,e.spatialReference=this.spatialReference,e}copy(e){return Gg.copy(e,this),this}equals(e){if(e==null)return!1;let{x:t,y:r,z:n,m:i,spatialReference:o}=this,{z:s,m:a}=e,{x:u,y:d,spatialReference:f}=e;if(!o.equals(f))if(o.isWebMercator&&f.isWGS84)[u,d]=_a(u,d),f=o;else{if(!o.isWGS84||!f.isWebMercator)return!1;[u,d]=sc(u,d),f=o}return t===u&&r===d&&n===s&&i===a&&o.wkid===f.wkid}offset(e,t,r){return this.x+=e,this.y+=t,r!=null&&(this.z=(this.z??0)+r),this}normalize(){if(!this.spatialReference)return this;let e=ya(this.spatialReference);if(!e)return this;let t=this.x,[r,n]=e.valid,i=2*n,o;return t>n?(o=Math.ceil(Math.abs(t-n)/i),t-=o*i):t<r&&(o=Math.ceil(Math.abs(t-r)/i),t+=o*i),this._set("x",t),this}distance(e){return fL(this,e)}toArray(){let e=this.hasZ,t=this.hasM;return e&&t?[this.x,this.y,this.z,this.m]:e?[this.x,this.y,this.z]:t?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(e){return this.write({},e)}};R([j({readOnly:!0})],Fr.prototype,"cache",null),R([j({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],Fr.prototype,"hasM",null),R([j({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],Fr.prototype,"hasZ",null),R([j({type:Number})],Fr.prototype,"latitude",null),R([j({type:Number})],Fr.prototype,"longitude",null),R([j({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),y0(e=>isNaN(e)?e:pb(e))],Fr.prototype,"x",void 0),R([Xn("x")],Fr.prototype,"writeX",null),R([j1("x")],Fr.prototype,"readX",null),R([j({type:Number,json:{write:!0}})],Fr.prototype,"y",void 0),R([j({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],Fr.prototype,"z",void 0),R([j({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],Fr.prototype,"m",void 0),Fr=Gg=R([Me("esri.geometry.Point")],Fr),Fr.prototype.toJSON.isDefaultToJSON=!0;bt=Fr});function Bg(e,t){return t!=null&&Vr(e,t.x,t.y,t.z)}function _L(e,t){let{xmin:r,ymin:n,zmin:i,xmax:o,ymax:s,zmax:a}=t;return e.hasZ&&t.hasZ?Vr(e,r,n,i)&&Vr(e,r,s,i)&&Vr(e,o,s,i)&&Vr(e,o,n,i)&&Vr(e,r,n,a)&&Vr(e,r,s,a)&&Vr(e,o,s,a)&&Vr(e,o,n,a):Vr(e,r,n)&&Vr(e,r,s)&&Vr(e,o,s)&&Vr(e,o,n)}function ac(e,t){return Vr(e,t[0],t[1])}function vL(e,t){return Vr(e,t[0],t[1],t[2])}function Vr(e,t,r,n){return t>=e.xmin&&t<=e.xmax&&r>=e.ymin&&r<=e.ymax&&(n==null||!e.hasZ||n>=e.zmin&&n<=e.zmax)}function SL(e,t){return C4[1]=t.y,C4[0]=t.x,HB(e,C4)}function HB(e,t){return T4(e.rings,t)}function T4(e,t){if(!e)return!1;if(ZB(e))return bL(!1,e,t);let r=!1;for(let n=0,i=e.length;n<i;n++)r=bL(r,e[n],t);return r}function ZB(e){return!Array.isArray(e[0][0])}function bL(e,t,r){let[n,i]=r,o=e,s=0;for(let a=0,u=t.length;a<u;a++){s++,s===u&&(s=0);let[d,f]=t[a],[m,w]=t[s];(f<i&&w>=i||w<i&&f>=i)&&d+(i-f)/(w-f)*(m-d)<n&&(o=!o)}return o}var C4,qg=P(()=>{C4=[0,0]});function YB(e,t){return Bg(e,t)}function JB(e,t){let r=e.hasZ&&t.hasZ,n,i,o;if(e.xmin<=t.xmin){if(n=t.xmin,e.xmax<n)return!1}else if(n=e.xmin,t.xmax<n)return!1;if(e.ymin<=t.ymin){if(i=t.ymin,e.ymax<i)return!1}else if(i=e.ymin,t.ymax<i)return!1;if(r&&t.hasZ){if(e.zmin<=t.zmin){if(o=t.zmin,e.zmax<o)return!1}else if(o=e.zmin,t.zmax<o)return!1}return!0}function XB(e,t){let{points:r,hasZ:n}=t,i=n?vL:ac;for(let o of r)if(i(e,o))return!0;return!1}function KB(e,t){return eq(e,t.rings)}function eq(e,t){Sa[0]=e.xmin,Sa[1]=e.ymax,xa[0]=e.xmax,xa[1]=e.ymax,Ca[0]=e.xmin,Ca[1]=e.ymin,Ta[0]=e.xmax,Ta[1]=e.ymin;for(let r of QB)if(T4(t,r))return!0;for(let r of t){if(!r.length)continue;let n=r[0];if(ac(e,n))return!0;for(let i=1;i<r.length;i++){let o=r[i];if(ac(e,o)||TL(n,o,xL))return!0;n=o}}return!1}function tq(e,t){Sa[0]=e.xmin,Sa[1]=e.ymax,xa[0]=e.xmax,xa[1]=e.ymax,Ca[0]=e.xmin,Ca[1]=e.ymin,Ta[0]=e.xmax,Ta[1]=e.ymin;let r=t.paths;for(let n of r){if(!r.length)continue;let i=n[0];if(ac(e,i))return!0;for(let o=1;o<n.length;o++){let s=n[o];if(ac(e,s)||TL(i,s,xL))return!0;i=s}}return!1}function CL(e){for(let t=0;t<e.length;t++){let r=e[t];for(let i=0;i<r.length-1;i++){let o=r[i],s=r[i+1];for(let a=t+1;a<e.length;a++)for(let u=0;u<e[a].length-1;u++){let d=e[a][u],f=e[a][u+1];if(E4(o,s,d,f,or)&&!(or[0]===o[0]&&or[1]===o[1]||or[0]===d[0]&&or[1]===d[1]||or[0]===s[0]&&or[1]===s[1]||or[0]===f[0]&&or[1]===f[1]))return!0}}let n=r.length;if(!(n<=4))for(let i=0;i<n-3;i++){let o=n-1;i===0&&(o=n-2);let s=r[i],a=r[i+1];for(let u=i+2;u<o;u++){let d=r[u],f=r[u+1];if(E4(s,a,d,f,or)&&!(or[0]===s[0]&&or[1]===s[1]||or[0]===d[0]&&or[1]===d[1]||or[0]===a[0]&&or[1]===a[1]||or[0]===f[0]&&or[1]===f[1]))return!0}}}return!1}function TL(e,t,r){for(let n=0;n<r.length;n++)if(E4(e,t,r[n][0],r[n][1]))return!0;return!1}function E4(e,t,r,n,i){let[o,s]=e,[a,u]=t,[d,f]=r,[m,w]=n,_=m-d,S=o-d,C=a-o,M=w-f,N=s-f,L=u-s,k=M*C-_*L;if(k===0)return!1;let W=(_*N-M*S)/k,Z=(C*N-L*S)/k;return W>=0&&W<=1&&Z>=0&&Z<=1&&(i&&(i[0]=o+W*(a-o),i[1]=s+W*(u-s)),!0)}function EL(e){switch(e){case"esriGeometryEnvelope":case"extent":return JB;case"esriGeometryMultipoint":case"multipoint":return XB;case"esriGeometryPoint":case"point":return YB;case"esriGeometryPolygon":case"polygon":return KB;case"esriGeometryPolyline":case"polyline":return tq}}var Sa,xa,Ca,Ta,QB,xL,or,M4=P(()=>{qg();Sa=[0,0],xa=[0,0],Ca=[0,0],Ta=[0,0],QB=[Sa,xa,Ca,Ta],xL=[[Ca,Sa],[Sa,xa],[xa,Ta],[Ta,Ca]];or=[0,0]});function rq(e){return e&&(e.declaredClass==="esri.geometry.SpatialReference"||e.wkid!=null)}function fs(e,t,r){return t==null?r:r==null?t:e(t,r)}function P4(e,t){let[r,n]=t.valid,i=2*n,o,s=0;return e>n?(o=Math.ceil(Math.abs(e-n)/i),e-=o*i,s=o):e<r&&(o=Math.ceil(Math.abs(e-r)/i),e+=o*i,s=-o),{x:e,frameId:s}}var Cn,Zt,Qn,ps=P(()=>{tr();Co();rr();Fe();qe();_o();jt();ds();va();eo();qg();M4();Ki();Bd();Zt=Cn=class extends un{constructor(...e){super(...e),this.type="extent",this.xmin=0,this.ymin=0,this.mmin=void 0,this.zmin=void 0,this.xmax=0,this.ymax=0,this.mmax=void 0,this.zmax=void 0}normalizeCtorArgs(e,t,r,n,i){return rq(e)?{spatialReference:e,xmin:0,ymin:0,xmax:0,ymax:0}:typeof e=="object"?(e.spatialReference=e.spatialReference==null?yt.WGS84:e.spatialReference,e):{xmin:e,ymin:t,xmax:r,ymax:n,spatialReference:i??yt.WGS84}}static fromBounds(e,t){return new Cn({xmin:e[0],ymin:e[1],xmax:e[2],ymax:e[3],spatialReference:t})}static fromPoint(e){return new Cn({xmin:e.x,ymin:e.y,zmin:e.z,xmax:e.x,ymax:e.y,zmax:e.z,spatialReference:e.spatialReference})}get cache(){return this.commitProperty("xmin"),this.commitProperty("ymin"),this.commitProperty("zmin"),this.commitProperty("mmin"),this.commitProperty("xmax"),this.commitProperty("ymax"),this.commitProperty("zmax"),this.commitProperty("mmax"),this.commitProperty("spatialReference"),{}}get center(){let e=new bt({x:.5*(this.xmin+this.xmax),y:.5*(this.ymin+this.ymax),spatialReference:this.spatialReference});return this.hasZ&&(e.z=.5*(this.zmin+this.zmax)),this.hasM&&(e.m=.5*(this.mmin+this.mmax)),e}get extent(){return this.clone()}get hasM(){return this.mmin!=null&&this.mmax!=null}get hasZ(){return this.zmin!=null&&this.zmax!=null}get height(){return Math.abs(this.ymax-this.ymin)}get width(){return Math.abs(this.xmax-this.xmin)}centerAt(e){let t=this.center;return e.z!=null&&this.hasZ?this.offset(e.x-t.x,e.y-t.y,e.z-t.z):this.offset(e.x-t.x,e.y-t.y)}clone(){let e=new Cn;return e.xmin=this.xmin,e.ymin=this.ymin,e.xmax=this.xmax,e.ymax=this.ymax,e.spatialReference=this.spatialReference,this.zmin!=null&&(e.zmin=this.zmin,e.zmax=this.zmax),this.mmin!=null&&(e.mmin=this.mmin,e.mmax=this.mmax),e}contains(e){if(!e)return!1;let t=this.spatialReference,r=e.spatialReference;return t&&r&&!t.equals(r)&&zd(t,r)&&(e=t.isWebMercator?zg(e):Gd(e,!0)),e.type==="point"?Bg(this,e):e.type==="extent"&&_L(this,e)}equals(e){if(this===e)return!0;if(e==null)return!1;let t=this.spatialReference,r=e.spatialReference;return t&&r&&!t.equals(r)&&zd(t,r)&&(e=t.isWebMercator?zg(e):Gd(e,!0)),this.xmin===e.xmin&&this.ymin===e.ymin&&this.zmin===e.zmin&&this.mmin===e.mmin&&this.xmax===e.xmax&&this.ymax===e.ymax&&this.zmax===e.zmax&&this.mmax===e.mmax}expand(e){let t=.5*(1-e),r=this.width*t,n=this.height*t;if(this.xmin+=r,this.ymin+=n,this.xmax-=r,this.ymax-=n,this.hasZ){let i=(this.zmax-this.zmin)*t;this.zmin+=i,this.zmax-=i}if(this.hasM){let i=(this.mmax-this.mmin)*t;this.mmin+=i,this.mmax-=i}return this}intersects(e){if(e==null)return!1;e.type==="mesh"&&(e=e.extent);let t=this.spatialReference,r=e.spatialReference;return t&&r&&!cs(t,r)&&zd(t,r)&&(e=t.isWebMercator?zg(e):Gd(e,!0)),EL(e.type)(this,e)}normalize(){let e=this._normalize(!1,!0);return Array.isArray(e)?e:[e]}offset(e,t,r){return this.xmin+=e,this.ymin+=t,this.xmax+=e,this.ymax+=t,r!=null&&(this.zmin+=r,this.zmax+=r),this}shiftCentralMeridian(){return this._normalize(!0)}union(e){return this===e||(this.xmin=Math.min(this.xmin,e.xmin),this.ymin=Math.min(this.ymin,e.ymin),this.xmax=Math.max(this.xmax,e.xmax),this.ymax=Math.max(this.ymax,e.ymax),(this.hasZ||e.hasZ)&&(this.zmin=fs(Math.min,this.zmin,e.zmin),this.zmax=fs(Math.max,this.zmax,e.zmax)),(this.hasM||e.hasM)&&(this.mmin=fs(Math.min,this.mmin,e.mmin),this.mmax=fs(Math.max,this.mmax,e.mmax))),this}intersection(e){return this===e?this:e!=null&&this.intersects(e)?(this.xmin=Math.max(this.xmin,e.xmin),this.ymin=Math.max(this.ymin,e.ymin),this.xmax=Math.min(this.xmax,e.xmax),this.ymax=Math.min(this.ymax,e.ymax),(this.hasZ||e.hasZ)&&(this.zmin=fs(Math.max,this.zmin,e.zmin),this.zmax=fs(Math.min,this.zmax,e.zmax)),(this.hasM||e.hasM)&&(this.mmin=fs(Math.max,this.mmin,e.mmin),this.mmax=fs(Math.min,this.mmax,e.mmax)),this):null}toJSON(e){return this.write({},e)}_shiftCM(e=ya(this.spatialReference)){if(!e||!this.spatialReference)return this;let t=this.spatialReference,r=this._getCM(e);if(r){let n=t.isWebMercator?Gd(r):r;this.xmin-=r.x,this.xmax-=r.x,t.isWebMercator||(n.x=P4(n.x,e).x),this.spatialReference=new yt(li((t.isWGS84?e.altTemplate:null)??e.wkTemplate,{Central_Meridian:n.x}))}return this}_getCM(e){let t=null,[r,n]=e.valid,i=this.xmin,o=this.xmax;return i>=r&&i<=n&&o>=r&&o<=n||(t=this.center),t}_normalize(e,t,r){let n=this.spatialReference;if(!n)return this;let i=r??ya(n);if(i==null)return this;let o=this._getParts(i).map(u=>u.extent);if(o.length<2)return o[0]||this;if(o.length>2)return e?this._shiftCM(i):this.set({xmin:i.valid[0],xmax:i.valid[1]});if(e)return this._shiftCM(i);if(t)return o;let s=!0,a=!0;return o.forEach(u=>{u.hasZ||(s=!1),u.hasM||(a=!1)}),{rings:o.map(u=>{let d=[[u.xmin,u.ymin],[u.xmin,u.ymax],[u.xmax,u.ymax],[u.xmax,u.ymin],[u.xmin,u.ymin]];if(s){let f=(u.zmax-u.zmin)/2;for(let m=0;m<d.length;m++)d[m].push(f)}if(a){let f=(u.mmax-u.mmin)/2;for(let m=0;m<d.length;m++)d[m].push(f)}return d}),hasZ:s,hasM:a,spatialReference:n}}_getParts(e){let t=this.cache._parts;if(!t){t=[];let{ymin:i,ymax:o,spatialReference:s}=this,a=this.width,u=this.xmin,d=this.xmax,f;e=e||ya(s);let[m,w]=e.valid;f=P4(this.xmin,e);let _=f.x,S=f.frameId;f=P4(this.xmax,e);let C=f.x,M=f.frameId,N=_===C&&a>0;if(a>2*w){let L=new Cn(u<d?_:C,i,w,o,s),k=new Cn(m,i,u<d?C:_,o,s),W=new Cn(0,i,w,o,s),Z=new Cn(m,i,0,o,s),ee=[],ne=[];L.contains(W)&&ee.push(S),L.contains(Z)&&ne.push(S),k.contains(W)&&ee.push(M),k.contains(Z)&&ne.push(M);for(let te=S+1;te<M;te++)ee.push(te),ne.push(te);t.push({extent:L,frameIds:[S]},{extent:k,frameIds:[M]},{extent:W,frameIds:ee},{extent:Z,frameIds:ne})}else _>C||N?t.push({extent:new Cn(_,i,w,o,s),frameIds:[S]},{extent:new Cn(m,i,C,o,s),frameIds:[M]}):t.push({extent:new Cn(_,i,C,o,s),frameIds:[S]});this.cache._parts=t}let r=this.hasZ,n=this.hasM;if(r||n){let i={};r&&(i.zmin=this.zmin,i.zmax=this.zmax),n&&(i.mmin=this.mmin,i.mmax=this.mmax);for(let o=0;o<t.length;o++)t[o].extent.set(i)}return t}};R([j({readOnly:!0})],Zt.prototype,"cache",null),R([j({readOnly:!0})],Zt.prototype,"center",null),R([j({readOnly:!0})],Zt.prototype,"extent",null),R([j({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],Zt.prototype,"hasM",null),R([j({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],Zt.prototype,"hasZ",null),R([j({readOnly:!0})],Zt.prototype,"height",null),R([j({readOnly:!0})],Zt.prototype,"width",null),R([j({type:Number,json:{type:[Number,String],write:{enabled:!0,allowNull:!0}}})],Zt.prototype,"xmin",void 0),R([j({type:Number,json:{write:!0}})],Zt.prototype,"ymin",void 0),R([j({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasM}}}}})],Zt.prototype,"mmin",void 0),R([j({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],Zt.prototype,"zmin",void 0),R([j({type:Number,json:{write:!0}})],Zt.prototype,"xmax",void 0),R([j({type:Number,json:{write:!0}})],Zt.prototype,"ymax",void 0),R([j({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasM}}}}})],Zt.prototype,"mmax",void 0),R([j({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],Zt.prototype,"zmax",void 0),Zt=Cn=R([Me("esri.geometry.Extent")],Zt),Zt.prototype.toJSON.isDefaultToJSON=!0;Qn=Zt});function qd(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}var ML=P(()=>{ps()});function PL(e){if(!e)return"";let t=/(a|A|hh?|HH?|mm?|ss?|SSS|S|.)/g,r="";for(let n of e.match(t)||[])switch(n){case"SSS":case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":r+=n;break;case"A":case"a":r+="a";break;default:r+=`'${n}'`}return r}var sr,jd=P(()=>{ML();Gi();Rr();sr=class e{constructor(t,r,n,i){this._hour=t,this._minute=r,this._second=n,this._millisecond=i,this.declaredRootClass="esri.core.sql.timeonly"}get hour(){return this._hour}get minute(){return this._minute}get second(){return this._second}get millisecond(){return this._millisecond}equals(t){return t instanceof e&&t.hour===this.hour&&t.minute===this.minute&&t.second===this.second&&t.millisecond===this.millisecond}clone(){return new e(this.hour,this.minute,this.second,this.millisecond)}isValid(){return qd(this.hour)&&qd(this.minute)&&qd(this.second)&&qd(this.millisecond)&&this.hour>=0&&this.hour<24&&this.minute>=0&&this.minute<60&&this.second>=0&&this.second<60&&this.millisecond>=0&&this.millisecond<1e3}toString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`+(this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):"")}toSQLValue(){return this.toString()}toSQLWithKeyword(){return`time '${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}${this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):""}'`}toStorageString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`}toFormat(t=null){return t===null||t===""?this.toString():(t=PL(t))?ae.local(1970,1,1,this._hour,this._minute,this._second,this._millisecond).toFormat(t,{locale:en(),numberingSystem:"latn"}):""}toNumber(){return this.millisecond+1e3*this.second+1e3*this.minute*60+60*this.hour*60*1e3}static fromParts(t,r,n,i){let o=new e(t,r,n,i);return o.isValid()?o: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),0)}static fromMilliseconds(t){if(t>864e5||t<0)return null;let r=Math.floor(t/1e3%60),n=Math.floor(t/6e4%60),i=Math.floor(t/36e5%24),o=Math.floor(t%1e3);return new e(i,n,r,o)}static fromDateJS(t){return new e(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}static fromDateTime(t){return new e(t.hour,t.minute,t.second,t.millisecond)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,r=null){if(t===""||t===null)return null;let n=[];r?(r=PL(r))&&n.push(r):r!==null&&r!==""||(n.push("HH:mm:ss"),n.push("HH:mm:ss.SSS"),n.push("hh:mm:ss a"),n.push("hh:mm:ss.SSS a"),n.push("HH:mm"),n.push("hh:mm a"),n.push("H:mm"),n.push("h:mm a"),n.push("H:mm:ss"),n.push("h:mm:ss a"),n.push("H:mm:ss.SSS"),n.push("h:mm:ss.SSS a"));for(let i of n){let o=ae.fromFormat(t,i);if(o.isValid)return new e(o.hour,o.minute,o.second,o.millisecond)}return null}plus(t,r){switch(t){case"days":case"years":case"months":return this.clone();case"hours":case"minutes":case"seconds":case"milliseconds":return e.fromDateTime(this.toUTCDateTime().plus({[t]:r}))}return null}toUTCDateTime(){return ae.utc(1970,1,1,this.hour,this.minute,this.second,this.millisecond)}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}}}});function IL(e,t){let r=AL[e.toLowerCase()];if(r==null)throw new z(O.FunctionNotRecognized);if(t.length<r.minParams||t.length>r.maxParams)throw new z(O.InvalidParameterCount,{name:e.toUpperCase()});return r.evaluate(t)}function L4(e,t){let r=AL[e.toLowerCase()];return r!=null&&t>=r.minParams&&t<=r.maxParams}function kL(e){if(e===null)return null;let t=0,r=0;for(let n=0;n<e.length;n++){let i=e[n];if(i!==null){if(!I4(i))throw new z(O.InvalidValueForAggregateFunction);r++,t+=i}}return r===0?null:t/e.length}function I4(e){return typeof e=="number"}function LL(e,t){if(e===null)return null;let r=null,n=null;for(let i of e){let o=i;o=i instanceof qt||i instanceof sr?i.toNumber():i instanceof ae?i.toMillis():i instanceof pr?i.toMilliseconds():i,(r===null||t==="max"&&n!==null&&o!==null&&n<=o||t==="min"&&n!==null&&o!==null&&n>=o)&&(r=i,n=o)}return r}function nq(e){if(e===null)return null;let t=0;for(let r=0;r<e.length;r++){let n=e[r];if(n!==null){if(!I4(n))throw new z(O.InvalidValueForAggregateFunction);t+=n}}return t}function iq(e){if(e===null)return null;let t=NL(e);return t===null?null:Math.sqrt(t)}function NL(e){if(e===null||(e=e.filter(n=>n!==null)).length===0)return null;let t=kL(e);if(t===null)return null;let r=0;for(let n of e){if(!I4(n))throw new z(O.InvalidValueForAggregateFunction);r+=(t-n)**2}return r/(e.length-1)}var AL,RL=P(()=>{Do();Vu();Uu();jd();Rr();AL={min:{minParams:1,maxParams:1,evaluate:e=>LL(e[0],"min")},max:{minParams:1,maxParams:1,evaluate:e=>LL(e[0],"max")},avg:{minParams:1,maxParams:1,evaluate:e=>kL(e[0])},sum:{minParams:1,maxParams:1,evaluate:e=>nq(e[0])},stddev:{minParams:1,maxParams:1,evaluate:e=>iq(e[0])},count:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:e[0].length},var:{minParams:1,maxParams:1,evaluate:e=>NL(e[0])}}});var St,jg=P(()=>{Do();St=class e{constructor(){this.op="+",this.day=0,this.second=0,this.hour=0,this.month=0,this.year=0,this.minute=0,this.millis=0}static _fixDefaults(t){if(t.precision!==null||t.secondary!==null)throw new z(O.PrimarySecondaryQualifiers)}static _parseSecondsComponent(t,r){if(r.includes(".")){let n=r.split(".");t.second=parseFloat(n[0]),t.millis=parseInt(n[1],10)}else t.second=parseFloat(r)}static createFromMilliseconds(t){let r=new e;return r.second=t/1e3,r}static createFromValueAndQualifier(t,r,n){let i=null,o=new e;if(o.op=n==="-"?"-":"+",r.type==="interval-period"){e._fixDefaults(r);let s=new RegExp("^[0-9]{1,}$");if(r.period==="year"||r.period==="month")throw new z(O.YearMonthIntervals);if(r.period==="second"){if(!/^[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$/.test(t))throw new z(O.IllegalInterval);e._parseSecondsComponent(o,t)}else{if(!s.test(t))throw new z(O.IllegalInterval);o[r.period]=parseFloat(t)}}else{if(e._fixDefaults(r.start),e._fixDefaults(r.end),r.start.period==="year"||r.start.period==="month"||r.end.period==="year"||r.end.period==="month")throw new z(O.YearMonthIntervals);switch(r.start.period){case"day":switch(r.end.period){case"hour":if(i=new RegExp("^[0-9]{1,} [0-9]{1,}$"),!i.test(t))throw new z(O.IllegalInterval);o[r.start.period]=parseFloat(t.split(" ")[0]),o[r.end.period]=parseFloat(t.split(" ")[1]);break;case"minute":if(i=new RegExp("^[0-9]{1,} [0-9]{1,2}:[0-9]{1,}$"),!i.test(t))throw new z(O.IllegalInterval);{o[r.start.period]=parseFloat(t.split(" ")[0]);let s=t.split(" ")[1].split(":");o.hour=parseFloat(s[0]),o.minute=parseFloat(s[1])}break;case"second":if(i=new RegExp("^[0-9]{1,} [0-9]{1,2}:[0-9]{1,2}:[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$"),!i.test(t))throw new z(O.IllegalInterval);{o[r.start.period]=parseFloat(t.split(" ")[0]);let s=t.split(" ")[1].split(":");o.hour=parseFloat(s[0]),o.minute=parseFloat(s[1]),e._parseSecondsComponent(o,s[2])}break;default:throw new z(O.IllegalInterval)}break;case"hour":switch(r.end.period){case"minute":if(i=new RegExp("^[0-9]{1,}:[0-9]{1,}$"),!i.test(t))throw new z(O.IllegalInterval);o.hour=parseFloat(t.split(":")[0]),o.minute=parseFloat(t.split(":")[1]);break;case"second":if(i=new RegExp("^[0-9]{1,}:[0-9]{1,2}:[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$"),!i.test(t))throw new z(O.IllegalInterval);{let s=t.split(":");o.hour=parseFloat(s[0]),o.minute=parseFloat(s[1]),e._parseSecondsComponent(o,s[2])}break;default:throw new z(O.IllegalInterval)}break;case"minute":if(r.end.period!=="second")throw new z(O.IllegalInterval);if(i=new RegExp("^[0-9]{1,}:[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$"),!i.test(t))throw new z(O.IllegalInterval);{let s=t.split(":");o.minute=parseFloat(s[0]),e._parseSecondsComponent(o,s[1])}break;default:throw new z(O.IllegalInterval)}}return o}valueInMilliseconds(){return(this.op==="-"?-1:1)*(this.millis+1e3*this.second+60*this.minute*1e3+60*this.hour*60*1e3+24*this.day*60*60*1e3+this.month*(365/12)*24*60*60*1e3+365*this.year*24*60*60*1e3)}}});function lc(e,t){if(t instanceof kt)return t===Bt.instance?ae.fromMillis(e.getTime(),{zone:Bt.instance}):ae.fromJSDate(e,{zone:t});switch(t){case"system":case"local":case null:return ae.fromJSDate(e);default:return t?.toLowerCase()==="unknown"?ae.fromMillis(e.getTime(),{zone:Bt.instance}):ae.fromJSDate(e,{zone:t})}}function gr(e){return typeof e=="number"}function wr(e){return typeof e=="string"||e instanceof String}function to(e){return e instanceof St}function Yr(e){return e instanceof Date}function Je(e){return e instanceof ae}function Xe(e){return e instanceof qt}function it(e){return e instanceof sr}function Qe(e){return e instanceof pr}function Hd(e){let t=oq.exec(e);if(t!==null){let[,r,n,i]=t,o=sr.fromParts(parseInt(r,10),parseInt(n,10),parseInt(i,10),0);if(o!==null)return o;throw new z(O.InvalidTime)}if(t=sq.exec(e),t!==null){let[,r,n]=t,i=sr.fromParts(parseInt(r,10),parseInt(n,10),0,0);if(i!==null)return i;throw new z(O.InvalidTime)}if(t=aq.exec(e),t!==null){let[,r,n,i,o]=t,s=sr.fromParts(parseInt(r,10),parseInt(n,10),parseInt(i,10),parseInt(o,10));if(s!==null)return s;throw new z(O.InvalidTime)}throw new z(O.InvalidTime)}function cc(e,t,r=!1){let n=lq.exec(e);if(n!==null){let[,i,o,s,a,u,d,f]=n,m=ae.fromObject({year:parseInt(i,10),month:parseInt(o,10),day:parseInt(s,10),hour:parseInt(a,10),minute:parseInt(u,10),second:parseInt(d,10),millisecond:f?parseInt(f.replace(".",""),10):0},{zone:i1(t)});if(m.isValid===!1)throw new z(O.InvalidTimeStamp);return m}if(n=cq.exec(e),n!==null){let[,i,o,s,a,u,d,f,m,w,_]=n,S=pr.fromParts(parseInt(i,10),parseInt(o,10),parseInt(s,10),parseInt(a,10),parseInt(u,10),parseInt(d,10),f?parseInt(f.replace(".",""),10):0,m==="-",parseInt(w,10),parseInt(_,10));if(S.isValid===!1)throw new z(O.InvalidTimeStamp);return S}if(n=uq.exec(e),n!==null){let[,i,o,s,a,u,d,f,m]=n,w=pr.fromParts(parseInt(i,10),parseInt(o,10),parseInt(s,10),parseInt(a,10),parseInt(u,10),0,0,d==="-",parseInt(f,10),parseInt(m,10));if(w.isValid===!1)throw new z(O.InvalidTimeStamp);return w}if(n=dq.exec(e),n!==null){let[,i,o,s,a,u]=n,d=ae.fromObject({year:parseInt(i,10),month:parseInt(o,10),day:parseInt(s,10),hour:parseInt(a,10),minute:parseInt(u,10),second:0},{zone:i1(t)});if(d.isValid===!1)throw new z(O.InvalidTimeStamp);return d}if(n=DL.exec(e),n!==null){let[,i,o,s]=n,a=ae.fromObject({year:parseInt(i,10),month:parseInt(o,10),day:parseInt(s,10),hour:0,minute:0,second:0},{zone:i1(t)});if(a.isValid===!1)throw new z(O.InvalidTimeStamp);return a}throw new z(O.InvalidTimeStamp)}function A4(e,t){let r=DL.exec(e);if(r===null)try{return cc(e,t)}catch{throw new z(O.InvalidDate)}let[,n,i,o]=r,s=qt.fromParts(parseInt(n,10),parseInt(i,10),parseInt(o,10));if(s===null)throw new z(O.InvalidDate);return s}var oq,sq,aq,DL,lq,cq,uq,dq,Zd=P(()=>{Do();Vu();jg();Uu();jd();$u();Rr();oq=/^(\d{1,2}):(\d{1,2}):(\d{1,2})$/,sq=/^(\d{1,2}):(\d{1,2})$/,aq=/^(\d{1,2}):(\d{1,2}):(\d{1,2}).([0-9]+)$/,DL=/^(\d{4})-(\d{1,2})-(\d{1,2})$/,lq=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$/,cq=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[ ]{0,1}(\+|-)(\d{1,2}):(\d{1,2})$/,uq=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})?[ ]{0,1}(\+|-)(\d{1,2}):(\d{1,2})$/,dq=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/});function k4(e){return!!Je(e)||!!Qe(e)}function Zg(e){return!!Je(e)||!!Xe(e)||!!Qe(e)||!!it(e)}function Hg(e){if(Je(e))return e.toMillis();if(Xe(e))return e.toNumber();if(Qe(e))return e.toMilliseconds();throw new z(O.InvalidDataType)}function Ur(e,t,r,n){if(e==null||t==null)return null;if(gr(e)){if(gr(t))return Kn(e,t,r);if(wr(t))return wq(e,t,r);if(Zg(t))throw new z(O.InvalidOperator);if(Xe(t))throw new z(O.InvalidOperator)}else if(wr(e)){if(gr(t))return yq(e,t,r);if(wr(t))return bq(e,t,r);if(Je(t))throw new z(O.InvalidOperator);if(Xe(t))throw new z(O.InvalidOperator);if(it(t))throw new z(O.InvalidOperator);if(Qe(t))throw new z(O.InvalidOperator)}else if(Je(e)){if(k4(t)){if(e instanceof ae&&Fs(e.zone)){if(t instanceof ae&&Fs(t.zone)===!1||t instanceof pr)return Yd(e,t,r)}else if(t instanceof ae&&Fs(t.zone)&&(e instanceof ae&&Fs(e.zone)===!1||e instanceof pr))return Yd(e,t,r);return Kn(Hg(e),Hg(t),r)}if(wr(t))throw new z(O.InvalidOperator);if(Xe(t))return _q(e,t,r);if(it(t))throw new z(O.InvalidOperator);if(gr(t))throw new z(O.InvalidOperator)}else if(Xe(e)){if(Qe(t))return xq(e,t,r);if(Je(t))return Sq(e,t,r);if(wr(t))throw new z(O.InvalidOperator);if(Xe(t))return Kn(e.toNumber(),t.toNumber(),r);if(it(t))throw new z(O.InvalidOperator);if(gr(t))throw new z(O.InvalidOperator)}else if(it(e)){if(it(t))return Kn(e.toNumber(),t.toNumber(),r);if(wr(t))throw new z(O.InvalidOperator);if(gr(t))throw new z(O.InvalidOperator);if(Xe(t))throw new z(O.InvalidOperator);if(k4(t))throw new z(O.InvalidOperator)}else if(Qe(e)){if(k4(t))return t instanceof ae&&Fs(t.zone)?Yd(e,t,r):Kn(Hg(e),Hg(t),r);if(wr(t))throw new z(O.InvalidOperator);if(Xe(t))return vq(e,t,r);if(it(t))throw new z(O.InvalidOperator);if(gr(t))throw new z(O.InvalidOperator)}switch(r){case"<>":return e!==t;case"=":return e===t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}}function Kn(e,t,r){switch(r){case"<>":return e!==t;case"=":return e===t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}}function wq(e,t,r){let n=parseFloat(t);if(!isNaN(n))return Kn(e,n,r);let i=e.toString();switch(r){case"<>":return i!==t;case"=":return i===t;case">":return i>t;case"<":return i<t;case">=":return i>=t;case"<=":return i<=t}}function yq(e,t,r){let n=parseFloat(e);if(!isNaN(n))return Kn(n,t,r);let i=t.toString();switch(r){case"<>":return e!==i;case"=":return e===i;case">":return e>i;case"<":return e<i;case">=":return e>=i;case"<=":return e<=i}}function bq(e,t,r){switch(r){case"<>":return e!==t;case"=":return e===t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}}function _q(e,t,r){let n=t.toDateTimeLuxon(e.zone);return Kn((e=e.startOf("day")).toMillis(),n.toMillis(),r)}function vq(e,t,r){let n=t.toDateTimeLuxon(e.toDateTime().zone);return Kn((e=e.startOfDay()).toMilliseconds(),n.toMillis(),r)}function Sq(e,t,r){let n=e.toDateTimeLuxon(t.zone);return t=t.startOf("day"),Kn(n.toMillis(),t.toMillis(),r)}function xq(e,t,r){let n=e.toDateTimeLuxon(t.toDateTime().zone);return t=t.startOfDay(),Kn(n.toMillis(),t.toMilliseconds(),r)}function Yd(e,t,r){e instanceof pr&&(e=e.toDateTime()),t instanceof pr&&(t=t.toDateTime());let n=OL(e),i=OL(t);switch(r){case"<>":return n!==i;case"=":return n===i;case">":return n>i;case"<":return n<i;case">=":return n>=i;case"<=":return n<=i}}function OL(e){return e.year*fq+e.month*pq+e.day*mq+e.hour*hq+e.minute*gq+1e3*e.second+e.millisecond}var fq,pq,mq,hq,gq,N4=P(()=>{Do();Zd();Uu();$u();Rr();fq=321408e5,pq=26784e5,mq=864e5,hq=36e5,gq=6e4});function Jd(e,t,r){let n=VL[e.toLowerCase()];if(n==null)throw new z(O.FunctionNotRecognized);if(t.length<n.minParams||t.length>n.maxParams)throw new z(O.InvalidParameterCount,{name:e.toUpperCase()});return n.evaluate(t,r)}function $L(e,t){let r=VL[e.toLowerCase()];return r!=null&&t>=r.minParams&&t<=r.maxParams}function Yg(e){return typeof e=="string"||e instanceof String}function R4(e){return!Yr(e)&&!Xe(e)&&!Je(e)&&!it(e)&&!Qe(e)}function FL(e){return Xe(e)||it(e)?e.toString():Qe(e)?e.toSQLValue():Je(e)?e.millisecond===0?e.toFormat("yyyy-LL-dd HH:mm:ss"):e.toSQL({includeOffset:!1}):Yr(e)?FL(ae.fromJSDate(e)):e.toString()}function Cq(e){if(Yr(e))return qt.fromDateJS(e);if(Je(e))return qt.fromParts(e.year,e.month,e.day);if(Xe(e))return e;if(it(e))throw new z(O.CannotCastValue);if(Qe(e)&&qt.fromParts(e.year,e.month,e.day)===null)throw new z(O.CannotCastValue);if(Yg(e)){let t=qt.fromReader(e);if(t!==null&&t.isValid)return t}throw new z(O.CannotCastValue)}function Tq(e,t,r){if(Yr(e))return lc(e,t);if(Je(e))return e;if(Xe(e))return e.toDateTimeLuxon("unknown");if(it(e))throw new z(O.CannotCastValue);if(Qe(e))return e;if(Yg(e))return cc(e,"unknown",r);throw new z(O.CannotCastValue)}function Eq(e){if(Yr(e))return sr.fromDateJS(e);if(Je(e))return sr.fromDateTime(e);if(Xe(e))throw new z(O.CannotCastValue);if(it(e))return e;if(Qe(e))return sr.fromSqlTimeStampOffset(e);if(Yg(e))return Hd(e);throw new z(O.CannotCastValue)}var VL,D4=P(()=>{Do();Co();Vu();N4();Zd();jd();Rr();VL={extract:{minParams:2,maxParams:2,evaluate:([e,t])=>{if(t==null)return null;if(Yr(t))switch(e.toUpperCase()){case"SECOND":return t.getSeconds();case"MINUTE":return t.getMinutes();case"HOUR":return t.getHours();case"DAY":return t.getDate();case"MONTH":return t.getMonth()+1;case"YEAR":return t.getFullYear();case"TIMEZONE_HOUR":case"TIMEZONE_MINUTE":return 0}else if(Je(t))switch(e.toUpperCase()){case"SECOND":return t.second;case"MINUTE":return t.minute;case"HOUR":return t.hour;case"DAY":return t.day;case"MONTH":return t.month;case"YEAR":return t.year;case"TIMEZONE_HOUR":case"TIMEZONE_MINUTE":throw new z(O.InvalidFunctionParameters,{function:"EXTRACT"})}else if(Xe(t))switch(e.toUpperCase()){case"DAY":return t.day;case"MONTH":return t.month;case"YEAR":return t.year;case"TIMEZONE_HOUR":case"TIMEZONE_MINUTE":throw new z(O.InvalidFunctionParameters,{function:"EXTRACT"})}else if(it(t))switch(e.toUpperCase()){case"SECOND":return t.second;case"MINUTE":return t.minute;case"HOUR":return t.hour}else if(Qe(t))switch(e.toUpperCase()){case"SECOND":return t.second;case"MINUTE":return t.minute;case"HOUR":return t.hour;case"DAY":return t.day;case"MONTH":return t.month;case"YEAR":return t.year;case"TIMEZONE_HOUR":return t.timezoneOffsetHour;case"TIMEZONE_MINUTE":return t.timezoneOffsetMinutes}throw new z(O.InvalidFunctionParameters,{function:"EXTRACT"})}},substring:{minParams:2,maxParams:3,evaluate:e=>{if(e.length===2){let[t,r]=e;return t==null||r==null?null:t.toString().substring(r-1)}if(e.length===3){let[t,r,n]=e;return t==null||r==null||n==null?null:n<=0?"":t.toString().substring(r-1,r+n-1)}}},position:{minParams:2,maxParams:2,evaluate:([e,t])=>e==null||t==null?null:t.indexOf(e)+1},trim:{minParams:2,maxParams:3,evaluate:e=>{let t=e.length===3,r=t?e[1]:" ",n=t?e[2]:e[1];if(r==null||n==null)return null;let i=`(${Nx(r)})`;switch(e[0]){case"BOTH":return n.replaceAll(new RegExp(`^${i}*|${i}*$`,"g"),"");case"LEADING":return n.replaceAll(new RegExp(`^${i}*`,"g"),"");case"TRAILING":return n.replaceAll(new RegExp(`${i}*$`,"g"),"")}throw new z(O.InvalidFunctionParameters,{function:"TRIM"})}},abs:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.abs(e[0])},ceiling:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.ceil(e[0])},floor:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.floor(e[0])},log:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.log(e[0])},log10:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.log(e[0])*Math.LOG10E},sin:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.sin(e[0])},cos:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.cos(e[0])},tan:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.tan(e[0])},asin:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.asin(e[0])},acos:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.acos(e[0])},atan:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.atan(e[0])},sign:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:e[0]>0?1:e[1]<0?-1:0},power:{minParams:2,maxParams:2,evaluate:e=>e[0]==null||e[1]==null?null:e[0]**e[1]},mod:{minParams:2,maxParams:2,evaluate:e=>e[0]==null||e[1]==null?null:e[0]%e[1]},round:{minParams:1,maxParams:2,evaluate:e=>{let t=e[0],r=e.length===2?10**e[1]:1;return t==null?null:Math.round(t*r)/r}},truncate:{minParams:1,maxParams:2,evaluate:e=>e[0]==null?null:e.length===1?parseInt(e[0].toFixed(0),10):parseFloat(e[0].toFixed(e[1]))},char_length:{minParams:1,maxParams:1,evaluate:e=>Yg(e[0])?e[0].length:0},concat:{minParams:1,maxParams:1/0,evaluate:e=>{let t="";for(let r=0;r<e.length;r++){if(e[r]==null)return null;t+=e[r].toString()}return t}},lower:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:e[0].toString().toLowerCase()},upper:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:e[0].toString().toUpperCase()},coalesce:{minParams:1,maxParams:1/0,evaluate:e=>{for(let t of e)if(t!==null)return t;return null}},cosh:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.cosh(e[0])},sinh:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.sinh(e[0])},tanh:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.tanh(e[0])},nullif:{minParams:2,maxParams:2,evaluate:(e,t)=>Ur(e[0],e[1],"=")?null:e[0]},cast:{minParams:2,maxParams:2,evaluate:(e,t)=>{let r=e[0],n=e[1];if(r===null)return null;switch(n.type){case"integer":{if(!R4(r))throw new z(O.CannotCastValue);let i=parseInt(r,10);if(isNaN(i))throw new z(O.CannotCastValue);return i}case"smallint":{if(!R4(r))throw new z(O.CannotCastValue);let i=parseInt(r,10);if(isNaN(i))throw new z(O.CannotCastValue);if(i>32767||i<-32767)throw new z(O.CannotCastValue);return i}case"float":case"real":{if(!R4(r))throw new z(O.CannotCastValue);let i=parseFloat(r);if(isNaN(i))throw new z(O.CannotCastValue);return i}case"time":return Eq(r);case"date":return Cq(r);case"timestamp":return Tq(r,t,n.withtimezone===!0);case"varchar":{let i=FL(r);if(i.length>n.size)throw new z(O.CannotCastValue);return i}default:throw new z(O.InvalidDataType)}}}}});function O4(e,t,r,n){if(e==="||")return Jd("concat",[t,r],n);if(t===null||r===null)return null;if(gr(t)){if(gr(r))return $4(t,r,e);if(to(r))return Rq(t,r,e);if(it(r))return Bq();if(Xe(r))return qq();if(Qe(r))return Gq();if(Je(r))return Wq();if(wr(r))return jq(t,r,e);throw new z(O.InvalidOperator)}if(Xe(t)){if(gr(r))return Vq(t,r,e);if(to(r))return Dq(t,r,e);if(it(r))return ej();if(Xe(r))return Kq(t,r,e);if(Qe(r))return Qq(t,r,e);if(Je(r))return Xq(t,r,e);if(wr(r))return pj();throw new z(O.InvalidOperator)}if(it(t)){if(gr(r))return Uq(t,r,e);if(to(r))return Iq(t,r,e);if(it(r))return lj();if(Xe(r))return sj();if(Qe(r))return aj();if(Je(r))return oj();if(wr(r))return mj();throw new z(O.InvalidOperator)}if(to(t)){if(gr(r))return Nq(t,r,e);if(to(r))return kq(t,r,e);if(it(r))return Pq(t,r,e);if(Xe(r))return Lq(t,r,e);if(Qe(r))return Aq(t,r,e);if(Je(r))return Mq(t,r,e);if(wr(r))return Yq();throw new z(O.InvalidOperator)}if(Je(t)){if(gr(r))return Fq(t,r,e);if(to(r))return Oq(t,r,e);if(it(r))return fj();if(Xe(r))return uj(t,r,e);if(Qe(r))return dj(t,r,e);if(Je(r))return cj(t,r,e);if(wr(r))return hj();throw new z(O.InvalidOperator)}if(Qe(t)){if(gr(r))return zq(t,r,e);if(to(r))return $q(t,r,e);if(it(r))return tj();if(Xe(r))return rj(t,r,e);if(Qe(r))return ij(t,r,e);if(Je(r))return nj(t,r,e);if(wr(r))return gj();throw new z(O.InvalidOperator)}if(wr(t)){if(gr(r))return Hq(t,r,e);if(to(r))return Jq();if(it(r))return wj();if(Xe(r))return yj();if(Qe(r))return _j();if(Je(r))return bj();if(wr(r))return Zq(t,r,e);throw new z(O.InvalidOperator)}throw new z(O.InvalidOperator)}function $4(e,t,r){switch(r){case"+":return e+t;case"-":return e-t;case"*":return e*t;case"/":return e/t}throw new z(O.InvalidOperator)}function Mq(e,t,r){switch(r){case"+":return t.plus({milliseconds:e.valueInMilliseconds()});case"-":return e.valueInMilliseconds()-t.toMillis()}throw new z(O.InvalidOperator)}function Pq(e,t,r){if(r==="+")return t.plus("milliseconds",e.valueInMilliseconds());throw new z(O.InvalidOperator)}function Lq(e,t,r){if(r==="+")return t.plus("milliseconds",e.valueInMilliseconds());throw new z(O.InvalidOperator)}function Iq(e,t,r){switch(r){case"+":return e.plus("milliseconds",t.valueInMilliseconds());case"-":return e.plus("milliseconds",-1*t.valueInMilliseconds())}throw new z(O.InvalidOperator)}function Aq(e,t,r){if(r==="+")return t.addMilliseconds(e.valueInMilliseconds());throw new z(O.InvalidOperator)}function kq(e,t,r){switch(r){case"+":return St.createFromMilliseconds(e.valueInMilliseconds()+t.valueInMilliseconds());case"-":return St.createFromMilliseconds(e.valueInMilliseconds()-t.valueInMilliseconds());case"*":return St.createFromMilliseconds(e.valueInMilliseconds()*t.valueInMilliseconds());case"/":return St.createFromMilliseconds(e.valueInMilliseconds()/t.valueInMilliseconds())}throw new z(O.InvalidOperator)}function Nq(e,t,r){switch(r){case"+":return St.createFromMilliseconds(e.valueInMilliseconds()+t);case"-":return St.createFromMilliseconds(e.valueInMilliseconds()-t);case"*":return St.createFromMilliseconds(e.valueInMilliseconds()*t);case"/":return St.createFromMilliseconds(e.valueInMilliseconds()/t)}throw new z(O.InvalidOperator)}function Rq(e,t,r){switch(r){case"+":return St.createFromMilliseconds(e+t.valueInMilliseconds());case"-":return St.createFromMilliseconds(e-t.valueInMilliseconds());case"*":return St.createFromMilliseconds(e*t.valueInMilliseconds());case"/":return St.createFromMilliseconds(e/t.valueInMilliseconds())}throw new z(O.InvalidOperator)}function Dq(e,t,r){switch(r){case"+":return e.plus("milliseconds",t.valueInMilliseconds());case"-":return e.plus("milliseconds",-1*t.valueInMilliseconds())}throw new z(O.InvalidOperator)}function Oq(e,t,r){switch(r){case"+":return e.plus({milliseconds:t.valueInMilliseconds()});case"-":return e.minus({milliseconds:t.valueInMilliseconds()})}throw new z(O.InvalidOperator)}function $q(e,t,r){switch(r){case"+":return e.addMilliseconds(t.valueInMilliseconds());case"-":return e.addMilliseconds(-1*t.valueInMilliseconds())}throw new z(O.InvalidOperator)}function Fq(e,t,r){let n=1e3*t*24*60*60;switch(r){case"+":return e.plus({milliseconds:n});case"-":return e.minus({milliseconds:n})}throw new z(O.InvalidOperator)}function Vq(e,t,r){let n=1e3*t*24*60*60;switch(r){case"+":return e.plus("milliseconds",n);case"-":return e.plus("milliseconds",-1*n)}throw new z(O.InvalidOperator)}function Uq(e,t,r){let n=1e3*t*24*60*60;switch(r){case"+":return e.plus("milliseconds",n);case"-":return e.plus("milliseconds",-1*n)}throw new z(O.InvalidOperator)}function Wq(e,t,r){throw new z(O.InvalidOperator)}function zq(e,t,r){let n=1e3*t*24*60*60;switch(r){case"+":return e.addMilliseconds(n);case"-":return e.addMilliseconds(-1*n)}throw new z(O.InvalidOperator)}function Gq(e,t,r){throw new z(O.InvalidOperator)}function Bq(e,t,r){throw new z(O.InvalidOperator)}function qq(e,t,r){throw new z(O.InvalidOperator)}function jq(e,t,r){let n=parseFloat(t);if(isNaN(n))throw new z(O.InvalidOperator);return $4(e,n,r)}function Hq(e,t,r){let n=parseFloat(e);if(isNaN(n))throw new z(O.InvalidOperator);return $4(n,t,r)}function Zq(e,t,r){if(r==="+")return e+t;throw new z(O.InvalidOperator)}function Yq(e,t,r){throw new z(O.InvalidOperator)}function Jq(e,t,r){throw new z(O.InvalidOperator)}function Xq(e,t,r){if(r==="-")return e.toDateTimeLuxon(t.zone).diff(t).as("days");throw new z(O.InvalidOperator)}function Qq(e,t,r){if(r==="-")return e.toDateTimeLuxon(t.toDateTime().zone).diff(t.toDateTime()).as("days");throw new z(O.InvalidOperator)}function Kq(e,t,r){if(r==="-")return e.toDateTimeLuxon("UTC").diff(t.toDateTimeLuxon("UTC")).as("days");throw new z(O.InvalidOperator)}function ej(e,t,r){throw new z(O.InvalidOperator)}function tj(e,t,r){throw new z(O.InvalidOperator)}function rj(e,t,r){if(r==="-")return e.toDateTime().diff(t.toDateTimeLuxon(e.toDateTime().zone)).as("days");throw new z(O.InvalidOperator)}function nj(e,t,r){if(r==="-")return e.toDateTime().diff(t).as("days");throw new z(O.InvalidOperator)}function ij(e,t,r){if(r==="-")return e.toDateTime().diff(t.toDateTime()).as("days");throw new z(O.InvalidOperator)}function oj(e,t,r){throw new z(O.InvalidOperator)}function sj(e,t,r){throw new z(O.InvalidOperator)}function aj(e,t,r){throw new z(O.InvalidOperator)}function lj(e,t,r){throw new z(O.InvalidOperator)}function cj(e,t,r){if(r==="-")return e.diff(t).as("days");throw new z(O.InvalidOperator)}function uj(e,t,r){if(r==="-")return e.diff(t.toDateTimeLuxon(e.zone)).as("days");throw new z(O.InvalidOperator)}function dj(e,t,r){if(r==="-")return e.diff(t.toDateTime()).as("days");throw new z(O.InvalidOperator)}function fj(e,t,r){throw new z(O.InvalidOperator)}function pj(e,t,r){throw new z(O.InvalidOperator)}function mj(e,t,r){throw new z(O.InvalidOperator)}function hj(e,t,r){throw new z(O.InvalidOperator)}function gj(e,t,r){throw new z(O.InvalidOperator)}function wj(e,t,r){throw new z(O.InvalidOperator)}function yj(e,t,r){throw new z(O.InvalidOperator)}function bj(e,t,r){throw new z(O.InvalidOperator)}function _j(e,t,r){throw new z(O.InvalidOperator)}var UL=P(()=>{Do();Zd();jg();D4()});function vj(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function Ea(e,t,r,n){var i=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(i,Ea.prototype),i.expected=t,i.found=r,i.location=n,i.name="SyntaxError",i}function F4(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}function Sj(e,t){var r,n={},i=(t=t!==void 0?t:{}).grammarSource,o={start:hS},s=hS,a="!",u="=",d=">=",f=">",m="<=",w="<>",_="!=",S="||",C="@",M="'",N="N'",L="''",k=".",W="null",Z="true",ee="false",ne="in",te="is",pe="like",ge="escape",ue="not",G="and",D="or",B="between",K="from",Q="for",se="substring",de="extract",we="trim",Pe="position",Ke="timestamp",Ft="date",xt="time",ar="leading",ki="trailing",yr="both",dn="cast",fc="as",ef="integer",La="smallint",ow="float",tf="real",sw="varchar",rf="to",aw="interval",lw="year",cw="timezone_hour",pc="timezone_minute",uw="month",nf="day",of="hour",Wr="minute",dw="second",sf="case",Ia="end",fw="when",pw="then",mw="else",hw=",",gw="(",ww=")",af="`",yw=/^[<-=]/,Aa=/^[+\-]/,bw=/^[*\/]/,mc=/^[A-Za-z_\x80-\uFFFF]/,_w=/^[A-Za-z0-9_]/,no=/^[A-Za-z0-9_.\x80-\uFFFF]/,vw=/^["]/,lf=/^[^']/,Sw=/^[0-9]/,xw=/^[eE]/,Cw=/^[ \t\n\r]/,cf=/^[^`]/,Tw=fe("!",!1),Ew=fe("=",!1),$=fe(">=",!1),ka=fe(">",!1),uf=fe("<=",!1),df=fe("<>",!1),ff=fn([["<","="]],!1,!1),pf=fe("!=",!1),gs=fn(["+","-"],!1,!1),mf=fe("||",!1),hf=fn(["*","/"],!1,!1),gf=fn([["A","Z"],["a","z"],"_",["\x80","\uFFFF"]],!1,!1),wf=fn([["A","Z"],["a","z"],["0","9"],"_"],!1,!1),hc=fn([["A","Z"],["a","z"],["0","9"],"_",".",["\x80","\uFFFF"]],!1,!1),yf=fn(['"'],!1,!1),bf=fe("@",!1),gc=fe("'",!1),_f=fe("N'",!1),wc=fe("''",!1),yc=fn(["'"],!0,!1),vf=fe(".",!1),Sf=fn([["0","9"]],!1,!1),xf=fn(["e","E"],!1,!1),Cf=fe("NULL",!0),Tf=fe("TRUE",!0),Ef=fe("FALSE",!0),Mf=fe("IN",!0),Pf=fe("IS",!0),Lf=fe("LIKE",!0),If=fe("ESCAPE",!0),Af=fe("NOT",!0),kf=fe("AND",!0),Nf=fe("OR",!0),Rf=fe("BETWEEN",!0),Df=fe("FROM",!0),Of=fe("FOR",!0),$f=fe("SUBSTRING",!0),Ff=fe("EXTRACT",!0),Vf=fe("TRIM",!0),Uf=fe("POSITION",!0),Wf=fe("TIMESTAMP",!0),zf=fe("DATE",!0),Gf=fe("TIME",!0),Bf=fe("LEADING",!0),qf=fe("TRAILING",!0),jf=fe("BOTH",!0),Hf=fe("CAST",!0),Zf=fe("AS",!0),Yf=fe("INTEGER",!0),Jf=fe("SMALLINT",!0),Xf=fe("FLOAT",!0),Qf=fe("REAL",!0),Kf=fe("VARCHAR",!0),ep=fe("TO",!0),tp=fe("INTERVAL",!0),rp=fe("YEAR",!0),np=fe("TIMEZONE_HOUR",!0),ip=fe("TIMEZONE_MINUTE",!0),op=fe("MONTH",!0),sp=fe("DAY",!0),ap=fe("HOUR",!0),lp=fe("MINUTE",!0),cp=fe("SECOND",!0),up=fe("CASE",!0),dp=fe("END",!0),fp=fe("WHEN",!0),pp=fe("THEN",!0),mp=fe("ELSE",!0),hp=fe(",",!1),gp=fe("(",!1),wp=fe(")",!1),yp=fn([" "," ",`
|
|
137
|
+
`,"\r"],!1,!1),bc=fe("`",!1),_c=fn(["`"],!0,!1),bp=function(c){return c},_p=function(c){return Ri(ce(),...c)},vc=function(c,h,y){return{op:h,expr:y,location:ce()}},vp=function(c,h){return Lc(c,h)},Sc=function(c,h,y){return{op:h,expr:y,location:ce()}},Sp=function(c,h){return Lc(c,h)},xp=function(c){return Vk("NOT",c,ce())},Cp=function(c,h){return h==""||h==null||h==null?c:h.type=="arithmetic"?Lc(c,h.tail):ZS(h.op,c,h.right,h.escape,ce())},xc=function(c,h){return{op:c,expr:h,location:ce()}},Tp=function(c){return{type:"arithmetic",tail:c}},Ep=function(c,h){return{op:c+"NOT",right:h}},Mp=function(c,h){return{op:c,right:h}},Pp=function(c,h,y){return Ri(ce(),h,y)},Lp=function(c,h){return{op:"NOT"+c,right:h}},Ip=function(c,h,y){return Ri(ce(),h,y)},Ap=function(c,h){return{op:c,right:h}},kp=function(c){return c[0]+" "+c[2]},Np=function(c){return c[0]+" "+c[2]},Rp=function(c,h,y){return{op:c,right:h,escape:y.value}},Dp=function(c,h){return{op:c,right:h,escape:""}},Op=function(c,h){return{op:c,right:h}},$p=function(c,h){return{op:c,right:h}},Cc=function(c,h,y){return{op:h,expr:y,location:ce()}},Fp=function(c,h){return Lc(c,h)},Tc=function(c,h,y){return{op:h,expr:y,location:ce()}},Vp=function(c,h){return Lc(c,h)},Up=function(c){return c.paren=!0,c},Wp=function(c){return/^CURRENT_DATE$/i.test(c)?{type:"current-time",location:ce(),mode:"date"}:/^CURRENT_TIMESTAMP$/i.test(c)?{type:"current-time",location:ce(),mode:"timestamp"}:{type:"column-reference",location:ce(),table:"",column:c}},zp=function(c){return{type:"column-reference",location:ce(),table:"",column:c,delimited:!0}},Gp=function(c){return c},Bp=function(c,h){return c+h.join("")},qp=function(c,h){return c+h.join("")},jp=function(c){return c},Hp=function(c){return c.join("")},Zp=function(){return'"'},Yp=function(c){return{type:"parameter",location:ce(),value:c[1]}},Jp=function(c,h){return Ri(ce(),c,h)},Xp=function(c){return{type:"function",location:ce(),name:"extract",args:c}},Qp=function(c,h,y){return Ri(ce(),c,h,...y?[y]:[])},Kp=function(c){return{type:"function",location:ce(),name:"substring",args:c}},em=function(c,h){return Ri(ce(),c,h)},tm=function(c){return{type:"function",location:ce(),name:"cast",args:c}},rm=function(){return{type:"data-type",location:ce(),value:{type:"integer"}}},nm=function(){return{type:"data-type",location:ce(),value:{type:"smallint"}}},im=function(){return{type:"data-type",location:ce(),value:{type:"float"}}},om=function(){return{type:"data-type",location:ce(),value:{type:"real"}}},sm=function(){return{type:"data-type",location:ce(),value:{type:"date"}}},am=function(){return{type:"data-type",location:ce(),value:{type:"timestamp"}}},lm=function(){return{type:"data-type",location:ce(),value:{type:"time"}}},cm=function(c){return{type:"data-type",location:ce(),value:{type:"varchar",size:parseInt(c)}}},um=function(c,h,y){return Ri(ce(),c,h,y)},dm=function(c){return{type:"function",location:ce(),name:"trim",args:c}},fm=function(c,h){return Ri(ce(),c,h)},pm=function(c){return{type:"function",location:ce(),name:"trim",args:c}},mm=function(c){return{type:"string",location:ce(),value:c??"BOTH"}},hm=function(c,h){return Ri(ce(),c,h)},gm=function(c){return{type:"function",location:ce(),name:"position",args:c}},wm=function(c,h){return{type:"function",location:ce(),name:c,args:h}},ym=function(c){return{type:"string",location:ce(),value:c}},bm=function(c){return c.type==="string"&&Uk(c.value),{type:"timestamp",location:ce(),value:c.value}},_m=function(c){return c.type==="string"&&Wk(c.value),{type:"time",location:ce(),value:c.value}},vm=function(c,h,y){return{type:"interval",location:ce(),value:h,qualifier:y,op:c}},Sm=function(c,h){return{type:"interval",location:ce(),value:c,qualifier:h,op:""}},xm=function(c,h){return{type:"interval-qualifier",location:ce(),start:c,end:h}},Cm=function(c,h){return{type:"interval-period",location:ce(),period:c.value,precision:h,secondary:null}},Tm=function(c){return{type:"interval-period",location:ce(),period:c.value,precision:null,secondary:null}},Em=function(c){return{type:"interval-period",location:ce(),period:c.value,precision:null,secondary:null}},ot=function(c,h){return{type:"interval-period",location:ce(),period:"second",precision:c,secondary:h}},ws=function(c){return{type:"interval-period",location:ce(),period:"second",precision:c,secondary:null}},Ct=function(){return{type:"interval-period",location:ce(),period:"second",precision:null,secondary:null}},Mw=function(c,h){return{type:"interval-period",location:ce(),period:c.value,precision:h,secondary:null}},Pw=function(c){return{type:"interval-period",location:ce(),period:c.value,precision:null,secondary:null}},Lw=function(c,h){return{type:"interval-period",location:ce(),period:"second",precision:c,secondary:h}},Iw=function(c){return{type:"interval-period",location:ce(),period:"second",precision:c,secondary:null}},Aw=function(){return{type:"interval-period",location:ce(),period:"second",precision:null,secondary:null}},ve=function(){return{type:"string",location:ce(),value:"day"}},Ec=function(){return{type:"string",location:ce(),value:"hour"}},Jr=function(){return{type:"string",location:ce(),value:"minute"}},kw=function(){return{type:"string",location:ce(),value:"month"}},Nw=function(){return{type:"string",location:ce(),value:"year"}},Rw=function(c){return parseFloat(c)},Dw=function(c){return parseFloat(c)},dt=function(c){return c.type==="string"&&zk(c.value),{type:"date",location:ce(),value:c.value}},lr=function(){return{type:"null",location:ce(),value:null}},Tn=function(){return{type:"boolean",location:ce(),value:!0}},Yt=function(){return{type:"boolean",location:ce(),value:!1}},H=function(){return"'"},cr=function(c){return{type:"string",location:ce(),value:c.join("")}},Lt=function(c,h){return{type:"case-expression",location:ce(),format:"simple",operand:c,clauses:h,else:null,elseLocation:null}},ft=function(c,h,y){return{type:"case-expression",location:ce(),format:"simple",operand:c,clauses:h,else:y.value,elseLocation:y.location}},st=function(c){return{type:"case-expression",location:ce(),format:"searched",clauses:c,else:null,elseLocation:null}},Pr=function(c,h){return{type:"case-expression",location:ce(),format:"searched",clauses:c,else:h.value,elseLocation:h.location}},br=function(c,h){return{type:"when-clause",location:ce(),operand:c,value:h}},zr=function(c,h){return{type:"when-clause",location:ce(),operand:c,value:h}},Tt=function(c){return{type:"else-clause",location:ce(),value:c}},Vt=function(c){return{type:"number",location:ce(),value:c}},je=function(c,h,y){return parseFloat(c+h+y)},ct=function(c,h){return parseFloat(c+h)},ur=function(c,h){return parseFloat(c+h)},ye=function(c){return parseFloat(c)},Jt=function(c,h){return c[0]+h},tt=function(c){return"."+(c??"")},It=function(c,h){return c+h},Ut=function(c){return c.join("")},En=function(c,h){return"e"+(h===null?"":h)},p=function(){return"IN"},E=function(){return"IS"},U=function(){return"LIKE"},Y=function(){return"ESCAPE"},ie=function(){return"NOT"},be=function(){return"AND"},ze=function(){return"OR"},Ie=function(){return"BETWEEN"},Wt=function(){return"FROM"},io=function(){return"FOR"},Mm=function(){return"SUBSTRING"},Pm=function(){return"EXTRACT"},Lm=function(){return"TRIM"},Ow=function(){return"POSITION"},KI=function(){return"TIMESTAMP"},eA=function(){return"DATE"},tA=function(){return"TIME"},rA=function(){return"LEADING"},nA=function(){return"TRAILING"},iA=function(){return"BOTH"},oA=function(){return"CAST"},sA=function(){return"AS"},aA=function(){return"INTEGER"},lA=function(){return"SMALLINT"},cA=function(){return"FLOAT"},uA=function(){return"REAL"},dA=function(){return"VARCHAR"},fA=function(){return"TO"},pA=function(){return"INTERVAL"},mA=function(){return"YEAR"},hA=function(){return"TIMEZONE_HOUR"},gA=function(){return"TIMEZONE_MINUTE"},wA=function(){return"MONTH"},yA=function(){return"DAY"},bA=function(){return"HOUR"},_A=function(){return"MINUTE"},vA=function(){return"SECOND"},SA=function(){return"CASE"},xA=function(){return"END"},CA=function(){return"WHEN"},TA=function(){return"THEN"},EA=function(){return"ELSE"},MA=function(c){return c},PA=function(c){return c.join("")},g=0|t.peg$currPos,V=g,Na=[{line:1,column:1}],Mn=g,Im=t.peg$maxFailExpected||[],A=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in o))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');s=o[t.startRule]}function ce(){return Am(V,g)}function $w(c,h){throw IA(c,h=h!==void 0?h:Am(V,g))}function fe(c,h){return{type:"literal",text:c,ignoreCase:h}}function fn(c,h,y){return{type:"class",parts:c,inverted:h,ignoreCase:y}}function LA(){return{type:"end"}}function mS(c){var h,y=Na[c];if(y)return y;if(c>=Na.length)h=Na.length-1;else for(h=c;!Na[--h];);for(y={line:(y=Na[h]).line,column:y.column};h<c;)e.charCodeAt(h)===10?(y.line++,y.column=1):y.column++,h++;return Na[c]=y,y}function Am(c,h,y){var x=mS(c),re=mS(h);return{source:i,start:{offset:c,line:x.line,column:x.column},end:{offset:h,line:re.line,column:re.column}}}function oe(c){g<Mn||(g>Mn&&(Mn=g,Im=[]),Im.push(c))}function IA(c,h){return new Ea(c,null,null,h)}function AA(c,h,y){return new Ea(Ea.buildMessage(c,h),c,h,y)}function hS(){var c,h;return c=g,q(),(h=Et())!==n?(q(),V=c,c=bp(h)):(g=c,c=n),c}function gS(){var c,h,y,x,re,Ae;if(c=g,Lr()!==n){for(q(),h=[],y=Et();y!==n;)h.push(y),y=g,x=g,re=q(),(Ae=jw())!==n?x=re=[re,Ae,q()]:(g=x,x=n),x!==n&&(x=Et())===n?(g=y,y=n):y=x;y=q(),(x=Ir())!==n?(V=c,c=_p(h)):(g=c,c=n)}else g=c,c=n;return c}function Et(){var c,h,y,x,re,Ae;if(c=g,(h=Fw())!==n){for(y=[],x=g,q(),(re=NS())!==n?(q(),(Ae=Fw())!==n?(V=x,x=vc(h,re,Ae)):(g=x,x=n)):(g=x,x=n);x!==n;)y.push(x),x=g,q(),(re=NS())!==n?(q(),(Ae=Fw())!==n?(V=x,x=vc(h,re,Ae)):(g=x,x=n)):(g=x,x=n);V=c,c=vp(h,y)}else g=c,c=n;return c}function Fw(){var c,h,y,x,re,Ae;if(c=g,(h=km())!==n){for(y=[],x=g,q(),(re=Vm())!==n?(q(),(Ae=km())!==n?(V=x,x=Sc(h,re,Ae)):(g=x,x=n)):(g=x,x=n);x!==n;)y.push(x),x=g,q(),(re=Vm())!==n?(q(),(Ae=km())!==n?(V=x,x=Sc(h,re,Ae)):(g=x,x=n)):(g=x,x=n);V=c,c=Sp(h,y)}else g=c,c=n;return c}function km(){var c,h,y,x,re;return c=g,(h=Pc())===n&&(h=g,e.charCodeAt(g)===33?(y=a,g++):(y=n,A===0&&oe(Tw)),y!==n?(x=g,A++,e.charCodeAt(g)===61?(re=u,g++):(re=n,A===0&&oe(Ew)),A--,re===n?x=void 0:(g=x,x=n),x!==n?h=y=[y,x]:(g=h,h=n)):(g=h,h=n)),h!==n?(y=q(),(x=km())!==n?(V=c,c=xp(x)):(g=c,c=n)):(g=c,c=n),c===n&&(c=kA()),c}function kA(){var c,h,y,x;return c=g,(h=Ni())!==n?(y=g,q(),(x=NA())!==n?y=x:(g=y,y=n),y===n&&(y=null),V=c,c=Cp(h,y)):(g=c,c=n),c}function NA(){var c;return(c=RA())===n&&(c=FA())===n&&(c=OA())===n&&(c=DA())===n&&(c=$A()),c}function RA(){var c,h,y,x,re;if(c=g,h=[],y=g,q(),(x=wS())!==n?(q(),(re=Ni())!==n?(V=y,y=xc(x,re)):(g=y,y=n)):(g=y,y=n),y!==n)for(;y!==n;)h.push(y),y=g,q(),(x=wS())!==n?(q(),(re=Ni())!==n?(V=y,y=xc(x,re)):(g=y,y=n)):(g=y,y=n);else h=n;return h!==n&&(V=c,h=Tp(h)),c=h}function wS(){var c;return e.substr(g,2)===d?(c=d,g+=2):(c=n,A===0&&oe($)),c===n&&(e.charCodeAt(g)===62?(c=f,g++):(c=n,A===0&&oe(ka)),c===n&&(e.substr(g,2)===m?(c=m,g+=2):(c=n,A===0&&oe(uf)),c===n&&(e.substr(g,2)===w?(c=w,g+=2):(c=n,A===0&&oe(df)),c===n&&(c=e.charAt(g),yw.test(c)?g++:(c=n,A===0&&oe(ff)),c===n&&(e.substr(g,2)===_?(c=_,g+=2):(c=n,A===0&&oe(pf))))))),c}function DA(){var c,h,y,x;return c=g,(h=AS())!==n?(q(),(y=Pc())!==n?(q(),(x=Ni())!==n?(V=c,c=Ep(h,x)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,(h=AS())!==n?(q(),(y=Ni())!==n?(V=c,c=Mp(h,y)):(g=c,c=n)):(g=c,c=n)),c}function OA(){var c,h,y,x,re,Ae,Hw,YS;return c=g,(h=Pc())!==n?(q(),(y=RS())!==n?(x=q(),re=g,(Ae=Ni())!==n?(q(),(Hw=Vm())!==n?(q(),(YS=Ni())!==n?(V=re,re=Pp(y,Ae,YS)):(g=re,re=n)):(g=re,re=n)):(g=re,re=n),re!==n?(V=c,c=Lp(y,re)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,(h=RS())!==n?(q(),y=g,(x=Ni())!==n?(re=q(),(Ae=Vm())!==n?(q(),(Hw=Ni())!==n?(V=y,y=Ip(h,x,Hw)):(g=y,y=n)):(g=y,y=n)):(g=y,y=n),y!==n?(V=c,c=Ap(h,y)):(g=c,c=n)):(g=c,c=n)),c}function yS(){var c,h,y,x,re;return c=g,h=g,(y=Pc())!==n?(x=q(),(re=kS())!==n?h=y=[y,x,re]:(g=h,h=n)):(g=h,h=n),h!==n&&(V=c,h=kp(h)),(c=h)===n&&(c=kS()),c}function bS(){var c,h,y,x,re;return c=g,h=g,(y=Pc())!==n?(x=q(),(re=Bw())!==n?h=y=[y,x,re]:(g=h,h=n)):(g=h,h=n),h!==n&&(V=c,h=Np(h)),(c=h)===n&&(c=Bw()),c}function $A(){var c,h,y,x;return c=g,(h=yS())!==n?(q(),(y=ys())!==n?(q(),bk()!==n?(q(),(x=Gw())!==n?(V=c,c=Rp(h,y,x)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,(h=yS())!==n?(q(),(y=ys())!==n?(V=c,c=Dp(h,y)):(g=c,c=n)):(g=c,c=n)),c}function FA(){var c,h,y;return c=g,(h=bS())!==n?(q(),(y=gS())!==n?(V=c,c=Op(h,y)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,(h=bS())!==n?(q(),(y=zw())!==n?(V=c,c=$p(h,y)):(g=c,c=n)):(g=c,c=n)),c}function Ni(){var c,h,y,x,re,Ae;if(c=g,(h=Vw())!==n){for(y=[],x=g,q(),(re=_S())!==n?(q(),(Ae=Vw())!==n?(V=x,x=Cc(h,re,Ae)):(g=x,x=n)):(g=x,x=n);x!==n;)y.push(x),x=g,q(),(re=_S())!==n?(q(),(Ae=Vw())!==n?(V=x,x=Cc(h,re,Ae)):(g=x,x=n)):(g=x,x=n);V=c,c=Fp(h,y)}else g=c,c=n;return c}function _S(){var c;return c=e.charAt(g),Aa.test(c)?g++:(c=n,A===0&&oe(gs)),c===n&&(e.substr(g,2)===S?(c=S,g+=2):(c=n,A===0&&oe(mf))),c}function Vw(){var c,h,y,x,re,Ae;if(c=g,(h=Uw())!==n){for(y=[],x=g,q(),(re=vS())!==n?(q(),(Ae=Uw())!==n?(V=x,x=Tc(h,re,Ae)):(g=x,x=n)):(g=x,x=n);x!==n;)y.push(x),x=g,q(),(re=vS())!==n?(q(),(Ae=Uw())!==n?(V=x,x=Tc(h,re,Ae)):(g=x,x=n)):(g=x,x=n);V=c,c=Vp(h,y)}else g=c,c=n;return c}function vS(){var c;return c=e.charAt(g),bw.test(c)?g++:(c=n,A===0&&oe(hf)),c}function Uw(){var c,h;return(c=ek())===n&&(c=jA())===n&&(c=HA())===n&&(c=JA())===n&&(c=XA())===n&&(c=ZA())===n&&(c=QA())===n&&(c=uk())===n&&(c=VA())===n&&(c=zw())===n&&(c=g,Lr()!==n?(q(),(h=Et())!==n?(q(),Ir()!==n?(V=c,c=Up(h)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)),c}function VA(){var c,h;return c=g,(h=UA())!==n&&(V=c,h=Wp(h)),(c=h)===n&&(c=g,(h=zA())!==n&&(V=c,h=zp(h)),c=h),c}function UA(){var c,h;return c=g,(h=WA())!==n&&(V=c,h=Gp(h)),c=h}function WA(){var c,h,y,x;if(c=g,(h=Ww())!==n){for(y=[],x=xS();x!==n;)y.push(x),x=xS();V=c,c=Bp(h,y)}else g=c,c=n;return c}function SS(){var c,h,y,x;if(c=g,(h=Ww())!==n){for(y=[],x=xe();x!==n;)y.push(x),x=xe();V=c,c=qp(h,y)}else g=c,c=n;return c}function Ww(){var c;return c=e.charAt(g),mc.test(c)?g++:(c=n,A===0&&oe(gf)),c}function xe(){var c;return c=e.charAt(g),_w.test(c)?g++:(c=n,A===0&&oe(wf)),c}function xS(){var c;return c=e.charAt(g),no.test(c)?g++:(c=n,A===0&&oe(hc)),c}function zA(){var c,h;return c=g,Nm()!==n?(h=GA(),Nm()!==n?(V=c,c=jp(h)):(g=c,c=n)):(g=c,c=n),c}function GA(){var c,h,y;for(c=g,h=[],y=CS();y!==n;)h.push(y),y=CS();return V=c,c=h=Hp(h)}function CS(){var c;return(c=qA())===n&&(c=BA()),c}function BA(){var c;return c=g,Nm()!==n&&Nm()!==n?(V=c,c=Zp()):(g=c,c=n),c}function qA(){var c;return c=e.charAt(g),no.test(c)?g++:(c=n,A===0&&oe(hc)),c}function Nm(){var c;return c=e.charAt(g),vw.test(c)?g++:(c=n,A===0&&oe(yf)),c}function zw(){var c,h,y,x;return c=g,h=g,e.charCodeAt(g)===64?(y=C,g++):(y=n,A===0&&oe(bf)),y!==n&&(x=SS())!==n?h=y=[y,x]:(g=h,h=n),h!==n&&(V=c,h=Yp(h)),c=h}function jA(){var c,h,y,x;return c=g,Sk()!==n?(q(),h=g,Lr()!==n?(q(),(y=KA())!==n?(q(),qw()!==n?(q(),(x=Et())!==n?(q(),Ir()!==n?(V=h,h=Jp(y,x)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n),h!==n?(V=c,c=Xp(h)):(g=c,c=n)):(g=c,c=n),c}function HA(){var c,h,y,x,re,Ae;return c=g,vk()!==n?(q(),h=g,Lr()!==n?(q(),(y=Et())!==n?(q(),qw()!==n?(q(),(x=Et())!==n?(q(),re=g,_k()!==n?(q(),(Ae=Et())!==n?(q(),re=Ae):(g=re,re=n)):(g=re,re=n),re===n&&(re=null),Ir()!==n?(V=h,h=Qp(y,x,re)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n),h!==n?(V=c,c=Kp(h)):(g=c,c=n)):(g=c,c=n),c}function ZA(){var c,h,y,x;return c=g,Mk()!==n?(q(),h=g,Lr()!==n?(q(),(y=Et())!==n?(q(),Pk()!==n?(q(),(x=YA())!==n?(q(),Ir()!==n?(V=h,h=em(y,x)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n),h!==n?(V=c,c=tm(h)):(g=c,c=n)):(g=c,c=n),c}function YA(){var c,h,y;return c=g,(h=Lk())!==n&&(V=c,h=rm()),(c=h)===n&&(c=g,(h=Ik())!==n&&(V=c,h=nm()),(c=h)===n&&(c=g,(h=Ak())!==n&&(V=c,h=im()),(c=h)===n&&(c=g,(h=kk())!==n&&(V=c,h=om()),(c=h)===n&&(c=g,(h=$S())!==n&&(V=c,h=sm()),(c=h)===n&&(c=g,(h=OS())!==n&&(V=c,h=am()),(c=h)===n&&(c=g,(h=FS())!==n&&(V=c,h=lm()),(c=h)===n&&(c=g,(h=Nk())!==n?(q(),Lr()!==n?(q(),(y=bs())!==n?(q(),Ir()!==n?(V=c,c=cm(y)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)))))))),c}function JA(){var c,h,y,x,re;return c=g,DS()!==n?(q(),h=g,Lr()!==n?(q(),y=TS(),q(),(x=Et())!==n?(q(),qw()!==n?(q(),(re=Et())!==n?(q(),Ir()!==n?(V=h,h=um(y,x,re)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n),h!==n?(V=c,c=dm(h)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,DS()!==n?(q(),h=g,Lr()!==n?(q(),y=TS(),q(),(x=Et())!==n?(q(),Ir()!==n?(V=h,h=fm(y,x)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n),h!==n?(V=c,c=pm(h)):(g=c,c=n)):(g=c,c=n)),c}function TS(){var c,h;return c=g,(h=Ck())===n&&(h=Tk())===n&&(h=Ek()),h===n&&(h=null),V=c,c=h=mm(h)}function XA(){var c,h,y,x;return c=g,xk()!==n?(q(),h=g,Lr()!==n?(q(),(y=Et())!==n?(q(),Bw()!==n?(q(),(x=Et())!==n?(q(),Ir()!==n?(V=h,h=hm(y,x)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n)):(g=h,h=n),h!==n?(V=c,c=gm(h)):(g=c,c=n)):(g=c,c=n),c}function QA(){var c,h,y;return c=g,(h=Fk())!==n?(q(),(y=gS())!==n?(V=c,c=wm(h,y)):(g=c,c=n)):(g=c,c=n),c}function KA(){var c,h;return c=g,(h=US())===n&&(h=WS())===n&&(h=zS())===n&&(h=GS())===n&&(h=BS())===n&&(h=_s())===n&&(h=Dk())===n&&(h=Ok()),h!==n&&(V=c,h=ym(h)),c=h}function ek(){var c;return(c=Gw())===n&&(c=pk())===n&&(c=ck())===n&&(c=lk())===n&&(c=ak())===n&&(c=tk())===n&&(c=nk())===n&&(c=rk()),c}function tk(){var c,h;return c=g,OS()!==n?(q(),(h=ys())!==n?(V=c,c=bm(h)):(g=c,c=n)):(g=c,c=n),c}function rk(){var c,h;return c=g,FS()!==n?(q(),(h=ys())!==n?(V=c,c=_m(h)):(g=c,c=n)):(g=c,c=n),c}function nk(){var c,h,y,x;return c=g,VS()!==n?(q(),h=e.charAt(g),Aa.test(h)?g++:(h=n,A===0&&oe(gs)),h!==n?(q(),(y=ys())!==n?(q(),(x=ES())!==n?(V=c,c=vm(h,y,x)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,VS()!==n?(q(),(h=ys())!==n?(q(),(y=ES())!==n?(V=c,c=Sm(h,y)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)),c}function ES(){var c,h,y;return c=g,(h=ik())!==n?(q(),Rk()!==n?(q(),(y=ok())!==n?(V=c,c=xm(h,y)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c===n&&(c=sk()),c}function ik(){var c,h,y;return c=g,(h=Mc())!==n?(q(),Lr()!==n?(q(),(y=Dm())!==n?(q(),Ir()!==n?(V=c,c=Cm(h,y)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,(h=Mc())!==n&&(V=c,h=Tm(h)),c=h),c}function ok(){var c,h,y,x;return c=g,(h=Mc())!==n&&(V=c,h=Em(h)),(c=h)===n&&(c=g,(h=_s())!==n?(q(),Lr()!==n?(q(),(y=Dm())!==n?(q(),jw()!==n?(q(),(x=Rm())!==n?(q(),Ir()!==n?(V=c,c=ot(y,x)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,(h=_s())!==n?(q(),Lr()!==n?(q(),(y=Dm())!==n?(q(),Ir()!==n?(V=c,c=ws(y)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,(h=_s())!==n&&(V=c,h=Ct()),c=h))),c}function sk(){var c,h,y,x;return c=g,(h=Mc())!==n?(q(),Lr()!==n?(q(),(y=Rm())!==n?(q(),Ir()!==n?(V=c,c=Mw(h,y)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,(h=Mc())!==n&&(V=c,h=Pw(h)),(c=h)===n&&(c=g,(h=_s())!==n?(q(),Lr()!==n?(q(),(y=Dm())!==n?(q(),jw()!==n?(q(),(x=Rm())!==n?(q(),Ir()!==n?(V=c,c=Lw(y,x)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,(h=_s())!==n?(q(),Lr()!==n?(q(),(y=Rm())!==n?(q(),Ir()!==n?(V=c,c=Iw(y)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c===n&&(c=g,(h=_s())!==n&&(V=c,h=Aw()),c=h)))),c}function Mc(){var c,h;return c=g,(h=zS())!==n&&(V=c,h=ve()),(c=h)===n&&(c=g,(h=GS())!==n&&(V=c,h=Ec()),(c=h)===n&&(c=g,(h=BS())!==n&&(V=c,h=Jr()),(c=h)===n&&(c=g,(h=WS())!==n&&(V=c,h=kw()),(c=h)===n&&(c=g,(h=US())!==n&&(V=c,h=Nw()),c=h)))),c}function Rm(){var c,h;return c=g,(h=bs())!==n&&(V=c,h=Rw(h)),c=h}function Dm(){var c,h;return c=g,(h=bs())!==n&&(V=c,h=Dw(h)),c=h}function ak(){var c,h;return c=g,$S()!==n?(q(),(h=ys())!==n?(V=c,c=dt(h)):(g=c,c=n)):(g=c,c=n),c}function lk(){var c,h;return c=g,(h=gk())!==n&&(V=c,h=lr()),c=h}function ck(){var c,h;return c=g,(h=wk())!==n&&(V=c,h=Tn()),(c=h)===n&&(c=g,(h=yk())!==n&&(V=c,h=Yt()),c=h),c}function ys(){var c;return(c=Gw())===n&&(c=zw()),c}function Gw(){var c,h,y,x,re;if(c=g,e.charCodeAt(g)===39?(h=M,g++):(h=n,A===0&&oe(gc)),h===n&&(e.substr(g,2)===N?(h=N,g+=2):(h=n,A===0&&oe(_f))),h!==n){for(y=[],x=g,e.substr(g,2)===L?(re=L,g+=2):(re=n,A===0&&oe(wc)),re!==n&&(V=x,re=H()),(x=re)===n&&(x=e.charAt(g),lf.test(x)?g++:(x=n,A===0&&oe(yc)));x!==n;)y.push(x),x=g,e.substr(g,2)===L?(re=L,g+=2):(re=n,A===0&&oe(wc)),re!==n&&(V=x,re=H()),(x=re)===n&&(x=e.charAt(g),lf.test(x)?g++:(x=n,A===0&&oe(yc)));e.charCodeAt(g)===39?(x=M,g++):(x=n,A===0&&oe(gc)),x!==n?(V=c,c=cr(y)):(g=c,c=n)}else g=c,c=n;return c}function uk(){var c;return(c=dk())===n&&(c=fk()),c}function dk(){var c,h,y,x,re;if(c=g,Um()!==n)if(q(),(h=Et())!==n){for(q(),y=[],x=g,(re=$m())!==n?(q(),x=re):(g=x,x=n);x!==n;)y.push(x),x=g,(re=$m())!==n?(q(),x=re):(g=x,x=n);(x=Wm())!==n?(V=c,c=Lt(h,y)):(g=c,c=n)}else g=c,c=n;else g=c,c=n;if(c===n)if(c=g,Um()!==n)if(q(),(h=Et())!==n){for(q(),y=[],x=g,(re=$m())!==n?(q(),x=re):(g=x,x=n);x!==n;)y.push(x),x=g,(re=$m())!==n?(q(),x=re):(g=x,x=n);(x=MS())!==n?(re=q(),Wm()!==n?(V=c,c=ft(h,y,x)):(g=c,c=n)):(g=c,c=n)}else g=c,c=n;else g=c,c=n;return c}function fk(){var c,h,y,x;if(c=g,Um()!==n){for(q(),h=[],y=g,(x=Om())!==n?(q(),y=x):(g=y,y=n);y!==n;)h.push(y),y=g,(x=Om())!==n?(q(),y=x):(g=y,y=n);(y=Wm())!==n?(V=c,c=st(h)):(g=c,c=n)}else g=c,c=n;if(c===n)if(c=g,Um()!==n){for(q(),h=[],y=g,(x=Om())!==n?(q(),y=x):(g=y,y=n);y!==n;)h.push(y),y=g,(x=Om())!==n?(q(),y=x):(g=y,y=n);(y=MS())!==n?(x=q(),Wm()!==n?(V=c,c=Pr(h,y)):(g=c,c=n)):(g=c,c=n)}else g=c,c=n;return c}function Om(){var c,h,y;return c=g,qS()!==n?(q(),(h=Et())!==n?(q(),jS()!==n?(q(),(y=Et())!==n?(V=c,c=br(h,y)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c}function $m(){var c,h,y;return c=g,qS()!==n?(q(),(h=Et())!==n?(q(),jS()!==n?(q(),(y=Et())!==n?(V=c,c=zr(h,y)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n)):(g=c,c=n),c}function MS(){var c,h;return c=g,$k()!==n?(q(),(h=Et())!==n?(V=c,c=Tt(h)):(g=c,c=n)):(g=c,c=n),c}function pk(){var c,h,y,x;return c=g,(h=mk())!==n?(y=g,A++,x=Ww(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=Vt(h)):(g=c,c=n)):(g=c,c=n),c}function mk(){var c,h,y,x;return c=g,(h=Fm())!==n&&(y=PS())!==n&&(x=LS())!==n?(V=c,c=je(h,y,x)):(g=c,c=n),c===n&&(c=g,(h=Fm())!==n&&(y=PS())!==n?(V=c,c=ct(h,y)):(g=c,c=n),c===n&&(c=g,(h=Fm())!==n&&(y=LS())!==n?(V=c,c=ur(h,y)):(g=c,c=n),c===n&&(c=g,(h=Fm())!==n&&(V=c,h=ye(h)),c=h))),c}function Fm(){var c,h,y;return(c=bs())===n&&(c=g,h=e.charAt(g),Aa.test(h)?g++:(h=n,A===0&&oe(gs)),h!==n&&(y=bs())!==n?(V=c,c=Jt(h,y)):(g=c,c=n)),c}function PS(){var c,h,y;return c=g,e.charCodeAt(g)===46?(h=k,g++):(h=n,A===0&&oe(vf)),h!==n?((y=bs())===n&&(y=null),V=c,c=tt(y)):(g=c,c=n),c}function LS(){var c,h,y;return c=g,(h=hk())!==n&&(y=bs())!==n?(V=c,c=It(h,y)):(g=c,c=n),c}function bs(){var c,h,y;if(c=g,h=[],(y=IS())!==n)for(;y!==n;)h.push(y),y=IS();else h=n;return h!==n&&(V=c,h=Ut(h)),c=h}function IS(){var c;return c=e.charAt(g),Sw.test(c)?g++:(c=n,A===0&&oe(Sf)),c}function hk(){var c,h,y;return c=g,h=e.charAt(g),xw.test(h)?g++:(h=n,A===0&&oe(xf)),h!==n?(y=e.charAt(g),Aa.test(y)?g++:(y=n,A===0&&oe(gs)),y===n&&(y=null),V=c,c=En(h,y)):(g=c,c=n),c}function gk(){var c,h,y,x;return c=g,(h=e.substr(g,4)).toLowerCase()===W?g+=4:(h=n,A===0&&oe(Cf)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?c=h=[h,y]:(g=c,c=n)):(g=c,c=n),c}function wk(){var c,h,y,x;return c=g,(h=e.substr(g,4)).toLowerCase()===Z?g+=4:(h=n,A===0&&oe(Tf)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?c=h=[h,y]:(g=c,c=n)):(g=c,c=n),c}function yk(){var c,h,y,x;return c=g,(h=e.substr(g,5)).toLowerCase()===ee?g+=5:(h=n,A===0&&oe(Ef)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?c=h=[h,y]:(g=c,c=n)):(g=c,c=n),c}function Bw(){var c,h,y,x;return c=g,(h=e.substr(g,2)).toLowerCase()===ne?g+=2:(h=n,A===0&&oe(Mf)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=p()):(g=c,c=n)):(g=c,c=n),c}function AS(){var c,h,y,x;return c=g,(h=e.substr(g,2)).toLowerCase()===te?g+=2:(h=n,A===0&&oe(Pf)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=E()):(g=c,c=n)):(g=c,c=n),c}function kS(){var c,h,y,x;return c=g,(h=e.substr(g,4)).toLowerCase()===pe?g+=4:(h=n,A===0&&oe(Lf)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=U()):(g=c,c=n)):(g=c,c=n),c}function bk(){var c,h,y,x;return c=g,(h=e.substr(g,6)).toLowerCase()===ge?g+=6:(h=n,A===0&&oe(If)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=Y()):(g=c,c=n)):(g=c,c=n),c}function Pc(){var c,h,y,x;return c=g,(h=e.substr(g,3)).toLowerCase()===ue?g+=3:(h=n,A===0&&oe(Af)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=ie()):(g=c,c=n)):(g=c,c=n),c}function Vm(){var c,h,y,x;return c=g,(h=e.substr(g,3)).toLowerCase()===G?g+=3:(h=n,A===0&&oe(kf)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=be()):(g=c,c=n)):(g=c,c=n),c}function NS(){var c,h,y,x;return c=g,(h=e.substr(g,2)).toLowerCase()===D?g+=2:(h=n,A===0&&oe(Nf)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=ze()):(g=c,c=n)):(g=c,c=n),c}function RS(){var c,h,y,x;return c=g,(h=e.substr(g,7)).toLowerCase()===B?g+=7:(h=n,A===0&&oe(Rf)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=Ie()):(g=c,c=n)):(g=c,c=n),c}function qw(){var c,h,y,x;return c=g,(h=e.substr(g,4)).toLowerCase()===K?g+=4:(h=n,A===0&&oe(Df)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=Wt()):(g=c,c=n)):(g=c,c=n),c}function _k(){var c,h,y,x;return c=g,(h=e.substr(g,3)).toLowerCase()===Q?g+=3:(h=n,A===0&&oe(Of)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=io()):(g=c,c=n)):(g=c,c=n),c}function vk(){var c,h,y,x;return c=g,(h=e.substr(g,9)).toLowerCase()===se?g+=9:(h=n,A===0&&oe($f)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=Mm()):(g=c,c=n)):(g=c,c=n),c}function Sk(){var c,h,y,x;return c=g,(h=e.substr(g,7)).toLowerCase()===de?g+=7:(h=n,A===0&&oe(Ff)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=Pm()):(g=c,c=n)):(g=c,c=n),c}function DS(){var c,h,y,x;return c=g,(h=e.substr(g,4)).toLowerCase()===we?g+=4:(h=n,A===0&&oe(Vf)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=Lm()):(g=c,c=n)):(g=c,c=n),c}function xk(){var c,h,y,x;return c=g,(h=e.substr(g,8)).toLowerCase()===Pe?g+=8:(h=n,A===0&&oe(Uf)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=Ow()):(g=c,c=n)):(g=c,c=n),c}function OS(){var c,h,y,x;return c=g,(h=e.substr(g,9)).toLowerCase()===Ke?g+=9:(h=n,A===0&&oe(Wf)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=KI()):(g=c,c=n)):(g=c,c=n),c}function $S(){var c,h,y,x;return c=g,(h=e.substr(g,4)).toLowerCase()===Ft?g+=4:(h=n,A===0&&oe(zf)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=eA()):(g=c,c=n)):(g=c,c=n),c}function FS(){var c,h,y,x;return c=g,(h=e.substr(g,4)).toLowerCase()===xt?g+=4:(h=n,A===0&&oe(Gf)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=tA()):(g=c,c=n)):(g=c,c=n),c}function Ck(){var c,h,y,x;return c=g,(h=e.substr(g,7)).toLowerCase()===ar?g+=7:(h=n,A===0&&oe(Bf)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=rA()):(g=c,c=n)):(g=c,c=n),c}function Tk(){var c,h,y,x;return c=g,(h=e.substr(g,8)).toLowerCase()===ki?g+=8:(h=n,A===0&&oe(qf)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=nA()):(g=c,c=n)):(g=c,c=n),c}function Ek(){var c,h,y,x;return c=g,(h=e.substr(g,4)).toLowerCase()===yr?g+=4:(h=n,A===0&&oe(jf)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=iA()):(g=c,c=n)):(g=c,c=n),c}function Mk(){var c,h,y,x;return c=g,(h=e.substr(g,4)).toLowerCase()===dn?g+=4:(h=n,A===0&&oe(Hf)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=oA()):(g=c,c=n)):(g=c,c=n),c}function Pk(){var c,h,y,x;return c=g,(h=e.substr(g,2)).toLowerCase()===fc?g+=2:(h=n,A===0&&oe(Zf)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=sA()):(g=c,c=n)):(g=c,c=n),c}function Lk(){var c,h,y,x;return c=g,(h=e.substr(g,7)).toLowerCase()===ef?g+=7:(h=n,A===0&&oe(Yf)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=aA()):(g=c,c=n)):(g=c,c=n),c}function Ik(){var c,h,y,x;return c=g,(h=e.substr(g,8)).toLowerCase()===La?g+=8:(h=n,A===0&&oe(Jf)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=lA()):(g=c,c=n)):(g=c,c=n),c}function Ak(){var c,h,y,x;return c=g,(h=e.substr(g,5)).toLowerCase()===ow?g+=5:(h=n,A===0&&oe(Xf)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=cA()):(g=c,c=n)):(g=c,c=n),c}function kk(){var c,h,y,x;return c=g,(h=e.substr(g,4)).toLowerCase()===tf?g+=4:(h=n,A===0&&oe(Qf)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=uA()):(g=c,c=n)):(g=c,c=n),c}function Nk(){var c,h,y,x;return c=g,(h=e.substr(g,7)).toLowerCase()===sw?g+=7:(h=n,A===0&&oe(Kf)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=dA()):(g=c,c=n)):(g=c,c=n),c}function Rk(){var c,h,y,x;return c=g,(h=e.substr(g,2)).toLowerCase()===rf?g+=2:(h=n,A===0&&oe(ep)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=fA()):(g=c,c=n)):(g=c,c=n),c}function VS(){var c,h,y,x;return c=g,(h=e.substr(g,8)).toLowerCase()===aw?g+=8:(h=n,A===0&&oe(tp)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=pA()):(g=c,c=n)):(g=c,c=n),c}function US(){var c,h,y,x;return c=g,(h=e.substr(g,4)).toLowerCase()===lw?g+=4:(h=n,A===0&&oe(rp)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=mA()):(g=c,c=n)):(g=c,c=n),c}function Dk(){var c,h,y,x;return c=g,(h=e.substr(g,13)).toLowerCase()===cw?g+=13:(h=n,A===0&&oe(np)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=hA()):(g=c,c=n)):(g=c,c=n),c}function Ok(){var c,h,y,x;return c=g,(h=e.substr(g,15)).toLowerCase()===pc?g+=15:(h=n,A===0&&oe(ip)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=gA()):(g=c,c=n)):(g=c,c=n),c}function WS(){var c,h,y,x;return c=g,(h=e.substr(g,5)).toLowerCase()===uw?g+=5:(h=n,A===0&&oe(op)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=wA()):(g=c,c=n)):(g=c,c=n),c}function zS(){var c,h,y,x;return c=g,(h=e.substr(g,3)).toLowerCase()===nf?g+=3:(h=n,A===0&&oe(sp)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=yA()):(g=c,c=n)):(g=c,c=n),c}function GS(){var c,h,y,x;return c=g,(h=e.substr(g,4)).toLowerCase()===of?g+=4:(h=n,A===0&&oe(ap)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=bA()):(g=c,c=n)):(g=c,c=n),c}function BS(){var c,h,y,x;return c=g,(h=e.substr(g,6)).toLowerCase()===Wr?g+=6:(h=n,A===0&&oe(lp)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=_A()):(g=c,c=n)):(g=c,c=n),c}function _s(){var c,h,y,x;return c=g,(h=e.substr(g,6)).toLowerCase()===dw?g+=6:(h=n,A===0&&oe(cp)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=vA()):(g=c,c=n)):(g=c,c=n),c}function Um(){var c,h,y,x;return c=g,(h=e.substr(g,4)).toLowerCase()===sf?g+=4:(h=n,A===0&&oe(up)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=SA()):(g=c,c=n)):(g=c,c=n),c}function Wm(){var c,h,y,x;return c=g,(h=e.substr(g,3)).toLowerCase()===Ia?g+=3:(h=n,A===0&&oe(dp)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=xA()):(g=c,c=n)):(g=c,c=n),c}function qS(){var c,h,y,x;return c=g,(h=e.substr(g,4)).toLowerCase()===fw?g+=4:(h=n,A===0&&oe(fp)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=CA()):(g=c,c=n)):(g=c,c=n),c}function jS(){var c,h,y,x;return c=g,(h=e.substr(g,4)).toLowerCase()===pw?g+=4:(h=n,A===0&&oe(pp)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=TA()):(g=c,c=n)):(g=c,c=n),c}function $k(){var c,h,y,x;return c=g,(h=e.substr(g,4)).toLowerCase()===mw?g+=4:(h=n,A===0&&oe(mp)),h!==n?(y=g,A++,x=xe(),A--,x===n?y=void 0:(g=y,y=n),y!==n?(V=c,c=EA()):(g=c,c=n)):(g=c,c=n),c}function jw(){var c;return e.charCodeAt(g)===44?(c=hw,g++):(c=n,A===0&&oe(hp)),c}function Lr(){var c;return e.charCodeAt(g)===40?(c=gw,g++):(c=n,A===0&&oe(gp)),c}function Ir(){var c;return e.charCodeAt(g)===41?(c=ww,g++):(c=n,A===0&&oe(wp)),c}function q(){var c,h;for(c=[],h=HS();h!==n;)c.push(h),h=HS();return c}function HS(){var c;return c=e.charAt(g),Cw.test(c)?g++:(c=n,A===0&&oe(yp)),c}function Fk(){var c,h,y,x;if(c=g,(h=SS())!==n&&(V=c,h=MA(h)),(c=h)===n)if(c=g,e.charCodeAt(g)===96?(h=af,g++):(h=n,A===0&&oe(bc)),h!==n){if(y=[],x=e.charAt(g),cf.test(x)?g++:(x=n,A===0&&oe(_c)),x!==n)for(;x!==n;)y.push(x),x=e.charAt(g),cf.test(x)?g++:(x=n,A===0&&oe(_c));else y=n;y!==n?(e.charCodeAt(g)===96?(x=af,g++):(x=n,A===0&&oe(bc)),x!==n?(V=c,c=PA(y)):(g=c,c=n)):(g=c,c=n)}else g=c,c=n;return c}function Vk(c,h,y){return{type:"unary-expression",location:y,operator:c,expr:h}}function ZS(c,h,y,x,re){let Ae={type:"binary-expression",location:re,operator:c,left:h,right:y};return x!==void 0&&(Ae.escape=x),Ae}function Ri(c,...h){return{type:"expression-list",location:c,value:h}}function Lc(c,h){let y=c;for(let{op:x,expr:re,location:{end:Ae}}of h)y=ZS(x,y,re,void 0,{...y.location,end:Ae});return y}function Uk(c){/^(\d{4})-(\d{1,2})-(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/.test(c)!==!0&&$w("Timestamp literal is invalid")}function Wk(c){/^(\d{1,2}):(\d{1,2}):(\d{1,2})$|^(\d{1,2}):(\d{1,2})$|^(\d{1,2}):(\d{1,2}):(\d{1,2}).([0-9]+)$/.test(c)!==!0&&$w("Time literal is invalid")}function zk(c){/^(\d{4})-(\d{1,2})-(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/.test(c)!==!0&&$w("Date literal is invalid")}if(r=s(),t.peg$library)return{peg$result:r,peg$currPos:g,peg$FAILED:n,peg$maxFailExpected:Im,peg$maxFailPos:Mn};if(r!==n&&g===e.length)return r;throw r!==n&&g<e.length&&oe(LA()),AA(Im,Mn<e.length?e.charAt(Mn):null,Mn<e.length?Am(Mn,Mn+1):Am(Mn,Mn))}function $t(e,t){if(e!=null)switch(t(e),e.type){case"when-clause":$t(e.operand,t),$t(e.value,t);break;case"case-expression":for(let r of e.clauses)$t(r,t);e.format==="simple"&&$t(e.operand,t),e.else!==null&&$t(e.else,t);break;case"expression-list":for(let r of e.value)$t(r,t);break;case"unary-expression":$t(e.expr,t);break;case"binary-expression":$t(e.left,t),$t(e.right,t);break;case"function":$t(e.args,t);break;case"interval":$t(e.value,t),$t(e.qualifier,t);break;case"interval-qualifier":$t(e.start,t),$t(e.end,t)}}var Jg,WL=P(()=>{vj(Ea,Error),Ea.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var r,n=null;for(r=0;r<e.length;r++)if(e[r].source===this.location.source){n=e[r].text.split(/\r\n|\n|\r/g);break}var i=this.location.start,o=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(i):i,s=this.location.source+":"+o.line+":"+o.column;if(n){var a=this.location.end,u=F4("",o.line.toString().length," "),d=n[i.line-1],f=(i.line===a.line?a.column:d.length+1)-i.column||1;t+=`
|
|
138
|
+
--> `+s+`
|
|
139
|
+
`+u+` |
|
|
140
|
+
`+o.line+" | "+d+`
|
|
141
|
+
`+u+" | "+F4("",i.column-1," ")+F4("",f,"^")}else t+=`
|
|
142
|
+
at `+s}return t},Ea.buildMessage=function(e,t){var r={literal:function(d){return'"'+i(d.text)+'"'},class:function(d){var f=d.parts.map(function(m){return Array.isArray(m)?o(m[0])+"-"+o(m[1]):o(m)});return"["+(d.inverted?"^":"")+f.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(d){return d.description}};function n(d){return d.charCodeAt(0).toString(16).toUpperCase()}function i(d){return d.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(f){return"\\x0"+n(f)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(f){return"\\x"+n(f)})}function o(d){return d.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(f){return"\\x0"+n(f)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(f){return"\\x"+n(f)})}function s(d){return r[d.type](d)}function a(d){var f,m,w=d.map(s);if(w.sort(),w.length>0){for(f=1,m=1;f<w.length;f++)w[f-1]!==w[f]&&(w[m]=w[f],m++);w.length=m}switch(w.length){case 1:return w[0];case 2:return w[0]+" or "+w[1];default:return w.slice(0,-1).join(", ")+", or "+w[w.length-1]}}function u(d){return d?'"'+i(d)+'"':"end of input"}return"Expected "+a(e)+" but "+u(t)+" found."};Jg=class{static parse(t){return Sj(t)}}});var HL={};ei(HL,{WhereClause:()=>U4,defaultAttributeAdapter:()=>uc});function GL(e){return e===!0}function W4(e){return Array.isArray(e)?e:[e]}function Xg(e){return e!==null?e!==!0:null}function BL(e,t){return e!=null&&t!=null?e===!0&&t===!0:e!==!1&&t!==!1&&null}function qL(e,t){return e!=null&&t!=null?e===!0||t===!0:e===!0||t===!0||null}function z4(e,t,r){if(e==null)return null;let n=!1;for(let i of t)if(i==null)n=null;else{if(e===i){n=!0;break}if(Zg(e)&&Zg(i)&&(n=Ur(e,i,"="),n))break}return n}function Cj(e,t){let r=t,n="",i=Ma.Normal;for(let o=0;o<e.length;o++){let s=e.charAt(o);switch(i){case Ma.Normal:s===r?i=Ma.Escaped:zL.includes(s)?n+="\\"+s:n+=s==="%"?".*":s==="_"?".":s;break;case Ma.Escaped:zL.includes(s)?n+="\\"+s:n+=s,i=Ma.Normal}}return new RegExp("^"+n+"$","m")}function G4(e,t,r){return e==null?null:Cj(t,r).test(e)}function Tj(e){return e&&typeof e.attributes=="object"}function jL(e,t,r,n){let i=n.getAttribute(e,t),o=r?.get(t);return i==null||o?.type!=="esriFieldTypeDate"&&o?.type!=="date"?i==null||o?.type!=="esriFieldTypeDateOnly"&&o?.type!=="date-only"?i==null||o?.type!=="esriFieldTypeTimeOnly"&&o?.type!=="time-only"?i==null||o?.type!=="esriFieldTypeTimestampOffset"&&o?.type!=="timestamp-offset"?i:new pr(i):sr.fromReader(i):qt.fromReader(i):lc(new Date(i),r?.getLuxonTimeZone(o.name)??Be.utcInstance)}var xj,V4,U4,zL,Ma,uc,ZL=P(()=>{sb();Do();Fe();RL();Vu();UL();N4();Zd();jg();Uu();D4();jd();WL();Rr();xj=new Set(["current_timestamp","current_date","current_time"]),V4=class{static makeBool(t){return GL(t)}static featureValue(t,r,n,i){return jL(t,r,n,i)}static equalsNull(t){return t===null}static applyLike(t,r,n){return G4(t,r,n)}static ensureArray(t){return W4(t)}static applyIn(t,r,n){return z4(t,r)}static currentDate(t){return qt.fromNow(t)}static makeSqlInterval(t,r,n){return St.createFromValueAndQualifier(t,r,n)}static convertInterval(t){return t instanceof St?t.valueInMilliseconds():t}static currentTimestamp(t){return lc(new Date,t)}static compare(t,r,n,i){return Ur(r,n,t)}static calculate(t,r,n,i){return O4(t,r,n,i)}static evaluateTime(t){return Hd(t)}static evaluateTimestamp(t,r,n){return cc(t,r,n)}static evaluateDate(t,r){return A4(t,r)}static evaluateFunction(t,r,n){return Jd(t,r,n)}static lookup(t,r){let n=r[t];return n===void 0?null:n}static between(t,r,n){return t==null||r[0]==null||r[1]==null?null:Ur(t,r[0],">=")&&Ur(t,r[1],"<=")}static notbetween(t,r,n){return t==null||r[0]==null||r[1]==null?null:Ur(t,r[0],"<")||Ur(t,r[1],">")}static ternaryNot(t){return Xg(t)}static ternaryAnd(t,r){return BL(t,r)}static ternaryOr(t,r){return qL(t,r)}},U4=class e{constructor(t,r,n="UTC"){this.fieldsIndex=r,this.timeZone=n,this.parameters={},this._hasDateFunctions=void 0,this.parseTree=Jg.parse(t);let{isStandardized:i,isAggregate:o,referencedFieldNames:s}=this._extractExpressionInfo(r);this._referencedFieldNames=s,this.isStandardized=i,this.isAggregate=o}static convertValueToStorageFormat(t,r=null){if(r===null)return Yr(t)?t.getTime():Je(t)?t.toMillis():Qe(t)?t.toStorageFormat():it(t)?t.toStorageString():Xe(t)?t.toStorageFormat():t;switch(r){case"date":return Yr(t)?t.getTime():Je(t)?t.toMillis():Qe(t)?t.toMilliseconds():Xe(t)?t.toNumber():t;case"date-only":return Yr(t)?qt.fromDateJS(t).toString():Qe(t)?qt.fromSqlTimeStampOffset(t).toString():Je(t)?qt.fromDateTime(t).toString():t;case"time-only":return Yr(t)?sr.fromDateJS(t).toStorageString():Je(t)?sr.fromDateTime(t).toStorageString():Qe(t)?sr.fromSqlTimeStampOffset(t).toStorageString():it(t)?t.toStorageString():t;case"timestamp-offset":if(Yr(t))return pr.fromJSDate(t).toStorageFormat();if(Je(t))return pr.fromDateTime(t).toStorageFormat();if(Qe(t))return t.toStorageFormat()}return t}static create(t,r,n="UTC"){return new e(t,r,n)}get fieldNames(){return this._referencedFieldNames}testSet(t,r=uc){return!!this._evaluateNode(this.parseTree,null,r,t)}calculateValue(t,r=uc){let n=this._evaluateNode(this.parseTree,t,r,null);return n instanceof St?n.valueInMilliseconds()/864e5:n}calculateValueCompiled(t,r=uc){return this.parseTree._compiledVersion!=null?this.parseTree._compiledVersion(t,this.parameters,r,this.fieldsIndex,this.timeZone):X("esri-csp-restrictions")?this.calculateValue(t,r):(this._compileMe(),this.parseTree._compiledVersion(t,this.parameters,r,this.fieldsIndex,this.timeZone))}testFeature(t,r=uc){return!!this._evaluateNode(this.parseTree,t,r,null)}testFeatureCompiled(t,r=uc){return this.parseTree._compiledVersion!=null?!!this.parseTree._compiledVersion(t,this.parameters,r,this.fieldsIndex,this.timeZone):X("esri-csp-restrictions")?this.testFeature(t,r):(this._compileMe(),!!this.parseTree._compiledVersion(t,this.parameters,r,this.fieldsIndex,this.timeZone))}get hasDateFunctions(){return this._hasDateFunctions!=null||(this._hasDateFunctions=!1,$t(this.parseTree,t=>{t.type==="current-time"?this._hasDateFunctions=!0:t.type==="function"&&(this._hasDateFunctions=this._hasDateFunctions||xj.has(t.name.toLowerCase()))})),this._hasDateFunctions}getFunctions(){let t=new Set;return $t(this.parseTree,r=>{r.type==="function"&&t.add(r.name.toLowerCase())}),Array.from(t)}getExpressions(){let t=new Map;return $t(this.parseTree,r=>{if(r.type==="function"){let n=r.name.toLowerCase(),i=r.args.value[0];if(i.type==="column-reference"){let o=i.column,s=`${n}-${o}`;t.has(s)||t.set(s,{aggregateType:n,field:o})}}}),[...t.values()]}getVariables(){let t=new Set;return $t(this.parseTree,r=>{r.type==="parameter"&&t.add(r.value.toLowerCase())}),Array.from(t)}_compileMe(){let t="return this.convertInterval("+this.evaluateNodeToJavaScript(this.parseTree)+")";this.parseTree._compiledVersion=new Function("feature","lookups","attributeAdapter","fieldsIndex","timeZone",t).bind(V4)}_extractExpressionInfo(t){let r=[],n=new Set,i=!0,o=!1;return $t(this.parseTree,s=>{switch(s.type){case"column-reference":{let a=t?.get(s.column),u,d;a?u=d=a.name??"":(d=s.column,u=d.toLowerCase()),n.has(u)||(n.add(u),r.push(d)),s.column=d;break}case"function":{let{name:a,args:u}=s,d=u.value.length;i&&(i=$L(a,d)),o===!1&&(o=L4(a,d));break}}}),{referencedFieldNames:Array.from(r),isStandardized:i,isAggregate:o}}evaluateNodeToJavaScript(t){switch(t.type){case"interval":return"this.makeSqlInterval("+this.evaluateNodeToJavaScript(t.value)+", "+JSON.stringify(t.qualifier)+","+JSON.stringify(t.op)+")";case"case-expression":{let r="";if(t.format==="simple"){let n=this.evaluateNodeToJavaScript(t.operand);r="( ";for(let i=0;i<t.clauses.length;i++)r+=" (this.compare('=',"+n+","+this.evaluateNodeToJavaScript(t.clauses[i].operand)+") ? ("+this.evaluateNodeToJavaScript(t.clauses[i].value)+") : ";t.else!==null?r+=this.evaluateNodeToJavaScript(t.else):r+="null",r+=" )"}else{r="( ";for(let n=0;n<t.clauses.length;n++)r+=" this.makeBool("+this.evaluateNodeToJavaScript(t.clauses[n].operand)+")===true ? ("+this.evaluateNodeToJavaScript(t.clauses[n].value)+") : ";t.else!==null?r+=this.evaluateNodeToJavaScript(t.else):r+="null",r+=" )"}return r}case"parameter":return"this.lookup("+JSON.stringify(t.value.toLowerCase())+",lookups)";case"expression-list":{let r="[";for(let n of t.value)r!=="["&&(r+=","),r+=this.evaluateNodeToJavaScript(n);return r+="]",r}case"unary-expression":return"this.ternaryNot("+this.evaluateNodeToJavaScript(t.expr)+")";case"binary-expression":switch(t.operator){case"AND":return"this.ternaryAnd("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+" )";case"OR":return"this.ternaryOr("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+" )";case"IS":if(t.right.type!=="null")throw new z(O.UnsupportedIsRhs);return"this.equalsNull("+this.evaluateNodeToJavaScript(t.left)+")";case"ISNOT":if(t.right.type!=="null")throw new z(O.UnsupportedIsRhs);return"(!(this.equalsNull("+this.evaluateNodeToJavaScript(t.left)+")))";case"IN":return"this.applyIn("+this.evaluateNodeToJavaScript(t.left)+",this.ensureArray("+this.evaluateNodeToJavaScript(t.right)+"), timeZone)";case"NOT IN":return"this.ternaryNot(this.applyIn("+this.evaluateNodeToJavaScript(t.left)+",this.ensureArray("+this.evaluateNodeToJavaScript(t.right)+"), timeZone))";case"BETWEEN":return"this.between("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+", timeZone)";case"NOTBETWEEN":return"this.notbetween("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+", timeZone)";case"LIKE":return"this.applyLike("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+","+JSON.stringify(t.escape)+")";case"NOT LIKE":return"this.ternaryNot(this.applyLike("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+","+JSON.stringify(t.escape)+"))";case"<>":case"<":case">":case">=":case"<=":case"=":return"this.compare("+JSON.stringify(t.operator)+","+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+", timeZone)";case"*":case"-":case"+":case"/":case"||":return"this.calculate("+JSON.stringify(t.operator)+","+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+", timeZone)"}throw new z(O.UnsupportedOperator,{operator:t.operator});case"null":case"boolean":case"string":case"number":return JSON.stringify(t.value);case"time":return"this.evaluateTime("+JSON.stringify(t.value)+")";case"date":return"this.evaluateDate("+JSON.stringify(t.value)+", 'unknown')";case"timestamp":return"this.evaluateTimestamp("+JSON.stringify(t.value)+", 'unknown')";case"current-time":return t.mode==="date"?"this.currentDate(timeZone)":"this.currentTimestamp(timeZone)";case"column-reference":return"this.featureValue(feature,"+JSON.stringify(t.column)+",fieldsIndex,attributeAdapter)";case"function":return"this.evaluateFunction("+JSON.stringify(t.name)+","+this.evaluateNodeToJavaScript(t.args)+", timeZone)"}throw new z(O.UnsupportedSyntax,{node:t.type})}_evaluateNode(t,r,n,i){let o;switch(t.type){case"interval":{let s=this._evaluateNode(t.value,r,n,i);return St.createFromValueAndQualifier(s,t.qualifier,t.op)}case"case-expression":if(t.format==="simple"){let s=this._evaluateNode(t.operand,r,n,i);for(let a=0;a<t.clauses.length;a++)if(Ur(s,this._evaluateNode(t.clauses[a].operand,r,n,i),"=",this.timeZone))return this._evaluateNode(t.clauses[a].value,r,n,i);if(t.else!==null)return this._evaluateNode(t.else,r,n,i)}else{for(let s=0;s<t.clauses.length;s++)if(GL(this._evaluateNode(t.clauses[s].operand,r,n,i)))return this._evaluateNode(t.clauses[s].value,r,n,i);if(t.else!==null)return this._evaluateNode(t.else,r,n,i)}return null;case"parameter":return o=this.parameters[t.value.toLowerCase()],Yr(o)?ae.fromJSDate(o):o instanceof Vs?o.toDateTime():o;case"expression-list":{let s=[];for(let a of t.value)s.push(this._evaluateNode(a,r,n,i));return s}case"unary-expression":return Xg(this._evaluateNode(t.expr,r,n,i));case"binary-expression":switch(t.operator){case"AND":return BL(this._evaluateNode(t.left,r,n,i),this._evaluateNode(t.right,r,n,i));case"OR":return qL(this._evaluateNode(t.left,r,n,i),this._evaluateNode(t.right,r,n,i));case"IS":if(t.right.type!=="null")throw new z(O.UnsupportedIsRhs);return this._evaluateNode(t.left,r,n,i)===null;case"ISNOT":if(t.right.type!=="null")throw new z(O.UnsupportedIsRhs);return this._evaluateNode(t.left,r,n,i)!==null;case"IN":{let s=W4(this._evaluateNode(t.right,r,n,i));return z4(this._evaluateNode(t.left,r,n,i),s,this.timeZone)}case"NOT IN":{let s=W4(this._evaluateNode(t.right,r,n,i));return Xg(z4(this._evaluateNode(t.left,r,n,i),s,this.timeZone))}case"BETWEEN":{let s=this._evaluateNode(t.left,r,n,i),a=this._evaluateNode(t.right,r,n,i);return s==null||a[0]==null||a[1]==null?null:Ur(s,a[0],">=",this.timeZone)&&Ur(s,a[1],"<=",this.timeZone)}case"NOTBETWEEN":{let s=this._evaluateNode(t.left,r,n,i),a=this._evaluateNode(t.right,r,n,i);return s==null||a[0]==null||a[1]==null?null:Ur(s,a[0],"<",this.timeZone)||Ur(s,a[1],">",this.timeZone)}case"LIKE":return G4(this._evaluateNode(t.left,r,n,i),this._evaluateNode(t.right,r,n,i),t.escape);case"NOT LIKE":return Xg(G4(this._evaluateNode(t.left,r,n,i),this._evaluateNode(t.right,r,n,i),t.escape));case"<>":case"<":case">":case">=":case"<=":case"=":return Ur(this._evaluateNode(t.left,r,n,i),this._evaluateNode(t.right,r,n,i),t.operator,this.timeZone);case"-":case"+":case"*":case"/":case"||":return O4(t.operator,this._evaluateNode(t.left,r,n,i),this._evaluateNode(t.right,r,n,i),this.timeZone)}case"null":case"boolean":case"string":case"number":return t.value;case"date":return t.parsedValue??(t.parsedValue=A4(t.value,"unknown")),t.parsedValue;case"timestamp":return t.parsedValue??(t.parsedValue=cc(t.value,"unknown")),t.parsedValue;case"time":return Hd(t.value);case"current-time":return t.mode==="date"?qt.fromNow(this.timeZone):lc(new Date,this.timeZone);case"column-reference":return jL(r,t.column,this.fieldsIndex,n);case"data-type":return t.value;case"function":{if(this.isAggregate&&L4(t.name,t.args.value.length)){let a=[];for(let u of t.args?.value||[]){let d=[];for(let f of i||[])d.push(this._evaluateNode(u,f,n,null));a.push(d)}return IL(t.name,a)}let s=this._evaluateNode(t.args,r,n,i);return Jd(t.name,s,this.timeZone)}}throw new z(O.UnsupportedSyntax,{node:t.type})}};zL="-[]/{}()*+?.\\^$|";(function(e){e[e.Normal=0]="Normal",e[e.Escaped=1]="Escaped"})(Ma||(Ma={}));uc={getAttribute:(e,t)=>(Tj(e)?e.attributes:e)[t]}});async function B4(e,t){let{WhereClause:r}=await Promise.resolve().then(()=>(ZL(),HL));return r.create(e,t)}var q4=P(()=>{});function dc(){return[0,0,0]}function Ej(e){return[e[0],e[1],e[2]]}function Xd(e,t,r){return[e,t,r]}function Mj(e,t=dc()){let r=Math.min(3,e.length);for(let n=0;n<r;++n)t[n]=e[n];return t}function Pj(e,t){return new Float64Array(e,t,3)}function YL(){return dc()}function JL(){return Xd(1,1,1)}function XL(){return Xd(1,0,0)}function QL(){return Xd(0,1,0)}function KL(){return Xd(0,0,1)}var Lj,Ij,Aj,kj,Nj,h0e,eI=P(()=>{Lj=YL(),Ij=JL(),Aj=XL(),kj=QL(),Nj=KL(),h0e=Object.freeze(Object.defineProperty({__proto__:null,ONES:Ij,UNIT_X:Aj,UNIT_Y:kj,UNIT_Z:Nj,ZEROS:Lj,clone:Ej,create:dc,createView:Pj,fromArray:Mj,fromValues:Xd,ones:JL,unitX:XL,unitY:QL,unitZ:KL,zeros:YL},Symbol.toStringTag,{value:"Module"}))});function H4(){return j4}function Rj(e){j4=e}function $j(e){return e*Dj}function Fj(e){return e*Oj}function Vj(e,t){return Math.abs(e-t)<=j4*Math.max(1,Math.abs(e),Math.abs(t))}var j4,Z4,Dj,Oj,w0e,tI=P(()=>{j4=1e-6;Z4=Math.random,Dj=Math.PI/180,Oj=180/Math.PI;w0e=Object.freeze(Object.defineProperty({__proto__:null,RANDOM:Z4,equals:Vj,getEpsilon:H4,setEpsilon:Rj,toDegree:Fj,toRadian:$j},Symbol.toStringTag,{value:"Module"}))});function J4(e){let t=e[0],r=e[1],n=e[2];return Math.sqrt(t*t+r*r+n*n)}function Uj(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e}function iI(e,t,r,n){return e[0]=t,e[1]=r,e[2]=n,e}function Wj(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e[2]=t[2]+r[2],e}function oI(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e[2]=t[2]-r[2],e}function sI(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e[2]=t[2]*r[2],e}function aI(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e[2]=t[2]/r[2],e}function zj(e,t){return e[0]=Math.ceil(t[0]),e[1]=Math.ceil(t[1]),e[2]=Math.ceil(t[2]),e}function Gj(e,t){return e[0]=Math.floor(t[0]),e[1]=Math.floor(t[1]),e[2]=Math.floor(t[2]),e}function Bj(e,t){return e[0]=Math.abs(t[0]),e[1]=Math.abs(t[1]),e[2]=Math.abs(t[2]),e}function qj(e,t){return e[0]=Math.sign(t[0]),e[1]=Math.sign(t[1]),e[2]=Math.sign(t[2]),e}function jj(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e[2]=Math.min(t[2],r[2]),e}function Hj(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e[2]=Math.max(t[2],r[2]),e}function Zj(e,t){return e[0]=Math.round(t[0]),e[1]=Math.round(t[1]),e[2]=Math.round(t[2]),e}function Yj(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e}function Jj(e,t,r,n){return e[0]=t[0]+r[0]*n,e[1]=t[1]+r[1]*n,e[2]=t[2]+r[2]*n,e}function lI(e,t){let r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return Math.sqrt(r*r+n*n+i*i)}function cI(e,t){let r=t[0]-e[0],n=t[1]-e[1],i=t[2]-e[2];return r*r+n*n+i*i}function uI(e){let t=e[0],r=e[1],n=e[2];return t*t+r*r+n*n}function Xj(e,t){return e[0]=-t[0],e[1]=-t[1],e[2]=-t[2],e}function Qj(e,t){return e[0]=1/t[0],e[1]=1/t[1],e[2]=1/t[2],e}function Y4(e,t){let r=t[0],n=t[1],i=t[2],o=r*r+n*n+i*i;return o>0&&(o=1/Math.sqrt(o),e[0]=t[0]*o,e[1]=t[1]*o,e[2]=t[2]*o),e}function dI(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function Kj(e,t,r){let n=t[0],i=t[1],o=t[2],s=r[0],a=r[1],u=r[2];return e[0]=i*u-o*a,e[1]=o*s-n*u,e[2]=n*a-i*s,e}function eH(e,t,r){let n=t[0],i=t[1],o=t[2],s=r[0],a=r[1],u=r[2],d=i*u-o*a,f=o*s-n*u,m=n*a-i*s,w=Math.sqrt(d*d+f*f+m*m);return e[0]=d/w,e[1]=f/w,e[2]=m/w,e}function tH(e,t,r,n){let i=t[0],o=t[1],s=t[2];return e[0]=i+n*(r[0]-i),e[1]=o+n*(r[1]-o),e[2]=s+n*(r[2]-s),e}function rH(e,t,r,n,i,o){let s=o*o,a=s*(2*o-3)+1,u=s*(o-2)+o,d=s*(o-1),f=s*(3-2*o);return e[0]=t[0]*a+r[0]*u+n[0]*d+i[0]*f,e[1]=t[1]*a+r[1]*u+n[1]*d+i[1]*f,e[2]=t[2]*a+r[2]*u+n[2]*d+i[2]*f,e}function nH(e,t,r,n,i,o){let s=1-o,a=s*s,u=o*o,d=a*s,f=3*o*a,m=3*u*s,w=u*o;return e[0]=t[0]*d+r[0]*f+n[0]*m+i[0]*w,e[1]=t[1]*d+r[1]*f+n[1]*m+i[1]*w,e[2]=t[2]*d+r[2]*f+n[2]*m+i[2]*w,e}function iH(e,t){t=t||1;let r=Z4,n=2*r()*Math.PI,i=2*r()-1,o=Math.sqrt(1-i*i)*t;return e[0]=Math.cos(n)*o,e[1]=Math.sin(n)*o,e[2]=i*t,e}function oH(e,t,r){let n=t[0],i=t[1],o=t[2];return e[0]=r[0]*n+r[4]*i+r[8]*o+r[12],e[1]=r[1]*n+r[5]*i+r[9]*o+r[13],e[2]=r[2]*n+r[6]*i+r[10]*o+r[14],e}function sH(e,t,r){let n=t[0],i=t[1],o=t[2];return e[0]=n*r[0]+i*r[3]+o*r[6],e[1]=n*r[1]+i*r[4]+o*r[7],e[2]=n*r[2]+i*r[5]+o*r[8],e}function aH(e,t,r){let n=r[0],i=r[1],o=r[2],s=r[3],a=t[0],u=t[1],d=t[2],f=i*d-o*u,m=o*a-n*d,w=n*u-i*a,_=i*w-o*m,S=o*f-n*w,C=n*m-i*f,M=2*s;return e[0]=a+f*M+2*_,e[1]=u+m*M+2*S,e[2]=d+w*M+2*C,e}function lH(e,t,r,n){let i=[],o=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],o[0]=i[0],o[1]=i[1]*Math.cos(n)-i[2]*Math.sin(n),o[2]=i[1]*Math.sin(n)+i[2]*Math.cos(n),e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e}function cH(e,t,r,n){let i=[],o=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],o[0]=i[2]*Math.sin(n)+i[0]*Math.cos(n),o[1]=i[1],o[2]=i[2]*Math.cos(n)-i[0]*Math.sin(n),e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e}function uH(e,t,r,n){let i=[],o=[];return i[0]=t[0]-r[0],i[1]=t[1]-r[1],i[2]=t[2]-r[2],o[0]=i[0]*Math.cos(n)-i[1]*Math.sin(n),o[1]=i[0]*Math.sin(n)+i[1]*Math.cos(n),o[2]=i[2],e[0]=o[0]+r[0],e[1]=o[1]+r[1],e[2]=o[2]+r[2],e}function dH(e,t){Y4(rI,e),Y4(nI,t);let r=dI(rI,nI);return r>1?0:r<-1?Math.PI:Math.acos(r)}function fH(e){return"vec3("+e[0]+", "+e[1]+", "+e[2]+")"}function pH(e,t){return e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]}function mH(e,t){if(e===t)return!0;let r=e[0],n=e[1],i=e[2],o=t[0],s=t[1],a=t[2],u=H4();return Math.abs(r-o)<=u*Math.max(1,Math.abs(r),Math.abs(o))&&Math.abs(n-s)<=u*Math.max(1,Math.abs(n),Math.abs(s))&&Math.abs(i-a)<=u*Math.max(1,Math.abs(i),Math.abs(a))}function hH(e,t,r){let n=r[0]-t[0],i=r[1]-t[1],o=r[2]-t[2],s=n*n+i*i+o*o;return s>0?(s=1/Math.sqrt(s),e[0]=n*s,e[1]=i*s,e[2]=o*s,e):(e[0]=0,e[1]=0,e[2]=0,e)}var rI,nI,gH,wH,yH,bH,_H,vH,SH,v0e,fI=P(()=>{eI();tI();rI=dc(),nI=dc();gH=oI,wH=sI,yH=aI,bH=lI,_H=cI,vH=J4,SH=uI,v0e=Object.freeze(Object.defineProperty({__proto__:null,abs:Bj,add:Wj,angle:dH,bezier:nH,ceil:zj,copy:Uj,cross:Kj,crossAndNormalize:eH,direction:hH,dist:bH,distance:lI,div:yH,divide:aI,dot:dI,equals:mH,exactEquals:pH,floor:Gj,hermite:rH,inverse:Qj,len:vH,length:J4,lerp:tH,max:Hj,min:jj,mul:wH,multiply:sI,negate:Xj,normalize:Y4,random:iH,rotateX:lH,rotateY:cH,rotateZ:uH,round:Zj,scale:Yj,scaleAndAdd:Jj,set:iI,sign:qj,sqrDist:_H,sqrLen:SH,squaredDistance:cI,squaredLength:uI,str:fH,sub:gH,subtract:oI,transformMat3:sH,transformMat4:oH,transformQuat:aH},Symbol.toStringTag,{value:"Module"}))});function xH(e){return Qg.setFloat64(0,e),Qg.getBigInt64(0)}function CH(e){return Qg.setBigInt64(0,e),Qg.getFloat64(0)}function TH(e){let t=xH(e=Math.abs(e)),r=CH(t<=X4?X4:t-X4);return Math.abs(e-r)}function EH(e){return pI[0]=e,pI[0]}var pI,Qg,X4,C0e,T0e,Q4=P(()=>{fI();pI=new Float32Array(1),Qg=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));X4=BigInt("1000000"),C0e=TH(1);T0e=EH(34028234663852886e22)});var mI=P(()=>{});var PH,Qd,W0e,hI=P(()=>{h0();Fe();vr();Q4();qs();d0();u0();mI();Rr();Gi();PH="TT";(function(e){e.HM="HH:mm",e.HMS="HH:mm:ss",e.HMS_MS="HH:mm:ss.SSS"})(Qd||(Qd={}));W0e=[Qd.HMS_MS,Qd.HMS,Qd.HM,PH]});var K4,gI=P(()=>{hI();(function(e){e.VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",e.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value"})(K4||(K4={}))});function ro(e,t,r=!1){let{hasM:n,hasZ:i}=e;Array.isArray(t)?t.length!==4||n||i?t.length===3&&r&&!n?(i=!0,n=!1):t.length===3&&n&&i&&(n=!1,i=!1):(n=!0,i=!0):(i=!i&&t.hasZ&&(!n||t.hasM),n=!n&&t.hasM&&(!i||t.hasZ)),e.hasZ=i,e.hasM=n}var Kg=P(()=>{});function wI(e){return(t,r)=>t==null?r:r==null?t:e(t,r)}function LH(e){return e&&(e.declaredClass==="esri.geometry.SpatialReference"||e.wkid!=null)}var eS,ms,tS,rS=P(()=>{tr();Qt();rr();Fe();qe();jt();oc();ps();ds();va();Kg();ms=eS=class extends un{constructor(...e){super(...e),this.points=[],this.type="multipoint"}normalizeCtorArgs(e,t){if(!e&&!t)return{};let r={};Array.isArray(e)?(r.points=e,r.spatialReference=t):LH(e)?r.spatialReference=e:(e.points&&(r.points=e.points),e.spatialReference&&(r.spatialReference=e.spatialReference),e.hasZ&&(r.hasZ=e.hasZ),e.hasM&&(r.hasM=e.hasM));let n=r.points?.[0];return n&&(r.hasZ===void 0&&r.hasM===void 0?(r.hasZ=n.length>2,r.hasM=!1):r.hasZ===void 0?r.hasZ=n.length>3:r.hasM===void 0&&(r.hasM=n.length>3)),r}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=this.points;if(!e.length)return null;let t=new Qn,r=this.hasZ,n=this.hasM,i=r?3:2,o=e[0],s=wI(Math.min),a=wI(Math.max),u,d,f,m,[w,_]=o,[S,C]=o;for(let M=0,N=e.length;M<N;M++){let L=e[M],[k,W]=L;if(w=s(w,k),_=s(_,W),S=a(S,k),C=a(C,W),r&&L.length>2){let Z=L[2];u=s(u,Z),f=a(f,Z)}if(n&&L.length>i){let Z=L[i];d=s(d,Z),m=a(m,Z)}}return t.xmin=w,t.ymin=_,t.xmax=S,t.ymax=C,t.spatialReference=this.spatialReference,r?(t.zmin=u,t.zmax=f):(t.zmin=void 0,t.zmax=void 0),n?(t.mmin=d,t.mmax=m):(t.mmin=void 0,t.mmax=void 0),t}writePoints(e,t){t.points=Le(this.points)}addPoint(e){return ro(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}clone(){let e={points:Le(this.points),spatialReference:this.spatialReference};return this.hasZ&&(e.hasZ=!0),this.hasM&&(e.hasM=!0),new eS(e)}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],r={x:t[0],y:t[1],spatialReference:this.spatialReference},n=2;return this.hasZ&&(r.z=t[2],n=3),this.hasM&&(r.m=t[n]),new bt(r)}removePoint(e){if(!this._validateInputs(e))return null;let t=new bt(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?(ro(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return e!=null&&e>=0&&e<this.points.length}};R([j({readOnly:!0})],ms.prototype,"cache",null),R([j()],ms.prototype,"extent",null),R([j({type:[[Number]],json:{write:{isRequired:!0}}})],ms.prototype,"points",void 0),R([Xn("points")],ms.prototype,"writePoints",null),ms=eS=R([Me("esri.geometry.Multipoint")],ms),ms.prototype.toJSON.isDefaultToJSON=!0;tS=ms});var yI=P(()=>{});var Kd,bI=P(()=>{(function(e){e[e.X=0]="X",e[e.Y=1]="Y",e[e.Z=2]="Z"})(Kd||(Kd={}))});function _I(e,t){let r=t[0]-e[0],n=t[1]-e[1];if(e.length>2&&t.length>2){let i=e[2]-t[2];return Math.sqrt(r*r+n*n+i*i)}return Math.sqrt(r*r+n*n)}function IH(e,t,r){let n=e[0]+r*(t[0]-e[0]),i=e[1]+r*(t[1]-e[1]);return e.length>2&&t.length>2?[n,i,e[2]+r*(t[2]-e[2])]:[n,i]}function vI(e,t){return IH(e,t,.5)}function SI(e,t=Kd.X,r=Kd.Y){let n=0,i=e.length,o=e[0];for(let s=1;s<i;s++){let a=e[s];n+=(a[t]-o[t])*(a[r]+o[r]),o=a}if(!AH(e)){let s=e[0];n+=(s[t]-o[t])*(s[r]+o[r])}return n>=0}function AH(e){let t=e.length;return t<3||vo(e[0],e[t-1])}var nS=P(()=>{So();bI();Ki()});function xI(e){return e?kH(e.rings,e.hasZ??!1):null}function kH(e,t){if(!e?.length)return null;let r=[],n=[],i=t?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(let o=0,s=e.length;o<s;o++){let a=NH(e[o],t,i);a&&n.push(a)}if(n.sort((o,s)=>{let a=o[2]-s[2];return a===0&&t&&(a=o[4]-s[4]),a}),n.length&&(r[0]=n[0][0],r[1]=n[0][1],t&&(r[2]=n[0][3]),(r[0]<i[0]||r[0]>i[1]||r[1]<i[2]||r[1]>i[3]||t&&(r[2]<i[4]||r[2]>i[5]))&&(r.length=0)),!r.length){let o=e[0]&&e[0].length?RH(e[0],t):null;if(!o)return null;r[0]=o[0],r[1]=o[1],t&&o.length>2&&(r[2]=o[2])}return r}function NH(e,t,r){let n=0,i=0,o=0,s=0,a=0,u=e.length?e[0][0]:0,d=e.length?e[0][1]:0,f=e.length&&t?e[0][2]:0;for(let w=0;w<e.length;w++){let _=e[w],S=e[(w+1)%e.length],[C,M,N]=_,L=C-u,k=M-d,[W,Z,ee]=S,ne=W-u,te=Z-d,pe=L*te-ne*k;if(s+=pe,n+=(L+ne)*pe,i+=(k+te)*pe,t&&_.length>2&&S.length>2){let ge=N-f,ue=ee-f,G=L*ue-ne*ge;o+=(ge+ue)*G,a+=G}C<r[0]&&(r[0]=C),C>r[1]&&(r[1]=C),M<r[2]&&(r[2]=M),M>r[3]&&(r[3]=M),t&&(N<r[4]&&(r[4]=N),N>r[5]&&(r[5]=N))}if(s>0&&(s*=-1),a>0&&(a*=-1),!s)return null;s*=.5,a*=.5;let m=[n/(6*s)+u,i/(6*s)+d,s];return t&&(r[4]===r[5]||a===0?(m[3]=(r[4]+r[5])/2,m[4]=0):(m[3]=o/(6*a)+f,m[4]=a)),m}function RH(e,t){let r=t?[0,0,0]:[0,0],n=t?[0,0,0]:[0,0],i=0,o=0,s=0,a=0;for(let u=0,d=e.length;u<d-1;u++){let f=e[u],m=e[u+1];if(f&&m){r[0]=f[0],r[1]=f[1],n[0]=m[0],n[1]=m[1],t&&f.length>2&&m.length>2&&(r[2]=f[2],n[2]=m[2]);let w=_I(r,n);if(w){i+=w;let _=vI(f,m);o+=w*_[0],s+=w*_[1],t&&_.length>2&&(a+=w*_[2])}}}return i>0?t?[o/i,s/i,a/i]:[o/i,s/i]:e.length?e[0]:null}var wge,CI=P(()=>{yI();nS();wge=1/3});var Sge,xge,Cge,Tge,TI=P(()=>{Fe();Q4();ps();Sge=[-1/0,-1/0,1/0,1/0],xge=[1/0,1/0,-1/0,-1/0],Cge=[0,0,0,0],Tge=[0,0,1,1]});function EI(e){function t(r,n){return r==null?n:n==null?r:e(r,n)}return t}function iS(e,t,r,n){let i=r?3:2;if(!t.length||!t[0].length)return null;let o,s,a,u,[d,f]=t[0][0],[m,w]=t[0][0];for(let _=0;_<t.length;_++){let S=t[_];for(let C=0;C<S.length;C++){let M=S[C],[N,L]=M;if(d=ew(d,N),f=ew(f,L),m=tw(m,N),w=tw(w,L),r&&M.length>2){let k=M[2];o=ew(o,k),s=tw(s,k)}if(n&&M.length>i){let k=M[i];a=ew(o,k),u=tw(s,k)}}}return r?n?(e[0]=d,e[1]=f,e[2]=o,e[3]=a,e[4]=m,e[5]=w,e[6]=s,e[7]=u,e.length=8,e):(e[0]=d,e[1]=f,e[2]=o,e[3]=m,e[4]=w,e[5]=s,e.length=6,e):n?(e[0]=d,e[1]=f,e[2]=a,e[3]=m,e[4]=w,e[5]=u,e.length=6,e):(e[0]=d,e[1]=f,e[2]=m,e[3]=w,e.length=4,e)}var ew,tw,MI=P(()=>{TI();ew=EI(Math.min),tw=EI(Math.max)});function DH(e,t,r,n){return{xmin:e,ymin:t,xmax:r,ymax:n}}function OH(e,t,r,n,i,o){return{xmin:e,ymin:t,zmin:r,xmax:n,ymax:i,zmax:o}}function $H(e,t,r,n,i,o){return{xmin:e,ymin:t,mmin:r,xmax:n,ymax:i,mmax:o}}function FH(e,t,r,n,i,o,s,a){return{xmin:e,ymin:t,zmin:r,mmin:n,xmax:i,ymax:o,zmax:s,mmax:a}}function LI(e,t=!1,r=!1){return t?r?FH(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]):OH(e[0],e[1],e[2],e[3],e[4],e[5]):r?$H(e[0],e[1],e[2],e[3],e[4],e[5]):DH(e[0],e[1],e[2],e[3])}function II(e){let{hasZ:t,hasM:r,rings:n}=e,i=iS(PI,n,t??!1,r??!1);return i?LI(i,t,r):null}function AI(e){let{hasZ:t,hasM:r,paths:n}=e,i=iS(PI,n,t??!1,r??!1);return i?LI(i,t,r):null}var PI,oS=P(()=>{MI();PI=[]});function kI(e){return!Array.isArray(e[0])}var rw,Ai,sS,aS=P(()=>{tr();So();Qt();rr();Fe();qe();jt();oc();ps();ds();va();eo();CI();qg();nS();oS();M4();Bd();Kg();Ai=rw=class extends un{static fromExtent(e){let t=e.clone().normalize(),r=e.spatialReference,n=!1,i=!1;for(let s of t)s.hasZ&&(n=!0),s.hasM&&(i=!0);let o={rings:t.map(s=>{let a=[[s.xmin,s.ymin],[s.xmin,s.ymax],[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin]];if(n&&s.hasZ){let u=s.zmin+.5*(s.zmax-s.zmin);for(let d=0;d<a.length;d++)a[d].push(u)}if(i&&s.hasM){let u=s.mmin+.5*(s.mmax-s.mmin);for(let d=0;d<a.length;d++)a[d].push(u)}return a}),spatialReference:r};return n&&(o.hasZ=!0),i&&(o.hasM=!0),new rw(o)}constructor(...e){super(...e),this.rings=[],this.type="polygon"}normalizeCtorArgs(e,t){let r,n,i=null,o=null;return e&&!Array.isArray(e)?(i=e.rings??null,t||(e.spatialReference?t=e.spatialReference:e.rings||(t=e)),r=e.hasZ,n=e.hasM):i=e,i=i||[],t=t||yt.WGS84,i.length&&i[0]?.[0]!=null&&typeof i[0][0]=="number"&&(i=[i]),o=i[0]?.[0],o&&(r===void 0&&n===void 0?(r=o.length>2,n=o.length>3):r===void 0?r=n?o.length>3:o.length>2:n===void 0&&(n=r?o.length>3:o.length>2)),{rings:i,spatialReference:t,hasZ:r,hasM:n}}get cache(){return this.commitProperty("rings"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get centroid(){let e=xI(this);if(!e||isNaN(e[0])||isNaN(e[1])||this.hasZ&&isNaN(e[2]))return null;let t=new bt;return t.x=e[0],t.y=e[1],t.spatialReference=this.spatialReference,this.hasZ&&(t.z=e[2]),t}get extent(){let{spatialReference:e}=this,t=II(this);if(!t)return null;let r=new Qn(t);return r.spatialReference=e,r}get isSelfIntersecting(){return CL(this.rings)}writeRings(e,t){t.rings=Le(this.rings)}addRing(e){if(!e)return;let t=this.rings,r=t.length;if(kI(e)){let n=[];for(let i=0,o=e.length;i<o;i++)n[i]=e[i].toArray();t[r]=n}else t[r]=e.concat();return this.notifyChange("rings"),this}clone(){let e=new rw;return e.spatialReference=this.spatialReference,e.rings=Le(this.rings),e.hasZ=this.hasZ,e.hasM=this.hasM,e}equals(e){if(this===e)return!0;if(e==null)return!1;let t=this.spatialReference,r=e.spatialReference;if(t!=null!=(r!=null)||t!=null&&r!=null&&!t.equals(r)||this.rings.length!==e.rings.length)return!1;let n=([i,o,s,a],[u,d,f,m])=>i===u&&o===d&&(s==null&&f==null||s===f)&&(a==null&&m==null||a===m);for(let i=0;i<this.rings.length;i++){let o=this.rings[i],s=e.rings[i];if(!vo(o,s,n))return!1}return!0}contains(e){if(!e)return!1;let t=dL(e,this.spatialReference);return SL(this,t??e)}isClockwise(e){let t=kI(e)?e.map(r=>this.hasZ?this.hasM?[r.x,r.y,r.z,r.m]:[r.x,r.y,r.z]:[r.x,r.y]):e;return SI(t)}getPoint(e,t){if(!this._validateInputs(e,t))return null;let r=this.rings[e][t],n=this.hasZ,i=this.hasM;return n&&!i?new bt(r[0],r[1],r[2],void 0,this.spatialReference):i&&!n?new bt(r[0],r[1],void 0,r[2],this.spatialReference):n&&i?new bt(r[0],r[1],r[2],r[3],this.spatialReference):new bt(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)?(ro(this,r),Array.isArray(r)||(r=r.toArray()),this.rings[e].splice(t,0,r),this.notifyChange("rings"),this):this}removePoint(e,t){if(!this._validateInputs(e,t))return null;let r=new bt(this.rings[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("rings"),r}removeRing(e){if(!this._validateInputs(e,null))return null;let t=this.rings.splice(e,1)[0],r=this.spatialReference,n=t.map(i=>new bt(i,r));return this.notifyChange("rings"),n}setPoint(e,t,r){return this._validateInputs(e,t)?(ro(this,r),Array.isArray(r)||(r=r.toArray()),this.rings[e][t]=r,this.notifyChange("rings"),this):this}_validateInputs(e,t,r=!1){if(e==null||e<0||e>=this.rings.length)return!1;if(t!=null){let n=this.rings[e];if(r&&(t<0||t>n.length)||!r&&(t<0||t>=n.length))return!1}return!0}toJSON(e){return this.write({},e)}};R([j({readOnly:!0})],Ai.prototype,"cache",null),R([j({readOnly:!0})],Ai.prototype,"centroid",null),R([j({readOnly:!0})],Ai.prototype,"extent",null),R([j({readOnly:!0})],Ai.prototype,"isSelfIntersecting",null),R([j({type:[[[Number]]],json:{write:{isRequired:!0}}})],Ai.prototype,"rings",void 0),R([Xn("rings")],Ai.prototype,"writeRings",null),Ai=rw=R([Me("esri.geometry.Polygon")],Ai),Ai.prototype.toJSON.isDefaultToJSON=!0;sS=Ai});function VH(e){return!Array.isArray(e[0])}function UH(e){return typeof e[0]?.[0]=="number"}function WH(e){if(!e)return;let{paths:t,hasM:r,hasZ:n,spatialReference:i}=e;switch(t??(t=[]),UH(t)&&(t=[t]),t[0]?.[0]?.length){case 4:n??(n=!0),r??(r=!0);break;case 3:n??(n=r!==!0),r??(r=!n);break;default:n??(n=!1),r??(r=!1)}return i??(i=yt.WGS84),{hasM:r,hasZ:n,paths:t,spatialReference:i}}var lS,hs,cS,uS=P(()=>{tr();Qt();rr();Fe();qe();jt();oc();ps();ds();va();eo();oS();Kg();hs=lS=class extends un{constructor(e){super(WH(e)),this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("paths"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let{spatialReference:e}=this,t=AI(this);if(!t)return null;let r=new Qn(t);return r.spatialReference=e,r}writePaths(e,t){t.paths=Le(this.paths)}addPath(e){if(!e)return;let t=this.paths,r=t.length;if(VH(e)){let n=[];for(let i=0,o=e.length;i<o;i++)n[i]=e[i].toArray();t[r]=n}else t[r]=e.concat();return this.notifyChange("paths"),this}clone(){let e=new lS;return e.spatialReference=this.spatialReference,e.paths=Le(this.paths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let r=this.paths[e][t],n=this.hasZ,i=this.hasM;return n&&!i?new bt(r[0],r[1],r[2],void 0,this.spatialReference):i&&!n?new bt(r[0],r[1],void 0,r[2],this.spatialReference):n&&i?new bt(r[0],r[1],r[2],r[3],this.spatialReference):new bt(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)?(ro(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e].splice(t,0,r),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],r=this.spatialReference,n=t.map(i=>new bt(i,r));return this.notifyChange("paths"),n}removePoint(e,t){if(!this._validateInputs(e,t))return null;let r=new bt(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(e,t,r){return this._validateInputs(e,t)?(ro(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e][t]=r,this.notifyChange("paths"),this):this}_validateInputs(e,t,r=!1){if(e==null||e<0||e>=this.paths.length)return!1;if(t!=null){let n=this.paths[e];if(r&&(t<0||t>n.length)||!r&&(t<0||t>=n.length))return!1}return!0}toJSON(e){return this.write({},e)}};R([j({readOnly:!0})],hs.prototype,"cache",null),R([j({readOnly:!0})],hs.prototype,"extent",null),R([j({type:[[[Number]]],json:{write:{isRequired:!0}}})],hs.prototype,"paths",void 0),R([Xn("paths")],hs.prototype,"writePaths",null),hs=lS=R([Me("esri.geometry.Polyline")],hs);cS=hs;hs.prototype.toJSON.isDefaultToJSON=!0});var zH,GH,NI=P(()=>{H1();zH=gi()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),GH=gi()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})});var RI=P(()=>{ps();ds();rS();va();aS();uS()});var BH,kwe,DI=P(()=>{$o();ps();ds();rS();va();aS();uS();eo();NI();RI();BH={base:un,key:"type",typeMap:{extent:Qn,multipoint:tS,point:bt,polyline:cS,polygon:sS}},kwe=Oo(BH)});var OI=P(()=>{DI();vr();qe();eo()});function VI(e){return e==null?null:e.trim().replaceAll(jH,"_").replace(qH,"F$1")||null}function UI(e){let t=e.defaultValue;return t!==void 0&&XH(e,t)?t:e.nullable?null:void 0}function WI(e){return typeof e=="number"&&!isNaN(e)&&isFinite(e)}function HH(e){return e===null||WI(e)}function ZH(e){return e===null||Number.isInteger(e)}function zI(e){return e!=null&&typeof e=="string"}function YH(e){return e===null||zI(e)}function JH(){return!0}function XH(e,t){let r;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"big-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":case"esriFieldTypeBigInteger":r=e.nullable?ZH:Number.isInteger;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":r=e.nullable?HH:WI;break;case"string":case"esriFieldTypeString":r=e.nullable?YH:zI;break;default:r=JH}return arguments.length===1?r:r(t)}function qI(e){return e!=null&&rZ.has(e.type)}function jI(e){return e!=null&&(e.type==="date"||e.type==="esriFieldTypeDate")}function HI(e){return e!=null&&(e.type==="time-only"||e.type==="esriFieldTypeTimeOnly")}function dS(e){return e!=null&&(e.type==="oid"||e.type==="esriFieldTypeOID")}function fS(e){return e!=null&&(e.type==="global-id"||e.type==="esriFieldTypeGlobalID")}var qH,jH,GI,BI,Xwe,QH,KH,eZ,tZ,rZ,$I,FI,Qwe,Kwe,ZI=P(()=>{vr();ai();Hb();q4();gI();OI();qH=/^([0-9_])/,jH=/[^a-z0-9_\u0080-\uffff]+/gi;GI=["integer","small-integer","big-integer"],BI=["single","double"],Xwe=[...GI,...BI],QH=["esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeBigInteger"],KH=["esriFieldTypeSingle","esriFieldTypeDouble"],eZ=new Set([...GI,...QH]),tZ=new Set([...BI,...KH]),rZ=h6(eZ,tZ);(function(e){e.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"})($I||($I={})),function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(FI||(FI={}));Qwe={min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,isInteger:!0,rawMin:-Number.MAX_SAFE_INTEGER,rawMax:Number.MAX_SAFE_INTEGER},Kwe={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1,rawMin:-Number.MAX_VALUE,rawMax:Number.MAX_VALUE}});function nZ(e){return"timeZone"in e}function iZ(e){return"timeZone"in e}function oZ(e){return"dateFieldsTimeZone"in e}function Pa(e){return e.trim().toLowerCase()}function YI(e){return VI(e)?.toLowerCase()??""}function JI(e){let t=new Map;if(!e.fields)return t;let r=e.datesInUnknownTimezone===!0,{timeInfo:n,editFieldsInfo:i}=e,o=(n?"startField"in n?n.startField:n.startTimeField:"")??"",s=(n?"endField"in n?n.endField:n.endTimeField:"")??"",a=oZ(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?c0(e.dateFieldsTimeReference):null,u=i?nZ(i)?i.timeZone??a:i.dateFieldsTimeReference?c0(i.dateFieldsTimeReference):a??Ks:null,d=n?iZ(n)?n.timeZone??a:n.timeReference?c0(n.timeReference):a:null,f=new Map([[Pa(i?.creationDateField??""),u],[Pa(i?.editDateField??""),u],[Pa(o),d],[Pa(s),d]]);for(let{name:m,type:w}of e.fields)if(XI.has(w))t.set(m,Qs);else if(w!=="date"&&w!=="esriFieldTypeDate")t.set(m,null);else if(r)t.set(m,Qs);else{let _=f.get(Pa(m??""))??a;t.set(m,_)}return t}var sZ,nw,XI,QI=P(()=>{vr();Ys();qe();cb();$u();ZI();u0();Rr();sZ=new Map,nw=class e{static fromJSON(t){return new e(t.fields,t.timeZoneByFieldName)}static fromLayer(t){return new e(t.fields??[],JI(t))}static fromLayerJSON(t){return new e(t.fields??[],JI(t))}constructor(t=[],r){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=t||[],this._timeZoneByFieldName=r?new Map(r):null;let n=[];for(let i of this.fields){let o=i?.name,s=YI(o);if(o&&s){let a=Pa(o);this._fieldsMap.set(o,i),this._fieldsMap.set(a,i),this._normalizedFieldsMap.set(s,i),n.push(`${a}:${i.type}:${this._timeZoneByFieldName?.get(o)}`),jI(i)?(this.dateFields.push(i),this._dateFieldsSet.add(i)):qI(i)&&(this._numericFieldsSet.add(i),this.numericFields.push(i)),dS(i)||fS(i)||(i.editable=i.editable==null||!!i.editable,i.nullable=i.nullable==null||!!i.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let t of this.fields)dS(t)||fS(t)||t.nullable||UI(t)!==void 0||this._requiredFields.push(t)}return this._requiredFields}equals(t){return this.uid===t?.uid}has(t){return this.get(t)!=null}get(t){if(!t)return;let r=this._fieldsMap.get(t);return r||(r=this._fieldsMap.get(Pa(t))??this._normalizedFieldsMap.get(YI(t)),r&&this._fieldsMap.set(t,r),r)}getTimeZone(t){let r=this.get(t&&typeof t!="string"?t.name:t);return r?this._timeZoneByFieldName?this._timeZoneByFieldName.get(r.name):r.type==="date"||r.type==="esriFieldTypeDate"?(Ce.getLogger("esri.layers.support.FieldsIndex").error(new he("getTimeZone:no-timezone-information",`no time zone information for field '${r.name}'`)),Ks):XI.has(r.type)?Qs:null:null}getLuxonTimeZone(t){let r=this.getTimeZone(t);return r?r===Qs?Bt.instance:r===Ks?Be.utcInstance:c1(sZ,r,()=>vt.create(r)):null}isDateField(t){return this._dateFieldsSet.has(this.get(t))}isTimeOnlyField(t){return HI(this.get(t))}isNumericField(t){return this._numericFieldsSet.has(this.get(t))}normalizeFieldName(t){return this.get(t)?.name??void 0}toJSON(){return{fields:this.fields.map(t=>ad(t)?t.toJSON():t),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}};XI=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"])});var Zw=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?Ic.isErrorNoTelemetry(t)?new Ic(t.message+`
|
|
2
143
|
|
|
3
144
|
`+t.stack):new Error(t.message+`
|
|
4
145
|
|
|
5
|
-
`+t.stack):t},0)}}emit(t){this.listeners.forEach(r=>{r(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}},Im=new ri;function Hr(e){Nm(e)||Im.onUnexpectedError(e)}function si(e){if(e instanceof Error){let{name:t,message:r}=e,o=e.stacktrace||e.stack;return{$isError:!0,name:t,message:r,stack:o,noTelemetry:sr.isErrorNoTelemetry(e)}}return e}var ni="Canceled";function Nm(e){return e instanceof ii?!0:e instanceof Error&&e.name===ni&&e.message===ni}var ii=class extends Error{constructor(){super(ni),this.name=this.message}};var sr=class e extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof e)return t;let r=new e;return r.message=t.message,r.stack=t.stack,r}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},Ne=class e extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,e.prototype)}};function oi(e,t){let r=this,o=!1,s;return function(){if(o)return s;if(o=!0,t)try{s=e.apply(r,arguments)}finally{t()}else s=e.apply(r,arguments);return s}}var It;(function(e){function t(E){return E&&typeof E=="object"&&typeof E[Symbol.iterator]=="function"}e.is=t;let r=Object.freeze([]);function o(){return r}e.empty=o;function*s(E){yield E}e.single=s;function a(E){return t(E)?E:s(E)}e.wrap=a;function n(E){return E||r}e.from=n;function*l(E){for(let $=E.length-1;$>=0;$--)yield E[$]}e.reverse=l;function p(E){return!E||E[Symbol.iterator]().next().done===!0}e.isEmpty=p;function m(E){return E[Symbol.iterator]().next().value}e.first=m;function h(E,$){for(let P of E)if($(P))return!0;return!1}e.some=h;function g(E,$){for(let P of E)if($(P))return P}e.find=g;function*y(E,$){for(let P of E)$(P)&&(yield P)}e.filter=y;function*b(E,$){let P=0;for(let T of E)yield $(T,P++)}e.map=b;function*S(...E){for(let $ of E)yield*$}e.concat=S;function x(E,$,P){let T=P;for(let G of E)T=$(T,G);return T}e.reduce=x;function*I(E,$,P=E.length){for($<0&&($+=E.length),P<0?P+=E.length:P>E.length&&(P=E.length);$<P;$++)yield E[$]}e.slice=I;function V(E,$=Number.POSITIVE_INFINITY){let P=[];if($===0)return[P,E];let T=E[Symbol.iterator]();for(let G=0;G<$;G++){let q=T.next();if(q.done)return[P,e.empty()];P.push(q.value)}return[P,{[Symbol.iterator](){return T}}]}e.consume=V})(It||(It={}));var Pm=!1,Pe=null;function Fm(e){Pe=e}if(Pm){let e="__is_disposable_tracked__";Fm(new class{trackDisposable(t){let r=new Error("Potentially leaked disposable").stack;setTimeout(()=>{t[e]||console.log(r)},3e3)}setParent(t,r){if(t&&t!==Fe.None)try{t[e]=!0}catch{}}markAsDisposed(t){if(t&&t!==Fe.None)try{t[e]=!0}catch{}}markAsSingleton(t){}})}function ui(e){return Pe?.trackDisposable(e),e}function ci(e){Pe?.markAsDisposed(e)}function ai(e,t){Pe?.setParent(e,t)}function Vm(e,t){if(Pe)for(let r of e)Pe.setParent(r,t)}function So(e){if(It.is(e)){let t=[];for(let r of e)if(r)try{r.dispose()}catch(o){t.push(o)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function xo(...e){let t=bt(()=>So(e));return Vm(e,t),t}function bt(e){let t=ui({dispose:oi(()=>{ci(t),e()})});return t}var nt=class e{constructor(){this._toDispose=new Set,this._isDisposed=!1,ui(this)}dispose(){this._isDisposed||(ci(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{So(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return ai(t,this),this._isDisposed?e.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}deleteAndLeak(t){t&&this._toDispose.has(t)&&(this._toDispose.delete(t),ai(t,null))}};nt.DISABLE_DISPOSED_WARNING=!1;var Fe=class{constructor(){this._store=new nt,ui(this),ai(this._store,this)}dispose(){ci(this),this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}};Fe.None=Object.freeze({dispose(){}});var ae=class e{constructor(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}};ae.Undefined=new ae(void 0);var or=class{constructor(){this._first=ae.Undefined,this._last=ae.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ae.Undefined}clear(){let t=this._first;for(;t!==ae.Undefined;){let r=t.next;t.prev=ae.Undefined,t.next=ae.Undefined,t=r}this._first=ae.Undefined,this._last=ae.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,r){let o=new ae(t);if(this._first===ae.Undefined)this._first=o,this._last=o;else if(r){let a=this._last;this._last=o,o.prev=a,a.next=o}else{let a=this._first;this._first=o,o.next=a,a.prev=o}this._size+=1;let s=!1;return()=>{s||(s=!0,this._remove(o))}}shift(){if(this._first!==ae.Undefined){let t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==ae.Undefined){let t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==ae.Undefined&&t.next!==ae.Undefined){let r=t.prev;r.next=t.next,t.next.prev=r}else t.prev===ae.Undefined&&t.next===ae.Undefined?(this._first=ae.Undefined,this._last=ae.Undefined):t.next===ae.Undefined?(this._last=this._last.prev,this._last.next=ae.Undefined):t.prev===ae.Undefined&&(this._first=this._first.next,this._first.prev=ae.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==ae.Undefined;)yield t.element,t=t.next}};var Tm=globalThis.performance&&typeof globalThis.performance.now=="function",Nt=class e{static create(t){return new e(t)}constructor(t){this._now=Tm&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}};var vo=!1,Dm=!1,zr;(function(e){e.None=()=>Fe.None;function t(O){if(Dm){let{onDidAddListener:F}=O,k=ur.create(),W=0;O.onDidAddListener=()=>{++W===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),k.print()),F?.()}}}function r(O,F){return y(O,()=>{},0,void 0,!0,void 0,F)}e.defer=r;function o(O){return(F,k=null,W)=>{let z=!1,X;return X=O(te=>{if(!z)return X?X.dispose():z=!0,F.call(k,te)},null,W),z&&X.dispose(),X}}e.once=o;function s(O,F,k){return h((W,z=null,X)=>O(te=>W.call(z,F(te)),null,X),k)}e.map=s;function a(O,F,k){return h((W,z=null,X)=>O(te=>{F(te),W.call(z,te)},null,X),k)}e.forEach=a;function n(O,F,k){return h((W,z=null,X)=>O(te=>F(te)&&W.call(z,te),null,X),k)}e.filter=n;function l(O){return O}e.signal=l;function p(...O){return(F,k=null,W)=>{let z=xo(...O.map(X=>X(te=>F.call(k,te))));return g(z,W)}}e.any=p;function m(O,F,k,W){let z=k;return s(O,X=>(z=F(z,X),z),W)}e.reduce=m;function h(O,F){let k,W={onWillAddFirstListener(){k=O(z.fire,z)},onDidRemoveLastListener(){k?.dispose()}};F||t(W);let z=new Ce(W);return F?.add(z),z.event}function g(O,F){return F instanceof Array?F.push(O):F&&F.add(O),O}function y(O,F,k=100,W=!1,z=!1,X,te){let we,ye,tt,Et=0,Ke,Ar={leakWarningThreshold:X,onWillAddFirstListener(){we=O(On=>{Et++,ye=F(ye,On),W&&!tt&&($t.fire(ye),ye=void 0),Ke=()=>{let Un=ye;ye=void 0,tt=void 0,(!W||Et>1)&&$t.fire(Un),Et=0},typeof k=="number"?(clearTimeout(tt),tt=setTimeout(Ke,k)):tt===void 0&&(tt=0,queueMicrotask(Ke))})},onWillRemoveListener(){z&&Et>0&&Ke?.()},onDidRemoveLastListener(){Ke=void 0,we.dispose()}};te||t(Ar);let $t=new Ce(Ar);return te?.add($t),$t.event}e.debounce=y;function b(O,F=0,k){return e.debounce(O,(W,z)=>W?(W.push(z),W):[z],F,void 0,!0,void 0,k)}e.accumulate=b;function S(O,F=(W,z)=>W===z,k){let W=!0,z;return n(O,X=>{let te=W||!F(X,z);return W=!1,z=X,te},k)}e.latch=S;function x(O,F,k){return[e.filter(O,F,k),e.filter(O,W=>!F(W),k)]}e.split=x;function I(O,F=!1,k=[],W){let z=k.slice(),X=O(ye=>{z?z.push(ye):we.fire(ye)});W&&W.add(X);let te=()=>{z?.forEach(ye=>we.fire(ye)),z=null},we=new Ce({onWillAddFirstListener(){X||(X=O(ye=>we.fire(ye)),W&&W.add(X))},onDidAddFirstListener(){z&&(F?setTimeout(te):te())},onDidRemoveLastListener(){X&&X.dispose(),X=null}});return W&&W.add(we),we.event}e.buffer=I;function V(O,F){return(W,z,X)=>{let te=F(new $);return O(function(we){let ye=te.evaluate(we);ye!==E&&W.call(z,ye)},void 0,X)}}e.chain=V;let E=Symbol("HaltChainable");class ${constructor(){this.steps=[]}map(F){return this.steps.push(F),this}forEach(F){return this.steps.push(k=>(F(k),k)),this}filter(F){return this.steps.push(k=>F(k)?k:E),this}reduce(F,k){let W=k;return this.steps.push(z=>(W=F(W,z),W)),this}latch(F=(k,W)=>k===W){let k=!0,W;return this.steps.push(z=>{let X=k||!F(z,W);return k=!1,W=z,X?z:E}),this}evaluate(F){for(let k of this.steps)if(F=k(F),F===E)break;return F}}function P(O,F,k=W=>W){let W=(...we)=>te.fire(k(...we)),z=()=>O.on(F,W),X=()=>O.removeListener(F,W),te=new Ce({onWillAddFirstListener:z,onDidRemoveLastListener:X});return te.event}e.fromNodeEventEmitter=P;function T(O,F,k=W=>W){let W=(...we)=>te.fire(k(...we)),z=()=>O.addEventListener(F,W),X=()=>O.removeEventListener(F,W),te=new Ce({onWillAddFirstListener:z,onDidRemoveLastListener:X});return te.event}e.fromDOMEventEmitter=T;function G(O){return new Promise(F=>o(O)(F))}e.toPromise=G;function q(O){let F=new Ce;return O.then(k=>{F.fire(k)},()=>{F.fire(void 0)}).finally(()=>{F.dispose()}),F.event}e.fromPromise=q;function H(O,F,k){return F(k),O(W=>F(W))}e.runAndSubscribe=H;function re(O,F){let k=null;function W(X){k?.dispose(),k=new nt,F(X,k)}W(void 0);let z=O(X=>W(X));return bt(()=>{z.dispose(),k?.dispose()})}e.runAndSubscribeWithStore=re;class le{constructor(F,k){this._observable=F,this._counter=0,this._hasChanged=!1;let W={onWillAddFirstListener:()=>{F.addObserver(this)},onDidRemoveLastListener:()=>{F.removeObserver(this)}};k||t(W),this.emitter=new Ce(W),k&&k.add(this.emitter)}beginUpdate(F){this._counter++}handlePossibleChange(F){}handleChange(F,k){this._hasChanged=!0}endUpdate(F){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function ee(O,F){return new le(O,F).emitter.event}e.fromObservable=ee;function K(O){return(F,k,W)=>{let z=0,X=!1,te={beginUpdate(){z++},endUpdate(){z--,z===0&&(O.reportChanges(),X&&(X=!1,F.call(k)))},handlePossibleChange(){},handleChange(){X=!0}};O.addObserver(te),O.reportChanges();let we={dispose(){O.removeObserver(te)}};return W instanceof nt?W.add(we):Array.isArray(W)&&W.push(we),we}}e.fromObservableLight=K})(zr||(zr={}));var ar=class e{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${e._idPool++}`,e.all.add(this)}start(t){this._stopWatch=new Nt,this.listenerCount=t}stop(){if(this._stopWatch){let t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}};ar.all=new Set;ar._idPool=0;var Co=-1,li=class{constructor(t,r=Math.random().toString(18).slice(2,5)){this.threshold=t,this.name=r,this._warnCountdown=0}dispose(){var t;(t=this._stacks)===null||t===void 0||t.clear()}check(t,r){let o=this.threshold;if(o<=0||r<o)return;this._stacks||(this._stacks=new Map);let s=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,s+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=o*.5;let a,n=0;for(let[l,p]of this._stacks)(!a||n<p)&&(a=l,n=p);console.warn(`[${this.name}] potential listener LEAK detected, having ${r} listeners already. MOST frequent listener (${n}):`),console.warn(a)}return()=>{let a=this._stacks.get(t.value)||0;this._stacks.set(t.value,a-1)}}},ur=class e{static create(){var t;return new e((t=new Error().stack)!==null&&t!==void 0?t:"")}constructor(t){this.value=t}print(){console.warn(this.value.split(`
|
|
146
|
+
`+t.stack):t},0)}}emit(t){this.listeners.forEach(r=>{r(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}},Bk=new Zw;function zm(e){qk(e)||Bk.onUnexpectedError(e)}function Xw(e){if(e instanceof Error){let{name:t,message:r}=e,n=e.stacktrace||e.stack;return{$isError:!0,name:t,message:r,stack:n,noTelemetry:Ic.isErrorNoTelemetry(e)}}return e}var Yw="Canceled";function qk(e){return e instanceof Jw?!0:e instanceof Error&&e.name===Yw&&e.message===Yw}var Jw=class extends Error{constructor(){super(Yw),this.name=this.message}};var Ic=class e extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof e)return t;let r=new e;return r.message=t.message,r.stack=t.stack,r}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},pn=class e extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,e.prototype)}};function Qw(e,t){let r=this,n=!1,i;return function(){if(n)return i;if(n=!0,t)try{i=e.apply(r,arguments)}finally{t()}else i=e.apply(r,arguments);return i}}var Ra;(function(e){function t(L){return L&&typeof L=="object"&&typeof L[Symbol.iterator]=="function"}e.is=t;let r=Object.freeze([]);function n(){return r}e.empty=n;function*i(L){yield L}e.single=i;function o(L){return t(L)?L:i(L)}e.wrap=o;function s(L){return L||r}e.from=s;function*a(L){for(let k=L.length-1;k>=0;k--)yield L[k]}e.reverse=a;function u(L){return!L||L[Symbol.iterator]().next().done===!0}e.isEmpty=u;function d(L){return L[Symbol.iterator]().next().value}e.first=d;function f(L,k){for(let W of L)if(k(W))return!0;return!1}e.some=f;function m(L,k){for(let W of L)if(k(W))return W}e.find=m;function*w(L,k){for(let W of L)k(W)&&(yield W)}e.filter=w;function*_(L,k){let W=0;for(let Z of L)yield k(Z,W++)}e.map=_;function*S(...L){for(let k of L)yield*k}e.concat=S;function C(L,k,W){let Z=W;for(let ee of L)Z=k(Z,ee);return Z}e.reduce=C;function*M(L,k,W=L.length){for(k<0&&(k+=L.length),W<0?W+=L.length:W>L.length&&(W=L.length);k<W;k++)yield L[k]}e.slice=M;function N(L,k=Number.POSITIVE_INFINITY){let W=[];if(k===0)return[W,L];let Z=L[Symbol.iterator]();for(let ee=0;ee<k;ee++){let ne=Z.next();if(ne.done)return[W,e.empty()];W.push(ne.value)}return[W,{[Symbol.iterator](){return Z}}]}e.consume=N})(Ra||(Ra={}));var jk=!1,mn=null;function Hk(e){mn=e}if(jk){let e="__is_disposable_tracked__";Hk(new class{trackDisposable(t){let r=new Error("Potentially leaked disposable").stack;setTimeout(()=>{t[e]||console.log(r)},3e3)}setParent(t,r){if(t&&t!==hn.None)try{t[e]=!0}catch{}}markAsDisposed(t){if(t&&t!==hn.None)try{t[e]=!0}catch{}}markAsSingleton(t){}})}function ey(e){return mn?.trackDisposable(e),e}function ty(e){mn?.markAsDisposed(e)}function Kw(e,t){mn?.setParent(e,t)}function Zk(e,t){if(mn)for(let r of e)mn.setParent(r,t)}function QS(e){if(Ra.is(e)){let t=[];for(let r of e)if(r)try{r.dispose()}catch(n){t.push(n)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function KS(...e){let t=vs(()=>QS(e));return Zk(e,t),t}function vs(e){let t=ey({dispose:Qw(()=>{ty(t),e()})});return t}var oo=class e{constructor(){this._toDispose=new Set,this._isDisposed=!1,ey(this)}dispose(){this._isDisposed||(ty(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{QS(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return Kw(t,this),this._isDisposed?e.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}deleteAndLeak(t){t&&this._toDispose.has(t)&&(this._toDispose.delete(t),Kw(t,null))}};oo.DISABLE_DISPOSED_WARNING=!1;var hn=class{constructor(){this._store=new oo,ey(this),Kw(this._store,this)}dispose(){ty(this),this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}};hn.None=Object.freeze({dispose(){}});var rt=class e{constructor(t){this.element=t,this.next=e.Undefined,this.prev=e.Undefined}};rt.Undefined=new rt(void 0);var Ac=class{constructor(){this._first=rt.Undefined,this._last=rt.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===rt.Undefined}clear(){let t=this._first;for(;t!==rt.Undefined;){let r=t.next;t.prev=rt.Undefined,t.next=rt.Undefined,t=r}this._first=rt.Undefined,this._last=rt.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,r){let n=new rt(t);if(this._first===rt.Undefined)this._first=n,this._last=n;else if(r){let o=this._last;this._last=n,n.prev=o,o.next=n}else{let o=this._first;this._first=n,n.next=o,o.prev=n}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(n))}}shift(){if(this._first!==rt.Undefined){let t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==rt.Undefined){let t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==rt.Undefined&&t.next!==rt.Undefined){let r=t.prev;r.next=t.next,t.next.prev=r}else t.prev===rt.Undefined&&t.next===rt.Undefined?(this._first=rt.Undefined,this._last=rt.Undefined):t.next===rt.Undefined?(this._last=this._last.prev,this._last.next=rt.Undefined):t.prev===rt.Undefined&&(this._first=this._first.next,this._first.prev=rt.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==rt.Undefined;)yield t.element,t=t.next}};var Yk=globalThis.performance&&typeof globalThis.performance.now=="function",Da=class e{static create(t){return new e(t)}constructor(t){this._now=Yk&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}};var e5=!1,Jk=!1,Gm;(function(e){e.None=()=>hn.None;function t(D){if(Jk){let{onDidAddListener:B}=D,K=Nc.create(),Q=0;D.onDidAddListener=()=>{++Q===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),K.print()),B?.()}}}function r(D,B){return w(D,()=>{},0,void 0,!0,void 0,B)}e.defer=r;function n(D){return(B,K=null,Q)=>{let se=!1,de;return de=D(we=>{if(!se)return de?de.dispose():se=!0,B.call(K,we)},null,Q),se&&de.dispose(),de}}e.once=n;function i(D,B,K){return f((Q,se=null,de)=>D(we=>Q.call(se,B(we)),null,de),K)}e.map=i;function o(D,B,K){return f((Q,se=null,de)=>D(we=>{B(we),Q.call(se,we)},null,de),K)}e.forEach=o;function s(D,B,K){return f((Q,se=null,de)=>D(we=>B(we)&&Q.call(se,we),null,de),K)}e.filter=s;function a(D){return D}e.signal=a;function u(...D){return(B,K=null,Q)=>{let se=KS(...D.map(de=>de(we=>B.call(K,we))));return m(se,Q)}}e.any=u;function d(D,B,K,Q){let se=K;return i(D,de=>(se=B(se,de),se),Q)}e.reduce=d;function f(D,B){let K,Q={onWillAddFirstListener(){K=D(se.fire,se)},onDidRemoveLastListener(){K?.dispose()}};B||t(Q);let se=new dr(Q);return B?.add(se),se.event}function m(D,B){return B instanceof Array?B.push(D):B&&B.add(D),D}function w(D,B,K=100,Q=!1,se=!1,de,we){let Pe,Ke,Ft,xt=0,ar,ki={leakWarningThreshold:de,onWillAddFirstListener(){Pe=D(dn=>{xt++,Ke=B(Ke,dn),Q&&!Ft&&(yr.fire(Ke),Ke=void 0),ar=()=>{let fc=Ke;Ke=void 0,Ft=void 0,(!Q||xt>1)&&yr.fire(fc),xt=0},typeof K=="number"?(clearTimeout(Ft),Ft=setTimeout(ar,K)):Ft===void 0&&(Ft=0,queueMicrotask(ar))})},onWillRemoveListener(){se&&xt>0&&ar?.()},onDidRemoveLastListener(){ar=void 0,Pe.dispose()}};we||t(ki);let yr=new dr(ki);return we?.add(yr),yr.event}e.debounce=w;function _(D,B=0,K){return e.debounce(D,(Q,se)=>Q?(Q.push(se),Q):[se],B,void 0,!0,void 0,K)}e.accumulate=_;function S(D,B=(Q,se)=>Q===se,K){let Q=!0,se;return s(D,de=>{let we=Q||!B(de,se);return Q=!1,se=de,we},K)}e.latch=S;function C(D,B,K){return[e.filter(D,B,K),e.filter(D,Q=>!B(Q),K)]}e.split=C;function M(D,B=!1,K=[],Q){let se=K.slice(),de=D(Ke=>{se?se.push(Ke):Pe.fire(Ke)});Q&&Q.add(de);let we=()=>{se?.forEach(Ke=>Pe.fire(Ke)),se=null},Pe=new dr({onWillAddFirstListener(){de||(de=D(Ke=>Pe.fire(Ke)),Q&&Q.add(de))},onDidAddFirstListener(){se&&(B?setTimeout(we):we())},onDidRemoveLastListener(){de&&de.dispose(),de=null}});return Q&&Q.add(Pe),Pe.event}e.buffer=M;function N(D,B){return(Q,se,de)=>{let we=B(new k);return D(function(Pe){let Ke=we.evaluate(Pe);Ke!==L&&Q.call(se,Ke)},void 0,de)}}e.chain=N;let L=Symbol("HaltChainable");class k{constructor(){this.steps=[]}map(B){return this.steps.push(B),this}forEach(B){return this.steps.push(K=>(B(K),K)),this}filter(B){return this.steps.push(K=>B(K)?K:L),this}reduce(B,K){let Q=K;return this.steps.push(se=>(Q=B(Q,se),Q)),this}latch(B=(K,Q)=>K===Q){let K=!0,Q;return this.steps.push(se=>{let de=K||!B(se,Q);return K=!1,Q=se,de?se:L}),this}evaluate(B){for(let K of this.steps)if(B=K(B),B===L)break;return B}}function W(D,B,K=Q=>Q){let Q=(...Pe)=>we.fire(K(...Pe)),se=()=>D.on(B,Q),de=()=>D.removeListener(B,Q),we=new dr({onWillAddFirstListener:se,onDidRemoveLastListener:de});return we.event}e.fromNodeEventEmitter=W;function Z(D,B,K=Q=>Q){let Q=(...Pe)=>we.fire(K(...Pe)),se=()=>D.addEventListener(B,Q),de=()=>D.removeEventListener(B,Q),we=new dr({onWillAddFirstListener:se,onDidRemoveLastListener:de});return we.event}e.fromDOMEventEmitter=Z;function ee(D){return new Promise(B=>n(D)(B))}e.toPromise=ee;function ne(D){let B=new dr;return D.then(K=>{B.fire(K)},()=>{B.fire(void 0)}).finally(()=>{B.dispose()}),B.event}e.fromPromise=ne;function te(D,B,K){return B(K),D(Q=>B(Q))}e.runAndSubscribe=te;function pe(D,B){let K=null;function Q(de){K?.dispose(),K=new oo,B(de,K)}Q(void 0);let se=D(de=>Q(de));return vs(()=>{se.dispose(),K?.dispose()})}e.runAndSubscribeWithStore=pe;class ge{constructor(B,K){this._observable=B,this._counter=0,this._hasChanged=!1;let Q={onWillAddFirstListener:()=>{B.addObserver(this)},onDidRemoveLastListener:()=>{B.removeObserver(this)}};K||t(Q),this.emitter=new dr(Q),K&&K.add(this.emitter)}beginUpdate(B){this._counter++}handlePossibleChange(B){}handleChange(B,K){this._hasChanged=!0}endUpdate(B){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function ue(D,B){return new ge(D,B).emitter.event}e.fromObservable=ue;function G(D){return(B,K,Q)=>{let se=0,de=!1,we={beginUpdate(){se++},endUpdate(){se--,se===0&&(D.reportChanges(),de&&(de=!1,B.call(K)))},handlePossibleChange(){},handleChange(){de=!0}};D.addObserver(we),D.reportChanges();let Pe={dispose(){D.removeObserver(we)}};return Q instanceof oo?Q.add(Pe):Array.isArray(Q)&&Q.push(Pe),Pe}}e.fromObservableLight=G})(Gm||(Gm={}));var kc=class e{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${e._idPool++}`,e.all.add(this)}start(t){this._stopWatch=new Da,this.listenerCount=t}stop(){if(this._stopWatch){let t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}};kc.all=new Set;kc._idPool=0;var t5=-1,ry=class{constructor(t,r=Math.random().toString(18).slice(2,5)){this.threshold=t,this.name=r,this._warnCountdown=0}dispose(){var t;(t=this._stacks)===null||t===void 0||t.clear()}check(t,r){let n=this.threshold;if(n<=0||r<n)return;this._stacks||(this._stacks=new Map);let i=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=n*.5;let o,s=0;for(let[a,u]of this._stacks)(!o||s<u)&&(o=a,s=u);console.warn(`[${this.name}] potential listener LEAK detected, having ${r} listeners already. MOST frequent listener (${s}):`),console.warn(o)}return()=>{let o=this._stacks.get(t.value)||0;this._stacks.set(t.value,o-1)}}},Nc=class e{static create(){var t;return new e((t=new Error().stack)!==null&&t!==void 0?t:"")}constructor(t){this.value=t}print(){console.warn(this.value.split(`
|
|
6
147
|
`).slice(2).join(`
|
|
7
|
-
`))}},Pt=class{constructor(t){this.value=t}},km=2,Wm=(e,t)=>{if(e instanceof Pt)t(e);else for(let r=0;r<e.length;r++){let o=e[r];o&&t(o)}},Ce=class{constructor(t){var r,o,s,a,n;this._size=0,this._options=t,this._leakageMon=Co>0||!((r=this._options)===null||r===void 0)&&r.leakWarningThreshold?new li((s=(o=this._options)===null||o===void 0?void 0:o.leakWarningThreshold)!==null&&s!==void 0?s:Co):void 0,this._perfMon=!((a=this._options)===null||a===void 0)&&a._profName?new ar(this._options._profName):void 0,this._deliveryQueue=(n=this._options)===null||n===void 0?void 0:n.deliveryQueue}dispose(){var t,r,o,s;if(!this._disposed){if(this._disposed=!0,((t=this._deliveryQueue)===null||t===void 0?void 0:t.current)===this&&this._deliveryQueue.reset(),this._listeners){if(vo){let a=this._listeners;queueMicrotask(()=>{Wm(a,n=>{var l;return(l=n.stack)===null||l===void 0?void 0:l.print()})})}this._listeners=void 0,this._size=0}(o=(r=this._options)===null||r===void 0?void 0:r.onDidRemoveLastListener)===null||o===void 0||o.call(r),(s=this._leakageMon)===null||s===void 0||s.dispose()}}get event(){var t;return(t=this._event)!==null&&t!==void 0||(this._event=(r,o,s)=>{var a,n,l,p,m;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),Fe.None;if(this._disposed)return Fe.None;o&&(r=r.bind(o));let h=new Pt(r),g,y;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(h.stack=ur.create(),g=this._leakageMon.check(h.stack,this._size+1)),vo&&(h.stack=y??ur.create()),this._listeners?this._listeners instanceof Pt?((m=this._deliveryQueue)!==null&&m!==void 0||(this._deliveryQueue=new fi),this._listeners=[this._listeners,h]):this._listeners.push(h):((n=(a=this._options)===null||a===void 0?void 0:a.onWillAddFirstListener)===null||n===void 0||n.call(a,this),this._listeners=h,(p=(l=this._options)===null||l===void 0?void 0:l.onDidAddFirstListener)===null||p===void 0||p.call(l,this)),this._size++;let b=bt(()=>{g?.(),this._removeListener(h)});return s instanceof nt?s.add(b):Array.isArray(s)&&s.push(b),b}),this._event}_removeListener(t){var r,o,s,a;if((o=(r=this._options)===null||r===void 0?void 0:r.onWillRemoveListener)===null||o===void 0||o.call(r,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(a=(s=this._options)===null||s===void 0?void 0:s.onDidRemoveLastListener)===null||a===void 0||a.call(s,this),this._size=0;return}let n=this._listeners,l=n.indexOf(t);if(l===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,n[l]=void 0;let p=this._deliveryQueue.current===this;if(this._size*km<=n.length){let m=0;for(let h=0;h<n.length;h++)n[h]?n[m++]=n[h]:p&&(this._deliveryQueue.end--,m<this._deliveryQueue.i&&this._deliveryQueue.i--);n.length=m}}_deliver(t,r){var o;if(!t)return;let s=((o=this._options)===null||o===void 0?void 0:o.onListenerError)||Hr;if(!s){t.value(r);return}try{t.value(r)}catch(a){s(a)}}_deliverQueue(t){let r=t.current._listeners;for(;t.i<t.end;)this._deliver(r[t.i++],t.value);t.reset()}fire(t){var r,o,s,a;if(!((r=this._deliveryQueue)===null||r===void 0)&&r.current&&(this._deliverQueue(this._deliveryQueue),(o=this._perfMon)===null||o===void 0||o.stop()),(s=this._perfMon)===null||s===void 0||s.start(this._size),this._listeners)if(this._listeners instanceof Pt)this._deliver(this._listeners,t);else{let n=this._deliveryQueue;n.enqueue(this,t,this._listeners.length),this._deliverQueue(n)}(a=this._perfMon)===null||a===void 0||a.stop()}hasListeners(){return this._size>0}};var fi=class{constructor(){this.i=-1,this.end=0}enqueue(t,r,o){this.i=0,this.end=o,this.current=t,this.value=r}reset(){this.i=this.end,this.current=void 0,this.value=void 0}};function Lo(e){return typeof e=="string"}function Bm(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}function cr(e){let t=[];for(let r of Bm(e))typeof e[r]=="function"&&t.push(r);return t}function _o(e,t){let r=s=>function(){let a=Array.prototype.slice.call(arguments,0);return t(s,a)},o={};for(let s of e)o[s]=r(s);return o}var Om=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function Um(e,t){let r;return t.length===0?r=e:r=e.replace(/\{(\d+)\}/g,(o,s)=>{let a=s[0],n=t[a],l=o;return typeof n=="string"?l=n:(typeof n=="number"||typeof n=="boolean"||n===void 0||n===null)&&(l=String(n)),l}),Om&&(r="\uFF3B"+r.replace(/[aouei]/g,"$&$&")+"\uFF3D"),r}function se(e,t,...r){return Um(t,r)}var di,Ft="en",Kr=!1,Xr=!1,Qr=!1,qm=!1,Hm=!1,Ro=!1,zm=!1,jm=!1,Qm=!1,Km=!1,jr,pi=Ft,Mo=Ft,Xm,Te,Ye=globalThis,Le;typeof Ye.vscode<"u"&&typeof Ye.vscode.process<"u"?Le=Ye.vscode.process:typeof process<"u"&&(Le=process);var Eo=typeof((di=Le?.versions)===null||di===void 0?void 0:di.electron)=="string",Zm=Eo&&Le?.type==="renderer";if(typeof navigator=="object"&&!Zm)Te=navigator.userAgent,Kr=Te.indexOf("Windows")>=0,Xr=Te.indexOf("Macintosh")>=0,jm=(Te.indexOf("Macintosh")>=0||Te.indexOf("iPad")>=0||Te.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,Qr=Te.indexOf("Linux")>=0,Km=Te?.indexOf("Mobi")>=0,Ro=!0,jr=(se({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||Ft,pi=jr,Mo=navigator.language;else if(typeof Le=="object"){Kr=Le.platform==="win32",Xr=Le.platform==="darwin",Qr=Le.platform==="linux",qm=Qr&&!!Le.env.SNAP&&!!Le.env.SNAP_REVISION,zm=Eo,Qm=!!Le.env.CI||!!Le.env.BUILD_ARTIFACTSTAGINGDIRECTORY,jr=Ft,pi=Ft;let e=Le.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e),r=t.availableLanguages["*"];jr=t.locale,Mo=t.osLocale,pi=r||Ft,Xm=t._translationsConfigFile}catch{}Hm=!0}else console.error("Unable to resolve platform.");var mi=0;Xr?mi=1:Kr?mi=3:Qr&&(mi=2);var St=Kr,$o=Xr;var Ym=Ro&&typeof Ye.importScripts=="function",Kg=Ym?Ye.origin:void 0;var Ge=Te;var Jm=typeof Ye.postMessage=="function"&&!Ye.importScripts,Xg=(()=>{if(Jm){let e=[];Ye.addEventListener("message",r=>{if(r.data&&r.data.vscodeScheduleAsyncWork)for(let o=0,s=e.length;o<s;o++){let a=e[o];if(a.id===r.data.vscodeScheduleAsyncWork){e.splice(o,1),a.callback();return}}});let t=0;return r=>{let o=++t;e.push({id:o,callback:r}),Ye.postMessage({vscodeScheduleAsyncWork:o},"*")}}return e=>setTimeout(e)})();var ew=!!(Ge&&Ge.indexOf("Chrome")>=0),Zg=!!(Ge&&Ge.indexOf("Firefox")>=0),Yg=!!(!ew&&Ge&&Ge.indexOf("Safari")>=0),Jg=!!(Ge&&Ge.indexOf("Edg/")>=0),e0=!!(Ge&&Ge.indexOf("Android")>=0);var Zr=class{constructor(t){this.fn=t,this.lastCache=void 0,this.lastArgKey=void 0}get(t){let r=JSON.stringify(t);return this.lastArgKey!==r&&(this.lastArgKey=r,this.lastCache=this.fn(t)),this.lastCache}};var lr=class{constructor(t){this.executor=t,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(t){this._error=t}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}};var Vt;function Ao(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function Io(e){return e.split(/\r\n|\r|\n/)}function No(e){for(let t=0,r=e.length;t<r;t++){let o=e.charCodeAt(t);if(o!==32&&o!==9)return t}return-1}function Po(e,t=e.length-1){for(let r=t;r>=0;r--){let o=e.charCodeAt(r);if(o!==32&&o!==9)return r}return-1}function gi(e){return e>=65&&e<=90}function Tt(e){return 55296<=e&&e<=56319}function Yr(e){return 56320<=e&&e<=57343}function hi(e,t){return(e-55296<<10)+(t-56320)+65536}function Fo(e,t,r){let o=e.charCodeAt(r);if(Tt(o)&&r+1<t){let s=e.charCodeAt(r+1);if(Yr(s))return hi(o,s)}return o}var tw=/^[\t\n\r\x20-\x7E]*$/;function Vo(e){return tw.test(e)}var wi=class e{static getInstance(){return e._INSTANCE||(e._INSTANCE=new e),e._INSTANCE}constructor(){this._data=rw()}getGraphemeBreakType(t){if(t<32)return t===10?3:t===13?2:4;if(t<127)return 0;let r=this._data,o=r.length/3,s=1;for(;s<=o;)if(t<r[3*s])s=2*s;else if(t>r[3*s+1])s=2*s+1;else return r[3*s+2];return 0}};wi._INSTANCE=null;function rw(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}var qe=class{static getInstance(t){return Vt.cache.get(Array.from(t))}static getLocales(){return Vt._locales.value}constructor(t){this.confusableDictionary=t}isAmbiguous(t){return this.confusableDictionary.has(t)}getPrimaryConfusable(t){return this.confusableDictionary.get(t)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};Vt=qe;qe.ambiguousCharacterData=new lr(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'));qe.cache=new Zr(e=>{function t(m){let h=new Map;for(let g=0;g<m.length;g+=2)h.set(m[g],m[g+1]);return h}function r(m,h){let g=new Map(m);for(let[y,b]of h)g.set(y,b);return g}function o(m,h){if(!m)return h;let g=new Map;for(let[y,b]of m)h.has(y)&&g.set(y,b);return g}let s=Vt.ambiguousCharacterData.value,a=e.filter(m=>!m.startsWith("_")&&m in s);a.length===0&&(a=["_default"]);let n;for(let m of a){let h=t(s[m]);n=o(n,h)}let l=t(s._common),p=r(l,n);return new Vt(p)});qe._locales=new lr(()=>Object.keys(Vt.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));var xt=class e{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(e.getRawData())),this._data}static isInvisibleCharacter(t){return e.getData().has(t)}static get codePoints(){return e.getData()}};xt._data=void 0;var nw="$initialize";var yi=class{constructor(t,r,o,s){this.vsWorker=t,this.req=r,this.method=o,this.args=s,this.type=0}},Jr=class{constructor(t,r,o,s){this.vsWorker=t,this.seq=r,this.res=o,this.err=s,this.type=1}},bi=class{constructor(t,r,o,s){this.vsWorker=t,this.req=r,this.eventName=o,this.arg=s,this.type=2}},Si=class{constructor(t,r,o){this.vsWorker=t,this.req=r,this.event=o,this.type=3}},xi=class{constructor(t,r){this.vsWorker=t,this.req=r,this.type=4}},vi=class{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}sendMessage(t,r){let o=String(++this._lastSentReq);return new Promise((s,a)=>{this._pendingReplies[o]={resolve:s,reject:a},this._send(new yi(this._workerId,o,t,r))})}listen(t,r){let o=null,s=new Ce({onWillAddFirstListener:()=>{o=String(++this._lastSentReq),this._pendingEmitters.set(o,s),this._send(new bi(this._workerId,o,t,r))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(o),this._send(new xi(this._workerId,o)),o=null}});return s.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}_handleMessage(t){switch(t.type){case 1:return this._handleReplyMessage(t);case 0:return this._handleRequestMessage(t);case 2:return this._handleSubscribeEventMessage(t);case 3:return this._handleEventMessage(t);case 4:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq]){console.warn("Got reply to unknown seq");return}let r=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let o=t.err;t.err.$isError&&(o=new Error,o.name=t.err.name,o.message=t.err.message,o.stack=t.err.stack),r.reject(o);return}r.resolve(t.res)}_handleRequestMessage(t){let r=t.req;this._handler.handleMessage(t.method,t.args).then(s=>{this._send(new Jr(this._workerId,r,s,void 0))},s=>{s.detail instanceof Error&&(s.detail=si(s.detail)),this._send(new Jr(this._workerId,r,void 0,si(s)))})}_handleSubscribeEventMessage(t){let r=t.req,o=this._handler.handleEvent(t.eventName,t.arg)(s=>{this._send(new Si(this._workerId,r,s))});this._pendingEvents.set(r,o)}_handleEventMessage(t){if(!this._pendingEmitters.has(t.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(t.req).fire(t.event)}_handleUnsubscribeEventMessage(t){if(!this._pendingEvents.has(t.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(t.req).dispose(),this._pendingEvents.delete(t.req)}_send(t){let r=[];if(t.type===0)for(let o=0;o<t.args.length;o++)t.args[o]instanceof ArrayBuffer&&r.push(t.args[o]);else t.type===1&&t.res instanceof ArrayBuffer&&r.push(t.res);this._handler.sendMessage(t,r)}};function To(e){return e[0]==="o"&&e[1]==="n"&&gi(e.charCodeAt(2))}function Do(e){return/^onDynamic/.test(e)&&gi(e.charCodeAt(9))}function iw(e,t,r){let o=n=>function(){let l=Array.prototype.slice.call(arguments,0);return t(n,l)},s=n=>function(l){return r(n,l)},a={};for(let n of e){if(Do(n)){a[n]=s(n);continue}if(To(n)){a[n]=r(n,void 0);continue}a[n]=o(n)}return a}var en=class{constructor(t,r){this._requestHandlerFactory=r,this._requestHandler=null,this._protocol=new vi({sendMessage:(o,s)=>{t(o,s)},handleMessage:(o,s)=>this._handleMessage(o,s),handleEvent:(o,s)=>this._handleEvent(o,s)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,r){if(t===nw)return this.initialize(r[0],r[1],r[2],r[3]);if(!this._requestHandler||typeof this._requestHandler[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._requestHandler[t].apply(this._requestHandler,r))}catch(o){return Promise.reject(o)}}_handleEvent(t,r){if(!this._requestHandler)throw new Error("Missing requestHandler");if(Do(t)){let o=this._requestHandler[t].call(this._requestHandler,r);if(typeof o!="function")throw new Error(`Missing dynamic event ${t} on request handler.`);return o}if(To(t)){let o=this._requestHandler[t];if(typeof o!="function")throw new Error(`Missing event ${t} on request handler.`);return o}throw new Error(`Malformed event name ${t}`)}initialize(t,r,o,s){this._protocol.setWorkerId(t);let l=iw(s,(p,m)=>this._protocol.sendMessage(p,m),(p,m)=>this._protocol.listen(p,m));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(l),Promise.resolve(cr(this._requestHandler))):(r&&(typeof r.baseUrl<"u"&&delete r.baseUrl,typeof r.paths<"u"&&typeof r.paths.vs<"u"&&delete r.paths.vs,typeof r.trustedTypesPolicy!==void 0&&delete r.trustedTypesPolicy,r.catchError=!0,globalThis.require.config(r)),new Promise((p,m)=>{let h=globalThis.require;h([o],g=>{if(this._requestHandler=g.create(l),!this._requestHandler){m(new Error("No RequestHandler!"));return}p(cr(this._requestHandler))},m)}))}};var De=class{constructor(t,r,o,s){this.originalStart=t,this.originalLength=r,this.modifiedStart=o,this.modifiedLength=s}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}};function ko(e,t){return(t<<5)-t+e|0}function Bo(e,t){t=ko(149417,t);for(let r=0,o=e.length;r<o;r++)t=ko(e.charCodeAt(r),t);return t}function Ci(e,t,r=32){let o=r-t,s=~((1<<o)-1);return(e<<t|(s&e)>>>o)>>>0}function Wo(e,t=0,r=e.byteLength,o=0){for(let s=0;s<r;s++)e[t+s]=o}function sw(e,t,r="0"){for(;e.length<t;)e=r+e;return e}function dr(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join(""):sw((e>>>0).toString(16),t/4)}var Li=class e{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(t){let r=t.length;if(r===0)return;let o=this._buff,s=this._buffLen,a=this._leftoverHighSurrogate,n,l;for(a!==0?(n=a,l=-1,a=0):(n=t.charCodeAt(0),l=0);;){let p=n;if(Tt(n))if(l+1<r){let m=t.charCodeAt(l+1);Yr(m)?(l++,p=hi(n,m)):p=65533}else{a=n;break}else Yr(n)&&(p=65533);if(s=this._push(o,s,p),l++,l<r)n=t.charCodeAt(l);else break}this._buffLen=s,this._leftoverHighSurrogate=a}_push(t,r,o){return o<128?t[r++]=o:o<2048?(t[r++]=192|(o&1984)>>>6,t[r++]=128|(o&63)>>>0):o<65536?(t[r++]=224|(o&61440)>>>12,t[r++]=128|(o&4032)>>>6,t[r++]=128|(o&63)>>>0):(t[r++]=240|(o&1835008)>>>18,t[r++]=128|(o&258048)>>>12,t[r++]=128|(o&4032)>>>6,t[r++]=128|(o&63)>>>0),r>=64&&(this._step(),r-=64,this._totalLen+=64,t[0]=t[64],t[1]=t[65],t[2]=t[66]),r}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),dr(this._h0)+dr(this._h1)+dr(this._h2)+dr(this._h3)+dr(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,Wo(this._buff,this._buffLen),this._buffLen>56&&(this._step(),Wo(this._buff));let t=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(t/4294967296),!1),this._buffDV.setUint32(60,t%4294967296,!1),this._step()}_step(){let t=e._bigBlock32,r=this._buffDV;for(let g=0;g<64;g+=4)t.setUint32(g,r.getUint32(g,!1),!1);for(let g=64;g<320;g+=4)t.setUint32(g,Ci(t.getUint32(g-12,!1)^t.getUint32(g-32,!1)^t.getUint32(g-56,!1)^t.getUint32(g-64,!1),1),!1);let o=this._h0,s=this._h1,a=this._h2,n=this._h3,l=this._h4,p,m,h;for(let g=0;g<80;g++)g<20?(p=s&a|~s&n,m=1518500249):g<40?(p=s^a^n,m=1859775393):g<60?(p=s&a|s&n|a&n,m=2400959708):(p=s^a^n,m=3395469782),h=Ci(o,5)+p+l+m+t.getUint32(g*4,!1)&4294967295,l=n,n=a,a=Ci(s,30),s=o,o=h;this._h0=this._h0+o&4294967295,this._h1=this._h1+s&4294967295,this._h2=this._h2+a&4294967295,this._h3=this._h3+n&4294967295,this._h4=this._h4+l&4294967295}};Li._bigBlock32=new DataView(new ArrayBuffer(320));var tn=class{constructor(t){this.source=t}getElements(){let t=this.source,r=new Int32Array(t.length);for(let o=0,s=t.length;o<s;o++)r[o]=t.charCodeAt(o);return r}};function Oo(e,t,r){return new pr(new tn(e),new tn(t)).ComputeDiff(r).changes}var it=class{static Assert(t,r){if(!t)throw new Error(r)}},st=class{static Copy(t,r,o,s,a){for(let n=0;n<a;n++)o[s+n]=t[r+n]}static Copy2(t,r,o,s,a){for(let n=0;n<a;n++)o[s+n]=t[r+n]}},rn=class{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new De(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(t,r){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,r),this.m_originalCount++}AddModifiedElement(t,r){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,r),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}},pr=class e{constructor(t,r,o=null){this.ContinueProcessingPredicate=o,this._originalSequence=t,this._modifiedSequence=r;let[s,a,n]=e._getElements(t),[l,p,m]=e._getElements(r);this._hasStrings=n&&m,this._originalStringElements=s,this._originalElementsOrHash=a,this._modifiedStringElements=l,this._modifiedElementsOrHash=p,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){let r=t.getElements();if(e._isStringArray(r)){let o=new Int32Array(r.length);for(let s=0,a=r.length;s<a;s++)o[s]=Bo(r[s],0);return[r,o,!0]}return r instanceof Int32Array?[[],r,!1]:[[],new Int32Array(r),!1]}ElementsAreEqual(t,r){return this._originalElementsOrHash[t]!==this._modifiedElementsOrHash[r]?!1:this._hasStrings?this._originalStringElements[t]===this._modifiedStringElements[r]:!0}ElementsAreStrictEqual(t,r){if(!this.ElementsAreEqual(t,r))return!1;let o=e._getStrictElement(this._originalSequence,t),s=e._getStrictElement(this._modifiedSequence,r);return o===s}static _getStrictElement(t,r){return typeof t.getStrictElement=="function"?t.getStrictElement(r):null}OriginalElementsAreEqual(t,r){return this._originalElementsOrHash[t]!==this._originalElementsOrHash[r]?!1:this._hasStrings?this._originalStringElements[t]===this._originalStringElements[r]:!0}ModifiedElementsAreEqual(t,r){return this._modifiedElementsOrHash[t]!==this._modifiedElementsOrHash[r]?!1:this._hasStrings?this._modifiedStringElements[t]===this._modifiedStringElements[r]:!0}ComputeDiff(t){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,t)}_ComputeDiff(t,r,o,s,a){let n=[!1],l=this.ComputeDiffRecursive(t,r,o,s,n);return a&&(l=this.PrettifyChanges(l)),{quitEarly:n[0],changes:l}}ComputeDiffRecursive(t,r,o,s,a){for(a[0]=!1;t<=r&&o<=s&&this.ElementsAreEqual(t,o);)t++,o++;for(;r>=t&&s>=o&&this.ElementsAreEqual(r,s);)r--,s--;if(t>r||o>s){let g;return o<=s?(it.Assert(t===r+1,"originalStart should only be one more than originalEnd"),g=[new De(t,0,o,s-o+1)]):t<=r?(it.Assert(o===s+1,"modifiedStart should only be one more than modifiedEnd"),g=[new De(t,r-t+1,o,0)]):(it.Assert(t===r+1,"originalStart should only be one more than originalEnd"),it.Assert(o===s+1,"modifiedStart should only be one more than modifiedEnd"),g=[]),g}let n=[0],l=[0],p=this.ComputeRecursionPoint(t,r,o,s,n,l,a),m=n[0],h=l[0];if(p!==null)return p;if(!a[0]){let g=this.ComputeDiffRecursive(t,m,o,h,a),y=[];return a[0]?y=[new De(m+1,r-(m+1)+1,h+1,s-(h+1)+1)]:y=this.ComputeDiffRecursive(m+1,r,h+1,s,a),this.ConcatenateChanges(g,y)}return[new De(t,r-t+1,o,s-o+1)]}WALKTRACE(t,r,o,s,a,n,l,p,m,h,g,y,b,S,x,I,V,E){let $=null,P=null,T=new rn,G=r,q=o,H=b[0]-I[0]-s,re=-1073741824,le=this.m_forwardHistory.length-1;do{let ee=H+t;ee===G||ee<q&&m[ee-1]<m[ee+1]?(g=m[ee+1],S=g-H-s,g<re&&T.MarkNextChange(),re=g,T.AddModifiedElement(g+1,S),H=ee+1-t):(g=m[ee-1]+1,S=g-H-s,g<re&&T.MarkNextChange(),re=g-1,T.AddOriginalElement(g,S+1),H=ee-1-t),le>=0&&(m=this.m_forwardHistory[le],t=m[0],G=1,q=m.length-1)}while(--le>=-1);if($=T.getReverseChanges(),E[0]){let ee=b[0]+1,K=I[0]+1;if($!==null&&$.length>0){let O=$[$.length-1];ee=Math.max(ee,O.getOriginalEnd()),K=Math.max(K,O.getModifiedEnd())}P=[new De(ee,y-ee+1,K,x-K+1)]}else{T=new rn,G=n,q=l,H=b[0]-I[0]-p,re=1073741824,le=V?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let ee=H+a;ee===G||ee<q&&h[ee-1]>=h[ee+1]?(g=h[ee+1]-1,S=g-H-p,g>re&&T.MarkNextChange(),re=g+1,T.AddOriginalElement(g+1,S+1),H=ee+1-a):(g=h[ee-1],S=g-H-p,g>re&&T.MarkNextChange(),re=g,T.AddModifiedElement(g+1,S+1),H=ee-1-a),le>=0&&(h=this.m_reverseHistory[le],a=h[0],G=1,q=h.length-1)}while(--le>=-1);P=T.getChanges()}return this.ConcatenateChanges($,P)}ComputeRecursionPoint(t,r,o,s,a,n,l){let p=0,m=0,h=0,g=0,y=0,b=0;t--,o--,a[0]=0,n[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let S=r-t+(s-o),x=S+1,I=new Int32Array(x),V=new Int32Array(x),E=s-o,$=r-t,P=t-o,T=r-s,q=($-E)%2===0;I[E]=t,V[$]=r,l[0]=!1;for(let H=1;H<=S/2+1;H++){let re=0,le=0;h=this.ClipDiagonalBound(E-H,H,E,x),g=this.ClipDiagonalBound(E+H,H,E,x);for(let K=h;K<=g;K+=2){K===h||K<g&&I[K-1]<I[K+1]?p=I[K+1]:p=I[K-1]+1,m=p-(K-E)-P;let O=p;for(;p<r&&m<s&&this.ElementsAreEqual(p+1,m+1);)p++,m++;if(I[K]=p,p+m>re+le&&(re=p,le=m),!q&&Math.abs(K-$)<=H-1&&p>=V[K])return a[0]=p,n[0]=m,O<=V[K]&&H<=1448?this.WALKTRACE(E,h,g,P,$,y,b,T,I,V,p,r,a,m,s,n,q,l):null}let ee=(re-t+(le-o)-H)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(re,ee))return l[0]=!0,a[0]=re,n[0]=le,ee>0&&H<=1448?this.WALKTRACE(E,h,g,P,$,y,b,T,I,V,p,r,a,m,s,n,q,l):(t++,o++,[new De(t,r-t+1,o,s-o+1)]);y=this.ClipDiagonalBound($-H,H,$,x),b=this.ClipDiagonalBound($+H,H,$,x);for(let K=y;K<=b;K+=2){K===y||K<b&&V[K-1]>=V[K+1]?p=V[K+1]-1:p=V[K-1],m=p-(K-$)-T;let O=p;for(;p>t&&m>o&&this.ElementsAreEqual(p,m);)p--,m--;if(V[K]=p,q&&Math.abs(K-E)<=H&&p<=I[K])return a[0]=p,n[0]=m,O>=I[K]&&H<=1448?this.WALKTRACE(E,h,g,P,$,y,b,T,I,V,p,r,a,m,s,n,q,l):null}if(H<=1447){let K=new Int32Array(g-h+2);K[0]=E-h+1,st.Copy2(I,h,K,1,g-h+1),this.m_forwardHistory.push(K),K=new Int32Array(b-y+2),K[0]=$-y+1,st.Copy2(V,y,K,1,b-y+1),this.m_reverseHistory.push(K)}}return this.WALKTRACE(E,h,g,P,$,y,b,T,I,V,p,r,a,m,s,n,q,l)}PrettifyChanges(t){for(let r=0;r<t.length;r++){let o=t[r],s=r<t.length-1?t[r+1].originalStart:this._originalElementsOrHash.length,a=r<t.length-1?t[r+1].modifiedStart:this._modifiedElementsOrHash.length,n=o.originalLength>0,l=o.modifiedLength>0;for(;o.originalStart+o.originalLength<s&&o.modifiedStart+o.modifiedLength<a&&(!n||this.OriginalElementsAreEqual(o.originalStart,o.originalStart+o.originalLength))&&(!l||this.ModifiedElementsAreEqual(o.modifiedStart,o.modifiedStart+o.modifiedLength));){let m=this.ElementsAreStrictEqual(o.originalStart,o.modifiedStart);if(this.ElementsAreStrictEqual(o.originalStart+o.originalLength,o.modifiedStart+o.modifiedLength)&&!m)break;o.originalStart++,o.modifiedStart++}let p=[null];if(r<t.length-1&&this.ChangesOverlap(t[r],t[r+1],p)){t[r]=p[0],t.splice(r+1,1),r--;continue}}for(let r=t.length-1;r>=0;r--){let o=t[r],s=0,a=0;if(r>0){let g=t[r-1];s=g.originalStart+g.originalLength,a=g.modifiedStart+g.modifiedLength}let n=o.originalLength>0,l=o.modifiedLength>0,p=0,m=this._boundaryScore(o.originalStart,o.originalLength,o.modifiedStart,o.modifiedLength);for(let g=1;;g++){let y=o.originalStart-g,b=o.modifiedStart-g;if(y<s||b<a||n&&!this.OriginalElementsAreEqual(y,y+o.originalLength)||l&&!this.ModifiedElementsAreEqual(b,b+o.modifiedLength))break;let x=(y===s&&b===a?5:0)+this._boundaryScore(y,o.originalLength,b,o.modifiedLength);x>m&&(m=x,p=g)}o.originalStart-=p,o.modifiedStart-=p;let h=[null];if(r>0&&this.ChangesOverlap(t[r-1],t[r],h)){t[r-1]=h[0],t.splice(r,1),r++;continue}}if(this._hasStrings)for(let r=1,o=t.length;r<o;r++){let s=t[r-1],a=t[r],n=a.originalStart-s.originalStart-s.originalLength,l=s.originalStart,p=a.originalStart+a.originalLength,m=p-l,h=s.modifiedStart,g=a.modifiedStart+a.modifiedLength,y=g-h;if(n<5&&m<20&&y<20){let b=this._findBetterContiguousSequence(l,m,h,y,n);if(b){let[S,x]=b;(S!==s.originalStart+s.originalLength||x!==s.modifiedStart+s.modifiedLength)&&(s.originalLength=S-s.originalStart,s.modifiedLength=x-s.modifiedStart,a.originalStart=S+n,a.modifiedStart=x+n,a.originalLength=p-a.originalStart,a.modifiedLength=g-a.modifiedStart)}}}return t}_findBetterContiguousSequence(t,r,o,s,a){if(r<a||s<a)return null;let n=t+r-a+1,l=o+s-a+1,p=0,m=0,h=0;for(let g=t;g<n;g++)for(let y=o;y<l;y++){let b=this._contiguousSequenceScore(g,y,a);b>0&&b>p&&(p=b,m=g,h=y)}return p>0?[m,h]:null}_contiguousSequenceScore(t,r,o){let s=0;for(let a=0;a<o;a++){if(!this.ElementsAreEqual(t+a,r+a))return 0;s+=this._originalStringElements[t+a].length}return s}_OriginalIsBoundary(t){return t<=0||t>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,r){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(r>0){let o=t+r;if(this._OriginalIsBoundary(o-1)||this._OriginalIsBoundary(o))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,r){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(r>0){let o=t+r;if(this._ModifiedIsBoundary(o-1)||this._ModifiedIsBoundary(o))return!0}return!1}_boundaryScore(t,r,o,s){let a=this._OriginalRegionIsBoundary(t,r)?1:0,n=this._ModifiedRegionIsBoundary(o,s)?1:0;return a+n}ConcatenateChanges(t,r){let o=[];if(t.length===0||r.length===0)return r.length>0?r:t;if(this.ChangesOverlap(t[t.length-1],r[0],o)){let s=new Array(t.length+r.length-1);return st.Copy(t,0,s,0,t.length-1),s[t.length-1]=o[0],st.Copy(r,1,s,t.length,r.length-1),s}else{let s=new Array(t.length+r.length);return st.Copy(t,0,s,0,t.length),st.Copy(r,0,s,t.length,r.length),s}}ChangesOverlap(t,r,o){if(it.Assert(t.originalStart<=r.originalStart,"Left change is not less than or equal to right change"),it.Assert(t.modifiedStart<=r.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=r.originalStart||t.modifiedStart+t.modifiedLength>=r.modifiedStart){let s=t.originalStart,a=t.originalLength,n=t.modifiedStart,l=t.modifiedLength;return t.originalStart+t.originalLength>=r.originalStart&&(a=r.originalStart+r.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=r.modifiedStart&&(l=r.modifiedStart+r.modifiedLength-t.modifiedStart),o[0]=new De(s,a,n,l),!0}else return o[0]=null,!1}ClipDiagonalBound(t,r,o,s){if(t>=0&&t<s)return t;let a=o,n=s-o-1,l=r%2===0;if(t<0){let p=a%2===0;return l===p?0:1}else{let p=n%2===0;return l===p?s-1:s-2}}};var Dt,_i=globalThis.vscode;if(typeof _i<"u"&&typeof _i.process<"u"){let e=_i.process;Dt={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"?Dt={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:Dt={get platform(){return St?"win32":$o?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};var mr=Dt.cwd,Uo=Dt.env,Go=Dt.platform;var aw=65,uw=97,cw=90,lw=122,ut=46,Se=47,Ee=92,ot=58,fw=63,nn=class extends Error{constructor(t,r,o){let s;typeof r=="string"&&r.indexOf("not ")===0?(s="must not be",r=r.replace(/^not /,"")):s="must be";let a=t.indexOf(".")!==-1?"property":"argument",n=`The "${t}" ${a} ${s} of type ${r}`;n+=`. Received type ${typeof o}`,super(n),this.code="ERR_INVALID_ARG_TYPE"}};function dw(e,t){if(e===null||typeof e!="object")throw new nn(t,"Object",e)}function de(e,t){if(typeof e!="string")throw new nn(t,"string",e)}var ct=Go==="win32";function Z(e){return e===Se||e===Ee}function Mi(e){return e===Se}function at(e){return e>=aw&&e<=cw||e>=uw&&e<=lw}function sn(e,t,r,o){let s="",a=0,n=-1,l=0,p=0;for(let m=0;m<=e.length;++m){if(m<e.length)p=e.charCodeAt(m);else{if(o(p))break;p=Se}if(o(p)){if(!(n===m-1||l===1))if(l===2){if(s.length<2||a!==2||s.charCodeAt(s.length-1)!==ut||s.charCodeAt(s.length-2)!==ut){if(s.length>2){let h=s.lastIndexOf(r);h===-1?(s="",a=0):(s=s.slice(0,h),a=s.length-1-s.lastIndexOf(r)),n=m,l=0;continue}else if(s.length!==0){s="",a=0,n=m,l=0;continue}}t&&(s+=s.length>0?`${r}..`:"..",a=2)}else s.length>0?s+=`${r}${e.slice(n+1,m)}`:s=e.slice(n+1,m),a=m-n-1;n=m,l=0}else p===ut&&l!==-1?++l:l=-1}return s}function qo(e,t){dw(t,"pathObject");let r=t.dir||t.root,o=t.base||`${t.name||""}${t.ext||""}`;return r?r===t.root?`${r}${o}`:`${r}${e}${o}`:o}var _e={resolve(...e){let t="",r="",o=!1;for(let s=e.length-1;s>=-1;s--){let a;if(s>=0){if(a=e[s],de(a,"path"),a.length===0)continue}else t.length===0?a=mr():(a=Uo[`=${t}`]||mr(),(a===void 0||a.slice(0,2).toLowerCase()!==t.toLowerCase()&&a.charCodeAt(2)===Ee)&&(a=`${t}\\`));let n=a.length,l=0,p="",m=!1,h=a.charCodeAt(0);if(n===1)Z(h)&&(l=1,m=!0);else if(Z(h))if(m=!0,Z(a.charCodeAt(1))){let g=2,y=g;for(;g<n&&!Z(a.charCodeAt(g));)g++;if(g<n&&g!==y){let b=a.slice(y,g);for(y=g;g<n&&Z(a.charCodeAt(g));)g++;if(g<n&&g!==y){for(y=g;g<n&&!Z(a.charCodeAt(g));)g++;(g===n||g!==y)&&(p=`\\\\${b}\\${a.slice(y,g)}`,l=g)}}}else l=1;else at(h)&&a.charCodeAt(1)===ot&&(p=a.slice(0,2),l=2,n>2&&Z(a.charCodeAt(2))&&(m=!0,l=3));if(p.length>0)if(t.length>0){if(p.toLowerCase()!==t.toLowerCase())continue}else t=p;if(o){if(t.length>0)break}else if(r=`${a.slice(l)}\\${r}`,o=m,m&&t.length>0)break}return r=sn(r,!o,"\\",Z),o?`${t}\\${r}`:`${t}${r}`||"."},normalize(e){de(e,"path");let t=e.length;if(t===0)return".";let r=0,o,s=!1,a=e.charCodeAt(0);if(t===1)return Mi(a)?"\\":e;if(Z(a))if(s=!0,Z(e.charCodeAt(1))){let l=2,p=l;for(;l<t&&!Z(e.charCodeAt(l));)l++;if(l<t&&l!==p){let m=e.slice(p,l);for(p=l;l<t&&Z(e.charCodeAt(l));)l++;if(l<t&&l!==p){for(p=l;l<t&&!Z(e.charCodeAt(l));)l++;if(l===t)return`\\\\${m}\\${e.slice(p)}\\`;l!==p&&(o=`\\\\${m}\\${e.slice(p,l)}`,r=l)}}}else r=1;else at(a)&&e.charCodeAt(1)===ot&&(o=e.slice(0,2),r=2,t>2&&Z(e.charCodeAt(2))&&(s=!0,r=3));let n=r<t?sn(e.slice(r),!s,"\\",Z):"";return n.length===0&&!s&&(n="."),n.length>0&&Z(e.charCodeAt(t-1))&&(n+="\\"),o===void 0?s?`\\${n}`:n:s?`${o}\\${n}`:`${o}${n}`},isAbsolute(e){de(e,"path");let t=e.length;if(t===0)return!1;let r=e.charCodeAt(0);return Z(r)||t>2&&at(r)&&e.charCodeAt(1)===ot&&Z(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,r;for(let a=0;a<e.length;++a){let n=e[a];de(n,"path"),n.length>0&&(t===void 0?t=r=n:t+=`\\${n}`)}if(t===void 0)return".";let o=!0,s=0;if(typeof r=="string"&&Z(r.charCodeAt(0))){++s;let a=r.length;a>1&&Z(r.charCodeAt(1))&&(++s,a>2&&(Z(r.charCodeAt(2))?++s:o=!1))}if(o){for(;s<t.length&&Z(t.charCodeAt(s));)s++;s>=2&&(t=`\\${t.slice(s)}`)}return _e.normalize(t)},relative(e,t){if(de(e,"from"),de(t,"to"),e===t)return"";let r=_e.resolve(e),o=_e.resolve(t);if(r===o||(e=r.toLowerCase(),t=o.toLowerCase(),e===t))return"";let s=0;for(;s<e.length&&e.charCodeAt(s)===Ee;)s++;let a=e.length;for(;a-1>s&&e.charCodeAt(a-1)===Ee;)a--;let n=a-s,l=0;for(;l<t.length&&t.charCodeAt(l)===Ee;)l++;let p=t.length;for(;p-1>l&&t.charCodeAt(p-1)===Ee;)p--;let m=p-l,h=n<m?n:m,g=-1,y=0;for(;y<h;y++){let S=e.charCodeAt(s+y);if(S!==t.charCodeAt(l+y))break;S===Ee&&(g=y)}if(y!==h){if(g===-1)return o}else{if(m>h){if(t.charCodeAt(l+y)===Ee)return o.slice(l+y+1);if(y===2)return o.slice(l+y)}n>h&&(e.charCodeAt(s+y)===Ee?g=y:y===2&&(g=3)),g===-1&&(g=0)}let b="";for(y=s+g+1;y<=a;++y)(y===a||e.charCodeAt(y)===Ee)&&(b+=b.length===0?"..":"\\..");return l+=g,b.length>0?`${b}${o.slice(l,p)}`:(o.charCodeAt(l)===Ee&&++l,o.slice(l,p))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;let t=_e.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===Ee){if(t.charCodeAt(1)===Ee){let r=t.charCodeAt(2);if(r!==fw&&r!==ut)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(at(t.charCodeAt(0))&&t.charCodeAt(1)===ot&&t.charCodeAt(2)===Ee)return`\\\\?\\${t}`;return e},dirname(e){de(e,"path");let t=e.length;if(t===0)return".";let r=-1,o=0,s=e.charCodeAt(0);if(t===1)return Z(s)?e:".";if(Z(s)){if(r=o=1,Z(e.charCodeAt(1))){let l=2,p=l;for(;l<t&&!Z(e.charCodeAt(l));)l++;if(l<t&&l!==p){for(p=l;l<t&&Z(e.charCodeAt(l));)l++;if(l<t&&l!==p){for(p=l;l<t&&!Z(e.charCodeAt(l));)l++;if(l===t)return e;l!==p&&(r=o=l+1)}}}}else at(s)&&e.charCodeAt(1)===ot&&(r=t>2&&Z(e.charCodeAt(2))?3:2,o=r);let a=-1,n=!0;for(let l=t-1;l>=o;--l)if(Z(e.charCodeAt(l))){if(!n){a=l;break}}else n=!1;if(a===-1){if(r===-1)return".";a=r}return e.slice(0,a)},basename(e,t){t!==void 0&&de(t,"ext"),de(e,"path");let r=0,o=-1,s=!0,a;if(e.length>=2&&at(e.charCodeAt(0))&&e.charCodeAt(1)===ot&&(r=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let n=t.length-1,l=-1;for(a=e.length-1;a>=r;--a){let p=e.charCodeAt(a);if(Z(p)){if(!s){r=a+1;break}}else l===-1&&(s=!1,l=a+1),n>=0&&(p===t.charCodeAt(n)?--n===-1&&(o=a):(n=-1,o=l))}return r===o?o=l:o===-1&&(o=e.length),e.slice(r,o)}for(a=e.length-1;a>=r;--a)if(Z(e.charCodeAt(a))){if(!s){r=a+1;break}}else o===-1&&(s=!1,o=a+1);return o===-1?"":e.slice(r,o)},extname(e){de(e,"path");let t=0,r=-1,o=0,s=-1,a=!0,n=0;e.length>=2&&e.charCodeAt(1)===ot&&at(e.charCodeAt(0))&&(t=o=2);for(let l=e.length-1;l>=t;--l){let p=e.charCodeAt(l);if(Z(p)){if(!a){o=l+1;break}continue}s===-1&&(a=!1,s=l+1),p===ut?r===-1?r=l:n!==1&&(n=1):r!==-1&&(n=-1)}return r===-1||s===-1||n===0||n===1&&r===s-1&&r===o+1?"":e.slice(r,s)},format:qo.bind(null,"\\"),parse(e){de(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;let r=e.length,o=0,s=e.charCodeAt(0);if(r===1)return Z(s)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(Z(s)){if(o=1,Z(e.charCodeAt(1))){let g=2,y=g;for(;g<r&&!Z(e.charCodeAt(g));)g++;if(g<r&&g!==y){for(y=g;g<r&&Z(e.charCodeAt(g));)g++;if(g<r&&g!==y){for(y=g;g<r&&!Z(e.charCodeAt(g));)g++;g===r?o=g:g!==y&&(o=g+1)}}}}else if(at(s)&&e.charCodeAt(1)===ot){if(r<=2)return t.root=t.dir=e,t;if(o=2,Z(e.charCodeAt(2))){if(r===3)return t.root=t.dir=e,t;o=3}}o>0&&(t.root=e.slice(0,o));let a=-1,n=o,l=-1,p=!0,m=e.length-1,h=0;for(;m>=o;--m){if(s=e.charCodeAt(m),Z(s)){if(!p){n=m+1;break}continue}l===-1&&(p=!1,l=m+1),s===ut?a===-1?a=m:h!==1&&(h=1):a!==-1&&(h=-1)}return l!==-1&&(a===-1||h===0||h===1&&a===l-1&&a===n+1?t.base=t.name=e.slice(n,l):(t.name=e.slice(n,a),t.base=e.slice(n,l),t.ext=e.slice(a,l))),n>0&&n!==o?t.dir=e.slice(0,n-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},pw=(()=>{if(ct){let e=/\\/g;return()=>{let t=mr().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>mr()})(),Me={resolve(...e){let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){let s=o>=0?e[o]:pw();de(s,"path"),s.length!==0&&(t=`${s}/${t}`,r=s.charCodeAt(0)===Se)}return t=sn(t,!r,"/",Mi),r?`/${t}`:t.length>0?t:"."},normalize(e){if(de(e,"path"),e.length===0)return".";let t=e.charCodeAt(0)===Se,r=e.charCodeAt(e.length-1)===Se;return e=sn(e,!t,"/",Mi),e.length===0?t?"/":r?"./":".":(r&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return de(e,"path"),e.length>0&&e.charCodeAt(0)===Se},join(...e){if(e.length===0)return".";let t;for(let r=0;r<e.length;++r){let o=e[r];de(o,"path"),o.length>0&&(t===void 0?t=o:t+=`/${o}`)}return t===void 0?".":Me.normalize(t)},relative(e,t){if(de(e,"from"),de(t,"to"),e===t||(e=Me.resolve(e),t=Me.resolve(t),e===t))return"";let r=1,o=e.length,s=o-r,a=1,n=t.length-a,l=s<n?s:n,p=-1,m=0;for(;m<l;m++){let g=e.charCodeAt(r+m);if(g!==t.charCodeAt(a+m))break;g===Se&&(p=m)}if(m===l)if(n>l){if(t.charCodeAt(a+m)===Se)return t.slice(a+m+1);if(m===0)return t.slice(a+m)}else s>l&&(e.charCodeAt(r+m)===Se?p=m:m===0&&(p=0));let h="";for(m=r+p+1;m<=o;++m)(m===o||e.charCodeAt(m)===Se)&&(h+=h.length===0?"..":"/..");return`${h}${t.slice(a+p)}`},toNamespacedPath(e){return e},dirname(e){if(de(e,"path"),e.length===0)return".";let t=e.charCodeAt(0)===Se,r=-1,o=!0;for(let s=e.length-1;s>=1;--s)if(e.charCodeAt(s)===Se){if(!o){r=s;break}}else o=!1;return r===-1?t?"/":".":t&&r===1?"//":e.slice(0,r)},basename(e,t){t!==void 0&&de(t,"ext"),de(e,"path");let r=0,o=-1,s=!0,a;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let n=t.length-1,l=-1;for(a=e.length-1;a>=0;--a){let p=e.charCodeAt(a);if(p===Se){if(!s){r=a+1;break}}else l===-1&&(s=!1,l=a+1),n>=0&&(p===t.charCodeAt(n)?--n===-1&&(o=a):(n=-1,o=l))}return r===o?o=l:o===-1&&(o=e.length),e.slice(r,o)}for(a=e.length-1;a>=0;--a)if(e.charCodeAt(a)===Se){if(!s){r=a+1;break}}else o===-1&&(s=!1,o=a+1);return o===-1?"":e.slice(r,o)},extname(e){de(e,"path");let t=-1,r=0,o=-1,s=!0,a=0;for(let n=e.length-1;n>=0;--n){let l=e.charCodeAt(n);if(l===Se){if(!s){r=n+1;break}continue}o===-1&&(s=!1,o=n+1),l===ut?t===-1?t=n:a!==1&&(a=1):t!==-1&&(a=-1)}return t===-1||o===-1||a===0||a===1&&t===o-1&&t===r+1?"":e.slice(t,o)},format:qo.bind(null,"/"),parse(e){de(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;let r=e.charCodeAt(0)===Se,o;r?(t.root="/",o=1):o=0;let s=-1,a=0,n=-1,l=!0,p=e.length-1,m=0;for(;p>=o;--p){let h=e.charCodeAt(p);if(h===Se){if(!l){a=p+1;break}continue}n===-1&&(l=!1,n=p+1),h===ut?s===-1?s=p:m!==1&&(m=1):s!==-1&&(m=-1)}if(n!==-1){let h=a===0&&r?1:a;s===-1||m===0||m===1&&s===n-1&&s===a+1?t.base=t.name=e.slice(h,n):(t.name=e.slice(h,s),t.base=e.slice(h,n),t.ext=e.slice(s,n))}return a>0?t.dir=e.slice(0,a-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Me.win32=_e.win32=_e;Me.posix=_e.posix=Me;var b0=ct?_e.normalize:Me.normalize,S0=ct?_e.resolve:Me.resolve,x0=ct?_e.relative:Me.relative,v0=ct?_e.dirname:Me.dirname,C0=ct?_e.basename:Me.basename,L0=ct?_e.extname:Me.extname,_0=ct?_e.sep:Me.sep;var ww=/^\w[\w\d+.-]*$/,gw=/^\//,hw=/^\/\//;function yw(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!ww.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!gw.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(hw.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function bw(e,t){return!e&&!t?"file":e}function Sw(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==ke&&(t=ke+t):t=ke;break}return t}var ue="",ke="/",xw=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,ft=class e{static isUri(t){return t instanceof e?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}constructor(t,r,o,s,a,n=!1){typeof t=="object"?(this.scheme=t.scheme||ue,this.authority=t.authority||ue,this.path=t.path||ue,this.query=t.query||ue,this.fragment=t.fragment||ue):(this.scheme=bw(t,n),this.authority=r||ue,this.path=Sw(this.scheme,o||ue),this.query=s||ue,this.fragment=a||ue,yw(this,n))}get fsPath(){return Ri(this,!1)}with(t){if(!t)return this;let{scheme:r,authority:o,path:s,query:a,fragment:n}=t;return r===void 0?r=this.scheme:r===null&&(r=ue),o===void 0?o=this.authority:o===null&&(o=ue),s===void 0?s=this.path:s===null&&(s=ue),a===void 0?a=this.query:a===null&&(a=ue),n===void 0?n=this.fragment:n===null&&(n=ue),r===this.scheme&&o===this.authority&&s===this.path&&a===this.query&&n===this.fragment?this:new lt(r,o,s,a,n)}static parse(t,r=!1){let o=xw.exec(t);return o?new lt(o[2]||ue,on(o[4]||ue),on(o[5]||ue),on(o[7]||ue),on(o[9]||ue),r):new lt(ue,ue,ue,ue,ue)}static file(t){let r=ue;if(St&&(t=t.replace(/\\/g,ke)),t[0]===ke&&t[1]===ke){let o=t.indexOf(ke,2);o===-1?(r=t.substring(2),t=ke):(r=t.substring(2,o),t=t.substring(o)||ke)}return new lt("file",r,t,ue,ue)}static from(t,r){return new lt(t.scheme,t.authority,t.path,t.query,t.fragment,r)}static joinPath(t,...r){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let o;return St&&t.scheme==="file"?o=e.file(_e.join(Ri(t,!0),...r)).path:o=Me.join(t.path,...r),t.with({path:o})}toString(t=!1){return Ei(this,t)}toJSON(){return this}static revive(t){var r,o;if(t){if(t instanceof e)return t;{let s=new lt(t);return s._formatted=(r=t.external)!==null&&r!==void 0?r:null,s._fsPath=t._sep===jo&&(o=t.fsPath)!==null&&o!==void 0?o:null,s}}else return t}},jo=St?1:void 0,lt=class extends ft{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=Ri(this,!1)),this._fsPath}toString(t=!1){return t?Ei(this,!0):(this._formatted||(this._formatted=Ei(this,!1)),this._formatted)}toJSON(){let t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=jo),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}},Qo={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function Ho(e,t,r){let o,s=-1;for(let a=0;a<e.length;a++){let n=e.charCodeAt(a);if(n>=97&&n<=122||n>=65&&n<=90||n>=48&&n<=57||n===45||n===46||n===95||n===126||t&&n===47||r&&n===91||r&&n===93||r&&n===58)s!==-1&&(o+=encodeURIComponent(e.substring(s,a)),s=-1),o!==void 0&&(o+=e.charAt(a));else{o===void 0&&(o=e.substr(0,a));let l=Qo[n];l!==void 0?(s!==-1&&(o+=encodeURIComponent(e.substring(s,a)),s=-1),o+=l):s===-1&&(s=a)}}return s!==-1&&(o+=encodeURIComponent(e.substring(s))),o!==void 0?o:e}function vw(e){let t;for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);o===35||o===63?(t===void 0&&(t=e.substr(0,r)),t+=Qo[o]):t!==void 0&&(t+=e[r])}return t!==void 0?t:e}function Ri(e,t){let r;return e.authority&&e.path.length>1&&e.scheme==="file"?r=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?r=e.path.substr(1):r=e.path[1].toLowerCase()+e.path.substr(2):r=e.path,St&&(r=r.replace(/\//g,"\\")),r}function Ei(e,t){let r=t?vw:Ho,o="",{scheme:s,authority:a,path:n,query:l,fragment:p}=e;if(s&&(o+=s,o+=":"),(a||s==="file")&&(o+=ke,o+=ke),a){let m=a.indexOf("@");if(m!==-1){let h=a.substr(0,m);a=a.substr(m+1),m=h.lastIndexOf(":"),m===-1?o+=r(h,!1,!1):(o+=r(h.substr(0,m),!1,!1),o+=":",o+=r(h.substr(m+1),!1,!0)),o+="@"}a=a.toLowerCase(),m=a.lastIndexOf(":"),m===-1?o+=r(a,!1,!0):(o+=r(a.substr(0,m),!1,!0),o+=a.substr(m))}if(n){if(n.length>=3&&n.charCodeAt(0)===47&&n.charCodeAt(2)===58){let m=n.charCodeAt(1);m>=65&&m<=90&&(n=`/${String.fromCharCode(m+32)}:${n.substr(3)}`)}else if(n.length>=2&&n.charCodeAt(1)===58){let m=n.charCodeAt(0);m>=65&&m<=90&&(n=`${String.fromCharCode(m+32)}:${n.substr(2)}`)}o+=r(n,!0,!1)}return l&&(o+="?",o+=r(l,!1,!1)),p&&(o+="#",o+=t?p:Ho(p,!1,!1)),o}function Ko(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+Ko(e.substr(3)):e}}var zo=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function on(e){return e.match(zo)?e.replace(zo,t=>Ko(t)):e}var ge=class e{constructor(t,r){this.lineNumber=t,this.column=r}with(t=this.lineNumber,r=this.column){return t===this.lineNumber&&r===this.column?this:new e(t,r)}delta(t=0,r=0){return this.with(this.lineNumber+t,this.column+r)}equals(t){return e.equals(this,t)}static equals(t,r){return!t&&!r?!0:!!t&&!!r&&t.lineNumber===r.lineNumber&&t.column===r.column}isBefore(t){return e.isBefore(this,t)}static isBefore(t,r){return t.lineNumber<r.lineNumber?!0:r.lineNumber<t.lineNumber?!1:t.column<r.column}isBeforeOrEqual(t){return e.isBeforeOrEqual(this,t)}static isBeforeOrEqual(t,r){return t.lineNumber<r.lineNumber?!0:r.lineNumber<t.lineNumber?!1:t.column<=r.column}static compare(t,r){let o=t.lineNumber|0,s=r.lineNumber|0;if(o===s){let a=t.column|0,n=r.column|0;return a-n}return o-s}clone(){return new e(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new e(t.lineNumber,t.column)}static isIPosition(t){return t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}};var ie=class e{constructor(t,r,o,s){t>o||t===o&&r>s?(this.startLineNumber=o,this.startColumn=s,this.endLineNumber=t,this.endColumn=r):(this.startLineNumber=t,this.startColumn=r,this.endLineNumber=o,this.endColumn=s)}isEmpty(){return e.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return e.containsPosition(this,t)}static containsPosition(t,r){return!(r.lineNumber<t.startLineNumber||r.lineNumber>t.endLineNumber||r.lineNumber===t.startLineNumber&&r.column<t.startColumn||r.lineNumber===t.endLineNumber&&r.column>t.endColumn)}static strictContainsPosition(t,r){return!(r.lineNumber<t.startLineNumber||r.lineNumber>t.endLineNumber||r.lineNumber===t.startLineNumber&&r.column<=t.startColumn||r.lineNumber===t.endLineNumber&&r.column>=t.endColumn)}containsRange(t){return e.containsRange(this,t)}static containsRange(t,r){return!(r.startLineNumber<t.startLineNumber||r.endLineNumber<t.startLineNumber||r.startLineNumber>t.endLineNumber||r.endLineNumber>t.endLineNumber||r.startLineNumber===t.startLineNumber&&r.startColumn<t.startColumn||r.endLineNumber===t.endLineNumber&&r.endColumn>t.endColumn)}strictContainsRange(t){return e.strictContainsRange(this,t)}static strictContainsRange(t,r){return!(r.startLineNumber<t.startLineNumber||r.endLineNumber<t.startLineNumber||r.startLineNumber>t.endLineNumber||r.endLineNumber>t.endLineNumber||r.startLineNumber===t.startLineNumber&&r.startColumn<=t.startColumn||r.endLineNumber===t.endLineNumber&&r.endColumn>=t.endColumn)}plusRange(t){return e.plusRange(this,t)}static plusRange(t,r){let o,s,a,n;return r.startLineNumber<t.startLineNumber?(o=r.startLineNumber,s=r.startColumn):r.startLineNumber===t.startLineNumber?(o=r.startLineNumber,s=Math.min(r.startColumn,t.startColumn)):(o=t.startLineNumber,s=t.startColumn),r.endLineNumber>t.endLineNumber?(a=r.endLineNumber,n=r.endColumn):r.endLineNumber===t.endLineNumber?(a=r.endLineNumber,n=Math.max(r.endColumn,t.endColumn)):(a=t.endLineNumber,n=t.endColumn),new e(o,s,a,n)}intersectRanges(t){return e.intersectRanges(this,t)}static intersectRanges(t,r){let o=t.startLineNumber,s=t.startColumn,a=t.endLineNumber,n=t.endColumn,l=r.startLineNumber,p=r.startColumn,m=r.endLineNumber,h=r.endColumn;return o<l?(o=l,s=p):o===l&&(s=Math.max(s,p)),a>m?(a=m,n=h):a===m&&(n=Math.min(n,h)),o>a||o===a&&s>n?null:new e(o,s,a,n)}equalsRange(t){return e.equalsRange(this,t)}static equalsRange(t,r){return!t&&!r?!0:!!t&&!!r&&t.startLineNumber===r.startLineNumber&&t.startColumn===r.startColumn&&t.endLineNumber===r.endLineNumber&&t.endColumn===r.endColumn}getEndPosition(){return e.getEndPosition(this)}static getEndPosition(t){return new ge(t.endLineNumber,t.endColumn)}getStartPosition(){return e.getStartPosition(this)}static getStartPosition(t){return new ge(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,r){return new e(this.startLineNumber,this.startColumn,t,r)}setStartPosition(t,r){return new e(t,r,this.endLineNumber,this.endColumn)}collapseToStart(){return e.collapseToStart(this)}static collapseToStart(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return e.collapseToEnd(this)}static collapseToEnd(t){return new e(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new e(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,r=t){return new e(t.lineNumber,t.column,r.lineNumber,r.column)}static lift(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,r){return!(t.endLineNumber<r.startLineNumber||t.endLineNumber===r.startLineNumber&&t.endColumn<r.startColumn||r.endLineNumber<t.startLineNumber||r.endLineNumber===t.startLineNumber&&r.endColumn<t.startColumn)}static areIntersecting(t,r){return!(t.endLineNumber<r.startLineNumber||t.endLineNumber===r.startLineNumber&&t.endColumn<=r.startColumn||r.endLineNumber<t.startLineNumber||r.endLineNumber===t.startLineNumber&&r.endColumn<=t.startColumn)}static compareRangesUsingStarts(t,r){if(t&&r){let a=t.startLineNumber|0,n=r.startLineNumber|0;if(a===n){let l=t.startColumn|0,p=r.startColumn|0;if(l===p){let m=t.endLineNumber|0,h=r.endLineNumber|0;if(m===h){let g=t.endColumn|0,y=r.endColumn|0;return g-y}return m-h}return l-p}return a-n}return(t?1:0)-(r?1:0)}static compareRangesUsingEnds(t,r){return t.endLineNumber===r.endLineNumber?t.endColumn===r.endColumn?t.startLineNumber===r.startLineNumber?t.startColumn-r.startColumn:t.startLineNumber-r.startLineNumber:t.endColumn-r.endColumn:t.endLineNumber-r.endLineNumber}static spansMultipleLines(t){return t.endLineNumber>t.startLineNumber}toJSON(){return this}};function Xo(e,t,r=(o,s)=>o===s){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let o=0,s=e.length;o<s;o++)if(!r(e[o],t[o]))return!1;return!0}function*Zo(e,t){let r,o;for(let s of e)o!==void 0&&t(o,s)?r.push(s):(r&&(yield r),r=[s]),o=s;r&&(yield r)}function Yo(e,t){for(let r=0;r<=e.length;r++)t(r===0?void 0:e[r-1],r===e.length?void 0:e[r])}function Jo(e,t){for(let r=0;r<e.length;r++)t(r===0?void 0:e[r-1],e[r],r+1===e.length?void 0:e[r+1])}function ea(e,t){for(let r of t)e.push(r)}var $i;(function(e){function t(a){return a<0}e.isLessThan=t;function r(a){return a<=0}e.isLessThanOrEqual=r;function o(a){return a>0}e.isGreaterThan=o;function s(a){return a===0}e.isNeitherLessOrGreaterThan=s,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})($i||($i={}));function wr(e,t){return(r,o)=>t(e(r),e(o))}var gr=(e,t)=>e-t;function ta(e){return(t,r)=>-e(t,r)}var an=class e{constructor(t){this.iterate=t}toArray(){let t=[];return this.iterate(r=>(t.push(r),!0)),t}filter(t){return new e(r=>this.iterate(o=>t(o)?r(o):!0))}map(t){return new e(r=>this.iterate(o=>r(t(o))))}findLast(t){let r;return this.iterate(o=>(t(o)&&(r=o),!0)),r}findLastMaxBy(t){let r,o=!0;return this.iterate(s=>((o||$i.isGreaterThan(t(s,r)))&&(o=!1,r=s),!0)),r}};an.empty=new an(e=>{});function Ai(e){return e<0?0:e>255?255:e|0}function vt(e){return e<0?0:e>4294967295?4294967295:e|0}var un=class{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,r){t=vt(t);let o=this.values,s=this.prefixSum,a=r.length;return a===0?!1:(this.values=new Uint32Array(o.length+a),this.values.set(o.subarray(0,t),0),this.values.set(o.subarray(t),t+a),this.values.set(r,t),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,r){return t=vt(t),r=vt(r),this.values[t]===r?!1:(this.values[t]=r,t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),!0)}removeValues(t,r){t=vt(t),r=vt(r);let o=this.values,s=this.prefixSum;if(t>=o.length)return!1;let a=o.length-t;return r>=a&&(r=a),r===0?!1:(this.values=new Uint32Array(o.length-r),this.values.set(o.subarray(0,t),0),this.values.set(o.subarray(t+r),t),this.prefixSum=new Uint32Array(this.values.length),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(s.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=vt(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let r=this.prefixSumValidIndex[0]+1;r===0&&(this.prefixSum[0]=this.values[0],r++),t>=this.values.length&&(t=this.values.length-1);for(let o=r;o<=t;o++)this.prefixSum[o]=this.prefixSum[o-1]+this.values[o];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let r=0,o=this.values.length-1,s=0,a=0,n=0;for(;r<=o;)if(s=r+(o-r)/2|0,a=this.prefixSum[s],n=a-this.values[s],t<n)o=s-1;else if(t>=a)r=s+1;else break;return new Ii(s,t-n)}};var Ii=class{constructor(t,r){this.index=t,this.remainder=r,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=r}};var cn=class{constructor(t,r,o,s){this._uri=t,this._lines=r,this._eol=o,this._versionId=s,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);let r=t.changes;for(let o of r)this._acceptDeleteRange(o.range),this._acceptInsertText(new ge(o.range.startLineNumber,o.range.startColumn),o.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){let t=this._eol.length,r=this._lines.length,o=new Uint32Array(r);for(let s=0;s<r;s++)o[s]=this._lines[s].length+t;this._lineStarts=new un(o)}}_setLineText(t,r){this._lines[t]=r,this._lineStarts&&this._lineStarts.setValue(t,this._lines[t].length+this._eol.length)}_acceptDeleteRange(t){if(t.startLineNumber===t.endLineNumber){if(t.startColumn===t.endColumn)return;this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.startLineNumber-1].substring(t.endColumn-1));return}this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.endLineNumber-1].substring(t.endColumn-1)),this._lines.splice(t.startLineNumber,t.endLineNumber-t.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(t.startLineNumber,t.endLineNumber-t.startLineNumber)}_acceptInsertText(t,r){if(r.length===0)return;let o=Io(r);if(o.length===1){this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+o[0]+this._lines[t.lineNumber-1].substring(t.column-1));return}o[o.length-1]+=this._lines[t.lineNumber-1].substring(t.column-1),this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+o[0]);let s=new Uint32Array(o.length-1);for(let a=1;a<o.length;a++)this._lines.splice(t.lineNumber+a-1,0,o[a]),s[a-1]=o[a].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(t.lineNumber,s)}};var Cw="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function Lw(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(let r of Cw)e.indexOf(r)>=0||(t+="\\"+r);return t+="\\s]+)",new RegExp(t,"g")}var Ni=Lw();function Pi(e){let t=Ni;if(e&&e instanceof RegExp)if(e.global)t=e;else{let r="g";e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.unicode&&(r+="u"),t=new RegExp(e.source,r)}return t.lastIndex=0,t}var ra=new or;ra.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function hr(e,t,r,o,s){if(t=Pi(t),s||(s=It.first(ra)),r.length>s.maxLen){let m=e-s.maxLen/2;return m<0?m=0:o+=m,r=r.substring(m,e+s.maxLen/2),hr(e,t,r,o,s)}let a=Date.now(),n=e-1-o,l=-1,p=null;for(let m=1;!(Date.now()-a>=s.timeBudget);m++){let h=n-s.windowSize*m;t.lastIndex=Math.max(0,h);let g=_w(t,r,n,l);if(!g&&p||(p=g,h<=0))break;l=h}if(p){let m={word:p[0],startColumn:o+1+p.index,endColumn:o+1+p.index+p[0].length};return t.lastIndex=0,m}return null}function _w(e,t,r,o){let s;for(;s=e.exec(t);){let a=s.index||0;if(a<=r&&e.lastIndex>=r)return s;if(o>0&&a>o)return null}return null}var kt=class e{constructor(t){let r=Ai(t);this._defaultValue=r,this._asciiMap=e._createAsciiMap(r),this._map=new Map}static _createAsciiMap(t){let r=new Uint8Array(256);return r.fill(t),r}set(t,r){let o=Ai(r);t>=0&&t<256?this._asciiMap[t]=o:this._map.set(t,o)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}};var Vi=class{constructor(t,r,o){let s=new Uint8Array(t*r);for(let a=0,n=t*r;a<n;a++)s[a]=o;this._data=s,this.rows=t,this.cols=r}get(t,r){return this._data[t*this.cols+r]}set(t,r,o){this._data[t*this.cols+r]=o}},Ti=class{constructor(t){let r=0,o=0;for(let a=0,n=t.length;a<n;a++){let[l,p,m]=t[a];p>r&&(r=p),l>o&&(o=l),m>o&&(o=m)}r++,o++;let s=new Vi(o,r,0);for(let a=0,n=t.length;a<n;a++){let[l,p,m]=t[a];s.set(l,p,m)}this._states=s,this._maxCharCode=r}nextState(t,r){return r<0||r>=this._maxCharCode?0:this._states.get(t,r)}},Fi=null;function Mw(){return Fi===null&&(Fi=new Ti([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Fi}var yr=null;function Rw(){if(yr===null){yr=new kt(0);let e=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let r=0;r<e.length;r++)yr.set(e.charCodeAt(r),1);let t=".,;:";for(let r=0;r<t.length;r++)yr.set(t.charCodeAt(r),2)}return yr}var Di=class e{static _createLink(t,r,o,s,a){let n=a-1;do{let l=r.charCodeAt(n);if(t.get(l)!==2)break;n--}while(n>s);if(s>0){let l=r.charCodeAt(s-1),p=r.charCodeAt(n);(l===40&&p===41||l===91&&p===93||l===123&&p===125)&&n--}return{range:{startLineNumber:o,startColumn:s+1,endLineNumber:o,endColumn:n+2},url:r.substring(s,n+1)}}static computeLinks(t,r=Mw()){let o=Rw(),s=[];for(let a=1,n=t.getLineCount();a<=n;a++){let l=t.getLineContent(a),p=l.length,m=0,h=0,g=0,y=1,b=!1,S=!1,x=!1,I=!1;for(;m<p;){let V=!1,E=l.charCodeAt(m);if(y===13){let $;switch(E){case 40:b=!0,$=0;break;case 41:$=b?0:1;break;case 91:x=!0,S=!0,$=0;break;case 93:x=!1,$=S?0:1;break;case 123:I=!0,$=0;break;case 125:$=I?0:1;break;case 39:case 34:case 96:g===E?$=1:g===39||g===34||g===96?$=0:$=1;break;case 42:$=g===42?1:0;break;case 124:$=g===124?1:0;break;case 32:$=x?0:1;break;default:$=o.get(E)}$===1&&(s.push(e._createLink(o,l,a,h,m)),V=!0)}else if(y===12){let $;E===91?(S=!0,$=0):$=o.get(E),$===1?V=!0:y=13}else y=r.nextState(y,E),y===0&&(V=!0);V&&(y=1,b=!1,S=!1,I=!1,h=m+1,g=E),m++}y===13&&s.push(e._createLink(o,l,a,h,p))}return s}};function na(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:Di.computeLinks(e)}var Wt=class{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(t,r,o,s,a){if(t&&r){let n=this.doNavigateValueSet(r,a);if(n)return{range:t,value:n}}if(o&&s){let n=this.doNavigateValueSet(s,a);if(n)return{range:o,value:n}}return null}doNavigateValueSet(t,r){let o=this.numberReplace(t,r);return o!==null?o:this.textReplace(t,r)}numberReplace(t,r){let o=Math.pow(10,t.length-(t.lastIndexOf(".")+1)),s=Number(t),a=parseFloat(t);return!isNaN(s)&&!isNaN(a)&&s===a?s===0&&!r?null:(s=Math.floor(s*o),s+=r?o:-o,String(s/o)):null}textReplace(t,r){return this.valueSetsReplace(this._defaultValueSet,t,r)}valueSetsReplace(t,r,o){let s=null;for(let a=0,n=t.length;s===null&&a<n;a++)s=this.valueSetReplace(t[a],r,o);return s}valueSetReplace(t,r,o){let s=t.indexOf(r);return s>=0?(s+=o?1:-1,s<0?s=t.length-1:s%=t.length,t[s]):null}};Wt.INSTANCE=new Wt;var ia=Object.freeze(function(e,t){let r=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(r)}}}),ln;(function(e){function t(r){return r===e.None||r===e.Cancelled||r instanceof Bt?!0:!r||typeof r!="object"?!1:typeof r.isCancellationRequested=="boolean"&&typeof r.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:zr.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:ia})})(ln||(ln={}));var Bt=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?ia:(this._emitter||(this._emitter=new Ce),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},fn=class{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Bt),this._token}cancel(){this._token?this._token instanceof Bt&&this._token.cancel():this._token=ln.Cancelled}dispose(t=!1){var r;t&&this.cancel(),(r=this._parentListener)===null||r===void 0||r.dispose(),this._token?this._token instanceof Bt&&this._token.dispose():this._token=ln.None}};var br=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,r){this._keyCodeToStr[t]=r,this._strToKeyCode[r.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}},dn=new br,ki=new br,Wi=new br,Ew=new Array(230),$w={},Aw=[],Iw=Object.create(null),Nw=Object.create(null),oa=[],Bi=[];for(let e=0;e<=193;e++)oa[e]=-1;for(let e=0;e<=132;e++)Bi[e]=-1;(function(){let e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],r=[],o=[];for(let s of t){let[a,n,l,p,m,h,g,y,b]=s;if(o[n]||(o[n]=!0,Aw[n]=l,Iw[l]=n,Nw[l.toLowerCase()]=n,a&&(oa[n]=p,p!==0&&p!==3&&p!==5&&p!==4&&p!==6&&p!==57&&(Bi[p]=n))),!r[p]){if(r[p]=!0,!m)throw new Error(`String representation missing for key code ${p} around scan code ${l}`);dn.define(p,m),ki.define(p,y||m),Wi.define(p,b||y||m)}h&&(Ew[h]=p),g&&($w[g]=p)}Bi[3]=46})();var sa;(function(e){function t(l){return dn.keyCodeToStr(l)}e.toString=t;function r(l){return dn.strToKeyCode(l)}e.fromString=r;function o(l){return ki.keyCodeToStr(l)}e.toUserSettingsUS=o;function s(l){return Wi.keyCodeToStr(l)}e.toUserSettingsGeneral=s;function a(l){return ki.strToKeyCode(l)||Wi.strToKeyCode(l)}e.fromUserSettings=a;function n(l){if(l>=98&&l<=113)return null;switch(l){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return dn.keyCodeToStr(l)}e.toElectronAccelerator=n})(sa||(sa={}));function aa(e,t){let r=(t&65535)<<16>>>0;return(e|r)>>>0}var pn=class e extends ie{constructor(t,r,o,s){super(t,r,o,s),this.selectionStartLineNumber=t,this.selectionStartColumn=r,this.positionLineNumber=o,this.positionColumn=s}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return e.selectionsEqual(this,t)}static selectionsEqual(t,r){return t.selectionStartLineNumber===r.selectionStartLineNumber&&t.selectionStartColumn===r.selectionStartColumn&&t.positionLineNumber===r.positionLineNumber&&t.positionColumn===r.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,r){return this.getDirection()===0?new e(this.startLineNumber,this.startColumn,t,r):new e(t,r,this.startLineNumber,this.startColumn)}getPosition(){return new ge(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new ge(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,r){return this.getDirection()===0?new e(t,r,this.endLineNumber,this.endColumn):new e(this.endLineNumber,this.endColumn,t,r)}static fromPositions(t,r=t){return new e(t.lineNumber,t.column,r.lineNumber,r.column)}static fromRange(t,r){return r===0?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new e(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new e(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,r){if(t&&!r||!t&&r)return!1;if(!t&&!r)return!0;if(t.length!==r.length)return!1;for(let o=0,s=t.length;o<s;o++)if(!this.selectionsEqual(t[o],r[o]))return!1;return!0}static isISelection(t){return t&&typeof t.selectionStartLineNumber=="number"&&typeof t.selectionStartColumn=="number"&&typeof t.positionLineNumber=="number"&&typeof t.positionColumn=="number"}static createWithDirection(t,r,o,s,a){return a===0?new e(t,r,o,s):new e(o,s,t,r)}};var ua=Object.create(null);function f(e,t){if(Lo(t)){let r=ua[t];if(r===void 0)throw new Error(`${e} references an unknown codicon: ${t}`);t=r}return ua[e]=t,{id:e}}var j={add:f("add",6e4),plus:f("plus",6e4),gistNew:f("gist-new",6e4),repoCreate:f("repo-create",6e4),lightbulb:f("lightbulb",60001),lightBulb:f("light-bulb",60001),repo:f("repo",60002),repoDelete:f("repo-delete",60002),gistFork:f("gist-fork",60003),repoForked:f("repo-forked",60003),gitPullRequest:f("git-pull-request",60004),gitPullRequestAbandoned:f("git-pull-request-abandoned",60004),recordKeys:f("record-keys",60005),keyboard:f("keyboard",60005),tag:f("tag",60006),tagAdd:f("tag-add",60006),tagRemove:f("tag-remove",60006),gitPullRequestLabel:f("git-pull-request-label",60006),person:f("person",60007),personFollow:f("person-follow",60007),personOutline:f("person-outline",60007),personFilled:f("person-filled",60007),gitBranch:f("git-branch",60008),gitBranchCreate:f("git-branch-create",60008),gitBranchDelete:f("git-branch-delete",60008),sourceControl:f("source-control",60008),mirror:f("mirror",60009),mirrorPublic:f("mirror-public",60009),star:f("star",60010),starAdd:f("star-add",60010),starDelete:f("star-delete",60010),starEmpty:f("star-empty",60010),comment:f("comment",60011),commentAdd:f("comment-add",60011),alert:f("alert",60012),warning:f("warning",60012),search:f("search",60013),searchSave:f("search-save",60013),logOut:f("log-out",60014),signOut:f("sign-out",60014),logIn:f("log-in",60015),signIn:f("sign-in",60015),eye:f("eye",60016),eyeUnwatch:f("eye-unwatch",60016),eyeWatch:f("eye-watch",60016),circleFilled:f("circle-filled",60017),primitiveDot:f("primitive-dot",60017),closeDirty:f("close-dirty",60017),debugBreakpoint:f("debug-breakpoint",60017),debugBreakpointDisabled:f("debug-breakpoint-disabled",60017),debugHint:f("debug-hint",60017),primitiveSquare:f("primitive-square",60018),edit:f("edit",60019),pencil:f("pencil",60019),info:f("info",60020),issueOpened:f("issue-opened",60020),gistPrivate:f("gist-private",60021),gitForkPrivate:f("git-fork-private",60021),lock:f("lock",60021),mirrorPrivate:f("mirror-private",60021),close:f("close",60022),removeClose:f("remove-close",60022),x:f("x",60022),repoSync:f("repo-sync",60023),sync:f("sync",60023),clone:f("clone",60024),desktopDownload:f("desktop-download",60024),beaker:f("beaker",60025),microscope:f("microscope",60025),vm:f("vm",60026),deviceDesktop:f("device-desktop",60026),file:f("file",60027),fileText:f("file-text",60027),more:f("more",60028),ellipsis:f("ellipsis",60028),kebabHorizontal:f("kebab-horizontal",60028),mailReply:f("mail-reply",60029),reply:f("reply",60029),organization:f("organization",60030),organizationFilled:f("organization-filled",60030),organizationOutline:f("organization-outline",60030),newFile:f("new-file",60031),fileAdd:f("file-add",60031),newFolder:f("new-folder",60032),fileDirectoryCreate:f("file-directory-create",60032),trash:f("trash",60033),trashcan:f("trashcan",60033),history:f("history",60034),clock:f("clock",60034),folder:f("folder",60035),fileDirectory:f("file-directory",60035),symbolFolder:f("symbol-folder",60035),logoGithub:f("logo-github",60036),markGithub:f("mark-github",60036),github:f("github",60036),terminal:f("terminal",60037),console:f("console",60037),repl:f("repl",60037),zap:f("zap",60038),symbolEvent:f("symbol-event",60038),error:f("error",60039),stop:f("stop",60039),variable:f("variable",60040),symbolVariable:f("symbol-variable",60040),array:f("array",60042),symbolArray:f("symbol-array",60042),symbolModule:f("symbol-module",60043),symbolPackage:f("symbol-package",60043),symbolNamespace:f("symbol-namespace",60043),symbolObject:f("symbol-object",60043),symbolMethod:f("symbol-method",60044),symbolFunction:f("symbol-function",60044),symbolConstructor:f("symbol-constructor",60044),symbolBoolean:f("symbol-boolean",60047),symbolNull:f("symbol-null",60047),symbolNumeric:f("symbol-numeric",60048),symbolNumber:f("symbol-number",60048),symbolStructure:f("symbol-structure",60049),symbolStruct:f("symbol-struct",60049),symbolParameter:f("symbol-parameter",60050),symbolTypeParameter:f("symbol-type-parameter",60050),symbolKey:f("symbol-key",60051),symbolText:f("symbol-text",60051),symbolReference:f("symbol-reference",60052),goToFile:f("go-to-file",60052),symbolEnum:f("symbol-enum",60053),symbolValue:f("symbol-value",60053),symbolRuler:f("symbol-ruler",60054),symbolUnit:f("symbol-unit",60054),activateBreakpoints:f("activate-breakpoints",60055),archive:f("archive",60056),arrowBoth:f("arrow-both",60057),arrowDown:f("arrow-down",60058),arrowLeft:f("arrow-left",60059),arrowRight:f("arrow-right",60060),arrowSmallDown:f("arrow-small-down",60061),arrowSmallLeft:f("arrow-small-left",60062),arrowSmallRight:f("arrow-small-right",60063),arrowSmallUp:f("arrow-small-up",60064),arrowUp:f("arrow-up",60065),bell:f("bell",60066),bold:f("bold",60067),book:f("book",60068),bookmark:f("bookmark",60069),debugBreakpointConditionalUnverified:f("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:f("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:f("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:f("debug-breakpoint-data-unverified",60072),debugBreakpointData:f("debug-breakpoint-data",60073),debugBreakpointDataDisabled:f("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:f("debug-breakpoint-log-unverified",60074),debugBreakpointLog:f("debug-breakpoint-log",60075),debugBreakpointLogDisabled:f("debug-breakpoint-log-disabled",60075),briefcase:f("briefcase",60076),broadcast:f("broadcast",60077),browser:f("browser",60078),bug:f("bug",60079),calendar:f("calendar",60080),caseSensitive:f("case-sensitive",60081),check:f("check",60082),checklist:f("checklist",60083),chevronDown:f("chevron-down",60084),dropDownButton:f("drop-down-button",60084),chevronLeft:f("chevron-left",60085),chevronRight:f("chevron-right",60086),chevronUp:f("chevron-up",60087),chromeClose:f("chrome-close",60088),chromeMaximize:f("chrome-maximize",60089),chromeMinimize:f("chrome-minimize",60090),chromeRestore:f("chrome-restore",60091),circle:f("circle",60092),circleOutline:f("circle-outline",60092),debugBreakpointUnverified:f("debug-breakpoint-unverified",60092),circleSlash:f("circle-slash",60093),circuitBoard:f("circuit-board",60094),clearAll:f("clear-all",60095),clippy:f("clippy",60096),closeAll:f("close-all",60097),cloudDownload:f("cloud-download",60098),cloudUpload:f("cloud-upload",60099),code:f("code",60100),collapseAll:f("collapse-all",60101),colorMode:f("color-mode",60102),commentDiscussion:f("comment-discussion",60103),compareChanges:f("compare-changes",60157),creditCard:f("credit-card",60105),dash:f("dash",60108),dashboard:f("dashboard",60109),database:f("database",60110),debugContinue:f("debug-continue",60111),debugDisconnect:f("debug-disconnect",60112),debugPause:f("debug-pause",60113),debugRestart:f("debug-restart",60114),debugStart:f("debug-start",60115),debugStepInto:f("debug-step-into",60116),debugStepOut:f("debug-step-out",60117),debugStepOver:f("debug-step-over",60118),debugStop:f("debug-stop",60119),debug:f("debug",60120),deviceCameraVideo:f("device-camera-video",60121),deviceCamera:f("device-camera",60122),deviceMobile:f("device-mobile",60123),diffAdded:f("diff-added",60124),diffIgnored:f("diff-ignored",60125),diffModified:f("diff-modified",60126),diffRemoved:f("diff-removed",60127),diffRenamed:f("diff-renamed",60128),diff:f("diff",60129),discard:f("discard",60130),editorLayout:f("editor-layout",60131),emptyWindow:f("empty-window",60132),exclude:f("exclude",60133),extensions:f("extensions",60134),eyeClosed:f("eye-closed",60135),fileBinary:f("file-binary",60136),fileCode:f("file-code",60137),fileMedia:f("file-media",60138),filePdf:f("file-pdf",60139),fileSubmodule:f("file-submodule",60140),fileSymlinkDirectory:f("file-symlink-directory",60141),fileSymlinkFile:f("file-symlink-file",60142),fileZip:f("file-zip",60143),files:f("files",60144),filter:f("filter",60145),flame:f("flame",60146),foldDown:f("fold-down",60147),foldUp:f("fold-up",60148),fold:f("fold",60149),folderActive:f("folder-active",60150),folderOpened:f("folder-opened",60151),gear:f("gear",60152),gift:f("gift",60153),gistSecret:f("gist-secret",60154),gist:f("gist",60155),gitCommit:f("git-commit",60156),gitCompare:f("git-compare",60157),gitMerge:f("git-merge",60158),githubAction:f("github-action",60159),githubAlt:f("github-alt",60160),globe:f("globe",60161),grabber:f("grabber",60162),graph:f("graph",60163),gripper:f("gripper",60164),heart:f("heart",60165),home:f("home",60166),horizontalRule:f("horizontal-rule",60167),hubot:f("hubot",60168),inbox:f("inbox",60169),issueClosed:f("issue-closed",60324),issueReopened:f("issue-reopened",60171),issues:f("issues",60172),italic:f("italic",60173),jersey:f("jersey",60174),json:f("json",60175),bracket:f("bracket",60175),kebabVertical:f("kebab-vertical",60176),key:f("key",60177),law:f("law",60178),lightbulbAutofix:f("lightbulb-autofix",60179),linkExternal:f("link-external",60180),link:f("link",60181),listOrdered:f("list-ordered",60182),listUnordered:f("list-unordered",60183),liveShare:f("live-share",60184),loading:f("loading",60185),location:f("location",60186),mailRead:f("mail-read",60187),mail:f("mail",60188),markdown:f("markdown",60189),megaphone:f("megaphone",60190),mention:f("mention",60191),milestone:f("milestone",60192),gitPullRequestMilestone:f("git-pull-request-milestone",60192),mortarBoard:f("mortar-board",60193),move:f("move",60194),multipleWindows:f("multiple-windows",60195),mute:f("mute",60196),noNewline:f("no-newline",60197),note:f("note",60198),octoface:f("octoface",60199),openPreview:f("open-preview",60200),package:f("package",60201),paintcan:f("paintcan",60202),pin:f("pin",60203),play:f("play",60204),run:f("run",60204),plug:f("plug",60205),preserveCase:f("preserve-case",60206),preview:f("preview",60207),project:f("project",60208),pulse:f("pulse",60209),question:f("question",60210),quote:f("quote",60211),radioTower:f("radio-tower",60212),reactions:f("reactions",60213),references:f("references",60214),refresh:f("refresh",60215),regex:f("regex",60216),remoteExplorer:f("remote-explorer",60217),remote:f("remote",60218),remove:f("remove",60219),replaceAll:f("replace-all",60220),replace:f("replace",60221),repoClone:f("repo-clone",60222),repoForcePush:f("repo-force-push",60223),repoPull:f("repo-pull",60224),repoPush:f("repo-push",60225),report:f("report",60226),requestChanges:f("request-changes",60227),rocket:f("rocket",60228),rootFolderOpened:f("root-folder-opened",60229),rootFolder:f("root-folder",60230),rss:f("rss",60231),ruby:f("ruby",60232),saveAll:f("save-all",60233),saveAs:f("save-as",60234),save:f("save",60235),screenFull:f("screen-full",60236),screenNormal:f("screen-normal",60237),searchStop:f("search-stop",60238),server:f("server",60240),settingsGear:f("settings-gear",60241),settings:f("settings",60242),shield:f("shield",60243),smiley:f("smiley",60244),sortPrecedence:f("sort-precedence",60245),splitHorizontal:f("split-horizontal",60246),splitVertical:f("split-vertical",60247),squirrel:f("squirrel",60248),starFull:f("star-full",60249),starHalf:f("star-half",60250),symbolClass:f("symbol-class",60251),symbolColor:f("symbol-color",60252),symbolCustomColor:f("symbol-customcolor",60252),symbolConstant:f("symbol-constant",60253),symbolEnumMember:f("symbol-enum-member",60254),symbolField:f("symbol-field",60255),symbolFile:f("symbol-file",60256),symbolInterface:f("symbol-interface",60257),symbolKeyword:f("symbol-keyword",60258),symbolMisc:f("symbol-misc",60259),symbolOperator:f("symbol-operator",60260),symbolProperty:f("symbol-property",60261),wrench:f("wrench",60261),wrenchSubaction:f("wrench-subaction",60261),symbolSnippet:f("symbol-snippet",60262),tasklist:f("tasklist",60263),telescope:f("telescope",60264),textSize:f("text-size",60265),threeBars:f("three-bars",60266),thumbsdown:f("thumbsdown",60267),thumbsup:f("thumbsup",60268),tools:f("tools",60269),triangleDown:f("triangle-down",60270),triangleLeft:f("triangle-left",60271),triangleRight:f("triangle-right",60272),triangleUp:f("triangle-up",60273),twitter:f("twitter",60274),unfold:f("unfold",60275),unlock:f("unlock",60276),unmute:f("unmute",60277),unverified:f("unverified",60278),verified:f("verified",60279),versions:f("versions",60280),vmActive:f("vm-active",60281),vmOutline:f("vm-outline",60282),vmRunning:f("vm-running",60283),watch:f("watch",60284),whitespace:f("whitespace",60285),wholeWord:f("whole-word",60286),window:f("window",60287),wordWrap:f("word-wrap",60288),zoomIn:f("zoom-in",60289),zoomOut:f("zoom-out",60290),listFilter:f("list-filter",60291),listFlat:f("list-flat",60292),listSelection:f("list-selection",60293),selection:f("selection",60293),listTree:f("list-tree",60294),debugBreakpointFunctionUnverified:f("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:f("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:f("debug-breakpoint-function-disabled",60296),debugStackframeActive:f("debug-stackframe-active",60297),circleSmallFilled:f("circle-small-filled",60298),debugStackframeDot:f("debug-stackframe-dot",60298),debugStackframe:f("debug-stackframe",60299),debugStackframeFocused:f("debug-stackframe-focused",60299),debugBreakpointUnsupported:f("debug-breakpoint-unsupported",60300),symbolString:f("symbol-string",60301),debugReverseContinue:f("debug-reverse-continue",60302),debugStepBack:f("debug-step-back",60303),debugRestartFrame:f("debug-restart-frame",60304),callIncoming:f("call-incoming",60306),callOutgoing:f("call-outgoing",60307),menu:f("menu",60308),expandAll:f("expand-all",60309),feedback:f("feedback",60310),gitPullRequestReviewer:f("git-pull-request-reviewer",60310),groupByRefType:f("group-by-ref-type",60311),ungroupByRefType:f("ungroup-by-ref-type",60312),account:f("account",60313),gitPullRequestAssignee:f("git-pull-request-assignee",60313),bellDot:f("bell-dot",60314),debugConsole:f("debug-console",60315),library:f("library",60316),output:f("output",60317),runAll:f("run-all",60318),syncIgnored:f("sync-ignored",60319),pinned:f("pinned",60320),githubInverted:f("github-inverted",60321),debugAlt:f("debug-alt",60305),serverProcess:f("server-process",60322),serverEnvironment:f("server-environment",60323),pass:f("pass",60324),stopCircle:f("stop-circle",60325),playCircle:f("play-circle",60326),record:f("record",60327),debugAltSmall:f("debug-alt-small",60328),vmConnect:f("vm-connect",60329),cloud:f("cloud",60330),merge:f("merge",60331),exportIcon:f("export",60332),graphLeft:f("graph-left",60333),magnet:f("magnet",60334),notebook:f("notebook",60335),redo:f("redo",60336),checkAll:f("check-all",60337),pinnedDirty:f("pinned-dirty",60338),passFilled:f("pass-filled",60339),circleLargeFilled:f("circle-large-filled",60340),circleLarge:f("circle-large",60341),circleLargeOutline:f("circle-large-outline",60341),combine:f("combine",60342),gather:f("gather",60342),table:f("table",60343),variableGroup:f("variable-group",60344),typeHierarchy:f("type-hierarchy",60345),typeHierarchySub:f("type-hierarchy-sub",60346),typeHierarchySuper:f("type-hierarchy-super",60347),gitPullRequestCreate:f("git-pull-request-create",60348),runAbove:f("run-above",60349),runBelow:f("run-below",60350),notebookTemplate:f("notebook-template",60351),debugRerun:f("debug-rerun",60352),workspaceTrusted:f("workspace-trusted",60353),workspaceUntrusted:f("workspace-untrusted",60354),workspaceUnspecified:f("workspace-unspecified",60355),terminalCmd:f("terminal-cmd",60356),terminalDebian:f("terminal-debian",60357),terminalLinux:f("terminal-linux",60358),terminalPowershell:f("terminal-powershell",60359),terminalTmux:f("terminal-tmux",60360),terminalUbuntu:f("terminal-ubuntu",60361),terminalBash:f("terminal-bash",60362),arrowSwap:f("arrow-swap",60363),copy:f("copy",60364),personAdd:f("person-add",60365),filterFilled:f("filter-filled",60366),wand:f("wand",60367),debugLineByLine:f("debug-line-by-line",60368),inspect:f("inspect",60369),layers:f("layers",60370),layersDot:f("layers-dot",60371),layersActive:f("layers-active",60372),compass:f("compass",60373),compassDot:f("compass-dot",60374),compassActive:f("compass-active",60375),azure:f("azure",60376),issueDraft:f("issue-draft",60377),gitPullRequestClosed:f("git-pull-request-closed",60378),gitPullRequestDraft:f("git-pull-request-draft",60379),debugAll:f("debug-all",60380),debugCoverage:f("debug-coverage",60381),runErrors:f("run-errors",60382),folderLibrary:f("folder-library",60383),debugContinueSmall:f("debug-continue-small",60384),beakerStop:f("beaker-stop",60385),graphLine:f("graph-line",60386),graphScatter:f("graph-scatter",60387),pieChart:f("pie-chart",60388),bracketDot:f("bracket-dot",60389),bracketError:f("bracket-error",60390),lockSmall:f("lock-small",60391),azureDevops:f("azure-devops",60392),verifiedFilled:f("verified-filled",60393),newLine:f("newline",60394),layout:f("layout",60395),layoutActivitybarLeft:f("layout-activitybar-left",60396),layoutActivitybarRight:f("layout-activitybar-right",60397),layoutPanelLeft:f("layout-panel-left",60398),layoutPanelCenter:f("layout-panel-center",60399),layoutPanelJustify:f("layout-panel-justify",60400),layoutPanelRight:f("layout-panel-right",60401),layoutPanel:f("layout-panel",60402),layoutSidebarLeft:f("layout-sidebar-left",60403),layoutSidebarRight:f("layout-sidebar-right",60404),layoutStatusbar:f("layout-statusbar",60405),layoutMenubar:f("layout-menubar",60406),layoutCentered:f("layout-centered",60407),layoutSidebarRightOff:f("layout-sidebar-right-off",60416),layoutPanelOff:f("layout-panel-off",60417),layoutSidebarLeftOff:f("layout-sidebar-left-off",60418),target:f("target",60408),indent:f("indent",60409),recordSmall:f("record-small",60410),errorSmall:f("error-small",60411),arrowCircleDown:f("arrow-circle-down",60412),arrowCircleLeft:f("arrow-circle-left",60413),arrowCircleRight:f("arrow-circle-right",60414),arrowCircleUp:f("arrow-circle-up",60415),heartFilled:f("heart-filled",60420),map:f("map",60421),mapFilled:f("map-filled",60422),circleSmall:f("circle-small",60423),bellSlash:f("bell-slash",60424),bellSlashDot:f("bell-slash-dot",60425),commentUnresolved:f("comment-unresolved",60426),gitPullRequestGoToChanges:f("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:f("git-pull-request-new-changes",60428),searchFuzzy:f("search-fuzzy",60429),commentDraft:f("comment-draft",60430),send:f("send",60431),sparkle:f("sparkle",60432),insert:f("insert",60433),mic:f("mic",60434),thumbsDownFilled:f("thumbsdown-filled",60435),thumbsUpFilled:f("thumbsup-filled",60436),coffee:f("coffee",60437),snake:f("snake",60438),game:f("game",60439),vr:f("vr",60440),chip:f("chip",60441),piano:f("piano",60442),music:f("music",60443),micFilled:f("mic-filled",60444),gitFetch:f("git-fetch",60445),copilot:f("copilot",60446),lightbulbSparkle:f("lightbulb-sparkle",60447),lightbulbSparkleAutofix:f("lightbulb-sparkle-autofix",60447),robot:f("robot",60448),sparkleFilled:f("sparkle-filled",60449),diffSingle:f("diff-single",60450),diffMultiple:f("diff-multiple",60451),dialogError:f("dialog-error","error"),dialogWarning:f("dialog-warning","warning"),dialogInfo:f("dialog-info","info"),dialogClose:f("dialog-close","close"),treeItemExpanded:f("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:f("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:f("tree-filter-on-type-off","list-selection"),treeFilterClear:f("tree-filter-clear","close"),treeItemLoading:f("tree-item-loading","loading"),menuSelection:f("menu-selection","check"),menuSubmenu:f("menu-submenu","chevron-right"),menuBarMore:f("menubar-more","more"),scrollbarButtonLeft:f("scrollbar-button-left","triangle-left"),scrollbarButtonRight:f("scrollbar-button-right","triangle-right"),scrollbarButtonUp:f("scrollbar-button-up","triangle-up"),scrollbarButtonDown:f("scrollbar-button-down","triangle-down"),toolBarMore:f("toolbar-more","more"),quickInputBack:f("quick-input-back","arrow-left")};var mn=class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new Ce,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(t){this._onDidChange.fire({changedLanguages:t,changedColorMap:!1})}register(t,r){return this._tokenizationSupports.set(t,r),this.handleChange([t]),bt(()=>{this._tokenizationSupports.get(t)===r&&(this._tokenizationSupports.delete(t),this.handleChange([t]))})}get(t){return this._tokenizationSupports.get(t)||null}registerFactory(t,r){var o;(o=this._factories.get(t))===null||o===void 0||o.dispose();let s=new Oi(this,t,r);return this._factories.set(t,s),bt(()=>{let a=this._factories.get(t);!a||a!==s||(this._factories.delete(t),a.dispose())})}async getOrCreate(t){let r=this.get(t);if(r)return r;let o=this._factories.get(t);return!o||o.isResolved?null:(await o.resolve(),this.get(t))}isResolved(t){if(this.get(t))return!0;let o=this._factories.get(t);return!!(!o||o.isResolved)}setColorMap(t){this._colorMap=t,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}},Oi=class extends Fe{get isResolved(){return this._isResolved}constructor(t,r,o){super(),this._registry=t,this._languageId=r,this._factory=o,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){let t=await this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))}};var wn=class{constructor(t,r,o){this.offset=t,this.type=r,this.language=o,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};var ca;(function(e){let t=new Map;t.set(0,j.symbolMethod),t.set(1,j.symbolFunction),t.set(2,j.symbolConstructor),t.set(3,j.symbolField),t.set(4,j.symbolVariable),t.set(5,j.symbolClass),t.set(6,j.symbolStruct),t.set(7,j.symbolInterface),t.set(8,j.symbolModule),t.set(9,j.symbolProperty),t.set(10,j.symbolEvent),t.set(11,j.symbolOperator),t.set(12,j.symbolUnit),t.set(13,j.symbolValue),t.set(15,j.symbolEnum),t.set(14,j.symbolConstant),t.set(15,j.symbolEnum),t.set(16,j.symbolEnumMember),t.set(17,j.symbolKeyword),t.set(27,j.symbolSnippet),t.set(18,j.symbolText),t.set(19,j.symbolColor),t.set(20,j.symbolFile),t.set(21,j.symbolReference),t.set(22,j.symbolCustomColor),t.set(23,j.symbolFolder),t.set(24,j.symbolTypeParameter),t.set(25,j.account),t.set(26,j.issues);function r(a){let n=t.get(a);return n||(console.info("No codicon found for CompletionItemKind "+a),n=j.symbolProperty),n}e.toIcon=r;let o=new Map;o.set("method",0),o.set("function",1),o.set("constructor",2),o.set("field",3),o.set("variable",4),o.set("class",5),o.set("struct",6),o.set("interface",7),o.set("module",8),o.set("property",9),o.set("event",10),o.set("operator",11),o.set("unit",12),o.set("value",13),o.set("constant",14),o.set("enum",15),o.set("enum-member",16),o.set("enumMember",16),o.set("keyword",17),o.set("snippet",27),o.set("text",18),o.set("color",19),o.set("file",20),o.set("reference",21),o.set("customcolor",22),o.set("folder",23),o.set("type-parameter",24),o.set("typeParameter",24),o.set("account",25),o.set("issue",26);function s(a,n){let l=o.get(a);return typeof l>"u"&&!n&&(l=9),l}e.fromString=s})(ca||(ca={}));var la;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(la||(la={}));var fa;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(fa||(fa={}));var da;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(da||(da={}));var fh={17:se("Array","array"),16:se("Boolean","boolean"),4:se("Class","class"),13:se("Constant","constant"),8:se("Constructor","constructor"),9:se("Enum","enumeration"),21:se("EnumMember","enumeration member"),23:se("Event","event"),7:se("Field","field"),0:se("File","file"),11:se("Function","function"),10:se("Interface","interface"),19:se("Key","key"),5:se("Method","method"),1:se("Module","module"),2:se("Namespace","namespace"),20:se("Null","null"),15:se("Number","number"),18:se("Object","object"),24:se("Operator","operator"),3:se("Package","package"),6:se("Property","property"),14:se("String","string"),22:se("Struct","struct"),25:se("TypeParameter","type parameter"),12:se("Variable","variable")};var pa;(function(e){let t=new Map;t.set(0,j.symbolFile),t.set(1,j.symbolModule),t.set(2,j.symbolNamespace),t.set(3,j.symbolPackage),t.set(4,j.symbolClass),t.set(5,j.symbolMethod),t.set(6,j.symbolProperty),t.set(7,j.symbolField),t.set(8,j.symbolConstructor),t.set(9,j.symbolEnum),t.set(10,j.symbolInterface),t.set(11,j.symbolFunction),t.set(12,j.symbolVariable),t.set(13,j.symbolConstant),t.set(14,j.symbolString),t.set(15,j.symbolNumber),t.set(16,j.symbolBoolean),t.set(17,j.symbolArray),t.set(18,j.symbolObject),t.set(19,j.symbolKey),t.set(20,j.symbolNull),t.set(21,j.symbolEnumMember),t.set(22,j.symbolStruct),t.set(23,j.symbolEvent),t.set(24,j.symbolOperator),t.set(25,j.symbolTypeParameter);function r(o){let s=t.get(o);return s||(console.info("No codicon found for SymbolKind "+o),s=j.symbolProperty),s}e.toIcon=r})(pa||(pa={}));var dt=class e{static fromValue(t){switch(t){case"comment":return e.Comment;case"imports":return e.Imports;case"region":return e.Region}return new e(t)}constructor(t){this.value=t}};dt.Comment=new dt("comment");dt.Imports=new dt("imports");dt.Region=new dt("region");var ma;(function(e){function t(r){return!r||typeof r!="object"?!1:typeof r.id=="string"&&typeof r.title=="string"}e.is=t})(ma||(ma={}));var wa;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(wa||(wa={}));var dh=new mn;var ga;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(ga||(ga={}));var ha;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(ha||(ha={}));var ya;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(ya||(ya={}));var ba;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(ba||(ba={}));var Sa;(function(e){e[e.Deprecated=1]="Deprecated"})(Sa||(Sa={}));var xa;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(xa||(xa={}));var va;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(va||(va={}));var Ca;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(Ca||(Ca={}));var La;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(La||(La={}));var _a;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(_a||(_a={}));var Ma;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(Ma||(Ma={}));var Ra;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.letterSpacing=63]="letterSpacing",e[e.lightbulb=64]="lightbulb",e[e.lineDecorationsWidth=65]="lineDecorationsWidth",e[e.lineHeight=66]="lineHeight",e[e.lineNumbers=67]="lineNumbers",e[e.lineNumbersMinChars=68]="lineNumbersMinChars",e[e.linkedEditing=69]="linkedEditing",e[e.links=70]="links",e[e.matchBrackets=71]="matchBrackets",e[e.minimap=72]="minimap",e[e.mouseStyle=73]="mouseStyle",e[e.mouseWheelScrollSensitivity=74]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=75]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=76]="multiCursorMergeOverlapping",e[e.multiCursorModifier=77]="multiCursorModifier",e[e.multiCursorPaste=78]="multiCursorPaste",e[e.multiCursorLimit=79]="multiCursorLimit",e[e.occurrencesHighlight=80]="occurrencesHighlight",e[e.overviewRulerBorder=81]="overviewRulerBorder",e[e.overviewRulerLanes=82]="overviewRulerLanes",e[e.padding=83]="padding",e[e.pasteAs=84]="pasteAs",e[e.parameterHints=85]="parameterHints",e[e.peekWidgetDefaultFocus=86]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=87]="definitionLinkOpensInPeek",e[e.quickSuggestions=88]="quickSuggestions",e[e.quickSuggestionsDelay=89]="quickSuggestionsDelay",e[e.readOnly=90]="readOnly",e[e.readOnlyMessage=91]="readOnlyMessage",e[e.renameOnType=92]="renameOnType",e[e.renderControlCharacters=93]="renderControlCharacters",e[e.renderFinalNewline=94]="renderFinalNewline",e[e.renderLineHighlight=95]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=96]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=97]="renderValidationDecorations",e[e.renderWhitespace=98]="renderWhitespace",e[e.revealHorizontalRightPadding=99]="revealHorizontalRightPadding",e[e.roundedSelection=100]="roundedSelection",e[e.rulers=101]="rulers",e[e.scrollbar=102]="scrollbar",e[e.scrollBeyondLastColumn=103]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=104]="scrollBeyondLastLine",e[e.scrollPredominantAxis=105]="scrollPredominantAxis",e[e.selectionClipboard=106]="selectionClipboard",e[e.selectionHighlight=107]="selectionHighlight",e[e.selectOnLineNumbers=108]="selectOnLineNumbers",e[e.showFoldingControls=109]="showFoldingControls",e[e.showUnused=110]="showUnused",e[e.snippetSuggestions=111]="snippetSuggestions",e[e.smartSelect=112]="smartSelect",e[e.smoothScrolling=113]="smoothScrolling",e[e.stickyScroll=114]="stickyScroll",e[e.stickyTabStops=115]="stickyTabStops",e[e.stopRenderingLineAfter=116]="stopRenderingLineAfter",e[e.suggest=117]="suggest",e[e.suggestFontSize=118]="suggestFontSize",e[e.suggestLineHeight=119]="suggestLineHeight",e[e.suggestOnTriggerCharacters=120]="suggestOnTriggerCharacters",e[e.suggestSelection=121]="suggestSelection",e[e.tabCompletion=122]="tabCompletion",e[e.tabIndex=123]="tabIndex",e[e.unicodeHighlighting=124]="unicodeHighlighting",e[e.unusualLineTerminators=125]="unusualLineTerminators",e[e.useShadowDOM=126]="useShadowDOM",e[e.useTabStops=127]="useTabStops",e[e.wordBreak=128]="wordBreak",e[e.wordSeparators=129]="wordSeparators",e[e.wordWrap=130]="wordWrap",e[e.wordWrapBreakAfterCharacters=131]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=132]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=133]="wordWrapColumn",e[e.wordWrapOverride1=134]="wordWrapOverride1",e[e.wordWrapOverride2=135]="wordWrapOverride2",e[e.wrappingIndent=136]="wrappingIndent",e[e.wrappingStrategy=137]="wrappingStrategy",e[e.showDeprecated=138]="showDeprecated",e[e.inlayHints=139]="inlayHints",e[e.editorClassName=140]="editorClassName",e[e.pixelRatio=141]="pixelRatio",e[e.tabFocusMode=142]="tabFocusMode",e[e.layoutInfo=143]="layoutInfo",e[e.wrappingInfo=144]="wrappingInfo",e[e.defaultColorDecorators=145]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=146]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=147]="inlineCompletionsAccessibilityVerbose"})(Ra||(Ra={}));var Ea;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(Ea||(Ea={}));var $a;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})($a||($a={}));var Aa;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(Aa||(Aa={}));var Ia;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(Ia||(Ia={}));var Na;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(Na||(Na={}));var Pa;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(Pa||(Pa={}));var Fa;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(Fa||(Fa={}));var gn;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(gn||(gn={}));var hn;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(hn||(hn={}));var yn;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(yn||(yn={}));var Va;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(Va||(Va={}));var Ta;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(Ta||(Ta={}));var Da;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(Da||(Da={}));var ka;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(ka||(ka={}));var Wa;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(Wa||(Wa={}));var Ba;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(Ba||(Ba={}));var Oa;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(Oa||(Oa={}));var Ua;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(Ua||(Ua={}));var Ga;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(Ga||(Ga={}));var bn;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(bn||(bn={}));var qa;(function(e){e.Off="off",e.OnCode="onCode",e.On="on"})(qa||(qa={}));var Ha;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(Ha||(Ha={}));var za;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(za||(za={}));var ja;(function(e){e[e.Deprecated=1]="Deprecated"})(ja||(ja={}));var Qa;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(Qa||(Qa={}));var Ka;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(Ka||(Ka={}));var Xa;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(Xa||(Xa={}));var Za;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(Za||(Za={}));var Ct=class{static chord(t,r){return aa(t,r)}};Ct.CtrlCmd=2048;Ct.Shift=1024;Ct.Alt=512;Ct.WinCtrl=256;function Ya(){return{editor:void 0,languages:void 0,CancellationTokenSource:fn,Emitter:Ce,KeyCode:gn,KeyMod:Ct,Position:ge,Range:ie,Selection:pn,SelectionDirection:bn,MarkerSeverity:hn,MarkerTag:yn,Uri:ft,Token:wn}}var Ui=class extends kt{constructor(t){super(0);for(let r=0,o=t.length;r<o;r++)this.set(t.charCodeAt(r),2);this.set(32,1),this.set(9,1)}};function Fw(e){let t={};return r=>(t.hasOwnProperty(r)||(t[r]=e(r)),t[r])}var Vw=Fw(e=>new Ui(e));var Ja;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(Ja||(Ja={}));var eu;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(eu||(eu={}));var tu;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(tu||(tu={}));var ru;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(ru||(ru={}));function Tw(e,t,r,o,s){if(o===0)return!0;let a=t.charCodeAt(o-1);if(e.get(a)!==0||a===13||a===10)return!0;if(s>0){let n=t.charCodeAt(o);if(e.get(n)!==0)return!0}return!1}function Dw(e,t,r,o,s){if(o+s===r)return!0;let a=t.charCodeAt(o+s);if(e.get(a)!==0||a===13||a===10)return!0;if(s>0){let n=t.charCodeAt(o+s-1);if(e.get(n)!==0)return!0}return!1}function kw(e,t,r,o,s){return Tw(e,t,r,o,s)&&Dw(e,t,r,o,s)}var Sn=class{constructor(t,r){this._wordSeparators=t,this._searchRegex=r,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(t){this._searchRegex.lastIndex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(t){let r=t.length,o;do{if(this._prevMatchStartIndex+this._prevMatchLength===r||(o=this._searchRegex.exec(t),!o))return null;let s=o.index,a=o[0].length;if(s===this._prevMatchStartIndex&&a===this._prevMatchLength){if(a===0){Fo(t,r,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=s,this._prevMatchLength=a,!this._wordSeparators||kw(this._wordSeparators,t,r,s,a))return o}while(o);return null}};function nu(e,t="Unreachable"){throw new Error(t)}function Ot(e){if(!e()){debugger;e(),Hr(new Ne("Assertion Failed"))}}function xn(e,t){let r=0;for(;r<e.length-1;){let o=e[r],s=e[r+1];if(!t(o,s))return!1;r++}return!0}var vn=class{static computeUnicodeHighlights(t,r,o){let s=o?o.startLineNumber:1,a=o?o.endLineNumber:t.getLineCount(),n=new Cn(r),l=n.getCandidateCodePoints(),p;l==="allNonBasicAscii"?p=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):p=new RegExp(`${Ww(Array.from(l))}`,"g");let m=new Sn(null,p),h=[],g=!1,y,b=0,S=0,x=0;e:for(let I=s,V=a;I<=V;I++){let E=t.getLineContent(I),$=E.length;m.reset(0);do if(y=m.next(E),y){let P=y.index,T=y.index+y[0].length;if(P>0){let re=E.charCodeAt(P-1);Tt(re)&&P--}if(T+1<$){let re=E.charCodeAt(T-1);Tt(re)&&T++}let G=E.substring(P,T),q=hr(P+1,Ni,E,0);q&&q.endColumn<=P+1&&(q=null);let H=n.shouldHighlightNonBasicASCII(G,q?q.word:null);if(H!==0){if(H===3?b++:H===2?S++:H===1?x++:nu(H),h.length>=1e3){g=!0;break e}h.push(new ie(I,P+1,I,T+1))}}while(y)}return{ranges:h,hasMore:g,ambiguousCharacterCount:b,invisibleCharacterCount:S,nonBasicAsciiCharacterCount:x}}static computeUnicodeHighlightReason(t,r){let o=new Cn(r);switch(o.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{let a=t.codePointAt(0),n=o.ambiguousCharacters.getPrimaryConfusable(a),l=qe.getLocales().filter(p=>!qe.getInstance(new Set([...r.allowedLocales,p])).isAmbiguous(a));return{kind:0,confusableWith:String.fromCodePoint(n),notAmbiguousInLocales:l}}case 1:return{kind:2}}}};function Ww(e,t){return`[${Ao(e.map(o=>String.fromCodePoint(o)).join(""))}]`}var Cn=class{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=qe.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";let t=new Set;if(this.options.invisibleCharacters)for(let r of xt.codePoints)iu(String.fromCodePoint(r))||t.add(r);if(this.options.ambiguousCharacters)for(let r of this.ambiguousCharacters.getConfusableCodePoints())t.add(r);for(let r of this.allowedCodePoints)t.delete(r);return t}shouldHighlightNonBasicASCII(t,r){let o=t.codePointAt(0);if(this.allowedCodePoints.has(o))return 0;if(this.options.nonBasicASCII)return 1;let s=!1,a=!1;if(r)for(let n of r){let l=n.codePointAt(0),p=Vo(n);s=s||p,!p&&!this.ambiguousCharacters.isAmbiguous(l)&&!xt.isInvisibleCharacter(l)&&(a=!0)}return!s&&a?0:this.options.invisibleCharacters&&!iu(t)&&xt.isInvisibleCharacter(o)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(o)?3:0}};function iu(e){return e===" "||e===`
|
|
8
|
-
`||e===" "}var pt=class{constructor(t,r,o){this.changes=t,this.moves=r,this.hitTimeout=o}},Ln=class{constructor(t,r){this.lineRangeMapping=t,this.changes=r}};var Y=class e{static addRange(t,r){let o=0;for(;o<r.length&&r[o].endExclusive<t.start;)o++;let s=o;for(;s<r.length&&r[s].start<=t.endExclusive;)s++;if(o===s)r.splice(o,0,t);else{let a=Math.min(t.start,r[o].start),n=Math.max(t.endExclusive,r[s-1].endExclusive);r.splice(o,s-o,new e(a,n))}}static tryCreate(t,r){if(!(t>r))return new e(t,r)}static ofLength(t){return new e(0,t)}static ofStartAndLength(t,r){return new e(t,t+r)}constructor(t,r){if(this.start=t,this.endExclusive=r,t>r)throw new Ne(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new e(this.start+t,this.endExclusive+t)}deltaStart(t){return new e(this.start+t,this.endExclusive)}deltaEnd(t){return new e(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(t){return this.start===t.start&&this.endExclusive===t.endExclusive}containsRange(t){return this.start<=t.start&&t.endExclusive<=this.endExclusive}contains(t){return this.start<=t&&t<this.endExclusive}join(t){return new e(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){let r=Math.max(this.start,t.start),o=Math.min(this.endExclusive,t.endExclusive);if(r<=o)return new e(r,o)}isBefore(t){return this.endExclusive<=t.start}isAfter(t){return this.start>=t.endExclusive}slice(t){return t.slice(this.start,this.endExclusive)}clip(t){if(this.isEmpty)throw new Ne(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,t))}clipCyclic(t){if(this.isEmpty)throw new Ne(`Invalid clipping range: ${this.toString()}`);return t<this.start?this.endExclusive-(this.start-t)%this.length:t>=this.endExclusive?this.start+(t-this.start)%this.length:t}forEach(t){for(let r=this.start;r<this.endExclusive;r++)t(r)}};function Je(e,t){let r=Lt(e,t);return r===-1?void 0:e[r]}function Lt(e,t,r=0,o=e.length){let s=r,a=o;for(;s<a;){let n=Math.floor((s+a)/2);t(e[n])?s=n+1:a=n}return s-1}function su(e,t){let r=_n(e,t);return r===e.length?void 0:e[r]}function _n(e,t,r=0,o=e.length){let s=r,a=o;for(;s<a;){let n=Math.floor((s+a)/2);t(e[n])?a=n:s=n+1}return s}var Ut=class e{constructor(t){this._array=t,this._findLastMonotonousLastIdx=0}findLastMonotonous(t){if(e.assertInvariants){if(this._prevFindLastPredicate){for(let o of this._array)if(this._prevFindLastPredicate(o)&&!t(o))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=t}let r=Lt(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=r+1,r===-1?void 0:this._array[r]}};Ut.assertInvariants=!1;var ne=class e{static fromRange(t){return new e(t.startLineNumber,t.endLineNumber)}static fromRangeInclusive(t){return new e(t.startLineNumber,t.endLineNumber+1)}static joinMany(t){if(t.length===0)return[];let r=new _t(t[0].slice());for(let o=1;o<t.length;o++)r=r.getUnion(new _t(t[o].slice()));return r.ranges}static ofLength(t,r){return new e(t,t+r)}static deserialize(t){return new e(t[0],t[1])}constructor(t,r){if(t>r)throw new Ne(`startLineNumber ${t} cannot be after endLineNumberExclusive ${r}`);this.startLineNumber=t,this.endLineNumberExclusive=r}contains(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(t){return new e(this.startLineNumber+t,this.endLineNumberExclusive+t)}deltaLength(t){return new e(this.startLineNumber,this.endLineNumberExclusive+t)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(t){return new e(Math.min(this.startLineNumber,t.startLineNumber),Math.max(this.endLineNumberExclusive,t.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(t){let r=Math.max(this.startLineNumber,t.startLineNumber),o=Math.min(this.endLineNumberExclusive,t.endLineNumberExclusive);if(r<=o)return new e(r,o)}intersectsStrict(t){return this.startLineNumber<t.endLineNumberExclusive&&t.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(t){return this.startLineNumber<=t.endLineNumberExclusive&&t.startLineNumber<=this.endLineNumberExclusive}equals(t){return this.startLineNumber===t.startLineNumber&&this.endLineNumberExclusive===t.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new ie(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new ie(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(t){let r=[];for(let o=this.startLineNumber;o<this.endLineNumberExclusive;o++)r.push(t(o));return r}forEach(t){for(let r=this.startLineNumber;r<this.endLineNumberExclusive;r++)t(r)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}toOffsetRange(){return new Y(this.startLineNumber-1,this.endLineNumberExclusive-1)}},_t=class e{constructor(t=[]){this._normalizedRanges=t}get ranges(){return this._normalizedRanges}addRange(t){if(t.length===0)return;let r=_n(this._normalizedRanges,s=>s.endLineNumberExclusive>=t.startLineNumber),o=Lt(this._normalizedRanges,s=>s.startLineNumber<=t.endLineNumberExclusive)+1;if(r===o)this._normalizedRanges.splice(r,0,t);else if(r===o-1){let s=this._normalizedRanges[r];this._normalizedRanges[r]=s.join(t)}else{let s=this._normalizedRanges[r].join(this._normalizedRanges[o-1]).join(t);this._normalizedRanges.splice(r,o-r,s)}}contains(t){let r=Je(this._normalizedRanges,o=>o.startLineNumber<=t);return!!r&&r.endLineNumberExclusive>t}intersects(t){let r=Je(this._normalizedRanges,o=>o.startLineNumber<t.endLineNumberExclusive);return!!r&&r.endLineNumberExclusive>t.startLineNumber}getUnion(t){if(this._normalizedRanges.length===0)return t;if(t._normalizedRanges.length===0)return this;let r=[],o=0,s=0,a=null;for(;o<this._normalizedRanges.length||s<t._normalizedRanges.length;){let n=null;if(o<this._normalizedRanges.length&&s<t._normalizedRanges.length){let l=this._normalizedRanges[o],p=t._normalizedRanges[s];l.startLineNumber<p.startLineNumber?(n=l,o++):(n=p,s++)}else o<this._normalizedRanges.length?(n=this._normalizedRanges[o],o++):(n=t._normalizedRanges[s],s++);a===null?a=n:a.endLineNumberExclusive>=n.startLineNumber?a=new ne(a.startLineNumber,Math.max(a.endLineNumberExclusive,n.endLineNumberExclusive)):(r.push(a),a=n)}return a!==null&&r.push(a),new e(r)}subtractFrom(t){let r=_n(this._normalizedRanges,n=>n.endLineNumberExclusive>=t.startLineNumber),o=Lt(this._normalizedRanges,n=>n.startLineNumber<=t.endLineNumberExclusive)+1;if(r===o)return new e([t]);let s=[],a=t.startLineNumber;for(let n=r;n<o;n++){let l=this._normalizedRanges[n];l.startLineNumber>a&&s.push(new ne(a,l.startLineNumber)),a=l.endLineNumberExclusive}return a<t.endLineNumberExclusive&&s.push(new ne(a,t.endLineNumberExclusive)),new e(s)}toString(){return this._normalizedRanges.map(t=>t.toString()).join(", ")}getIntersection(t){let r=[],o=0,s=0;for(;o<this._normalizedRanges.length&&s<t._normalizedRanges.length;){let a=this._normalizedRanges[o],n=t._normalizedRanges[s],l=a.intersect(n);l&&!l.isEmpty&&r.push(l),a.endLineNumberExclusive<n.endLineNumberExclusive?o++:s++}return new e(r)}getWithDelta(t){return new e(this._normalizedRanges.map(r=>r.delta(t)))}};var mt=class e{static inverse(t,r,o){let s=[],a=1,n=1;for(let p of t){let m=new We(new ne(a,p.original.startLineNumber),new ne(n,p.modified.startLineNumber),void 0);m.modified.isEmpty||s.push(m),a=p.original.endLineNumberExclusive,n=p.modified.endLineNumberExclusive}let l=new We(new ne(a,r+1),new ne(n,o+1),void 0);return l.modified.isEmpty||s.push(l),s}constructor(t,r){this.original=t,this.modified=r}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new e(this.modified,this.original)}join(t){return new e(this.original.join(t.original),this.modified.join(t.modified))}},We=class e extends mt{constructor(t,r,o){super(t,r),this.innerChanges=o}flip(){var t;return new e(this.modified,this.original,(t=this.innerChanges)===null||t===void 0?void 0:t.map(r=>r.flip()))}},Mt=class e{constructor(t,r){this.originalRange=t,this.modifiedRange=r}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new e(this.modifiedRange,this.originalRange)}};var Bw=3,Mn=class{computeDiff(t,r,o){var s;let n=new qi(t,r,{maxComputationTime:o.maxComputationTimeMs,shouldIgnoreTrimWhitespace:o.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),l=[],p=null;for(let m of n.changes){let h;m.originalEndLineNumber===0?h=new ne(m.originalStartLineNumber+1,m.originalStartLineNumber+1):h=new ne(m.originalStartLineNumber,m.originalEndLineNumber+1);let g;m.modifiedEndLineNumber===0?g=new ne(m.modifiedStartLineNumber+1,m.modifiedStartLineNumber+1):g=new ne(m.modifiedStartLineNumber,m.modifiedEndLineNumber+1);let y=new We(h,g,(s=m.charChanges)===null||s===void 0?void 0:s.map(b=>new Mt(new ie(b.originalStartLineNumber,b.originalStartColumn,b.originalEndLineNumber,b.originalEndColumn),new ie(b.modifiedStartLineNumber,b.modifiedStartColumn,b.modifiedEndLineNumber,b.modifiedEndColumn))));p&&(p.modified.endLineNumberExclusive===y.modified.startLineNumber||p.original.endLineNumberExclusive===y.original.startLineNumber)&&(y=new We(p.original.join(y.original),p.modified.join(y.modified),p.innerChanges&&y.innerChanges?p.innerChanges.concat(y.innerChanges):void 0),l.pop()),l.push(y),p=y}return Ot(()=>xn(l,(m,h)=>h.original.startLineNumber-m.original.endLineNumberExclusive===h.modified.startLineNumber-m.modified.endLineNumberExclusive&&m.original.endLineNumberExclusive<h.original.startLineNumber&&m.modified.endLineNumberExclusive<h.modified.startLineNumber)),new pt(l,[],n.quitEarly)}};function au(e,t,r,o){return new pr(e,t,r).ComputeDiff(o)}var Rn=class{constructor(t){let r=[],o=[];for(let s=0,a=t.length;s<a;s++)r[s]=Hi(t[s],1),o[s]=zi(t[s],1);this.lines=t,this._startColumns=r,this._endColumns=o}getElements(){let t=[];for(let r=0,o=this.lines.length;r<o;r++)t[r]=this.lines[r].substring(this._startColumns[r]-1,this._endColumns[r]-1);return t}getStrictElement(t){return this.lines[t]}getStartLineNumber(t){return t+1}getEndLineNumber(t){return t+1}createCharSequence(t,r,o){let s=[],a=[],n=[],l=0;for(let p=r;p<=o;p++){let m=this.lines[p],h=t?this._startColumns[p]:1,g=t?this._endColumns[p]:m.length+1;for(let y=h;y<g;y++)s[l]=m.charCodeAt(y-1),a[l]=p+1,n[l]=y,l++;!t&&p<o&&(s[l]=10,a[l]=p+1,n[l]=m.length+1,l++)}return new Gi(s,a,n)}},Gi=class{constructor(t,r,o){this._charCodes=t,this._lineNumbers=r,this._columns=o}toString(){return"["+this._charCodes.map((t,r)=>(t===10?"\\n":String.fromCharCode(t))+`-(${this._lineNumbers[r]},${this._columns[r]})`).join(", ")+"]"}_assertIndex(t,r){if(t<0||t>=r.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(t){return t>0&&t===this._lineNumbers.length?this.getEndLineNumber(t-1):(this._assertIndex(t,this._lineNumbers),this._lineNumbers[t])}getEndLineNumber(t){return t===-1?this.getStartLineNumber(t+1):(this._assertIndex(t,this._lineNumbers),this._charCodes[t]===10?this._lineNumbers[t]+1:this._lineNumbers[t])}getStartColumn(t){return t>0&&t===this._columns.length?this.getEndColumn(t-1):(this._assertIndex(t,this._columns),this._columns[t])}getEndColumn(t){return t===-1?this.getStartColumn(t+1):(this._assertIndex(t,this._columns),this._charCodes[t]===10?1:this._columns[t]+1)}},Gt=class e{constructor(t,r,o,s,a,n,l,p){this.originalStartLineNumber=t,this.originalStartColumn=r,this.originalEndLineNumber=o,this.originalEndColumn=s,this.modifiedStartLineNumber=a,this.modifiedStartColumn=n,this.modifiedEndLineNumber=l,this.modifiedEndColumn=p}static createFromDiffChange(t,r,o){let s=r.getStartLineNumber(t.originalStart),a=r.getStartColumn(t.originalStart),n=r.getEndLineNumber(t.originalStart+t.originalLength-1),l=r.getEndColumn(t.originalStart+t.originalLength-1),p=o.getStartLineNumber(t.modifiedStart),m=o.getStartColumn(t.modifiedStart),h=o.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),g=o.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new e(s,a,n,l,p,m,h,g)}};function Ow(e){if(e.length<=1)return e;let t=[e[0]],r=t[0];for(let o=1,s=e.length;o<s;o++){let a=e[o],n=a.originalStart-(r.originalStart+r.originalLength),l=a.modifiedStart-(r.modifiedStart+r.modifiedLength);Math.min(n,l)<Bw?(r.originalLength=a.originalStart+a.originalLength-r.originalStart,r.modifiedLength=a.modifiedStart+a.modifiedLength-r.modifiedStart):(t.push(a),r=a)}return t}var Sr=class e{constructor(t,r,o,s,a){this.originalStartLineNumber=t,this.originalEndLineNumber=r,this.modifiedStartLineNumber=o,this.modifiedEndLineNumber=s,this.charChanges=a}static createFromDiffResult(t,r,o,s,a,n,l){let p,m,h,g,y;if(r.originalLength===0?(p=o.getStartLineNumber(r.originalStart)-1,m=0):(p=o.getStartLineNumber(r.originalStart),m=o.getEndLineNumber(r.originalStart+r.originalLength-1)),r.modifiedLength===0?(h=s.getStartLineNumber(r.modifiedStart)-1,g=0):(h=s.getStartLineNumber(r.modifiedStart),g=s.getEndLineNumber(r.modifiedStart+r.modifiedLength-1)),n&&r.originalLength>0&&r.originalLength<20&&r.modifiedLength>0&&r.modifiedLength<20&&a()){let b=o.createCharSequence(t,r.originalStart,r.originalStart+r.originalLength-1),S=s.createCharSequence(t,r.modifiedStart,r.modifiedStart+r.modifiedLength-1);if(b.getElements().length>0&&S.getElements().length>0){let x=au(b,S,a,!0).changes;l&&(x=Ow(x)),y=[];for(let I=0,V=x.length;I<V;I++)y.push(Gt.createFromDiffChange(x[I],b,S))}}return new e(p,m,h,g,y)}},qi=class{constructor(t,r,o){this.shouldComputeCharChanges=o.shouldComputeCharChanges,this.shouldPostProcessCharChanges=o.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=o.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=o.shouldMakePrettyDiff,this.originalLines=t,this.modifiedLines=r,this.original=new Rn(t),this.modified=new Rn(r),this.continueLineDiff=ou(o.maxComputationTime),this.continueCharDiff=ou(o.maxComputationTime===0?0:Math.min(o.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};let t=au(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),r=t.changes,o=t.quitEarly;if(this.shouldIgnoreTrimWhitespace){let l=[];for(let p=0,m=r.length;p<m;p++)l.push(Sr.createFromDiffResult(this.shouldIgnoreTrimWhitespace,r[p],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:o,changes:l}}let s=[],a=0,n=0;for(let l=-1,p=r.length;l<p;l++){let m=l+1<p?r[l+1]:null,h=m?m.originalStart:this.originalLines.length,g=m?m.modifiedStart:this.modifiedLines.length;for(;a<h&&n<g;){let y=this.originalLines[a],b=this.modifiedLines[n];if(y!==b){{let S=Hi(y,1),x=Hi(b,1);for(;S>1&&x>1;){let I=y.charCodeAt(S-2),V=b.charCodeAt(x-2);if(I!==V)break;S--,x--}(S>1||x>1)&&this._pushTrimWhitespaceCharChange(s,a+1,1,S,n+1,1,x)}{let S=zi(y,1),x=zi(b,1),I=y.length+1,V=b.length+1;for(;S<I&&x<V;){let E=y.charCodeAt(S-1),$=y.charCodeAt(x-1);if(E!==$)break;S++,x++}(S<I||x<V)&&this._pushTrimWhitespaceCharChange(s,a+1,S,I,n+1,x,V)}}a++,n++}m&&(s.push(Sr.createFromDiffResult(this.shouldIgnoreTrimWhitespace,m,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),a+=m.originalLength,n+=m.modifiedLength)}return{quitEarly:o,changes:s}}_pushTrimWhitespaceCharChange(t,r,o,s,a,n,l){if(this._mergeTrimWhitespaceCharChange(t,r,o,s,a,n,l))return;let p;this.shouldComputeCharChanges&&(p=[new Gt(r,o,r,s,a,n,a,l)]),t.push(new Sr(r,r,a,a,p))}_mergeTrimWhitespaceCharChange(t,r,o,s,a,n,l){let p=t.length;if(p===0)return!1;let m=t[p-1];return m.originalEndLineNumber===0||m.modifiedEndLineNumber===0?!1:m.originalEndLineNumber===r&&m.modifiedEndLineNumber===a?(this.shouldComputeCharChanges&&m.charChanges&&m.charChanges.push(new Gt(r,o,r,s,a,n,a,l)),!0):m.originalEndLineNumber+1===r&&m.modifiedEndLineNumber+1===a?(m.originalEndLineNumber=r,m.modifiedEndLineNumber=a,this.shouldComputeCharChanges&&m.charChanges&&m.charChanges.push(new Gt(r,o,r,s,a,n,a,l)),!0):!1}};function Hi(e,t){let r=No(e);return r===-1?t:r+1}function zi(e,t){let r=Po(e);return r===-1?t:r+2}function ou(e){if(e===0)return()=>!0;let t=Date.now();return()=>Date.now()-t<e}var He=class e{static trivial(t,r){return new e([new he(Y.ofLength(t.length),Y.ofLength(r.length))],!1)}static trivialTimedOut(t,r){return new e([new he(Y.ofLength(t.length),Y.ofLength(r.length))],!0)}constructor(t,r){this.diffs=t,this.hitTimeout=r}},he=class e{static invert(t,r){let o=[];return Yo(t,(s,a)=>{o.push(e.fromOffsetPairs(s?s.getEndExclusives():Ie.zero,a?a.getStarts():new Ie(r,(s?s.seq2Range.endExclusive-s.seq1Range.endExclusive:0)+r)))}),o}static fromOffsetPairs(t,r){return new e(new Y(t.offset1,r.offset1),new Y(t.offset2,r.offset2))}constructor(t,r){this.seq1Range=t,this.seq2Range=r}swap(){return new e(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new e(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new e(this.seq1Range.delta(t),this.seq2Range.delta(t))}deltaStart(t){return t===0?this:new e(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))}deltaEnd(t){return t===0?this:new e(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))}intersect(t){let r=this.seq1Range.intersect(t.seq1Range),o=this.seq2Range.intersect(t.seq2Range);if(!(!r||!o))return new e(r,o)}getStarts(){return new Ie(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Ie(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}},Ie=class{constructor(t,r){this.offset1=t,this.offset2=r}toString(){return`${this.offset1} <-> ${this.offset2}`}};Ie.zero=new Ie(0,0);Ie.max=new Ie(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);var ze=class{isValid(){return!0}};ze.instance=new ze;var En=class{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new Ne("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}};var qt=class{constructor(t,r){this.width=t,this.height=r,this.array=[],this.array=new Array(t*r)}get(t,r){return this.array[t+r*this.width]}set(t,r,o){this.array[t+r*this.width]=o}};function xr(e){return e===32||e===9}var Ht=class e{static getKey(t){let r=this.chrKeys.get(t);return r===void 0&&(r=this.chrKeys.size,this.chrKeys.set(t,r)),r}constructor(t,r,o){this.range=t,this.lines=r,this.source=o,this.histogram=[];let s=0;for(let a=t.startLineNumber-1;a<t.endLineNumberExclusive-1;a++){let n=r[a];for(let p=0;p<n.length;p++){s++;let m=n[p],h=e.getKey(m);this.histogram[h]=(this.histogram[h]||0)+1}s++;let l=e.getKey(`
|
|
9
|
-
`);this.histogram[l]=(this.histogram[l]||0)+1}this.totalCount=s}computeSimilarity(t){var r,o;let s=0,a=Math.max(this.histogram.length,t.histogram.length);for(let n=0;n<a;n++)s+=Math.abs(((r=this.histogram[n])!==null&&r!==void 0?r:0)-((o=t.histogram[n])!==null&&o!==void 0?o:0));return 1-s/(this.totalCount+t.totalCount)}};Ht.chrKeys=new Map;var $n=class{compute(t,r,o=ze.instance,s){if(t.length===0||r.length===0)return He.trivial(t,r);let a=new qt(t.length,r.length),n=new qt(t.length,r.length),l=new qt(t.length,r.length);for(let S=0;S<t.length;S++)for(let x=0;x<r.length;x++){if(!o.isValid())return He.trivialTimedOut(t,r);let I=S===0?0:a.get(S-1,x),V=x===0?0:a.get(S,x-1),E;t.getElement(S)===r.getElement(x)?(S===0||x===0?E=0:E=a.get(S-1,x-1),S>0&&x>0&&n.get(S-1,x-1)===3&&(E+=l.get(S-1,x-1)),E+=s?s(S,x):1):E=-1;let $=Math.max(I,V,E);if($===E){let P=S>0&&x>0?l.get(S-1,x-1):0;l.set(S,x,P+1),n.set(S,x,3)}else $===I?(l.set(S,x,0),n.set(S,x,1)):$===V&&(l.set(S,x,0),n.set(S,x,2));a.set(S,x,$)}let p=[],m=t.length,h=r.length;function g(S,x){(S+1!==m||x+1!==h)&&p.push(new he(new Y(S+1,m),new Y(x+1,h))),m=S,h=x}let y=t.length-1,b=r.length-1;for(;y>=0&&b>=0;)n.get(y,b)===3?(g(y,b),y--,b--):n.get(y,b)===1?y--:b--;return g(-1,-1),p.reverse(),new He(p,!1)}};var zt=class{compute(t,r,o=ze.instance){if(t.length===0||r.length===0)return He.trivial(t,r);let s=t,a=r;function n(x,I){for(;x<s.length&&I<a.length&&s.getElement(x)===a.getElement(I);)x++,I++;return x}let l=0,p=new ji;p.set(0,n(0,0));let m=new Qi;m.set(0,p.get(0)===0?null:new An(null,0,0,p.get(0)));let h=0;e:for(;;){if(l++,!o.isValid())return He.trivialTimedOut(s,a);let x=-Math.min(l,a.length+l%2),I=Math.min(l,s.length+l%2);for(h=x;h<=I;h+=2){let V=0,E=h===I?-1:p.get(h+1),$=h===x?-1:p.get(h-1)+1;V++;let P=Math.min(Math.max(E,$),s.length),T=P-h;if(V++,P>s.length||T>a.length)continue;let G=n(P,T);p.set(h,G);let q=P===E?m.get(h+1):m.get(h-1);if(m.set(h,G!==P?new An(q,P,T,G-P):q),p.get(h)===s.length&&p.get(h)-h===a.length)break e}}let g=m.get(h),y=[],b=s.length,S=a.length;for(;;){let x=g?g.x+g.length:0,I=g?g.y+g.length:0;if((x!==b||I!==S)&&y.push(new he(new Y(x,b),new Y(I,S))),!g)break;b=g.x,S=g.y,g=g.prev}return y.reverse(),new He(y,!1)}},An=class{constructor(t,r,o,s){this.prev=t,this.x=r,this.y=o,this.length=s}},ji=class{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,r){if(t<0){if(t=-t-1,t>=this.negativeArr.length){let o=this.negativeArr;this.negativeArr=new Int32Array(o.length*2),this.negativeArr.set(o)}this.negativeArr[t]=r}else{if(t>=this.positiveArr.length){let o=this.positiveArr;this.positiveArr=new Int32Array(o.length*2),this.positiveArr.set(o)}this.positiveArr[t]=r}}},Qi=class{constructor(){this.positiveArr=[],this.negativeArr=[]}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,r){t<0?(t=-t-1,this.negativeArr[t]=r):this.positiveArr[t]=r}};var uu,cu,Ki=class{constructor(t,r){this.uri=t,this.value=r}};function Uw(e){return Array.isArray(e)}var Xi=class e{constructor(t,r){if(this[uu]="ResourceMap",t instanceof e)this.map=new Map(t.map),this.toKey=r??e.defaultToKey;else if(Uw(t)){this.map=new Map,this.toKey=r??e.defaultToKey;for(let[o,s]of t)this.set(o,s)}else this.map=new Map,this.toKey=t??e.defaultToKey}set(t,r){return this.map.set(this.toKey(t),new Ki(t,r)),this}get(t){var r;return(r=this.map.get(this.toKey(t)))===null||r===void 0?void 0:r.value}has(t){return this.map.has(this.toKey(t))}get size(){return this.map.size}clear(){this.map.clear()}delete(t){return this.map.delete(this.toKey(t))}forEach(t,r){typeof r<"u"&&(t=t.bind(r));for(let[o,s]of this.map)t(s.value,s.uri,this)}*values(){for(let t of this.map.values())yield t.value}*keys(){for(let t of this.map.values())yield t.uri}*entries(){for(let t of this.map.values())yield[t.uri,t.value]}*[(uu=Symbol.toStringTag,Symbol.iterator)](){for(let[,t]of this.map)yield[t.uri,t.value]}};Xi.defaultToKey=e=>e.toString();var lu=class{constructor(){this[cu]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var t;return(t=this._head)===null||t===void 0?void 0:t.value}get last(){var t;return(t=this._tail)===null||t===void 0?void 0:t.value}has(t){return this._map.has(t)}get(t,r=0){let o=this._map.get(t);if(o)return r!==0&&this.touch(o,r),o.value}set(t,r,o=0){let s=this._map.get(t);if(s)s.value=r,o!==0&&this.touch(s,o);else{switch(s={key:t,value:r,next:void 0,previous:void 0},o){case 0:this.addItemLast(s);break;case 1:this.addItemFirst(s);break;case 2:this.addItemLast(s);break;default:this.addItemLast(s);break}this._map.set(t,s),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){let r=this._map.get(t);if(r)return this._map.delete(t),this.removeItem(r),this._size--,r.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,r){let o=this._state,s=this._head;for(;s;){if(r?t.bind(r)(s.value,s.key,this):t(s.value,s.key,this),this._state!==o)throw new Error("LinkedMap got modified during iteration.");s=s.next}}keys(){let t=this,r=this._state,o=this._head,s={[Symbol.iterator](){return s},next(){if(t._state!==r)throw new Error("LinkedMap got modified during iteration.");if(o){let a={value:o.key,done:!1};return o=o.next,a}else return{value:void 0,done:!0}}};return s}values(){let t=this,r=this._state,o=this._head,s={[Symbol.iterator](){return s},next(){if(t._state!==r)throw new Error("LinkedMap got modified during iteration.");if(o){let a={value:o.value,done:!1};return o=o.next,a}else return{value:void 0,done:!0}}};return s}entries(){let t=this,r=this._state,o=this._head,s={[Symbol.iterator](){return s},next(){if(t._state!==r)throw new Error("LinkedMap got modified during iteration.");if(o){let a={value:[o.key,o.value],done:!1};return o=o.next,a}else return{value:void 0,done:!0}}};return s}[(cu=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let r=this._head,o=this.size;for(;r&&o>t;)this._map.delete(r.key),r=r.next,o--;this._head=r,this._size=o,r&&(r.previous=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{let r=t.next,o=t.previous;if(!r||!o)throw new Error("Invalid list");r.previous=o,o.next=r}t.next=void 0,t.previous=void 0,this._state++}touch(t,r){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(r!==1&&r!==2)){if(r===1){if(t===this._head)return;let o=t.next,s=t.previous;t===this._tail?(s.next=void 0,this._tail=s):(o.previous=s,s.next=o),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(r===2){if(t===this._tail)return;let o=t.next,s=t.previous;t===this._head?(o.previous=void 0,this._head=o):(o.previous=s,s.next=o),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){let t=[];return this.forEach((r,o)=>{t.push([o,r])}),t}fromJSON(t){this.clear();for(let[r,o]of t)this.set(r,o)}};var In=class{constructor(){this.map=new Map}add(t,r){let o=this.map.get(t);o||(o=new Set,this.map.set(t,o)),o.add(r)}delete(t,r){let o=this.map.get(t);o&&(o.delete(r),o.size===0&&this.map.delete(t))}forEach(t,r){let o=this.map.get(t);o&&o.forEach(r)}get(t){let r=this.map.get(t);return r||new Set}};var wt=class{constructor(t,r,o){this.lines=t,this.considerWhitespaceChanges=o,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let s=!1;r.start>0&&r.endExclusive>=t.length&&(r=new Y(r.start-1,r.endExclusive),s=!0),this.lineRange=r,this.firstCharOffsetByLine[0]=0;for(let a=this.lineRange.start;a<this.lineRange.endExclusive;a++){let n=t[a],l=0;if(s)l=n.length,n="",s=!1;else if(!o){let p=n.trimStart();l=n.length-p.length,n=p.trimEnd()}this.additionalOffsetByLine.push(l);for(let p=0;p<n.length;p++)this.elements.push(n.charCodeAt(p));a<t.length-1&&(this.elements.push(10),this.firstCharOffsetByLine[a-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new Y(0,this.length))}getText(t){return this.elements.slice(t.start,t.endExclusive).map(r=>String.fromCharCode(r)).join("")}getElement(t){return this.elements[t]}get length(){return this.elements.length}getBoundaryScore(t){let r=du(t>0?this.elements[t-1]:-1),o=du(t<this.elements.length?this.elements[t]:-1);if(r===7&&o===8)return 0;let s=0;return r!==o&&(s+=10,r===0&&o===1&&(s+=1)),s+=fu(r),s+=fu(o),s}translateOffset(t){if(this.lineRange.isEmpty)return new ge(this.lineRange.start+1,1);let r=Lt(this.firstCharOffsetByLine,o=>o<=t);return new ge(this.lineRange.start+r+1,t-this.firstCharOffsetByLine[r]+this.additionalOffsetByLine[r]+1)}translateRange(t){return ie.fromPositions(this.translateOffset(t.start),this.translateOffset(t.endExclusive))}findWordContaining(t){if(t<0||t>=this.elements.length||!Zi(this.elements[t]))return;let r=t;for(;r>0&&Zi(this.elements[r-1]);)r--;let o=t;for(;o<this.elements.length&&Zi(this.elements[o]);)o++;return new Y(r,o)}countLinesIn(t){return this.translateOffset(t.endExclusive).lineNumber-this.translateOffset(t.start).lineNumber}isStronglyEqual(t,r){return this.elements[t]===this.elements[r]}extendToFullLines(t){var r,o;let s=(r=Je(this.firstCharOffsetByLine,n=>n<=t.start))!==null&&r!==void 0?r:0,a=(o=su(this.firstCharOffsetByLine,n=>t.endExclusive<=n))!==null&&o!==void 0?o:this.elements.length;return new Y(s,a)}};function Zi(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}var Gw={0:0,1:0,2:0,3:10,4:2,5:3,6:3,7:10,8:10};function fu(e){return Gw[e]}function du(e){return e===10?8:e===13?7:xr(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:e===44||e===59?5:4}function mu(e,t,r,o,s,a){let{moves:n,excludedChanges:l}=Hw(e,t,r,a);if(!a.isValid())return[];let p=e.filter(h=>!l.has(h)),m=zw(p,o,s,t,r,a);return ea(n,m),n=jw(n),n=n.filter(h=>{let g=h.original.toOffsetRange().slice(t).map(b=>b.trim());return g.join(`
|
|
10
|
-
`).length>=15&&qw(g,b=>b.length>=2)>=2}),n=Qw(e,n),n}function qw(e,t){let r=0;for(let o of e)t(o)&&r++;return r}function Hw(e,t,r,o){let s=[],a=e.filter(p=>p.modified.isEmpty&&p.original.length>=3).map(p=>new Ht(p.original,t,p)),n=new Set(e.filter(p=>p.original.isEmpty&&p.modified.length>=3).map(p=>new Ht(p.modified,r,p))),l=new Set;for(let p of a){let m=-1,h;for(let g of n){let y=p.computeSimilarity(g);y>m&&(m=y,h=g)}if(m>.9&&h&&(n.delete(h),s.push(new mt(p.range,h.range)),l.add(p.source),l.add(h.source)),!o.isValid())return{moves:s,excludedChanges:l}}return{moves:s,excludedChanges:l}}function zw(e,t,r,o,s,a){let n=[],l=new In;for(let y of e)for(let b=y.original.startLineNumber;b<y.original.endLineNumberExclusive-2;b++){let S=`${t[b-1]}:${t[b+1-1]}:${t[b+2-1]}`;l.add(S,{range:new ne(b,b+3)})}let p=[];e.sort(wr(y=>y.modified.startLineNumber,gr));for(let y of e){let b=[];for(let S=y.modified.startLineNumber;S<y.modified.endLineNumberExclusive-2;S++){let x=`${r[S-1]}:${r[S+1-1]}:${r[S+2-1]}`,I=new ne(S,S+3),V=[];l.forEach(x,({range:E})=>{for(let P of b)if(P.originalLineRange.endLineNumberExclusive+1===E.endLineNumberExclusive&&P.modifiedLineRange.endLineNumberExclusive+1===I.endLineNumberExclusive){P.originalLineRange=new ne(P.originalLineRange.startLineNumber,E.endLineNumberExclusive),P.modifiedLineRange=new ne(P.modifiedLineRange.startLineNumber,I.endLineNumberExclusive),V.push(P);return}let $={modifiedLineRange:I,originalLineRange:E};p.push($),V.push($)}),b=V}if(!a.isValid())return[]}p.sort(ta(wr(y=>y.modifiedLineRange.length,gr)));let m=new _t,h=new _t;for(let y of p){let b=y.modifiedLineRange.startLineNumber-y.originalLineRange.startLineNumber,S=m.subtractFrom(y.modifiedLineRange),x=h.subtractFrom(y.originalLineRange).getWithDelta(b),I=S.getIntersection(x);for(let V of I.ranges){if(V.length<3)continue;let E=V,$=V.delta(-b);n.push(new mt($,E)),m.addRange(E),h.addRange($)}}n.sort(wr(y=>y.original.startLineNumber,gr));let g=new Ut(e);for(let y=0;y<n.length;y++){let b=n[y],S=g.findLastMonotonous(G=>G.original.startLineNumber<=b.original.startLineNumber),x=Je(e,G=>G.modified.startLineNumber<=b.modified.startLineNumber),I=Math.max(b.original.startLineNumber-S.original.startLineNumber,b.modified.startLineNumber-x.modified.startLineNumber),V=g.findLastMonotonous(G=>G.original.startLineNumber<b.original.endLineNumberExclusive),E=Je(e,G=>G.modified.startLineNumber<b.modified.endLineNumberExclusive),$=Math.max(V.original.endLineNumberExclusive-b.original.endLineNumberExclusive,E.modified.endLineNumberExclusive-b.modified.endLineNumberExclusive),P;for(P=0;P<I;P++){let G=b.original.startLineNumber-P-1,q=b.modified.startLineNumber-P-1;if(G>o.length||q>s.length||m.contains(q)||h.contains(G)||!pu(o[G-1],s[q-1],a))break}P>0&&(h.addRange(new ne(b.original.startLineNumber-P,b.original.startLineNumber)),m.addRange(new ne(b.modified.startLineNumber-P,b.modified.startLineNumber)));let T;for(T=0;T<$;T++){let G=b.original.endLineNumberExclusive+T,q=b.modified.endLineNumberExclusive+T;if(G>o.length||q>s.length||m.contains(q)||h.contains(G)||!pu(o[G-1],s[q-1],a))break}T>0&&(h.addRange(new ne(b.original.endLineNumberExclusive,b.original.endLineNumberExclusive+T)),m.addRange(new ne(b.modified.endLineNumberExclusive,b.modified.endLineNumberExclusive+T))),(P>0||T>0)&&(n[y]=new mt(new ne(b.original.startLineNumber-P,b.original.endLineNumberExclusive+T),new ne(b.modified.startLineNumber-P,b.modified.endLineNumberExclusive+T)))}return n}function pu(e,t,r){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;let s=new zt().compute(new wt([e],new Y(0,1),!1),new wt([t],new Y(0,1),!1),r),a=0,n=he.invert(s.diffs,e.length);for(let h of n)h.seq1Range.forEach(g=>{xr(e.charCodeAt(g))||a++});function l(h){let g=0;for(let y=0;y<e.length;y++)xr(h.charCodeAt(y))||g++;return g}let p=l(e.length>t.length?e:t);return a/p>.6&&p>10}function jw(e){if(e.length===0)return e;e.sort(wr(r=>r.original.startLineNumber,gr));let t=[e[0]];for(let r=1;r<e.length;r++){let o=t[t.length-1],s=e[r],a=s.original.startLineNumber-o.original.endLineNumberExclusive,n=s.modified.startLineNumber-o.modified.endLineNumberExclusive;if(a>=0&&n>=0&&a+n<=2){t[t.length-1]=o.join(s);continue}t.push(s)}return t}function Qw(e,t){let r=new Ut(e);return t=t.filter(o=>{let s=r.findLastMonotonous(l=>l.original.startLineNumber<o.original.endLineNumberExclusive)||new mt(new ne(1,1),new ne(1,1)),a=Je(e,l=>l.modified.startLineNumber<o.modified.endLineNumberExclusive);return s!==a}),t}function Yi(e,t,r){let o=r;return o=wu(e,t,o),o=wu(e,t,o),o=Kw(e,t,o),o}function wu(e,t,r){if(r.length===0)return r;let o=[];o.push(r[0]);for(let a=1;a<r.length;a++){let n=o[o.length-1],l=r[a];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){let p=l.seq1Range.start-n.seq1Range.endExclusive,m;for(m=1;m<=p&&!(e.getElement(l.seq1Range.start-m)!==e.getElement(l.seq1Range.endExclusive-m)||t.getElement(l.seq2Range.start-m)!==t.getElement(l.seq2Range.endExclusive-m));m++);if(m--,m===p){o[o.length-1]=new he(new Y(n.seq1Range.start,l.seq1Range.endExclusive-p),new Y(n.seq2Range.start,l.seq2Range.endExclusive-p));continue}l=l.delta(-m)}o.push(l)}let s=[];for(let a=0;a<o.length-1;a++){let n=o[a+1],l=o[a];if(l.seq1Range.isEmpty||l.seq2Range.isEmpty){let p=n.seq1Range.start-l.seq1Range.endExclusive,m;for(m=0;m<p&&!(!e.isStronglyEqual(l.seq1Range.start+m,l.seq1Range.endExclusive+m)||!t.isStronglyEqual(l.seq2Range.start+m,l.seq2Range.endExclusive+m));m++);if(m===p){o[a+1]=new he(new Y(l.seq1Range.start+p,n.seq1Range.endExclusive),new Y(l.seq2Range.start+p,n.seq2Range.endExclusive));continue}m>0&&(l=l.delta(m))}s.push(l)}return o.length>0&&s.push(o[o.length-1]),s}function Kw(e,t,r){if(!e.getBoundaryScore||!t.getBoundaryScore)return r;for(let o=0;o<r.length;o++){let s=o>0?r[o-1]:void 0,a=r[o],n=o+1<r.length?r[o+1]:void 0,l=new Y(s?s.seq1Range.start+1:0,n?n.seq1Range.endExclusive-1:e.length),p=new Y(s?s.seq2Range.start+1:0,n?n.seq2Range.endExclusive-1:t.length);a.seq1Range.isEmpty?r[o]=gu(a,e,t,l,p):a.seq2Range.isEmpty&&(r[o]=gu(a.swap(),t,e,p,l).swap())}return r}function gu(e,t,r,o,s){let n=1;for(;e.seq1Range.start-n>=o.start&&e.seq2Range.start-n>=s.start&&r.isStronglyEqual(e.seq2Range.start-n,e.seq2Range.endExclusive-n)&&n<100;)n++;n--;let l=0;for(;e.seq1Range.start+l<o.endExclusive&&e.seq2Range.endExclusive+l<s.endExclusive&&r.isStronglyEqual(e.seq2Range.start+l,e.seq2Range.endExclusive+l)&&l<100;)l++;if(n===0&&l===0)return e;let p=0,m=-1;for(let h=-n;h<=l;h++){let g=e.seq2Range.start+h,y=e.seq2Range.endExclusive+h,b=e.seq1Range.start+h,S=t.getBoundaryScore(b)+r.getBoundaryScore(g)+r.getBoundaryScore(y);S>m&&(m=S,p=h)}return e.delta(p)}function hu(e,t,r){let o=[];for(let s of r){let a=o[o.length-1];if(!a){o.push(s);continue}s.seq1Range.start-a.seq1Range.endExclusive<=2||s.seq2Range.start-a.seq2Range.endExclusive<=2?o[o.length-1]=new he(a.seq1Range.join(s.seq1Range),a.seq2Range.join(s.seq2Range)):o.push(s)}return o}function yu(e,t,r){let o=[],s;function a(){if(!s)return;let l=s.s1Range.length-s.deleted,p=s.s2Range.length-s.added;Math.max(s.deleted,s.added)+(s.count-1)>l&&o.push(new he(s.s1Range,s.s2Range)),s=void 0}for(let l of r){let p=function(b,S){var x,I,V,E;if(!s||!s.s1Range.containsRange(b)||!s.s2Range.containsRange(S))if(s&&!(s.s1Range.endExclusive<b.start&&s.s2Range.endExclusive<S.start)){let T=Y.tryCreate(s.s1Range.endExclusive,b.start),G=Y.tryCreate(s.s2Range.endExclusive,S.start);s.deleted+=(x=T?.length)!==null&&x!==void 0?x:0,s.added+=(I=G?.length)!==null&&I!==void 0?I:0,s.s1Range=s.s1Range.join(b),s.s2Range=s.s2Range.join(S)}else a(),s={added:0,deleted:0,count:0,s1Range:b,s2Range:S};let $=b.intersect(l.seq1Range),P=S.intersect(l.seq2Range);s.count++,s.deleted+=(V=$?.length)!==null&&V!==void 0?V:0,s.added+=(E=P?.length)!==null&&E!==void 0?E:0},m=e.findWordContaining(l.seq1Range.start-1),h=t.findWordContaining(l.seq2Range.start-1),g=e.findWordContaining(l.seq1Range.endExclusive),y=t.findWordContaining(l.seq2Range.endExclusive);m&&g&&h&&y&&m.equals(g)&&h.equals(y)?p(m,h):(m&&h&&p(m,h),g&&y&&p(g,y))}return a(),Xw(r,o)}function Xw(e,t){let r=[];for(;e.length>0||t.length>0;){let o=e[0],s=t[0],a;o&&(!s||o.seq1Range.start<s.seq1Range.start)?a=e.shift():a=t.shift(),r.length>0&&r[r.length-1].seq1Range.endExclusive>=a.seq1Range.start?r[r.length-1]=r[r.length-1].join(a):r.push(a)}return r}function bu(e,t,r){let o=r;if(o.length===0)return o;let s=0,a;do{a=!1;let n=[o[0]];for(let l=1;l<o.length;l++){let h=function(y,b){let S=new Y(m.seq1Range.endExclusive,p.seq1Range.start);return e.getText(S).replace(/\s/g,"").length<=4&&(y.seq1Range.length+y.seq2Range.length>5||b.seq1Range.length+b.seq2Range.length>5)},p=o[l],m=n[n.length-1];h(m,p)?(a=!0,n[n.length-1]=n[n.length-1].join(p)):n.push(p)}o=n}while(s++<10&&a);return o}function Su(e,t,r){let o=r;if(o.length===0)return o;let s=0,a;do{a=!1;let l=[o[0]];for(let p=1;p<o.length;p++){let g=function(b,S){let x=new Y(h.seq1Range.endExclusive,m.seq1Range.start);if(e.countLinesIn(x)>5||x.length>500)return!1;let V=e.getText(x).trim();if(V.length>20||V.split(/\r\n|\r|\n/).length>1)return!1;let E=e.countLinesIn(b.seq1Range),$=b.seq1Range.length,P=t.countLinesIn(b.seq2Range),T=b.seq2Range.length,G=e.countLinesIn(S.seq1Range),q=S.seq1Range.length,H=t.countLinesIn(S.seq2Range),re=S.seq2Range.length,le=2*40+50;function ee(K){return Math.min(K,le)}return Math.pow(Math.pow(ee(E*40+$),1.5)+Math.pow(ee(P*40+T),1.5),1.5)+Math.pow(Math.pow(ee(G*40+q),1.5)+Math.pow(ee(H*40+re),1.5),1.5)>(le**1.5)**1.5*1.3},m=o[p],h=l[l.length-1];g(h,m)?(a=!0,l[l.length-1]=l[l.length-1].join(m)):l.push(m)}o=l}while(s++<10&&a);let n=[];return Jo(o,(l,p,m)=>{let h=p;function g(V){return V.length>0&&V.trim().length<=3&&p.seq1Range.length+p.seq2Range.length>100}let y=e.extendToFullLines(p.seq1Range),b=e.getText(new Y(y.start,p.seq1Range.start));g(b)&&(h=h.deltaStart(-b.length));let S=e.getText(new Y(p.seq1Range.endExclusive,y.endExclusive));g(S)&&(h=h.deltaEnd(S.length));let x=he.fromOffsetPairs(l?l.getEndExclusives():Ie.zero,m?m.getStarts():Ie.max),I=h.intersect(x);n.push(I)}),n}var vr=class{constructor(t,r){this.trimmedHash=t,this.lines=r}getElement(t){return this.trimmedHash[t]}get length(){return this.trimmedHash.length}getBoundaryScore(t){let r=t===0?0:xu(this.lines[t-1]),o=t===this.lines.length?0:xu(this.lines[t]);return 1e3-(r+o)}getText(t){return this.lines.slice(t.start,t.endExclusive).join(`
|
|
11
|
-
`)}isStronglyEqual(t,r){return this.lines[t]===this.lines[r]}};function xu(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===32||e.charCodeAt(t)===9);)t++;return t}var Nn=class{constructor(){this.dynamicProgrammingDiffing=new $n,this.myersDiffingAlgorithm=new zt}computeDiff(t,r,o){if(t.length<=1&&Xo(t,r,(T,G)=>T===G))return new pt([],[],!1);if(t.length===1&&t[0].length===0||r.length===1&&r[0].length===0)return new pt([new We(new ne(1,t.length+1),new ne(1,r.length+1),[new Mt(new ie(1,1,t.length,t[0].length+1),new ie(1,1,r.length,r[0].length+1))])],[],!1);let s=o.maxComputationTimeMs===0?ze.instance:new En(o.maxComputationTimeMs),a=!o.ignoreTrimWhitespace,n=new Map;function l(T){let G=n.get(T);return G===void 0&&(G=n.size,n.set(T,G)),G}let p=t.map(T=>l(T.trim())),m=r.map(T=>l(T.trim())),h=new vr(p,t),g=new vr(m,r),y=h.length+g.length<1700?this.dynamicProgrammingDiffing.compute(h,g,s,(T,G)=>t[T]===r[G]?r[G].length===0?.1:1+Math.log(1+r[G].length):.99):this.myersDiffingAlgorithm.compute(h,g),b=y.diffs,S=y.hitTimeout;b=Yi(h,g,b),b=bu(h,g,b);let x=[],I=T=>{if(a)for(let G=0;G<T;G++){let q=V+G,H=E+G;if(t[q]!==r[H]){let re=this.refineDiff(t,r,new he(new Y(q,q+1),new Y(H,H+1)),s,a);for(let le of re.mappings)x.push(le);re.hitTimeout&&(S=!0)}}},V=0,E=0;for(let T of b){Ot(()=>T.seq1Range.start-V===T.seq2Range.start-E);let G=T.seq1Range.start-V;I(G),V=T.seq1Range.endExclusive,E=T.seq2Range.endExclusive;let q=this.refineDiff(t,r,T,s,a);q.hitTimeout&&(S=!0);for(let H of q.mappings)x.push(H)}I(t.length-V);let $=vu(x,t,r),P=[];return o.computeMoves&&(P=this.computeMoves($,t,r,p,m,s,a)),Ot(()=>{function T(q,H){if(q.lineNumber<1||q.lineNumber>H.length)return!1;let re=H[q.lineNumber-1];return!(q.column<1||q.column>re.length+1)}function G(q,H){return!(q.startLineNumber<1||q.startLineNumber>H.length+1||q.endLineNumberExclusive<1||q.endLineNumberExclusive>H.length+1)}for(let q of $){if(!q.innerChanges)return!1;for(let H of q.innerChanges)if(!(T(H.modifiedRange.getStartPosition(),r)&&T(H.modifiedRange.getEndPosition(),r)&&T(H.originalRange.getStartPosition(),t)&&T(H.originalRange.getEndPosition(),t)))return!1;if(!G(q.modified,r)||!G(q.original,t))return!1}return!0}),new pt($,P,S)}computeMoves(t,r,o,s,a,n,l){return mu(t,r,o,s,a,n).map(h=>{let g=this.refineDiff(r,o,new he(h.original.toOffsetRange(),h.modified.toOffsetRange()),n,l),y=vu(g.mappings,r,o,!0);return new Ln(h,y)})}refineDiff(t,r,o,s,a){let n=new wt(t,o.seq1Range,a),l=new wt(r,o.seq2Range,a),p=n.length+l.length<500?this.dynamicProgrammingDiffing.compute(n,l,s):this.myersDiffingAlgorithm.compute(n,l,s),m=p.diffs;return m=Yi(n,l,m),m=yu(n,l,m),m=hu(n,l,m),m=Su(n,l,m),{mappings:m.map(g=>new Mt(n.translateRange(g.seq1Range),l.translateRange(g.seq2Range))),hitTimeout:p.hitTimeout}}};function vu(e,t,r,o=!1){let s=[];for(let a of Zo(e.map(n=>Zw(n,t,r)),(n,l)=>n.original.overlapOrTouch(l.original)||n.modified.overlapOrTouch(l.modified))){let n=a[0],l=a[a.length-1];s.push(new We(n.original.join(l.original),n.modified.join(l.modified),a.map(p=>p.innerChanges[0])))}return Ot(()=>!o&&s.length>0&&s[0].original.startLineNumber!==s[0].modified.startLineNumber?!1:xn(s,(a,n)=>n.original.startLineNumber-a.original.endLineNumberExclusive===n.modified.startLineNumber-a.modified.endLineNumberExclusive&&a.original.endLineNumberExclusive<n.original.startLineNumber&&a.modified.endLineNumberExclusive<n.modified.startLineNumber)),s}function Zw(e,t,r){let o=0,s=0;e.modifiedRange.endColumn===1&&e.originalRange.endColumn===1&&e.originalRange.startLineNumber+o<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+o<=e.modifiedRange.endLineNumber&&(s=-1),e.modifiedRange.startColumn-1>=r[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+s&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+s&&(o=1);let a=new ne(e.originalRange.startLineNumber+o,e.originalRange.endLineNumber+1+s),n=new ne(e.modifiedRange.startLineNumber+o,e.modifiedRange.endLineNumber+1+s);return new We(a,n,[e])}var Ji={getLegacy:()=>new Mn,getDefault:()=>new Nn};function gt(e,t){let r=Math.pow(10,t);return Math.round(e*r)/r}var pe=class{constructor(t,r,o,s=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,t))|0,this.g=Math.min(255,Math.max(0,r))|0,this.b=Math.min(255,Math.max(0,o))|0,this.a=gt(Math.max(Math.min(1,s),0),3)}static equals(t,r){return t.r===r.r&&t.g===r.g&&t.b===r.b&&t.a===r.a}},je=class e{constructor(t,r,o,s){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=gt(Math.max(Math.min(1,r),0),3),this.l=gt(Math.max(Math.min(1,o),0),3),this.a=gt(Math.max(Math.min(1,s),0),3)}static equals(t,r){return t.h===r.h&&t.s===r.s&&t.l===r.l&&t.a===r.a}static fromRGBA(t){let r=t.r/255,o=t.g/255,s=t.b/255,a=t.a,n=Math.max(r,o,s),l=Math.min(r,o,s),p=0,m=0,h=(l+n)/2,g=n-l;if(g>0){switch(m=Math.min(h<=.5?g/(2*h):g/(2-2*h),1),n){case r:p=(o-s)/g+(o<s?6:0);break;case o:p=(s-r)/g+2;break;case s:p=(r-o)/g+4;break}p*=60,p=Math.round(p)}return new e(p,m,h,a)}static _hue2rgb(t,r,o){return o<0&&(o+=1),o>1&&(o-=1),o<1/6?t+(r-t)*6*o:o<1/2?r:o<2/3?t+(r-t)*(2/3-o)*6:t}static toRGBA(t){let r=t.h/360,{s:o,l:s,a}=t,n,l,p;if(o===0)n=l=p=s;else{let m=s<.5?s*(1+o):s+o-s*o,h=2*s-m;n=e._hue2rgb(h,m,r+1/3),l=e._hue2rgb(h,m,r),p=e._hue2rgb(h,m,r-1/3)}return new pe(Math.round(n*255),Math.round(l*255),Math.round(p*255),a)}},jt=class e{constructor(t,r,o,s){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=gt(Math.max(Math.min(1,r),0),3),this.v=gt(Math.max(Math.min(1,o),0),3),this.a=gt(Math.max(Math.min(1,s),0),3)}static equals(t,r){return t.h===r.h&&t.s===r.s&&t.v===r.v&&t.a===r.a}static fromRGBA(t){let r=t.r/255,o=t.g/255,s=t.b/255,a=Math.max(r,o,s),n=Math.min(r,o,s),l=a-n,p=a===0?0:l/a,m;return l===0?m=0:a===r?m=((o-s)/l%6+6)%6:a===o?m=(s-r)/l+2:m=(r-o)/l+4,new e(Math.round(m*60),p,a,t.a)}static toRGBA(t){let{h:r,s:o,v:s,a}=t,n=s*o,l=n*(1-Math.abs(r/60%2-1)),p=s-n,[m,h,g]=[0,0,0];return r<60?(m=n,h=l):r<120?(m=l,h=n):r<180?(h=n,g=l):r<240?(h=l,g=n):r<300?(m=l,g=n):r<=360&&(m=n,g=l),m=Math.round((m+p)*255),h=Math.round((h+p)*255),g=Math.round((g+p)*255),new pe(m,h,g,a)}},fe=class e{static fromHex(t){return e.Format.CSS.parseHex(t)||e.red}static equals(t,r){return!t&&!r?!0:!t||!r?!1:t.equals(r)}get hsla(){return this._hsla?this._hsla:je.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:jt.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof pe)this.rgba=t;else if(t instanceof je)this._hsla=t,this.rgba=je.toRGBA(t);else if(t instanceof jt)this._hsva=t,this.rgba=jt.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&pe.equals(this.rgba,t.rgba)&&je.equals(this.hsla,t.hsla)&&jt.equals(this.hsva,t.hsva)}getRelativeLuminance(){let t=e._relativeLuminanceForComponent(this.rgba.r),r=e._relativeLuminanceForComponent(this.rgba.g),o=e._relativeLuminanceForComponent(this.rgba.b),s=.2126*t+.7152*r+.0722*o;return gt(s,4)}static _relativeLuminanceForComponent(t){let r=t/255;return r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(t){let r=this.getRelativeLuminance(),o=t.getRelativeLuminance();return r>o}isDarkerThan(t){let r=this.getRelativeLuminance(),o=t.getRelativeLuminance();return r<o}lighten(t){return new e(new je(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}darken(t){return new e(new je(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))}transparent(t){let{r,g:o,b:s,a}=this.rgba;return new e(new pe(r,o,s,a*t))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new e(new pe(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(t){if(this.isOpaque()||t.rgba.a!==1)return this;let{r,g:o,b:s,a}=this.rgba;return new e(new pe(t.rgba.r-a*(t.rgba.r-r),t.rgba.g-a*(t.rgba.g-o),t.rgba.b-a*(t.rgba.b-s),1))}toString(){return this._toString||(this._toString=e.Format.CSS.format(this)),this._toString}static getLighterColor(t,r,o){if(t.isLighterThan(r))return t;o=o||.5;let s=t.getRelativeLuminance(),a=r.getRelativeLuminance();return o=o*(a-s)/a,t.lighten(o)}static getDarkerColor(t,r,o){if(t.isDarkerThan(r))return t;o=o||.5;let s=t.getRelativeLuminance(),a=r.getRelativeLuminance();return o=o*(s-a)/s,t.darken(o)}};fe.white=new fe(new pe(255,255,255,1));fe.black=new fe(new pe(0,0,0,1));fe.red=new fe(new pe(255,0,0,1));fe.blue=new fe(new pe(0,0,255,1));fe.green=new fe(new pe(0,255,0,1));fe.cyan=new fe(new pe(0,255,255,1));fe.lightgrey=new fe(new pe(211,211,211,1));fe.transparent=new fe(new pe(0,0,0,0));(function(e){let t;(function(r){let o;(function(s){function a(x){return x.rgba.a===1?`rgb(${x.rgba.r}, ${x.rgba.g}, ${x.rgba.b})`:e.Format.CSS.formatRGBA(x)}s.formatRGB=a;function n(x){return`rgba(${x.rgba.r}, ${x.rgba.g}, ${x.rgba.b}, ${+x.rgba.a.toFixed(2)})`}s.formatRGBA=n;function l(x){return x.hsla.a===1?`hsl(${x.hsla.h}, ${(x.hsla.s*100).toFixed(2)}%, ${(x.hsla.l*100).toFixed(2)}%)`:e.Format.CSS.formatHSLA(x)}s.formatHSL=l;function p(x){return`hsla(${x.hsla.h}, ${(x.hsla.s*100).toFixed(2)}%, ${(x.hsla.l*100).toFixed(2)}%, ${x.hsla.a.toFixed(2)})`}s.formatHSLA=p;function m(x){let I=x.toString(16);return I.length!==2?"0"+I:I}function h(x){return`#${m(x.rgba.r)}${m(x.rgba.g)}${m(x.rgba.b)}`}s.formatHex=h;function g(x,I=!1){return I&&x.rgba.a===1?e.Format.CSS.formatHex(x):`#${m(x.rgba.r)}${m(x.rgba.g)}${m(x.rgba.b)}${m(Math.round(x.rgba.a*255))}`}s.formatHexA=g;function y(x){return x.isOpaque()?e.Format.CSS.formatHex(x):e.Format.CSS.formatRGBA(x)}s.format=y;function b(x){let I=x.length;if(I===0||x.charCodeAt(0)!==35)return null;if(I===7){let V=16*S(x.charCodeAt(1))+S(x.charCodeAt(2)),E=16*S(x.charCodeAt(3))+S(x.charCodeAt(4)),$=16*S(x.charCodeAt(5))+S(x.charCodeAt(6));return new e(new pe(V,E,$,1))}if(I===9){let V=16*S(x.charCodeAt(1))+S(x.charCodeAt(2)),E=16*S(x.charCodeAt(3))+S(x.charCodeAt(4)),$=16*S(x.charCodeAt(5))+S(x.charCodeAt(6)),P=16*S(x.charCodeAt(7))+S(x.charCodeAt(8));return new e(new pe(V,E,$,P/255))}if(I===4){let V=S(x.charCodeAt(1)),E=S(x.charCodeAt(2)),$=S(x.charCodeAt(3));return new e(new pe(16*V+V,16*E+E,16*$+$))}if(I===5){let V=S(x.charCodeAt(1)),E=S(x.charCodeAt(2)),$=S(x.charCodeAt(3)),P=S(x.charCodeAt(4));return new e(new pe(16*V+V,16*E+E,16*$+$,(16*P+P)/255))}return null}s.parseHex=b;function S(x){switch(x){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(o=r.CSS||(r.CSS={}))})(t=e.Format||(e.Format={}))})(fe||(fe={}));function _u(e){let t=[];for(let r of e){let o=Number(r);(o||o===0&&r.replace(/\s/g,"")!=="")&&t.push(o)}return t}function es(e,t,r,o){return{red:e/255,blue:r/255,green:t/255,alpha:o}}function Cr(e,t){let r=t.index,o=t[0].length;if(!r)return;let s=e.positionAt(r);return{startLineNumber:s.lineNumber,startColumn:s.column,endLineNumber:s.lineNumber,endColumn:s.column+o}}function Yw(e,t){if(!e)return;let r=fe.Format.CSS.parseHex(t);if(r)return{range:e,color:es(r.rgba.r,r.rgba.g,r.rgba.b,r.rgba.a)}}function Cu(e,t,r){if(!e||t.length!==1)return;let s=t[0].values(),a=_u(s);return{range:e,color:es(a[0],a[1],a[2],r?a[3]:1)}}function Lu(e,t,r){if(!e||t.length!==1)return;let s=t[0].values(),a=_u(s),n=new fe(new je(a[0],a[1]/100,a[2]/100,r?a[3]:1));return{range:e,color:es(n.rgba.r,n.rgba.g,n.rgba.b,n.rgba.a)}}function Lr(e,t){return typeof e=="string"?[...e.matchAll(t)]:e.findMatches(t)}function Jw(e){let t=[],o=Lr(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(o.length>0)for(let s of o){let a=s.filter(m=>m!==void 0),n=a[1],l=a[2];if(!l)continue;let p;if(n==="rgb"){let m=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;p=Cu(Cr(e,s),Lr(l,m),!1)}else if(n==="rgba"){let m=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;p=Cu(Cr(e,s),Lr(l,m),!0)}else if(n==="hsl"){let m=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;p=Lu(Cr(e,s),Lr(l,m),!1)}else if(n==="hsla"){let m=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;p=Lu(Cr(e,s),Lr(l,m),!0)}else n==="#"&&(p=Yw(Cr(e,s),n+l));p&&t.push(p)}return t}function Mu(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:Jw(e)}var ts=class extends cn{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(t){let r=[];for(let o=0;o<this._lines.length;o++){let s=this._lines[o],a=this.offsetAt(new ge(o+1,1)),n=s.matchAll(t);for(let l of n)(l.index||l.index===0)&&(l.index=l.index+a),r.push(l)}return r}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(t){return this._lines[t-1]}getWordAtPosition(t,r){let o=hr(t.column,Pi(r),this._lines[t.lineNumber-1],0);return o?new ie(t.lineNumber,o.startColumn,t.lineNumber,o.endColumn):null}words(t){let r=this._lines,o=this._wordenize.bind(this),s=0,a="",n=0,l=[];return{*[Symbol.iterator](){for(;;)if(n<l.length){let p=a.substring(l[n].start,l[n].end);n+=1,yield p}else if(s<r.length)a=r[s],l=o(a,t),n=0,s+=1;else break}}}getLineWords(t,r){let o=this._lines[t-1],s=this._wordenize(o,r),a=[];for(let n of s)a.push({word:o.substring(n.start,n.end),startColumn:n.start+1,endColumn:n.end+1});return a}_wordenize(t,r){let o=[],s;for(r.lastIndex=0;(s=r.exec(t))&&s[0].length!==0;)o.push({start:s.index,end:s.index+s[0].length});return o}getValueInRange(t){if(t=this._validateRange(t),t.startLineNumber===t.endLineNumber)return this._lines[t.startLineNumber-1].substring(t.startColumn-1,t.endColumn-1);let r=this._eol,o=t.startLineNumber-1,s=t.endLineNumber-1,a=[];a.push(this._lines[o].substring(t.startColumn-1));for(let n=o+1;n<s;n++)a.push(this._lines[n]);return a.push(this._lines[s].substring(0,t.endColumn-1)),a.join(r)}offsetAt(t){return t=this._validatePosition(t),this._ensureLineStarts(),this._lineStarts.getPrefixSum(t.lineNumber-2)+(t.column-1)}positionAt(t){t=Math.floor(t),t=Math.max(0,t),this._ensureLineStarts();let r=this._lineStarts.getIndexOf(t),o=this._lines[r.index].length;return{lineNumber:1+r.index,column:1+Math.min(r.remainder,o)}}_validateRange(t){let r=this._validatePosition({lineNumber:t.startLineNumber,column:t.startColumn}),o=this._validatePosition({lineNumber:t.endLineNumber,column:t.endColumn});return r.lineNumber!==t.startLineNumber||r.column!==t.startColumn||o.lineNumber!==t.endLineNumber||o.column!==t.endColumn?{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:o.lineNumber,endColumn:o.column}:t}_validatePosition(t){if(!ge.isIPosition(t))throw new Error("bad position");let{lineNumber:r,column:o}=t,s=!1;if(r<1)r=1,o=1,s=!0;else if(r>this._lines.length)r=this._lines.length,o=this._lines[r-1].length+1,s=!0;else{let a=this._lines[r-1].length+1;o<1?(o=1,s=!0):o>a&&(o=a,s=!0)}return s?{lineNumber:r,column:o}:t}},Qt=class e{constructor(t,r){this._host=t,this._models=Object.create(null),this._foreignModuleFactory=r,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(t){return this._models[t]}_getModels(){let t=[];return Object.keys(this._models).forEach(r=>t.push(this._models[r])),t}acceptNewModel(t){this._models[t.url]=new ts(ft.parse(t.url),t.lines,t.EOL,t.versionId)}acceptModelChanged(t,r){if(!this._models[t])return;this._models[t].onEvents(r)}acceptRemovedModel(t){this._models[t]&&delete this._models[t]}async computeUnicodeHighlights(t,r,o){let s=this._getModel(t);return s?vn.computeUnicodeHighlights(s,r,o):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async computeDiff(t,r,o,s){let a=this._getModel(t),n=this._getModel(r);return!a||!n?null:e.computeDiff(a,n,o,s)}static computeDiff(t,r,o,s){let a=s==="advanced"?Ji.getDefault():Ji.getLegacy(),n=t.getLinesContent(),l=r.getLinesContent(),p=a.computeDiff(n,l,o),m=p.changes.length>0?!1:this._modelsAreIdentical(t,r);function h(g){return g.map(y=>{var b;return[y.original.startLineNumber,y.original.endLineNumberExclusive,y.modified.startLineNumber,y.modified.endLineNumberExclusive,(b=y.innerChanges)===null||b===void 0?void 0:b.map(S=>[S.originalRange.startLineNumber,S.originalRange.startColumn,S.originalRange.endLineNumber,S.originalRange.endColumn,S.modifiedRange.startLineNumber,S.modifiedRange.startColumn,S.modifiedRange.endLineNumber,S.modifiedRange.endColumn])]})}return{identical:m,quitEarly:p.hitTimeout,changes:h(p.changes),moves:p.moves.map(g=>[g.lineRangeMapping.original.startLineNumber,g.lineRangeMapping.original.endLineNumberExclusive,g.lineRangeMapping.modified.startLineNumber,g.lineRangeMapping.modified.endLineNumberExclusive,h(g.changes)])}}static _modelsAreIdentical(t,r){let o=t.getLineCount(),s=r.getLineCount();if(o!==s)return!1;for(let a=1;a<=o;a++){let n=t.getLineContent(a),l=r.getLineContent(a);if(n!==l)return!1}return!0}async computeMoreMinimalEdits(t,r,o){let s=this._getModel(t);if(!s)return r;let a=[],n;r=r.slice(0).sort((p,m)=>{if(p.range&&m.range)return ie.compareRangesUsingStarts(p.range,m.range);let h=p.range?0:1,g=m.range?0:1;return h-g});let l=0;for(let p=1;p<r.length;p++)ie.getEndPosition(r[l].range).equals(ie.getStartPosition(r[p].range))?(r[l].range=ie.fromPositions(ie.getStartPosition(r[l].range),ie.getEndPosition(r[p].range)),r[l].text+=r[p].text):(l++,r[l]=r[p]);r.length=l+1;for(let{range:p,text:m,eol:h}of r){if(typeof h=="number"&&(n=h),ie.isEmpty(p)&&!m)continue;let g=s.getValueInRange(p);if(m=m.replace(/\r\n|\n|\r/g,s.eol),g===m)continue;if(Math.max(m.length,g.length)>e._diffLimit){a.push({range:p,text:m});continue}let y=Oo(g,m,o),b=s.offsetAt(ie.lift(p).getStartPosition());for(let S of y){let x=s.positionAt(b+S.originalStart),I=s.positionAt(b+S.originalStart+S.originalLength),V={text:m.substr(S.modifiedStart,S.modifiedLength),range:{startLineNumber:x.lineNumber,startColumn:x.column,endLineNumber:I.lineNumber,endColumn:I.column}};s.getValueInRange(V.range)!==V.text&&a.push(V)}}return typeof n=="number"&&a.push({eol:n,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),a}async computeLinks(t){let r=this._getModel(t);return r?na(r):null}async computeDefaultDocumentColors(t){let r=this._getModel(t);return r?Mu(r):null}async textualSuggest(t,r,o,s){let a=new Nt,n=new RegExp(o,s),l=new Set;e:for(let p of t){let m=this._getModel(p);if(m){for(let h of m.words(n))if(!(h===r||!isNaN(Number(h)))&&(l.add(h),l.size>e._suggestionsLimit))break e}}return{words:Array.from(l),duration:a.elapsed()}}async computeWordRanges(t,r,o,s){let a=this._getModel(t);if(!a)return Object.create(null);let n=new RegExp(o,s),l=Object.create(null);for(let p=r.startLineNumber;p<r.endLineNumber;p++){let m=a.getLineWords(p,n);for(let h of m){if(!isNaN(Number(h.word)))continue;let g=l[h.word];g||(g=[],l[h.word]=g),g.push({startLineNumber:p,startColumn:h.startColumn,endLineNumber:p,endColumn:h.endColumn})}}return l}async navigateValueSet(t,r,o,s,a){let n=this._getModel(t);if(!n)return null;let l=new RegExp(s,a);r.startColumn===r.endColumn&&(r={startLineNumber:r.startLineNumber,startColumn:r.startColumn,endLineNumber:r.endLineNumber,endColumn:r.endColumn+1});let p=n.getValueInRange(r),m=n.getWordAtPosition({lineNumber:r.startLineNumber,column:r.startColumn},l);if(!m)return null;let h=n.getValueInRange(m);return Wt.INSTANCE.navigateValueSet(r,p,m,h,o)}loadForeignModule(t,r,o){let n={host:_o(o,(l,p)=>this._host.fhr(l,p)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(n,r),Promise.resolve(cr(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(t,r){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,r))}catch(o){return Promise.reject(o)}}};Qt._diffLimit=1e5;Qt._suggestionsLimit=1e4;typeof importScripts=="function"&&(globalThis.monaco=Ya());var rs=!1;function ns(e){if(rs)return;rs=!0;let t=new en(r=>{globalThis.postMessage(r)},r=>new Qt(r,e));globalThis.onmessage=r=>{t.onmessage(r.data)}}globalThis.onmessage=e=>{rs||ns(null)};var Pn=class e{constructor(t,r,o,s){this._uri=t,this._languageId=r,this._version=o,this._content=s,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let r=this.offsetAt(t.start),o=this.offsetAt(t.end);return this._content.substring(r,o)}return this._content}update(t,r){for(let o of t)if(e.isIncremental(o)){let s=Eu(o.range),a=this.offsetAt(s.start),n=this.offsetAt(s.end);this._content=this._content.substring(0,a)+o.text+this._content.substring(n,this._content.length);let l=Math.max(s.start.line,0),p=Math.max(s.end.line,0),m=this._lineOffsets,h=Ru(o.text,!1,a);if(p-l===h.length)for(let y=0,b=h.length;y<b;y++)m[y+l+1]=h[y];else h.length<1e4?m.splice(l+1,p-l,...h):this._lineOffsets=m=m.slice(0,l+1).concat(h,m.slice(p+1));let g=o.text.length-(n-a);if(g!==0)for(let y=l+1+h.length,b=m.length;y<b;y++)m[y]=m[y]+g}else if(e.isFull(o))this._content=o.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=r}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Ru(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let r=this.getLineOffsets(),o=0,s=r.length;if(s===0)return{line:0,character:t};for(;o<s;){let n=Math.floor((o+s)/2);r[n]>t?s=n:o=n+1}let a=o-1;return{line:a,character:t-r[a]}}offsetAt(t){let r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;let o=r[t.line],s=t.line+1<r.length?r[t.line+1]:this._content.length;return Math.max(Math.min(o+t.character,s),o)}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}static isFull(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}},Fn;(function(e){function t(s,a,n,l){return new Pn(s,a,n,l)}e.create=t;function r(s,a,n){if(s instanceof Pn)return s.update(a,n),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=r;function o(s,a){let n=s.getText(),l=is(a.map(eg),(h,g)=>{let y=h.range.start.line-g.range.start.line;return y===0?h.range.start.character-g.range.start.character:y}),p=0,m=[];for(let h of l){let g=s.offsetAt(h.range.start);if(g<p)throw new Error("Overlapping edit");g>p&&m.push(n.substring(p,g)),h.newText.length&&m.push(h.newText),p=s.offsetAt(h.range.end)}return m.push(n.substr(p)),m.join("")}e.applyEdits=o})(Fn||(Fn={}));function is(e,t){if(e.length<=1)return e;let r=e.length/2|0,o=e.slice(0,r),s=e.slice(r);is(o,t),is(s,t);let a=0,n=0,l=0;for(;a<o.length&&n<s.length;)t(o[a],s[n])<=0?e[l++]=o[a++]:e[l++]=s[n++];for(;a<o.length;)e[l++]=o[a++];for(;n<s.length;)e[l++]=s[n++];return e}function Ru(e,t,r=0){let o=t?[r]:[];for(let s=0;s<e.length;s++){let a=e.charCodeAt(s);(a===13||a===10)&&(a===13&&s+1<e.length&&e.charCodeAt(s+1)===10&&s++,o.push(r+s+1))}return o}function Eu(e){let t=e.start,r=e.end;return t.line>r.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}function eg(e){let t=Eu(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var $u;(function(e){function t(r){return typeof r=="string"}e.is=t})($u||($u={}));var ss;(function(e){function t(r){return typeof r=="string"}e.is=t})(ss||(ss={}));var Au;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}e.is=t})(Au||(Au={}));var Vn;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}e.is=t})(Vn||(Vn={}));var Be;(function(e){function t(o,s){return o===Number.MAX_VALUE&&(o=Vn.MAX_VALUE),s===Number.MAX_VALUE&&(s=Vn.MAX_VALUE),{line:o,character:s}}e.create=t;function r(o){let s=o;return L.objectLiteral(s)&&L.uinteger(s.line)&&L.uinteger(s.character)}e.is=r})(Be||(Be={}));var me;(function(e){function t(o,s,a,n){if(L.uinteger(o)&&L.uinteger(s)&&L.uinteger(a)&&L.uinteger(n))return{start:Be.create(o,s),end:Be.create(a,n)};if(Be.is(o)&&Be.is(s))return{start:o,end:s};throw new Error(`Range#create called with invalid arguments[${o}, ${s}, ${a}, ${n}]`)}e.create=t;function r(o){let s=o;return L.objectLiteral(s)&&Be.is(s.start)&&Be.is(s.end)}e.is=r})(me||(me={}));var Tn;(function(e){function t(o,s){return{uri:o,range:s}}e.create=t;function r(o){let s=o;return L.objectLiteral(s)&&me.is(s.range)&&(L.string(s.uri)||L.undefined(s.uri))}e.is=r})(Tn||(Tn={}));var Iu;(function(e){function t(o,s,a,n){return{targetUri:o,targetRange:s,targetSelectionRange:a,originSelectionRange:n}}e.create=t;function r(o){let s=o;return L.objectLiteral(s)&&me.is(s.targetRange)&&L.string(s.targetUri)&&me.is(s.targetSelectionRange)&&(me.is(s.originSelectionRange)||L.undefined(s.originSelectionRange))}e.is=r})(Iu||(Iu={}));var os;(function(e){function t(o,s,a,n){return{red:o,green:s,blue:a,alpha:n}}e.create=t;function r(o){let s=o;return L.objectLiteral(s)&&L.numberRange(s.red,0,1)&&L.numberRange(s.green,0,1)&&L.numberRange(s.blue,0,1)&&L.numberRange(s.alpha,0,1)}e.is=r})(os||(os={}));var Nu;(function(e){function t(o,s){return{range:o,color:s}}e.create=t;function r(o){let s=o;return L.objectLiteral(s)&&me.is(s.range)&&os.is(s.color)}e.is=r})(Nu||(Nu={}));var Pu;(function(e){function t(o,s,a){return{label:o,textEdit:s,additionalTextEdits:a}}e.create=t;function r(o){let s=o;return L.objectLiteral(s)&&L.string(s.label)&&(L.undefined(s.textEdit)||Xt.is(s))&&(L.undefined(s.additionalTextEdits)||L.typedArray(s.additionalTextEdits,Xt.is))}e.is=r})(Pu||(Pu={}));var Fu;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Fu||(Fu={}));var Vu;(function(e){function t(o,s,a,n,l,p){let m={startLine:o,endLine:s};return L.defined(a)&&(m.startCharacter=a),L.defined(n)&&(m.endCharacter=n),L.defined(l)&&(m.kind=l),L.defined(p)&&(m.collapsedText=p),m}e.create=t;function r(o){let s=o;return L.objectLiteral(s)&&L.uinteger(s.startLine)&&L.uinteger(s.startLine)&&(L.undefined(s.startCharacter)||L.uinteger(s.startCharacter))&&(L.undefined(s.endCharacter)||L.uinteger(s.endCharacter))&&(L.undefined(s.kind)||L.string(s.kind))}e.is=r})(Vu||(Vu={}));var as;(function(e){function t(o,s){return{location:o,message:s}}e.create=t;function r(o){let s=o;return L.defined(s)&&Tn.is(s.location)&&L.string(s.message)}e.is=r})(as||(as={}));var Tu;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Tu||(Tu={}));var Du;(function(e){e.Unnecessary=1,e.Deprecated=2})(Du||(Du={}));var ku;(function(e){function t(r){let o=r;return L.objectLiteral(o)&&L.string(o.href)}e.is=t})(ku||(ku={}));var Dn;(function(e){function t(o,s,a,n,l,p){let m={range:o,message:s};return L.defined(a)&&(m.severity=a),L.defined(n)&&(m.code=n),L.defined(l)&&(m.source=l),L.defined(p)&&(m.relatedInformation=p),m}e.create=t;function r(o){var s;let a=o;return L.defined(a)&&me.is(a.range)&&L.string(a.message)&&(L.number(a.severity)||L.undefined(a.severity))&&(L.integer(a.code)||L.string(a.code)||L.undefined(a.code))&&(L.undefined(a.codeDescription)||L.string((s=a.codeDescription)===null||s===void 0?void 0:s.href))&&(L.string(a.source)||L.undefined(a.source))&&(L.undefined(a.relatedInformation)||L.typedArray(a.relatedInformation,as.is))}e.is=r})(Dn||(Dn={}));var Kt;(function(e){function t(o,s,...a){let n={title:o,command:s};return L.defined(a)&&a.length>0&&(n.arguments=a),n}e.create=t;function r(o){let s=o;return L.defined(s)&&L.string(s.title)&&L.string(s.command)}e.is=r})(Kt||(Kt={}));var Xt;(function(e){function t(a,n){return{range:a,newText:n}}e.replace=t;function r(a,n){return{range:{start:a,end:a},newText:n}}e.insert=r;function o(a){return{range:a,newText:""}}e.del=o;function s(a){let n=a;return L.objectLiteral(n)&&L.string(n.newText)&&me.is(n.range)}e.is=s})(Xt||(Xt={}));var us;(function(e){function t(o,s,a){let n={label:o};return s!==void 0&&(n.needsConfirmation=s),a!==void 0&&(n.description=a),n}e.create=t;function r(o){let s=o;return L.objectLiteral(s)&&L.string(s.label)&&(L.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(L.string(s.description)||s.description===void 0)}e.is=r})(us||(us={}));var Zt;(function(e){function t(r){let o=r;return L.string(o)}e.is=t})(Zt||(Zt={}));var Wu;(function(e){function t(a,n,l){return{range:a,newText:n,annotationId:l}}e.replace=t;function r(a,n,l){return{range:{start:a,end:a},newText:n,annotationId:l}}e.insert=r;function o(a,n){return{range:a,newText:"",annotationId:n}}e.del=o;function s(a){let n=a;return Xt.is(n)&&(us.is(n.annotationId)||Zt.is(n.annotationId))}e.is=s})(Wu||(Wu={}));var cs;(function(e){function t(o,s){return{textDocument:o,edits:s}}e.create=t;function r(o){let s=o;return L.defined(s)&&ms.is(s.textDocument)&&Array.isArray(s.edits)}e.is=r})(cs||(cs={}));var ls;(function(e){function t(o,s,a){let n={kind:"create",uri:o};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(n.options=s),a!==void 0&&(n.annotationId=a),n}e.create=t;function r(o){let s=o;return s&&s.kind==="create"&&L.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||L.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||L.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Zt.is(s.annotationId))}e.is=r})(ls||(ls={}));var fs;(function(e){function t(o,s,a,n){let l={kind:"rename",oldUri:o,newUri:s};return a!==void 0&&(a.overwrite!==void 0||a.ignoreIfExists!==void 0)&&(l.options=a),n!==void 0&&(l.annotationId=n),l}e.create=t;function r(o){let s=o;return s&&s.kind==="rename"&&L.string(s.oldUri)&&L.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||L.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||L.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||Zt.is(s.annotationId))}e.is=r})(fs||(fs={}));var ds;(function(e){function t(o,s,a){let n={kind:"delete",uri:o};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(n.options=s),a!==void 0&&(n.annotationId=a),n}e.create=t;function r(o){let s=o;return s&&s.kind==="delete"&&L.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||L.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||L.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||Zt.is(s.annotationId))}e.is=r})(ds||(ds={}));var ps;(function(e){function t(r){let o=r;return o&&(o.changes!==void 0||o.documentChanges!==void 0)&&(o.documentChanges===void 0||o.documentChanges.every(s=>L.string(s.kind)?ls.is(s)||fs.is(s)||ds.is(s):cs.is(s)))}e.is=t})(ps||(ps={}));var Bu;(function(e){function t(o){return{uri:o}}e.create=t;function r(o){let s=o;return L.defined(s)&&L.string(s.uri)}e.is=r})(Bu||(Bu={}));var Ou;(function(e){function t(o,s){return{uri:o,version:s}}e.create=t;function r(o){let s=o;return L.defined(s)&&L.string(s.uri)&&L.integer(s.version)}e.is=r})(Ou||(Ou={}));var ms;(function(e){function t(o,s){return{uri:o,version:s}}e.create=t;function r(o){let s=o;return L.defined(s)&&L.string(s.uri)&&(s.version===null||L.integer(s.version))}e.is=r})(ms||(ms={}));var Uu;(function(e){function t(o,s,a,n){return{uri:o,languageId:s,version:a,text:n}}e.create=t;function r(o){let s=o;return L.defined(s)&&L.string(s.uri)&&L.string(s.languageId)&&L.integer(s.version)&&L.string(s.text)}e.is=r})(Uu||(Uu={}));var _r;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(r){let o=r;return o===e.PlainText||o===e.Markdown}e.is=t})(_r||(_r={}));var Mr;(function(e){function t(r){let o=r;return L.objectLiteral(r)&&_r.is(o.kind)&&L.string(o.value)}e.is=t})(Mr||(Mr={}));var Rt;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Rt||(Rt={}));var Yt;(function(e){e.PlainText=1,e.Snippet=2})(Yt||(Yt={}));var Gu;(function(e){e.Deprecated=1})(Gu||(Gu={}));var qu;(function(e){function t(o,s,a){return{newText:o,insert:s,replace:a}}e.create=t;function r(o){let s=o;return s&&L.string(s.newText)&&me.is(s.insert)&&me.is(s.replace)}e.is=r})(qu||(qu={}));var Jt;(function(e){e.asIs=1,e.adjustIndentation=2})(Jt||(Jt={}));var Hu;(function(e){function t(r){let o=r;return o&&(L.string(o.detail)||o.detail===void 0)&&(L.string(o.description)||o.description===void 0)}e.is=t})(Hu||(Hu={}));var zu;(function(e){function t(r){return{label:r}}e.create=t})(zu||(zu={}));var ju;(function(e){function t(r,o){return{items:r||[],isIncomplete:!!o}}e.create=t})(ju||(ju={}));var kn;(function(e){function t(o){return o.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function r(o){let s=o;return L.string(s)||L.objectLiteral(s)&&L.string(s.language)&&L.string(s.value)}e.is=r})(kn||(kn={}));var Qu;(function(e){function t(r){let o=r;return!!o&&L.objectLiteral(o)&&(Mr.is(o.contents)||kn.is(o.contents)||L.typedArray(o.contents,kn.is))&&(r.range===void 0||me.is(r.range))}e.is=t})(Qu||(Qu={}));var Ku;(function(e){function t(r,o){return o?{label:r,documentation:o}:{label:r}}e.create=t})(Ku||(Ku={}));var Xu;(function(e){function t(r,o,...s){let a={label:r};return L.defined(o)&&(a.documentation=o),L.defined(s)?a.parameters=s:a.parameters=[],a}e.create=t})(Xu||(Xu={}));var Zu;(function(e){e.Text=1,e.Read=2,e.Write=3})(Zu||(Zu={}));var Yu;(function(e){function t(r,o){let s={range:r};return L.number(o)&&(s.kind=o),s}e.create=t})(Yu||(Yu={}));var Ju;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(Ju||(Ju={}));var ec;(function(e){e.Deprecated=1})(ec||(ec={}));var tc;(function(e){function t(r,o,s,a,n){let l={name:r,kind:o,location:{uri:a,range:s}};return n&&(l.containerName=n),l}e.create=t})(tc||(tc={}));var rc;(function(e){function t(r,o,s,a){return a!==void 0?{name:r,kind:o,location:{uri:s,range:a}}:{name:r,kind:o,location:{uri:s}}}e.create=t})(rc||(rc={}));var nc;(function(e){function t(o,s,a,n,l,p){let m={name:o,detail:s,kind:a,range:n,selectionRange:l};return p!==void 0&&(m.children=p),m}e.create=t;function r(o){let s=o;return s&&L.string(s.name)&&L.number(s.kind)&&me.is(s.range)&&me.is(s.selectionRange)&&(s.detail===void 0||L.string(s.detail))&&(s.deprecated===void 0||L.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}e.is=r})(nc||(nc={}));var ic;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(ic||(ic={}));var Wn;(function(e){e.Invoked=1,e.Automatic=2})(Wn||(Wn={}));var sc;(function(e){function t(o,s,a){let n={diagnostics:o};return s!=null&&(n.only=s),a!=null&&(n.triggerKind=a),n}e.create=t;function r(o){let s=o;return L.defined(s)&&L.typedArray(s.diagnostics,Dn.is)&&(s.only===void 0||L.typedArray(s.only,L.string))&&(s.triggerKind===void 0||s.triggerKind===Wn.Invoked||s.triggerKind===Wn.Automatic)}e.is=r})(sc||(sc={}));var oc;(function(e){function t(o,s,a){let n={title:o},l=!0;return typeof s=="string"?(l=!1,n.kind=s):Kt.is(s)?n.command=s:n.edit=s,l&&a!==void 0&&(n.kind=a),n}e.create=t;function r(o){let s=o;return s&&L.string(s.title)&&(s.diagnostics===void 0||L.typedArray(s.diagnostics,Dn.is))&&(s.kind===void 0||L.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||Kt.is(s.command))&&(s.isPreferred===void 0||L.boolean(s.isPreferred))&&(s.edit===void 0||ps.is(s.edit))}e.is=r})(oc||(oc={}));var ac;(function(e){function t(o,s){let a={range:o};return L.defined(s)&&(a.data=s),a}e.create=t;function r(o){let s=o;return L.defined(s)&&me.is(s.range)&&(L.undefined(s.command)||Kt.is(s.command))}e.is=r})(ac||(ac={}));var uc;(function(e){function t(o,s){return{tabSize:o,insertSpaces:s}}e.create=t;function r(o){let s=o;return L.defined(s)&&L.uinteger(s.tabSize)&&L.boolean(s.insertSpaces)}e.is=r})(uc||(uc={}));var cc;(function(e){function t(o,s,a){return{range:o,target:s,data:a}}e.create=t;function r(o){let s=o;return L.defined(s)&&me.is(s.range)&&(L.undefined(s.target)||L.string(s.target))}e.is=r})(cc||(cc={}));var lc;(function(e){function t(o,s){return{range:o,parent:s}}e.create=t;function r(o){let s=o;return L.objectLiteral(s)&&me.is(s.range)&&(s.parent===void 0||e.is(s.parent))}e.is=r})(lc||(lc={}));var fc;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(fc||(fc={}));var dc;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(dc||(dc={}));var pc;(function(e){function t(r){let o=r;return L.objectLiteral(o)&&(o.resultId===void 0||typeof o.resultId=="string")&&Array.isArray(o.data)&&(o.data.length===0||typeof o.data[0]=="number")}e.is=t})(pc||(pc={}));var mc;(function(e){function t(o,s){return{range:o,text:s}}e.create=t;function r(o){let s=o;return s!=null&&me.is(s.range)&&L.string(s.text)}e.is=r})(mc||(mc={}));var wc;(function(e){function t(o,s,a){return{range:o,variableName:s,caseSensitiveLookup:a}}e.create=t;function r(o){let s=o;return s!=null&&me.is(s.range)&&L.boolean(s.caseSensitiveLookup)&&(L.string(s.variableName)||s.variableName===void 0)}e.is=r})(wc||(wc={}));var gc;(function(e){function t(o,s){return{range:o,expression:s}}e.create=t;function r(o){let s=o;return s!=null&&me.is(s.range)&&(L.string(s.expression)||s.expression===void 0)}e.is=r})(gc||(gc={}));var hc;(function(e){function t(o,s){return{frameId:o,stoppedLocation:s}}e.create=t;function r(o){let s=o;return L.defined(s)&&me.is(o.stoppedLocation)}e.is=r})(hc||(hc={}));var ws;(function(e){e.Type=1,e.Parameter=2;function t(r){return r===1||r===2}e.is=t})(ws||(ws={}));var gs;(function(e){function t(o){return{value:o}}e.create=t;function r(o){let s=o;return L.objectLiteral(s)&&(s.tooltip===void 0||L.string(s.tooltip)||Mr.is(s.tooltip))&&(s.location===void 0||Tn.is(s.location))&&(s.command===void 0||Kt.is(s.command))}e.is=r})(gs||(gs={}));var yc;(function(e){function t(o,s,a){let n={position:o,label:s};return a!==void 0&&(n.kind=a),n}e.create=t;function r(o){let s=o;return L.objectLiteral(s)&&Be.is(s.position)&&(L.string(s.label)||L.typedArray(s.label,gs.is))&&(s.kind===void 0||ws.is(s.kind))&&s.textEdits===void 0||L.typedArray(s.textEdits,Xt.is)&&(s.tooltip===void 0||L.string(s.tooltip)||Mr.is(s.tooltip))&&(s.paddingLeft===void 0||L.boolean(s.paddingLeft))&&(s.paddingRight===void 0||L.boolean(s.paddingRight))}e.is=r})(yc||(yc={}));var bc;(function(e){function t(r){return{kind:"snippet",value:r}}e.createSnippet=t})(bc||(bc={}));var Sc;(function(e){function t(r,o,s,a){return{insertText:r,filterText:o,range:s,command:a}}e.create=t})(Sc||(Sc={}));var xc;(function(e){function t(r){return{items:r}}e.create=t})(xc||(xc={}));var vc;(function(e){e.Invoked=0,e.Automatic=1})(vc||(vc={}));var Cc;(function(e){function t(r,o){return{range:r,text:o}}e.create=t})(Cc||(Cc={}));var Lc;(function(e){function t(r,o){return{triggerKind:r,selectedCompletionInfo:o}}e.create=t})(Lc||(Lc={}));var _c;(function(e){function t(r){let o=r;return L.objectLiteral(o)&&ss.is(o.uri)&&L.string(o.name)}e.is=t})(_c||(_c={}));var Mc;(function(e){function t(a,n,l,p){return new hs(a,n,l,p)}e.create=t;function r(a){let n=a;return!!(L.defined(n)&&L.string(n.uri)&&(L.undefined(n.languageId)||L.string(n.languageId))&&L.uinteger(n.lineCount)&&L.func(n.getText)&&L.func(n.positionAt)&&L.func(n.offsetAt))}e.is=r;function o(a,n){let l=a.getText(),p=s(n,(h,g)=>{let y=h.range.start.line-g.range.start.line;return y===0?h.range.start.character-g.range.start.character:y}),m=l.length;for(let h=p.length-1;h>=0;h--){let g=p[h],y=a.offsetAt(g.range.start),b=a.offsetAt(g.range.end);if(b<=m)l=l.substring(0,y)+g.newText+l.substring(b,l.length);else throw new Error("Overlapping edit");m=y}return l}e.applyEdits=o;function s(a,n){if(a.length<=1)return a;let l=a.length/2|0,p=a.slice(0,l),m=a.slice(l);s(p,n),s(m,n);let h=0,g=0,y=0;for(;h<p.length&&g<m.length;)n(p[h],m[g])<=0?a[y++]=p[h++]:a[y++]=m[g++];for(;h<p.length;)a[y++]=p[h++];for(;g<m.length;)a[y++]=m[g++];return a}})(Mc||(Mc={}));var hs=class{constructor(t,r,o,s){this._uri=t,this._languageId=r,this._version=o,this._content=s,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let r=this.offsetAt(t.start),o=this.offsetAt(t.end);return this._content.substring(r,o)}return this._content}update(t,r){this._content=t.text,this._version=r,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],r=this._content,o=!0;for(let s=0;s<r.length;s++){o&&(t.push(s),o=!1);let a=r.charAt(s);o=a==="\r"||a===`
|
|
12
|
-
`,
|
|
13
|
-
`&&
|
|
148
|
+
`))}},Oa=class{constructor(t){this.value=t}},Xk=2,Qk=(e,t)=>{if(e instanceof Oa)t(e);else for(let r=0;r<e.length;r++){let n=e[r];n&&t(n)}},dr=class{constructor(t){var r,n,i,o,s;this._size=0,this._options=t,this._leakageMon=t5>0||!((r=this._options)===null||r===void 0)&&r.leakWarningThreshold?new ry((i=(n=this._options)===null||n===void 0?void 0:n.leakWarningThreshold)!==null&&i!==void 0?i:t5):void 0,this._perfMon=!((o=this._options)===null||o===void 0)&&o._profName?new kc(this._options._profName):void 0,this._deliveryQueue=(s=this._options)===null||s===void 0?void 0:s.deliveryQueue}dispose(){var t,r,n,i;if(!this._disposed){if(this._disposed=!0,((t=this._deliveryQueue)===null||t===void 0?void 0:t.current)===this&&this._deliveryQueue.reset(),this._listeners){if(e5){let o=this._listeners;queueMicrotask(()=>{Qk(o,s=>{var a;return(a=s.stack)===null||a===void 0?void 0:a.print()})})}this._listeners=void 0,this._size=0}(n=(r=this._options)===null||r===void 0?void 0:r.onDidRemoveLastListener)===null||n===void 0||n.call(r),(i=this._leakageMon)===null||i===void 0||i.dispose()}}get event(){var t;return(t=this._event)!==null&&t!==void 0||(this._event=(r,n,i)=>{var o,s,a,u,d;if(this._leakageMon&&this._size>this._leakageMon.threshold*3)return console.warn(`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far`),hn.None;if(this._disposed)return hn.None;n&&(r=r.bind(n));let f=new Oa(r),m,w;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(f.stack=Nc.create(),m=this._leakageMon.check(f.stack,this._size+1)),e5&&(f.stack=w??Nc.create()),this._listeners?this._listeners instanceof Oa?((d=this._deliveryQueue)!==null&&d!==void 0||(this._deliveryQueue=new ny),this._listeners=[this._listeners,f]):this._listeners.push(f):((s=(o=this._options)===null||o===void 0?void 0:o.onWillAddFirstListener)===null||s===void 0||s.call(o,this),this._listeners=f,(u=(a=this._options)===null||a===void 0?void 0:a.onDidAddFirstListener)===null||u===void 0||u.call(a,this)),this._size++;let _=vs(()=>{m?.(),this._removeListener(f)});return i instanceof oo?i.add(_):Array.isArray(i)&&i.push(_),_}),this._event}_removeListener(t){var r,n,i,o;if((n=(r=this._options)===null||r===void 0?void 0:r.onWillRemoveListener)===null||n===void 0||n.call(r,this),!this._listeners)return;if(this._size===1){this._listeners=void 0,(o=(i=this._options)===null||i===void 0?void 0:i.onDidRemoveLastListener)===null||o===void 0||o.call(i,this),this._size=0;return}let s=this._listeners,a=s.indexOf(t);if(a===-1)throw console.log("disposed?",this._disposed),console.log("size?",this._size),console.log("arr?",JSON.stringify(this._listeners)),new Error("Attempted to dispose unknown listener");this._size--,s[a]=void 0;let u=this._deliveryQueue.current===this;if(this._size*Xk<=s.length){let d=0;for(let f=0;f<s.length;f++)s[f]?s[d++]=s[f]:u&&(this._deliveryQueue.end--,d<this._deliveryQueue.i&&this._deliveryQueue.i--);s.length=d}}_deliver(t,r){var n;if(!t)return;let i=((n=this._options)===null||n===void 0?void 0:n.onListenerError)||zm;if(!i){t.value(r);return}try{t.value(r)}catch(o){i(o)}}_deliverQueue(t){let r=t.current._listeners;for(;t.i<t.end;)this._deliver(r[t.i++],t.value);t.reset()}fire(t){var r,n,i,o;if(!((r=this._deliveryQueue)===null||r===void 0)&&r.current&&(this._deliverQueue(this._deliveryQueue),(n=this._perfMon)===null||n===void 0||n.stop()),(i=this._perfMon)===null||i===void 0||i.start(this._size),this._listeners)if(this._listeners instanceof Oa)this._deliver(this._listeners,t);else{let s=this._deliveryQueue;s.enqueue(this,t,this._listeners.length),this._deliverQueue(s)}(o=this._perfMon)===null||o===void 0||o.stop()}hasListeners(){return this._size>0}};var ny=class{constructor(){this.i=-1,this.end=0}enqueue(t,r,n){this.i=0,this.end=n,this.current=t,this.value=r}reset(){this.i=this.end,this.current=void 0,this.value=void 0}};function r5(e){return typeof e=="string"}function Kk(e){let t=[];for(;Object.prototype!==e;)t=t.concat(Object.getOwnPropertyNames(e)),e=Object.getPrototypeOf(e);return t}function Rc(e){let t=[];for(let r of Kk(e))typeof e[r]=="function"&&t.push(r);return t}function n5(e,t){let r=i=>function(){let o=Array.prototype.slice.call(arguments,0);return t(i,o)},n={};for(let i of e)n[i]=r(i);return n}var eN=typeof document<"u"&&document.location&&document.location.hash.indexOf("pseudo=true")>=0;function tN(e,t){let r;return t.length===0?r=e:r=e.replace(/\{(\d+)\}/g,(n,i)=>{let o=i[0],s=t[o],a=n;return typeof s=="string"?a=s:(typeof s=="number"||typeof s=="boolean"||s===void 0||s===null)&&(a=String(s)),a}),eN&&(r="\uFF3B"+r.replace(/[aouei]/g,"$&$&")+"\uFF3D"),r}function He(e,t,...r){return tN(t,r)}var iy,$a="en",jm=!1,Hm=!1,qm=!1,nN=!1,iN=!1,o5=!1,oN=!1,sN=!1,aN=!1,lN=!1,Bm,oy=$a,i5=$a,cN,Pn,Di=globalThis,fr;typeof Di.vscode<"u"&&typeof Di.vscode.process<"u"?fr=Di.vscode.process:typeof process<"u"&&(fr=process);var s5=typeof((iy=fr?.versions)===null||iy===void 0?void 0:iy.electron)=="string",uN=s5&&fr?.type==="renderer";if(typeof navigator=="object"&&!uN)Pn=navigator.userAgent,jm=Pn.indexOf("Windows")>=0,Hm=Pn.indexOf("Macintosh")>=0,sN=(Pn.indexOf("Macintosh")>=0||Pn.indexOf("iPad")>=0||Pn.indexOf("iPhone")>=0)&&!!navigator.maxTouchPoints&&navigator.maxTouchPoints>0,qm=Pn.indexOf("Linux")>=0,lN=Pn?.indexOf("Mobi")>=0,o5=!0,Bm=(He({key:"ensureLoaderPluginIsLoaded",comment:["{Locked}"]},"_"),void 0)||$a,oy=Bm,i5=navigator.language;else if(typeof fr=="object"){jm=fr.platform==="win32",Hm=fr.platform==="darwin",qm=fr.platform==="linux",nN=qm&&!!fr.env.SNAP&&!!fr.env.SNAP_REVISION,oN=s5,aN=!!fr.env.CI||!!fr.env.BUILD_ARTIFACTSTAGINGDIRECTORY,Bm=$a,oy=$a;let e=fr.env.VSCODE_NLS_CONFIG;if(e)try{let t=JSON.parse(e),r=t.availableLanguages["*"];Bm=t.locale,i5=t.osLocale,oy=r||$a,cN=t._translationsConfigFile}catch{}iN=!0}else console.error("Unable to resolve platform.");var sy=0;Hm?sy=1:jm?sy=3:qm&&(sy=2);var Ss=jm,a5=Hm;var dN=o5&&typeof Di.importScripts=="function",RZ=dN?Di.origin:void 0;var ti=Pn;var fN=typeof Di.postMessage=="function"&&!Di.importScripts,DZ=(()=>{if(fN){let e=[];Di.addEventListener("message",r=>{if(r.data&&r.data.vscodeScheduleAsyncWork)for(let n=0,i=e.length;n<i;n++){let o=e[n];if(o.id===r.data.vscodeScheduleAsyncWork){e.splice(n,1),o.callback();return}}});let t=0;return r=>{let n=++t;e.push({id:n,callback:r}),Di.postMessage({vscodeScheduleAsyncWork:n},"*")}}return e=>setTimeout(e)})();var pN=!!(ti&&ti.indexOf("Chrome")>=0),OZ=!!(ti&&ti.indexOf("Firefox")>=0),$Z=!!(!pN&&ti&&ti.indexOf("Safari")>=0),FZ=!!(ti&&ti.indexOf("Edg/")>=0),VZ=!!(ti&&ti.indexOf("Android")>=0);var Zm=class{constructor(t){this.fn=t,this.lastCache=void 0,this.lastArgKey=void 0}get(t){let r=JSON.stringify(t);return this.lastArgKey!==r&&(this.lastArgKey=r,this.lastCache=this.fn(t)),this.lastCache}};var Dc=class{constructor(t){this.executor=t,this._didRun=!1}get value(){if(!this._didRun)try{this._value=this.executor()}catch(t){this._error=t}finally{this._didRun=!0}if(this._error)throw this._error;return this._value}get rawValue(){return this._value}};var Fa;function l5(e){return e.replace(/[\\\{\}\*\+\?\|\^\$\.\[\]\(\)]/g,"\\$&")}function c5(e){return e.split(/\r\n|\r|\n/)}function u5(e){for(let t=0,r=e.length;t<r;t++){let n=e.charCodeAt(t);if(n!==32&&n!==9)return t}return-1}function d5(e,t=e.length-1){for(let r=t;r>=0;r--){let n=e.charCodeAt(r);if(n!==32&&n!==9)return r}return-1}function ly(e){return e>=65&&e<=90}function Va(e){return 55296<=e&&e<=56319}function Ym(e){return 56320<=e&&e<=57343}function cy(e,t){return(e-55296<<10)+(t-56320)+65536}function f5(e,t,r){let n=e.charCodeAt(r);if(Va(n)&&r+1<t){let i=e.charCodeAt(r+1);if(Ym(i))return cy(n,i)}return n}var mN=/^[\t\n\r\x20-\x7E]*$/;function p5(e){return mN.test(e)}var ay=class e{static getInstance(){return e._INSTANCE||(e._INSTANCE=new e),e._INSTANCE}constructor(){this._data=hN()}getGraphemeBreakType(t){if(t<32)return t===10?3:t===13?2:4;if(t<127)return 0;let r=this._data,n=r.length/3,i=1;for(;i<=n;)if(t<r[3*i])i=2*i;else if(t>r[3*i+1])i=2*i+1;else return r[3*i+2];return 0}};ay._INSTANCE=null;function hN(){return JSON.parse("[0,0,0,51229,51255,12,44061,44087,12,127462,127487,6,7083,7085,5,47645,47671,12,54813,54839,12,128678,128678,14,3270,3270,5,9919,9923,14,45853,45879,12,49437,49463,12,53021,53047,12,71216,71218,7,128398,128399,14,129360,129374,14,2519,2519,5,4448,4519,9,9742,9742,14,12336,12336,14,44957,44983,12,46749,46775,12,48541,48567,12,50333,50359,12,52125,52151,12,53917,53943,12,69888,69890,5,73018,73018,5,127990,127990,14,128558,128559,14,128759,128760,14,129653,129655,14,2027,2035,5,2891,2892,7,3761,3761,5,6683,6683,5,8293,8293,4,9825,9826,14,9999,9999,14,43452,43453,5,44509,44535,12,45405,45431,12,46301,46327,12,47197,47223,12,48093,48119,12,48989,49015,12,49885,49911,12,50781,50807,12,51677,51703,12,52573,52599,12,53469,53495,12,54365,54391,12,65279,65279,4,70471,70472,7,72145,72147,7,119173,119179,5,127799,127818,14,128240,128244,14,128512,128512,14,128652,128652,14,128721,128722,14,129292,129292,14,129445,129450,14,129734,129743,14,1476,1477,5,2366,2368,7,2750,2752,7,3076,3076,5,3415,3415,5,4141,4144,5,6109,6109,5,6964,6964,5,7394,7400,5,9197,9198,14,9770,9770,14,9877,9877,14,9968,9969,14,10084,10084,14,43052,43052,5,43713,43713,5,44285,44311,12,44733,44759,12,45181,45207,12,45629,45655,12,46077,46103,12,46525,46551,12,46973,46999,12,47421,47447,12,47869,47895,12,48317,48343,12,48765,48791,12,49213,49239,12,49661,49687,12,50109,50135,12,50557,50583,12,51005,51031,12,51453,51479,12,51901,51927,12,52349,52375,12,52797,52823,12,53245,53271,12,53693,53719,12,54141,54167,12,54589,54615,12,55037,55063,12,69506,69509,5,70191,70193,5,70841,70841,7,71463,71467,5,72330,72342,5,94031,94031,5,123628,123631,5,127763,127765,14,127941,127941,14,128043,128062,14,128302,128317,14,128465,128467,14,128539,128539,14,128640,128640,14,128662,128662,14,128703,128703,14,128745,128745,14,129004,129007,14,129329,129330,14,129402,129402,14,129483,129483,14,129686,129704,14,130048,131069,14,173,173,4,1757,1757,1,2200,2207,5,2434,2435,7,2631,2632,5,2817,2817,5,3008,3008,5,3201,3201,5,3387,3388,5,3542,3542,5,3902,3903,7,4190,4192,5,6002,6003,5,6439,6440,5,6765,6770,7,7019,7027,5,7154,7155,7,8205,8205,13,8505,8505,14,9654,9654,14,9757,9757,14,9792,9792,14,9852,9853,14,9890,9894,14,9937,9937,14,9981,9981,14,10035,10036,14,11035,11036,14,42654,42655,5,43346,43347,7,43587,43587,5,44006,44007,7,44173,44199,12,44397,44423,12,44621,44647,12,44845,44871,12,45069,45095,12,45293,45319,12,45517,45543,12,45741,45767,12,45965,45991,12,46189,46215,12,46413,46439,12,46637,46663,12,46861,46887,12,47085,47111,12,47309,47335,12,47533,47559,12,47757,47783,12,47981,48007,12,48205,48231,12,48429,48455,12,48653,48679,12,48877,48903,12,49101,49127,12,49325,49351,12,49549,49575,12,49773,49799,12,49997,50023,12,50221,50247,12,50445,50471,12,50669,50695,12,50893,50919,12,51117,51143,12,51341,51367,12,51565,51591,12,51789,51815,12,52013,52039,12,52237,52263,12,52461,52487,12,52685,52711,12,52909,52935,12,53133,53159,12,53357,53383,12,53581,53607,12,53805,53831,12,54029,54055,12,54253,54279,12,54477,54503,12,54701,54727,12,54925,54951,12,55149,55175,12,68101,68102,5,69762,69762,7,70067,70069,7,70371,70378,5,70720,70721,7,71087,71087,5,71341,71341,5,71995,71996,5,72249,72249,7,72850,72871,5,73109,73109,5,118576,118598,5,121505,121519,5,127245,127247,14,127568,127569,14,127777,127777,14,127872,127891,14,127956,127967,14,128015,128016,14,128110,128172,14,128259,128259,14,128367,128368,14,128424,128424,14,128488,128488,14,128530,128532,14,128550,128551,14,128566,128566,14,128647,128647,14,128656,128656,14,128667,128673,14,128691,128693,14,128715,128715,14,128728,128732,14,128752,128752,14,128765,128767,14,129096,129103,14,129311,129311,14,129344,129349,14,129394,129394,14,129413,129425,14,129466,129471,14,129511,129535,14,129664,129666,14,129719,129722,14,129760,129767,14,917536,917631,5,13,13,2,1160,1161,5,1564,1564,4,1807,1807,1,2085,2087,5,2307,2307,7,2382,2383,7,2497,2500,5,2563,2563,7,2677,2677,5,2763,2764,7,2879,2879,5,2914,2915,5,3021,3021,5,3142,3144,5,3263,3263,5,3285,3286,5,3398,3400,7,3530,3530,5,3633,3633,5,3864,3865,5,3974,3975,5,4155,4156,7,4229,4230,5,5909,5909,7,6078,6085,7,6277,6278,5,6451,6456,7,6744,6750,5,6846,6846,5,6972,6972,5,7074,7077,5,7146,7148,7,7222,7223,5,7416,7417,5,8234,8238,4,8417,8417,5,9000,9000,14,9203,9203,14,9730,9731,14,9748,9749,14,9762,9763,14,9776,9783,14,9800,9811,14,9831,9831,14,9872,9873,14,9882,9882,14,9900,9903,14,9929,9933,14,9941,9960,14,9974,9974,14,9989,9989,14,10006,10006,14,10062,10062,14,10160,10160,14,11647,11647,5,12953,12953,14,43019,43019,5,43232,43249,5,43443,43443,5,43567,43568,7,43696,43696,5,43765,43765,7,44013,44013,5,44117,44143,12,44229,44255,12,44341,44367,12,44453,44479,12,44565,44591,12,44677,44703,12,44789,44815,12,44901,44927,12,45013,45039,12,45125,45151,12,45237,45263,12,45349,45375,12,45461,45487,12,45573,45599,12,45685,45711,12,45797,45823,12,45909,45935,12,46021,46047,12,46133,46159,12,46245,46271,12,46357,46383,12,46469,46495,12,46581,46607,12,46693,46719,12,46805,46831,12,46917,46943,12,47029,47055,12,47141,47167,12,47253,47279,12,47365,47391,12,47477,47503,12,47589,47615,12,47701,47727,12,47813,47839,12,47925,47951,12,48037,48063,12,48149,48175,12,48261,48287,12,48373,48399,12,48485,48511,12,48597,48623,12,48709,48735,12,48821,48847,12,48933,48959,12,49045,49071,12,49157,49183,12,49269,49295,12,49381,49407,12,49493,49519,12,49605,49631,12,49717,49743,12,49829,49855,12,49941,49967,12,50053,50079,12,50165,50191,12,50277,50303,12,50389,50415,12,50501,50527,12,50613,50639,12,50725,50751,12,50837,50863,12,50949,50975,12,51061,51087,12,51173,51199,12,51285,51311,12,51397,51423,12,51509,51535,12,51621,51647,12,51733,51759,12,51845,51871,12,51957,51983,12,52069,52095,12,52181,52207,12,52293,52319,12,52405,52431,12,52517,52543,12,52629,52655,12,52741,52767,12,52853,52879,12,52965,52991,12,53077,53103,12,53189,53215,12,53301,53327,12,53413,53439,12,53525,53551,12,53637,53663,12,53749,53775,12,53861,53887,12,53973,53999,12,54085,54111,12,54197,54223,12,54309,54335,12,54421,54447,12,54533,54559,12,54645,54671,12,54757,54783,12,54869,54895,12,54981,55007,12,55093,55119,12,55243,55291,10,66045,66045,5,68325,68326,5,69688,69702,5,69817,69818,5,69957,69958,7,70089,70092,5,70198,70199,5,70462,70462,5,70502,70508,5,70750,70750,5,70846,70846,7,71100,71101,5,71230,71230,7,71351,71351,5,71737,71738,5,72000,72000,7,72160,72160,5,72273,72278,5,72752,72758,5,72882,72883,5,73031,73031,5,73461,73462,7,94192,94193,7,119149,119149,7,121403,121452,5,122915,122916,5,126980,126980,14,127358,127359,14,127535,127535,14,127759,127759,14,127771,127771,14,127792,127793,14,127825,127867,14,127897,127899,14,127945,127945,14,127985,127986,14,128000,128007,14,128021,128021,14,128066,128100,14,128184,128235,14,128249,128252,14,128266,128276,14,128335,128335,14,128379,128390,14,128407,128419,14,128444,128444,14,128481,128481,14,128499,128499,14,128526,128526,14,128536,128536,14,128543,128543,14,128556,128556,14,128564,128564,14,128577,128580,14,128643,128645,14,128649,128649,14,128654,128654,14,128660,128660,14,128664,128664,14,128675,128675,14,128686,128689,14,128695,128696,14,128705,128709,14,128717,128719,14,128725,128725,14,128736,128741,14,128747,128748,14,128755,128755,14,128762,128762,14,128981,128991,14,129009,129023,14,129160,129167,14,129296,129304,14,129320,129327,14,129340,129342,14,129356,129356,14,129388,129392,14,129399,129400,14,129404,129407,14,129432,129442,14,129454,129455,14,129473,129474,14,129485,129487,14,129648,129651,14,129659,129660,14,129671,129679,14,129709,129711,14,129728,129730,14,129751,129753,14,129776,129782,14,917505,917505,4,917760,917999,5,10,10,3,127,159,4,768,879,5,1471,1471,5,1536,1541,1,1648,1648,5,1767,1768,5,1840,1866,5,2070,2073,5,2137,2139,5,2274,2274,1,2363,2363,7,2377,2380,7,2402,2403,5,2494,2494,5,2507,2508,7,2558,2558,5,2622,2624,7,2641,2641,5,2691,2691,7,2759,2760,5,2786,2787,5,2876,2876,5,2881,2884,5,2901,2902,5,3006,3006,5,3014,3016,7,3072,3072,5,3134,3136,5,3157,3158,5,3260,3260,5,3266,3266,5,3274,3275,7,3328,3329,5,3391,3392,7,3405,3405,5,3457,3457,5,3536,3537,7,3551,3551,5,3636,3642,5,3764,3772,5,3895,3895,5,3967,3967,7,3993,4028,5,4146,4151,5,4182,4183,7,4226,4226,5,4253,4253,5,4957,4959,5,5940,5940,7,6070,6070,7,6087,6088,7,6158,6158,4,6432,6434,5,6448,6449,7,6679,6680,5,6742,6742,5,6754,6754,5,6783,6783,5,6912,6915,5,6966,6970,5,6978,6978,5,7042,7042,7,7080,7081,5,7143,7143,7,7150,7150,7,7212,7219,5,7380,7392,5,7412,7412,5,8203,8203,4,8232,8232,4,8265,8265,14,8400,8412,5,8421,8432,5,8617,8618,14,9167,9167,14,9200,9200,14,9410,9410,14,9723,9726,14,9733,9733,14,9745,9745,14,9752,9752,14,9760,9760,14,9766,9766,14,9774,9774,14,9786,9786,14,9794,9794,14,9823,9823,14,9828,9828,14,9833,9850,14,9855,9855,14,9875,9875,14,9880,9880,14,9885,9887,14,9896,9897,14,9906,9916,14,9926,9927,14,9935,9935,14,9939,9939,14,9962,9962,14,9972,9972,14,9978,9978,14,9986,9986,14,9997,9997,14,10002,10002,14,10017,10017,14,10055,10055,14,10071,10071,14,10133,10135,14,10548,10549,14,11093,11093,14,12330,12333,5,12441,12442,5,42608,42610,5,43010,43010,5,43045,43046,5,43188,43203,7,43302,43309,5,43392,43394,5,43446,43449,5,43493,43493,5,43571,43572,7,43597,43597,7,43703,43704,5,43756,43757,5,44003,44004,7,44009,44010,7,44033,44059,12,44089,44115,12,44145,44171,12,44201,44227,12,44257,44283,12,44313,44339,12,44369,44395,12,44425,44451,12,44481,44507,12,44537,44563,12,44593,44619,12,44649,44675,12,44705,44731,12,44761,44787,12,44817,44843,12,44873,44899,12,44929,44955,12,44985,45011,12,45041,45067,12,45097,45123,12,45153,45179,12,45209,45235,12,45265,45291,12,45321,45347,12,45377,45403,12,45433,45459,12,45489,45515,12,45545,45571,12,45601,45627,12,45657,45683,12,45713,45739,12,45769,45795,12,45825,45851,12,45881,45907,12,45937,45963,12,45993,46019,12,46049,46075,12,46105,46131,12,46161,46187,12,46217,46243,12,46273,46299,12,46329,46355,12,46385,46411,12,46441,46467,12,46497,46523,12,46553,46579,12,46609,46635,12,46665,46691,12,46721,46747,12,46777,46803,12,46833,46859,12,46889,46915,12,46945,46971,12,47001,47027,12,47057,47083,12,47113,47139,12,47169,47195,12,47225,47251,12,47281,47307,12,47337,47363,12,47393,47419,12,47449,47475,12,47505,47531,12,47561,47587,12,47617,47643,12,47673,47699,12,47729,47755,12,47785,47811,12,47841,47867,12,47897,47923,12,47953,47979,12,48009,48035,12,48065,48091,12,48121,48147,12,48177,48203,12,48233,48259,12,48289,48315,12,48345,48371,12,48401,48427,12,48457,48483,12,48513,48539,12,48569,48595,12,48625,48651,12,48681,48707,12,48737,48763,12,48793,48819,12,48849,48875,12,48905,48931,12,48961,48987,12,49017,49043,12,49073,49099,12,49129,49155,12,49185,49211,12,49241,49267,12,49297,49323,12,49353,49379,12,49409,49435,12,49465,49491,12,49521,49547,12,49577,49603,12,49633,49659,12,49689,49715,12,49745,49771,12,49801,49827,12,49857,49883,12,49913,49939,12,49969,49995,12,50025,50051,12,50081,50107,12,50137,50163,12,50193,50219,12,50249,50275,12,50305,50331,12,50361,50387,12,50417,50443,12,50473,50499,12,50529,50555,12,50585,50611,12,50641,50667,12,50697,50723,12,50753,50779,12,50809,50835,12,50865,50891,12,50921,50947,12,50977,51003,12,51033,51059,12,51089,51115,12,51145,51171,12,51201,51227,12,51257,51283,12,51313,51339,12,51369,51395,12,51425,51451,12,51481,51507,12,51537,51563,12,51593,51619,12,51649,51675,12,51705,51731,12,51761,51787,12,51817,51843,12,51873,51899,12,51929,51955,12,51985,52011,12,52041,52067,12,52097,52123,12,52153,52179,12,52209,52235,12,52265,52291,12,52321,52347,12,52377,52403,12,52433,52459,12,52489,52515,12,52545,52571,12,52601,52627,12,52657,52683,12,52713,52739,12,52769,52795,12,52825,52851,12,52881,52907,12,52937,52963,12,52993,53019,12,53049,53075,12,53105,53131,12,53161,53187,12,53217,53243,12,53273,53299,12,53329,53355,12,53385,53411,12,53441,53467,12,53497,53523,12,53553,53579,12,53609,53635,12,53665,53691,12,53721,53747,12,53777,53803,12,53833,53859,12,53889,53915,12,53945,53971,12,54001,54027,12,54057,54083,12,54113,54139,12,54169,54195,12,54225,54251,12,54281,54307,12,54337,54363,12,54393,54419,12,54449,54475,12,54505,54531,12,54561,54587,12,54617,54643,12,54673,54699,12,54729,54755,12,54785,54811,12,54841,54867,12,54897,54923,12,54953,54979,12,55009,55035,12,55065,55091,12,55121,55147,12,55177,55203,12,65024,65039,5,65520,65528,4,66422,66426,5,68152,68154,5,69291,69292,5,69633,69633,5,69747,69748,5,69811,69814,5,69826,69826,5,69932,69932,7,70016,70017,5,70079,70080,7,70095,70095,5,70196,70196,5,70367,70367,5,70402,70403,7,70464,70464,5,70487,70487,5,70709,70711,7,70725,70725,7,70833,70834,7,70843,70844,7,70849,70849,7,71090,71093,5,71103,71104,5,71227,71228,7,71339,71339,5,71344,71349,5,71458,71461,5,71727,71735,5,71985,71989,7,71998,71998,5,72002,72002,7,72154,72155,5,72193,72202,5,72251,72254,5,72281,72283,5,72344,72345,5,72766,72766,7,72874,72880,5,72885,72886,5,73023,73029,5,73104,73105,5,73111,73111,5,92912,92916,5,94095,94098,5,113824,113827,4,119142,119142,7,119155,119162,4,119362,119364,5,121476,121476,5,122888,122904,5,123184,123190,5,125252,125258,5,127183,127183,14,127340,127343,14,127377,127386,14,127491,127503,14,127548,127551,14,127744,127756,14,127761,127761,14,127769,127769,14,127773,127774,14,127780,127788,14,127796,127797,14,127820,127823,14,127869,127869,14,127894,127895,14,127902,127903,14,127943,127943,14,127947,127950,14,127972,127972,14,127988,127988,14,127992,127994,14,128009,128011,14,128019,128019,14,128023,128041,14,128064,128064,14,128102,128107,14,128174,128181,14,128238,128238,14,128246,128247,14,128254,128254,14,128264,128264,14,128278,128299,14,128329,128330,14,128348,128359,14,128371,128377,14,128392,128393,14,128401,128404,14,128421,128421,14,128433,128434,14,128450,128452,14,128476,128478,14,128483,128483,14,128495,128495,14,128506,128506,14,128519,128520,14,128528,128528,14,128534,128534,14,128538,128538,14,128540,128542,14,128544,128549,14,128552,128555,14,128557,128557,14,128560,128563,14,128565,128565,14,128567,128576,14,128581,128591,14,128641,128642,14,128646,128646,14,128648,128648,14,128650,128651,14,128653,128653,14,128655,128655,14,128657,128659,14,128661,128661,14,128663,128663,14,128665,128666,14,128674,128674,14,128676,128677,14,128679,128685,14,128690,128690,14,128694,128694,14,128697,128702,14,128704,128704,14,128710,128714,14,128716,128716,14,128720,128720,14,128723,128724,14,128726,128727,14,128733,128735,14,128742,128744,14,128746,128746,14,128749,128751,14,128753,128754,14,128756,128758,14,128761,128761,14,128763,128764,14,128884,128895,14,128992,129003,14,129008,129008,14,129036,129039,14,129114,129119,14,129198,129279,14,129293,129295,14,129305,129310,14,129312,129319,14,129328,129328,14,129331,129338,14,129343,129343,14,129351,129355,14,129357,129359,14,129375,129387,14,129393,129393,14,129395,129398,14,129401,129401,14,129403,129403,14,129408,129412,14,129426,129431,14,129443,129444,14,129451,129453,14,129456,129465,14,129472,129472,14,129475,129482,14,129484,129484,14,129488,129510,14,129536,129647,14,129652,129652,14,129656,129658,14,129661,129663,14,129667,129670,14,129680,129685,14,129705,129708,14,129712,129718,14,129723,129727,14,129731,129733,14,129744,129750,14,129754,129759,14,129768,129775,14,129783,129791,14,917504,917504,4,917506,917535,4,917632,917759,4,918000,921599,4,0,9,4,11,12,4,14,31,4,169,169,14,174,174,14,1155,1159,5,1425,1469,5,1473,1474,5,1479,1479,5,1552,1562,5,1611,1631,5,1750,1756,5,1759,1764,5,1770,1773,5,1809,1809,5,1958,1968,5,2045,2045,5,2075,2083,5,2089,2093,5,2192,2193,1,2250,2273,5,2275,2306,5,2362,2362,5,2364,2364,5,2369,2376,5,2381,2381,5,2385,2391,5,2433,2433,5,2492,2492,5,2495,2496,7,2503,2504,7,2509,2509,5,2530,2531,5,2561,2562,5,2620,2620,5,2625,2626,5,2635,2637,5,2672,2673,5,2689,2690,5,2748,2748,5,2753,2757,5,2761,2761,7,2765,2765,5,2810,2815,5,2818,2819,7,2878,2878,5,2880,2880,7,2887,2888,7,2893,2893,5,2903,2903,5,2946,2946,5,3007,3007,7,3009,3010,7,3018,3020,7,3031,3031,5,3073,3075,7,3132,3132,5,3137,3140,7,3146,3149,5,3170,3171,5,3202,3203,7,3262,3262,7,3264,3265,7,3267,3268,7,3271,3272,7,3276,3277,5,3298,3299,5,3330,3331,7,3390,3390,5,3393,3396,5,3402,3404,7,3406,3406,1,3426,3427,5,3458,3459,7,3535,3535,5,3538,3540,5,3544,3550,7,3570,3571,7,3635,3635,7,3655,3662,5,3763,3763,7,3784,3789,5,3893,3893,5,3897,3897,5,3953,3966,5,3968,3972,5,3981,3991,5,4038,4038,5,4145,4145,7,4153,4154,5,4157,4158,5,4184,4185,5,4209,4212,5,4228,4228,7,4237,4237,5,4352,4447,8,4520,4607,10,5906,5908,5,5938,5939,5,5970,5971,5,6068,6069,5,6071,6077,5,6086,6086,5,6089,6099,5,6155,6157,5,6159,6159,5,6313,6313,5,6435,6438,7,6441,6443,7,6450,6450,5,6457,6459,5,6681,6682,7,6741,6741,7,6743,6743,7,6752,6752,5,6757,6764,5,6771,6780,5,6832,6845,5,6847,6862,5,6916,6916,7,6965,6965,5,6971,6971,7,6973,6977,7,6979,6980,7,7040,7041,5,7073,7073,7,7078,7079,7,7082,7082,7,7142,7142,5,7144,7145,5,7149,7149,5,7151,7153,5,7204,7211,7,7220,7221,7,7376,7378,5,7393,7393,7,7405,7405,5,7415,7415,7,7616,7679,5,8204,8204,5,8206,8207,4,8233,8233,4,8252,8252,14,8288,8292,4,8294,8303,4,8413,8416,5,8418,8420,5,8482,8482,14,8596,8601,14,8986,8987,14,9096,9096,14,9193,9196,14,9199,9199,14,9201,9202,14,9208,9210,14,9642,9643,14,9664,9664,14,9728,9729,14,9732,9732,14,9735,9741,14,9743,9744,14,9746,9746,14,9750,9751,14,9753,9756,14,9758,9759,14,9761,9761,14,9764,9765,14,9767,9769,14,9771,9773,14,9775,9775,14,9784,9785,14,9787,9791,14,9793,9793,14,9795,9799,14,9812,9822,14,9824,9824,14,9827,9827,14,9829,9830,14,9832,9832,14,9851,9851,14,9854,9854,14,9856,9861,14,9874,9874,14,9876,9876,14,9878,9879,14,9881,9881,14,9883,9884,14,9888,9889,14,9895,9895,14,9898,9899,14,9904,9905,14,9917,9918,14,9924,9925,14,9928,9928,14,9934,9934,14,9936,9936,14,9938,9938,14,9940,9940,14,9961,9961,14,9963,9967,14,9970,9971,14,9973,9973,14,9975,9977,14,9979,9980,14,9982,9985,14,9987,9988,14,9992,9996,14,9998,9998,14,10000,10001,14,10004,10004,14,10013,10013,14,10024,10024,14,10052,10052,14,10060,10060,14,10067,10069,14,10083,10083,14,10085,10087,14,10145,10145,14,10175,10175,14,11013,11015,14,11088,11088,14,11503,11505,5,11744,11775,5,12334,12335,5,12349,12349,14,12951,12951,14,42607,42607,5,42612,42621,5,42736,42737,5,43014,43014,5,43043,43044,7,43047,43047,7,43136,43137,7,43204,43205,5,43263,43263,5,43335,43345,5,43360,43388,8,43395,43395,7,43444,43445,7,43450,43451,7,43454,43456,7,43561,43566,5,43569,43570,5,43573,43574,5,43596,43596,5,43644,43644,5,43698,43700,5,43710,43711,5,43755,43755,7,43758,43759,7,43766,43766,5,44005,44005,5,44008,44008,5,44012,44012,7,44032,44032,11,44060,44060,11,44088,44088,11,44116,44116,11,44144,44144,11,44172,44172,11,44200,44200,11,44228,44228,11,44256,44256,11,44284,44284,11,44312,44312,11,44340,44340,11,44368,44368,11,44396,44396,11,44424,44424,11,44452,44452,11,44480,44480,11,44508,44508,11,44536,44536,11,44564,44564,11,44592,44592,11,44620,44620,11,44648,44648,11,44676,44676,11,44704,44704,11,44732,44732,11,44760,44760,11,44788,44788,11,44816,44816,11,44844,44844,11,44872,44872,11,44900,44900,11,44928,44928,11,44956,44956,11,44984,44984,11,45012,45012,11,45040,45040,11,45068,45068,11,45096,45096,11,45124,45124,11,45152,45152,11,45180,45180,11,45208,45208,11,45236,45236,11,45264,45264,11,45292,45292,11,45320,45320,11,45348,45348,11,45376,45376,11,45404,45404,11,45432,45432,11,45460,45460,11,45488,45488,11,45516,45516,11,45544,45544,11,45572,45572,11,45600,45600,11,45628,45628,11,45656,45656,11,45684,45684,11,45712,45712,11,45740,45740,11,45768,45768,11,45796,45796,11,45824,45824,11,45852,45852,11,45880,45880,11,45908,45908,11,45936,45936,11,45964,45964,11,45992,45992,11,46020,46020,11,46048,46048,11,46076,46076,11,46104,46104,11,46132,46132,11,46160,46160,11,46188,46188,11,46216,46216,11,46244,46244,11,46272,46272,11,46300,46300,11,46328,46328,11,46356,46356,11,46384,46384,11,46412,46412,11,46440,46440,11,46468,46468,11,46496,46496,11,46524,46524,11,46552,46552,11,46580,46580,11,46608,46608,11,46636,46636,11,46664,46664,11,46692,46692,11,46720,46720,11,46748,46748,11,46776,46776,11,46804,46804,11,46832,46832,11,46860,46860,11,46888,46888,11,46916,46916,11,46944,46944,11,46972,46972,11,47000,47000,11,47028,47028,11,47056,47056,11,47084,47084,11,47112,47112,11,47140,47140,11,47168,47168,11,47196,47196,11,47224,47224,11,47252,47252,11,47280,47280,11,47308,47308,11,47336,47336,11,47364,47364,11,47392,47392,11,47420,47420,11,47448,47448,11,47476,47476,11,47504,47504,11,47532,47532,11,47560,47560,11,47588,47588,11,47616,47616,11,47644,47644,11,47672,47672,11,47700,47700,11,47728,47728,11,47756,47756,11,47784,47784,11,47812,47812,11,47840,47840,11,47868,47868,11,47896,47896,11,47924,47924,11,47952,47952,11,47980,47980,11,48008,48008,11,48036,48036,11,48064,48064,11,48092,48092,11,48120,48120,11,48148,48148,11,48176,48176,11,48204,48204,11,48232,48232,11,48260,48260,11,48288,48288,11,48316,48316,11,48344,48344,11,48372,48372,11,48400,48400,11,48428,48428,11,48456,48456,11,48484,48484,11,48512,48512,11,48540,48540,11,48568,48568,11,48596,48596,11,48624,48624,11,48652,48652,11,48680,48680,11,48708,48708,11,48736,48736,11,48764,48764,11,48792,48792,11,48820,48820,11,48848,48848,11,48876,48876,11,48904,48904,11,48932,48932,11,48960,48960,11,48988,48988,11,49016,49016,11,49044,49044,11,49072,49072,11,49100,49100,11,49128,49128,11,49156,49156,11,49184,49184,11,49212,49212,11,49240,49240,11,49268,49268,11,49296,49296,11,49324,49324,11,49352,49352,11,49380,49380,11,49408,49408,11,49436,49436,11,49464,49464,11,49492,49492,11,49520,49520,11,49548,49548,11,49576,49576,11,49604,49604,11,49632,49632,11,49660,49660,11,49688,49688,11,49716,49716,11,49744,49744,11,49772,49772,11,49800,49800,11,49828,49828,11,49856,49856,11,49884,49884,11,49912,49912,11,49940,49940,11,49968,49968,11,49996,49996,11,50024,50024,11,50052,50052,11,50080,50080,11,50108,50108,11,50136,50136,11,50164,50164,11,50192,50192,11,50220,50220,11,50248,50248,11,50276,50276,11,50304,50304,11,50332,50332,11,50360,50360,11,50388,50388,11,50416,50416,11,50444,50444,11,50472,50472,11,50500,50500,11,50528,50528,11,50556,50556,11,50584,50584,11,50612,50612,11,50640,50640,11,50668,50668,11,50696,50696,11,50724,50724,11,50752,50752,11,50780,50780,11,50808,50808,11,50836,50836,11,50864,50864,11,50892,50892,11,50920,50920,11,50948,50948,11,50976,50976,11,51004,51004,11,51032,51032,11,51060,51060,11,51088,51088,11,51116,51116,11,51144,51144,11,51172,51172,11,51200,51200,11,51228,51228,11,51256,51256,11,51284,51284,11,51312,51312,11,51340,51340,11,51368,51368,11,51396,51396,11,51424,51424,11,51452,51452,11,51480,51480,11,51508,51508,11,51536,51536,11,51564,51564,11,51592,51592,11,51620,51620,11,51648,51648,11,51676,51676,11,51704,51704,11,51732,51732,11,51760,51760,11,51788,51788,11,51816,51816,11,51844,51844,11,51872,51872,11,51900,51900,11,51928,51928,11,51956,51956,11,51984,51984,11,52012,52012,11,52040,52040,11,52068,52068,11,52096,52096,11,52124,52124,11,52152,52152,11,52180,52180,11,52208,52208,11,52236,52236,11,52264,52264,11,52292,52292,11,52320,52320,11,52348,52348,11,52376,52376,11,52404,52404,11,52432,52432,11,52460,52460,11,52488,52488,11,52516,52516,11,52544,52544,11,52572,52572,11,52600,52600,11,52628,52628,11,52656,52656,11,52684,52684,11,52712,52712,11,52740,52740,11,52768,52768,11,52796,52796,11,52824,52824,11,52852,52852,11,52880,52880,11,52908,52908,11,52936,52936,11,52964,52964,11,52992,52992,11,53020,53020,11,53048,53048,11,53076,53076,11,53104,53104,11,53132,53132,11,53160,53160,11,53188,53188,11,53216,53216,11,53244,53244,11,53272,53272,11,53300,53300,11,53328,53328,11,53356,53356,11,53384,53384,11,53412,53412,11,53440,53440,11,53468,53468,11,53496,53496,11,53524,53524,11,53552,53552,11,53580,53580,11,53608,53608,11,53636,53636,11,53664,53664,11,53692,53692,11,53720,53720,11,53748,53748,11,53776,53776,11,53804,53804,11,53832,53832,11,53860,53860,11,53888,53888,11,53916,53916,11,53944,53944,11,53972,53972,11,54000,54000,11,54028,54028,11,54056,54056,11,54084,54084,11,54112,54112,11,54140,54140,11,54168,54168,11,54196,54196,11,54224,54224,11,54252,54252,11,54280,54280,11,54308,54308,11,54336,54336,11,54364,54364,11,54392,54392,11,54420,54420,11,54448,54448,11,54476,54476,11,54504,54504,11,54532,54532,11,54560,54560,11,54588,54588,11,54616,54616,11,54644,54644,11,54672,54672,11,54700,54700,11,54728,54728,11,54756,54756,11,54784,54784,11,54812,54812,11,54840,54840,11,54868,54868,11,54896,54896,11,54924,54924,11,54952,54952,11,54980,54980,11,55008,55008,11,55036,55036,11,55064,55064,11,55092,55092,11,55120,55120,11,55148,55148,11,55176,55176,11,55216,55238,9,64286,64286,5,65056,65071,5,65438,65439,5,65529,65531,4,66272,66272,5,68097,68099,5,68108,68111,5,68159,68159,5,68900,68903,5,69446,69456,5,69632,69632,7,69634,69634,7,69744,69744,5,69759,69761,5,69808,69810,7,69815,69816,7,69821,69821,1,69837,69837,1,69927,69931,5,69933,69940,5,70003,70003,5,70018,70018,7,70070,70078,5,70082,70083,1,70094,70094,7,70188,70190,7,70194,70195,7,70197,70197,7,70206,70206,5,70368,70370,7,70400,70401,5,70459,70460,5,70463,70463,7,70465,70468,7,70475,70477,7,70498,70499,7,70512,70516,5,70712,70719,5,70722,70724,5,70726,70726,5,70832,70832,5,70835,70840,5,70842,70842,5,70845,70845,5,70847,70848,5,70850,70851,5,71088,71089,7,71096,71099,7,71102,71102,7,71132,71133,5,71219,71226,5,71229,71229,5,71231,71232,5,71340,71340,7,71342,71343,7,71350,71350,7,71453,71455,5,71462,71462,7,71724,71726,7,71736,71736,7,71984,71984,5,71991,71992,7,71997,71997,7,71999,71999,1,72001,72001,1,72003,72003,5,72148,72151,5,72156,72159,7,72164,72164,7,72243,72248,5,72250,72250,1,72263,72263,5,72279,72280,7,72324,72329,1,72343,72343,7,72751,72751,7,72760,72765,5,72767,72767,5,72873,72873,7,72881,72881,7,72884,72884,7,73009,73014,5,73020,73021,5,73030,73030,1,73098,73102,7,73107,73108,7,73110,73110,7,73459,73460,5,78896,78904,4,92976,92982,5,94033,94087,7,94180,94180,5,113821,113822,5,118528,118573,5,119141,119141,5,119143,119145,5,119150,119154,5,119163,119170,5,119210,119213,5,121344,121398,5,121461,121461,5,121499,121503,5,122880,122886,5,122907,122913,5,122918,122922,5,123566,123566,5,125136,125142,5,126976,126979,14,126981,127182,14,127184,127231,14,127279,127279,14,127344,127345,14,127374,127374,14,127405,127461,14,127489,127490,14,127514,127514,14,127538,127546,14,127561,127567,14,127570,127743,14,127757,127758,14,127760,127760,14,127762,127762,14,127766,127768,14,127770,127770,14,127772,127772,14,127775,127776,14,127778,127779,14,127789,127791,14,127794,127795,14,127798,127798,14,127819,127819,14,127824,127824,14,127868,127868,14,127870,127871,14,127892,127893,14,127896,127896,14,127900,127901,14,127904,127940,14,127942,127942,14,127944,127944,14,127946,127946,14,127951,127955,14,127968,127971,14,127973,127984,14,127987,127987,14,127989,127989,14,127991,127991,14,127995,127999,5,128008,128008,14,128012,128014,14,128017,128018,14,128020,128020,14,128022,128022,14,128042,128042,14,128063,128063,14,128065,128065,14,128101,128101,14,128108,128109,14,128173,128173,14,128182,128183,14,128236,128237,14,128239,128239,14,128245,128245,14,128248,128248,14,128253,128253,14,128255,128258,14,128260,128263,14,128265,128265,14,128277,128277,14,128300,128301,14,128326,128328,14,128331,128334,14,128336,128347,14,128360,128366,14,128369,128370,14,128378,128378,14,128391,128391,14,128394,128397,14,128400,128400,14,128405,128406,14,128420,128420,14,128422,128423,14,128425,128432,14,128435,128443,14,128445,128449,14,128453,128464,14,128468,128475,14,128479,128480,14,128482,128482,14,128484,128487,14,128489,128494,14,128496,128498,14,128500,128505,14,128507,128511,14,128513,128518,14,128521,128525,14,128527,128527,14,128529,128529,14,128533,128533,14,128535,128535,14,128537,128537,14]")}var ri=class{static getInstance(t){return Fa.cache.get(Array.from(t))}static getLocales(){return Fa._locales.value}constructor(t){this.confusableDictionary=t}isAmbiguous(t){return this.confusableDictionary.has(t)}getPrimaryConfusable(t){return this.confusableDictionary.get(t)}getConfusableCodePoints(){return new Set(this.confusableDictionary.keys())}};Fa=ri;ri.ambiguousCharacterData=new Dc(()=>JSON.parse('{"_common":[8232,32,8233,32,5760,32,8192,32,8193,32,8194,32,8195,32,8196,32,8197,32,8198,32,8200,32,8201,32,8202,32,8287,32,8199,32,8239,32,2042,95,65101,95,65102,95,65103,95,8208,45,8209,45,8210,45,65112,45,1748,45,8259,45,727,45,8722,45,10134,45,11450,45,1549,44,1643,44,8218,44,184,44,42233,44,894,59,2307,58,2691,58,1417,58,1795,58,1796,58,5868,58,65072,58,6147,58,6153,58,8282,58,1475,58,760,58,42889,58,8758,58,720,58,42237,58,451,33,11601,33,660,63,577,63,2429,63,5038,63,42731,63,119149,46,8228,46,1793,46,1794,46,42510,46,68176,46,1632,46,1776,46,42232,46,1373,96,65287,96,8219,96,8242,96,1370,96,1523,96,8175,96,65344,96,900,96,8189,96,8125,96,8127,96,8190,96,697,96,884,96,712,96,714,96,715,96,756,96,699,96,701,96,700,96,702,96,42892,96,1497,96,2036,96,2037,96,5194,96,5836,96,94033,96,94034,96,65339,91,10088,40,10098,40,12308,40,64830,40,65341,93,10089,41,10099,41,12309,41,64831,41,10100,123,119060,123,10101,125,65342,94,8270,42,1645,42,8727,42,66335,42,5941,47,8257,47,8725,47,8260,47,9585,47,10187,47,10744,47,119354,47,12755,47,12339,47,11462,47,20031,47,12035,47,65340,92,65128,92,8726,92,10189,92,10741,92,10745,92,119311,92,119355,92,12756,92,20022,92,12034,92,42872,38,708,94,710,94,5869,43,10133,43,66203,43,8249,60,10094,60,706,60,119350,60,5176,60,5810,60,5120,61,11840,61,12448,61,42239,61,8250,62,10095,62,707,62,119351,62,5171,62,94015,62,8275,126,732,126,8128,126,8764,126,65372,124,65293,45,120784,50,120794,50,120804,50,120814,50,120824,50,130034,50,42842,50,423,50,1000,50,42564,50,5311,50,42735,50,119302,51,120785,51,120795,51,120805,51,120815,51,120825,51,130035,51,42923,51,540,51,439,51,42858,51,11468,51,1248,51,94011,51,71882,51,120786,52,120796,52,120806,52,120816,52,120826,52,130036,52,5070,52,71855,52,120787,53,120797,53,120807,53,120817,53,120827,53,130037,53,444,53,71867,53,120788,54,120798,54,120808,54,120818,54,120828,54,130038,54,11474,54,5102,54,71893,54,119314,55,120789,55,120799,55,120809,55,120819,55,120829,55,130039,55,66770,55,71878,55,2819,56,2538,56,2666,56,125131,56,120790,56,120800,56,120810,56,120820,56,120830,56,130040,56,547,56,546,56,66330,56,2663,57,2920,57,2541,57,3437,57,120791,57,120801,57,120811,57,120821,57,120831,57,130041,57,42862,57,11466,57,71884,57,71852,57,71894,57,9082,97,65345,97,119834,97,119886,97,119938,97,119990,97,120042,97,120094,97,120146,97,120198,97,120250,97,120302,97,120354,97,120406,97,120458,97,593,97,945,97,120514,97,120572,97,120630,97,120688,97,120746,97,65313,65,119808,65,119860,65,119912,65,119964,65,120016,65,120068,65,120120,65,120172,65,120224,65,120276,65,120328,65,120380,65,120432,65,913,65,120488,65,120546,65,120604,65,120662,65,120720,65,5034,65,5573,65,42222,65,94016,65,66208,65,119835,98,119887,98,119939,98,119991,98,120043,98,120095,98,120147,98,120199,98,120251,98,120303,98,120355,98,120407,98,120459,98,388,98,5071,98,5234,98,5551,98,65314,66,8492,66,119809,66,119861,66,119913,66,120017,66,120069,66,120121,66,120173,66,120225,66,120277,66,120329,66,120381,66,120433,66,42932,66,914,66,120489,66,120547,66,120605,66,120663,66,120721,66,5108,66,5623,66,42192,66,66178,66,66209,66,66305,66,65347,99,8573,99,119836,99,119888,99,119940,99,119992,99,120044,99,120096,99,120148,99,120200,99,120252,99,120304,99,120356,99,120408,99,120460,99,7428,99,1010,99,11429,99,43951,99,66621,99,128844,67,71922,67,71913,67,65315,67,8557,67,8450,67,8493,67,119810,67,119862,67,119914,67,119966,67,120018,67,120174,67,120226,67,120278,67,120330,67,120382,67,120434,67,1017,67,11428,67,5087,67,42202,67,66210,67,66306,67,66581,67,66844,67,8574,100,8518,100,119837,100,119889,100,119941,100,119993,100,120045,100,120097,100,120149,100,120201,100,120253,100,120305,100,120357,100,120409,100,120461,100,1281,100,5095,100,5231,100,42194,100,8558,68,8517,68,119811,68,119863,68,119915,68,119967,68,120019,68,120071,68,120123,68,120175,68,120227,68,120279,68,120331,68,120383,68,120435,68,5024,68,5598,68,5610,68,42195,68,8494,101,65349,101,8495,101,8519,101,119838,101,119890,101,119942,101,120046,101,120098,101,120150,101,120202,101,120254,101,120306,101,120358,101,120410,101,120462,101,43826,101,1213,101,8959,69,65317,69,8496,69,119812,69,119864,69,119916,69,120020,69,120072,69,120124,69,120176,69,120228,69,120280,69,120332,69,120384,69,120436,69,917,69,120492,69,120550,69,120608,69,120666,69,120724,69,11577,69,5036,69,42224,69,71846,69,71854,69,66182,69,119839,102,119891,102,119943,102,119995,102,120047,102,120099,102,120151,102,120203,102,120255,102,120307,102,120359,102,120411,102,120463,102,43829,102,42905,102,383,102,7837,102,1412,102,119315,70,8497,70,119813,70,119865,70,119917,70,120021,70,120073,70,120125,70,120177,70,120229,70,120281,70,120333,70,120385,70,120437,70,42904,70,988,70,120778,70,5556,70,42205,70,71874,70,71842,70,66183,70,66213,70,66853,70,65351,103,8458,103,119840,103,119892,103,119944,103,120048,103,120100,103,120152,103,120204,103,120256,103,120308,103,120360,103,120412,103,120464,103,609,103,7555,103,397,103,1409,103,119814,71,119866,71,119918,71,119970,71,120022,71,120074,71,120126,71,120178,71,120230,71,120282,71,120334,71,120386,71,120438,71,1292,71,5056,71,5107,71,42198,71,65352,104,8462,104,119841,104,119945,104,119997,104,120049,104,120101,104,120153,104,120205,104,120257,104,120309,104,120361,104,120413,104,120465,104,1211,104,1392,104,5058,104,65320,72,8459,72,8460,72,8461,72,119815,72,119867,72,119919,72,120023,72,120179,72,120231,72,120283,72,120335,72,120387,72,120439,72,919,72,120494,72,120552,72,120610,72,120668,72,120726,72,11406,72,5051,72,5500,72,42215,72,66255,72,731,105,9075,105,65353,105,8560,105,8505,105,8520,105,119842,105,119894,105,119946,105,119998,105,120050,105,120102,105,120154,105,120206,105,120258,105,120310,105,120362,105,120414,105,120466,105,120484,105,618,105,617,105,953,105,8126,105,890,105,120522,105,120580,105,120638,105,120696,105,120754,105,1110,105,42567,105,1231,105,43893,105,5029,105,71875,105,65354,106,8521,106,119843,106,119895,106,119947,106,119999,106,120051,106,120103,106,120155,106,120207,106,120259,106,120311,106,120363,106,120415,106,120467,106,1011,106,1112,106,65322,74,119817,74,119869,74,119921,74,119973,74,120025,74,120077,74,120129,74,120181,74,120233,74,120285,74,120337,74,120389,74,120441,74,42930,74,895,74,1032,74,5035,74,5261,74,42201,74,119844,107,119896,107,119948,107,120000,107,120052,107,120104,107,120156,107,120208,107,120260,107,120312,107,120364,107,120416,107,120468,107,8490,75,65323,75,119818,75,119870,75,119922,75,119974,75,120026,75,120078,75,120130,75,120182,75,120234,75,120286,75,120338,75,120390,75,120442,75,922,75,120497,75,120555,75,120613,75,120671,75,120729,75,11412,75,5094,75,5845,75,42199,75,66840,75,1472,108,8739,73,9213,73,65512,73,1633,108,1777,73,66336,108,125127,108,120783,73,120793,73,120803,73,120813,73,120823,73,130033,73,65321,73,8544,73,8464,73,8465,73,119816,73,119868,73,119920,73,120024,73,120128,73,120180,73,120232,73,120284,73,120336,73,120388,73,120440,73,65356,108,8572,73,8467,108,119845,108,119897,108,119949,108,120001,108,120053,108,120105,73,120157,73,120209,73,120261,73,120313,73,120365,73,120417,73,120469,73,448,73,120496,73,120554,73,120612,73,120670,73,120728,73,11410,73,1030,73,1216,73,1493,108,1503,108,1575,108,126464,108,126592,108,65166,108,65165,108,1994,108,11599,73,5825,73,42226,73,93992,73,66186,124,66313,124,119338,76,8556,76,8466,76,119819,76,119871,76,119923,76,120027,76,120079,76,120131,76,120183,76,120235,76,120287,76,120339,76,120391,76,120443,76,11472,76,5086,76,5290,76,42209,76,93974,76,71843,76,71858,76,66587,76,66854,76,65325,77,8559,77,8499,77,119820,77,119872,77,119924,77,120028,77,120080,77,120132,77,120184,77,120236,77,120288,77,120340,77,120392,77,120444,77,924,77,120499,77,120557,77,120615,77,120673,77,120731,77,1018,77,11416,77,5047,77,5616,77,5846,77,42207,77,66224,77,66321,77,119847,110,119899,110,119951,110,120003,110,120055,110,120107,110,120159,110,120211,110,120263,110,120315,110,120367,110,120419,110,120471,110,1400,110,1404,110,65326,78,8469,78,119821,78,119873,78,119925,78,119977,78,120029,78,120081,78,120185,78,120237,78,120289,78,120341,78,120393,78,120445,78,925,78,120500,78,120558,78,120616,78,120674,78,120732,78,11418,78,42208,78,66835,78,3074,111,3202,111,3330,111,3458,111,2406,111,2662,111,2790,111,3046,111,3174,111,3302,111,3430,111,3664,111,3792,111,4160,111,1637,111,1781,111,65359,111,8500,111,119848,111,119900,111,119952,111,120056,111,120108,111,120160,111,120212,111,120264,111,120316,111,120368,111,120420,111,120472,111,7439,111,7441,111,43837,111,959,111,120528,111,120586,111,120644,111,120702,111,120760,111,963,111,120532,111,120590,111,120648,111,120706,111,120764,111,11423,111,4351,111,1413,111,1505,111,1607,111,126500,111,126564,111,126596,111,65259,111,65260,111,65258,111,65257,111,1726,111,64428,111,64429,111,64427,111,64426,111,1729,111,64424,111,64425,111,64423,111,64422,111,1749,111,3360,111,4125,111,66794,111,71880,111,71895,111,66604,111,1984,79,2534,79,2918,79,12295,79,70864,79,71904,79,120782,79,120792,79,120802,79,120812,79,120822,79,130032,79,65327,79,119822,79,119874,79,119926,79,119978,79,120030,79,120082,79,120134,79,120186,79,120238,79,120290,79,120342,79,120394,79,120446,79,927,79,120502,79,120560,79,120618,79,120676,79,120734,79,11422,79,1365,79,11604,79,4816,79,2848,79,66754,79,42227,79,71861,79,66194,79,66219,79,66564,79,66838,79,9076,112,65360,112,119849,112,119901,112,119953,112,120005,112,120057,112,120109,112,120161,112,120213,112,120265,112,120317,112,120369,112,120421,112,120473,112,961,112,120530,112,120544,112,120588,112,120602,112,120646,112,120660,112,120704,112,120718,112,120762,112,120776,112,11427,112,65328,80,8473,80,119823,80,119875,80,119927,80,119979,80,120031,80,120083,80,120187,80,120239,80,120291,80,120343,80,120395,80,120447,80,929,80,120504,80,120562,80,120620,80,120678,80,120736,80,11426,80,5090,80,5229,80,42193,80,66197,80,119850,113,119902,113,119954,113,120006,113,120058,113,120110,113,120162,113,120214,113,120266,113,120318,113,120370,113,120422,113,120474,113,1307,113,1379,113,1382,113,8474,81,119824,81,119876,81,119928,81,119980,81,120032,81,120084,81,120188,81,120240,81,120292,81,120344,81,120396,81,120448,81,11605,81,119851,114,119903,114,119955,114,120007,114,120059,114,120111,114,120163,114,120215,114,120267,114,120319,114,120371,114,120423,114,120475,114,43847,114,43848,114,7462,114,11397,114,43905,114,119318,82,8475,82,8476,82,8477,82,119825,82,119877,82,119929,82,120033,82,120189,82,120241,82,120293,82,120345,82,120397,82,120449,82,422,82,5025,82,5074,82,66740,82,5511,82,42211,82,94005,82,65363,115,119852,115,119904,115,119956,115,120008,115,120060,115,120112,115,120164,115,120216,115,120268,115,120320,115,120372,115,120424,115,120476,115,42801,115,445,115,1109,115,43946,115,71873,115,66632,115,65331,83,119826,83,119878,83,119930,83,119982,83,120034,83,120086,83,120138,83,120190,83,120242,83,120294,83,120346,83,120398,83,120450,83,1029,83,1359,83,5077,83,5082,83,42210,83,94010,83,66198,83,66592,83,119853,116,119905,116,119957,116,120009,116,120061,116,120113,116,120165,116,120217,116,120269,116,120321,116,120373,116,120425,116,120477,116,8868,84,10201,84,128872,84,65332,84,119827,84,119879,84,119931,84,119983,84,120035,84,120087,84,120139,84,120191,84,120243,84,120295,84,120347,84,120399,84,120451,84,932,84,120507,84,120565,84,120623,84,120681,84,120739,84,11430,84,5026,84,42196,84,93962,84,71868,84,66199,84,66225,84,66325,84,119854,117,119906,117,119958,117,120010,117,120062,117,120114,117,120166,117,120218,117,120270,117,120322,117,120374,117,120426,117,120478,117,42911,117,7452,117,43854,117,43858,117,651,117,965,117,120534,117,120592,117,120650,117,120708,117,120766,117,1405,117,66806,117,71896,117,8746,85,8899,85,119828,85,119880,85,119932,85,119984,85,120036,85,120088,85,120140,85,120192,85,120244,85,120296,85,120348,85,120400,85,120452,85,1357,85,4608,85,66766,85,5196,85,42228,85,94018,85,71864,85,8744,118,8897,118,65366,118,8564,118,119855,118,119907,118,119959,118,120011,118,120063,118,120115,118,120167,118,120219,118,120271,118,120323,118,120375,118,120427,118,120479,118,7456,118,957,118,120526,118,120584,118,120642,118,120700,118,120758,118,1141,118,1496,118,71430,118,43945,118,71872,118,119309,86,1639,86,1783,86,8548,86,119829,86,119881,86,119933,86,119985,86,120037,86,120089,86,120141,86,120193,86,120245,86,120297,86,120349,86,120401,86,120453,86,1140,86,11576,86,5081,86,5167,86,42719,86,42214,86,93960,86,71840,86,66845,86,623,119,119856,119,119908,119,119960,119,120012,119,120064,119,120116,119,120168,119,120220,119,120272,119,120324,119,120376,119,120428,119,120480,119,7457,119,1121,119,1309,119,1377,119,71434,119,71438,119,71439,119,43907,119,71919,87,71910,87,119830,87,119882,87,119934,87,119986,87,120038,87,120090,87,120142,87,120194,87,120246,87,120298,87,120350,87,120402,87,120454,87,1308,87,5043,87,5076,87,42218,87,5742,120,10539,120,10540,120,10799,120,65368,120,8569,120,119857,120,119909,120,119961,120,120013,120,120065,120,120117,120,120169,120,120221,120,120273,120,120325,120,120377,120,120429,120,120481,120,5441,120,5501,120,5741,88,9587,88,66338,88,71916,88,65336,88,8553,88,119831,88,119883,88,119935,88,119987,88,120039,88,120091,88,120143,88,120195,88,120247,88,120299,88,120351,88,120403,88,120455,88,42931,88,935,88,120510,88,120568,88,120626,88,120684,88,120742,88,11436,88,11613,88,5815,88,42219,88,66192,88,66228,88,66327,88,66855,88,611,121,7564,121,65369,121,119858,121,119910,121,119962,121,120014,121,120066,121,120118,121,120170,121,120222,121,120274,121,120326,121,120378,121,120430,121,120482,121,655,121,7935,121,43866,121,947,121,8509,121,120516,121,120574,121,120632,121,120690,121,120748,121,1199,121,4327,121,71900,121,65337,89,119832,89,119884,89,119936,89,119988,89,120040,89,120092,89,120144,89,120196,89,120248,89,120300,89,120352,89,120404,89,120456,89,933,89,978,89,120508,89,120566,89,120624,89,120682,89,120740,89,11432,89,1198,89,5033,89,5053,89,42220,89,94019,89,71844,89,66226,89,119859,122,119911,122,119963,122,120015,122,120067,122,120119,122,120171,122,120223,122,120275,122,120327,122,120379,122,120431,122,120483,122,7458,122,43923,122,71876,122,66293,90,71909,90,65338,90,8484,90,8488,90,119833,90,119885,90,119937,90,119989,90,120041,90,120197,90,120249,90,120301,90,120353,90,120405,90,120457,90,918,90,120493,90,120551,90,120609,90,120667,90,120725,90,5059,90,42204,90,71849,90,65282,34,65284,36,65285,37,65286,38,65290,42,65291,43,65294,46,65295,47,65296,48,65297,49,65298,50,65299,51,65300,52,65301,53,65302,54,65303,55,65304,56,65305,57,65308,60,65309,61,65310,62,65312,64,65316,68,65318,70,65319,71,65324,76,65329,81,65330,82,65333,85,65334,86,65335,87,65343,95,65346,98,65348,100,65350,102,65355,107,65357,109,65358,110,65361,113,65362,114,65364,116,65365,117,65367,119,65370,122,65371,123,65373,125,119846,109],"_default":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"cs":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"de":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"es":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"fr":[65374,126,65306,58,65281,33,8216,96,8245,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"it":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ja":[8211,45,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65292,44,65307,59],"ko":[8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pl":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"pt-BR":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"qps-ploc":[160,32,8211,45,65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"ru":[65374,126,65306,58,65281,33,8216,96,8217,96,8245,96,180,96,12494,47,305,105,921,73,1009,112,215,120,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"tr":[160,32,8211,45,65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65288,40,65289,41,65292,44,65307,59,65311,63],"zh-hans":[65374,126,65306,58,65281,33,8245,96,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65288,40,65289,41],"zh-hant":[8211,45,65374,126,180,96,12494,47,1047,51,1073,54,1072,97,1040,65,1068,98,1042,66,1089,99,1057,67,1077,101,1045,69,1053,72,305,105,1050,75,921,73,1052,77,1086,111,1054,79,1009,112,1088,112,1056,80,1075,114,1058,84,215,120,1093,120,1061,88,1091,121,1059,89,65283,35,65307,59]}'));ri.cache=new Zm(e=>{function t(d){let f=new Map;for(let m=0;m<d.length;m+=2)f.set(d[m],d[m+1]);return f}function r(d,f){let m=new Map(d);for(let[w,_]of f)m.set(w,_);return m}function n(d,f){if(!d)return f;let m=new Map;for(let[w,_]of d)f.has(w)&&m.set(w,_);return m}let i=Fa.ambiguousCharacterData.value,o=e.filter(d=>!d.startsWith("_")&&d in i);o.length===0&&(o=["_default"]);let s;for(let d of o){let f=t(i[d]);s=n(s,f)}let a=t(i._common),u=r(a,s);return new Fa(u)});ri._locales=new Dc(()=>Object.keys(Fa.ambiguousCharacterData.value).filter(e=>!e.startsWith("_")));var xs=class e{static getRawData(){return JSON.parse("[9,10,11,12,13,32,127,160,173,847,1564,4447,4448,6068,6069,6155,6156,6157,6158,7355,7356,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8203,8204,8205,8206,8207,8234,8235,8236,8237,8238,8239,8287,8288,8289,8290,8291,8292,8293,8294,8295,8296,8297,8298,8299,8300,8301,8302,8303,10240,12288,12644,65024,65025,65026,65027,65028,65029,65030,65031,65032,65033,65034,65035,65036,65037,65038,65039,65279,65440,65520,65521,65522,65523,65524,65525,65526,65527,65528,65532,78844,119155,119156,119157,119158,119159,119160,119161,119162,917504,917505,917506,917507,917508,917509,917510,917511,917512,917513,917514,917515,917516,917517,917518,917519,917520,917521,917522,917523,917524,917525,917526,917527,917528,917529,917530,917531,917532,917533,917534,917535,917536,917537,917538,917539,917540,917541,917542,917543,917544,917545,917546,917547,917548,917549,917550,917551,917552,917553,917554,917555,917556,917557,917558,917559,917560,917561,917562,917563,917564,917565,917566,917567,917568,917569,917570,917571,917572,917573,917574,917575,917576,917577,917578,917579,917580,917581,917582,917583,917584,917585,917586,917587,917588,917589,917590,917591,917592,917593,917594,917595,917596,917597,917598,917599,917600,917601,917602,917603,917604,917605,917606,917607,917608,917609,917610,917611,917612,917613,917614,917615,917616,917617,917618,917619,917620,917621,917622,917623,917624,917625,917626,917627,917628,917629,917630,917631,917760,917761,917762,917763,917764,917765,917766,917767,917768,917769,917770,917771,917772,917773,917774,917775,917776,917777,917778,917779,917780,917781,917782,917783,917784,917785,917786,917787,917788,917789,917790,917791,917792,917793,917794,917795,917796,917797,917798,917799,917800,917801,917802,917803,917804,917805,917806,917807,917808,917809,917810,917811,917812,917813,917814,917815,917816,917817,917818,917819,917820,917821,917822,917823,917824,917825,917826,917827,917828,917829,917830,917831,917832,917833,917834,917835,917836,917837,917838,917839,917840,917841,917842,917843,917844,917845,917846,917847,917848,917849,917850,917851,917852,917853,917854,917855,917856,917857,917858,917859,917860,917861,917862,917863,917864,917865,917866,917867,917868,917869,917870,917871,917872,917873,917874,917875,917876,917877,917878,917879,917880,917881,917882,917883,917884,917885,917886,917887,917888,917889,917890,917891,917892,917893,917894,917895,917896,917897,917898,917899,917900,917901,917902,917903,917904,917905,917906,917907,917908,917909,917910,917911,917912,917913,917914,917915,917916,917917,917918,917919,917920,917921,917922,917923,917924,917925,917926,917927,917928,917929,917930,917931,917932,917933,917934,917935,917936,917937,917938,917939,917940,917941,917942,917943,917944,917945,917946,917947,917948,917949,917950,917951,917952,917953,917954,917955,917956,917957,917958,917959,917960,917961,917962,917963,917964,917965,917966,917967,917968,917969,917970,917971,917972,917973,917974,917975,917976,917977,917978,917979,917980,917981,917982,917983,917984,917985,917986,917987,917988,917989,917990,917991,917992,917993,917994,917995,917996,917997,917998,917999]")}static getData(){return this._data||(this._data=new Set(e.getRawData())),this._data}static isInvisibleCharacter(t){return e.getData().has(t)}static get codePoints(){return e.getData()}};xs._data=void 0;var gN="$initialize";var uy=class{constructor(t,r,n,i){this.vsWorker=t,this.req=r,this.method=n,this.args=i,this.type=0}},Jm=class{constructor(t,r,n,i){this.vsWorker=t,this.seq=r,this.res=n,this.err=i,this.type=1}},dy=class{constructor(t,r,n,i){this.vsWorker=t,this.req=r,this.eventName=n,this.arg=i,this.type=2}},fy=class{constructor(t,r,n){this.vsWorker=t,this.req=r,this.event=n,this.type=3}},py=class{constructor(t,r){this.vsWorker=t,this.req=r,this.type=4}},my=class{constructor(t){this._workerId=-1,this._handler=t,this._lastSentReq=0,this._pendingReplies=Object.create(null),this._pendingEmitters=new Map,this._pendingEvents=new Map}setWorkerId(t){this._workerId=t}sendMessage(t,r){let n=String(++this._lastSentReq);return new Promise((i,o)=>{this._pendingReplies[n]={resolve:i,reject:o},this._send(new uy(this._workerId,n,t,r))})}listen(t,r){let n=null,i=new dr({onWillAddFirstListener:()=>{n=String(++this._lastSentReq),this._pendingEmitters.set(n,i),this._send(new dy(this._workerId,n,t,r))},onDidRemoveLastListener:()=>{this._pendingEmitters.delete(n),this._send(new py(this._workerId,n)),n=null}});return i.event}handleMessage(t){!t||!t.vsWorker||this._workerId!==-1&&t.vsWorker!==this._workerId||this._handleMessage(t)}_handleMessage(t){switch(t.type){case 1:return this._handleReplyMessage(t);case 0:return this._handleRequestMessage(t);case 2:return this._handleSubscribeEventMessage(t);case 3:return this._handleEventMessage(t);case 4:return this._handleUnsubscribeEventMessage(t)}}_handleReplyMessage(t){if(!this._pendingReplies[t.seq]){console.warn("Got reply to unknown seq");return}let r=this._pendingReplies[t.seq];if(delete this._pendingReplies[t.seq],t.err){let n=t.err;t.err.$isError&&(n=new Error,n.name=t.err.name,n.message=t.err.message,n.stack=t.err.stack),r.reject(n);return}r.resolve(t.res)}_handleRequestMessage(t){let r=t.req;this._handler.handleMessage(t.method,t.args).then(i=>{this._send(new Jm(this._workerId,r,i,void 0))},i=>{i.detail instanceof Error&&(i.detail=Xw(i.detail)),this._send(new Jm(this._workerId,r,void 0,Xw(i)))})}_handleSubscribeEventMessage(t){let r=t.req,n=this._handler.handleEvent(t.eventName,t.arg)(i=>{this._send(new fy(this._workerId,r,i))});this._pendingEvents.set(r,n)}_handleEventMessage(t){if(!this._pendingEmitters.has(t.req)){console.warn("Got event for unknown req");return}this._pendingEmitters.get(t.req).fire(t.event)}_handleUnsubscribeEventMessage(t){if(!this._pendingEvents.has(t.req)){console.warn("Got unsubscribe for unknown req");return}this._pendingEvents.get(t.req).dispose(),this._pendingEvents.delete(t.req)}_send(t){let r=[];if(t.type===0)for(let n=0;n<t.args.length;n++)t.args[n]instanceof ArrayBuffer&&r.push(t.args[n]);else t.type===1&&t.res instanceof ArrayBuffer&&r.push(t.res);this._handler.sendMessage(t,r)}};function m5(e){return e[0]==="o"&&e[1]==="n"&&ly(e.charCodeAt(2))}function h5(e){return/^onDynamic/.test(e)&&ly(e.charCodeAt(9))}function wN(e,t,r){let n=s=>function(){let a=Array.prototype.slice.call(arguments,0);return t(s,a)},i=s=>function(a){return r(s,a)},o={};for(let s of e){if(h5(s)){o[s]=i(s);continue}if(m5(s)){o[s]=r(s,void 0);continue}o[s]=n(s)}return o}var Xm=class{constructor(t,r){this._requestHandlerFactory=r,this._requestHandler=null,this._protocol=new my({sendMessage:(n,i)=>{t(n,i)},handleMessage:(n,i)=>this._handleMessage(n,i),handleEvent:(n,i)=>this._handleEvent(n,i)})}onmessage(t){this._protocol.handleMessage(t)}_handleMessage(t,r){if(t===gN)return this.initialize(r[0],r[1],r[2],r[3]);if(!this._requestHandler||typeof this._requestHandler[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._requestHandler[t].apply(this._requestHandler,r))}catch(n){return Promise.reject(n)}}_handleEvent(t,r){if(!this._requestHandler)throw new Error("Missing requestHandler");if(h5(t)){let n=this._requestHandler[t].call(this._requestHandler,r);if(typeof n!="function")throw new Error(`Missing dynamic event ${t} on request handler.`);return n}if(m5(t)){let n=this._requestHandler[t];if(typeof n!="function")throw new Error(`Missing event ${t} on request handler.`);return n}throw new Error(`Malformed event name ${t}`)}initialize(t,r,n,i){this._protocol.setWorkerId(t);let a=wN(i,(u,d)=>this._protocol.sendMessage(u,d),(u,d)=>this._protocol.listen(u,d));return this._requestHandlerFactory?(this._requestHandler=this._requestHandlerFactory(a),Promise.resolve(Rc(this._requestHandler))):(r&&(typeof r.baseUrl<"u"&&delete r.baseUrl,typeof r.paths<"u"&&typeof r.paths.vs<"u"&&delete r.paths.vs,typeof r.trustedTypesPolicy!==void 0&&delete r.trustedTypesPolicy,r.catchError=!0,globalThis.require.config(r)),new Promise((u,d)=>{let f=globalThis.require;f([n],m=>{if(this._requestHandler=m.create(a),!this._requestHandler){d(new Error("No RequestHandler!"));return}u(Rc(this._requestHandler))},d)}))}};var Ln=class{constructor(t,r,n,i){this.originalStart=t,this.originalLength=r,this.modifiedStart=n,this.modifiedLength=i}getOriginalEnd(){return this.originalStart+this.originalLength}getModifiedEnd(){return this.modifiedStart+this.modifiedLength}};function g5(e,t){return(t<<5)-t+e|0}function y5(e,t){t=g5(149417,t);for(let r=0,n=e.length;r<n;r++)t=g5(e.charCodeAt(r),t);return t}function hy(e,t,r=32){let n=r-t,i=~((1<<n)-1);return(e<<t|(i&e)>>>n)>>>0}function w5(e,t=0,r=e.byteLength,n=0){for(let i=0;i<r;i++)e[t+i]=n}function yN(e,t,r="0"){for(;e.length<t;)e=r+e;return e}function $c(e,t=32){return e instanceof ArrayBuffer?Array.from(new Uint8Array(e)).map(r=>r.toString(16).padStart(2,"0")).join(""):yN((e>>>0).toString(16),t/4)}var gy=class e{constructor(){this._h0=1732584193,this._h1=4023233417,this._h2=2562383102,this._h3=271733878,this._h4=3285377520,this._buff=new Uint8Array(67),this._buffDV=new DataView(this._buff.buffer),this._buffLen=0,this._totalLen=0,this._leftoverHighSurrogate=0,this._finished=!1}update(t){let r=t.length;if(r===0)return;let n=this._buff,i=this._buffLen,o=this._leftoverHighSurrogate,s,a;for(o!==0?(s=o,a=-1,o=0):(s=t.charCodeAt(0),a=0);;){let u=s;if(Va(s))if(a+1<r){let d=t.charCodeAt(a+1);Ym(d)?(a++,u=cy(s,d)):u=65533}else{o=s;break}else Ym(s)&&(u=65533);if(i=this._push(n,i,u),a++,a<r)s=t.charCodeAt(a);else break}this._buffLen=i,this._leftoverHighSurrogate=o}_push(t,r,n){return n<128?t[r++]=n:n<2048?(t[r++]=192|(n&1984)>>>6,t[r++]=128|(n&63)>>>0):n<65536?(t[r++]=224|(n&61440)>>>12,t[r++]=128|(n&4032)>>>6,t[r++]=128|(n&63)>>>0):(t[r++]=240|(n&1835008)>>>18,t[r++]=128|(n&258048)>>>12,t[r++]=128|(n&4032)>>>6,t[r++]=128|(n&63)>>>0),r>=64&&(this._step(),r-=64,this._totalLen+=64,t[0]=t[64],t[1]=t[65],t[2]=t[66]),r}digest(){return this._finished||(this._finished=!0,this._leftoverHighSurrogate&&(this._leftoverHighSurrogate=0,this._buffLen=this._push(this._buff,this._buffLen,65533)),this._totalLen+=this._buffLen,this._wrapUp()),$c(this._h0)+$c(this._h1)+$c(this._h2)+$c(this._h3)+$c(this._h4)}_wrapUp(){this._buff[this._buffLen++]=128,w5(this._buff,this._buffLen),this._buffLen>56&&(this._step(),w5(this._buff));let t=8*this._totalLen;this._buffDV.setUint32(56,Math.floor(t/4294967296),!1),this._buffDV.setUint32(60,t%4294967296,!1),this._step()}_step(){let t=e._bigBlock32,r=this._buffDV;for(let m=0;m<64;m+=4)t.setUint32(m,r.getUint32(m,!1),!1);for(let m=64;m<320;m+=4)t.setUint32(m,hy(t.getUint32(m-12,!1)^t.getUint32(m-32,!1)^t.getUint32(m-56,!1)^t.getUint32(m-64,!1),1),!1);let n=this._h0,i=this._h1,o=this._h2,s=this._h3,a=this._h4,u,d,f;for(let m=0;m<80;m++)m<20?(u=i&o|~i&s,d=1518500249):m<40?(u=i^o^s,d=1859775393):m<60?(u=i&o|i&s|o&s,d=2400959708):(u=i^o^s,d=3395469782),f=hy(n,5)+u+a+d+t.getUint32(m*4,!1)&4294967295,a=s,s=o,o=hy(i,30),i=n,n=f;this._h0=this._h0+n&4294967295,this._h1=this._h1+i&4294967295,this._h2=this._h2+o&4294967295,this._h3=this._h3+s&4294967295,this._h4=this._h4+a&4294967295}};gy._bigBlock32=new DataView(new ArrayBuffer(320));var Qm=class{constructor(t){this.source=t}getElements(){let t=this.source,r=new Int32Array(t.length);for(let n=0,i=t.length;n<i;n++)r[n]=t.charCodeAt(n);return r}};function b5(e,t,r){return new Fc(new Qm(e),new Qm(t)).ComputeDiff(r).changes}var so=class{static Assert(t,r){if(!t)throw new Error(r)}},ao=class{static Copy(t,r,n,i,o){for(let s=0;s<o;s++)n[i+s]=t[r+s]}static Copy2(t,r,n,i,o){for(let s=0;s<o;s++)n[i+s]=t[r+s]}},Km=class{constructor(){this.m_changes=[],this.m_originalStart=1073741824,this.m_modifiedStart=1073741824,this.m_originalCount=0,this.m_modifiedCount=0}MarkNextChange(){(this.m_originalCount>0||this.m_modifiedCount>0)&&this.m_changes.push(new Ln(this.m_originalStart,this.m_originalCount,this.m_modifiedStart,this.m_modifiedCount)),this.m_originalCount=0,this.m_modifiedCount=0,this.m_originalStart=1073741824,this.m_modifiedStart=1073741824}AddOriginalElement(t,r){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,r),this.m_originalCount++}AddModifiedElement(t,r){this.m_originalStart=Math.min(this.m_originalStart,t),this.m_modifiedStart=Math.min(this.m_modifiedStart,r),this.m_modifiedCount++}getChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes}getReverseChanges(){return(this.m_originalCount>0||this.m_modifiedCount>0)&&this.MarkNextChange(),this.m_changes.reverse(),this.m_changes}},Fc=class e{constructor(t,r,n=null){this.ContinueProcessingPredicate=n,this._originalSequence=t,this._modifiedSequence=r;let[i,o,s]=e._getElements(t),[a,u,d]=e._getElements(r);this._hasStrings=s&&d,this._originalStringElements=i,this._originalElementsOrHash=o,this._modifiedStringElements=a,this._modifiedElementsOrHash=u,this.m_forwardHistory=[],this.m_reverseHistory=[]}static _isStringArray(t){return t.length>0&&typeof t[0]=="string"}static _getElements(t){let r=t.getElements();if(e._isStringArray(r)){let n=new Int32Array(r.length);for(let i=0,o=r.length;i<o;i++)n[i]=y5(r[i],0);return[r,n,!0]}return r instanceof Int32Array?[[],r,!1]:[[],new Int32Array(r),!1]}ElementsAreEqual(t,r){return this._originalElementsOrHash[t]!==this._modifiedElementsOrHash[r]?!1:this._hasStrings?this._originalStringElements[t]===this._modifiedStringElements[r]:!0}ElementsAreStrictEqual(t,r){if(!this.ElementsAreEqual(t,r))return!1;let n=e._getStrictElement(this._originalSequence,t),i=e._getStrictElement(this._modifiedSequence,r);return n===i}static _getStrictElement(t,r){return typeof t.getStrictElement=="function"?t.getStrictElement(r):null}OriginalElementsAreEqual(t,r){return this._originalElementsOrHash[t]!==this._originalElementsOrHash[r]?!1:this._hasStrings?this._originalStringElements[t]===this._originalStringElements[r]:!0}ModifiedElementsAreEqual(t,r){return this._modifiedElementsOrHash[t]!==this._modifiedElementsOrHash[r]?!1:this._hasStrings?this._modifiedStringElements[t]===this._modifiedStringElements[r]:!0}ComputeDiff(t){return this._ComputeDiff(0,this._originalElementsOrHash.length-1,0,this._modifiedElementsOrHash.length-1,t)}_ComputeDiff(t,r,n,i,o){let s=[!1],a=this.ComputeDiffRecursive(t,r,n,i,s);return o&&(a=this.PrettifyChanges(a)),{quitEarly:s[0],changes:a}}ComputeDiffRecursive(t,r,n,i,o){for(o[0]=!1;t<=r&&n<=i&&this.ElementsAreEqual(t,n);)t++,n++;for(;r>=t&&i>=n&&this.ElementsAreEqual(r,i);)r--,i--;if(t>r||n>i){let m;return n<=i?(so.Assert(t===r+1,"originalStart should only be one more than originalEnd"),m=[new Ln(t,0,n,i-n+1)]):t<=r?(so.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),m=[new Ln(t,r-t+1,n,0)]):(so.Assert(t===r+1,"originalStart should only be one more than originalEnd"),so.Assert(n===i+1,"modifiedStart should only be one more than modifiedEnd"),m=[]),m}let s=[0],a=[0],u=this.ComputeRecursionPoint(t,r,n,i,s,a,o),d=s[0],f=a[0];if(u!==null)return u;if(!o[0]){let m=this.ComputeDiffRecursive(t,d,n,f,o),w=[];return o[0]?w=[new Ln(d+1,r-(d+1)+1,f+1,i-(f+1)+1)]:w=this.ComputeDiffRecursive(d+1,r,f+1,i,o),this.ConcatenateChanges(m,w)}return[new Ln(t,r-t+1,n,i-n+1)]}WALKTRACE(t,r,n,i,o,s,a,u,d,f,m,w,_,S,C,M,N,L){let k=null,W=null,Z=new Km,ee=r,ne=n,te=_[0]-M[0]-i,pe=-1073741824,ge=this.m_forwardHistory.length-1;do{let ue=te+t;ue===ee||ue<ne&&d[ue-1]<d[ue+1]?(m=d[ue+1],S=m-te-i,m<pe&&Z.MarkNextChange(),pe=m,Z.AddModifiedElement(m+1,S),te=ue+1-t):(m=d[ue-1]+1,S=m-te-i,m<pe&&Z.MarkNextChange(),pe=m-1,Z.AddOriginalElement(m,S+1),te=ue-1-t),ge>=0&&(d=this.m_forwardHistory[ge],t=d[0],ee=1,ne=d.length-1)}while(--ge>=-1);if(k=Z.getReverseChanges(),L[0]){let ue=_[0]+1,G=M[0]+1;if(k!==null&&k.length>0){let D=k[k.length-1];ue=Math.max(ue,D.getOriginalEnd()),G=Math.max(G,D.getModifiedEnd())}W=[new Ln(ue,w-ue+1,G,C-G+1)]}else{Z=new Km,ee=s,ne=a,te=_[0]-M[0]-u,pe=1073741824,ge=N?this.m_reverseHistory.length-1:this.m_reverseHistory.length-2;do{let ue=te+o;ue===ee||ue<ne&&f[ue-1]>=f[ue+1]?(m=f[ue+1]-1,S=m-te-u,m>pe&&Z.MarkNextChange(),pe=m+1,Z.AddOriginalElement(m+1,S+1),te=ue+1-o):(m=f[ue-1],S=m-te-u,m>pe&&Z.MarkNextChange(),pe=m,Z.AddModifiedElement(m+1,S+1),te=ue-1-o),ge>=0&&(f=this.m_reverseHistory[ge],o=f[0],ee=1,ne=f.length-1)}while(--ge>=-1);W=Z.getChanges()}return this.ConcatenateChanges(k,W)}ComputeRecursionPoint(t,r,n,i,o,s,a){let u=0,d=0,f=0,m=0,w=0,_=0;t--,n--,o[0]=0,s[0]=0,this.m_forwardHistory=[],this.m_reverseHistory=[];let S=r-t+(i-n),C=S+1,M=new Int32Array(C),N=new Int32Array(C),L=i-n,k=r-t,W=t-n,Z=r-i,ne=(k-L)%2===0;M[L]=t,N[k]=r,a[0]=!1;for(let te=1;te<=S/2+1;te++){let pe=0,ge=0;f=this.ClipDiagonalBound(L-te,te,L,C),m=this.ClipDiagonalBound(L+te,te,L,C);for(let G=f;G<=m;G+=2){G===f||G<m&&M[G-1]<M[G+1]?u=M[G+1]:u=M[G-1]+1,d=u-(G-L)-W;let D=u;for(;u<r&&d<i&&this.ElementsAreEqual(u+1,d+1);)u++,d++;if(M[G]=u,u+d>pe+ge&&(pe=u,ge=d),!ne&&Math.abs(G-k)<=te-1&&u>=N[G])return o[0]=u,s[0]=d,D<=N[G]&&te<=1448?this.WALKTRACE(L,f,m,W,k,w,_,Z,M,N,u,r,o,d,i,s,ne,a):null}let ue=(pe-t+(ge-n)-te)/2;if(this.ContinueProcessingPredicate!==null&&!this.ContinueProcessingPredicate(pe,ue))return a[0]=!0,o[0]=pe,s[0]=ge,ue>0&&te<=1448?this.WALKTRACE(L,f,m,W,k,w,_,Z,M,N,u,r,o,d,i,s,ne,a):(t++,n++,[new Ln(t,r-t+1,n,i-n+1)]);w=this.ClipDiagonalBound(k-te,te,k,C),_=this.ClipDiagonalBound(k+te,te,k,C);for(let G=w;G<=_;G+=2){G===w||G<_&&N[G-1]>=N[G+1]?u=N[G+1]-1:u=N[G-1],d=u-(G-k)-Z;let D=u;for(;u>t&&d>n&&this.ElementsAreEqual(u,d);)u--,d--;if(N[G]=u,ne&&Math.abs(G-L)<=te&&u<=M[G])return o[0]=u,s[0]=d,D>=M[G]&&te<=1448?this.WALKTRACE(L,f,m,W,k,w,_,Z,M,N,u,r,o,d,i,s,ne,a):null}if(te<=1447){let G=new Int32Array(m-f+2);G[0]=L-f+1,ao.Copy2(M,f,G,1,m-f+1),this.m_forwardHistory.push(G),G=new Int32Array(_-w+2),G[0]=k-w+1,ao.Copy2(N,w,G,1,_-w+1),this.m_reverseHistory.push(G)}}return this.WALKTRACE(L,f,m,W,k,w,_,Z,M,N,u,r,o,d,i,s,ne,a)}PrettifyChanges(t){for(let r=0;r<t.length;r++){let n=t[r],i=r<t.length-1?t[r+1].originalStart:this._originalElementsOrHash.length,o=r<t.length-1?t[r+1].modifiedStart:this._modifiedElementsOrHash.length,s=n.originalLength>0,a=n.modifiedLength>0;for(;n.originalStart+n.originalLength<i&&n.modifiedStart+n.modifiedLength<o&&(!s||this.OriginalElementsAreEqual(n.originalStart,n.originalStart+n.originalLength))&&(!a||this.ModifiedElementsAreEqual(n.modifiedStart,n.modifiedStart+n.modifiedLength));){let d=this.ElementsAreStrictEqual(n.originalStart,n.modifiedStart);if(this.ElementsAreStrictEqual(n.originalStart+n.originalLength,n.modifiedStart+n.modifiedLength)&&!d)break;n.originalStart++,n.modifiedStart++}let u=[null];if(r<t.length-1&&this.ChangesOverlap(t[r],t[r+1],u)){t[r]=u[0],t.splice(r+1,1),r--;continue}}for(let r=t.length-1;r>=0;r--){let n=t[r],i=0,o=0;if(r>0){let m=t[r-1];i=m.originalStart+m.originalLength,o=m.modifiedStart+m.modifiedLength}let s=n.originalLength>0,a=n.modifiedLength>0,u=0,d=this._boundaryScore(n.originalStart,n.originalLength,n.modifiedStart,n.modifiedLength);for(let m=1;;m++){let w=n.originalStart-m,_=n.modifiedStart-m;if(w<i||_<o||s&&!this.OriginalElementsAreEqual(w,w+n.originalLength)||a&&!this.ModifiedElementsAreEqual(_,_+n.modifiedLength))break;let C=(w===i&&_===o?5:0)+this._boundaryScore(w,n.originalLength,_,n.modifiedLength);C>d&&(d=C,u=m)}n.originalStart-=u,n.modifiedStart-=u;let f=[null];if(r>0&&this.ChangesOverlap(t[r-1],t[r],f)){t[r-1]=f[0],t.splice(r,1),r++;continue}}if(this._hasStrings)for(let r=1,n=t.length;r<n;r++){let i=t[r-1],o=t[r],s=o.originalStart-i.originalStart-i.originalLength,a=i.originalStart,u=o.originalStart+o.originalLength,d=u-a,f=i.modifiedStart,m=o.modifiedStart+o.modifiedLength,w=m-f;if(s<5&&d<20&&w<20){let _=this._findBetterContiguousSequence(a,d,f,w,s);if(_){let[S,C]=_;(S!==i.originalStart+i.originalLength||C!==i.modifiedStart+i.modifiedLength)&&(i.originalLength=S-i.originalStart,i.modifiedLength=C-i.modifiedStart,o.originalStart=S+s,o.modifiedStart=C+s,o.originalLength=u-o.originalStart,o.modifiedLength=m-o.modifiedStart)}}}return t}_findBetterContiguousSequence(t,r,n,i,o){if(r<o||i<o)return null;let s=t+r-o+1,a=n+i-o+1,u=0,d=0,f=0;for(let m=t;m<s;m++)for(let w=n;w<a;w++){let _=this._contiguousSequenceScore(m,w,o);_>0&&_>u&&(u=_,d=m,f=w)}return u>0?[d,f]:null}_contiguousSequenceScore(t,r,n){let i=0;for(let o=0;o<n;o++){if(!this.ElementsAreEqual(t+o,r+o))return 0;i+=this._originalStringElements[t+o].length}return i}_OriginalIsBoundary(t){return t<=0||t>=this._originalElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._originalStringElements[t])}_OriginalRegionIsBoundary(t,r){if(this._OriginalIsBoundary(t)||this._OriginalIsBoundary(t-1))return!0;if(r>0){let n=t+r;if(this._OriginalIsBoundary(n-1)||this._OriginalIsBoundary(n))return!0}return!1}_ModifiedIsBoundary(t){return t<=0||t>=this._modifiedElementsOrHash.length-1?!0:this._hasStrings&&/^\s*$/.test(this._modifiedStringElements[t])}_ModifiedRegionIsBoundary(t,r){if(this._ModifiedIsBoundary(t)||this._ModifiedIsBoundary(t-1))return!0;if(r>0){let n=t+r;if(this._ModifiedIsBoundary(n-1)||this._ModifiedIsBoundary(n))return!0}return!1}_boundaryScore(t,r,n,i){let o=this._OriginalRegionIsBoundary(t,r)?1:0,s=this._ModifiedRegionIsBoundary(n,i)?1:0;return o+s}ConcatenateChanges(t,r){let n=[];if(t.length===0||r.length===0)return r.length>0?r:t;if(this.ChangesOverlap(t[t.length-1],r[0],n)){let i=new Array(t.length+r.length-1);return ao.Copy(t,0,i,0,t.length-1),i[t.length-1]=n[0],ao.Copy(r,1,i,t.length,r.length-1),i}else{let i=new Array(t.length+r.length);return ao.Copy(t,0,i,0,t.length),ao.Copy(r,0,i,t.length,r.length),i}}ChangesOverlap(t,r,n){if(so.Assert(t.originalStart<=r.originalStart,"Left change is not less than or equal to right change"),so.Assert(t.modifiedStart<=r.modifiedStart,"Left change is not less than or equal to right change"),t.originalStart+t.originalLength>=r.originalStart||t.modifiedStart+t.modifiedLength>=r.modifiedStart){let i=t.originalStart,o=t.originalLength,s=t.modifiedStart,a=t.modifiedLength;return t.originalStart+t.originalLength>=r.originalStart&&(o=r.originalStart+r.originalLength-t.originalStart),t.modifiedStart+t.modifiedLength>=r.modifiedStart&&(a=r.modifiedStart+r.modifiedLength-t.modifiedStart),n[0]=new Ln(i,o,s,a),!0}else return n[0]=null,!1}ClipDiagonalBound(t,r,n,i){if(t>=0&&t<i)return t;let o=n,s=i-n-1,a=r%2===0;if(t<0){let u=o%2===0;return a===u?0:1}else{let u=s%2===0;return a===u?i-1:i-2}}};var Ua,wy=globalThis.vscode;if(typeof wy<"u"&&typeof wy.process<"u"){let e=wy.process;Ua={get platform(){return e.platform},get arch(){return e.arch},get env(){return e.env},cwd(){return e.cwd()}}}else typeof process<"u"?Ua={get platform(){return process.platform},get arch(){return process.arch},get env(){return process.env},cwd(){return process.env.VSCODE_CWD||process.cwd()}}:Ua={get platform(){return Ss?"win32":a5?"darwin":"linux"},get arch(){},get env(){return{}},cwd(){return"/"}};var Vc=Ua.cwd,_5=Ua.env,v5=Ua.platform;var _N=65,vN=97,SN=90,xN=122,uo=46,Xt=47,Gr=92,lo=58,CN=63,eh=class extends Error{constructor(t,r,n){let i;typeof r=="string"&&r.indexOf("not ")===0?(i="must not be",r=r.replace(/^not /,"")):i="must be";let o=t.indexOf(".")!==-1?"property":"argument",s=`The "${t}" ${o} ${i} of type ${r}`;s+=`. Received type ${typeof n}`,super(s),this.code="ERR_INVALID_ARG_TYPE"}};function TN(e,t){if(e===null||typeof e!="object")throw new eh(t,"Object",e)}function _t(e,t){if(typeof e!="string")throw new eh(t,"string",e)}var fo=v5==="win32";function Te(e){return e===Xt||e===Gr}function yy(e){return e===Xt}function co(e){return e>=_N&&e<=SN||e>=vN&&e<=xN}function th(e,t,r,n){let i="",o=0,s=-1,a=0,u=0;for(let d=0;d<=e.length;++d){if(d<e.length)u=e.charCodeAt(d);else{if(n(u))break;u=Xt}if(n(u)){if(!(s===d-1||a===1))if(a===2){if(i.length<2||o!==2||i.charCodeAt(i.length-1)!==uo||i.charCodeAt(i.length-2)!==uo){if(i.length>2){let f=i.lastIndexOf(r);f===-1?(i="",o=0):(i=i.slice(0,f),o=i.length-1-i.lastIndexOf(r)),s=d,a=0;continue}else if(i.length!==0){i="",o=0,s=d,a=0;continue}}t&&(i+=i.length>0?`${r}..`:"..",o=2)}else i.length>0?i+=`${r}${e.slice(s+1,d)}`:i=e.slice(s+1,d),o=d-s-1;s=d,a=0}else u===uo&&a!==-1?++a:a=-1}return i}function S5(e,t){TN(t,"pathObject");let r=t.dir||t.root,n=t.base||`${t.name||""}${t.ext||""}`;return r?r===t.root?`${r}${n}`:`${r}${e}${n}`:n}var _r={resolve(...e){let t="",r="",n=!1;for(let i=e.length-1;i>=-1;i--){let o;if(i>=0){if(o=e[i],_t(o,"path"),o.length===0)continue}else t.length===0?o=Vc():(o=_5[`=${t}`]||Vc(),(o===void 0||o.slice(0,2).toLowerCase()!==t.toLowerCase()&&o.charCodeAt(2)===Gr)&&(o=`${t}\\`));let s=o.length,a=0,u="",d=!1,f=o.charCodeAt(0);if(s===1)Te(f)&&(a=1,d=!0);else if(Te(f))if(d=!0,Te(o.charCodeAt(1))){let m=2,w=m;for(;m<s&&!Te(o.charCodeAt(m));)m++;if(m<s&&m!==w){let _=o.slice(w,m);for(w=m;m<s&&Te(o.charCodeAt(m));)m++;if(m<s&&m!==w){for(w=m;m<s&&!Te(o.charCodeAt(m));)m++;(m===s||m!==w)&&(u=`\\\\${_}\\${o.slice(w,m)}`,a=m)}}}else a=1;else co(f)&&o.charCodeAt(1)===lo&&(u=o.slice(0,2),a=2,s>2&&Te(o.charCodeAt(2))&&(d=!0,a=3));if(u.length>0)if(t.length>0){if(u.toLowerCase()!==t.toLowerCase())continue}else t=u;if(n){if(t.length>0)break}else if(r=`${o.slice(a)}\\${r}`,n=d,d&&t.length>0)break}return r=th(r,!n,"\\",Te),n?`${t}\\${r}`:`${t}${r}`||"."},normalize(e){_t(e,"path");let t=e.length;if(t===0)return".";let r=0,n,i=!1,o=e.charCodeAt(0);if(t===1)return yy(o)?"\\":e;if(Te(o))if(i=!0,Te(e.charCodeAt(1))){let a=2,u=a;for(;a<t&&!Te(e.charCodeAt(a));)a++;if(a<t&&a!==u){let d=e.slice(u,a);for(u=a;a<t&&Te(e.charCodeAt(a));)a++;if(a<t&&a!==u){for(u=a;a<t&&!Te(e.charCodeAt(a));)a++;if(a===t)return`\\\\${d}\\${e.slice(u)}\\`;a!==u&&(n=`\\\\${d}\\${e.slice(u,a)}`,r=a)}}}else r=1;else co(o)&&e.charCodeAt(1)===lo&&(n=e.slice(0,2),r=2,t>2&&Te(e.charCodeAt(2))&&(i=!0,r=3));let s=r<t?th(e.slice(r),!i,"\\",Te):"";return s.length===0&&!i&&(s="."),s.length>0&&Te(e.charCodeAt(t-1))&&(s+="\\"),n===void 0?i?`\\${s}`:s:i?`${n}\\${s}`:`${n}${s}`},isAbsolute(e){_t(e,"path");let t=e.length;if(t===0)return!1;let r=e.charCodeAt(0);return Te(r)||t>2&&co(r)&&e.charCodeAt(1)===lo&&Te(e.charCodeAt(2))},join(...e){if(e.length===0)return".";let t,r;for(let o=0;o<e.length;++o){let s=e[o];_t(s,"path"),s.length>0&&(t===void 0?t=r=s:t+=`\\${s}`)}if(t===void 0)return".";let n=!0,i=0;if(typeof r=="string"&&Te(r.charCodeAt(0))){++i;let o=r.length;o>1&&Te(r.charCodeAt(1))&&(++i,o>2&&(Te(r.charCodeAt(2))?++i:n=!1))}if(n){for(;i<t.length&&Te(t.charCodeAt(i));)i++;i>=2&&(t=`\\${t.slice(i)}`)}return _r.normalize(t)},relative(e,t){if(_t(e,"from"),_t(t,"to"),e===t)return"";let r=_r.resolve(e),n=_r.resolve(t);if(r===n||(e=r.toLowerCase(),t=n.toLowerCase(),e===t))return"";let i=0;for(;i<e.length&&e.charCodeAt(i)===Gr;)i++;let o=e.length;for(;o-1>i&&e.charCodeAt(o-1)===Gr;)o--;let s=o-i,a=0;for(;a<t.length&&t.charCodeAt(a)===Gr;)a++;let u=t.length;for(;u-1>a&&t.charCodeAt(u-1)===Gr;)u--;let d=u-a,f=s<d?s:d,m=-1,w=0;for(;w<f;w++){let S=e.charCodeAt(i+w);if(S!==t.charCodeAt(a+w))break;S===Gr&&(m=w)}if(w!==f){if(m===-1)return n}else{if(d>f){if(t.charCodeAt(a+w)===Gr)return n.slice(a+w+1);if(w===2)return n.slice(a+w)}s>f&&(e.charCodeAt(i+w)===Gr?m=w:w===2&&(m=3)),m===-1&&(m=0)}let _="";for(w=i+m+1;w<=o;++w)(w===o||e.charCodeAt(w)===Gr)&&(_+=_.length===0?"..":"\\..");return a+=m,_.length>0?`${_}${n.slice(a,u)}`:(n.charCodeAt(a)===Gr&&++a,n.slice(a,u))},toNamespacedPath(e){if(typeof e!="string"||e.length===0)return e;let t=_r.resolve(e);if(t.length<=2)return e;if(t.charCodeAt(0)===Gr){if(t.charCodeAt(1)===Gr){let r=t.charCodeAt(2);if(r!==CN&&r!==uo)return`\\\\?\\UNC\\${t.slice(2)}`}}else if(co(t.charCodeAt(0))&&t.charCodeAt(1)===lo&&t.charCodeAt(2)===Gr)return`\\\\?\\${t}`;return e},dirname(e){_t(e,"path");let t=e.length;if(t===0)return".";let r=-1,n=0,i=e.charCodeAt(0);if(t===1)return Te(i)?e:".";if(Te(i)){if(r=n=1,Te(e.charCodeAt(1))){let a=2,u=a;for(;a<t&&!Te(e.charCodeAt(a));)a++;if(a<t&&a!==u){for(u=a;a<t&&Te(e.charCodeAt(a));)a++;if(a<t&&a!==u){for(u=a;a<t&&!Te(e.charCodeAt(a));)a++;if(a===t)return e;a!==u&&(r=n=a+1)}}}}else co(i)&&e.charCodeAt(1)===lo&&(r=t>2&&Te(e.charCodeAt(2))?3:2,n=r);let o=-1,s=!0;for(let a=t-1;a>=n;--a)if(Te(e.charCodeAt(a))){if(!s){o=a;break}}else s=!1;if(o===-1){if(r===-1)return".";o=r}return e.slice(0,o)},basename(e,t){t!==void 0&&_t(t,"ext"),_t(e,"path");let r=0,n=-1,i=!0,o;if(e.length>=2&&co(e.charCodeAt(0))&&e.charCodeAt(1)===lo&&(r=2),t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(o=e.length-1;o>=r;--o){let u=e.charCodeAt(o);if(Te(u)){if(!i){r=o+1;break}}else a===-1&&(i=!1,a=o+1),s>=0&&(u===t.charCodeAt(s)?--s===-1&&(n=o):(s=-1,n=a))}return r===n?n=a:n===-1&&(n=e.length),e.slice(r,n)}for(o=e.length-1;o>=r;--o)if(Te(e.charCodeAt(o))){if(!i){r=o+1;break}}else n===-1&&(i=!1,n=o+1);return n===-1?"":e.slice(r,n)},extname(e){_t(e,"path");let t=0,r=-1,n=0,i=-1,o=!0,s=0;e.length>=2&&e.charCodeAt(1)===lo&&co(e.charCodeAt(0))&&(t=n=2);for(let a=e.length-1;a>=t;--a){let u=e.charCodeAt(a);if(Te(u)){if(!o){n=a+1;break}continue}i===-1&&(o=!1,i=a+1),u===uo?r===-1?r=a:s!==1&&(s=1):r!==-1&&(s=-1)}return r===-1||i===-1||s===0||s===1&&r===i-1&&r===n+1?"":e.slice(r,i)},format:S5.bind(null,"\\"),parse(e){_t(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;let r=e.length,n=0,i=e.charCodeAt(0);if(r===1)return Te(i)?(t.root=t.dir=e,t):(t.base=t.name=e,t);if(Te(i)){if(n=1,Te(e.charCodeAt(1))){let m=2,w=m;for(;m<r&&!Te(e.charCodeAt(m));)m++;if(m<r&&m!==w){for(w=m;m<r&&Te(e.charCodeAt(m));)m++;if(m<r&&m!==w){for(w=m;m<r&&!Te(e.charCodeAt(m));)m++;m===r?n=m:m!==w&&(n=m+1)}}}}else if(co(i)&&e.charCodeAt(1)===lo){if(r<=2)return t.root=t.dir=e,t;if(n=2,Te(e.charCodeAt(2))){if(r===3)return t.root=t.dir=e,t;n=3}}n>0&&(t.root=e.slice(0,n));let o=-1,s=n,a=-1,u=!0,d=e.length-1,f=0;for(;d>=n;--d){if(i=e.charCodeAt(d),Te(i)){if(!u){s=d+1;break}continue}a===-1&&(u=!1,a=d+1),i===uo?o===-1?o=d:f!==1&&(f=1):o!==-1&&(f=-1)}return a!==-1&&(o===-1||f===0||f===1&&o===a-1&&o===s+1?t.base=t.name=e.slice(s,a):(t.name=e.slice(s,o),t.base=e.slice(s,a),t.ext=e.slice(o,a))),s>0&&s!==n?t.dir=e.slice(0,s-1):t.dir=t.root,t},sep:"\\",delimiter:";",win32:null,posix:null},EN=(()=>{if(fo){let e=/\\/g;return()=>{let t=Vc().replace(e,"/");return t.slice(t.indexOf("/"))}}return()=>Vc()})(),Ar={resolve(...e){let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){let i=n>=0?e[n]:EN();_t(i,"path"),i.length!==0&&(t=`${i}/${t}`,r=i.charCodeAt(0)===Xt)}return t=th(t,!r,"/",yy),r?`/${t}`:t.length>0?t:"."},normalize(e){if(_t(e,"path"),e.length===0)return".";let t=e.charCodeAt(0)===Xt,r=e.charCodeAt(e.length-1)===Xt;return e=th(e,!t,"/",yy),e.length===0?t?"/":r?"./":".":(r&&(e+="/"),t?`/${e}`:e)},isAbsolute(e){return _t(e,"path"),e.length>0&&e.charCodeAt(0)===Xt},join(...e){if(e.length===0)return".";let t;for(let r=0;r<e.length;++r){let n=e[r];_t(n,"path"),n.length>0&&(t===void 0?t=n:t+=`/${n}`)}return t===void 0?".":Ar.normalize(t)},relative(e,t){if(_t(e,"from"),_t(t,"to"),e===t||(e=Ar.resolve(e),t=Ar.resolve(t),e===t))return"";let r=1,n=e.length,i=n-r,o=1,s=t.length-o,a=i<s?i:s,u=-1,d=0;for(;d<a;d++){let m=e.charCodeAt(r+d);if(m!==t.charCodeAt(o+d))break;m===Xt&&(u=d)}if(d===a)if(s>a){if(t.charCodeAt(o+d)===Xt)return t.slice(o+d+1);if(d===0)return t.slice(o+d)}else i>a&&(e.charCodeAt(r+d)===Xt?u=d:d===0&&(u=0));let f="";for(d=r+u+1;d<=n;++d)(d===n||e.charCodeAt(d)===Xt)&&(f+=f.length===0?"..":"/..");return`${f}${t.slice(o+u)}`},toNamespacedPath(e){return e},dirname(e){if(_t(e,"path"),e.length===0)return".";let t=e.charCodeAt(0)===Xt,r=-1,n=!0;for(let i=e.length-1;i>=1;--i)if(e.charCodeAt(i)===Xt){if(!n){r=i;break}}else n=!1;return r===-1?t?"/":".":t&&r===1?"//":e.slice(0,r)},basename(e,t){t!==void 0&&_t(t,"ext"),_t(e,"path");let r=0,n=-1,i=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t===e)return"";let s=t.length-1,a=-1;for(o=e.length-1;o>=0;--o){let u=e.charCodeAt(o);if(u===Xt){if(!i){r=o+1;break}}else a===-1&&(i=!1,a=o+1),s>=0&&(u===t.charCodeAt(s)?--s===-1&&(n=o):(s=-1,n=a))}return r===n?n=a:n===-1&&(n=e.length),e.slice(r,n)}for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===Xt){if(!i){r=o+1;break}}else n===-1&&(i=!1,n=o+1);return n===-1?"":e.slice(r,n)},extname(e){_t(e,"path");let t=-1,r=0,n=-1,i=!0,o=0;for(let s=e.length-1;s>=0;--s){let a=e.charCodeAt(s);if(a===Xt){if(!i){r=s+1;break}continue}n===-1&&(i=!1,n=s+1),a===uo?t===-1?t=s:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||n===-1||o===0||o===1&&t===n-1&&t===r+1?"":e.slice(t,n)},format:S5.bind(null,"/"),parse(e){_t(e,"path");let t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;let r=e.charCodeAt(0)===Xt,n;r?(t.root="/",n=1):n=0;let i=-1,o=0,s=-1,a=!0,u=e.length-1,d=0;for(;u>=n;--u){let f=e.charCodeAt(u);if(f===Xt){if(!a){o=u+1;break}continue}s===-1&&(a=!1,s=u+1),f===uo?i===-1?i=u:d!==1&&(d=1):i!==-1&&(d=-1)}if(s!==-1){let f=o===0&&r?1:o;i===-1||d===0||d===1&&i===s-1&&i===o+1?t.base=t.name=e.slice(f,s):(t.name=e.slice(f,i),t.base=e.slice(f,s),t.ext=e.slice(i,s))}return o>0?t.dir=e.slice(0,o-1):r&&(t.dir="/"),t},sep:"/",delimiter:":",win32:null,posix:null};Ar.win32=_r.win32=_r;Ar.posix=_r.posix=Ar;var iY=fo?_r.normalize:Ar.normalize,oY=fo?_r.resolve:Ar.resolve,sY=fo?_r.relative:Ar.relative,aY=fo?_r.dirname:Ar.dirname,lY=fo?_r.basename:Ar.basename,cY=fo?_r.extname:Ar.extname,uY=fo?_r.sep:Ar.sep;var PN=/^\w[\w\d+.-]*$/,LN=/^\//,IN=/^\/\//;function AN(e,t){if(!e.scheme&&t)throw new Error(`[UriError]: Scheme is missing: {scheme: "", authority: "${e.authority}", path: "${e.path}", query: "${e.query}", fragment: "${e.fragment}"}`);if(e.scheme&&!PN.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!LN.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(IN.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function kN(e,t){return!e&&!t?"file":e}function NN(e,t){switch(e){case"https":case"http":case"file":t?t[0]!==In&&(t=In+t):t=In;break}return t}var nt="",In="/",RN=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,mo=class e{static isUri(t){return t instanceof e?!0:t?typeof t.authority=="string"&&typeof t.fragment=="string"&&typeof t.path=="string"&&typeof t.query=="string"&&typeof t.scheme=="string"&&typeof t.fsPath=="string"&&typeof t.with=="function"&&typeof t.toString=="function":!1}constructor(t,r,n,i,o,s=!1){typeof t=="object"?(this.scheme=t.scheme||nt,this.authority=t.authority||nt,this.path=t.path||nt,this.query=t.query||nt,this.fragment=t.fragment||nt):(this.scheme=kN(t,s),this.authority=r||nt,this.path=NN(this.scheme,n||nt),this.query=i||nt,this.fragment=o||nt,AN(this,s))}get fsPath(){return by(this,!1)}with(t){if(!t)return this;let{scheme:r,authority:n,path:i,query:o,fragment:s}=t;return r===void 0?r=this.scheme:r===null&&(r=nt),n===void 0?n=this.authority:n===null&&(n=nt),i===void 0?i=this.path:i===null&&(i=nt),o===void 0?o=this.query:o===null&&(o=nt),s===void 0?s=this.fragment:s===null&&(s=nt),r===this.scheme&&n===this.authority&&i===this.path&&o===this.query&&s===this.fragment?this:new po(r,n,i,o,s)}static parse(t,r=!1){let n=RN.exec(t);return n?new po(n[2]||nt,rh(n[4]||nt),rh(n[5]||nt),rh(n[7]||nt),rh(n[9]||nt),r):new po(nt,nt,nt,nt,nt)}static file(t){let r=nt;if(Ss&&(t=t.replace(/\\/g,In)),t[0]===In&&t[1]===In){let n=t.indexOf(In,2);n===-1?(r=t.substring(2),t=In):(r=t.substring(2,n),t=t.substring(n)||In)}return new po("file",r,t,nt,nt)}static from(t,r){return new po(t.scheme,t.authority,t.path,t.query,t.fragment,r)}static joinPath(t,...r){if(!t.path)throw new Error("[UriError]: cannot call joinPath on URI without path");let n;return Ss&&t.scheme==="file"?n=e.file(_r.join(by(t,!0),...r)).path:n=Ar.join(t.path,...r),t.with({path:n})}toString(t=!1){return _y(this,t)}toJSON(){return this}static revive(t){var r,n;if(t){if(t instanceof e)return t;{let i=new po(t);return i._formatted=(r=t.external)!==null&&r!==void 0?r:null,i._fsPath=t._sep===T5&&(n=t.fsPath)!==null&&n!==void 0?n:null,i}}else return t}},T5=Ss?1:void 0,po=class extends mo{constructor(){super(...arguments),this._formatted=null,this._fsPath=null}get fsPath(){return this._fsPath||(this._fsPath=by(this,!1)),this._fsPath}toString(t=!1){return t?_y(this,!0):(this._formatted||(this._formatted=_y(this,!1)),this._formatted)}toJSON(){let t={$mid:1};return this._fsPath&&(t.fsPath=this._fsPath,t._sep=T5),this._formatted&&(t.external=this._formatted),this.path&&(t.path=this.path),this.scheme&&(t.scheme=this.scheme),this.authority&&(t.authority=this.authority),this.query&&(t.query=this.query),this.fragment&&(t.fragment=this.fragment),t}},E5={58:"%3A",47:"%2F",63:"%3F",35:"%23",91:"%5B",93:"%5D",64:"%40",33:"%21",36:"%24",38:"%26",39:"%27",40:"%28",41:"%29",42:"%2A",43:"%2B",44:"%2C",59:"%3B",61:"%3D",32:"%20"};function x5(e,t,r){let n,i=-1;for(let o=0;o<e.length;o++){let s=e.charCodeAt(o);if(s>=97&&s<=122||s>=65&&s<=90||s>=48&&s<=57||s===45||s===46||s===95||s===126||t&&s===47||r&&s===91||r&&s===93||r&&s===58)i!==-1&&(n+=encodeURIComponent(e.substring(i,o)),i=-1),n!==void 0&&(n+=e.charAt(o));else{n===void 0&&(n=e.substr(0,o));let a=E5[s];a!==void 0?(i!==-1&&(n+=encodeURIComponent(e.substring(i,o)),i=-1),n+=a):i===-1&&(i=o)}}return i!==-1&&(n+=encodeURIComponent(e.substring(i))),n!==void 0?n:e}function DN(e){let t;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);n===35||n===63?(t===void 0&&(t=e.substr(0,r)),t+=E5[n]):t!==void 0&&(t+=e[r])}return t!==void 0?t:e}function by(e,t){let r;return e.authority&&e.path.length>1&&e.scheme==="file"?r=`//${e.authority}${e.path}`:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?t?r=e.path.substr(1):r=e.path[1].toLowerCase()+e.path.substr(2):r=e.path,Ss&&(r=r.replace(/\//g,"\\")),r}function _y(e,t){let r=t?DN:x5,n="",{scheme:i,authority:o,path:s,query:a,fragment:u}=e;if(i&&(n+=i,n+=":"),(o||i==="file")&&(n+=In,n+=In),o){let d=o.indexOf("@");if(d!==-1){let f=o.substr(0,d);o=o.substr(d+1),d=f.lastIndexOf(":"),d===-1?n+=r(f,!1,!1):(n+=r(f.substr(0,d),!1,!1),n+=":",n+=r(f.substr(d+1),!1,!0)),n+="@"}o=o.toLowerCase(),d=o.lastIndexOf(":"),d===-1?n+=r(o,!1,!0):(n+=r(o.substr(0,d),!1,!0),n+=o.substr(d))}if(s){if(s.length>=3&&s.charCodeAt(0)===47&&s.charCodeAt(2)===58){let d=s.charCodeAt(1);d>=65&&d<=90&&(s=`/${String.fromCharCode(d+32)}:${s.substr(3)}`)}else if(s.length>=2&&s.charCodeAt(1)===58){let d=s.charCodeAt(0);d>=65&&d<=90&&(s=`${String.fromCharCode(d+32)}:${s.substr(2)}`)}n+=r(s,!0,!1)}return a&&(n+="?",n+=r(a,!1,!1)),u&&(n+="#",n+=t?u:x5(u,!1,!1)),n}function M5(e){try{return decodeURIComponent(e)}catch{return e.length>3?e.substr(0,3)+M5(e.substr(3)):e}}var C5=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function rh(e){return e.match(C5)?e.replace(C5,t=>M5(t)):e}var zt=class e{constructor(t,r){this.lineNumber=t,this.column=r}with(t=this.lineNumber,r=this.column){return t===this.lineNumber&&r===this.column?this:new e(t,r)}delta(t=0,r=0){return this.with(this.lineNumber+t,this.column+r)}equals(t){return e.equals(this,t)}static equals(t,r){return!t&&!r?!0:!!t&&!!r&&t.lineNumber===r.lineNumber&&t.column===r.column}isBefore(t){return e.isBefore(this,t)}static isBefore(t,r){return t.lineNumber<r.lineNumber?!0:r.lineNumber<t.lineNumber?!1:t.column<r.column}isBeforeOrEqual(t){return e.isBeforeOrEqual(this,t)}static isBeforeOrEqual(t,r){return t.lineNumber<r.lineNumber?!0:r.lineNumber<t.lineNumber?!1:t.column<=r.column}static compare(t,r){let n=t.lineNumber|0,i=r.lineNumber|0;if(n===i){let o=t.column|0,s=r.column|0;return o-s}return n-i}clone(){return new e(this.lineNumber,this.column)}toString(){return"("+this.lineNumber+","+this.column+")"}static lift(t){return new e(t.lineNumber,t.column)}static isIPosition(t){return t&&typeof t.lineNumber=="number"&&typeof t.column=="number"}toJSON(){return{lineNumber:this.lineNumber,column:this.column}}};var $e=class e{constructor(t,r,n,i){t>n||t===n&&r>i?(this.startLineNumber=n,this.startColumn=i,this.endLineNumber=t,this.endColumn=r):(this.startLineNumber=t,this.startColumn=r,this.endLineNumber=n,this.endColumn=i)}isEmpty(){return e.isEmpty(this)}static isEmpty(t){return t.startLineNumber===t.endLineNumber&&t.startColumn===t.endColumn}containsPosition(t){return e.containsPosition(this,t)}static containsPosition(t,r){return!(r.lineNumber<t.startLineNumber||r.lineNumber>t.endLineNumber||r.lineNumber===t.startLineNumber&&r.column<t.startColumn||r.lineNumber===t.endLineNumber&&r.column>t.endColumn)}static strictContainsPosition(t,r){return!(r.lineNumber<t.startLineNumber||r.lineNumber>t.endLineNumber||r.lineNumber===t.startLineNumber&&r.column<=t.startColumn||r.lineNumber===t.endLineNumber&&r.column>=t.endColumn)}containsRange(t){return e.containsRange(this,t)}static containsRange(t,r){return!(r.startLineNumber<t.startLineNumber||r.endLineNumber<t.startLineNumber||r.startLineNumber>t.endLineNumber||r.endLineNumber>t.endLineNumber||r.startLineNumber===t.startLineNumber&&r.startColumn<t.startColumn||r.endLineNumber===t.endLineNumber&&r.endColumn>t.endColumn)}strictContainsRange(t){return e.strictContainsRange(this,t)}static strictContainsRange(t,r){return!(r.startLineNumber<t.startLineNumber||r.endLineNumber<t.startLineNumber||r.startLineNumber>t.endLineNumber||r.endLineNumber>t.endLineNumber||r.startLineNumber===t.startLineNumber&&r.startColumn<=t.startColumn||r.endLineNumber===t.endLineNumber&&r.endColumn>=t.endColumn)}plusRange(t){return e.plusRange(this,t)}static plusRange(t,r){let n,i,o,s;return r.startLineNumber<t.startLineNumber?(n=r.startLineNumber,i=r.startColumn):r.startLineNumber===t.startLineNumber?(n=r.startLineNumber,i=Math.min(r.startColumn,t.startColumn)):(n=t.startLineNumber,i=t.startColumn),r.endLineNumber>t.endLineNumber?(o=r.endLineNumber,s=r.endColumn):r.endLineNumber===t.endLineNumber?(o=r.endLineNumber,s=Math.max(r.endColumn,t.endColumn)):(o=t.endLineNumber,s=t.endColumn),new e(n,i,o,s)}intersectRanges(t){return e.intersectRanges(this,t)}static intersectRanges(t,r){let n=t.startLineNumber,i=t.startColumn,o=t.endLineNumber,s=t.endColumn,a=r.startLineNumber,u=r.startColumn,d=r.endLineNumber,f=r.endColumn;return n<a?(n=a,i=u):n===a&&(i=Math.max(i,u)),o>d?(o=d,s=f):o===d&&(s=Math.min(s,f)),n>o||n===o&&i>s?null:new e(n,i,o,s)}equalsRange(t){return e.equalsRange(this,t)}static equalsRange(t,r){return!t&&!r?!0:!!t&&!!r&&t.startLineNumber===r.startLineNumber&&t.startColumn===r.startColumn&&t.endLineNumber===r.endLineNumber&&t.endColumn===r.endColumn}getEndPosition(){return e.getEndPosition(this)}static getEndPosition(t){return new zt(t.endLineNumber,t.endColumn)}getStartPosition(){return e.getStartPosition(this)}static getStartPosition(t){return new zt(t.startLineNumber,t.startColumn)}toString(){return"["+this.startLineNumber+","+this.startColumn+" -> "+this.endLineNumber+","+this.endColumn+"]"}setEndPosition(t,r){return new e(this.startLineNumber,this.startColumn,t,r)}setStartPosition(t,r){return new e(t,r,this.endLineNumber,this.endColumn)}collapseToStart(){return e.collapseToStart(this)}static collapseToStart(t){return new e(t.startLineNumber,t.startColumn,t.startLineNumber,t.startColumn)}collapseToEnd(){return e.collapseToEnd(this)}static collapseToEnd(t){return new e(t.endLineNumber,t.endColumn,t.endLineNumber,t.endColumn)}delta(t){return new e(this.startLineNumber+t,this.startColumn,this.endLineNumber+t,this.endColumn)}static fromPositions(t,r=t){return new e(t.lineNumber,t.column,r.lineNumber,r.column)}static lift(t){return t?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):null}static isIRange(t){return t&&typeof t.startLineNumber=="number"&&typeof t.startColumn=="number"&&typeof t.endLineNumber=="number"&&typeof t.endColumn=="number"}static areIntersectingOrTouching(t,r){return!(t.endLineNumber<r.startLineNumber||t.endLineNumber===r.startLineNumber&&t.endColumn<r.startColumn||r.endLineNumber<t.startLineNumber||r.endLineNumber===t.startLineNumber&&r.endColumn<t.startColumn)}static areIntersecting(t,r){return!(t.endLineNumber<r.startLineNumber||t.endLineNumber===r.startLineNumber&&t.endColumn<=r.startColumn||r.endLineNumber<t.startLineNumber||r.endLineNumber===t.startLineNumber&&r.endColumn<=t.startColumn)}static compareRangesUsingStarts(t,r){if(t&&r){let o=t.startLineNumber|0,s=r.startLineNumber|0;if(o===s){let a=t.startColumn|0,u=r.startColumn|0;if(a===u){let d=t.endLineNumber|0,f=r.endLineNumber|0;if(d===f){let m=t.endColumn|0,w=r.endColumn|0;return m-w}return d-f}return a-u}return o-s}return(t?1:0)-(r?1:0)}static compareRangesUsingEnds(t,r){return t.endLineNumber===r.endLineNumber?t.endColumn===r.endColumn?t.startLineNumber===r.startLineNumber?t.startColumn-r.startColumn:t.startLineNumber-r.startLineNumber:t.endColumn-r.endColumn:t.endLineNumber-r.endLineNumber}static spansMultipleLines(t){return t.endLineNumber>t.startLineNumber}toJSON(){return this}};function P5(e,t,r=(n,i)=>n===i){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let n=0,i=e.length;n<i;n++)if(!r(e[n],t[n]))return!1;return!0}function*L5(e,t){let r,n;for(let i of e)n!==void 0&&t(n,i)?r.push(i):(r&&(yield r),r=[i]),n=i;r&&(yield r)}function I5(e,t){for(let r=0;r<=e.length;r++)t(r===0?void 0:e[r-1],r===e.length?void 0:e[r])}function A5(e,t){for(let r=0;r<e.length;r++)t(r===0?void 0:e[r-1],e[r],r+1===e.length?void 0:e[r+1])}function k5(e,t){for(let r of t)e.push(r)}var vy;(function(e){function t(o){return o<0}e.isLessThan=t;function r(o){return o<=0}e.isLessThanOrEqual=r;function n(o){return o>0}e.isGreaterThan=n;function i(o){return o===0}e.isNeitherLessOrGreaterThan=i,e.greaterThan=1,e.lessThan=-1,e.neitherLessOrGreaterThan=0})(vy||(vy={}));function Uc(e,t){return(r,n)=>t(e(r),e(n))}var Wc=(e,t)=>e-t;function N5(e){return(t,r)=>-e(t,r)}var nh=class e{constructor(t){this.iterate=t}toArray(){let t=[];return this.iterate(r=>(t.push(r),!0)),t}filter(t){return new e(r=>this.iterate(n=>t(n)?r(n):!0))}map(t){return new e(r=>this.iterate(n=>r(t(n))))}findLast(t){let r;return this.iterate(n=>(t(n)&&(r=n),!0)),r}findLastMaxBy(t){let r,n=!0;return this.iterate(i=>((n||vy.isGreaterThan(t(i,r)))&&(n=!1,r=i),!0)),r}};nh.empty=new nh(e=>{});function Sy(e){return e<0?0:e>255?255:e|0}function Cs(e){return e<0?0:e>4294967295?4294967295:e|0}var ih=class{constructor(t){this.values=t,this.prefixSum=new Uint32Array(t.length),this.prefixSumValidIndex=new Int32Array(1),this.prefixSumValidIndex[0]=-1}insertValues(t,r){t=Cs(t);let n=this.values,i=this.prefixSum,o=r.length;return o===0?!1:(this.values=new Uint32Array(n.length+o),this.values.set(n.subarray(0,t),0),this.values.set(n.subarray(t),t+o),this.values.set(r,t),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSum=new Uint32Array(this.values.length),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}setValue(t,r){return t=Cs(t),r=Cs(r),this.values[t]===r?!1:(this.values[t]=r,t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),!0)}removeValues(t,r){t=Cs(t),r=Cs(r);let n=this.values,i=this.prefixSum;if(t>=n.length)return!1;let o=n.length-t;return r>=o&&(r=o),r===0?!1:(this.values=new Uint32Array(n.length-r),this.values.set(n.subarray(0,t),0),this.values.set(n.subarray(t+r),t),this.prefixSum=new Uint32Array(this.values.length),t-1<this.prefixSumValidIndex[0]&&(this.prefixSumValidIndex[0]=t-1),this.prefixSumValidIndex[0]>=0&&this.prefixSum.set(i.subarray(0,this.prefixSumValidIndex[0]+1)),!0)}getTotalSum(){return this.values.length===0?0:this._getPrefixSum(this.values.length-1)}getPrefixSum(t){return t<0?0:(t=Cs(t),this._getPrefixSum(t))}_getPrefixSum(t){if(t<=this.prefixSumValidIndex[0])return this.prefixSum[t];let r=this.prefixSumValidIndex[0]+1;r===0&&(this.prefixSum[0]=this.values[0],r++),t>=this.values.length&&(t=this.values.length-1);for(let n=r;n<=t;n++)this.prefixSum[n]=this.prefixSum[n-1]+this.values[n];return this.prefixSumValidIndex[0]=Math.max(this.prefixSumValidIndex[0],t),this.prefixSum[t]}getIndexOf(t){t=Math.floor(t),this.getTotalSum();let r=0,n=this.values.length-1,i=0,o=0,s=0;for(;r<=n;)if(i=r+(n-r)/2|0,o=this.prefixSum[i],s=o-this.values[i],t<s)n=i-1;else if(t>=o)r=i+1;else break;return new xy(i,t-s)}};var xy=class{constructor(t,r){this.index=t,this.remainder=r,this._prefixSumIndexOfResultBrand=void 0,this.index=t,this.remainder=r}};var oh=class{constructor(t,r,n,i){this._uri=t,this._lines=r,this._eol=n,this._versionId=i,this._lineStarts=null,this._cachedTextValue=null}dispose(){this._lines.length=0}get version(){return this._versionId}getText(){return this._cachedTextValue===null&&(this._cachedTextValue=this._lines.join(this._eol)),this._cachedTextValue}onEvents(t){t.eol&&t.eol!==this._eol&&(this._eol=t.eol,this._lineStarts=null);let r=t.changes;for(let n of r)this._acceptDeleteRange(n.range),this._acceptInsertText(new zt(n.range.startLineNumber,n.range.startColumn),n.text);this._versionId=t.versionId,this._cachedTextValue=null}_ensureLineStarts(){if(!this._lineStarts){let t=this._eol.length,r=this._lines.length,n=new Uint32Array(r);for(let i=0;i<r;i++)n[i]=this._lines[i].length+t;this._lineStarts=new ih(n)}}_setLineText(t,r){this._lines[t]=r,this._lineStarts&&this._lineStarts.setValue(t,this._lines[t].length+this._eol.length)}_acceptDeleteRange(t){if(t.startLineNumber===t.endLineNumber){if(t.startColumn===t.endColumn)return;this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.startLineNumber-1].substring(t.endColumn-1));return}this._setLineText(t.startLineNumber-1,this._lines[t.startLineNumber-1].substring(0,t.startColumn-1)+this._lines[t.endLineNumber-1].substring(t.endColumn-1)),this._lines.splice(t.startLineNumber,t.endLineNumber-t.startLineNumber),this._lineStarts&&this._lineStarts.removeValues(t.startLineNumber,t.endLineNumber-t.startLineNumber)}_acceptInsertText(t,r){if(r.length===0)return;let n=c5(r);if(n.length===1){this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+n[0]+this._lines[t.lineNumber-1].substring(t.column-1));return}n[n.length-1]+=this._lines[t.lineNumber-1].substring(t.column-1),this._setLineText(t.lineNumber-1,this._lines[t.lineNumber-1].substring(0,t.column-1)+n[0]);let i=new Uint32Array(n.length-1);for(let o=1;o<n.length;o++)this._lines.splice(t.lineNumber+o-1,0,n[o]),i[o-1]=n[o].length+this._eol.length;this._lineStarts&&this._lineStarts.insertValues(t.lineNumber,i)}};var ON="`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?";function $N(e=""){let t="(-?\\d*\\.\\d\\w*)|([^";for(let r of ON)e.indexOf(r)>=0||(t+="\\"+r);return t+="\\s]+)",new RegExp(t,"g")}var Cy=$N();function Ty(e){let t=Cy;if(e&&e instanceof RegExp)if(e.global)t=e;else{let r="g";e.ignoreCase&&(r+="i"),e.multiline&&(r+="m"),e.unicode&&(r+="u"),t=new RegExp(e.source,r)}return t.lastIndex=0,t}var R5=new Ac;R5.unshift({maxLen:1e3,windowSize:15,timeBudget:150});function zc(e,t,r,n,i){if(t=Ty(t),i||(i=Ra.first(R5)),r.length>i.maxLen){let d=e-i.maxLen/2;return d<0?d=0:n+=d,r=r.substring(d,e+i.maxLen/2),zc(e,t,r,n,i)}let o=Date.now(),s=e-1-n,a=-1,u=null;for(let d=1;!(Date.now()-o>=i.timeBudget);d++){let f=s-i.windowSize*d;t.lastIndex=Math.max(0,f);let m=FN(t,r,s,a);if(!m&&u||(u=m,f<=0))break;a=f}if(u){let d={word:u[0],startColumn:n+1+u.index,endColumn:n+1+u.index+u[0].length};return t.lastIndex=0,d}return null}function FN(e,t,r,n){let i;for(;i=e.exec(t);){let o=i.index||0;if(o<=r&&e.lastIndex>=r)return i;if(n>0&&o>n)return null}return null}var Wa=class e{constructor(t){let r=Sy(t);this._defaultValue=r,this._asciiMap=e._createAsciiMap(r),this._map=new Map}static _createAsciiMap(t){let r=new Uint8Array(256);return r.fill(t),r}set(t,r){let n=Sy(r);t>=0&&t<256?this._asciiMap[t]=n:this._map.set(t,n)}get(t){return t>=0&&t<256?this._asciiMap[t]:this._map.get(t)||this._defaultValue}clear(){this._asciiMap.fill(this._defaultValue),this._map.clear()}};var My=class{constructor(t,r,n){let i=new Uint8Array(t*r);for(let o=0,s=t*r;o<s;o++)i[o]=n;this._data=i,this.rows=t,this.cols=r}get(t,r){return this._data[t*this.cols+r]}set(t,r,n){this._data[t*this.cols+r]=n}},Py=class{constructor(t){let r=0,n=0;for(let o=0,s=t.length;o<s;o++){let[a,u,d]=t[o];u>r&&(r=u),a>n&&(n=a),d>n&&(n=d)}r++,n++;let i=new My(n,r,0);for(let o=0,s=t.length;o<s;o++){let[a,u,d]=t[o];i.set(a,u,d)}this._states=i,this._maxCharCode=r}nextState(t,r){return r<0||r>=this._maxCharCode?0:this._states.get(t,r)}},Ey=null;function VN(){return Ey===null&&(Ey=new Py([[1,104,2],[1,72,2],[1,102,6],[1,70,6],[2,116,3],[2,84,3],[3,116,4],[3,84,4],[4,112,5],[4,80,5],[5,115,9],[5,83,9],[5,58,10],[6,105,7],[6,73,7],[7,108,8],[7,76,8],[8,101,9],[8,69,9],[9,58,10],[10,47,11],[11,47,12]])),Ey}var Gc=null;function UN(){if(Gc===null){Gc=new Wa(0);let e=` <>'"\u3001\u3002\uFF61\uFF64\uFF0C\uFF0E\uFF1A\uFF1B\u2018\u3008\u300C\u300E\u3014\uFF08\uFF3B\uFF5B\uFF62\uFF63\uFF5D\uFF3D\uFF09\u3015\u300F\u300D\u3009\u2019\uFF40\uFF5E\u2026`;for(let r=0;r<e.length;r++)Gc.set(e.charCodeAt(r),1);let t=".,;:";for(let r=0;r<t.length;r++)Gc.set(t.charCodeAt(r),2)}return Gc}var Ly=class e{static _createLink(t,r,n,i,o){let s=o-1;do{let a=r.charCodeAt(s);if(t.get(a)!==2)break;s--}while(s>i);if(i>0){let a=r.charCodeAt(i-1),u=r.charCodeAt(s);(a===40&&u===41||a===91&&u===93||a===123&&u===125)&&s--}return{range:{startLineNumber:n,startColumn:i+1,endLineNumber:n,endColumn:s+2},url:r.substring(i,s+1)}}static computeLinks(t,r=VN()){let n=UN(),i=[];for(let o=1,s=t.getLineCount();o<=s;o++){let a=t.getLineContent(o),u=a.length,d=0,f=0,m=0,w=1,_=!1,S=!1,C=!1,M=!1;for(;d<u;){let N=!1,L=a.charCodeAt(d);if(w===13){let k;switch(L){case 40:_=!0,k=0;break;case 41:k=_?0:1;break;case 91:C=!0,S=!0,k=0;break;case 93:C=!1,k=S?0:1;break;case 123:M=!0,k=0;break;case 125:k=M?0:1;break;case 39:case 34:case 96:m===L?k=1:m===39||m===34||m===96?k=0:k=1;break;case 42:k=m===42?1:0;break;case 124:k=m===124?1:0;break;case 32:k=C?0:1;break;default:k=n.get(L)}k===1&&(i.push(e._createLink(n,a,o,f,d)),N=!0)}else if(w===12){let k;L===91?(S=!0,k=0):k=n.get(L),k===1?N=!0:w=13}else w=r.nextState(w,L),w===0&&(N=!0);N&&(w=1,_=!1,S=!1,M=!1,f=d+1,m=L),d++}w===13&&i.push(e._createLink(n,a,o,f,u))}return i}};function D5(e){return!e||typeof e.getLineCount!="function"||typeof e.getLineContent!="function"?[]:Ly.computeLinks(e)}var za=class{constructor(){this._defaultValueSet=[["true","false"],["True","False"],["Private","Public","Friend","ReadOnly","Partial","Protected","WriteOnly"],["public","protected","private"]]}navigateValueSet(t,r,n,i,o){if(t&&r){let s=this.doNavigateValueSet(r,o);if(s)return{range:t,value:s}}if(n&&i){let s=this.doNavigateValueSet(i,o);if(s)return{range:n,value:s}}return null}doNavigateValueSet(t,r){let n=this.numberReplace(t,r);return n!==null?n:this.textReplace(t,r)}numberReplace(t,r){let n=Math.pow(10,t.length-(t.lastIndexOf(".")+1)),i=Number(t),o=parseFloat(t);return!isNaN(i)&&!isNaN(o)&&i===o?i===0&&!r?null:(i=Math.floor(i*n),i+=r?n:-n,String(i/n)):null}textReplace(t,r){return this.valueSetsReplace(this._defaultValueSet,t,r)}valueSetsReplace(t,r,n){let i=null;for(let o=0,s=t.length;i===null&&o<s;o++)i=this.valueSetReplace(t[o],r,n);return i}valueSetReplace(t,r,n){let i=t.indexOf(r);return i>=0?(i+=n?1:-1,i<0?i=t.length-1:i%=t.length,t[i]):null}};za.INSTANCE=new za;var O5=Object.freeze(function(e,t){let r=setTimeout(e.bind(t),0);return{dispose(){clearTimeout(r)}}}),sh;(function(e){function t(r){return r===e.None||r===e.Cancelled||r instanceof Ga?!0:!r||typeof r!="object"?!1:typeof r.isCancellationRequested=="boolean"&&typeof r.onCancellationRequested=="function"}e.isCancellationToken=t,e.None=Object.freeze({isCancellationRequested:!1,onCancellationRequested:Gm.None}),e.Cancelled=Object.freeze({isCancellationRequested:!0,onCancellationRequested:O5})})(sh||(sh={}));var Ga=class{constructor(){this._isCancelled=!1,this._emitter=null}cancel(){this._isCancelled||(this._isCancelled=!0,this._emitter&&(this._emitter.fire(void 0),this.dispose()))}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){return this._isCancelled?O5:(this._emitter||(this._emitter=new dr),this._emitter.event)}dispose(){this._emitter&&(this._emitter.dispose(),this._emitter=null)}},ah=class{constructor(t){this._token=void 0,this._parentListener=void 0,this._parentListener=t&&t.onCancellationRequested(this.cancel,this)}get token(){return this._token||(this._token=new Ga),this._token}cancel(){this._token?this._token instanceof Ga&&this._token.cancel():this._token=sh.Cancelled}dispose(t=!1){var r;t&&this.cancel(),(r=this._parentListener)===null||r===void 0||r.dispose(),this._token?this._token instanceof Ga&&this._token.dispose():this._token=sh.None}};var Bc=class{constructor(){this._keyCodeToStr=[],this._strToKeyCode=Object.create(null)}define(t,r){this._keyCodeToStr[t]=r,this._strToKeyCode[r.toLowerCase()]=t}keyCodeToStr(t){return this._keyCodeToStr[t]}strToKeyCode(t){return this._strToKeyCode[t.toLowerCase()]||0}},lh=new Bc,Iy=new Bc,Ay=new Bc,WN=new Array(230),zN={},GN=[],BN=Object.create(null),qN=Object.create(null),F5=[],ky=[];for(let e=0;e<=193;e++)F5[e]=-1;for(let e=0;e<=132;e++)ky[e]=-1;(function(){let e="",t=[[1,0,"None",0,"unknown",0,"VK_UNKNOWN",e,e],[1,1,"Hyper",0,e,0,e,e,e],[1,2,"Super",0,e,0,e,e,e],[1,3,"Fn",0,e,0,e,e,e],[1,4,"FnLock",0,e,0,e,e,e],[1,5,"Suspend",0,e,0,e,e,e],[1,6,"Resume",0,e,0,e,e,e],[1,7,"Turbo",0,e,0,e,e,e],[1,8,"Sleep",0,e,0,"VK_SLEEP",e,e],[1,9,"WakeUp",0,e,0,e,e,e],[0,10,"KeyA",31,"A",65,"VK_A",e,e],[0,11,"KeyB",32,"B",66,"VK_B",e,e],[0,12,"KeyC",33,"C",67,"VK_C",e,e],[0,13,"KeyD",34,"D",68,"VK_D",e,e],[0,14,"KeyE",35,"E",69,"VK_E",e,e],[0,15,"KeyF",36,"F",70,"VK_F",e,e],[0,16,"KeyG",37,"G",71,"VK_G",e,e],[0,17,"KeyH",38,"H",72,"VK_H",e,e],[0,18,"KeyI",39,"I",73,"VK_I",e,e],[0,19,"KeyJ",40,"J",74,"VK_J",e,e],[0,20,"KeyK",41,"K",75,"VK_K",e,e],[0,21,"KeyL",42,"L",76,"VK_L",e,e],[0,22,"KeyM",43,"M",77,"VK_M",e,e],[0,23,"KeyN",44,"N",78,"VK_N",e,e],[0,24,"KeyO",45,"O",79,"VK_O",e,e],[0,25,"KeyP",46,"P",80,"VK_P",e,e],[0,26,"KeyQ",47,"Q",81,"VK_Q",e,e],[0,27,"KeyR",48,"R",82,"VK_R",e,e],[0,28,"KeyS",49,"S",83,"VK_S",e,e],[0,29,"KeyT",50,"T",84,"VK_T",e,e],[0,30,"KeyU",51,"U",85,"VK_U",e,e],[0,31,"KeyV",52,"V",86,"VK_V",e,e],[0,32,"KeyW",53,"W",87,"VK_W",e,e],[0,33,"KeyX",54,"X",88,"VK_X",e,e],[0,34,"KeyY",55,"Y",89,"VK_Y",e,e],[0,35,"KeyZ",56,"Z",90,"VK_Z",e,e],[0,36,"Digit1",22,"1",49,"VK_1",e,e],[0,37,"Digit2",23,"2",50,"VK_2",e,e],[0,38,"Digit3",24,"3",51,"VK_3",e,e],[0,39,"Digit4",25,"4",52,"VK_4",e,e],[0,40,"Digit5",26,"5",53,"VK_5",e,e],[0,41,"Digit6",27,"6",54,"VK_6",e,e],[0,42,"Digit7",28,"7",55,"VK_7",e,e],[0,43,"Digit8",29,"8",56,"VK_8",e,e],[0,44,"Digit9",30,"9",57,"VK_9",e,e],[0,45,"Digit0",21,"0",48,"VK_0",e,e],[1,46,"Enter",3,"Enter",13,"VK_RETURN",e,e],[1,47,"Escape",9,"Escape",27,"VK_ESCAPE",e,e],[1,48,"Backspace",1,"Backspace",8,"VK_BACK",e,e],[1,49,"Tab",2,"Tab",9,"VK_TAB",e,e],[1,50,"Space",10,"Space",32,"VK_SPACE",e,e],[0,51,"Minus",88,"-",189,"VK_OEM_MINUS","-","OEM_MINUS"],[0,52,"Equal",86,"=",187,"VK_OEM_PLUS","=","OEM_PLUS"],[0,53,"BracketLeft",92,"[",219,"VK_OEM_4","[","OEM_4"],[0,54,"BracketRight",94,"]",221,"VK_OEM_6","]","OEM_6"],[0,55,"Backslash",93,"\\",220,"VK_OEM_5","\\","OEM_5"],[0,56,"IntlHash",0,e,0,e,e,e],[0,57,"Semicolon",85,";",186,"VK_OEM_1",";","OEM_1"],[0,58,"Quote",95,"'",222,"VK_OEM_7","'","OEM_7"],[0,59,"Backquote",91,"`",192,"VK_OEM_3","`","OEM_3"],[0,60,"Comma",87,",",188,"VK_OEM_COMMA",",","OEM_COMMA"],[0,61,"Period",89,".",190,"VK_OEM_PERIOD",".","OEM_PERIOD"],[0,62,"Slash",90,"/",191,"VK_OEM_2","/","OEM_2"],[1,63,"CapsLock",8,"CapsLock",20,"VK_CAPITAL",e,e],[1,64,"F1",59,"F1",112,"VK_F1",e,e],[1,65,"F2",60,"F2",113,"VK_F2",e,e],[1,66,"F3",61,"F3",114,"VK_F3",e,e],[1,67,"F4",62,"F4",115,"VK_F4",e,e],[1,68,"F5",63,"F5",116,"VK_F5",e,e],[1,69,"F6",64,"F6",117,"VK_F6",e,e],[1,70,"F7",65,"F7",118,"VK_F7",e,e],[1,71,"F8",66,"F8",119,"VK_F8",e,e],[1,72,"F9",67,"F9",120,"VK_F9",e,e],[1,73,"F10",68,"F10",121,"VK_F10",e,e],[1,74,"F11",69,"F11",122,"VK_F11",e,e],[1,75,"F12",70,"F12",123,"VK_F12",e,e],[1,76,"PrintScreen",0,e,0,e,e,e],[1,77,"ScrollLock",84,"ScrollLock",145,"VK_SCROLL",e,e],[1,78,"Pause",7,"PauseBreak",19,"VK_PAUSE",e,e],[1,79,"Insert",19,"Insert",45,"VK_INSERT",e,e],[1,80,"Home",14,"Home",36,"VK_HOME",e,e],[1,81,"PageUp",11,"PageUp",33,"VK_PRIOR",e,e],[1,82,"Delete",20,"Delete",46,"VK_DELETE",e,e],[1,83,"End",13,"End",35,"VK_END",e,e],[1,84,"PageDown",12,"PageDown",34,"VK_NEXT",e,e],[1,85,"ArrowRight",17,"RightArrow",39,"VK_RIGHT","Right",e],[1,86,"ArrowLeft",15,"LeftArrow",37,"VK_LEFT","Left",e],[1,87,"ArrowDown",18,"DownArrow",40,"VK_DOWN","Down",e],[1,88,"ArrowUp",16,"UpArrow",38,"VK_UP","Up",e],[1,89,"NumLock",83,"NumLock",144,"VK_NUMLOCK",e,e],[1,90,"NumpadDivide",113,"NumPad_Divide",111,"VK_DIVIDE",e,e],[1,91,"NumpadMultiply",108,"NumPad_Multiply",106,"VK_MULTIPLY",e,e],[1,92,"NumpadSubtract",111,"NumPad_Subtract",109,"VK_SUBTRACT",e,e],[1,93,"NumpadAdd",109,"NumPad_Add",107,"VK_ADD",e,e],[1,94,"NumpadEnter",3,e,0,e,e,e],[1,95,"Numpad1",99,"NumPad1",97,"VK_NUMPAD1",e,e],[1,96,"Numpad2",100,"NumPad2",98,"VK_NUMPAD2",e,e],[1,97,"Numpad3",101,"NumPad3",99,"VK_NUMPAD3",e,e],[1,98,"Numpad4",102,"NumPad4",100,"VK_NUMPAD4",e,e],[1,99,"Numpad5",103,"NumPad5",101,"VK_NUMPAD5",e,e],[1,100,"Numpad6",104,"NumPad6",102,"VK_NUMPAD6",e,e],[1,101,"Numpad7",105,"NumPad7",103,"VK_NUMPAD7",e,e],[1,102,"Numpad8",106,"NumPad8",104,"VK_NUMPAD8",e,e],[1,103,"Numpad9",107,"NumPad9",105,"VK_NUMPAD9",e,e],[1,104,"Numpad0",98,"NumPad0",96,"VK_NUMPAD0",e,e],[1,105,"NumpadDecimal",112,"NumPad_Decimal",110,"VK_DECIMAL",e,e],[0,106,"IntlBackslash",97,"OEM_102",226,"VK_OEM_102",e,e],[1,107,"ContextMenu",58,"ContextMenu",93,e,e,e],[1,108,"Power",0,e,0,e,e,e],[1,109,"NumpadEqual",0,e,0,e,e,e],[1,110,"F13",71,"F13",124,"VK_F13",e,e],[1,111,"F14",72,"F14",125,"VK_F14",e,e],[1,112,"F15",73,"F15",126,"VK_F15",e,e],[1,113,"F16",74,"F16",127,"VK_F16",e,e],[1,114,"F17",75,"F17",128,"VK_F17",e,e],[1,115,"F18",76,"F18",129,"VK_F18",e,e],[1,116,"F19",77,"F19",130,"VK_F19",e,e],[1,117,"F20",78,"F20",131,"VK_F20",e,e],[1,118,"F21",79,"F21",132,"VK_F21",e,e],[1,119,"F22",80,"F22",133,"VK_F22",e,e],[1,120,"F23",81,"F23",134,"VK_F23",e,e],[1,121,"F24",82,"F24",135,"VK_F24",e,e],[1,122,"Open",0,e,0,e,e,e],[1,123,"Help",0,e,0,e,e,e],[1,124,"Select",0,e,0,e,e,e],[1,125,"Again",0,e,0,e,e,e],[1,126,"Undo",0,e,0,e,e,e],[1,127,"Cut",0,e,0,e,e,e],[1,128,"Copy",0,e,0,e,e,e],[1,129,"Paste",0,e,0,e,e,e],[1,130,"Find",0,e,0,e,e,e],[1,131,"AudioVolumeMute",117,"AudioVolumeMute",173,"VK_VOLUME_MUTE",e,e],[1,132,"AudioVolumeUp",118,"AudioVolumeUp",175,"VK_VOLUME_UP",e,e],[1,133,"AudioVolumeDown",119,"AudioVolumeDown",174,"VK_VOLUME_DOWN",e,e],[1,134,"NumpadComma",110,"NumPad_Separator",108,"VK_SEPARATOR",e,e],[0,135,"IntlRo",115,"ABNT_C1",193,"VK_ABNT_C1",e,e],[1,136,"KanaMode",0,e,0,e,e,e],[0,137,"IntlYen",0,e,0,e,e,e],[1,138,"Convert",0,e,0,e,e,e],[1,139,"NonConvert",0,e,0,e,e,e],[1,140,"Lang1",0,e,0,e,e,e],[1,141,"Lang2",0,e,0,e,e,e],[1,142,"Lang3",0,e,0,e,e,e],[1,143,"Lang4",0,e,0,e,e,e],[1,144,"Lang5",0,e,0,e,e,e],[1,145,"Abort",0,e,0,e,e,e],[1,146,"Props",0,e,0,e,e,e],[1,147,"NumpadParenLeft",0,e,0,e,e,e],[1,148,"NumpadParenRight",0,e,0,e,e,e],[1,149,"NumpadBackspace",0,e,0,e,e,e],[1,150,"NumpadMemoryStore",0,e,0,e,e,e],[1,151,"NumpadMemoryRecall",0,e,0,e,e,e],[1,152,"NumpadMemoryClear",0,e,0,e,e,e],[1,153,"NumpadMemoryAdd",0,e,0,e,e,e],[1,154,"NumpadMemorySubtract",0,e,0,e,e,e],[1,155,"NumpadClear",131,"Clear",12,"VK_CLEAR",e,e],[1,156,"NumpadClearEntry",0,e,0,e,e,e],[1,0,e,5,"Ctrl",17,"VK_CONTROL",e,e],[1,0,e,4,"Shift",16,"VK_SHIFT",e,e],[1,0,e,6,"Alt",18,"VK_MENU",e,e],[1,0,e,57,"Meta",91,"VK_COMMAND",e,e],[1,157,"ControlLeft",5,e,0,"VK_LCONTROL",e,e],[1,158,"ShiftLeft",4,e,0,"VK_LSHIFT",e,e],[1,159,"AltLeft",6,e,0,"VK_LMENU",e,e],[1,160,"MetaLeft",57,e,0,"VK_LWIN",e,e],[1,161,"ControlRight",5,e,0,"VK_RCONTROL",e,e],[1,162,"ShiftRight",4,e,0,"VK_RSHIFT",e,e],[1,163,"AltRight",6,e,0,"VK_RMENU",e,e],[1,164,"MetaRight",57,e,0,"VK_RWIN",e,e],[1,165,"BrightnessUp",0,e,0,e,e,e],[1,166,"BrightnessDown",0,e,0,e,e,e],[1,167,"MediaPlay",0,e,0,e,e,e],[1,168,"MediaRecord",0,e,0,e,e,e],[1,169,"MediaFastForward",0,e,0,e,e,e],[1,170,"MediaRewind",0,e,0,e,e,e],[1,171,"MediaTrackNext",124,"MediaTrackNext",176,"VK_MEDIA_NEXT_TRACK",e,e],[1,172,"MediaTrackPrevious",125,"MediaTrackPrevious",177,"VK_MEDIA_PREV_TRACK",e,e],[1,173,"MediaStop",126,"MediaStop",178,"VK_MEDIA_STOP",e,e],[1,174,"Eject",0,e,0,e,e,e],[1,175,"MediaPlayPause",127,"MediaPlayPause",179,"VK_MEDIA_PLAY_PAUSE",e,e],[1,176,"MediaSelect",128,"LaunchMediaPlayer",181,"VK_MEDIA_LAUNCH_MEDIA_SELECT",e,e],[1,177,"LaunchMail",129,"LaunchMail",180,"VK_MEDIA_LAUNCH_MAIL",e,e],[1,178,"LaunchApp2",130,"LaunchApp2",183,"VK_MEDIA_LAUNCH_APP2",e,e],[1,179,"LaunchApp1",0,e,0,"VK_MEDIA_LAUNCH_APP1",e,e],[1,180,"SelectTask",0,e,0,e,e,e],[1,181,"LaunchScreenSaver",0,e,0,e,e,e],[1,182,"BrowserSearch",120,"BrowserSearch",170,"VK_BROWSER_SEARCH",e,e],[1,183,"BrowserHome",121,"BrowserHome",172,"VK_BROWSER_HOME",e,e],[1,184,"BrowserBack",122,"BrowserBack",166,"VK_BROWSER_BACK",e,e],[1,185,"BrowserForward",123,"BrowserForward",167,"VK_BROWSER_FORWARD",e,e],[1,186,"BrowserStop",0,e,0,"VK_BROWSER_STOP",e,e],[1,187,"BrowserRefresh",0,e,0,"VK_BROWSER_REFRESH",e,e],[1,188,"BrowserFavorites",0,e,0,"VK_BROWSER_FAVORITES",e,e],[1,189,"ZoomToggle",0,e,0,e,e,e],[1,190,"MailReply",0,e,0,e,e,e],[1,191,"MailForward",0,e,0,e,e,e],[1,192,"MailSend",0,e,0,e,e,e],[1,0,e,114,"KeyInComposition",229,e,e,e],[1,0,e,116,"ABNT_C2",194,"VK_ABNT_C2",e,e],[1,0,e,96,"OEM_8",223,"VK_OEM_8",e,e],[1,0,e,0,e,0,"VK_KANA",e,e],[1,0,e,0,e,0,"VK_HANGUL",e,e],[1,0,e,0,e,0,"VK_JUNJA",e,e],[1,0,e,0,e,0,"VK_FINAL",e,e],[1,0,e,0,e,0,"VK_HANJA",e,e],[1,0,e,0,e,0,"VK_KANJI",e,e],[1,0,e,0,e,0,"VK_CONVERT",e,e],[1,0,e,0,e,0,"VK_NONCONVERT",e,e],[1,0,e,0,e,0,"VK_ACCEPT",e,e],[1,0,e,0,e,0,"VK_MODECHANGE",e,e],[1,0,e,0,e,0,"VK_SELECT",e,e],[1,0,e,0,e,0,"VK_PRINT",e,e],[1,0,e,0,e,0,"VK_EXECUTE",e,e],[1,0,e,0,e,0,"VK_SNAPSHOT",e,e],[1,0,e,0,e,0,"VK_HELP",e,e],[1,0,e,0,e,0,"VK_APPS",e,e],[1,0,e,0,e,0,"VK_PROCESSKEY",e,e],[1,0,e,0,e,0,"VK_PACKET",e,e],[1,0,e,0,e,0,"VK_DBE_SBCSCHAR",e,e],[1,0,e,0,e,0,"VK_DBE_DBCSCHAR",e,e],[1,0,e,0,e,0,"VK_ATTN",e,e],[1,0,e,0,e,0,"VK_CRSEL",e,e],[1,0,e,0,e,0,"VK_EXSEL",e,e],[1,0,e,0,e,0,"VK_EREOF",e,e],[1,0,e,0,e,0,"VK_PLAY",e,e],[1,0,e,0,e,0,"VK_ZOOM",e,e],[1,0,e,0,e,0,"VK_NONAME",e,e],[1,0,e,0,e,0,"VK_PA1",e,e],[1,0,e,0,e,0,"VK_OEM_CLEAR",e,e]],r=[],n=[];for(let i of t){let[o,s,a,u,d,f,m,w,_]=i;if(n[s]||(n[s]=!0,GN[s]=a,BN[a]=s,qN[a.toLowerCase()]=s,o&&(F5[s]=u,u!==0&&u!==3&&u!==5&&u!==4&&u!==6&&u!==57&&(ky[u]=s))),!r[u]){if(r[u]=!0,!d)throw new Error(`String representation missing for key code ${u} around scan code ${a}`);lh.define(u,d),Iy.define(u,w||d),Ay.define(u,_||w||d)}f&&(WN[f]=u),m&&(zN[m]=u)}ky[3]=46})();var $5;(function(e){function t(a){return lh.keyCodeToStr(a)}e.toString=t;function r(a){return lh.strToKeyCode(a)}e.fromString=r;function n(a){return Iy.keyCodeToStr(a)}e.toUserSettingsUS=n;function i(a){return Ay.keyCodeToStr(a)}e.toUserSettingsGeneral=i;function o(a){return Iy.strToKeyCode(a)||Ay.strToKeyCode(a)}e.fromUserSettings=o;function s(a){if(a>=98&&a<=113)return null;switch(a){case 16:return"Up";case 18:return"Down";case 15:return"Left";case 17:return"Right"}return lh.keyCodeToStr(a)}e.toElectronAccelerator=s})($5||($5={}));function V5(e,t){let r=(t&65535)<<16>>>0;return(e|r)>>>0}var ch=class e extends $e{constructor(t,r,n,i){super(t,r,n,i),this.selectionStartLineNumber=t,this.selectionStartColumn=r,this.positionLineNumber=n,this.positionColumn=i}toString(){return"["+this.selectionStartLineNumber+","+this.selectionStartColumn+" -> "+this.positionLineNumber+","+this.positionColumn+"]"}equalsSelection(t){return e.selectionsEqual(this,t)}static selectionsEqual(t,r){return t.selectionStartLineNumber===r.selectionStartLineNumber&&t.selectionStartColumn===r.selectionStartColumn&&t.positionLineNumber===r.positionLineNumber&&t.positionColumn===r.positionColumn}getDirection(){return this.selectionStartLineNumber===this.startLineNumber&&this.selectionStartColumn===this.startColumn?0:1}setEndPosition(t,r){return this.getDirection()===0?new e(this.startLineNumber,this.startColumn,t,r):new e(t,r,this.startLineNumber,this.startColumn)}getPosition(){return new zt(this.positionLineNumber,this.positionColumn)}getSelectionStart(){return new zt(this.selectionStartLineNumber,this.selectionStartColumn)}setStartPosition(t,r){return this.getDirection()===0?new e(t,r,this.endLineNumber,this.endColumn):new e(this.endLineNumber,this.endColumn,t,r)}static fromPositions(t,r=t){return new e(t.lineNumber,t.column,r.lineNumber,r.column)}static fromRange(t,r){return r===0?new e(t.startLineNumber,t.startColumn,t.endLineNumber,t.endColumn):new e(t.endLineNumber,t.endColumn,t.startLineNumber,t.startColumn)}static liftSelection(t){return new e(t.selectionStartLineNumber,t.selectionStartColumn,t.positionLineNumber,t.positionColumn)}static selectionsArrEqual(t,r){if(t&&!r||!t&&r)return!1;if(!t&&!r)return!0;if(t.length!==r.length)return!1;for(let n=0,i=t.length;n<i;n++)if(!this.selectionsEqual(t[n],r[n]))return!1;return!0}static isISelection(t){return t&&typeof t.selectionStartLineNumber=="number"&&typeof t.selectionStartColumn=="number"&&typeof t.positionLineNumber=="number"&&typeof t.positionColumn=="number"}static createWithDirection(t,r,n,i,o){return o===0?new e(t,r,n,i):new e(n,i,t,r)}};var U5=Object.create(null);function b(e,t){if(r5(t)){let r=U5[t];if(r===void 0)throw new Error(`${e} references an unknown codicon: ${t}`);t=r}return U5[e]=t,{id:e}}var me={add:b("add",6e4),plus:b("plus",6e4),gistNew:b("gist-new",6e4),repoCreate:b("repo-create",6e4),lightbulb:b("lightbulb",60001),lightBulb:b("light-bulb",60001),repo:b("repo",60002),repoDelete:b("repo-delete",60002),gistFork:b("gist-fork",60003),repoForked:b("repo-forked",60003),gitPullRequest:b("git-pull-request",60004),gitPullRequestAbandoned:b("git-pull-request-abandoned",60004),recordKeys:b("record-keys",60005),keyboard:b("keyboard",60005),tag:b("tag",60006),tagAdd:b("tag-add",60006),tagRemove:b("tag-remove",60006),gitPullRequestLabel:b("git-pull-request-label",60006),person:b("person",60007),personFollow:b("person-follow",60007),personOutline:b("person-outline",60007),personFilled:b("person-filled",60007),gitBranch:b("git-branch",60008),gitBranchCreate:b("git-branch-create",60008),gitBranchDelete:b("git-branch-delete",60008),sourceControl:b("source-control",60008),mirror:b("mirror",60009),mirrorPublic:b("mirror-public",60009),star:b("star",60010),starAdd:b("star-add",60010),starDelete:b("star-delete",60010),starEmpty:b("star-empty",60010),comment:b("comment",60011),commentAdd:b("comment-add",60011),alert:b("alert",60012),warning:b("warning",60012),search:b("search",60013),searchSave:b("search-save",60013),logOut:b("log-out",60014),signOut:b("sign-out",60014),logIn:b("log-in",60015),signIn:b("sign-in",60015),eye:b("eye",60016),eyeUnwatch:b("eye-unwatch",60016),eyeWatch:b("eye-watch",60016),circleFilled:b("circle-filled",60017),primitiveDot:b("primitive-dot",60017),closeDirty:b("close-dirty",60017),debugBreakpoint:b("debug-breakpoint",60017),debugBreakpointDisabled:b("debug-breakpoint-disabled",60017),debugHint:b("debug-hint",60017),primitiveSquare:b("primitive-square",60018),edit:b("edit",60019),pencil:b("pencil",60019),info:b("info",60020),issueOpened:b("issue-opened",60020),gistPrivate:b("gist-private",60021),gitForkPrivate:b("git-fork-private",60021),lock:b("lock",60021),mirrorPrivate:b("mirror-private",60021),close:b("close",60022),removeClose:b("remove-close",60022),x:b("x",60022),repoSync:b("repo-sync",60023),sync:b("sync",60023),clone:b("clone",60024),desktopDownload:b("desktop-download",60024),beaker:b("beaker",60025),microscope:b("microscope",60025),vm:b("vm",60026),deviceDesktop:b("device-desktop",60026),file:b("file",60027),fileText:b("file-text",60027),more:b("more",60028),ellipsis:b("ellipsis",60028),kebabHorizontal:b("kebab-horizontal",60028),mailReply:b("mail-reply",60029),reply:b("reply",60029),organization:b("organization",60030),organizationFilled:b("organization-filled",60030),organizationOutline:b("organization-outline",60030),newFile:b("new-file",60031),fileAdd:b("file-add",60031),newFolder:b("new-folder",60032),fileDirectoryCreate:b("file-directory-create",60032),trash:b("trash",60033),trashcan:b("trashcan",60033),history:b("history",60034),clock:b("clock",60034),folder:b("folder",60035),fileDirectory:b("file-directory",60035),symbolFolder:b("symbol-folder",60035),logoGithub:b("logo-github",60036),markGithub:b("mark-github",60036),github:b("github",60036),terminal:b("terminal",60037),console:b("console",60037),repl:b("repl",60037),zap:b("zap",60038),symbolEvent:b("symbol-event",60038),error:b("error",60039),stop:b("stop",60039),variable:b("variable",60040),symbolVariable:b("symbol-variable",60040),array:b("array",60042),symbolArray:b("symbol-array",60042),symbolModule:b("symbol-module",60043),symbolPackage:b("symbol-package",60043),symbolNamespace:b("symbol-namespace",60043),symbolObject:b("symbol-object",60043),symbolMethod:b("symbol-method",60044),symbolFunction:b("symbol-function",60044),symbolConstructor:b("symbol-constructor",60044),symbolBoolean:b("symbol-boolean",60047),symbolNull:b("symbol-null",60047),symbolNumeric:b("symbol-numeric",60048),symbolNumber:b("symbol-number",60048),symbolStructure:b("symbol-structure",60049),symbolStruct:b("symbol-struct",60049),symbolParameter:b("symbol-parameter",60050),symbolTypeParameter:b("symbol-type-parameter",60050),symbolKey:b("symbol-key",60051),symbolText:b("symbol-text",60051),symbolReference:b("symbol-reference",60052),goToFile:b("go-to-file",60052),symbolEnum:b("symbol-enum",60053),symbolValue:b("symbol-value",60053),symbolRuler:b("symbol-ruler",60054),symbolUnit:b("symbol-unit",60054),activateBreakpoints:b("activate-breakpoints",60055),archive:b("archive",60056),arrowBoth:b("arrow-both",60057),arrowDown:b("arrow-down",60058),arrowLeft:b("arrow-left",60059),arrowRight:b("arrow-right",60060),arrowSmallDown:b("arrow-small-down",60061),arrowSmallLeft:b("arrow-small-left",60062),arrowSmallRight:b("arrow-small-right",60063),arrowSmallUp:b("arrow-small-up",60064),arrowUp:b("arrow-up",60065),bell:b("bell",60066),bold:b("bold",60067),book:b("book",60068),bookmark:b("bookmark",60069),debugBreakpointConditionalUnverified:b("debug-breakpoint-conditional-unverified",60070),debugBreakpointConditional:b("debug-breakpoint-conditional",60071),debugBreakpointConditionalDisabled:b("debug-breakpoint-conditional-disabled",60071),debugBreakpointDataUnverified:b("debug-breakpoint-data-unverified",60072),debugBreakpointData:b("debug-breakpoint-data",60073),debugBreakpointDataDisabled:b("debug-breakpoint-data-disabled",60073),debugBreakpointLogUnverified:b("debug-breakpoint-log-unverified",60074),debugBreakpointLog:b("debug-breakpoint-log",60075),debugBreakpointLogDisabled:b("debug-breakpoint-log-disabled",60075),briefcase:b("briefcase",60076),broadcast:b("broadcast",60077),browser:b("browser",60078),bug:b("bug",60079),calendar:b("calendar",60080),caseSensitive:b("case-sensitive",60081),check:b("check",60082),checklist:b("checklist",60083),chevronDown:b("chevron-down",60084),dropDownButton:b("drop-down-button",60084),chevronLeft:b("chevron-left",60085),chevronRight:b("chevron-right",60086),chevronUp:b("chevron-up",60087),chromeClose:b("chrome-close",60088),chromeMaximize:b("chrome-maximize",60089),chromeMinimize:b("chrome-minimize",60090),chromeRestore:b("chrome-restore",60091),circle:b("circle",60092),circleOutline:b("circle-outline",60092),debugBreakpointUnverified:b("debug-breakpoint-unverified",60092),circleSlash:b("circle-slash",60093),circuitBoard:b("circuit-board",60094),clearAll:b("clear-all",60095),clippy:b("clippy",60096),closeAll:b("close-all",60097),cloudDownload:b("cloud-download",60098),cloudUpload:b("cloud-upload",60099),code:b("code",60100),collapseAll:b("collapse-all",60101),colorMode:b("color-mode",60102),commentDiscussion:b("comment-discussion",60103),compareChanges:b("compare-changes",60157),creditCard:b("credit-card",60105),dash:b("dash",60108),dashboard:b("dashboard",60109),database:b("database",60110),debugContinue:b("debug-continue",60111),debugDisconnect:b("debug-disconnect",60112),debugPause:b("debug-pause",60113),debugRestart:b("debug-restart",60114),debugStart:b("debug-start",60115),debugStepInto:b("debug-step-into",60116),debugStepOut:b("debug-step-out",60117),debugStepOver:b("debug-step-over",60118),debugStop:b("debug-stop",60119),debug:b("debug",60120),deviceCameraVideo:b("device-camera-video",60121),deviceCamera:b("device-camera",60122),deviceMobile:b("device-mobile",60123),diffAdded:b("diff-added",60124),diffIgnored:b("diff-ignored",60125),diffModified:b("diff-modified",60126),diffRemoved:b("diff-removed",60127),diffRenamed:b("diff-renamed",60128),diff:b("diff",60129),discard:b("discard",60130),editorLayout:b("editor-layout",60131),emptyWindow:b("empty-window",60132),exclude:b("exclude",60133),extensions:b("extensions",60134),eyeClosed:b("eye-closed",60135),fileBinary:b("file-binary",60136),fileCode:b("file-code",60137),fileMedia:b("file-media",60138),filePdf:b("file-pdf",60139),fileSubmodule:b("file-submodule",60140),fileSymlinkDirectory:b("file-symlink-directory",60141),fileSymlinkFile:b("file-symlink-file",60142),fileZip:b("file-zip",60143),files:b("files",60144),filter:b("filter",60145),flame:b("flame",60146),foldDown:b("fold-down",60147),foldUp:b("fold-up",60148),fold:b("fold",60149),folderActive:b("folder-active",60150),folderOpened:b("folder-opened",60151),gear:b("gear",60152),gift:b("gift",60153),gistSecret:b("gist-secret",60154),gist:b("gist",60155),gitCommit:b("git-commit",60156),gitCompare:b("git-compare",60157),gitMerge:b("git-merge",60158),githubAction:b("github-action",60159),githubAlt:b("github-alt",60160),globe:b("globe",60161),grabber:b("grabber",60162),graph:b("graph",60163),gripper:b("gripper",60164),heart:b("heart",60165),home:b("home",60166),horizontalRule:b("horizontal-rule",60167),hubot:b("hubot",60168),inbox:b("inbox",60169),issueClosed:b("issue-closed",60324),issueReopened:b("issue-reopened",60171),issues:b("issues",60172),italic:b("italic",60173),jersey:b("jersey",60174),json:b("json",60175),bracket:b("bracket",60175),kebabVertical:b("kebab-vertical",60176),key:b("key",60177),law:b("law",60178),lightbulbAutofix:b("lightbulb-autofix",60179),linkExternal:b("link-external",60180),link:b("link",60181),listOrdered:b("list-ordered",60182),listUnordered:b("list-unordered",60183),liveShare:b("live-share",60184),loading:b("loading",60185),location:b("location",60186),mailRead:b("mail-read",60187),mail:b("mail",60188),markdown:b("markdown",60189),megaphone:b("megaphone",60190),mention:b("mention",60191),milestone:b("milestone",60192),gitPullRequestMilestone:b("git-pull-request-milestone",60192),mortarBoard:b("mortar-board",60193),move:b("move",60194),multipleWindows:b("multiple-windows",60195),mute:b("mute",60196),noNewline:b("no-newline",60197),note:b("note",60198),octoface:b("octoface",60199),openPreview:b("open-preview",60200),package:b("package",60201),paintcan:b("paintcan",60202),pin:b("pin",60203),play:b("play",60204),run:b("run",60204),plug:b("plug",60205),preserveCase:b("preserve-case",60206),preview:b("preview",60207),project:b("project",60208),pulse:b("pulse",60209),question:b("question",60210),quote:b("quote",60211),radioTower:b("radio-tower",60212),reactions:b("reactions",60213),references:b("references",60214),refresh:b("refresh",60215),regex:b("regex",60216),remoteExplorer:b("remote-explorer",60217),remote:b("remote",60218),remove:b("remove",60219),replaceAll:b("replace-all",60220),replace:b("replace",60221),repoClone:b("repo-clone",60222),repoForcePush:b("repo-force-push",60223),repoPull:b("repo-pull",60224),repoPush:b("repo-push",60225),report:b("report",60226),requestChanges:b("request-changes",60227),rocket:b("rocket",60228),rootFolderOpened:b("root-folder-opened",60229),rootFolder:b("root-folder",60230),rss:b("rss",60231),ruby:b("ruby",60232),saveAll:b("save-all",60233),saveAs:b("save-as",60234),save:b("save",60235),screenFull:b("screen-full",60236),screenNormal:b("screen-normal",60237),searchStop:b("search-stop",60238),server:b("server",60240),settingsGear:b("settings-gear",60241),settings:b("settings",60242),shield:b("shield",60243),smiley:b("smiley",60244),sortPrecedence:b("sort-precedence",60245),splitHorizontal:b("split-horizontal",60246),splitVertical:b("split-vertical",60247),squirrel:b("squirrel",60248),starFull:b("star-full",60249),starHalf:b("star-half",60250),symbolClass:b("symbol-class",60251),symbolColor:b("symbol-color",60252),symbolCustomColor:b("symbol-customcolor",60252),symbolConstant:b("symbol-constant",60253),symbolEnumMember:b("symbol-enum-member",60254),symbolField:b("symbol-field",60255),symbolFile:b("symbol-file",60256),symbolInterface:b("symbol-interface",60257),symbolKeyword:b("symbol-keyword",60258),symbolMisc:b("symbol-misc",60259),symbolOperator:b("symbol-operator",60260),symbolProperty:b("symbol-property",60261),wrench:b("wrench",60261),wrenchSubaction:b("wrench-subaction",60261),symbolSnippet:b("symbol-snippet",60262),tasklist:b("tasklist",60263),telescope:b("telescope",60264),textSize:b("text-size",60265),threeBars:b("three-bars",60266),thumbsdown:b("thumbsdown",60267),thumbsup:b("thumbsup",60268),tools:b("tools",60269),triangleDown:b("triangle-down",60270),triangleLeft:b("triangle-left",60271),triangleRight:b("triangle-right",60272),triangleUp:b("triangle-up",60273),twitter:b("twitter",60274),unfold:b("unfold",60275),unlock:b("unlock",60276),unmute:b("unmute",60277),unverified:b("unverified",60278),verified:b("verified",60279),versions:b("versions",60280),vmActive:b("vm-active",60281),vmOutline:b("vm-outline",60282),vmRunning:b("vm-running",60283),watch:b("watch",60284),whitespace:b("whitespace",60285),wholeWord:b("whole-word",60286),window:b("window",60287),wordWrap:b("word-wrap",60288),zoomIn:b("zoom-in",60289),zoomOut:b("zoom-out",60290),listFilter:b("list-filter",60291),listFlat:b("list-flat",60292),listSelection:b("list-selection",60293),selection:b("selection",60293),listTree:b("list-tree",60294),debugBreakpointFunctionUnverified:b("debug-breakpoint-function-unverified",60295),debugBreakpointFunction:b("debug-breakpoint-function",60296),debugBreakpointFunctionDisabled:b("debug-breakpoint-function-disabled",60296),debugStackframeActive:b("debug-stackframe-active",60297),circleSmallFilled:b("circle-small-filled",60298),debugStackframeDot:b("debug-stackframe-dot",60298),debugStackframe:b("debug-stackframe",60299),debugStackframeFocused:b("debug-stackframe-focused",60299),debugBreakpointUnsupported:b("debug-breakpoint-unsupported",60300),symbolString:b("symbol-string",60301),debugReverseContinue:b("debug-reverse-continue",60302),debugStepBack:b("debug-step-back",60303),debugRestartFrame:b("debug-restart-frame",60304),callIncoming:b("call-incoming",60306),callOutgoing:b("call-outgoing",60307),menu:b("menu",60308),expandAll:b("expand-all",60309),feedback:b("feedback",60310),gitPullRequestReviewer:b("git-pull-request-reviewer",60310),groupByRefType:b("group-by-ref-type",60311),ungroupByRefType:b("ungroup-by-ref-type",60312),account:b("account",60313),gitPullRequestAssignee:b("git-pull-request-assignee",60313),bellDot:b("bell-dot",60314),debugConsole:b("debug-console",60315),library:b("library",60316),output:b("output",60317),runAll:b("run-all",60318),syncIgnored:b("sync-ignored",60319),pinned:b("pinned",60320),githubInverted:b("github-inverted",60321),debugAlt:b("debug-alt",60305),serverProcess:b("server-process",60322),serverEnvironment:b("server-environment",60323),pass:b("pass",60324),stopCircle:b("stop-circle",60325),playCircle:b("play-circle",60326),record:b("record",60327),debugAltSmall:b("debug-alt-small",60328),vmConnect:b("vm-connect",60329),cloud:b("cloud",60330),merge:b("merge",60331),exportIcon:b("export",60332),graphLeft:b("graph-left",60333),magnet:b("magnet",60334),notebook:b("notebook",60335),redo:b("redo",60336),checkAll:b("check-all",60337),pinnedDirty:b("pinned-dirty",60338),passFilled:b("pass-filled",60339),circleLargeFilled:b("circle-large-filled",60340),circleLarge:b("circle-large",60341),circleLargeOutline:b("circle-large-outline",60341),combine:b("combine",60342),gather:b("gather",60342),table:b("table",60343),variableGroup:b("variable-group",60344),typeHierarchy:b("type-hierarchy",60345),typeHierarchySub:b("type-hierarchy-sub",60346),typeHierarchySuper:b("type-hierarchy-super",60347),gitPullRequestCreate:b("git-pull-request-create",60348),runAbove:b("run-above",60349),runBelow:b("run-below",60350),notebookTemplate:b("notebook-template",60351),debugRerun:b("debug-rerun",60352),workspaceTrusted:b("workspace-trusted",60353),workspaceUntrusted:b("workspace-untrusted",60354),workspaceUnspecified:b("workspace-unspecified",60355),terminalCmd:b("terminal-cmd",60356),terminalDebian:b("terminal-debian",60357),terminalLinux:b("terminal-linux",60358),terminalPowershell:b("terminal-powershell",60359),terminalTmux:b("terminal-tmux",60360),terminalUbuntu:b("terminal-ubuntu",60361),terminalBash:b("terminal-bash",60362),arrowSwap:b("arrow-swap",60363),copy:b("copy",60364),personAdd:b("person-add",60365),filterFilled:b("filter-filled",60366),wand:b("wand",60367),debugLineByLine:b("debug-line-by-line",60368),inspect:b("inspect",60369),layers:b("layers",60370),layersDot:b("layers-dot",60371),layersActive:b("layers-active",60372),compass:b("compass",60373),compassDot:b("compass-dot",60374),compassActive:b("compass-active",60375),azure:b("azure",60376),issueDraft:b("issue-draft",60377),gitPullRequestClosed:b("git-pull-request-closed",60378),gitPullRequestDraft:b("git-pull-request-draft",60379),debugAll:b("debug-all",60380),debugCoverage:b("debug-coverage",60381),runErrors:b("run-errors",60382),folderLibrary:b("folder-library",60383),debugContinueSmall:b("debug-continue-small",60384),beakerStop:b("beaker-stop",60385),graphLine:b("graph-line",60386),graphScatter:b("graph-scatter",60387),pieChart:b("pie-chart",60388),bracketDot:b("bracket-dot",60389),bracketError:b("bracket-error",60390),lockSmall:b("lock-small",60391),azureDevops:b("azure-devops",60392),verifiedFilled:b("verified-filled",60393),newLine:b("newline",60394),layout:b("layout",60395),layoutActivitybarLeft:b("layout-activitybar-left",60396),layoutActivitybarRight:b("layout-activitybar-right",60397),layoutPanelLeft:b("layout-panel-left",60398),layoutPanelCenter:b("layout-panel-center",60399),layoutPanelJustify:b("layout-panel-justify",60400),layoutPanelRight:b("layout-panel-right",60401),layoutPanel:b("layout-panel",60402),layoutSidebarLeft:b("layout-sidebar-left",60403),layoutSidebarRight:b("layout-sidebar-right",60404),layoutStatusbar:b("layout-statusbar",60405),layoutMenubar:b("layout-menubar",60406),layoutCentered:b("layout-centered",60407),layoutSidebarRightOff:b("layout-sidebar-right-off",60416),layoutPanelOff:b("layout-panel-off",60417),layoutSidebarLeftOff:b("layout-sidebar-left-off",60418),target:b("target",60408),indent:b("indent",60409),recordSmall:b("record-small",60410),errorSmall:b("error-small",60411),arrowCircleDown:b("arrow-circle-down",60412),arrowCircleLeft:b("arrow-circle-left",60413),arrowCircleRight:b("arrow-circle-right",60414),arrowCircleUp:b("arrow-circle-up",60415),heartFilled:b("heart-filled",60420),map:b("map",60421),mapFilled:b("map-filled",60422),circleSmall:b("circle-small",60423),bellSlash:b("bell-slash",60424),bellSlashDot:b("bell-slash-dot",60425),commentUnresolved:b("comment-unresolved",60426),gitPullRequestGoToChanges:b("git-pull-request-go-to-changes",60427),gitPullRequestNewChanges:b("git-pull-request-new-changes",60428),searchFuzzy:b("search-fuzzy",60429),commentDraft:b("comment-draft",60430),send:b("send",60431),sparkle:b("sparkle",60432),insert:b("insert",60433),mic:b("mic",60434),thumbsDownFilled:b("thumbsdown-filled",60435),thumbsUpFilled:b("thumbsup-filled",60436),coffee:b("coffee",60437),snake:b("snake",60438),game:b("game",60439),vr:b("vr",60440),chip:b("chip",60441),piano:b("piano",60442),music:b("music",60443),micFilled:b("mic-filled",60444),gitFetch:b("git-fetch",60445),copilot:b("copilot",60446),lightbulbSparkle:b("lightbulb-sparkle",60447),lightbulbSparkleAutofix:b("lightbulb-sparkle-autofix",60447),robot:b("robot",60448),sparkleFilled:b("sparkle-filled",60449),diffSingle:b("diff-single",60450),diffMultiple:b("diff-multiple",60451),dialogError:b("dialog-error","error"),dialogWarning:b("dialog-warning","warning"),dialogInfo:b("dialog-info","info"),dialogClose:b("dialog-close","close"),treeItemExpanded:b("tree-item-expanded","chevron-down"),treeFilterOnTypeOn:b("tree-filter-on-type-on","list-filter"),treeFilterOnTypeOff:b("tree-filter-on-type-off","list-selection"),treeFilterClear:b("tree-filter-clear","close"),treeItemLoading:b("tree-item-loading","loading"),menuSelection:b("menu-selection","check"),menuSubmenu:b("menu-submenu","chevron-right"),menuBarMore:b("menubar-more","more"),scrollbarButtonLeft:b("scrollbar-button-left","triangle-left"),scrollbarButtonRight:b("scrollbar-button-right","triangle-right"),scrollbarButtonUp:b("scrollbar-button-up","triangle-up"),scrollbarButtonDown:b("scrollbar-button-down","triangle-down"),toolBarMore:b("toolbar-more","more"),quickInputBack:b("quick-input-back","arrow-left")};var uh=class{constructor(){this._tokenizationSupports=new Map,this._factories=new Map,this._onDidChange=new dr,this.onDidChange=this._onDidChange.event,this._colorMap=null}handleChange(t){this._onDidChange.fire({changedLanguages:t,changedColorMap:!1})}register(t,r){return this._tokenizationSupports.set(t,r),this.handleChange([t]),vs(()=>{this._tokenizationSupports.get(t)===r&&(this._tokenizationSupports.delete(t),this.handleChange([t]))})}get(t){return this._tokenizationSupports.get(t)||null}registerFactory(t,r){var n;(n=this._factories.get(t))===null||n===void 0||n.dispose();let i=new Ny(this,t,r);return this._factories.set(t,i),vs(()=>{let o=this._factories.get(t);!o||o!==i||(this._factories.delete(t),o.dispose())})}async getOrCreate(t){let r=this.get(t);if(r)return r;let n=this._factories.get(t);return!n||n.isResolved?null:(await n.resolve(),this.get(t))}isResolved(t){if(this.get(t))return!0;let n=this._factories.get(t);return!!(!n||n.isResolved)}setColorMap(t){this._colorMap=t,this._onDidChange.fire({changedLanguages:Array.from(this._tokenizationSupports.keys()),changedColorMap:!0})}getColorMap(){return this._colorMap}getDefaultBackground(){return this._colorMap&&this._colorMap.length>2?this._colorMap[2]:null}},Ny=class extends hn{get isResolved(){return this._isResolved}constructor(t,r,n){super(),this._registry=t,this._languageId=r,this._factory=n,this._isDisposed=!1,this._resolvePromise=null,this._isResolved=!1}dispose(){this._isDisposed=!0,super.dispose()}async resolve(){return this._resolvePromise||(this._resolvePromise=this._create()),this._resolvePromise}async _create(){let t=await this._factory.tokenizationSupport;this._isResolved=!0,t&&!this._isDisposed&&this._register(this._registry.register(this._languageId,t))}};var dh=class{constructor(t,r,n){this.offset=t,this.type=r,this.language=n,this._tokenBrand=void 0}toString(){return"("+this.offset+", "+this.type+")"}};var W5;(function(e){let t=new Map;t.set(0,me.symbolMethod),t.set(1,me.symbolFunction),t.set(2,me.symbolConstructor),t.set(3,me.symbolField),t.set(4,me.symbolVariable),t.set(5,me.symbolClass),t.set(6,me.symbolStruct),t.set(7,me.symbolInterface),t.set(8,me.symbolModule),t.set(9,me.symbolProperty),t.set(10,me.symbolEvent),t.set(11,me.symbolOperator),t.set(12,me.symbolUnit),t.set(13,me.symbolValue),t.set(15,me.symbolEnum),t.set(14,me.symbolConstant),t.set(15,me.symbolEnum),t.set(16,me.symbolEnumMember),t.set(17,me.symbolKeyword),t.set(27,me.symbolSnippet),t.set(18,me.symbolText),t.set(19,me.symbolColor),t.set(20,me.symbolFile),t.set(21,me.symbolReference),t.set(22,me.symbolCustomColor),t.set(23,me.symbolFolder),t.set(24,me.symbolTypeParameter),t.set(25,me.account),t.set(26,me.issues);function r(o){let s=t.get(o);return s||(console.info("No codicon found for CompletionItemKind "+o),s=me.symbolProperty),s}e.toIcon=r;let n=new Map;n.set("method",0),n.set("function",1),n.set("constructor",2),n.set("field",3),n.set("variable",4),n.set("class",5),n.set("struct",6),n.set("interface",7),n.set("module",8),n.set("property",9),n.set("event",10),n.set("operator",11),n.set("unit",12),n.set("value",13),n.set("constant",14),n.set("enum",15),n.set("enum-member",16),n.set("enumMember",16),n.set("keyword",17),n.set("snippet",27),n.set("text",18),n.set("color",19),n.set("file",20),n.set("reference",21),n.set("customcolor",22),n.set("folder",23),n.set("type-parameter",24),n.set("typeParameter",24),n.set("account",25),n.set("issue",26);function i(o,s){let a=n.get(o);return typeof a>"u"&&!s&&(a=9),a}e.fromString=i})(W5||(W5={}));var z5;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(z5||(z5={}));var G5;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(G5||(G5={}));var B5;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(B5||(B5={}));var JY={17:He("Array","array"),16:He("Boolean","boolean"),4:He("Class","class"),13:He("Constant","constant"),8:He("Constructor","constructor"),9:He("Enum","enumeration"),21:He("EnumMember","enumeration member"),23:He("Event","event"),7:He("Field","field"),0:He("File","file"),11:He("Function","function"),10:He("Interface","interface"),19:He("Key","key"),5:He("Method","method"),1:He("Module","module"),2:He("Namespace","namespace"),20:He("Null","null"),15:He("Number","number"),18:He("Object","object"),24:He("Operator","operator"),3:He("Package","package"),6:He("Property","property"),14:He("String","string"),22:He("Struct","struct"),25:He("TypeParameter","type parameter"),12:He("Variable","variable")};var q5;(function(e){let t=new Map;t.set(0,me.symbolFile),t.set(1,me.symbolModule),t.set(2,me.symbolNamespace),t.set(3,me.symbolPackage),t.set(4,me.symbolClass),t.set(5,me.symbolMethod),t.set(6,me.symbolProperty),t.set(7,me.symbolField),t.set(8,me.symbolConstructor),t.set(9,me.symbolEnum),t.set(10,me.symbolInterface),t.set(11,me.symbolFunction),t.set(12,me.symbolVariable),t.set(13,me.symbolConstant),t.set(14,me.symbolString),t.set(15,me.symbolNumber),t.set(16,me.symbolBoolean),t.set(17,me.symbolArray),t.set(18,me.symbolObject),t.set(19,me.symbolKey),t.set(20,me.symbolNull),t.set(21,me.symbolEnumMember),t.set(22,me.symbolStruct),t.set(23,me.symbolEvent),t.set(24,me.symbolOperator),t.set(25,me.symbolTypeParameter);function r(n){let i=t.get(n);return i||(console.info("No codicon found for SymbolKind "+n),i=me.symbolProperty),i}e.toIcon=r})(q5||(q5={}));var ho=class e{static fromValue(t){switch(t){case"comment":return e.Comment;case"imports":return e.Imports;case"region":return e.Region}return new e(t)}constructor(t){this.value=t}};ho.Comment=new ho("comment");ho.Imports=new ho("imports");ho.Region=new ho("region");var j5;(function(e){function t(r){return!r||typeof r!="object"?!1:typeof r.id=="string"&&typeof r.title=="string"}e.is=t})(j5||(j5={}));var H5;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(H5||(H5={}));var XY=new uh;var Z5;(function(e){e[e.Unknown=0]="Unknown",e[e.Disabled=1]="Disabled",e[e.Enabled=2]="Enabled"})(Z5||(Z5={}));var Y5;(function(e){e[e.Invoke=1]="Invoke",e[e.Auto=2]="Auto"})(Y5||(Y5={}));var J5;(function(e){e[e.None=0]="None",e[e.KeepWhitespace=1]="KeepWhitespace",e[e.InsertAsSnippet=4]="InsertAsSnippet"})(J5||(J5={}));var X5;(function(e){e[e.Method=0]="Method",e[e.Function=1]="Function",e[e.Constructor=2]="Constructor",e[e.Field=3]="Field",e[e.Variable=4]="Variable",e[e.Class=5]="Class",e[e.Struct=6]="Struct",e[e.Interface=7]="Interface",e[e.Module=8]="Module",e[e.Property=9]="Property",e[e.Event=10]="Event",e[e.Operator=11]="Operator",e[e.Unit=12]="Unit",e[e.Value=13]="Value",e[e.Constant=14]="Constant",e[e.Enum=15]="Enum",e[e.EnumMember=16]="EnumMember",e[e.Keyword=17]="Keyword",e[e.Text=18]="Text",e[e.Color=19]="Color",e[e.File=20]="File",e[e.Reference=21]="Reference",e[e.Customcolor=22]="Customcolor",e[e.Folder=23]="Folder",e[e.TypeParameter=24]="TypeParameter",e[e.User=25]="User",e[e.Issue=26]="Issue",e[e.Snippet=27]="Snippet"})(X5||(X5={}));var Q5;(function(e){e[e.Deprecated=1]="Deprecated"})(Q5||(Q5={}));var K5;(function(e){e[e.Invoke=0]="Invoke",e[e.TriggerCharacter=1]="TriggerCharacter",e[e.TriggerForIncompleteCompletions=2]="TriggerForIncompleteCompletions"})(K5||(K5={}));var e3;(function(e){e[e.EXACT=0]="EXACT",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"})(e3||(e3={}));var t3;(function(e){e[e.NotSet=0]="NotSet",e[e.ContentFlush=1]="ContentFlush",e[e.RecoverFromMarkers=2]="RecoverFromMarkers",e[e.Explicit=3]="Explicit",e[e.Paste=4]="Paste",e[e.Undo=5]="Undo",e[e.Redo=6]="Redo"})(t3||(t3={}));var r3;(function(e){e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(r3||(r3={}));var n3;(function(e){e[e.Text=0]="Text",e[e.Read=1]="Read",e[e.Write=2]="Write"})(n3||(n3={}));var i3;(function(e){e[e.None=0]="None",e[e.Keep=1]="Keep",e[e.Brackets=2]="Brackets",e[e.Advanced=3]="Advanced",e[e.Full=4]="Full"})(i3||(i3={}));var o3;(function(e){e[e.acceptSuggestionOnCommitCharacter=0]="acceptSuggestionOnCommitCharacter",e[e.acceptSuggestionOnEnter=1]="acceptSuggestionOnEnter",e[e.accessibilitySupport=2]="accessibilitySupport",e[e.accessibilityPageSize=3]="accessibilityPageSize",e[e.ariaLabel=4]="ariaLabel",e[e.ariaRequired=5]="ariaRequired",e[e.autoClosingBrackets=6]="autoClosingBrackets",e[e.autoClosingComments=7]="autoClosingComments",e[e.screenReaderAnnounceInlineSuggestion=8]="screenReaderAnnounceInlineSuggestion",e[e.autoClosingDelete=9]="autoClosingDelete",e[e.autoClosingOvertype=10]="autoClosingOvertype",e[e.autoClosingQuotes=11]="autoClosingQuotes",e[e.autoIndent=12]="autoIndent",e[e.automaticLayout=13]="automaticLayout",e[e.autoSurround=14]="autoSurround",e[e.bracketPairColorization=15]="bracketPairColorization",e[e.guides=16]="guides",e[e.codeLens=17]="codeLens",e[e.codeLensFontFamily=18]="codeLensFontFamily",e[e.codeLensFontSize=19]="codeLensFontSize",e[e.colorDecorators=20]="colorDecorators",e[e.colorDecoratorsLimit=21]="colorDecoratorsLimit",e[e.columnSelection=22]="columnSelection",e[e.comments=23]="comments",e[e.contextmenu=24]="contextmenu",e[e.copyWithSyntaxHighlighting=25]="copyWithSyntaxHighlighting",e[e.cursorBlinking=26]="cursorBlinking",e[e.cursorSmoothCaretAnimation=27]="cursorSmoothCaretAnimation",e[e.cursorStyle=28]="cursorStyle",e[e.cursorSurroundingLines=29]="cursorSurroundingLines",e[e.cursorSurroundingLinesStyle=30]="cursorSurroundingLinesStyle",e[e.cursorWidth=31]="cursorWidth",e[e.disableLayerHinting=32]="disableLayerHinting",e[e.disableMonospaceOptimizations=33]="disableMonospaceOptimizations",e[e.domReadOnly=34]="domReadOnly",e[e.dragAndDrop=35]="dragAndDrop",e[e.dropIntoEditor=36]="dropIntoEditor",e[e.emptySelectionClipboard=37]="emptySelectionClipboard",e[e.experimentalWhitespaceRendering=38]="experimentalWhitespaceRendering",e[e.extraEditorClassName=39]="extraEditorClassName",e[e.fastScrollSensitivity=40]="fastScrollSensitivity",e[e.find=41]="find",e[e.fixedOverflowWidgets=42]="fixedOverflowWidgets",e[e.folding=43]="folding",e[e.foldingStrategy=44]="foldingStrategy",e[e.foldingHighlight=45]="foldingHighlight",e[e.foldingImportsByDefault=46]="foldingImportsByDefault",e[e.foldingMaximumRegions=47]="foldingMaximumRegions",e[e.unfoldOnClickAfterEndOfLine=48]="unfoldOnClickAfterEndOfLine",e[e.fontFamily=49]="fontFamily",e[e.fontInfo=50]="fontInfo",e[e.fontLigatures=51]="fontLigatures",e[e.fontSize=52]="fontSize",e[e.fontWeight=53]="fontWeight",e[e.fontVariations=54]="fontVariations",e[e.formatOnPaste=55]="formatOnPaste",e[e.formatOnType=56]="formatOnType",e[e.glyphMargin=57]="glyphMargin",e[e.gotoLocation=58]="gotoLocation",e[e.hideCursorInOverviewRuler=59]="hideCursorInOverviewRuler",e[e.hover=60]="hover",e[e.inDiffEditor=61]="inDiffEditor",e[e.inlineSuggest=62]="inlineSuggest",e[e.letterSpacing=63]="letterSpacing",e[e.lightbulb=64]="lightbulb",e[e.lineDecorationsWidth=65]="lineDecorationsWidth",e[e.lineHeight=66]="lineHeight",e[e.lineNumbers=67]="lineNumbers",e[e.lineNumbersMinChars=68]="lineNumbersMinChars",e[e.linkedEditing=69]="linkedEditing",e[e.links=70]="links",e[e.matchBrackets=71]="matchBrackets",e[e.minimap=72]="minimap",e[e.mouseStyle=73]="mouseStyle",e[e.mouseWheelScrollSensitivity=74]="mouseWheelScrollSensitivity",e[e.mouseWheelZoom=75]="mouseWheelZoom",e[e.multiCursorMergeOverlapping=76]="multiCursorMergeOverlapping",e[e.multiCursorModifier=77]="multiCursorModifier",e[e.multiCursorPaste=78]="multiCursorPaste",e[e.multiCursorLimit=79]="multiCursorLimit",e[e.occurrencesHighlight=80]="occurrencesHighlight",e[e.overviewRulerBorder=81]="overviewRulerBorder",e[e.overviewRulerLanes=82]="overviewRulerLanes",e[e.padding=83]="padding",e[e.pasteAs=84]="pasteAs",e[e.parameterHints=85]="parameterHints",e[e.peekWidgetDefaultFocus=86]="peekWidgetDefaultFocus",e[e.definitionLinkOpensInPeek=87]="definitionLinkOpensInPeek",e[e.quickSuggestions=88]="quickSuggestions",e[e.quickSuggestionsDelay=89]="quickSuggestionsDelay",e[e.readOnly=90]="readOnly",e[e.readOnlyMessage=91]="readOnlyMessage",e[e.renameOnType=92]="renameOnType",e[e.renderControlCharacters=93]="renderControlCharacters",e[e.renderFinalNewline=94]="renderFinalNewline",e[e.renderLineHighlight=95]="renderLineHighlight",e[e.renderLineHighlightOnlyWhenFocus=96]="renderLineHighlightOnlyWhenFocus",e[e.renderValidationDecorations=97]="renderValidationDecorations",e[e.renderWhitespace=98]="renderWhitespace",e[e.revealHorizontalRightPadding=99]="revealHorizontalRightPadding",e[e.roundedSelection=100]="roundedSelection",e[e.rulers=101]="rulers",e[e.scrollbar=102]="scrollbar",e[e.scrollBeyondLastColumn=103]="scrollBeyondLastColumn",e[e.scrollBeyondLastLine=104]="scrollBeyondLastLine",e[e.scrollPredominantAxis=105]="scrollPredominantAxis",e[e.selectionClipboard=106]="selectionClipboard",e[e.selectionHighlight=107]="selectionHighlight",e[e.selectOnLineNumbers=108]="selectOnLineNumbers",e[e.showFoldingControls=109]="showFoldingControls",e[e.showUnused=110]="showUnused",e[e.snippetSuggestions=111]="snippetSuggestions",e[e.smartSelect=112]="smartSelect",e[e.smoothScrolling=113]="smoothScrolling",e[e.stickyScroll=114]="stickyScroll",e[e.stickyTabStops=115]="stickyTabStops",e[e.stopRenderingLineAfter=116]="stopRenderingLineAfter",e[e.suggest=117]="suggest",e[e.suggestFontSize=118]="suggestFontSize",e[e.suggestLineHeight=119]="suggestLineHeight",e[e.suggestOnTriggerCharacters=120]="suggestOnTriggerCharacters",e[e.suggestSelection=121]="suggestSelection",e[e.tabCompletion=122]="tabCompletion",e[e.tabIndex=123]="tabIndex",e[e.unicodeHighlighting=124]="unicodeHighlighting",e[e.unusualLineTerminators=125]="unusualLineTerminators",e[e.useShadowDOM=126]="useShadowDOM",e[e.useTabStops=127]="useTabStops",e[e.wordBreak=128]="wordBreak",e[e.wordSeparators=129]="wordSeparators",e[e.wordWrap=130]="wordWrap",e[e.wordWrapBreakAfterCharacters=131]="wordWrapBreakAfterCharacters",e[e.wordWrapBreakBeforeCharacters=132]="wordWrapBreakBeforeCharacters",e[e.wordWrapColumn=133]="wordWrapColumn",e[e.wordWrapOverride1=134]="wordWrapOverride1",e[e.wordWrapOverride2=135]="wordWrapOverride2",e[e.wrappingIndent=136]="wrappingIndent",e[e.wrappingStrategy=137]="wrappingStrategy",e[e.showDeprecated=138]="showDeprecated",e[e.inlayHints=139]="inlayHints",e[e.editorClassName=140]="editorClassName",e[e.pixelRatio=141]="pixelRatio",e[e.tabFocusMode=142]="tabFocusMode",e[e.layoutInfo=143]="layoutInfo",e[e.wrappingInfo=144]="wrappingInfo",e[e.defaultColorDecorators=145]="defaultColorDecorators",e[e.colorDecoratorsActivatedOn=146]="colorDecoratorsActivatedOn",e[e.inlineCompletionsAccessibilityVerbose=147]="inlineCompletionsAccessibilityVerbose"})(o3||(o3={}));var s3;(function(e){e[e.TextDefined=0]="TextDefined",e[e.LF=1]="LF",e[e.CRLF=2]="CRLF"})(s3||(s3={}));var a3;(function(e){e[e.LF=0]="LF",e[e.CRLF=1]="CRLF"})(a3||(a3={}));var l3;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(l3||(l3={}));var c3;(function(e){e[e.None=0]="None",e[e.Indent=1]="Indent",e[e.IndentOutdent=2]="IndentOutdent",e[e.Outdent=3]="Outdent"})(c3||(c3={}));var u3;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(u3||(u3={}));var d3;(function(e){e[e.Type=1]="Type",e[e.Parameter=2]="Parameter"})(d3||(d3={}));var f3;(function(e){e[e.Automatic=0]="Automatic",e[e.Explicit=1]="Explicit"})(f3||(f3={}));var fh;(function(e){e[e.DependsOnKbLayout=-1]="DependsOnKbLayout",e[e.Unknown=0]="Unknown",e[e.Backspace=1]="Backspace",e[e.Tab=2]="Tab",e[e.Enter=3]="Enter",e[e.Shift=4]="Shift",e[e.Ctrl=5]="Ctrl",e[e.Alt=6]="Alt",e[e.PauseBreak=7]="PauseBreak",e[e.CapsLock=8]="CapsLock",e[e.Escape=9]="Escape",e[e.Space=10]="Space",e[e.PageUp=11]="PageUp",e[e.PageDown=12]="PageDown",e[e.End=13]="End",e[e.Home=14]="Home",e[e.LeftArrow=15]="LeftArrow",e[e.UpArrow=16]="UpArrow",e[e.RightArrow=17]="RightArrow",e[e.DownArrow=18]="DownArrow",e[e.Insert=19]="Insert",e[e.Delete=20]="Delete",e[e.Digit0=21]="Digit0",e[e.Digit1=22]="Digit1",e[e.Digit2=23]="Digit2",e[e.Digit3=24]="Digit3",e[e.Digit4=25]="Digit4",e[e.Digit5=26]="Digit5",e[e.Digit6=27]="Digit6",e[e.Digit7=28]="Digit7",e[e.Digit8=29]="Digit8",e[e.Digit9=30]="Digit9",e[e.KeyA=31]="KeyA",e[e.KeyB=32]="KeyB",e[e.KeyC=33]="KeyC",e[e.KeyD=34]="KeyD",e[e.KeyE=35]="KeyE",e[e.KeyF=36]="KeyF",e[e.KeyG=37]="KeyG",e[e.KeyH=38]="KeyH",e[e.KeyI=39]="KeyI",e[e.KeyJ=40]="KeyJ",e[e.KeyK=41]="KeyK",e[e.KeyL=42]="KeyL",e[e.KeyM=43]="KeyM",e[e.KeyN=44]="KeyN",e[e.KeyO=45]="KeyO",e[e.KeyP=46]="KeyP",e[e.KeyQ=47]="KeyQ",e[e.KeyR=48]="KeyR",e[e.KeyS=49]="KeyS",e[e.KeyT=50]="KeyT",e[e.KeyU=51]="KeyU",e[e.KeyV=52]="KeyV",e[e.KeyW=53]="KeyW",e[e.KeyX=54]="KeyX",e[e.KeyY=55]="KeyY",e[e.KeyZ=56]="KeyZ",e[e.Meta=57]="Meta",e[e.ContextMenu=58]="ContextMenu",e[e.F1=59]="F1",e[e.F2=60]="F2",e[e.F3=61]="F3",e[e.F4=62]="F4",e[e.F5=63]="F5",e[e.F6=64]="F6",e[e.F7=65]="F7",e[e.F8=66]="F8",e[e.F9=67]="F9",e[e.F10=68]="F10",e[e.F11=69]="F11",e[e.F12=70]="F12",e[e.F13=71]="F13",e[e.F14=72]="F14",e[e.F15=73]="F15",e[e.F16=74]="F16",e[e.F17=75]="F17",e[e.F18=76]="F18",e[e.F19=77]="F19",e[e.F20=78]="F20",e[e.F21=79]="F21",e[e.F22=80]="F22",e[e.F23=81]="F23",e[e.F24=82]="F24",e[e.NumLock=83]="NumLock",e[e.ScrollLock=84]="ScrollLock",e[e.Semicolon=85]="Semicolon",e[e.Equal=86]="Equal",e[e.Comma=87]="Comma",e[e.Minus=88]="Minus",e[e.Period=89]="Period",e[e.Slash=90]="Slash",e[e.Backquote=91]="Backquote",e[e.BracketLeft=92]="BracketLeft",e[e.Backslash=93]="Backslash",e[e.BracketRight=94]="BracketRight",e[e.Quote=95]="Quote",e[e.OEM_8=96]="OEM_8",e[e.IntlBackslash=97]="IntlBackslash",e[e.Numpad0=98]="Numpad0",e[e.Numpad1=99]="Numpad1",e[e.Numpad2=100]="Numpad2",e[e.Numpad3=101]="Numpad3",e[e.Numpad4=102]="Numpad4",e[e.Numpad5=103]="Numpad5",e[e.Numpad6=104]="Numpad6",e[e.Numpad7=105]="Numpad7",e[e.Numpad8=106]="Numpad8",e[e.Numpad9=107]="Numpad9",e[e.NumpadMultiply=108]="NumpadMultiply",e[e.NumpadAdd=109]="NumpadAdd",e[e.NUMPAD_SEPARATOR=110]="NUMPAD_SEPARATOR",e[e.NumpadSubtract=111]="NumpadSubtract",e[e.NumpadDecimal=112]="NumpadDecimal",e[e.NumpadDivide=113]="NumpadDivide",e[e.KEY_IN_COMPOSITION=114]="KEY_IN_COMPOSITION",e[e.ABNT_C1=115]="ABNT_C1",e[e.ABNT_C2=116]="ABNT_C2",e[e.AudioVolumeMute=117]="AudioVolumeMute",e[e.AudioVolumeUp=118]="AudioVolumeUp",e[e.AudioVolumeDown=119]="AudioVolumeDown",e[e.BrowserSearch=120]="BrowserSearch",e[e.BrowserHome=121]="BrowserHome",e[e.BrowserBack=122]="BrowserBack",e[e.BrowserForward=123]="BrowserForward",e[e.MediaTrackNext=124]="MediaTrackNext",e[e.MediaTrackPrevious=125]="MediaTrackPrevious",e[e.MediaStop=126]="MediaStop",e[e.MediaPlayPause=127]="MediaPlayPause",e[e.LaunchMediaPlayer=128]="LaunchMediaPlayer",e[e.LaunchMail=129]="LaunchMail",e[e.LaunchApp2=130]="LaunchApp2",e[e.Clear=131]="Clear",e[e.MAX_VALUE=132]="MAX_VALUE"})(fh||(fh={}));var ph;(function(e){e[e.Hint=1]="Hint",e[e.Info=2]="Info",e[e.Warning=4]="Warning",e[e.Error=8]="Error"})(ph||(ph={}));var mh;(function(e){e[e.Unnecessary=1]="Unnecessary",e[e.Deprecated=2]="Deprecated"})(mh||(mh={}));var p3;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(p3||(p3={}));var m3;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.TEXTAREA=1]="TEXTAREA",e[e.GUTTER_GLYPH_MARGIN=2]="GUTTER_GLYPH_MARGIN",e[e.GUTTER_LINE_NUMBERS=3]="GUTTER_LINE_NUMBERS",e[e.GUTTER_LINE_DECORATIONS=4]="GUTTER_LINE_DECORATIONS",e[e.GUTTER_VIEW_ZONE=5]="GUTTER_VIEW_ZONE",e[e.CONTENT_TEXT=6]="CONTENT_TEXT",e[e.CONTENT_EMPTY=7]="CONTENT_EMPTY",e[e.CONTENT_VIEW_ZONE=8]="CONTENT_VIEW_ZONE",e[e.CONTENT_WIDGET=9]="CONTENT_WIDGET",e[e.OVERVIEW_RULER=10]="OVERVIEW_RULER",e[e.SCROLLBAR=11]="SCROLLBAR",e[e.OVERLAY_WIDGET=12]="OVERLAY_WIDGET",e[e.OUTSIDE_EDITOR=13]="OUTSIDE_EDITOR"})(m3||(m3={}));var h3;(function(e){e[e.TOP_RIGHT_CORNER=0]="TOP_RIGHT_CORNER",e[e.BOTTOM_RIGHT_CORNER=1]="BOTTOM_RIGHT_CORNER",e[e.TOP_CENTER=2]="TOP_CENTER"})(h3||(h3={}));var g3;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(g3||(g3={}));var w3;(function(e){e[e.Left=0]="Left",e[e.Right=1]="Right",e[e.None=2]="None",e[e.LeftOfInjectedText=3]="LeftOfInjectedText",e[e.RightOfInjectedText=4]="RightOfInjectedText"})(w3||(w3={}));var y3;(function(e){e[e.Off=0]="Off",e[e.On=1]="On",e[e.Relative=2]="Relative",e[e.Interval=3]="Interval",e[e.Custom=4]="Custom"})(y3||(y3={}));var b3;(function(e){e[e.None=0]="None",e[e.Text=1]="Text",e[e.Blocks=2]="Blocks"})(b3||(b3={}));var _3;(function(e){e[e.Smooth=0]="Smooth",e[e.Immediate=1]="Immediate"})(_3||(_3={}));var v3;(function(e){e[e.Auto=1]="Auto",e[e.Hidden=2]="Hidden",e[e.Visible=3]="Visible"})(v3||(v3={}));var hh;(function(e){e[e.LTR=0]="LTR",e[e.RTL=1]="RTL"})(hh||(hh={}));var S3;(function(e){e.Off="off",e.OnCode="onCode",e.On="on"})(S3||(S3={}));var x3;(function(e){e[e.Invoke=1]="Invoke",e[e.TriggerCharacter=2]="TriggerCharacter",e[e.ContentChange=3]="ContentChange"})(x3||(x3={}));var C3;(function(e){e[e.File=0]="File",e[e.Module=1]="Module",e[e.Namespace=2]="Namespace",e[e.Package=3]="Package",e[e.Class=4]="Class",e[e.Method=5]="Method",e[e.Property=6]="Property",e[e.Field=7]="Field",e[e.Constructor=8]="Constructor",e[e.Enum=9]="Enum",e[e.Interface=10]="Interface",e[e.Function=11]="Function",e[e.Variable=12]="Variable",e[e.Constant=13]="Constant",e[e.String=14]="String",e[e.Number=15]="Number",e[e.Boolean=16]="Boolean",e[e.Array=17]="Array",e[e.Object=18]="Object",e[e.Key=19]="Key",e[e.Null=20]="Null",e[e.EnumMember=21]="EnumMember",e[e.Struct=22]="Struct",e[e.Event=23]="Event",e[e.Operator=24]="Operator",e[e.TypeParameter=25]="TypeParameter"})(C3||(C3={}));var T3;(function(e){e[e.Deprecated=1]="Deprecated"})(T3||(T3={}));var E3;(function(e){e[e.Hidden=0]="Hidden",e[e.Blink=1]="Blink",e[e.Smooth=2]="Smooth",e[e.Phase=3]="Phase",e[e.Expand=4]="Expand",e[e.Solid=5]="Solid"})(E3||(E3={}));var M3;(function(e){e[e.Line=1]="Line",e[e.Block=2]="Block",e[e.Underline=3]="Underline",e[e.LineThin=4]="LineThin",e[e.BlockOutline=5]="BlockOutline",e[e.UnderlineThin=6]="UnderlineThin"})(M3||(M3={}));var P3;(function(e){e[e.AlwaysGrowsWhenTypingAtEdges=0]="AlwaysGrowsWhenTypingAtEdges",e[e.NeverGrowsWhenTypingAtEdges=1]="NeverGrowsWhenTypingAtEdges",e[e.GrowsOnlyWhenTypingBefore=2]="GrowsOnlyWhenTypingBefore",e[e.GrowsOnlyWhenTypingAfter=3]="GrowsOnlyWhenTypingAfter"})(P3||(P3={}));var L3;(function(e){e[e.None=0]="None",e[e.Same=1]="Same",e[e.Indent=2]="Indent",e[e.DeepIndent=3]="DeepIndent"})(L3||(L3={}));var Ts=class{static chord(t,r){return V5(t,r)}};Ts.CtrlCmd=2048;Ts.Shift=1024;Ts.Alt=512;Ts.WinCtrl=256;function I3(){return{editor:void 0,languages:void 0,CancellationTokenSource:ah,Emitter:dr,KeyCode:fh,KeyMod:Ts,Position:zt,Range:$e,Selection:ch,SelectionDirection:hh,MarkerSeverity:ph,MarkerTag:mh,Uri:mo,Token:dh}}var Ry=class extends Wa{constructor(t){super(0);for(let r=0,n=t.length;r<n;r++)this.set(t.charCodeAt(r),2);this.set(32,1),this.set(9,1)}};function HN(e){let t={};return r=>(t.hasOwnProperty(r)||(t[r]=e(r)),t[r])}var ZN=HN(e=>new Ry(e));var A3;(function(e){e[e.Left=1]="Left",e[e.Center=2]="Center",e[e.Right=4]="Right",e[e.Full=7]="Full"})(A3||(A3={}));var k3;(function(e){e[e.Left=1]="Left",e[e.Right=2]="Right"})(k3||(k3={}));var N3;(function(e){e[e.Inline=1]="Inline",e[e.Gutter=2]="Gutter"})(N3||(N3={}));var R3;(function(e){e[e.Both=0]="Both",e[e.Right=1]="Right",e[e.Left=2]="Left",e[e.None=3]="None"})(R3||(R3={}));function YN(e,t,r,n,i){if(n===0)return!0;let o=t.charCodeAt(n-1);if(e.get(o)!==0||o===13||o===10)return!0;if(i>0){let s=t.charCodeAt(n);if(e.get(s)!==0)return!0}return!1}function JN(e,t,r,n,i){if(n+i===r)return!0;let o=t.charCodeAt(n+i);if(e.get(o)!==0||o===13||o===10)return!0;if(i>0){let s=t.charCodeAt(n+i-1);if(e.get(s)!==0)return!0}return!1}function XN(e,t,r,n,i){return YN(e,t,r,n,i)&&JN(e,t,r,n,i)}var gh=class{constructor(t,r){this._wordSeparators=t,this._searchRegex=r,this._prevMatchStartIndex=-1,this._prevMatchLength=0}reset(t){this._searchRegex.lastIndex=t,this._prevMatchStartIndex=-1,this._prevMatchLength=0}next(t){let r=t.length,n;do{if(this._prevMatchStartIndex+this._prevMatchLength===r||(n=this._searchRegex.exec(t),!n))return null;let i=n.index,o=n[0].length;if(i===this._prevMatchStartIndex&&o===this._prevMatchLength){if(o===0){f5(t,r,this._searchRegex.lastIndex)>65535?this._searchRegex.lastIndex+=2:this._searchRegex.lastIndex+=1;continue}return null}if(this._prevMatchStartIndex=i,this._prevMatchLength=o,!this._wordSeparators||XN(this._wordSeparators,t,r,i,o))return n}while(n);return null}};function D3(e,t="Unreachable"){throw new Error(t)}function Ba(e){if(!e()){debugger;e(),zm(new pn("Assertion Failed"))}}function wh(e,t){let r=0;for(;r<e.length-1;){let n=e[r],i=e[r+1];if(!t(n,i))return!1;r++}return!0}var yh=class{static computeUnicodeHighlights(t,r,n){let i=n?n.startLineNumber:1,o=n?n.endLineNumber:t.getLineCount(),s=new bh(r),a=s.getCandidateCodePoints(),u;a==="allNonBasicAscii"?u=new RegExp("[^\\t\\n\\r\\x20-\\x7E]","g"):u=new RegExp(`${QN(Array.from(a))}`,"g");let d=new gh(null,u),f=[],m=!1,w,_=0,S=0,C=0;e:for(let M=i,N=o;M<=N;M++){let L=t.getLineContent(M),k=L.length;d.reset(0);do if(w=d.next(L),w){let W=w.index,Z=w.index+w[0].length;if(W>0){let pe=L.charCodeAt(W-1);Va(pe)&&W--}if(Z+1<k){let pe=L.charCodeAt(Z-1);Va(pe)&&Z++}let ee=L.substring(W,Z),ne=zc(W+1,Cy,L,0);ne&&ne.endColumn<=W+1&&(ne=null);let te=s.shouldHighlightNonBasicASCII(ee,ne?ne.word:null);if(te!==0){if(te===3?_++:te===2?S++:te===1?C++:D3(te),f.length>=1e3){m=!0;break e}f.push(new $e(M,W+1,M,Z+1))}}while(w)}return{ranges:f,hasMore:m,ambiguousCharacterCount:_,invisibleCharacterCount:S,nonBasicAsciiCharacterCount:C}}static computeUnicodeHighlightReason(t,r){let n=new bh(r);switch(n.shouldHighlightNonBasicASCII(t,null)){case 0:return null;case 2:return{kind:1};case 3:{let o=t.codePointAt(0),s=n.ambiguousCharacters.getPrimaryConfusable(o),a=ri.getLocales().filter(u=>!ri.getInstance(new Set([...r.allowedLocales,u])).isAmbiguous(o));return{kind:0,confusableWith:String.fromCodePoint(s),notAmbiguousInLocales:a}}case 1:return{kind:2}}}};function QN(e,t){return`[${l5(e.map(n=>String.fromCodePoint(n)).join(""))}]`}var bh=class{constructor(t){this.options=t,this.allowedCodePoints=new Set(t.allowedCodePoints),this.ambiguousCharacters=ri.getInstance(new Set(t.allowedLocales))}getCandidateCodePoints(){if(this.options.nonBasicASCII)return"allNonBasicAscii";let t=new Set;if(this.options.invisibleCharacters)for(let r of xs.codePoints)O3(String.fromCodePoint(r))||t.add(r);if(this.options.ambiguousCharacters)for(let r of this.ambiguousCharacters.getConfusableCodePoints())t.add(r);for(let r of this.allowedCodePoints)t.delete(r);return t}shouldHighlightNonBasicASCII(t,r){let n=t.codePointAt(0);if(this.allowedCodePoints.has(n))return 0;if(this.options.nonBasicASCII)return 1;let i=!1,o=!1;if(r)for(let s of r){let a=s.codePointAt(0),u=p5(s);i=i||u,!u&&!this.ambiguousCharacters.isAmbiguous(a)&&!xs.isInvisibleCharacter(a)&&(o=!0)}return!i&&o?0:this.options.invisibleCharacters&&!O3(t)&&xs.isInvisibleCharacter(n)?2:this.options.ambiguousCharacters&&this.ambiguousCharacters.isAmbiguous(n)?3:0}};function O3(e){return e===" "||e===`
|
|
149
|
+
`||e===" "}var go=class{constructor(t,r,n){this.changes=t,this.moves=r,this.hitTimeout=n}},_h=class{constructor(t,r){this.lineRangeMapping=t,this.changes=r}};var Ee=class e{static addRange(t,r){let n=0;for(;n<r.length&&r[n].endExclusive<t.start;)n++;let i=n;for(;i<r.length&&r[i].start<=t.endExclusive;)i++;if(n===i)r.splice(n,0,t);else{let o=Math.min(t.start,r[n].start),s=Math.max(t.endExclusive,r[i-1].endExclusive);r.splice(n,i-n,new e(o,s))}}static tryCreate(t,r){if(!(t>r))return new e(t,r)}static ofLength(t){return new e(0,t)}static ofStartAndLength(t,r){return new e(t,t+r)}constructor(t,r){if(this.start=t,this.endExclusive=r,t>r)throw new pn(`Invalid range: ${this.toString()}`)}get isEmpty(){return this.start===this.endExclusive}delta(t){return new e(this.start+t,this.endExclusive+t)}deltaStart(t){return new e(this.start+t,this.endExclusive)}deltaEnd(t){return new e(this.start,this.endExclusive+t)}get length(){return this.endExclusive-this.start}toString(){return`[${this.start}, ${this.endExclusive})`}equals(t){return this.start===t.start&&this.endExclusive===t.endExclusive}containsRange(t){return this.start<=t.start&&t.endExclusive<=this.endExclusive}contains(t){return this.start<=t&&t<this.endExclusive}join(t){return new e(Math.min(this.start,t.start),Math.max(this.endExclusive,t.endExclusive))}intersect(t){let r=Math.max(this.start,t.start),n=Math.min(this.endExclusive,t.endExclusive);if(r<=n)return new e(r,n)}isBefore(t){return this.endExclusive<=t.start}isAfter(t){return this.start>=t.endExclusive}slice(t){return t.slice(this.start,this.endExclusive)}clip(t){if(this.isEmpty)throw new pn(`Invalid clipping range: ${this.toString()}`);return Math.max(this.start,Math.min(this.endExclusive-1,t))}clipCyclic(t){if(this.isEmpty)throw new pn(`Invalid clipping range: ${this.toString()}`);return t<this.start?this.endExclusive-(this.start-t)%this.length:t>=this.endExclusive?this.start+(t-this.start)%this.length:t}forEach(t){for(let r=this.start;r<this.endExclusive;r++)t(r)}};function Oi(e,t){let r=Es(e,t);return r===-1?void 0:e[r]}function Es(e,t,r=0,n=e.length){let i=r,o=n;for(;i<o;){let s=Math.floor((i+o)/2);t(e[s])?i=s+1:o=s}return i-1}function $3(e,t){let r=vh(e,t);return r===e.length?void 0:e[r]}function vh(e,t,r=0,n=e.length){let i=r,o=n;for(;i<o;){let s=Math.floor((i+o)/2);t(e[s])?o=s:i=s+1}return i}var qa=class e{constructor(t){this._array=t,this._findLastMonotonousLastIdx=0}findLastMonotonous(t){if(e.assertInvariants){if(this._prevFindLastPredicate){for(let n of this._array)if(this._prevFindLastPredicate(n)&&!t(n))throw new Error("MonotonousArray: current predicate must be weaker than (or equal to) the previous predicate.")}this._prevFindLastPredicate=t}let r=Es(this._array,t,this._findLastMonotonousLastIdx);return this._findLastMonotonousLastIdx=r+1,r===-1?void 0:this._array[r]}};qa.assertInvariants=!1;var Re=class e{static fromRange(t){return new e(t.startLineNumber,t.endLineNumber)}static fromRangeInclusive(t){return new e(t.startLineNumber,t.endLineNumber+1)}static joinMany(t){if(t.length===0)return[];let r=new Ms(t[0].slice());for(let n=1;n<t.length;n++)r=r.getUnion(new Ms(t[n].slice()));return r.ranges}static ofLength(t,r){return new e(t,t+r)}static deserialize(t){return new e(t[0],t[1])}constructor(t,r){if(t>r)throw new pn(`startLineNumber ${t} cannot be after endLineNumberExclusive ${r}`);this.startLineNumber=t,this.endLineNumberExclusive=r}contains(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}get isEmpty(){return this.startLineNumber===this.endLineNumberExclusive}delta(t){return new e(this.startLineNumber+t,this.endLineNumberExclusive+t)}deltaLength(t){return new e(this.startLineNumber,this.endLineNumberExclusive+t)}get length(){return this.endLineNumberExclusive-this.startLineNumber}join(t){return new e(Math.min(this.startLineNumber,t.startLineNumber),Math.max(this.endLineNumberExclusive,t.endLineNumberExclusive))}toString(){return`[${this.startLineNumber},${this.endLineNumberExclusive})`}intersect(t){let r=Math.max(this.startLineNumber,t.startLineNumber),n=Math.min(this.endLineNumberExclusive,t.endLineNumberExclusive);if(r<=n)return new e(r,n)}intersectsStrict(t){return this.startLineNumber<t.endLineNumberExclusive&&t.startLineNumber<this.endLineNumberExclusive}overlapOrTouch(t){return this.startLineNumber<=t.endLineNumberExclusive&&t.startLineNumber<=this.endLineNumberExclusive}equals(t){return this.startLineNumber===t.startLineNumber&&this.endLineNumberExclusive===t.endLineNumberExclusive}toInclusiveRange(){return this.isEmpty?null:new $e(this.startLineNumber,1,this.endLineNumberExclusive-1,Number.MAX_SAFE_INTEGER)}toExclusiveRange(){return new $e(this.startLineNumber,1,this.endLineNumberExclusive,1)}mapToLineArray(t){let r=[];for(let n=this.startLineNumber;n<this.endLineNumberExclusive;n++)r.push(t(n));return r}forEach(t){for(let r=this.startLineNumber;r<this.endLineNumberExclusive;r++)t(r)}serialize(){return[this.startLineNumber,this.endLineNumberExclusive]}includes(t){return this.startLineNumber<=t&&t<this.endLineNumberExclusive}toOffsetRange(){return new Ee(this.startLineNumber-1,this.endLineNumberExclusive-1)}},Ms=class e{constructor(t=[]){this._normalizedRanges=t}get ranges(){return this._normalizedRanges}addRange(t){if(t.length===0)return;let r=vh(this._normalizedRanges,i=>i.endLineNumberExclusive>=t.startLineNumber),n=Es(this._normalizedRanges,i=>i.startLineNumber<=t.endLineNumberExclusive)+1;if(r===n)this._normalizedRanges.splice(r,0,t);else if(r===n-1){let i=this._normalizedRanges[r];this._normalizedRanges[r]=i.join(t)}else{let i=this._normalizedRanges[r].join(this._normalizedRanges[n-1]).join(t);this._normalizedRanges.splice(r,n-r,i)}}contains(t){let r=Oi(this._normalizedRanges,n=>n.startLineNumber<=t);return!!r&&r.endLineNumberExclusive>t}intersects(t){let r=Oi(this._normalizedRanges,n=>n.startLineNumber<t.endLineNumberExclusive);return!!r&&r.endLineNumberExclusive>t.startLineNumber}getUnion(t){if(this._normalizedRanges.length===0)return t;if(t._normalizedRanges.length===0)return this;let r=[],n=0,i=0,o=null;for(;n<this._normalizedRanges.length||i<t._normalizedRanges.length;){let s=null;if(n<this._normalizedRanges.length&&i<t._normalizedRanges.length){let a=this._normalizedRanges[n],u=t._normalizedRanges[i];a.startLineNumber<u.startLineNumber?(s=a,n++):(s=u,i++)}else n<this._normalizedRanges.length?(s=this._normalizedRanges[n],n++):(s=t._normalizedRanges[i],i++);o===null?o=s:o.endLineNumberExclusive>=s.startLineNumber?o=new Re(o.startLineNumber,Math.max(o.endLineNumberExclusive,s.endLineNumberExclusive)):(r.push(o),o=s)}return o!==null&&r.push(o),new e(r)}subtractFrom(t){let r=vh(this._normalizedRanges,s=>s.endLineNumberExclusive>=t.startLineNumber),n=Es(this._normalizedRanges,s=>s.startLineNumber<=t.endLineNumberExclusive)+1;if(r===n)return new e([t]);let i=[],o=t.startLineNumber;for(let s=r;s<n;s++){let a=this._normalizedRanges[s];a.startLineNumber>o&&i.push(new Re(o,a.startLineNumber)),o=a.endLineNumberExclusive}return o<t.endLineNumberExclusive&&i.push(new Re(o,t.endLineNumberExclusive)),new e(i)}toString(){return this._normalizedRanges.map(t=>t.toString()).join(", ")}getIntersection(t){let r=[],n=0,i=0;for(;n<this._normalizedRanges.length&&i<t._normalizedRanges.length;){let o=this._normalizedRanges[n],s=t._normalizedRanges[i],a=o.intersect(s);a&&!a.isEmpty&&r.push(a),o.endLineNumberExclusive<s.endLineNumberExclusive?n++:i++}return new e(r)}getWithDelta(t){return new e(this._normalizedRanges.map(r=>r.delta(t)))}};var wo=class e{static inverse(t,r,n){let i=[],o=1,s=1;for(let u of t){let d=new An(new Re(o,u.original.startLineNumber),new Re(s,u.modified.startLineNumber),void 0);d.modified.isEmpty||i.push(d),o=u.original.endLineNumberExclusive,s=u.modified.endLineNumberExclusive}let a=new An(new Re(o,r+1),new Re(s,n+1),void 0);return a.modified.isEmpty||i.push(a),i}constructor(t,r){this.original=t,this.modified=r}toString(){return`{${this.original.toString()}->${this.modified.toString()}}`}flip(){return new e(this.modified,this.original)}join(t){return new e(this.original.join(t.original),this.modified.join(t.modified))}},An=class e extends wo{constructor(t,r,n){super(t,r),this.innerChanges=n}flip(){var t;return new e(this.modified,this.original,(t=this.innerChanges)===null||t===void 0?void 0:t.map(r=>r.flip()))}},Ps=class e{constructor(t,r){this.originalRange=t,this.modifiedRange=r}toString(){return`{${this.originalRange.toString()}->${this.modifiedRange.toString()}}`}flip(){return new e(this.modifiedRange,this.originalRange)}};var KN=3,Sh=class{computeDiff(t,r,n){var i;let s=new Oy(t,r,{maxComputationTime:n.maxComputationTimeMs,shouldIgnoreTrimWhitespace:n.ignoreTrimWhitespace,shouldComputeCharChanges:!0,shouldMakePrettyDiff:!0,shouldPostProcessCharChanges:!0}).computeDiff(),a=[],u=null;for(let d of s.changes){let f;d.originalEndLineNumber===0?f=new Re(d.originalStartLineNumber+1,d.originalStartLineNumber+1):f=new Re(d.originalStartLineNumber,d.originalEndLineNumber+1);let m;d.modifiedEndLineNumber===0?m=new Re(d.modifiedStartLineNumber+1,d.modifiedStartLineNumber+1):m=new Re(d.modifiedStartLineNumber,d.modifiedEndLineNumber+1);let w=new An(f,m,(i=d.charChanges)===null||i===void 0?void 0:i.map(_=>new Ps(new $e(_.originalStartLineNumber,_.originalStartColumn,_.originalEndLineNumber,_.originalEndColumn),new $e(_.modifiedStartLineNumber,_.modifiedStartColumn,_.modifiedEndLineNumber,_.modifiedEndColumn))));u&&(u.modified.endLineNumberExclusive===w.modified.startLineNumber||u.original.endLineNumberExclusive===w.original.startLineNumber)&&(w=new An(u.original.join(w.original),u.modified.join(w.modified),u.innerChanges&&w.innerChanges?u.innerChanges.concat(w.innerChanges):void 0),a.pop()),a.push(w),u=w}return Ba(()=>wh(a,(d,f)=>f.original.startLineNumber-d.original.endLineNumberExclusive===f.modified.startLineNumber-d.modified.endLineNumberExclusive&&d.original.endLineNumberExclusive<f.original.startLineNumber&&d.modified.endLineNumberExclusive<f.modified.startLineNumber)),new go(a,[],s.quitEarly)}};function V3(e,t,r,n){return new Fc(e,t,r).ComputeDiff(n)}var xh=class{constructor(t){let r=[],n=[];for(let i=0,o=t.length;i<o;i++)r[i]=$y(t[i],1),n[i]=Fy(t[i],1);this.lines=t,this._startColumns=r,this._endColumns=n}getElements(){let t=[];for(let r=0,n=this.lines.length;r<n;r++)t[r]=this.lines[r].substring(this._startColumns[r]-1,this._endColumns[r]-1);return t}getStrictElement(t){return this.lines[t]}getStartLineNumber(t){return t+1}getEndLineNumber(t){return t+1}createCharSequence(t,r,n){let i=[],o=[],s=[],a=0;for(let u=r;u<=n;u++){let d=this.lines[u],f=t?this._startColumns[u]:1,m=t?this._endColumns[u]:d.length+1;for(let w=f;w<m;w++)i[a]=d.charCodeAt(w-1),o[a]=u+1,s[a]=w,a++;!t&&u<n&&(i[a]=10,o[a]=u+1,s[a]=d.length+1,a++)}return new Dy(i,o,s)}},Dy=class{constructor(t,r,n){this._charCodes=t,this._lineNumbers=r,this._columns=n}toString(){return"["+this._charCodes.map((t,r)=>(t===10?"\\n":String.fromCharCode(t))+`-(${this._lineNumbers[r]},${this._columns[r]})`).join(", ")+"]"}_assertIndex(t,r){if(t<0||t>=r.length)throw new Error("Illegal index")}getElements(){return this._charCodes}getStartLineNumber(t){return t>0&&t===this._lineNumbers.length?this.getEndLineNumber(t-1):(this._assertIndex(t,this._lineNumbers),this._lineNumbers[t])}getEndLineNumber(t){return t===-1?this.getStartLineNumber(t+1):(this._assertIndex(t,this._lineNumbers),this._charCodes[t]===10?this._lineNumbers[t]+1:this._lineNumbers[t])}getStartColumn(t){return t>0&&t===this._columns.length?this.getEndColumn(t-1):(this._assertIndex(t,this._columns),this._columns[t])}getEndColumn(t){return t===-1?this.getStartColumn(t+1):(this._assertIndex(t,this._columns),this._charCodes[t]===10?1:this._columns[t]+1)}},ja=class e{constructor(t,r,n,i,o,s,a,u){this.originalStartLineNumber=t,this.originalStartColumn=r,this.originalEndLineNumber=n,this.originalEndColumn=i,this.modifiedStartLineNumber=o,this.modifiedStartColumn=s,this.modifiedEndLineNumber=a,this.modifiedEndColumn=u}static createFromDiffChange(t,r,n){let i=r.getStartLineNumber(t.originalStart),o=r.getStartColumn(t.originalStart),s=r.getEndLineNumber(t.originalStart+t.originalLength-1),a=r.getEndColumn(t.originalStart+t.originalLength-1),u=n.getStartLineNumber(t.modifiedStart),d=n.getStartColumn(t.modifiedStart),f=n.getEndLineNumber(t.modifiedStart+t.modifiedLength-1),m=n.getEndColumn(t.modifiedStart+t.modifiedLength-1);return new e(i,o,s,a,u,d,f,m)}};function eR(e){if(e.length<=1)return e;let t=[e[0]],r=t[0];for(let n=1,i=e.length;n<i;n++){let o=e[n],s=o.originalStart-(r.originalStart+r.originalLength),a=o.modifiedStart-(r.modifiedStart+r.modifiedLength);Math.min(s,a)<KN?(r.originalLength=o.originalStart+o.originalLength-r.originalStart,r.modifiedLength=o.modifiedStart+o.modifiedLength-r.modifiedStart):(t.push(o),r=o)}return t}var qc=class e{constructor(t,r,n,i,o){this.originalStartLineNumber=t,this.originalEndLineNumber=r,this.modifiedStartLineNumber=n,this.modifiedEndLineNumber=i,this.charChanges=o}static createFromDiffResult(t,r,n,i,o,s,a){let u,d,f,m,w;if(r.originalLength===0?(u=n.getStartLineNumber(r.originalStart)-1,d=0):(u=n.getStartLineNumber(r.originalStart),d=n.getEndLineNumber(r.originalStart+r.originalLength-1)),r.modifiedLength===0?(f=i.getStartLineNumber(r.modifiedStart)-1,m=0):(f=i.getStartLineNumber(r.modifiedStart),m=i.getEndLineNumber(r.modifiedStart+r.modifiedLength-1)),s&&r.originalLength>0&&r.originalLength<20&&r.modifiedLength>0&&r.modifiedLength<20&&o()){let _=n.createCharSequence(t,r.originalStart,r.originalStart+r.originalLength-1),S=i.createCharSequence(t,r.modifiedStart,r.modifiedStart+r.modifiedLength-1);if(_.getElements().length>0&&S.getElements().length>0){let C=V3(_,S,o,!0).changes;a&&(C=eR(C)),w=[];for(let M=0,N=C.length;M<N;M++)w.push(ja.createFromDiffChange(C[M],_,S))}}return new e(u,d,f,m,w)}},Oy=class{constructor(t,r,n){this.shouldComputeCharChanges=n.shouldComputeCharChanges,this.shouldPostProcessCharChanges=n.shouldPostProcessCharChanges,this.shouldIgnoreTrimWhitespace=n.shouldIgnoreTrimWhitespace,this.shouldMakePrettyDiff=n.shouldMakePrettyDiff,this.originalLines=t,this.modifiedLines=r,this.original=new xh(t),this.modified=new xh(r),this.continueLineDiff=F3(n.maxComputationTime),this.continueCharDiff=F3(n.maxComputationTime===0?0:Math.min(n.maxComputationTime,5e3))}computeDiff(){if(this.original.lines.length===1&&this.original.lines[0].length===0)return this.modified.lines.length===1&&this.modified.lines[0].length===0?{quitEarly:!1,changes:[]}:{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:1,modifiedStartLineNumber:1,modifiedEndLineNumber:this.modified.lines.length,charChanges:void 0}]};if(this.modified.lines.length===1&&this.modified.lines[0].length===0)return{quitEarly:!1,changes:[{originalStartLineNumber:1,originalEndLineNumber:this.original.lines.length,modifiedStartLineNumber:1,modifiedEndLineNumber:1,charChanges:void 0}]};let t=V3(this.original,this.modified,this.continueLineDiff,this.shouldMakePrettyDiff),r=t.changes,n=t.quitEarly;if(this.shouldIgnoreTrimWhitespace){let a=[];for(let u=0,d=r.length;u<d;u++)a.push(qc.createFromDiffResult(this.shouldIgnoreTrimWhitespace,r[u],this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges));return{quitEarly:n,changes:a}}let i=[],o=0,s=0;for(let a=-1,u=r.length;a<u;a++){let d=a+1<u?r[a+1]:null,f=d?d.originalStart:this.originalLines.length,m=d?d.modifiedStart:this.modifiedLines.length;for(;o<f&&s<m;){let w=this.originalLines[o],_=this.modifiedLines[s];if(w!==_){{let S=$y(w,1),C=$y(_,1);for(;S>1&&C>1;){let M=w.charCodeAt(S-2),N=_.charCodeAt(C-2);if(M!==N)break;S--,C--}(S>1||C>1)&&this._pushTrimWhitespaceCharChange(i,o+1,1,S,s+1,1,C)}{let S=Fy(w,1),C=Fy(_,1),M=w.length+1,N=_.length+1;for(;S<M&&C<N;){let L=w.charCodeAt(S-1),k=w.charCodeAt(C-1);if(L!==k)break;S++,C++}(S<M||C<N)&&this._pushTrimWhitespaceCharChange(i,o+1,S,M,s+1,C,N)}}o++,s++}d&&(i.push(qc.createFromDiffResult(this.shouldIgnoreTrimWhitespace,d,this.original,this.modified,this.continueCharDiff,this.shouldComputeCharChanges,this.shouldPostProcessCharChanges)),o+=d.originalLength,s+=d.modifiedLength)}return{quitEarly:n,changes:i}}_pushTrimWhitespaceCharChange(t,r,n,i,o,s,a){if(this._mergeTrimWhitespaceCharChange(t,r,n,i,o,s,a))return;let u;this.shouldComputeCharChanges&&(u=[new ja(r,n,r,i,o,s,o,a)]),t.push(new qc(r,r,o,o,u))}_mergeTrimWhitespaceCharChange(t,r,n,i,o,s,a){let u=t.length;if(u===0)return!1;let d=t[u-1];return d.originalEndLineNumber===0||d.modifiedEndLineNumber===0?!1:d.originalEndLineNumber===r&&d.modifiedEndLineNumber===o?(this.shouldComputeCharChanges&&d.charChanges&&d.charChanges.push(new ja(r,n,r,i,o,s,o,a)),!0):d.originalEndLineNumber+1===r&&d.modifiedEndLineNumber+1===o?(d.originalEndLineNumber=r,d.modifiedEndLineNumber=o,this.shouldComputeCharChanges&&d.charChanges&&d.charChanges.push(new ja(r,n,r,i,o,s,o,a)),!0):!1}};function $y(e,t){let r=u5(e);return r===-1?t:r+1}function Fy(e,t){let r=d5(e);return r===-1?t:r+2}function F3(e){if(e===0)return()=>!0;let t=Date.now();return()=>Date.now()-t<e}var ni=class e{static trivial(t,r){return new e([new Gt(Ee.ofLength(t.length),Ee.ofLength(r.length))],!1)}static trivialTimedOut(t,r){return new e([new Gt(Ee.ofLength(t.length),Ee.ofLength(r.length))],!0)}constructor(t,r){this.diffs=t,this.hitTimeout=r}},Gt=class e{static invert(t,r){let n=[];return I5(t,(i,o)=>{n.push(e.fromOffsetPairs(i?i.getEndExclusives():Xr.zero,o?o.getStarts():new Xr(r,(i?i.seq2Range.endExclusive-i.seq1Range.endExclusive:0)+r)))}),n}static fromOffsetPairs(t,r){return new e(new Ee(t.offset1,r.offset1),new Ee(t.offset2,r.offset2))}constructor(t,r){this.seq1Range=t,this.seq2Range=r}swap(){return new e(this.seq2Range,this.seq1Range)}toString(){return`${this.seq1Range} <-> ${this.seq2Range}`}join(t){return new e(this.seq1Range.join(t.seq1Range),this.seq2Range.join(t.seq2Range))}delta(t){return t===0?this:new e(this.seq1Range.delta(t),this.seq2Range.delta(t))}deltaStart(t){return t===0?this:new e(this.seq1Range.deltaStart(t),this.seq2Range.deltaStart(t))}deltaEnd(t){return t===0?this:new e(this.seq1Range.deltaEnd(t),this.seq2Range.deltaEnd(t))}intersect(t){let r=this.seq1Range.intersect(t.seq1Range),n=this.seq2Range.intersect(t.seq2Range);if(!(!r||!n))return new e(r,n)}getStarts(){return new Xr(this.seq1Range.start,this.seq2Range.start)}getEndExclusives(){return new Xr(this.seq1Range.endExclusive,this.seq2Range.endExclusive)}},Xr=class{constructor(t,r){this.offset1=t,this.offset2=r}toString(){return`${this.offset1} <-> ${this.offset2}`}};Xr.zero=new Xr(0,0);Xr.max=new Xr(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER);var ii=class{isValid(){return!0}};ii.instance=new ii;var Ch=class{constructor(t){if(this.timeout=t,this.startTime=Date.now(),this.valid=!0,t<=0)throw new pn("timeout must be positive")}isValid(){if(!(Date.now()-this.startTime<this.timeout)&&this.valid){this.valid=!1;debugger}return this.valid}};var Ha=class{constructor(t,r){this.width=t,this.height=r,this.array=[],this.array=new Array(t*r)}get(t,r){return this.array[t+r*this.width]}set(t,r,n){this.array[t+r*this.width]=n}};function jc(e){return e===32||e===9}var Za=class e{static getKey(t){let r=this.chrKeys.get(t);return r===void 0&&(r=this.chrKeys.size,this.chrKeys.set(t,r)),r}constructor(t,r,n){this.range=t,this.lines=r,this.source=n,this.histogram=[];let i=0;for(let o=t.startLineNumber-1;o<t.endLineNumberExclusive-1;o++){let s=r[o];for(let u=0;u<s.length;u++){i++;let d=s[u],f=e.getKey(d);this.histogram[f]=(this.histogram[f]||0)+1}i++;let a=e.getKey(`
|
|
150
|
+
`);this.histogram[a]=(this.histogram[a]||0)+1}this.totalCount=i}computeSimilarity(t){var r,n;let i=0,o=Math.max(this.histogram.length,t.histogram.length);for(let s=0;s<o;s++)i+=Math.abs(((r=this.histogram[s])!==null&&r!==void 0?r:0)-((n=t.histogram[s])!==null&&n!==void 0?n:0));return 1-i/(this.totalCount+t.totalCount)}};Za.chrKeys=new Map;var Th=class{compute(t,r,n=ii.instance,i){if(t.length===0||r.length===0)return ni.trivial(t,r);let o=new Ha(t.length,r.length),s=new Ha(t.length,r.length),a=new Ha(t.length,r.length);for(let S=0;S<t.length;S++)for(let C=0;C<r.length;C++){if(!n.isValid())return ni.trivialTimedOut(t,r);let M=S===0?0:o.get(S-1,C),N=C===0?0:o.get(S,C-1),L;t.getElement(S)===r.getElement(C)?(S===0||C===0?L=0:L=o.get(S-1,C-1),S>0&&C>0&&s.get(S-1,C-1)===3&&(L+=a.get(S-1,C-1)),L+=i?i(S,C):1):L=-1;let k=Math.max(M,N,L);if(k===L){let W=S>0&&C>0?a.get(S-1,C-1):0;a.set(S,C,W+1),s.set(S,C,3)}else k===M?(a.set(S,C,0),s.set(S,C,1)):k===N&&(a.set(S,C,0),s.set(S,C,2));o.set(S,C,k)}let u=[],d=t.length,f=r.length;function m(S,C){(S+1!==d||C+1!==f)&&u.push(new Gt(new Ee(S+1,d),new Ee(C+1,f))),d=S,f=C}let w=t.length-1,_=r.length-1;for(;w>=0&&_>=0;)s.get(w,_)===3?(m(w,_),w--,_--):s.get(w,_)===1?w--:_--;return m(-1,-1),u.reverse(),new ni(u,!1)}};var Ya=class{compute(t,r,n=ii.instance){if(t.length===0||r.length===0)return ni.trivial(t,r);let i=t,o=r;function s(C,M){for(;C<i.length&&M<o.length&&i.getElement(C)===o.getElement(M);)C++,M++;return C}let a=0,u=new Vy;u.set(0,s(0,0));let d=new Uy;d.set(0,u.get(0)===0?null:new Eh(null,0,0,u.get(0)));let f=0;e:for(;;){if(a++,!n.isValid())return ni.trivialTimedOut(i,o);let C=-Math.min(a,o.length+a%2),M=Math.min(a,i.length+a%2);for(f=C;f<=M;f+=2){let N=0,L=f===M?-1:u.get(f+1),k=f===C?-1:u.get(f-1)+1;N++;let W=Math.min(Math.max(L,k),i.length),Z=W-f;if(N++,W>i.length||Z>o.length)continue;let ee=s(W,Z);u.set(f,ee);let ne=W===L?d.get(f+1):d.get(f-1);if(d.set(f,ee!==W?new Eh(ne,W,Z,ee-W):ne),u.get(f)===i.length&&u.get(f)-f===o.length)break e}}let m=d.get(f),w=[],_=i.length,S=o.length;for(;;){let C=m?m.x+m.length:0,M=m?m.y+m.length:0;if((C!==_||M!==S)&&w.push(new Gt(new Ee(C,_),new Ee(M,S))),!m)break;_=m.x,S=m.y,m=m.prev}return w.reverse(),new ni(w,!1)}},Eh=class{constructor(t,r,n,i){this.prev=t,this.x=r,this.y=n,this.length=i}},Vy=class{constructor(){this.positiveArr=new Int32Array(10),this.negativeArr=new Int32Array(10)}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,r){if(t<0){if(t=-t-1,t>=this.negativeArr.length){let n=this.negativeArr;this.negativeArr=new Int32Array(n.length*2),this.negativeArr.set(n)}this.negativeArr[t]=r}else{if(t>=this.positiveArr.length){let n=this.positiveArr;this.positiveArr=new Int32Array(n.length*2),this.positiveArr.set(n)}this.positiveArr[t]=r}}},Uy=class{constructor(){this.positiveArr=[],this.negativeArr=[]}get(t){return t<0?(t=-t-1,this.negativeArr[t]):this.positiveArr[t]}set(t,r){t<0?(t=-t-1,this.negativeArr[t]=r):this.positiveArr[t]=r}};var U3,W3,Wy=class{constructor(t,r){this.uri=t,this.value=r}};function tR(e){return Array.isArray(e)}var zy=class e{constructor(t,r){if(this[U3]="ResourceMap",t instanceof e)this.map=new Map(t.map),this.toKey=r??e.defaultToKey;else if(tR(t)){this.map=new Map,this.toKey=r??e.defaultToKey;for(let[n,i]of t)this.set(n,i)}else this.map=new Map,this.toKey=t??e.defaultToKey}set(t,r){return this.map.set(this.toKey(t),new Wy(t,r)),this}get(t){var r;return(r=this.map.get(this.toKey(t)))===null||r===void 0?void 0:r.value}has(t){return this.map.has(this.toKey(t))}get size(){return this.map.size}clear(){this.map.clear()}delete(t){return this.map.delete(this.toKey(t))}forEach(t,r){typeof r<"u"&&(t=t.bind(r));for(let[n,i]of this.map)t(i.value,i.uri,this)}*values(){for(let t of this.map.values())yield t.value}*keys(){for(let t of this.map.values())yield t.uri}*entries(){for(let t of this.map.values())yield[t.uri,t.value]}*[(U3=Symbol.toStringTag,Symbol.iterator)](){for(let[,t]of this.map)yield[t.uri,t.value]}};zy.defaultToKey=e=>e.toString();var z3=class{constructor(){this[W3]="LinkedMap",this._map=new Map,this._head=void 0,this._tail=void 0,this._size=0,this._state=0}clear(){this._map.clear(),this._head=void 0,this._tail=void 0,this._size=0,this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){var t;return(t=this._head)===null||t===void 0?void 0:t.value}get last(){var t;return(t=this._tail)===null||t===void 0?void 0:t.value}has(t){return this._map.has(t)}get(t,r=0){let n=this._map.get(t);if(n)return r!==0&&this.touch(n,r),n.value}set(t,r,n=0){let i=this._map.get(t);if(i)i.value=r,n!==0&&this.touch(i,n);else{switch(i={key:t,value:r,next:void 0,previous:void 0},n){case 0:this.addItemLast(i);break;case 1:this.addItemFirst(i);break;case 2:this.addItemLast(i);break;default:this.addItemLast(i);break}this._map.set(t,i),this._size++}return this}delete(t){return!!this.remove(t)}remove(t){let r=this._map.get(t);if(r)return this._map.delete(t),this.removeItem(r),this._size--,r.value}shift(){if(!this._head&&!this._tail)return;if(!this._head||!this._tail)throw new Error("Invalid list");let t=this._head;return this._map.delete(t.key),this.removeItem(t),this._size--,t.value}forEach(t,r){let n=this._state,i=this._head;for(;i;){if(r?t.bind(r)(i.value,i.key,this):t(i.value,i.key,this),this._state!==n)throw new Error("LinkedMap got modified during iteration.");i=i.next}}keys(){let t=this,r=this._state,n=this._head,i={[Symbol.iterator](){return i},next(){if(t._state!==r)throw new Error("LinkedMap got modified during iteration.");if(n){let o={value:n.key,done:!1};return n=n.next,o}else return{value:void 0,done:!0}}};return i}values(){let t=this,r=this._state,n=this._head,i={[Symbol.iterator](){return i},next(){if(t._state!==r)throw new Error("LinkedMap got modified during iteration.");if(n){let o={value:n.value,done:!1};return n=n.next,o}else return{value:void 0,done:!0}}};return i}entries(){let t=this,r=this._state,n=this._head,i={[Symbol.iterator](){return i},next(){if(t._state!==r)throw new Error("LinkedMap got modified during iteration.");if(n){let o={value:[n.key,n.value],done:!1};return n=n.next,o}else return{value:void 0,done:!0}}};return i}[(W3=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(t){if(t>=this.size)return;if(t===0){this.clear();return}let r=this._head,n=this.size;for(;r&&n>t;)this._map.delete(r.key),r=r.next,n--;this._head=r,this._size=n,r&&(r.previous=void 0),this._state++}addItemFirst(t){if(!this._head&&!this._tail)this._tail=t;else if(this._head)t.next=this._head,this._head.previous=t;else throw new Error("Invalid list");this._head=t,this._state++}addItemLast(t){if(!this._head&&!this._tail)this._head=t;else if(this._tail)t.previous=this._tail,this._tail.next=t;else throw new Error("Invalid list");this._tail=t,this._state++}removeItem(t){if(t===this._head&&t===this._tail)this._head=void 0,this._tail=void 0;else if(t===this._head){if(!t.next)throw new Error("Invalid list");t.next.previous=void 0,this._head=t.next}else if(t===this._tail){if(!t.previous)throw new Error("Invalid list");t.previous.next=void 0,this._tail=t.previous}else{let r=t.next,n=t.previous;if(!r||!n)throw new Error("Invalid list");r.previous=n,n.next=r}t.next=void 0,t.previous=void 0,this._state++}touch(t,r){if(!this._head||!this._tail)throw new Error("Invalid list");if(!(r!==1&&r!==2)){if(r===1){if(t===this._head)return;let n=t.next,i=t.previous;t===this._tail?(i.next=void 0,this._tail=i):(n.previous=i,i.next=n),t.previous=void 0,t.next=this._head,this._head.previous=t,this._head=t,this._state++}else if(r===2){if(t===this._tail)return;let n=t.next,i=t.previous;t===this._head?(n.previous=void 0,this._head=n):(n.previous=i,i.next=n),t.next=void 0,t.previous=this._tail,this._tail.next=t,this._tail=t,this._state++}}}toJSON(){let t=[];return this.forEach((r,n)=>{t.push([n,r])}),t}fromJSON(t){this.clear();for(let[r,n]of t)this.set(r,n)}};var Mh=class{constructor(){this.map=new Map}add(t,r){let n=this.map.get(t);n||(n=new Set,this.map.set(t,n)),n.add(r)}delete(t,r){let n=this.map.get(t);n&&(n.delete(r),n.size===0&&this.map.delete(t))}forEach(t,r){let n=this.map.get(t);n&&n.forEach(r)}get(t){let r=this.map.get(t);return r||new Set}};var yo=class{constructor(t,r,n){this.lines=t,this.considerWhitespaceChanges=n,this.elements=[],this.firstCharOffsetByLine=[],this.additionalOffsetByLine=[];let i=!1;r.start>0&&r.endExclusive>=t.length&&(r=new Ee(r.start-1,r.endExclusive),i=!0),this.lineRange=r,this.firstCharOffsetByLine[0]=0;for(let o=this.lineRange.start;o<this.lineRange.endExclusive;o++){let s=t[o],a=0;if(i)a=s.length,s="",i=!1;else if(!n){let u=s.trimStart();a=s.length-u.length,s=u.trimEnd()}this.additionalOffsetByLine.push(a);for(let u=0;u<s.length;u++)this.elements.push(s.charCodeAt(u));o<t.length-1&&(this.elements.push(10),this.firstCharOffsetByLine[o-this.lineRange.start+1]=this.elements.length)}this.additionalOffsetByLine.push(0)}toString(){return`Slice: "${this.text}"`}get text(){return this.getText(new Ee(0,this.length))}getText(t){return this.elements.slice(t.start,t.endExclusive).map(r=>String.fromCharCode(r)).join("")}getElement(t){return this.elements[t]}get length(){return this.elements.length}getBoundaryScore(t){let r=B3(t>0?this.elements[t-1]:-1),n=B3(t<this.elements.length?this.elements[t]:-1);if(r===7&&n===8)return 0;let i=0;return r!==n&&(i+=10,r===0&&n===1&&(i+=1)),i+=G3(r),i+=G3(n),i}translateOffset(t){if(this.lineRange.isEmpty)return new zt(this.lineRange.start+1,1);let r=Es(this.firstCharOffsetByLine,n=>n<=t);return new zt(this.lineRange.start+r+1,t-this.firstCharOffsetByLine[r]+this.additionalOffsetByLine[r]+1)}translateRange(t){return $e.fromPositions(this.translateOffset(t.start),this.translateOffset(t.endExclusive))}findWordContaining(t){if(t<0||t>=this.elements.length||!Gy(this.elements[t]))return;let r=t;for(;r>0&&Gy(this.elements[r-1]);)r--;let n=t;for(;n<this.elements.length&&Gy(this.elements[n]);)n++;return new Ee(r,n)}countLinesIn(t){return this.translateOffset(t.endExclusive).lineNumber-this.translateOffset(t.start).lineNumber}isStronglyEqual(t,r){return this.elements[t]===this.elements[r]}extendToFullLines(t){var r,n;let i=(r=Oi(this.firstCharOffsetByLine,s=>s<=t.start))!==null&&r!==void 0?r:0,o=(n=$3(this.firstCharOffsetByLine,s=>t.endExclusive<=s))!==null&&n!==void 0?n:this.elements.length;return new Ee(i,o)}};function Gy(e){return e>=97&&e<=122||e>=65&&e<=90||e>=48&&e<=57}var rR={0:0,1:0,2:0,3:10,4:2,5:3,6:3,7:10,8:10};function G3(e){return rR[e]}function B3(e){return e===10?8:e===13?7:jc(e)?6:e>=97&&e<=122?0:e>=65&&e<=90?1:e>=48&&e<=57?2:e===-1?3:e===44||e===59?5:4}function j3(e,t,r,n,i,o){let{moves:s,excludedChanges:a}=iR(e,t,r,o);if(!o.isValid())return[];let u=e.filter(f=>!a.has(f)),d=oR(u,n,i,t,r,o);return k5(s,d),s=sR(s),s=s.filter(f=>{let m=f.original.toOffsetRange().slice(t).map(_=>_.trim());return m.join(`
|
|
151
|
+
`).length>=15&&nR(m,_=>_.length>=2)>=2}),s=aR(e,s),s}function nR(e,t){let r=0;for(let n of e)t(n)&&r++;return r}function iR(e,t,r,n){let i=[],o=e.filter(u=>u.modified.isEmpty&&u.original.length>=3).map(u=>new Za(u.original,t,u)),s=new Set(e.filter(u=>u.original.isEmpty&&u.modified.length>=3).map(u=>new Za(u.modified,r,u))),a=new Set;for(let u of o){let d=-1,f;for(let m of s){let w=u.computeSimilarity(m);w>d&&(d=w,f=m)}if(d>.9&&f&&(s.delete(f),i.push(new wo(u.range,f.range)),a.add(u.source),a.add(f.source)),!n.isValid())return{moves:i,excludedChanges:a}}return{moves:i,excludedChanges:a}}function oR(e,t,r,n,i,o){let s=[],a=new Mh;for(let w of e)for(let _=w.original.startLineNumber;_<w.original.endLineNumberExclusive-2;_++){let S=`${t[_-1]}:${t[_+1-1]}:${t[_+2-1]}`;a.add(S,{range:new Re(_,_+3)})}let u=[];e.sort(Uc(w=>w.modified.startLineNumber,Wc));for(let w of e){let _=[];for(let S=w.modified.startLineNumber;S<w.modified.endLineNumberExclusive-2;S++){let C=`${r[S-1]}:${r[S+1-1]}:${r[S+2-1]}`,M=new Re(S,S+3),N=[];a.forEach(C,({range:L})=>{for(let W of _)if(W.originalLineRange.endLineNumberExclusive+1===L.endLineNumberExclusive&&W.modifiedLineRange.endLineNumberExclusive+1===M.endLineNumberExclusive){W.originalLineRange=new Re(W.originalLineRange.startLineNumber,L.endLineNumberExclusive),W.modifiedLineRange=new Re(W.modifiedLineRange.startLineNumber,M.endLineNumberExclusive),N.push(W);return}let k={modifiedLineRange:M,originalLineRange:L};u.push(k),N.push(k)}),_=N}if(!o.isValid())return[]}u.sort(N5(Uc(w=>w.modifiedLineRange.length,Wc)));let d=new Ms,f=new Ms;for(let w of u){let _=w.modifiedLineRange.startLineNumber-w.originalLineRange.startLineNumber,S=d.subtractFrom(w.modifiedLineRange),C=f.subtractFrom(w.originalLineRange).getWithDelta(_),M=S.getIntersection(C);for(let N of M.ranges){if(N.length<3)continue;let L=N,k=N.delta(-_);s.push(new wo(k,L)),d.addRange(L),f.addRange(k)}}s.sort(Uc(w=>w.original.startLineNumber,Wc));let m=new qa(e);for(let w=0;w<s.length;w++){let _=s[w],S=m.findLastMonotonous(ee=>ee.original.startLineNumber<=_.original.startLineNumber),C=Oi(e,ee=>ee.modified.startLineNumber<=_.modified.startLineNumber),M=Math.max(_.original.startLineNumber-S.original.startLineNumber,_.modified.startLineNumber-C.modified.startLineNumber),N=m.findLastMonotonous(ee=>ee.original.startLineNumber<_.original.endLineNumberExclusive),L=Oi(e,ee=>ee.modified.startLineNumber<_.modified.endLineNumberExclusive),k=Math.max(N.original.endLineNumberExclusive-_.original.endLineNumberExclusive,L.modified.endLineNumberExclusive-_.modified.endLineNumberExclusive),W;for(W=0;W<M;W++){let ee=_.original.startLineNumber-W-1,ne=_.modified.startLineNumber-W-1;if(ee>n.length||ne>i.length||d.contains(ne)||f.contains(ee)||!q3(n[ee-1],i[ne-1],o))break}W>0&&(f.addRange(new Re(_.original.startLineNumber-W,_.original.startLineNumber)),d.addRange(new Re(_.modified.startLineNumber-W,_.modified.startLineNumber)));let Z;for(Z=0;Z<k;Z++){let ee=_.original.endLineNumberExclusive+Z,ne=_.modified.endLineNumberExclusive+Z;if(ee>n.length||ne>i.length||d.contains(ne)||f.contains(ee)||!q3(n[ee-1],i[ne-1],o))break}Z>0&&(f.addRange(new Re(_.original.endLineNumberExclusive,_.original.endLineNumberExclusive+Z)),d.addRange(new Re(_.modified.endLineNumberExclusive,_.modified.endLineNumberExclusive+Z))),(W>0||Z>0)&&(s[w]=new wo(new Re(_.original.startLineNumber-W,_.original.endLineNumberExclusive+Z),new Re(_.modified.startLineNumber-W,_.modified.endLineNumberExclusive+Z)))}return s}function q3(e,t,r){if(e.trim()===t.trim())return!0;if(e.length>300&&t.length>300)return!1;let i=new Ya().compute(new yo([e],new Ee(0,1),!1),new yo([t],new Ee(0,1),!1),r),o=0,s=Gt.invert(i.diffs,e.length);for(let f of s)f.seq1Range.forEach(m=>{jc(e.charCodeAt(m))||o++});function a(f){let m=0;for(let w=0;w<e.length;w++)jc(f.charCodeAt(w))||m++;return m}let u=a(e.length>t.length?e:t);return o/u>.6&&u>10}function sR(e){if(e.length===0)return e;e.sort(Uc(r=>r.original.startLineNumber,Wc));let t=[e[0]];for(let r=1;r<e.length;r++){let n=t[t.length-1],i=e[r],o=i.original.startLineNumber-n.original.endLineNumberExclusive,s=i.modified.startLineNumber-n.modified.endLineNumberExclusive;if(o>=0&&s>=0&&o+s<=2){t[t.length-1]=n.join(i);continue}t.push(i)}return t}function aR(e,t){let r=new qa(e);return t=t.filter(n=>{let i=r.findLastMonotonous(a=>a.original.startLineNumber<n.original.endLineNumberExclusive)||new wo(new Re(1,1),new Re(1,1)),o=Oi(e,a=>a.modified.startLineNumber<n.modified.endLineNumberExclusive);return i!==o}),t}function By(e,t,r){let n=r;return n=H3(e,t,n),n=H3(e,t,n),n=lR(e,t,n),n}function H3(e,t,r){if(r.length===0)return r;let n=[];n.push(r[0]);for(let o=1;o<r.length;o++){let s=n[n.length-1],a=r[o];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){let u=a.seq1Range.start-s.seq1Range.endExclusive,d;for(d=1;d<=u&&!(e.getElement(a.seq1Range.start-d)!==e.getElement(a.seq1Range.endExclusive-d)||t.getElement(a.seq2Range.start-d)!==t.getElement(a.seq2Range.endExclusive-d));d++);if(d--,d===u){n[n.length-1]=new Gt(new Ee(s.seq1Range.start,a.seq1Range.endExclusive-u),new Ee(s.seq2Range.start,a.seq2Range.endExclusive-u));continue}a=a.delta(-d)}n.push(a)}let i=[];for(let o=0;o<n.length-1;o++){let s=n[o+1],a=n[o];if(a.seq1Range.isEmpty||a.seq2Range.isEmpty){let u=s.seq1Range.start-a.seq1Range.endExclusive,d;for(d=0;d<u&&!(!e.isStronglyEqual(a.seq1Range.start+d,a.seq1Range.endExclusive+d)||!t.isStronglyEqual(a.seq2Range.start+d,a.seq2Range.endExclusive+d));d++);if(d===u){n[o+1]=new Gt(new Ee(a.seq1Range.start+u,s.seq1Range.endExclusive),new Ee(a.seq2Range.start+u,s.seq2Range.endExclusive));continue}d>0&&(a=a.delta(d))}i.push(a)}return n.length>0&&i.push(n[n.length-1]),i}function lR(e,t,r){if(!e.getBoundaryScore||!t.getBoundaryScore)return r;for(let n=0;n<r.length;n++){let i=n>0?r[n-1]:void 0,o=r[n],s=n+1<r.length?r[n+1]:void 0,a=new Ee(i?i.seq1Range.start+1:0,s?s.seq1Range.endExclusive-1:e.length),u=new Ee(i?i.seq2Range.start+1:0,s?s.seq2Range.endExclusive-1:t.length);o.seq1Range.isEmpty?r[n]=Z3(o,e,t,a,u):o.seq2Range.isEmpty&&(r[n]=Z3(o.swap(),t,e,u,a).swap())}return r}function Z3(e,t,r,n,i){let s=1;for(;e.seq1Range.start-s>=n.start&&e.seq2Range.start-s>=i.start&&r.isStronglyEqual(e.seq2Range.start-s,e.seq2Range.endExclusive-s)&&s<100;)s++;s--;let a=0;for(;e.seq1Range.start+a<n.endExclusive&&e.seq2Range.endExclusive+a<i.endExclusive&&r.isStronglyEqual(e.seq2Range.start+a,e.seq2Range.endExclusive+a)&&a<100;)a++;if(s===0&&a===0)return e;let u=0,d=-1;for(let f=-s;f<=a;f++){let m=e.seq2Range.start+f,w=e.seq2Range.endExclusive+f,_=e.seq1Range.start+f,S=t.getBoundaryScore(_)+r.getBoundaryScore(m)+r.getBoundaryScore(w);S>d&&(d=S,u=f)}return e.delta(u)}function Y3(e,t,r){let n=[];for(let i of r){let o=n[n.length-1];if(!o){n.push(i);continue}i.seq1Range.start-o.seq1Range.endExclusive<=2||i.seq2Range.start-o.seq2Range.endExclusive<=2?n[n.length-1]=new Gt(o.seq1Range.join(i.seq1Range),o.seq2Range.join(i.seq2Range)):n.push(i)}return n}function J3(e,t,r){let n=[],i;function o(){if(!i)return;let a=i.s1Range.length-i.deleted,u=i.s2Range.length-i.added;Math.max(i.deleted,i.added)+(i.count-1)>a&&n.push(new Gt(i.s1Range,i.s2Range)),i=void 0}for(let a of r){let u=function(_,S){var C,M,N,L;if(!i||!i.s1Range.containsRange(_)||!i.s2Range.containsRange(S))if(i&&!(i.s1Range.endExclusive<_.start&&i.s2Range.endExclusive<S.start)){let Z=Ee.tryCreate(i.s1Range.endExclusive,_.start),ee=Ee.tryCreate(i.s2Range.endExclusive,S.start);i.deleted+=(C=Z?.length)!==null&&C!==void 0?C:0,i.added+=(M=ee?.length)!==null&&M!==void 0?M:0,i.s1Range=i.s1Range.join(_),i.s2Range=i.s2Range.join(S)}else o(),i={added:0,deleted:0,count:0,s1Range:_,s2Range:S};let k=_.intersect(a.seq1Range),W=S.intersect(a.seq2Range);i.count++,i.deleted+=(N=k?.length)!==null&&N!==void 0?N:0,i.added+=(L=W?.length)!==null&&L!==void 0?L:0},d=e.findWordContaining(a.seq1Range.start-1),f=t.findWordContaining(a.seq2Range.start-1),m=e.findWordContaining(a.seq1Range.endExclusive),w=t.findWordContaining(a.seq2Range.endExclusive);d&&m&&f&&w&&d.equals(m)&&f.equals(w)?u(d,f):(d&&f&&u(d,f),m&&w&&u(m,w))}return o(),cR(r,n)}function cR(e,t){let r=[];for(;e.length>0||t.length>0;){let n=e[0],i=t[0],o;n&&(!i||n.seq1Range.start<i.seq1Range.start)?o=e.shift():o=t.shift(),r.length>0&&r[r.length-1].seq1Range.endExclusive>=o.seq1Range.start?r[r.length-1]=r[r.length-1].join(o):r.push(o)}return r}function X3(e,t,r){let n=r;if(n.length===0)return n;let i=0,o;do{o=!1;let s=[n[0]];for(let a=1;a<n.length;a++){let f=function(w,_){let S=new Ee(d.seq1Range.endExclusive,u.seq1Range.start);return e.getText(S).replace(/\s/g,"").length<=4&&(w.seq1Range.length+w.seq2Range.length>5||_.seq1Range.length+_.seq2Range.length>5)},u=n[a],d=s[s.length-1];f(d,u)?(o=!0,s[s.length-1]=s[s.length-1].join(u)):s.push(u)}n=s}while(i++<10&&o);return n}function Q3(e,t,r){let n=r;if(n.length===0)return n;let i=0,o;do{o=!1;let a=[n[0]];for(let u=1;u<n.length;u++){let m=function(_,S){let C=new Ee(f.seq1Range.endExclusive,d.seq1Range.start);if(e.countLinesIn(C)>5||C.length>500)return!1;let N=e.getText(C).trim();if(N.length>20||N.split(/\r\n|\r|\n/).length>1)return!1;let L=e.countLinesIn(_.seq1Range),k=_.seq1Range.length,W=t.countLinesIn(_.seq2Range),Z=_.seq2Range.length,ee=e.countLinesIn(S.seq1Range),ne=S.seq1Range.length,te=t.countLinesIn(S.seq2Range),pe=S.seq2Range.length,ge=2*40+50;function ue(G){return Math.min(G,ge)}return Math.pow(Math.pow(ue(L*40+k),1.5)+Math.pow(ue(W*40+Z),1.5),1.5)+Math.pow(Math.pow(ue(ee*40+ne),1.5)+Math.pow(ue(te*40+pe),1.5),1.5)>(ge**1.5)**1.5*1.3},d=n[u],f=a[a.length-1];m(f,d)?(o=!0,a[a.length-1]=a[a.length-1].join(d)):a.push(d)}n=a}while(i++<10&&o);let s=[];return A5(n,(a,u,d)=>{let f=u;function m(N){return N.length>0&&N.trim().length<=3&&u.seq1Range.length+u.seq2Range.length>100}let w=e.extendToFullLines(u.seq1Range),_=e.getText(new Ee(w.start,u.seq1Range.start));m(_)&&(f=f.deltaStart(-_.length));let S=e.getText(new Ee(u.seq1Range.endExclusive,w.endExclusive));m(S)&&(f=f.deltaEnd(S.length));let C=Gt.fromOffsetPairs(a?a.getEndExclusives():Xr.zero,d?d.getStarts():Xr.max),M=f.intersect(C);s.push(M)}),s}var Hc=class{constructor(t,r){this.trimmedHash=t,this.lines=r}getElement(t){return this.trimmedHash[t]}get length(){return this.trimmedHash.length}getBoundaryScore(t){let r=t===0?0:K3(this.lines[t-1]),n=t===this.lines.length?0:K3(this.lines[t]);return 1e3-(r+n)}getText(t){return this.lines.slice(t.start,t.endExclusive).join(`
|
|
152
|
+
`)}isStronglyEqual(t,r){return this.lines[t]===this.lines[r]}};function K3(e){let t=0;for(;t<e.length&&(e.charCodeAt(t)===32||e.charCodeAt(t)===9);)t++;return t}var Ph=class{constructor(){this.dynamicProgrammingDiffing=new Th,this.myersDiffingAlgorithm=new Ya}computeDiff(t,r,n){if(t.length<=1&&P5(t,r,(Z,ee)=>Z===ee))return new go([],[],!1);if(t.length===1&&t[0].length===0||r.length===1&&r[0].length===0)return new go([new An(new Re(1,t.length+1),new Re(1,r.length+1),[new Ps(new $e(1,1,t.length,t[0].length+1),new $e(1,1,r.length,r[0].length+1))])],[],!1);let i=n.maxComputationTimeMs===0?ii.instance:new Ch(n.maxComputationTimeMs),o=!n.ignoreTrimWhitespace,s=new Map;function a(Z){let ee=s.get(Z);return ee===void 0&&(ee=s.size,s.set(Z,ee)),ee}let u=t.map(Z=>a(Z.trim())),d=r.map(Z=>a(Z.trim())),f=new Hc(u,t),m=new Hc(d,r),w=f.length+m.length<1700?this.dynamicProgrammingDiffing.compute(f,m,i,(Z,ee)=>t[Z]===r[ee]?r[ee].length===0?.1:1+Math.log(1+r[ee].length):.99):this.myersDiffingAlgorithm.compute(f,m),_=w.diffs,S=w.hitTimeout;_=By(f,m,_),_=X3(f,m,_);let C=[],M=Z=>{if(o)for(let ee=0;ee<Z;ee++){let ne=N+ee,te=L+ee;if(t[ne]!==r[te]){let pe=this.refineDiff(t,r,new Gt(new Ee(ne,ne+1),new Ee(te,te+1)),i,o);for(let ge of pe.mappings)C.push(ge);pe.hitTimeout&&(S=!0)}}},N=0,L=0;for(let Z of _){Ba(()=>Z.seq1Range.start-N===Z.seq2Range.start-L);let ee=Z.seq1Range.start-N;M(ee),N=Z.seq1Range.endExclusive,L=Z.seq2Range.endExclusive;let ne=this.refineDiff(t,r,Z,i,o);ne.hitTimeout&&(S=!0);for(let te of ne.mappings)C.push(te)}M(t.length-N);let k=e9(C,t,r),W=[];return n.computeMoves&&(W=this.computeMoves(k,t,r,u,d,i,o)),Ba(()=>{function Z(ne,te){if(ne.lineNumber<1||ne.lineNumber>te.length)return!1;let pe=te[ne.lineNumber-1];return!(ne.column<1||ne.column>pe.length+1)}function ee(ne,te){return!(ne.startLineNumber<1||ne.startLineNumber>te.length+1||ne.endLineNumberExclusive<1||ne.endLineNumberExclusive>te.length+1)}for(let ne of k){if(!ne.innerChanges)return!1;for(let te of ne.innerChanges)if(!(Z(te.modifiedRange.getStartPosition(),r)&&Z(te.modifiedRange.getEndPosition(),r)&&Z(te.originalRange.getStartPosition(),t)&&Z(te.originalRange.getEndPosition(),t)))return!1;if(!ee(ne.modified,r)||!ee(ne.original,t))return!1}return!0}),new go(k,W,S)}computeMoves(t,r,n,i,o,s,a){return j3(t,r,n,i,o,s).map(f=>{let m=this.refineDiff(r,n,new Gt(f.original.toOffsetRange(),f.modified.toOffsetRange()),s,a),w=e9(m.mappings,r,n,!0);return new _h(f,w)})}refineDiff(t,r,n,i,o){let s=new yo(t,n.seq1Range,o),a=new yo(r,n.seq2Range,o),u=s.length+a.length<500?this.dynamicProgrammingDiffing.compute(s,a,i):this.myersDiffingAlgorithm.compute(s,a,i),d=u.diffs;return d=By(s,a,d),d=J3(s,a,d),d=Y3(s,a,d),d=Q3(s,a,d),{mappings:d.map(m=>new Ps(s.translateRange(m.seq1Range),a.translateRange(m.seq2Range))),hitTimeout:u.hitTimeout}}};function e9(e,t,r,n=!1){let i=[];for(let o of L5(e.map(s=>uR(s,t,r)),(s,a)=>s.original.overlapOrTouch(a.original)||s.modified.overlapOrTouch(a.modified))){let s=o[0],a=o[o.length-1];i.push(new An(s.original.join(a.original),s.modified.join(a.modified),o.map(u=>u.innerChanges[0])))}return Ba(()=>!n&&i.length>0&&i[0].original.startLineNumber!==i[0].modified.startLineNumber?!1:wh(i,(o,s)=>s.original.startLineNumber-o.original.endLineNumberExclusive===s.modified.startLineNumber-o.modified.endLineNumberExclusive&&o.original.endLineNumberExclusive<s.original.startLineNumber&&o.modified.endLineNumberExclusive<s.modified.startLineNumber)),i}function uR(e,t,r){let n=0,i=0;e.modifiedRange.endColumn===1&&e.originalRange.endColumn===1&&e.originalRange.startLineNumber+n<=e.originalRange.endLineNumber&&e.modifiedRange.startLineNumber+n<=e.modifiedRange.endLineNumber&&(i=-1),e.modifiedRange.startColumn-1>=r[e.modifiedRange.startLineNumber-1].length&&e.originalRange.startColumn-1>=t[e.originalRange.startLineNumber-1].length&&e.originalRange.startLineNumber<=e.originalRange.endLineNumber+i&&e.modifiedRange.startLineNumber<=e.modifiedRange.endLineNumber+i&&(n=1);let o=new Re(e.originalRange.startLineNumber+n,e.originalRange.endLineNumber+1+i),s=new Re(e.modifiedRange.startLineNumber+n,e.modifiedRange.endLineNumber+1+i);return new An(o,s,[e])}var qy={getLegacy:()=>new Sh,getDefault:()=>new Ph};function bo(e,t){let r=Math.pow(10,t);return Math.round(e*r)/r}var Mt=class{constructor(t,r,n,i=1){this._rgbaBrand=void 0,this.r=Math.min(255,Math.max(0,t))|0,this.g=Math.min(255,Math.max(0,r))|0,this.b=Math.min(255,Math.max(0,n))|0,this.a=bo(Math.max(Math.min(1,i),0),3)}static equals(t,r){return t.r===r.r&&t.g===r.g&&t.b===r.b&&t.a===r.a}},oi=class e{constructor(t,r,n,i){this._hslaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=bo(Math.max(Math.min(1,r),0),3),this.l=bo(Math.max(Math.min(1,n),0),3),this.a=bo(Math.max(Math.min(1,i),0),3)}static equals(t,r){return t.h===r.h&&t.s===r.s&&t.l===r.l&&t.a===r.a}static fromRGBA(t){let r=t.r/255,n=t.g/255,i=t.b/255,o=t.a,s=Math.max(r,n,i),a=Math.min(r,n,i),u=0,d=0,f=(a+s)/2,m=s-a;if(m>0){switch(d=Math.min(f<=.5?m/(2*f):m/(2-2*f),1),s){case r:u=(n-i)/m+(n<i?6:0);break;case n:u=(i-r)/m+2;break;case i:u=(r-n)/m+4;break}u*=60,u=Math.round(u)}return new e(u,d,f,o)}static _hue2rgb(t,r,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(r-t)*6*n:n<1/2?r:n<2/3?t+(r-t)*(2/3-n)*6:t}static toRGBA(t){let r=t.h/360,{s:n,l:i,a:o}=t,s,a,u;if(n===0)s=a=u=i;else{let d=i<.5?i*(1+n):i+n-i*n,f=2*i-d;s=e._hue2rgb(f,d,r+1/3),a=e._hue2rgb(f,d,r),u=e._hue2rgb(f,d,r-1/3)}return new Mt(Math.round(s*255),Math.round(a*255),Math.round(u*255),o)}},Ja=class e{constructor(t,r,n,i){this._hsvaBrand=void 0,this.h=Math.max(Math.min(360,t),0)|0,this.s=bo(Math.max(Math.min(1,r),0),3),this.v=bo(Math.max(Math.min(1,n),0),3),this.a=bo(Math.max(Math.min(1,i),0),3)}static equals(t,r){return t.h===r.h&&t.s===r.s&&t.v===r.v&&t.a===r.a}static fromRGBA(t){let r=t.r/255,n=t.g/255,i=t.b/255,o=Math.max(r,n,i),s=Math.min(r,n,i),a=o-s,u=o===0?0:a/o,d;return a===0?d=0:o===r?d=((n-i)/a%6+6)%6:o===n?d=(i-r)/a+2:d=(r-n)/a+4,new e(Math.round(d*60),u,o,t.a)}static toRGBA(t){let{h:r,s:n,v:i,a:o}=t,s=i*n,a=s*(1-Math.abs(r/60%2-1)),u=i-s,[d,f,m]=[0,0,0];return r<60?(d=s,f=a):r<120?(d=a,f=s):r<180?(f=s,m=a):r<240?(f=a,m=s):r<300?(d=a,m=s):r<=360&&(d=s,m=a),d=Math.round((d+u)*255),f=Math.round((f+u)*255),m=Math.round((m+u)*255),new Mt(d,f,m,o)}},pt=class e{static fromHex(t){return e.Format.CSS.parseHex(t)||e.red}static equals(t,r){return!t&&!r?!0:!t||!r?!1:t.equals(r)}get hsla(){return this._hsla?this._hsla:oi.fromRGBA(this.rgba)}get hsva(){return this._hsva?this._hsva:Ja.fromRGBA(this.rgba)}constructor(t){if(t)if(t instanceof Mt)this.rgba=t;else if(t instanceof oi)this._hsla=t,this.rgba=oi.toRGBA(t);else if(t instanceof Ja)this._hsva=t,this.rgba=Ja.toRGBA(t);else throw new Error("Invalid color ctor argument");else throw new Error("Color needs a value")}equals(t){return!!t&&Mt.equals(this.rgba,t.rgba)&&oi.equals(this.hsla,t.hsla)&&Ja.equals(this.hsva,t.hsva)}getRelativeLuminance(){let t=e._relativeLuminanceForComponent(this.rgba.r),r=e._relativeLuminanceForComponent(this.rgba.g),n=e._relativeLuminanceForComponent(this.rgba.b),i=.2126*t+.7152*r+.0722*n;return bo(i,4)}static _relativeLuminanceForComponent(t){let r=t/255;return r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4)}isLighter(){return(this.rgba.r*299+this.rgba.g*587+this.rgba.b*114)/1e3>=128}isLighterThan(t){let r=this.getRelativeLuminance(),n=t.getRelativeLuminance();return r>n}isDarkerThan(t){let r=this.getRelativeLuminance(),n=t.getRelativeLuminance();return r<n}lighten(t){return new e(new oi(this.hsla.h,this.hsla.s,this.hsla.l+this.hsla.l*t,this.hsla.a))}darken(t){return new e(new oi(this.hsla.h,this.hsla.s,this.hsla.l-this.hsla.l*t,this.hsla.a))}transparent(t){let{r,g:n,b:i,a:o}=this.rgba;return new e(new Mt(r,n,i,o*t))}isTransparent(){return this.rgba.a===0}isOpaque(){return this.rgba.a===1}opposite(){return new e(new Mt(255-this.rgba.r,255-this.rgba.g,255-this.rgba.b,this.rgba.a))}makeOpaque(t){if(this.isOpaque()||t.rgba.a!==1)return this;let{r,g:n,b:i,a:o}=this.rgba;return new e(new Mt(t.rgba.r-o*(t.rgba.r-r),t.rgba.g-o*(t.rgba.g-n),t.rgba.b-o*(t.rgba.b-i),1))}toString(){return this._toString||(this._toString=e.Format.CSS.format(this)),this._toString}static getLighterColor(t,r,n){if(t.isLighterThan(r))return t;n=n||.5;let i=t.getRelativeLuminance(),o=r.getRelativeLuminance();return n=n*(o-i)/o,t.lighten(n)}static getDarkerColor(t,r,n){if(t.isDarkerThan(r))return t;n=n||.5;let i=t.getRelativeLuminance(),o=r.getRelativeLuminance();return n=n*(i-o)/i,t.darken(n)}};pt.white=new pt(new Mt(255,255,255,1));pt.black=new pt(new Mt(0,0,0,1));pt.red=new pt(new Mt(255,0,0,1));pt.blue=new pt(new Mt(0,0,255,1));pt.green=new pt(new Mt(0,255,0,1));pt.cyan=new pt(new Mt(0,255,255,1));pt.lightgrey=new pt(new Mt(211,211,211,1));pt.transparent=new pt(new Mt(0,0,0,0));(function(e){let t;(function(r){let n;(function(i){function o(C){return C.rgba.a===1?`rgb(${C.rgba.r}, ${C.rgba.g}, ${C.rgba.b})`:e.Format.CSS.formatRGBA(C)}i.formatRGB=o;function s(C){return`rgba(${C.rgba.r}, ${C.rgba.g}, ${C.rgba.b}, ${+C.rgba.a.toFixed(2)})`}i.formatRGBA=s;function a(C){return C.hsla.a===1?`hsl(${C.hsla.h}, ${(C.hsla.s*100).toFixed(2)}%, ${(C.hsla.l*100).toFixed(2)}%)`:e.Format.CSS.formatHSLA(C)}i.formatHSL=a;function u(C){return`hsla(${C.hsla.h}, ${(C.hsla.s*100).toFixed(2)}%, ${(C.hsla.l*100).toFixed(2)}%, ${C.hsla.a.toFixed(2)})`}i.formatHSLA=u;function d(C){let M=C.toString(16);return M.length!==2?"0"+M:M}function f(C){return`#${d(C.rgba.r)}${d(C.rgba.g)}${d(C.rgba.b)}`}i.formatHex=f;function m(C,M=!1){return M&&C.rgba.a===1?e.Format.CSS.formatHex(C):`#${d(C.rgba.r)}${d(C.rgba.g)}${d(C.rgba.b)}${d(Math.round(C.rgba.a*255))}`}i.formatHexA=m;function w(C){return C.isOpaque()?e.Format.CSS.formatHex(C):e.Format.CSS.formatRGBA(C)}i.format=w;function _(C){let M=C.length;if(M===0||C.charCodeAt(0)!==35)return null;if(M===7){let N=16*S(C.charCodeAt(1))+S(C.charCodeAt(2)),L=16*S(C.charCodeAt(3))+S(C.charCodeAt(4)),k=16*S(C.charCodeAt(5))+S(C.charCodeAt(6));return new e(new Mt(N,L,k,1))}if(M===9){let N=16*S(C.charCodeAt(1))+S(C.charCodeAt(2)),L=16*S(C.charCodeAt(3))+S(C.charCodeAt(4)),k=16*S(C.charCodeAt(5))+S(C.charCodeAt(6)),W=16*S(C.charCodeAt(7))+S(C.charCodeAt(8));return new e(new Mt(N,L,k,W/255))}if(M===4){let N=S(C.charCodeAt(1)),L=S(C.charCodeAt(2)),k=S(C.charCodeAt(3));return new e(new Mt(16*N+N,16*L+L,16*k+k))}if(M===5){let N=S(C.charCodeAt(1)),L=S(C.charCodeAt(2)),k=S(C.charCodeAt(3)),W=S(C.charCodeAt(4));return new e(new Mt(16*N+N,16*L+L,16*k+k,(16*W+W)/255))}return null}i.parseHex=_;function S(C){switch(C){case 48:return 0;case 49:return 1;case 50:return 2;case 51:return 3;case 52:return 4;case 53:return 5;case 54:return 6;case 55:return 7;case 56:return 8;case 57:return 9;case 97:return 10;case 65:return 10;case 98:return 11;case 66:return 11;case 99:return 12;case 67:return 12;case 100:return 13;case 68:return 13;case 101:return 14;case 69:return 14;case 102:return 15;case 70:return 15}return 0}})(n=r.CSS||(r.CSS={}))})(t=e.Format||(e.Format={}))})(pt||(pt={}));function n9(e){let t=[];for(let r of e){let n=Number(r);(n||n===0&&r.replace(/\s/g,"")!=="")&&t.push(n)}return t}function jy(e,t,r,n){return{red:e/255,blue:r/255,green:t/255,alpha:n}}function Zc(e,t){let r=t.index,n=t[0].length;if(!r)return;let i=e.positionAt(r);return{startLineNumber:i.lineNumber,startColumn:i.column,endLineNumber:i.lineNumber,endColumn:i.column+n}}function dR(e,t){if(!e)return;let r=pt.Format.CSS.parseHex(t);if(r)return{range:e,color:jy(r.rgba.r,r.rgba.g,r.rgba.b,r.rgba.a)}}function t9(e,t,r){if(!e||t.length!==1)return;let i=t[0].values(),o=n9(i);return{range:e,color:jy(o[0],o[1],o[2],r?o[3]:1)}}function r9(e,t,r){if(!e||t.length!==1)return;let i=t[0].values(),o=n9(i),s=new pt(new oi(o[0],o[1]/100,o[2]/100,r?o[3]:1));return{range:e,color:jy(s.rgba.r,s.rgba.g,s.rgba.b,s.rgba.a)}}function Yc(e,t){return typeof e=="string"?[...e.matchAll(t)]:e.findMatches(t)}function fR(e){let t=[],n=Yc(e,/\b(rgb|rgba|hsl|hsla)(\([0-9\s,.\%]*\))|(#)([A-Fa-f0-9]{3})\b|(#)([A-Fa-f0-9]{4})\b|(#)([A-Fa-f0-9]{6})\b|(#)([A-Fa-f0-9]{8})\b/gm);if(n.length>0)for(let i of n){let o=i.filter(d=>d!==void 0),s=o[1],a=o[2];if(!a)continue;let u;if(s==="rgb"){let d=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*\)$/gm;u=t9(Zc(e,i),Yc(a,d),!1)}else if(s==="rgba"){let d=/^\(\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;u=t9(Zc(e,i),Yc(a,d),!0)}else if(s==="hsl"){let d=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*\)$/gm;u=r9(Zc(e,i),Yc(a,d),!1)}else if(s==="hsla"){let d=/^\(\s*(36[0]|3[0-5][0-9]|[12][0-9][0-9]|[1-9]?[0-9])\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(100|\d{1,2}[.]\d*|\d{1,2})%\s*,\s*(0[.][0-9]+|[.][0-9]+|[01][.]|[01])\s*\)$/gm;u=r9(Zc(e,i),Yc(a,d),!0)}else s==="#"&&(u=dR(Zc(e,i),s+a));u&&t.push(u)}return t}function i9(e){return!e||typeof e.getValue!="function"||typeof e.positionAt!="function"?[]:fR(e)}var Hy=class extends oh{get uri(){return this._uri}get eol(){return this._eol}getValue(){return this.getText()}findMatches(t){let r=[];for(let n=0;n<this._lines.length;n++){let i=this._lines[n],o=this.offsetAt(new zt(n+1,1)),s=i.matchAll(t);for(let a of s)(a.index||a.index===0)&&(a.index=a.index+o),r.push(a)}return r}getLinesContent(){return this._lines.slice(0)}getLineCount(){return this._lines.length}getLineContent(t){return this._lines[t-1]}getWordAtPosition(t,r){let n=zc(t.column,Ty(r),this._lines[t.lineNumber-1],0);return n?new $e(t.lineNumber,n.startColumn,t.lineNumber,n.endColumn):null}words(t){let r=this._lines,n=this._wordenize.bind(this),i=0,o="",s=0,a=[];return{*[Symbol.iterator](){for(;;)if(s<a.length){let u=o.substring(a[s].start,a[s].end);s+=1,yield u}else if(i<r.length)o=r[i],a=n(o,t),s=0,i+=1;else break}}}getLineWords(t,r){let n=this._lines[t-1],i=this._wordenize(n,r),o=[];for(let s of i)o.push({word:n.substring(s.start,s.end),startColumn:s.start+1,endColumn:s.end+1});return o}_wordenize(t,r){let n=[],i;for(r.lastIndex=0;(i=r.exec(t))&&i[0].length!==0;)n.push({start:i.index,end:i.index+i[0].length});return n}getValueInRange(t){if(t=this._validateRange(t),t.startLineNumber===t.endLineNumber)return this._lines[t.startLineNumber-1].substring(t.startColumn-1,t.endColumn-1);let r=this._eol,n=t.startLineNumber-1,i=t.endLineNumber-1,o=[];o.push(this._lines[n].substring(t.startColumn-1));for(let s=n+1;s<i;s++)o.push(this._lines[s]);return o.push(this._lines[i].substring(0,t.endColumn-1)),o.join(r)}offsetAt(t){return t=this._validatePosition(t),this._ensureLineStarts(),this._lineStarts.getPrefixSum(t.lineNumber-2)+(t.column-1)}positionAt(t){t=Math.floor(t),t=Math.max(0,t),this._ensureLineStarts();let r=this._lineStarts.getIndexOf(t),n=this._lines[r.index].length;return{lineNumber:1+r.index,column:1+Math.min(r.remainder,n)}}_validateRange(t){let r=this._validatePosition({lineNumber:t.startLineNumber,column:t.startColumn}),n=this._validatePosition({lineNumber:t.endLineNumber,column:t.endColumn});return r.lineNumber!==t.startLineNumber||r.column!==t.startColumn||n.lineNumber!==t.endLineNumber||n.column!==t.endColumn?{startLineNumber:r.lineNumber,startColumn:r.column,endLineNumber:n.lineNumber,endColumn:n.column}:t}_validatePosition(t){if(!zt.isIPosition(t))throw new Error("bad position");let{lineNumber:r,column:n}=t,i=!1;if(r<1)r=1,n=1,i=!0;else if(r>this._lines.length)r=this._lines.length,n=this._lines[r-1].length+1,i=!0;else{let o=this._lines[r-1].length+1;n<1?(n=1,i=!0):n>o&&(n=o,i=!0)}return i?{lineNumber:r,column:n}:t}},Xa=class e{constructor(t,r){this._host=t,this._models=Object.create(null),this._foreignModuleFactory=r,this._foreignModule=null}dispose(){this._models=Object.create(null)}_getModel(t){return this._models[t]}_getModels(){let t=[];return Object.keys(this._models).forEach(r=>t.push(this._models[r])),t}acceptNewModel(t){this._models[t.url]=new Hy(mo.parse(t.url),t.lines,t.EOL,t.versionId)}acceptModelChanged(t,r){if(!this._models[t])return;this._models[t].onEvents(r)}acceptRemovedModel(t){this._models[t]&&delete this._models[t]}async computeUnicodeHighlights(t,r,n){let i=this._getModel(t);return i?yh.computeUnicodeHighlights(i,r,n):{ranges:[],hasMore:!1,ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0}}async computeDiff(t,r,n,i){let o=this._getModel(t),s=this._getModel(r);return!o||!s?null:e.computeDiff(o,s,n,i)}static computeDiff(t,r,n,i){let o=i==="advanced"?qy.getDefault():qy.getLegacy(),s=t.getLinesContent(),a=r.getLinesContent(),u=o.computeDiff(s,a,n),d=u.changes.length>0?!1:this._modelsAreIdentical(t,r);function f(m){return m.map(w=>{var _;return[w.original.startLineNumber,w.original.endLineNumberExclusive,w.modified.startLineNumber,w.modified.endLineNumberExclusive,(_=w.innerChanges)===null||_===void 0?void 0:_.map(S=>[S.originalRange.startLineNumber,S.originalRange.startColumn,S.originalRange.endLineNumber,S.originalRange.endColumn,S.modifiedRange.startLineNumber,S.modifiedRange.startColumn,S.modifiedRange.endLineNumber,S.modifiedRange.endColumn])]})}return{identical:d,quitEarly:u.hitTimeout,changes:f(u.changes),moves:u.moves.map(m=>[m.lineRangeMapping.original.startLineNumber,m.lineRangeMapping.original.endLineNumberExclusive,m.lineRangeMapping.modified.startLineNumber,m.lineRangeMapping.modified.endLineNumberExclusive,f(m.changes)])}}static _modelsAreIdentical(t,r){let n=t.getLineCount(),i=r.getLineCount();if(n!==i)return!1;for(let o=1;o<=n;o++){let s=t.getLineContent(o),a=r.getLineContent(o);if(s!==a)return!1}return!0}async computeMoreMinimalEdits(t,r,n){let i=this._getModel(t);if(!i)return r;let o=[],s;r=r.slice(0).sort((u,d)=>{if(u.range&&d.range)return $e.compareRangesUsingStarts(u.range,d.range);let f=u.range?0:1,m=d.range?0:1;return f-m});let a=0;for(let u=1;u<r.length;u++)$e.getEndPosition(r[a].range).equals($e.getStartPosition(r[u].range))?(r[a].range=$e.fromPositions($e.getStartPosition(r[a].range),$e.getEndPosition(r[u].range)),r[a].text+=r[u].text):(a++,r[a]=r[u]);r.length=a+1;for(let{range:u,text:d,eol:f}of r){if(typeof f=="number"&&(s=f),$e.isEmpty(u)&&!d)continue;let m=i.getValueInRange(u);if(d=d.replace(/\r\n|\n|\r/g,i.eol),m===d)continue;if(Math.max(d.length,m.length)>e._diffLimit){o.push({range:u,text:d});continue}let w=b5(m,d,n),_=i.offsetAt($e.lift(u).getStartPosition());for(let S of w){let C=i.positionAt(_+S.originalStart),M=i.positionAt(_+S.originalStart+S.originalLength),N={text:d.substr(S.modifiedStart,S.modifiedLength),range:{startLineNumber:C.lineNumber,startColumn:C.column,endLineNumber:M.lineNumber,endColumn:M.column}};i.getValueInRange(N.range)!==N.text&&o.push(N)}}return typeof s=="number"&&o.push({eol:s,text:"",range:{startLineNumber:0,startColumn:0,endLineNumber:0,endColumn:0}}),o}async computeLinks(t){let r=this._getModel(t);return r?D5(r):null}async computeDefaultDocumentColors(t){let r=this._getModel(t);return r?i9(r):null}async textualSuggest(t,r,n,i){let o=new Da,s=new RegExp(n,i),a=new Set;e:for(let u of t){let d=this._getModel(u);if(d){for(let f of d.words(s))if(!(f===r||!isNaN(Number(f)))&&(a.add(f),a.size>e._suggestionsLimit))break e}}return{words:Array.from(a),duration:o.elapsed()}}async computeWordRanges(t,r,n,i){let o=this._getModel(t);if(!o)return Object.create(null);let s=new RegExp(n,i),a=Object.create(null);for(let u=r.startLineNumber;u<r.endLineNumber;u++){let d=o.getLineWords(u,s);for(let f of d){if(!isNaN(Number(f.word)))continue;let m=a[f.word];m||(m=[],a[f.word]=m),m.push({startLineNumber:u,startColumn:f.startColumn,endLineNumber:u,endColumn:f.endColumn})}}return a}async navigateValueSet(t,r,n,i,o){let s=this._getModel(t);if(!s)return null;let a=new RegExp(i,o);r.startColumn===r.endColumn&&(r={startLineNumber:r.startLineNumber,startColumn:r.startColumn,endLineNumber:r.endLineNumber,endColumn:r.endColumn+1});let u=s.getValueInRange(r),d=s.getWordAtPosition({lineNumber:r.startLineNumber,column:r.startColumn},a);if(!d)return null;let f=s.getValueInRange(d);return za.INSTANCE.navigateValueSet(r,u,d,f,n)}loadForeignModule(t,r,n){let s={host:n5(n,(a,u)=>this._host.fhr(a,u)),getMirrorModels:()=>this._getModels()};return this._foreignModuleFactory?(this._foreignModule=this._foreignModuleFactory(s,r),Promise.resolve(Rc(this._foreignModule))):Promise.reject(new Error("Unexpected usage"))}fmr(t,r){if(!this._foreignModule||typeof this._foreignModule[t]!="function")return Promise.reject(new Error("Missing requestHandler or method: "+t));try{return Promise.resolve(this._foreignModule[t].apply(this._foreignModule,r))}catch(n){return Promise.reject(n)}}};Xa._diffLimit=1e5;Xa._suggestionsLimit=1e4;typeof importScripts=="function"&&(globalThis.monaco=I3());var Zy=!1;function Yy(e){if(Zy)return;Zy=!0;let t=new Xm(r=>{globalThis.postMessage(r)},r=>new Xa(r,e));globalThis.onmessage=r=>{t.onmessage(r.data)}}globalThis.onmessage=e=>{Zy||Yy(null)};var Lh=class e{constructor(t,r,n,i){this._uri=t,this._languageId=r,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let r=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(r,n)}return this._content}update(t,r){for(let n of t)if(e.isIncremental(n)){let i=s9(n.range),o=this.offsetAt(i.start),s=this.offsetAt(i.end);this._content=this._content.substring(0,o)+n.text+this._content.substring(s,this._content.length);let a=Math.max(i.start.line,0),u=Math.max(i.end.line,0),d=this._lineOffsets,f=o9(n.text,!1,o);if(u-a===f.length)for(let w=0,_=f.length;w<_;w++)d[w+a+1]=f[w];else f.length<1e4?d.splice(a+1,u-a,...f):this._lineOffsets=d=d.slice(0,a+1).concat(f,d.slice(u+1));let m=n.text.length-(s-o);if(m!==0)for(let w=a+1+f.length,_=d.length;w<_;w++)d[w]=d[w]+m}else if(e.isFull(n))this._content=n.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=r}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=o9(this._content,!0)),this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let r=this.getLineOffsets(),n=0,i=r.length;if(i===0)return{line:0,character:t};for(;n<i;){let s=Math.floor((n+i)/2);r[s]>t?i=s:n=s+1}let o=n-1;return{line:o,character:t-r[o]}}offsetAt(t){let r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;let n=r[t.line],i=t.line+1<r.length?r[t.line+1]:this._content.length;return Math.max(Math.min(n+t.character,i),n)}get lineCount(){return this.getLineOffsets().length}static isIncremental(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range!==void 0&&(r.rangeLength===void 0||typeof r.rangeLength=="number")}static isFull(t){let r=t;return r!=null&&typeof r.text=="string"&&r.range===void 0&&r.rangeLength===void 0}},Ih;(function(e){function t(i,o,s,a){return new Lh(i,o,s,a)}e.create=t;function r(i,o,s){if(i instanceof Lh)return i.update(o,s),i;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=r;function n(i,o){let s=i.getText(),a=Jy(o.map(pR),(f,m)=>{let w=f.range.start.line-m.range.start.line;return w===0?f.range.start.character-m.range.start.character:w}),u=0,d=[];for(let f of a){let m=i.offsetAt(f.range.start);if(m<u)throw new Error("Overlapping edit");m>u&&d.push(s.substring(u,m)),f.newText.length&&d.push(f.newText),u=i.offsetAt(f.range.end)}return d.push(s.substr(u)),d.join("")}e.applyEdits=n})(Ih||(Ih={}));function Jy(e,t){if(e.length<=1)return e;let r=e.length/2|0,n=e.slice(0,r),i=e.slice(r);Jy(n,t),Jy(i,t);let o=0,s=0,a=0;for(;o<n.length&&s<i.length;)t(n[o],i[s])<=0?e[a++]=n[o++]:e[a++]=i[s++];for(;o<n.length;)e[a++]=n[o++];for(;s<i.length;)e[a++]=i[s++];return e}function o9(e,t,r=0){let n=t?[r]:[];for(let i=0;i<e.length;i++){let o=e.charCodeAt(i);(o===13||o===10)&&(o===13&&i+1<e.length&&e.charCodeAt(i+1)===10&&i++,n.push(r+i+1))}return n}function s9(e){let t=e.start,r=e.end;return t.line>r.line||t.line===r.line&&t.character>r.character?{start:r,end:t}:e}function pR(e){let t=s9(e.range);return t!==e.range?{newText:e.newText,range:t}:e}var a9;(function(e){function t(r){return typeof r=="string"}e.is=t})(a9||(a9={}));var Xy;(function(e){function t(r){return typeof r=="string"}e.is=t})(Xy||(Xy={}));var l9;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}e.is=t})(l9||(l9={}));var Ah;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function t(r){return typeof r=="number"&&e.MIN_VALUE<=r&&r<=e.MAX_VALUE}e.is=t})(Ah||(Ah={}));var kn;(function(e){function t(n,i){return n===Number.MAX_VALUE&&(n=Ah.MAX_VALUE),i===Number.MAX_VALUE&&(i=Ah.MAX_VALUE),{line:n,character:i}}e.create=t;function r(n){let i=n;return F.objectLiteral(i)&&F.uinteger(i.line)&&F.uinteger(i.character)}e.is=r})(kn||(kn={}));var Pt;(function(e){function t(n,i,o,s){if(F.uinteger(n)&&F.uinteger(i)&&F.uinteger(o)&&F.uinteger(s))return{start:kn.create(n,i),end:kn.create(o,s)};if(kn.is(n)&&kn.is(i))return{start:n,end:i};throw new Error(`Range#create called with invalid arguments[${n}, ${i}, ${o}, ${s}]`)}e.create=t;function r(n){let i=n;return F.objectLiteral(i)&&kn.is(i.start)&&kn.is(i.end)}e.is=r})(Pt||(Pt={}));var kh;(function(e){function t(n,i){return{uri:n,range:i}}e.create=t;function r(n){let i=n;return F.objectLiteral(i)&&Pt.is(i.range)&&(F.string(i.uri)||F.undefined(i.uri))}e.is=r})(kh||(kh={}));var c9;(function(e){function t(n,i,o,s){return{targetUri:n,targetRange:i,targetSelectionRange:o,originSelectionRange:s}}e.create=t;function r(n){let i=n;return F.objectLiteral(i)&&Pt.is(i.targetRange)&&F.string(i.targetUri)&&Pt.is(i.targetSelectionRange)&&(Pt.is(i.originSelectionRange)||F.undefined(i.originSelectionRange))}e.is=r})(c9||(c9={}));var Qy;(function(e){function t(n,i,o,s){return{red:n,green:i,blue:o,alpha:s}}e.create=t;function r(n){let i=n;return F.objectLiteral(i)&&F.numberRange(i.red,0,1)&&F.numberRange(i.green,0,1)&&F.numberRange(i.blue,0,1)&&F.numberRange(i.alpha,0,1)}e.is=r})(Qy||(Qy={}));var u9;(function(e){function t(n,i){return{range:n,color:i}}e.create=t;function r(n){let i=n;return F.objectLiteral(i)&&Pt.is(i.range)&&Qy.is(i.color)}e.is=r})(u9||(u9={}));var d9;(function(e){function t(n,i,o){return{label:n,textEdit:i,additionalTextEdits:o}}e.create=t;function r(n){let i=n;return F.objectLiteral(i)&&F.string(i.label)&&(F.undefined(i.textEdit)||Ka.is(i))&&(F.undefined(i.additionalTextEdits)||F.typedArray(i.additionalTextEdits,Ka.is))}e.is=r})(d9||(d9={}));var f9;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(f9||(f9={}));var p9;(function(e){function t(n,i,o,s,a,u){let d={startLine:n,endLine:i};return F.defined(o)&&(d.startCharacter=o),F.defined(s)&&(d.endCharacter=s),F.defined(a)&&(d.kind=a),F.defined(u)&&(d.collapsedText=u),d}e.create=t;function r(n){let i=n;return F.objectLiteral(i)&&F.uinteger(i.startLine)&&F.uinteger(i.startLine)&&(F.undefined(i.startCharacter)||F.uinteger(i.startCharacter))&&(F.undefined(i.endCharacter)||F.uinteger(i.endCharacter))&&(F.undefined(i.kind)||F.string(i.kind))}e.is=r})(p9||(p9={}));var Ky;(function(e){function t(n,i){return{location:n,message:i}}e.create=t;function r(n){let i=n;return F.defined(i)&&kh.is(i.location)&&F.string(i.message)}e.is=r})(Ky||(Ky={}));var m9;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(m9||(m9={}));var h9;(function(e){e.Unnecessary=1,e.Deprecated=2})(h9||(h9={}));var g9;(function(e){function t(r){let n=r;return F.objectLiteral(n)&&F.string(n.href)}e.is=t})(g9||(g9={}));var Nh;(function(e){function t(n,i,o,s,a,u){let d={range:n,message:i};return F.defined(o)&&(d.severity=o),F.defined(s)&&(d.code=s),F.defined(a)&&(d.source=a),F.defined(u)&&(d.relatedInformation=u),d}e.create=t;function r(n){var i;let o=n;return F.defined(o)&&Pt.is(o.range)&&F.string(o.message)&&(F.number(o.severity)||F.undefined(o.severity))&&(F.integer(o.code)||F.string(o.code)||F.undefined(o.code))&&(F.undefined(o.codeDescription)||F.string((i=o.codeDescription)===null||i===void 0?void 0:i.href))&&(F.string(o.source)||F.undefined(o.source))&&(F.undefined(o.relatedInformation)||F.typedArray(o.relatedInformation,Ky.is))}e.is=r})(Nh||(Nh={}));var Qa;(function(e){function t(n,i,...o){let s={title:n,command:i};return F.defined(o)&&o.length>0&&(s.arguments=o),s}e.create=t;function r(n){let i=n;return F.defined(i)&&F.string(i.title)&&F.string(i.command)}e.is=r})(Qa||(Qa={}));var Ka;(function(e){function t(o,s){return{range:o,newText:s}}e.replace=t;function r(o,s){return{range:{start:o,end:o},newText:s}}e.insert=r;function n(o){return{range:o,newText:""}}e.del=n;function i(o){let s=o;return F.objectLiteral(s)&&F.string(s.newText)&&Pt.is(s.range)}e.is=i})(Ka||(Ka={}));var e2;(function(e){function t(n,i,o){let s={label:n};return i!==void 0&&(s.needsConfirmation=i),o!==void 0&&(s.description=o),s}e.create=t;function r(n){let i=n;return F.objectLiteral(i)&&F.string(i.label)&&(F.boolean(i.needsConfirmation)||i.needsConfirmation===void 0)&&(F.string(i.description)||i.description===void 0)}e.is=r})(e2||(e2={}));var el;(function(e){function t(r){let n=r;return F.string(n)}e.is=t})(el||(el={}));var w9;(function(e){function t(o,s,a){return{range:o,newText:s,annotationId:a}}e.replace=t;function r(o,s,a){return{range:{start:o,end:o},newText:s,annotationId:a}}e.insert=r;function n(o,s){return{range:o,newText:"",annotationId:s}}e.del=n;function i(o){let s=o;return Ka.is(s)&&(e2.is(s.annotationId)||el.is(s.annotationId))}e.is=i})(w9||(w9={}));var t2;(function(e){function t(n,i){return{textDocument:n,edits:i}}e.create=t;function r(n){let i=n;return F.defined(i)&&s2.is(i.textDocument)&&Array.isArray(i.edits)}e.is=r})(t2||(t2={}));var r2;(function(e){function t(n,i,o){let s={kind:"create",uri:n};return i!==void 0&&(i.overwrite!==void 0||i.ignoreIfExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function r(n){let i=n;return i&&i.kind==="create"&&F.string(i.uri)&&(i.options===void 0||(i.options.overwrite===void 0||F.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||F.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||el.is(i.annotationId))}e.is=r})(r2||(r2={}));var n2;(function(e){function t(n,i,o,s){let a={kind:"rename",oldUri:n,newUri:i};return o!==void 0&&(o.overwrite!==void 0||o.ignoreIfExists!==void 0)&&(a.options=o),s!==void 0&&(a.annotationId=s),a}e.create=t;function r(n){let i=n;return i&&i.kind==="rename"&&F.string(i.oldUri)&&F.string(i.newUri)&&(i.options===void 0||(i.options.overwrite===void 0||F.boolean(i.options.overwrite))&&(i.options.ignoreIfExists===void 0||F.boolean(i.options.ignoreIfExists)))&&(i.annotationId===void 0||el.is(i.annotationId))}e.is=r})(n2||(n2={}));var i2;(function(e){function t(n,i,o){let s={kind:"delete",uri:n};return i!==void 0&&(i.recursive!==void 0||i.ignoreIfNotExists!==void 0)&&(s.options=i),o!==void 0&&(s.annotationId=o),s}e.create=t;function r(n){let i=n;return i&&i.kind==="delete"&&F.string(i.uri)&&(i.options===void 0||(i.options.recursive===void 0||F.boolean(i.options.recursive))&&(i.options.ignoreIfNotExists===void 0||F.boolean(i.options.ignoreIfNotExists)))&&(i.annotationId===void 0||el.is(i.annotationId))}e.is=r})(i2||(i2={}));var o2;(function(e){function t(r){let n=r;return n&&(n.changes!==void 0||n.documentChanges!==void 0)&&(n.documentChanges===void 0||n.documentChanges.every(i=>F.string(i.kind)?r2.is(i)||n2.is(i)||i2.is(i):t2.is(i)))}e.is=t})(o2||(o2={}));var y9;(function(e){function t(n){return{uri:n}}e.create=t;function r(n){let i=n;return F.defined(i)&&F.string(i.uri)}e.is=r})(y9||(y9={}));var b9;(function(e){function t(n,i){return{uri:n,version:i}}e.create=t;function r(n){let i=n;return F.defined(i)&&F.string(i.uri)&&F.integer(i.version)}e.is=r})(b9||(b9={}));var s2;(function(e){function t(n,i){return{uri:n,version:i}}e.create=t;function r(n){let i=n;return F.defined(i)&&F.string(i.uri)&&(i.version===null||F.integer(i.version))}e.is=r})(s2||(s2={}));var _9;(function(e){function t(n,i,o,s){return{uri:n,languageId:i,version:o,text:s}}e.create=t;function r(n){let i=n;return F.defined(i)&&F.string(i.uri)&&F.string(i.languageId)&&F.integer(i.version)&&F.string(i.text)}e.is=r})(_9||(_9={}));var Jc;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function t(r){let n=r;return n===e.PlainText||n===e.Markdown}e.is=t})(Jc||(Jc={}));var Xc;(function(e){function t(r){let n=r;return F.objectLiteral(r)&&Jc.is(n.kind)&&F.string(n.value)}e.is=t})(Xc||(Xc={}));var Ls;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Ls||(Ls={}));var tl;(function(e){e.PlainText=1,e.Snippet=2})(tl||(tl={}));var v9;(function(e){e.Deprecated=1})(v9||(v9={}));var S9;(function(e){function t(n,i,o){return{newText:n,insert:i,replace:o}}e.create=t;function r(n){let i=n;return i&&F.string(i.newText)&&Pt.is(i.insert)&&Pt.is(i.replace)}e.is=r})(S9||(S9={}));var rl;(function(e){e.asIs=1,e.adjustIndentation=2})(rl||(rl={}));var x9;(function(e){function t(r){let n=r;return n&&(F.string(n.detail)||n.detail===void 0)&&(F.string(n.description)||n.description===void 0)}e.is=t})(x9||(x9={}));var C9;(function(e){function t(r){return{label:r}}e.create=t})(C9||(C9={}));var T9;(function(e){function t(r,n){return{items:r||[],isIncomplete:!!n}}e.create=t})(T9||(T9={}));var Rh;(function(e){function t(n){return n.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=t;function r(n){let i=n;return F.string(i)||F.objectLiteral(i)&&F.string(i.language)&&F.string(i.value)}e.is=r})(Rh||(Rh={}));var E9;(function(e){function t(r){let n=r;return!!n&&F.objectLiteral(n)&&(Xc.is(n.contents)||Rh.is(n.contents)||F.typedArray(n.contents,Rh.is))&&(r.range===void 0||Pt.is(r.range))}e.is=t})(E9||(E9={}));var M9;(function(e){function t(r,n){return n?{label:r,documentation:n}:{label:r}}e.create=t})(M9||(M9={}));var P9;(function(e){function t(r,n,...i){let o={label:r};return F.defined(n)&&(o.documentation=n),F.defined(i)?o.parameters=i:o.parameters=[],o}e.create=t})(P9||(P9={}));var L9;(function(e){e.Text=1,e.Read=2,e.Write=3})(L9||(L9={}));var I9;(function(e){function t(r,n){let i={range:r};return F.number(n)&&(i.kind=n),i}e.create=t})(I9||(I9={}));var A9;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(A9||(A9={}));var k9;(function(e){e.Deprecated=1})(k9||(k9={}));var N9;(function(e){function t(r,n,i,o,s){let a={name:r,kind:n,location:{uri:o,range:i}};return s&&(a.containerName=s),a}e.create=t})(N9||(N9={}));var R9;(function(e){function t(r,n,i,o){return o!==void 0?{name:r,kind:n,location:{uri:i,range:o}}:{name:r,kind:n,location:{uri:i}}}e.create=t})(R9||(R9={}));var D9;(function(e){function t(n,i,o,s,a,u){let d={name:n,detail:i,kind:o,range:s,selectionRange:a};return u!==void 0&&(d.children=u),d}e.create=t;function r(n){let i=n;return i&&F.string(i.name)&&F.number(i.kind)&&Pt.is(i.range)&&Pt.is(i.selectionRange)&&(i.detail===void 0||F.string(i.detail))&&(i.deprecated===void 0||F.boolean(i.deprecated))&&(i.children===void 0||Array.isArray(i.children))&&(i.tags===void 0||Array.isArray(i.tags))}e.is=r})(D9||(D9={}));var O9;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(O9||(O9={}));var Dh;(function(e){e.Invoked=1,e.Automatic=2})(Dh||(Dh={}));var $9;(function(e){function t(n,i,o){let s={diagnostics:n};return i!=null&&(s.only=i),o!=null&&(s.triggerKind=o),s}e.create=t;function r(n){let i=n;return F.defined(i)&&F.typedArray(i.diagnostics,Nh.is)&&(i.only===void 0||F.typedArray(i.only,F.string))&&(i.triggerKind===void 0||i.triggerKind===Dh.Invoked||i.triggerKind===Dh.Automatic)}e.is=r})($9||($9={}));var F9;(function(e){function t(n,i,o){let s={title:n},a=!0;return typeof i=="string"?(a=!1,s.kind=i):Qa.is(i)?s.command=i:s.edit=i,a&&o!==void 0&&(s.kind=o),s}e.create=t;function r(n){let i=n;return i&&F.string(i.title)&&(i.diagnostics===void 0||F.typedArray(i.diagnostics,Nh.is))&&(i.kind===void 0||F.string(i.kind))&&(i.edit!==void 0||i.command!==void 0)&&(i.command===void 0||Qa.is(i.command))&&(i.isPreferred===void 0||F.boolean(i.isPreferred))&&(i.edit===void 0||o2.is(i.edit))}e.is=r})(F9||(F9={}));var V9;(function(e){function t(n,i){let o={range:n};return F.defined(i)&&(o.data=i),o}e.create=t;function r(n){let i=n;return F.defined(i)&&Pt.is(i.range)&&(F.undefined(i.command)||Qa.is(i.command))}e.is=r})(V9||(V9={}));var U9;(function(e){function t(n,i){return{tabSize:n,insertSpaces:i}}e.create=t;function r(n){let i=n;return F.defined(i)&&F.uinteger(i.tabSize)&&F.boolean(i.insertSpaces)}e.is=r})(U9||(U9={}));var W9;(function(e){function t(n,i,o){return{range:n,target:i,data:o}}e.create=t;function r(n){let i=n;return F.defined(i)&&Pt.is(i.range)&&(F.undefined(i.target)||F.string(i.target))}e.is=r})(W9||(W9={}));var z9;(function(e){function t(n,i){return{range:n,parent:i}}e.create=t;function r(n){let i=n;return F.objectLiteral(i)&&Pt.is(i.range)&&(i.parent===void 0||e.is(i.parent))}e.is=r})(z9||(z9={}));var G9;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(G9||(G9={}));var B9;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(B9||(B9={}));var q9;(function(e){function t(r){let n=r;return F.objectLiteral(n)&&(n.resultId===void 0||typeof n.resultId=="string")&&Array.isArray(n.data)&&(n.data.length===0||typeof n.data[0]=="number")}e.is=t})(q9||(q9={}));var j9;(function(e){function t(n,i){return{range:n,text:i}}e.create=t;function r(n){let i=n;return i!=null&&Pt.is(i.range)&&F.string(i.text)}e.is=r})(j9||(j9={}));var H9;(function(e){function t(n,i,o){return{range:n,variableName:i,caseSensitiveLookup:o}}e.create=t;function r(n){let i=n;return i!=null&&Pt.is(i.range)&&F.boolean(i.caseSensitiveLookup)&&(F.string(i.variableName)||i.variableName===void 0)}e.is=r})(H9||(H9={}));var Z9;(function(e){function t(n,i){return{range:n,expression:i}}e.create=t;function r(n){let i=n;return i!=null&&Pt.is(i.range)&&(F.string(i.expression)||i.expression===void 0)}e.is=r})(Z9||(Z9={}));var Y9;(function(e){function t(n,i){return{frameId:n,stoppedLocation:i}}e.create=t;function r(n){let i=n;return F.defined(i)&&Pt.is(n.stoppedLocation)}e.is=r})(Y9||(Y9={}));var a2;(function(e){e.Type=1,e.Parameter=2;function t(r){return r===1||r===2}e.is=t})(a2||(a2={}));var l2;(function(e){function t(n){return{value:n}}e.create=t;function r(n){let i=n;return F.objectLiteral(i)&&(i.tooltip===void 0||F.string(i.tooltip)||Xc.is(i.tooltip))&&(i.location===void 0||kh.is(i.location))&&(i.command===void 0||Qa.is(i.command))}e.is=r})(l2||(l2={}));var J9;(function(e){function t(n,i,o){let s={position:n,label:i};return o!==void 0&&(s.kind=o),s}e.create=t;function r(n){let i=n;return F.objectLiteral(i)&&kn.is(i.position)&&(F.string(i.label)||F.typedArray(i.label,l2.is))&&(i.kind===void 0||a2.is(i.kind))&&i.textEdits===void 0||F.typedArray(i.textEdits,Ka.is)&&(i.tooltip===void 0||F.string(i.tooltip)||Xc.is(i.tooltip))&&(i.paddingLeft===void 0||F.boolean(i.paddingLeft))&&(i.paddingRight===void 0||F.boolean(i.paddingRight))}e.is=r})(J9||(J9={}));var X9;(function(e){function t(r){return{kind:"snippet",value:r}}e.createSnippet=t})(X9||(X9={}));var Q9;(function(e){function t(r,n,i,o){return{insertText:r,filterText:n,range:i,command:o}}e.create=t})(Q9||(Q9={}));var K9;(function(e){function t(r){return{items:r}}e.create=t})(K9||(K9={}));var ex;(function(e){e.Invoked=0,e.Automatic=1})(ex||(ex={}));var tx;(function(e){function t(r,n){return{range:r,text:n}}e.create=t})(tx||(tx={}));var rx;(function(e){function t(r,n){return{triggerKind:r,selectedCompletionInfo:n}}e.create=t})(rx||(rx={}));var nx;(function(e){function t(r){let n=r;return F.objectLiteral(n)&&Xy.is(n.uri)&&F.string(n.name)}e.is=t})(nx||(nx={}));var ix;(function(e){function t(o,s,a,u){return new c2(o,s,a,u)}e.create=t;function r(o){let s=o;return!!(F.defined(s)&&F.string(s.uri)&&(F.undefined(s.languageId)||F.string(s.languageId))&&F.uinteger(s.lineCount)&&F.func(s.getText)&&F.func(s.positionAt)&&F.func(s.offsetAt))}e.is=r;function n(o,s){let a=o.getText(),u=i(s,(f,m)=>{let w=f.range.start.line-m.range.start.line;return w===0?f.range.start.character-m.range.start.character:w}),d=a.length;for(let f=u.length-1;f>=0;f--){let m=u[f],w=o.offsetAt(m.range.start),_=o.offsetAt(m.range.end);if(_<=d)a=a.substring(0,w)+m.newText+a.substring(_,a.length);else throw new Error("Overlapping edit");d=w}return a}e.applyEdits=n;function i(o,s){if(o.length<=1)return o;let a=o.length/2|0,u=o.slice(0,a),d=o.slice(a);i(u,s),i(d,s);let f=0,m=0,w=0;for(;f<u.length&&m<d.length;)s(u[f],d[m])<=0?o[w++]=u[f++]:o[w++]=d[m++];for(;f<u.length;)o[w++]=u[f++];for(;m<d.length;)o[w++]=d[m++];return o}})(ix||(ix={}));var c2=class{constructor(t,r,n,i){this._uri=t,this._languageId=r,this._version=n,this._content=i,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(t){if(t){let r=this.offsetAt(t.start),n=this.offsetAt(t.end);return this._content.substring(r,n)}return this._content}update(t,r){this._content=t.text,this._version=r,this._lineOffsets=void 0}getLineOffsets(){if(this._lineOffsets===void 0){let t=[],r=this._content,n=!0;for(let i=0;i<r.length;i++){n&&(t.push(i),n=!1);let o=r.charAt(i);n=o==="\r"||o===`
|
|
153
|
+
`,o==="\r"&&i+1<r.length&&r.charAt(i+1)===`
|
|
154
|
+
`&&i++}n&&r.length>0&&t.push(r.length),this._lineOffsets=t}return this._lineOffsets}positionAt(t){t=Math.max(Math.min(t,this._content.length),0);let r=this.getLineOffsets(),n=0,i=r.length;if(i===0)return kn.create(0,t);for(;n<i;){let s=Math.floor((n+i)/2);r[s]>t?i=s:n=s+1}let o=n-1;return kn.create(o,t-r[o])}offsetAt(t){let r=this.getLineOffsets();if(t.line>=r.length)return this._content.length;if(t.line<0)return 0;let n=r[t.line],i=t.line+1<r.length?r[t.line+1]:this._content.length;return Math.max(Math.min(n+t.character,i),n)}get lineCount(){return this.getLineOffsets().length}},F;(function(e){let t=Object.prototype.toString;function r(_){return typeof _<"u"}e.defined=r;function n(_){return typeof _>"u"}e.undefined=n;function i(_){return _===!0||_===!1}e.boolean=i;function o(_){return t.call(_)==="[object String]"}e.string=o;function s(_){return t.call(_)==="[object Number]"}e.number=s;function a(_,S,C){return t.call(_)==="[object Number]"&&S<=_&&_<=C}e.numberRange=a;function u(_){return t.call(_)==="[object Number]"&&-2147483648<=_&&_<=2147483647}e.integer=u;function d(_){return t.call(_)==="[object Number]"&&0<=_&&_<=2147483647}e.uinteger=d;function f(_){return t.call(_)==="[object Function]"}e.func=f;function m(_){return _!==null&&typeof _=="object"}e.objectLiteral=m;function w(_,S){return Array.isArray(_)&&_.every(S)}e.typedArray=w})(F||(F={}));function mR(e){return Array.isArray(e.testSdkCategories)}async function hR(e,t){try{let r=await e,n=new Map,i=new Map,o=[],s=gR(t);return r.forEach(a=>{let u=[];a.items.forEach(d=>wR(u,i,n,s,d)),u.length&&o.push({...a,items:u})}),{categories:o,functionDefinitions:n,constantDefinitions:i}}catch{return{categories:[],functionDefinitions:new Map,constantDefinitions:new Map}}}var sx=class{constructor(e){this._settings=e,this.sdkCategoriesCache=new Map}async getApiDatabase(e){let{locale:t="en"}=e,r=this.sdkCategoriesCache.get(t);if(!r){let{assetsPath:n}=this._settings;if(!n)return{categories:[],functionDefinitions:new Map,constantDefinitions:new Map};r=this.loadSdkApiLibrary(t,n),this.sdkCategoriesCache.set(t,r)}return await hR(r,e)}async getApiLibrary(e){let{categories:t}=await this.getApiDatabase(e);return t}async loadSdkApiLibrary(e="en",t=""){if(mR(this._settings))return this._settings.testSdkCategories;if(t=t.replace(/\/$/u,""),!t)return[];try{let r=this._settings.apiPathTemplate.replace("${assetsPath}",t).replace("${locale}",e),n=await fetch(r);return n.ok?await n.json():e==="en"?[]:await this.loadSdkApiLibrary("en",t)}catch{return[]}}};function gR(e){let{profile:{apiVersion:t,bundles:r,hiddenApiItems:n=[]}={}}=e,i=ax(t),o=Array.isArray(r)&&r.length>0?new Set(["core",...r]):void 0;return s=>bR(i,s.sinceVersion)&&(!o||o.has(s.bundle))&&!n.includes(s.name)}function wR(e,t,r,n,i){if(Array.isArray(i)){i.forEach(o=>ox(e,r,n,o));return}i.type==="constant"?yR(e,t,n,i):ox(e,r,n,i)}function ox(e,t,r,n){if(!r(n))return;n.disableDocumentation||e.push(n);let{completion:{label:i}}=n,o=i.toLowerCase(),s=t.get(o);s||(s={type:"functionDefinition",key:o,overloads:[]},t.set(o,s)),s.overloads.push(n)}function yR(e,t,r,n){if(!r(n))return;e.push(n);let{completion:{label:i}}=n,o=i.toLowerCase();t.set(o,n);let[s,a]=n.completion.label.split(".");if(!a)return;let u=s.toLowerCase(),d=t.get(u);d||(d={type:"namespace",key:u,members:[],completion:{label:s,detail:s,insertText:s,insertTextMode:rl.adjustIndentation,insertTextFormat:tl.PlainText,kind:Ls.Enum}},t.set(u,d));let f=structuredClone(n);f.name=a,f.completion.label=a,f.completion.insertText=a,f.completion.kind=Ls.Constant,d.members.push(f),d.completion.documentation=d.members.reduce((m,w)=>(m.value=`${m.value}${m.value?`
|
|
14
155
|
|
|
15
|
-
`:""}**${
|
|
156
|
+
`:""}**${w.completion.label}**: ${w.description}`,m),{kind:Jc.Markdown,value:""})}function ax(e){if(!e||typeof e!="string")return null;let t=e.split(".").map(i=>Number.parseInt(i));if(t.some(Number.isNaN))return console.error("Invalid API version string",e),null;let[r,n]=t.slice(0,2);return{major:r,minor:n}}function bR(e,t){if(!e)return!0;let r=ax(t);return r?e.major>r.major?!1:e.minor===void 0||r.minor===void 0?!0:r.minor<=e.minor:!0}var $i={"case-expression":["clauses","operand","else"],"when-clause":["operand","value"],"expression-list":["value"],"unary-expression":["expr"],"binary-expression":["left","right"],function:["args"],interval:["value","qualifier"],"interval-qualifier":["start","end"]},Qc={CAST:["DATE","FLOAT","INTEGER","REAL","SMALLINT","TIME","TIMESTAMP","VARCHAR"],EXTRACT:["YEAR","MONTH","DAY","HOUR","MINUTE","SECOND"],TRIM:["LEADING","TRAILING","BOTH"]},u2={Hint:1,Info:2,Warning:4,Error:8};var _R=(e,t)=>e===t?`${e}`:`${e}-${t}`;var vR={ExpectedDateTimeValue:`Expected ${Qc.EXTRACT.map(e=>`'${e}'`).join(" | ")}.`,ExpectedNumericalLiteral:"Expected a numerical literal.",ExpectedToken:"Expected token ${token}.",FunctionNotSupported:'Function "${function}" not supported.',IncompatibleListDataType:`Incompatible data types in expression list found. All data items should have the same type.
|
|
16
157
|
|
|
17
158
|
Types found: \${types}.`,IncorrectArgumentLength:"Expected ${formatMinMaxParams} arguments, but got ${numArgs}.",IncorrectCastParameters:`Expected usage:
|
|
18
|
-
- CAST(<VALUE> AS <${
|
|
19
|
-
- EXTRACT(<${
|
|
159
|
+
- CAST(<VALUE> AS <${Qc.CAST.join(" | ")}>)`,IncorrectExtractParameters:`Expected usage:
|
|
160
|
+
- EXTRACT(<${Qc.EXTRACT.join(" | ")}> FROM <Datetime>)`,IncorrectSubstringParameters:`Expected usage:
|
|
20
161
|
- SUBSTRING(<VALUE> FROM <START> FOR <LENGTH>)
|
|
21
162
|
- SUBSTRING(<VALUE>, <START>, <LENGTH>)`,IncorrectTrimParameters:`Expected usage:
|
|
22
|
-
- TRIM(<${
|
|
23
|
-
`,S.RightParentheses=")",S.SingleQuote="'",S.WhiteSpace=" ",S))(
|
|
24
|
-
`),
|
|
163
|
+
- TRIM(<${Qc.TRIM.join(" | ")}> ' ' FROM <STRING>)`,InvalidThenClause:"THEN clause can only follow after a WHEN clause.",InvalidElseClause:"ELSE clause cannot be used without a WHEN clause.",InvalidEndOnWhen:"Cannot end a CASE expression with a WHEN clause. Requires a following THEN clause.",InvalidTrimCharacter:"Trim character must be the space character ' '.",MismatchedTypes:'Invalid type mismatch between ${leftValue} (type: "${providedType}") and ${rightValue} (type: "${expectedType}").',MissingValueInCaseClause:"Missing value after ${clause} clause in CASE expression.",NotCallable:"${expression} is not callable.",TypeNotAssignable:"Type ${providedType} is not assignable to type ${expectedType}.","UnexpectedEnd.":"Unexpected end of SQL expression.",UnexpectedIdentifier:"Unexpected identifier.",UnexpectedNumber:"Unexpected number.",UnexpectedTextLiteral:"Unexpected text literal.",UnexpectedToken:"Unexpected token ${token}.",UnknownField:'No fields with name "${field}" exists.',UnsupportedOperator:"Unsupported SQL operator ${operator}.",UnsupportedSyntax:"Unsupported SQL syntax ${syntax}.",InvalidIntervalQualifier:"Invalid interval qualifier. Expected 'YEAR', 'MONTH', 'DAY', 'HOUR', 'MINUTE', 'SECOND'.",EmptyCaseExpression:"The CASE expression cannot be empty. Please provide valid conditions and results within the CASE block."},Br=(e,t)=>{let r=vR[e];return t&&"minParams"in t&&"maxParams"in t&&(t.formatMinMaxParams=_R(t.minParams,t.maxParams)),t?r.replace(/\${(.*?)}/g,(n,i)=>t[i]?.toString()??""):r};var d2=(S=>(S.Case="CASE",S.CaseElse="ELSE",S.CaseThen="THEN",S.CaseWhen="WHEN",S.Comma=",",S.DoubleQuote='"',S.Empty="",S.End="END",S.Interval="INTERVAL",S.LeftParentheses="(",S.NewLine=`
|
|
164
|
+
`,S.RightParentheses=")",S.SingleQuote="'",S.WhiteSpace=" ",S))(d2||{});var lx=/\d+/;var f2=["string","number","integer","number","smallint","float","real","date","time","timestamp","current-time","column-reference"];var xR=e=>{switch(e.operator){case"AND":case"OR":case"IS":case"ISNOT":case"IN":case"NOT IN":case"BETWEEN":case"NOTBETWEEN":case"LIKE":case"NOT LIKE":case"<>":case"<":case">":case">=":case"<=":case"=":return"boolean";case"*":case"-":case"+":case"/":return"number";case"||":return"string"}},CR=e=>{switch(e.type){case"number":return"number";case"text":return"string";case"dateOnly":case"date":return"date";case"time":return"time";case"boolean":return"boolean";case"dictionary":case"array":case"geometry":case"feature":case"featureSet":case"featureSetCollection":case"knowledgeGraph":return console.error(`sql-expr validator experienced an unexpected variable type: ${e.type}`),"null"}},Kc=(e,t)=>{switch(e.type){case"interval":case"interval-period":case"interval-qualifier":case"when-clause":case"case-expression":case"parameter":case"expression-list":return e.type;case"unary-expression":return"boolean";case"binary-expression":return xR(e);case"null":case"boolean":case"string":case"timestamp":case"date":case"time":case"number":case"current-time":case"data-type":return e.type;case"column-reference":{let r=t.find(n=>n.name===e.column);if(r)return CR(r)}return e.type;case"function":switch(e.name.toLowerCase()){case"cast":{if(e.args?.value?.[1]?.type!=="data-type")throw Error("Invalid cast function");switch(e.args?.value?.[1]?.value?.type){case"integer":case"smallint":return"integer";case"real":case"float":return"float";case"date":case"timestamp":return"timestamp";case"time":return"time-only";case"varchar":return"string"}}case"position":case"extract":case"char_length":case"mod":return"integer";case"round":return"float";case"sign":return"integer";case"ceiling":case"floor":case"abs":return"float";case"area":case"length":case"log":case"log10":case"sin":case"cos":case"tan":case"asin":case"acos":case"atan":case"cosh":case"sinh":case"tanh":case"power":case"truncate":return"float";case"substring":case"trim":case"concat":case"lower":case"upper":return"string";case"current_date":case"current_time":case"current_timestamp":return"date";default:return"unknown_function"}}},eu=e=>{switch(e.toLowerCase()){case"integer":case"double":case"number":case"smallint":case"float":case"real":return!0;default:return!1}},p2=(e,t)=>{let r=t===","?", ":" | ";return e.map(n=>`"${n.toLowerCase()}"`).sort().join(r)},gn=e=>`"${e}"`,m2=e=>{switch(e.type){case"interval-qualifier":case"interval":return"INTERVAL";case"when-clause":return"WHEN_CLAUSE";case"case-expression":return"CASE_EXPRESSION";case"unary-expression":return"UNARY_EXPRESSION";case"expression-list":return"EXPRESSION_LIST";case"binary-expression":return"BINARY_EXPRESSION";case"current-time":return gn(e.mode);case"interval-period":return gn(e.period);case"null":return gn("null");case"column-reference":return gn(e.column);case"number":return e.value;case"function":return gn(`${e.name}()`);case"data-type":return gn(e.type);case"boolean":case"date":case"parameter":case"time":case"timestamp":case"string":return gn(String(e.value))}},kr=(e,t,r,n)=>{if(n){let i=t,o={startColumn:i.start.column,endColumn:i.end.column,startLineNumber:i.start.line,endLineNumber:i.end.line};r.some(a=>a.message===e&&a.startColumn===o.startColumn&&a.startLineNumber===o.startLineNumber&&a.endColumn===o.endColumn&&a.endLineNumber===o.endLineNumber)||r.push({message:e,severity:u2.Error,...o})}else{let i=t;r.some(s=>s.message===e&&s.startColumn===i.startColumn&&s.startLineNumber===i.startLineNumber&&s.endColumn===i.endColumn&&s.endLineNumber===i.endLineNumber)||r.push({message:e,severity:u2.Error,...i})}},si=(e,t,r,n)=>{let i=Kc(e,n),o=i.toUpperCase()===t;if(t==="NUMBER"&&(o=eu(i)),!o){let s=Br("TypeNotAssignable",{providedType:gn(i),expectedType:gn(t.toLowerCase())});kr(s,e.location,r,!0)}};function cx(e){return/^Expected "\S+"/.test(e.message)}function ux(e){let t=e.message.match(/but "(.*)" found/)?.[1];if(t){let i=e.message.match(/Expected (.*) but/)?.[1]?.split(", ").map((s,a,u)=>(a===u.length-1&&s.startsWith("or ")&&(s=s.slice(3)),s=s.replace(/^"|"$/g,""),s==="[ \\t\\n\\r]"?"\u2022 WHITESPACE":`\u2022 ${s}`)).join(`
|
|
165
|
+
`),o=`Invalid syntax: unexpected token "${t}".`;return i&&(o+=`
|
|
25
166
|
|
|
26
167
|
Expected one of the following:
|
|
27
|
-
${
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
`,"\r"],!1,!1),Fs=U("`",!1),Vs=Ue(["`"],!0,!1),kf=function(i){return i},Wf=function(i,c){var d={type:"expression-list"},w=Rm(i,c,d);return d.value=w,d.range=B(),d},Bf=function(i,c){return nr(i,c)},Of=function(i,c){return nr(i,c)},Uf=function(i){return _m("NOT",i)},Gf=function(i,c){if(c==""||c==null||c==null)return i;var d=null;return c.type=="arithmetic"?d=nr(i,c.tail):d=yo(c.op,i,c.right,c.escape),d},qf=function(i){return{type:"arithmetic",tail:i}},Hf=function(i,c){return{op:i+"NOT",right:c}},zf=function(i,c){return{op:i,right:c}},jf=function(i,c,d){return{op:"NOT"+i,right:{type:"expression-list",value:[c,d],range:B()}}},Qf=function(i,c,d){return{op:i,right:{type:"expression-list",value:[c,d],range:B()}}},Kf=function(i){return i[0]+" "+i[2]},Xf=function(i){return i[0]+" "+i[2]},Zf=function(i,c,d){return{op:i,right:c,escape:d.value}},Yf=function(i,c){return{op:i,right:c,escape:""}},Jf=function(i,c){return{op:i,right:c}},ed=function(i){return{op:i,right:{type:"expression-list",value:[],range:B()}}},td=function(i,c){return{op:i,right:c}},rd=function(i,c){return nr(i,c)},nd=function(i,c){return nr(i,c)},id=function(i){return i.paren=!0,i},sd=function(i){return/^CURRENT_DATE$/i.test(i)?{type:"current-time",mode:"date",range:B()}:/^CURRENT_TIMESTAMP$/i.test(i)?{type:"current-time",mode:"timestamp",range:B()}:{type:"column-reference",table:"",column:i,range:B()}},od=function(i){return{type:"column-reference",table:"",column:i,delimited:!0,range:B()}},ad=function(i){return i},ud=function(i,c){return i+c.join("")},cd=function(i,c){return i+c.join("")},ld=function(i){return i},fd=function(i){return i.join("")},dd=function(){return'"'},pd=function(i){var c={type:"parameter",value:i[1],range:B()};return c},md=function(i,c){return{type:"function",name:"extract",args:{type:"expression-list",value:[{type:"string",value:i,range:B()},c],range:B()},range:B()}},wd=function(i,c,d){return{type:"function",name:"substring",args:{type:"expression-list",value:d?[i,c,d[2]]:[i,c],range:B()},range:B()}},gd=function(i,c){return{type:"function",name:"cast",args:{type:"expression-list",value:[i,c],range:B()},range:B()}},hd=function(){return{type:"data-type",value:{type:"integer"},range:B()}},yd=function(){return{type:"data-type",value:{type:"smallint"},range:B()}},bd=function(){return{type:"data-type",value:{type:"float"},range:B()}},Sd=function(){return{type:"data-type",value:{type:"real"},range:B()}},xd=function(){return{type:"data-type",value:{type:"date"},range:B()}},vd=function(){return{type:"data-type",value:{type:"timestamp"},range:B()}},Cd=function(){return{type:"data-type",value:{type:"time"},range:B()}},Ld=function(i){return{type:"data-type",value:{type:"varchar",size:parseInt(i)},range:B()}},_d=function(i,c,d){var w={type:"string",value:i??"BOTH",range:B()};return{type:"function",name:"trim",args:{type:"expression-list",value:[w,c,d],range:B()},range:B()}},Md=function(i,c){var d={type:"string",value:i??"BOTH",range:B()};return{type:"function",name:"trim",args:{type:"expression-list",value:[d,c],range:B()},range:B()}},Rd=function(i,c){return{type:"function",name:"position",args:{type:"expression-list",value:[i,c],range:B()},range:B()}},Ed=function(i,c){return{type:"function",name:i,args:c||{type:"expression-list",value:[],range:B()},range:B()}},$d=function(i){return i.type==="string"&&Em(i.value),{type:"timestamp",value:i.value,range:B()}},Ad=function(i){return i.type==="string"&&$m(i.value),{type:"time",value:i.value,range:B()}},Id=function(i,c,d){return{type:"interval",value:c,qualifier:d,op:i,range:B()}},Nd=function(i,c){return{type:"interval",value:i,qualifier:c,op:"",range:B()}},Pd=function(i,c){return{type:"interval-qualifier",start:i,end:c,range:B()}},Fd=function(i,c){return{type:"interval-period",period:i.value,precision:c,secondary:null,range:B()}},Vd=function(i){return{type:"interval-period",period:i.value,precision:null,secondary:null,range:B()}},Td=function(i){return{type:"interval-period",period:i.value,precision:null,secondary:null,range:B()}},Dd=function(i,c){return{type:"interval-period",period:"second",precision:i,secondary:c,range:B()}},kd=function(i){return{type:"interval-period",period:"second",precision:i,secondary:null,range:B()}},Wd=function(){return{type:"interval-period",period:"second",precision:null,secondary:null,range:B()}},Bd=function(i,c){return{type:"interval-period",period:i.value,precision:c,secondary:null,range:B()}},Od=function(i){return{type:"interval-period",period:i.value,precision:null,secondary:null,range:B()}},Ud=function(i,c){return{type:"interval-period",period:"second",precision:i,secondary:c,range:B()}},Gd=function(i){return{type:"interval-period",period:"second",precision:i,secondary:null,range:B()}},qd=function(){return{type:"interval-period",period:"second",precision:null,secondary:null,range:B()}},Hd=function(){return{type:"string",value:"second",range:B()}},zd=function(){return{type:"string",value:"day",range:B()}},jd=function(){return{type:"string",value:"hour",range:B()}},Qd=function(){return{type:"string",value:"minute",range:B()}},Kd=function(){return{type:"string",value:"month",range:B()}},Xd=function(){return{type:"string",value:"year",range:B()}},Zd=function(i){return parseFloat(i)},Yd=function(i){return parseFloat(i)},Jd=function(i){return i.type==="string"&&Am(i.value),{type:"date",value:i.value,range:B()}},e1=function(){return{type:"null",value:null,range:B()}},t1=function(){return{type:"boolean",value:!0,range:B()}},r1=function(){return{type:"boolean",value:!1,range:B()}},Ts=function(){return"'"},n1=function(i){return{type:"string",value:i.join(""),range:B()}},i1=function(i,c){return{type:"case-expression",format:"simple",operand:i,clauses:c,else:null,range:B()}},s1=function(i,c,d){return{type:"case-expression",format:"simple",operand:i,clauses:c,else:d.value,range:B(),elseRange:d.range}},o1=function(i){return{type:"case-expression",format:"searched",clauses:i,else:null,range:B()}},a1=function(i,c){return{type:"case-expression",format:"searched",clauses:i,else:c.value,range:B(),elseRange:c.range}},u1=function(i,c){return{type:"when-clause",operand:i,value:c,range:B()}},c1=function(i,c){er("Expected 'THEN', but found '"+Ds()+"'")},l1=function(i,c){return{type:"when-clause",operand:i,value:c,range:B()}},f1=function(i,c){er("Expected 'THEN', but found '"+Ds()+"'")},d1=function(i){return{type:"else-clause",value:i,range:B()}},p1=function(i){return{type:"number",value:i,range:B()}},m1=function(i,c,d){return parseFloat(i+c+d)},w1=function(i,c){return parseFloat(i+c)},g1=function(i,c){return parseFloat(i+c)},h1=function(i){return parseFloat(i)},y1=function(i,c){return i[0]+c},b1=function(i){return"."+(i??"")},S1=function(i,c){return i+c},x1=function(i){return i.join("")},v1=function(i,c){return"e"+(c===null?"":c)},C1=function(){return"IN"},L1=function(){return"IS"},_1=function(){return"LIKE"},M1=function(){return"ESCAPE"},R1=function(){return"NOT"},E1=function(){return"AND"},$1=function(){return"OR"},A1=function(){return"BETWEEN"},I1=function(){return"FROM"},N1=function(){return"FOR"},P1=function(){return"SUBSTRING"},F1=function(){return"EXTRACT"},V1=function(){return"TRIM"},T1=function(){return"POSITION"},D1=function(){return"TIMESTAMP"},k1=function(){return"DATE"},W1=function(){return"TIME"},B1=function(){return"LEADING"},O1=function(){return"TRAILING"},U1=function(){return"BOTH"},G1=function(){return"CAST"},q1=function(){return"AS"},H1=function(){return"INTEGER"},z1=function(){return"SMALLINT"},j1=function(){return"FLOAT"},Q1=function(){return"REAL"},K1=function(){return"VARCHAR"},X1=function(){return"TO"},Z1=function(){return"INTERVAL"},Y1=function(){return"YEAR"},J1=function(){return"ZONE"},ep=function(){return"WITH"},tp=function(){return"TIMEZONE_HOUR"},rp=function(){return"TIMEZONE_MINUTE"},np=function(){return"MONTH"},ip=function(){return"DAY"},sp=function(){return"HOUR"},op=function(){return"MINUTE"},ap=function(){return"SECOND"},up=function(){return"CASE"},cp=function(){return"END"},lp=function(){return"WHEN"},fp=function(){return"THEN"},dp=function(){return"ELSE"},pp=function(i){return i},mp=function(i){return i.join("")},u=0,_=0,Ir=[{line:1,column:1}],Oe=0,Hn=[],v=0,Nr;if("startRule"in a){if(!(a.startRule in p))throw new Error(`Can't start parsing from rule "`+a.startRule+'".');m=p[a.startRule]}function Ds(){return s.substring(_,u)}function Sg(){return _}function xg(){return{source:l,start:_,end:u}}function B(){return tr(_,u)}function vg(i,c){throw c=c!==void 0?c:tr(_,u),Ws([gp(i)],s.substring(_,u),c)}function er(i,c){throw c=c!==void 0?c:tr(_,u),hp(i,c)}function U(i,c){return{type:"literal",text:i,ignoreCase:c}}function Ue(i,c,d){return{type:"class",parts:i,inverted:c,ignoreCase:d}}function Cg(){return{type:"any"}}function wp(){return{type:"end"}}function gp(i){return{type:"other",description:i}}function ks(i){var c=Ir[i],d;if(c)return c;for(d=i-1;!Ir[d];)d--;for(c=Ir[d],c={line:c.line,column:c.column};d<i;)s.charCodeAt(d)===10?(c.line++,c.column=1):c.column++,d++;return Ir[i]=c,c}function tr(i,c,d){var w=ks(i),R=ks(c),C={source:l,start:{offset:i,line:w.line,column:w.column},end:{offset:c,line:R.line,column:R.column}};return d&&l&&typeof l.offset=="function"&&(C.start=l.offset(C.start),C.end=l.offset(C.end)),C}function N(i){u<Oe||(u>Oe&&(Oe=u,Hn=[]),Hn.push(i))}function hp(i,c){return new t(i,null,null,c)}function Ws(i,c,d){return new t(t.buildMessage(i,c),i,c,d)}function Bs(){var i,c,d,w;return i=u,c=M(),d=ce(),d!==n?(w=M(),_=i,i=kf(d)):(u=i,i=n),i}function Os(){var i,c,d,w,R,C,D,A;if(i=u,c=ce(),c!==n){for(d=[],w=u,R=M(),C=qr(),C!==n?(D=M(),A=ce(),A!==n?(R=[R,C,D,A],w=R):(u=w,w=n)):(u=w,w=n);w!==n;)d.push(w),w=u,R=M(),C=qr(),C!==n?(D=M(),A=ce(),A!==n?(R=[R,C,D,A],w=R):(u=w,w=n)):(u=w,w=n);_=i,i=Wf(c,d)}else u=i,i=n;return i}function ce(){var i,c,d,w,R,C,D,A;if(i=u,c=zn(),c!==n){for(d=[],w=u,R=M(),C=no(),C!==n?(D=M(),A=zn(),A!==n?(R=[R,C,D,A],w=R):(u=w,w=n)):(u=w,w=n);w!==n;)d.push(w),w=u,R=M(),C=no(),C!==n?(D=M(),A=zn(),A!==n?(R=[R,C,D,A],w=R):(u=w,w=n)):(u=w,w=n);_=i,i=Bf(c,d)}else u=i,i=n;return i}function zn(){var i,c,d,w,R,C,D,A;if(i=u,c=Pr(),c!==n){for(d=[],w=u,R=M(),C=Br(),C!==n?(D=M(),A=Pr(),A!==n?(R=[R,C,D,A],w=R):(u=w,w=n)):(u=w,w=n);w!==n;)d.push(w),w=u,R=M(),C=Br(),C!==n?(D=M(),A=Pr(),A!==n?(R=[R,C,D,A],w=R):(u=w,w=n)):(u=w,w=n);_=i,i=Of(c,d)}else u=i,i=n;return i}function Pr(){var i,c,d,w,R;return i=u,c=rr(),c===n&&(c=u,s.charCodeAt(u)===33?(d=h,u++):(d=n,v===0&&N(xl)),d!==n?(w=u,v++,s.charCodeAt(u)===61?(R=g,u++):(R=n,v===0&&N($s)),v--,R===n?w=void 0:(u=w,w=n),w!==n?(d=[d,w],c=d):(u=c,c=n)):(u=c,c=n)),c!==n?(d=M(),w=Pr(),w!==n?(_=i,i=Uf(w)):(u=i,i=n)):(u=i,i=n),i===n&&(i=yp()),i}function yp(){var i,c,d,w;return i=u,c=Xe(),c!==n?(d=M(),w=bp(),w===n&&(w=null),_=i,i=Gf(c,w)):(u=i,i=n),i}function bp(){var i;return i=Sp(),i===n&&(i=Lp(),i===n&&(i=vp(),i===n&&(i=xp(),i===n&&(i=Cp())))),i}function Sp(){var i,c,d,w,R,C,D;if(i=u,c=[],d=u,w=M(),R=Us(),R!==n?(C=M(),D=Xe(),D!==n?(w=[w,R,C,D],d=w):(u=d,d=n)):(u=d,d=n),d!==n)for(;d!==n;)c.push(d),d=u,w=M(),R=Us(),R!==n?(C=M(),D=Xe(),D!==n?(w=[w,R,C,D],d=w):(u=d,d=n)):(u=d,d=n);else c=n;return c!==n&&(_=i,c=qf(c)),i=c,i}function Us(){var i;return s.substr(u,2)===y?(i=y,u+=2):(i=n,v===0&&N(vl)),i===n&&(s.charCodeAt(u)===62?(i=b,u++):(i=n,v===0&&N(Cl)),i===n&&(s.substr(u,2)===S?(i=S,u+=2):(i=n,v===0&&N(Ll)),i===n&&(s.substr(u,2)===x?(i=x,u+=2):(i=n,v===0&&N(_l)),i===n&&(s.charCodeAt(u)===60?(i=I,u++):(i=n,v===0&&N(Ml)),i===n&&(s.charCodeAt(u)===61?(i=g,u++):(i=n,v===0&&N($s)),i===n&&(s.substr(u,2)===V?(i=V,u+=2):(i=n,v===0&&N(Rl)))))))),i}function xp(){var i,c,d,w,R,C;return i=u,c=to(),c!==n?(d=M(),w=rr(),w!==n?(R=M(),C=Xe(),C!==n?(_=i,i=Hf(c,C)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n),i===n&&(i=u,c=to(),c!==n?(d=M(),w=Xe(),w!==n?(_=i,i=zf(c,w)):(u=i,i=n)):(u=i,i=n)),i}function vp(){var i,c,d,w,R,C,D,A,be,J;return i=u,c=rr(),c!==n?(d=M(),w=io(),w!==n?(R=M(),C=Xe(),C!==n?(D=M(),A=Br(),A!==n?(be=M(),J=Xe(),J!==n?(_=i,i=jf(w,C,J)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n),i===n&&(i=u,c=io(),c!==n?(d=M(),w=Xe(),w!==n?(R=M(),C=Br(),C!==n?(D=M(),A=Xe(),A!==n?(_=i,i=Qf(c,w,A)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)),i}function Gs(){var i,c,d,w,R;return i=u,c=u,d=rr(),d!==n?(w=M(),R=ro(),R!==n?(d=[d,w,R],c=d):(u=c,c=n)):(u=c,c=n),c!==n&&(_=i,c=Kf(c)),i=c,i===n&&(i=ro()),i}function jn(){var i,c,d,w,R;return i=u,c=u,d=rr(),d!==n?(w=M(),R=Jn(),R!==n?(d=[d,w,R],c=d):(u=c,c=n)):(u=c,c=n),c!==n&&(_=i,c=Xf(c)),i=c,i===n&&(i=Jn()),i}function Cp(){var i,c,d,w,R,C,D,A;return i=u,c=Gs(),c!==n?(d=M(),w=ht(),w!==n?(R=M(),C=sm(),C!==n?(D=M(),A=Yn(),A!==n?(_=i,i=Zf(c,w,A)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n),i===n&&(i=u,c=Gs(),c!==n?(d=M(),w=ht(),w!==n?(_=i,i=Yf(c,w)):(u=i,i=n)):(u=i,i=n)),i}function Lp(){var i,c,d,w,R,C,D,A;return i=u,c=jn(),c!==n?(d=M(),w=xe(),w!==n?(R=M(),C=Os(),C!==n?(D=M(),A=ve(),A!==n?(_=i,i=Jf(c,C)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n),i===n&&(i=u,c=jn(),c!==n?(d=M(),w=xe(),w!==n?(R=M(),C=ve(),C!==n?(_=i,i=ed(c)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n),i===n&&(i=u,c=jn(),c!==n?(d=M(),w=Zn(),w!==n?(_=i,i=td(c,w)):(u=i,i=n)):(u=i,i=n))),i}function Xe(){var i,c,d,w,R,C,D,A;if(i=u,c=Qn(),c!==n){for(d=[],w=u,R=M(),C=qs(),C!==n?(D=M(),A=Qn(),A!==n?(R=[R,C,D,A],w=R):(u=w,w=n)):(u=w,w=n);w!==n;)d.push(w),w=u,R=M(),C=qs(),C!==n?(D=M(),A=Qn(),A!==n?(R=[R,C,D,A],w=R):(u=w,w=n)):(u=w,w=n);_=i,i=rd(c,d)}else u=i,i=n;return i}function qs(){var i;return s.charCodeAt(u)===43?(i=E,u++):(i=n,v===0&&N(Gn)),i===n&&(s.charCodeAt(u)===45?(i=$,u++):(i=n,v===0&&N(qn)),i===n&&(s.substr(u,2)===P?(i=P,u+=2):(i=n,v===0&&N(El)))),i}function Qn(){var i,c,d,w,R,C,D,A;if(i=u,c=Kn(),c!==n){for(d=[],w=u,R=M(),C=Hs(),C!==n?(D=M(),A=Kn(),A!==n?(R=[R,C,D,A],w=R):(u=w,w=n)):(u=w,w=n);w!==n;)d.push(w),w=u,R=M(),C=Hs(),C!==n?(D=M(),A=Kn(),A!==n?(R=[R,C,D,A],w=R):(u=w,w=n)):(u=w,w=n);_=i,i=nd(c,d)}else u=i,i=n;return i}function Hs(){var i;return s.charCodeAt(u)===42?(i=T,u++):(i=n,v===0&&N($l)),i===n&&(s.charCodeAt(u)===47?(i=G,u++):(i=n,v===0&&N(Al))),i}function Kn(){var i,c,d,w,R,C;return i=Bp(),i===n&&(i=Np(),i===n&&(i=Pp(),i===n&&(i=Tp(),i===n&&(i=Dp(),i===n&&(i=Fp(),i===n&&(i=kp(),i===n&&(i=Xp(),i===n&&(i=_p(),i===n&&(i=Zn(),i===n&&(i=u,c=xe(),c!==n?(d=M(),w=ce(),w!==n?(R=M(),C=ve(),C!==n?(_=i,i=id(w)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n))))))))))),i}function _p(){var i,c;return i=u,c=Mp(),c!==n&&(_=i,c=sd(c)),i=c,i===n&&(i=u,c=Ep(),c!==n&&(_=i,c=od(c)),i=c),i}function Mp(){var i,c;return i=u,c=Rp(),c!==n&&(_=i,c=ad(c)),i=c,i}function Rp(){var i,c,d,w;if(i=u,c=Xn(),c!==n){for(d=[],w=js();w!==n;)d.push(w),w=js();_=i,i=ud(c,d)}else u=i,i=n;return i}function zs(){var i,c,d,w;if(i=u,c=Xn(),c!==n){for(d=[],w=Q();w!==n;)d.push(w),w=Q();_=i,i=cd(c,d)}else u=i,i=n;return i}function Xn(){var i;return ml.test(s.charAt(u))?(i=s.charAt(u),u++):(i=n,v===0&&N(Il)),i}function Q(){var i;return wl.test(s.charAt(u))?(i=s.charAt(u),u++):(i=n,v===0&&N(Nl)),i}function js(){var i;return Ms.test(s.charAt(u))?(i=s.charAt(u),u++):(i=n,v===0&&N(As)),i}function Ep(){var i,c,d,w;return i=u,c=Fr(),c!==n?(d=$p(),w=Fr(),w!==n?(_=i,i=ld(d)):(u=i,i=n)):(u=i,i=n),i}function $p(){var i,c,d;for(i=u,c=[],d=Qs();d!==n;)c.push(d),d=Qs();return _=i,c=fd(c),i=c,i}function Qs(){var i;return i=Ip(),i===n&&(i=Ap()),i}function Ap(){var i,c,d;return i=u,c=Fr(),c!==n?(d=Fr(),d!==n?(_=i,i=dd()):(u=i,i=n)):(u=i,i=n),i}function Ip(){var i;return Ms.test(s.charAt(u))?(i=s.charAt(u),u++):(i=n,v===0&&N(As)),i}function Fr(){var i;return gl.test(s.charAt(u))?(i=s.charAt(u),u++):(i=n,v===0&&N(Pl)),i}function Zn(){var i,c,d,w;return i=u,c=u,s.charCodeAt(u)===64?(d=q,u++):(d=n,v===0&&N(Fl)),d!==n?(w=zs(),w!==n?(d=[d,w],c=d):(u=c,c=n)):(u=c,c=n),c!==n&&(_=i,c=pd(c)),i=c,i}function Np(){var i,c,d,w,R,C,D,A,be,J,Ae,oe;return i=u,c=um(),c!==n?(d=M(),w=xe(),w!==n?(R=M(),C=Wp(),C!==n?(D=M(),A=ei(),A!==n?(be=M(),J=ce(),J!==n?(Ae=M(),oe=ve(),oe!==n?(_=i,i=md(C,J)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n),i}function Pp(){var i,c,d,w,R,C,D,A,be,J,Ae,oe,Ze,ir,ti,bo;return i=u,c=am(),c!==n?(d=M(),w=xe(),w!==n?(R=M(),C=ce(),C!==n?(D=M(),A=ei(),A!==n?(be=M(),J=ce(),J!==n?(Ae=M(),oe=u,Ze=om(),Ze!==n?(ir=M(),ti=ce(),ti!==n?(bo=M(),Ze=[Ze,ir,ti,bo],oe=Ze):(u=oe,oe=n)):(u=oe,oe=n),oe===n&&(oe=null),Ze=ve(),Ze!==n?(_=i,i=wd(C,J,oe)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n),i}function Fp(){var i,c,d,w,R,C,D,A,be,J,Ae,oe;return i=u,c=pm(),c!==n?(d=M(),w=xe(),w!==n?(R=M(),C=ce(),C!==n?(D=M(),A=mm(),A!==n?(be=M(),J=Vp(),J!==n?(Ae=M(),oe=ve(),oe!==n?(_=i,i=gd(C,J)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n),i}function Vp(){var i,c,d,w,R,C,D,A;return i=u,c=wm(),c!==n&&(_=i,c=hd()),i=c,i===n&&(i=u,c=gm(),c!==n&&(_=i,c=yd()),i=c,i===n&&(i=u,c=hm(),c!==n&&(_=i,c=bd()),i=c,i===n&&(i=u,c=ym(),c!==n&&(_=i,c=Sd()),i=c,i===n&&(i=u,c=ao(),c!==n&&(_=i,c=xd()),i=c,i===n&&(i=u,c=oo(),c!==n&&(_=i,c=vd()),i=c,i===n&&(i=u,c=uo(),c!==n&&(_=i,c=Cd()),i=c,i===n&&(i=u,c=bm(),c!==n?(d=M(),w=xe(),w!==n?(R=M(),C=yt(),C!==n?(D=M(),A=ve(),A!==n?(_=i,i=Ld(C)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)))))))),i}function Tp(){var i,c,d,w,R,C,D,A,be,J,Ae,oe,Ze,ir;return i=u,c=so(),c!==n?(d=M(),w=xe(),w!==n?(R=M(),C=Ks(),C===n&&(C=null),D=M(),A=ce(),A!==n?(be=M(),J=ei(),J!==n?(Ae=M(),oe=ce(),oe!==n?(Ze=M(),ir=ve(),ir!==n?(_=i,i=_d(C,A,oe)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n),i===n&&(i=u,c=so(),c!==n?(d=M(),w=xe(),w!==n?(R=M(),C=Ks(),C===n&&(C=null),D=M(),A=ce(),A!==n?(be=M(),J=ve(),J!==n?(_=i,i=Md(C,A)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)),i}function Ks(){var i;return i=lm(),i===n&&(i=fm(),i===n&&(i=dm())),i}function Dp(){var i,c,d,w,R,C,D,A,be,J,Ae,oe;return i=u,c=cm(),c!==n?(d=M(),w=xe(),w!==n?(R=M(),C=ce(),C!==n?(D=M(),A=Jn(),A!==n?(be=M(),J=ce(),J!==n?(Ae=M(),oe=ve(),oe!==n?(_=i,i=Rd(C,J)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n),i}function kp(){var i,c,d,w,R,C,D,A;return i=u,c=Lm(),c!==n?(d=M(),w=xe(),w!==n?(R=M(),C=Os(),C===n&&(C=null),D=M(),A=ve(),A!==n?(_=i,i=Ed(c,C)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n),i}function Wp(){var i;return i=lo(),i===n&&(i=fo(),i===n&&(i=po(),i===n&&(i=mo(),i===n&&(i=wo(),i===n&&(i=rt(),i===n&&(i=xm(),i===n&&(i=vm()))))))),i}function Bp(){var i;return i=Yn(),i===n&&(i=Jp(),i===n&&(i=Kp(),i===n&&(i=Qp(),i===n&&(i=jp(),i===n&&(i=Op(),i===n&&(i=Gp(),i===n&&(i=Up()))))))),i}function Op(){var i,c,d,w;return i=u,c=oo(),c!==n?(d=M(),w=ht(),w!==n?(_=i,i=$d(w)):(u=i,i=n)):(u=i,i=n),i}function Up(){var i,c,d,w;return i=u,c=uo(),c!==n?(d=M(),w=ht(),w!==n?(_=i,i=Ad(w)):(u=i,i=n)):(u=i,i=n),i}function Gp(){var i,c,d,w,R,C,D,A;return i=u,c=co(),c!==n?(d=M(),s.charCodeAt(u)===45?(w=$,u++):(w=n,v===0&&N(qn)),w===n&&(s.charCodeAt(u)===43?(w=E,u++):(w=n,v===0&&N(Gn))),w!==n?(R=M(),C=ht(),C!==n?(D=M(),A=Xs(),A!==n?(_=i,i=Id(w,C,A)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n),i===n&&(i=u,c=co(),c!==n?(d=M(),w=ht(),w!==n?(R=M(),C=Xs(),C!==n?(_=i,i=Nd(w,C)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)),i}function Xs(){var i,c,d,w,R,C;return i=u,c=qp(),c!==n?(d=M(),w=Sm(),w!==n?(R=M(),C=Hp(),C!==n?(_=i,i=Pd(c,C)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n),i===n&&(i=zp()),i}function qp(){var i,c,d,w,R,C,D,A;return i=u,c=At(),c!==n?(d=M(),w=xe(),w!==n?(R=M(),C=Tr(),C!==n?(D=M(),A=ve(),A!==n?(_=i,i=Fd(c,C)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n),i===n&&(i=u,c=At(),c!==n&&(_=i,c=Vd(c)),i=c),i}function Hp(){var i,c,d,w,R,C,D,A,be,J,Ae,oe;return i=u,c=At(),c!==n&&(_=i,c=Td(c)),i=c,i===n&&(i=u,c=rt(),c!==n?(d=M(),w=xe(),w!==n?(R=M(),C=Tr(),C!==n?(D=M(),A=qr(),A!==n?(be=M(),J=Vr(),J!==n?(Ae=M(),oe=ve(),oe!==n?(_=i,i=Dd(C,J)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n),i===n&&(i=u,c=rt(),c!==n?(d=M(),w=xe(),w!==n?(R=M(),C=Tr(),C!==n?(D=M(),A=ve(),A!==n?(_=i,i=kd(C)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n),i===n&&(i=u,c=rt(),c!==n&&(_=i,c=Wd()),i=c))),i}function zp(){var i,c,d,w,R,C,D,A,be,J,Ae,oe;return i=u,c=At(),c!==n?(d=M(),w=xe(),w!==n?(R=M(),C=Vr(),C!==n?(D=M(),A=ve(),A!==n?(_=i,i=Bd(c,C)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n),i===n&&(i=u,c=At(),c!==n&&(_=i,c=Od(c)),i=c,i===n&&(i=u,c=rt(),c!==n?(d=M(),w=xe(),w!==n?(R=M(),C=Tr(),C!==n?(D=M(),A=qr(),A!==n?(be=M(),J=Vr(),J!==n?(Ae=M(),oe=ve(),oe!==n?(_=i,i=Ud(C,J)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n),i===n&&(i=u,c=rt(),c!==n?(d=M(),w=xe(),w!==n?(R=M(),C=Vr(),C!==n?(D=M(),A=ve(),A!==n?(_=i,i=Gd(C)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n),i===n&&(i=u,c=rt(),c!==n&&(_=i,c=qd()),i=c)))),i}function Lg(){var i,c;return i=At(),i===n&&(i=u,c=rt(),c!==n&&(_=i,c=Hd()),i=c),i}function At(){var i,c;return i=u,c=po(),c!==n&&(_=i,c=zd()),i=c,i===n&&(i=u,c=mo(),c!==n&&(_=i,c=jd()),i=c,i===n&&(i=u,c=wo(),c!==n&&(_=i,c=Qd()),i=c,i===n&&(i=u,c=fo(),c!==n&&(_=i,c=Kd()),i=c,i===n&&(i=u,c=lo(),c!==n&&(_=i,c=Xd()),i=c)))),i}function Vr(){var i,c;return i=u,c=yt(),c!==n&&(_=i,c=Zd(c)),i=c,i}function Tr(){var i,c;return i=u,c=yt(),c!==n&&(_=i,c=Yd(c)),i=c,i}function jp(){var i,c,d,w;return i=u,c=ao(),c!==n?(d=M(),w=ht(),w!==n?(_=i,i=Jd(w)):(u=i,i=n)):(u=i,i=n),i}function Qp(){var i,c;return i=u,c=rm(),c!==n&&(_=i,c=e1()),i=c,i}function Kp(){var i,c;return i=u,c=nm(),c!==n&&(_=i,c=t1()),i=c,i===n&&(i=u,c=im(),c!==n&&(_=i,c=r1()),i=c),i}function ht(){var i;return i=Yn(),i===n&&(i=Zn()),i}function Yn(){var i,c,d,w,R;if(i=u,s.charCodeAt(u)===39?(c=H,u++):(c=n,v===0&&N(Is)),c===n&&(s.substr(u,2)===re?(c=re,u+=2):(c=n,v===0&&N(Vl))),c!==n){for(d=[],w=u,s.substr(u,2)===le?(R=le,u+=2):(R=n,v===0&&N(Ns)),R!==n&&(_=w,R=Ts()),w=R,w===n&&(Rs.test(s.charAt(u))?(w=s.charAt(u),u++):(w=n,v===0&&N(Ps)));w!==n;)d.push(w),w=u,s.substr(u,2)===le?(R=le,u+=2):(R=n,v===0&&N(Ns)),R!==n&&(_=w,R=Ts()),w=R,w===n&&(Rs.test(s.charAt(u))?(w=s.charAt(u),u++):(w=n,v===0&&N(Ps)));s.charCodeAt(u)===39?(w=H,u++):(w=n,v===0&&N(Is)),w!==n?(_=i,i=n1(d)):(u=i,i=n)}else u=i,i=n;return i}function Xp(){var i;return i=Zp(),i===n&&(i=Yp()),i}function Zp(){var i,c,d,w,R,C,D,A,be,J;if(i=u,c=Or(),c!==n)if(d=M(),w=ce(),w!==n){for(R=M(),C=[],D=kr();D!==n;)C.push(D),D=kr();D=M(),A=Ur(),A!==n?(_=i,i=i1(w,C)):(u=i,i=n)}else u=i,i=n;else u=i,i=n;if(i===n)if(i=u,c=Or(),c!==n)if(d=M(),w=ce(),w!==n){for(R=M(),C=[],D=kr();D!==n;)C.push(D),D=kr();D=M(),A=Zs(),A!==n?(be=M(),J=Ur(),J!==n?(_=i,i=s1(w,C,A)):(u=i,i=n)):(u=i,i=n)}else u=i,i=n;else u=i,i=n;return i}function Yp(){var i,c,d,w,R,C,D,A;if(i=u,c=Or(),c!==n){for(d=M(),w=[],R=Dr();R!==n;)w.push(R),R=Dr();R=M(),C=Ur(),C!==n?(_=i,i=o1(w)):(u=i,i=n)}else u=i,i=n;if(i===n)if(i=u,c=Or(),c!==n){for(d=M(),w=[],R=Dr();R!==n;)w.push(R),R=Dr();R=M(),C=Zs(),C!==n?(D=M(),A=Ur(),A!==n?(_=i,i=a1(w,C)):(u=i,i=n)):(u=i,i=n)}else u=i,i=n;return i}function Dr(){var i,c,d,w,R,C,D,A;return i=u,c=Gr(),c!==n?(d=M(),w=ce(),w!==n?(R=M(),C=go(),C!==n?(D=M(),A=ce(),A!==n?(_=i,i=u1(w,A)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n),i===n&&(i=u,c=Gr(),c!==n?(d=M(),w=ce(),w!==n?(R=M(),C=ce(),C!==n?(_=i,i=c1(w,C)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)),i}function kr(){var i,c,d,w,R,C,D,A;return i=u,c=Gr(),c!==n?(d=M(),w=ce(),w!==n?(R=M(),C=go(),C!==n?(D=M(),A=ce(),A!==n?(_=i,i=l1(w,A)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n),i===n&&(i=u,c=Gr(),c!==n?(d=M(),w=ce(),w!==n?(R=M(),C=ce(),C!==n?(_=i,i=f1(w,C)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n)),i}function Zs(){var i,c,d,w;return i=u,c=Cm(),c!==n?(d=M(),w=ce(),w!==n?(_=i,i=d1(w)):(u=i,i=n)):(u=i,i=n),i}function Jp(){var i,c,d,w;return i=u,c=em(),c!==n?(d=u,v++,w=Xn(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=p1(c)):(u=i,i=n)):(u=i,i=n),i}function em(){var i,c,d,w;return i=u,c=Wr(),c!==n?(d=Ys(),d!==n?(w=Js(),w!==n?(_=i,i=m1(c,d,w)):(u=i,i=n)):(u=i,i=n)):(u=i,i=n),i===n&&(i=u,c=Wr(),c!==n?(d=Ys(),d!==n?(_=i,i=w1(c,d)):(u=i,i=n)):(u=i,i=n),i===n&&(i=u,c=Wr(),c!==n?(d=Js(),d!==n?(_=i,i=g1(c,d)):(u=i,i=n)):(u=i,i=n),i===n&&(i=u,c=Wr(),c!==n&&(_=i,c=h1(c)),i=c))),i}function Wr(){var i,c,d;return i=yt(),i===n&&(i=u,s.charCodeAt(u)===45?(c=$,u++):(c=n,v===0&&N(qn)),c===n&&(s.charCodeAt(u)===43?(c=E,u++):(c=n,v===0&&N(Gn))),c!==n?(d=yt(),d!==n?(_=i,i=y1(c,d)):(u=i,i=n)):(u=i,i=n)),i}function Ys(){var i,c,d;return i=u,s.charCodeAt(u)===46?(c=ee,u++):(c=n,v===0&&N(Tl)),c!==n?(d=yt(),d===n&&(d=null),_=i,i=b1(d)):(u=i,i=n),i}function Js(){var i,c,d;return i=u,c=tm(),c!==n?(d=yt(),d!==n?(_=i,i=S1(c,d)):(u=i,i=n)):(u=i,i=n),i}function yt(){var i,c,d;if(i=u,c=[],d=eo(),d!==n)for(;d!==n;)c.push(d),d=eo();else c=n;return c!==n&&(_=i,c=x1(c)),i=c,i}function eo(){var i;return hl.test(s.charAt(u))?(i=s.charAt(u),u++):(i=n,v===0&&N(Dl)),i}function tm(){var i,c,d;return i=u,yl.test(s.charAt(u))?(c=s.charAt(u),u++):(c=n,v===0&&N(kl)),c!==n?(bl.test(s.charAt(u))?(d=s.charAt(u),u++):(d=n,v===0&&N(Wl)),d===n&&(d=null),_=i,i=v1(c,d)):(u=i,i=n),i}function rm(){var i,c,d,w;return i=u,s.substr(u,4).toLowerCase()===K?(c=s.substr(u,4),u+=4):(c=n,v===0&&N(Bl)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(c=[c,d],i=c):(u=i,i=n)):(u=i,i=n),i}function nm(){var i,c,d,w;return i=u,s.substr(u,4).toLowerCase()===O?(c=s.substr(u,4),u+=4):(c=n,v===0&&N(Ol)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(c=[c,d],i=c):(u=i,i=n)):(u=i,i=n),i}function im(){var i,c,d,w;return i=u,s.substr(u,5).toLowerCase()===F?(c=s.substr(u,5),u+=5):(c=n,v===0&&N(Ul)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(c=[c,d],i=c):(u=i,i=n)):(u=i,i=n),i}function Jn(){var i,c,d,w;return i=u,s.substr(u,2).toLowerCase()===k?(c=s.substr(u,2),u+=2):(c=n,v===0&&N(Gl)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=C1()):(u=i,i=n)):(u=i,i=n),i}function to(){var i,c,d,w;return i=u,s.substr(u,2).toLowerCase()===W?(c=s.substr(u,2),u+=2):(c=n,v===0&&N(ql)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=L1()):(u=i,i=n)):(u=i,i=n),i}function ro(){var i,c,d,w;return i=u,s.substr(u,4).toLowerCase()===z?(c=s.substr(u,4),u+=4):(c=n,v===0&&N(Hl)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=_1()):(u=i,i=n)):(u=i,i=n),i}function sm(){var i,c,d,w;return i=u,s.substr(u,6).toLowerCase()===X?(c=s.substr(u,6),u+=6):(c=n,v===0&&N(zl)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=M1()):(u=i,i=n)):(u=i,i=n),i}function rr(){var i,c,d,w;return i=u,s.substr(u,3).toLowerCase()===te?(c=s.substr(u,3),u+=3):(c=n,v===0&&N(jl)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=R1()):(u=i,i=n)):(u=i,i=n),i}function Br(){var i,c,d,w;return i=u,s.substr(u,3).toLowerCase()===we?(c=s.substr(u,3),u+=3):(c=n,v===0&&N(Ql)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=E1()):(u=i,i=n)):(u=i,i=n),i}function no(){var i,c,d,w;return i=u,s.substr(u,2).toLowerCase()===ye?(c=s.substr(u,2),u+=2):(c=n,v===0&&N(Kl)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=$1()):(u=i,i=n)):(u=i,i=n),i}function io(){var i,c,d,w;return i=u,s.substr(u,7).toLowerCase()===tt?(c=s.substr(u,7),u+=7):(c=n,v===0&&N(Xl)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=A1()):(u=i,i=n)):(u=i,i=n),i}function ei(){var i,c,d,w;return i=u,s.substr(u,4).toLowerCase()===Et?(c=s.substr(u,4),u+=4):(c=n,v===0&&N(Zl)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=I1()):(u=i,i=n)):(u=i,i=n),i}function om(){var i,c,d,w;return i=u,s.substr(u,3).toLowerCase()===Ke?(c=s.substr(u,3),u+=3):(c=n,v===0&&N(Yl)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=N1()):(u=i,i=n)):(u=i,i=n),i}function am(){var i,c,d,w;return i=u,s.substr(u,9).toLowerCase()===Ar?(c=s.substr(u,9),u+=9):(c=n,v===0&&N(Jl)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=P1()):(u=i,i=n)):(u=i,i=n),i}function um(){var i,c,d,w;return i=u,s.substr(u,7).toLowerCase()===$t?(c=s.substr(u,7),u+=7):(c=n,v===0&&N(ef)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=F1()):(u=i,i=n)):(u=i,i=n),i}function so(){var i,c,d,w;return i=u,s.substr(u,4).toLowerCase()===On?(c=s.substr(u,4),u+=4):(c=n,v===0&&N(tf)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=V1()):(u=i,i=n)):(u=i,i=n),i}function cm(){var i,c,d,w;return i=u,s.substr(u,8).toLowerCase()===Un?(c=s.substr(u,8),u+=8):(c=n,v===0&&N(rf)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=T1()):(u=i,i=n)):(u=i,i=n),i}function oo(){var i,c,d,w;return i=u,s.substr(u,9).toLowerCase()===Vc?(c=s.substr(u,9),u+=9):(c=n,v===0&&N(nf)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=D1()):(u=i,i=n)):(u=i,i=n),i}function ao(){var i,c,d,w;return i=u,s.substr(u,4).toLowerCase()===Tc?(c=s.substr(u,4),u+=4):(c=n,v===0&&N(sf)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=k1()):(u=i,i=n)):(u=i,i=n),i}function uo(){var i,c,d,w;return i=u,s.substr(u,4).toLowerCase()===Dc?(c=s.substr(u,4),u+=4):(c=n,v===0&&N(of)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=W1()):(u=i,i=n)):(u=i,i=n),i}function lm(){var i,c,d,w;return i=u,s.substr(u,7).toLowerCase()===kc?(c=s.substr(u,7),u+=7):(c=n,v===0&&N(af)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=B1()):(u=i,i=n)):(u=i,i=n),i}function fm(){var i,c,d,w;return i=u,s.substr(u,8).toLowerCase()===Wc?(c=s.substr(u,8),u+=8):(c=n,v===0&&N(uf)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=O1()):(u=i,i=n)):(u=i,i=n),i}function dm(){var i,c,d,w;return i=u,s.substr(u,4).toLowerCase()===Bc?(c=s.substr(u,4),u+=4):(c=n,v===0&&N(cf)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=U1()):(u=i,i=n)):(u=i,i=n),i}function pm(){var i,c,d,w;return i=u,s.substr(u,4).toLowerCase()===Oc?(c=s.substr(u,4),u+=4):(c=n,v===0&&N(lf)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=G1()):(u=i,i=n)):(u=i,i=n),i}function mm(){var i,c,d,w;return i=u,s.substr(u,2).toLowerCase()===Uc?(c=s.substr(u,2),u+=2):(c=n,v===0&&N(ff)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=q1()):(u=i,i=n)):(u=i,i=n),i}function wm(){var i,c,d,w;return i=u,s.substr(u,7).toLowerCase()===Gc?(c=s.substr(u,7),u+=7):(c=n,v===0&&N(df)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=H1()):(u=i,i=n)):(u=i,i=n),i}function gm(){var i,c,d,w;return i=u,s.substr(u,8).toLowerCase()===qc?(c=s.substr(u,8),u+=8):(c=n,v===0&&N(pf)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=z1()):(u=i,i=n)):(u=i,i=n),i}function hm(){var i,c,d,w;return i=u,s.substr(u,5).toLowerCase()===Hc?(c=s.substr(u,5),u+=5):(c=n,v===0&&N(mf)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=j1()):(u=i,i=n)):(u=i,i=n),i}function ym(){var i,c,d,w;return i=u,s.substr(u,4).toLowerCase()===zc?(c=s.substr(u,4),u+=4):(c=n,v===0&&N(wf)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=Q1()):(u=i,i=n)):(u=i,i=n),i}function bm(){var i,c,d,w;return i=u,s.substr(u,7).toLowerCase()===jc?(c=s.substr(u,7),u+=7):(c=n,v===0&&N(gf)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=K1()):(u=i,i=n)):(u=i,i=n),i}function Sm(){var i,c,d,w;return i=u,s.substr(u,2).toLowerCase()===Qc?(c=s.substr(u,2),u+=2):(c=n,v===0&&N(hf)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=X1()):(u=i,i=n)):(u=i,i=n),i}function co(){var i,c,d,w;return i=u,s.substr(u,8).toLowerCase()===Kc?(c=s.substr(u,8),u+=8):(c=n,v===0&&N(yf)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=Z1()):(u=i,i=n)):(u=i,i=n),i}function lo(){var i,c,d,w;return i=u,s.substr(u,4).toLowerCase()===Xc?(c=s.substr(u,4),u+=4):(c=n,v===0&&N(bf)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=Y1()):(u=i,i=n)):(u=i,i=n),i}function _g(){var i,c,d,w;return i=u,s.substr(u,4).toLowerCase()===Zc?(c=s.substr(u,4),u+=4):(c=n,v===0&&N(Sf)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=J1()):(u=i,i=n)):(u=i,i=n),i}function Mg(){var i,c,d,w;return i=u,s.substr(u,4).toLowerCase()===Yc?(c=s.substr(u,4),u+=4):(c=n,v===0&&N(xf)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=ep()):(u=i,i=n)):(u=i,i=n),i}function xm(){var i,c,d,w;return i=u,s.substr(u,13).toLowerCase()===Jc?(c=s.substr(u,13),u+=13):(c=n,v===0&&N(vf)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=tp()):(u=i,i=n)):(u=i,i=n),i}function vm(){var i,c,d,w;return i=u,s.substr(u,15).toLowerCase()===el?(c=s.substr(u,15),u+=15):(c=n,v===0&&N(Cf)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=rp()):(u=i,i=n)):(u=i,i=n),i}function fo(){var i,c,d,w;return i=u,s.substr(u,5).toLowerCase()===tl?(c=s.substr(u,5),u+=5):(c=n,v===0&&N(Lf)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=np()):(u=i,i=n)):(u=i,i=n),i}function po(){var i,c,d,w;return i=u,s.substr(u,3).toLowerCase()===rl?(c=s.substr(u,3),u+=3):(c=n,v===0&&N(_f)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=ip()):(u=i,i=n)):(u=i,i=n),i}function mo(){var i,c,d,w;return i=u,s.substr(u,4).toLowerCase()===nl?(c=s.substr(u,4),u+=4):(c=n,v===0&&N(Mf)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=sp()):(u=i,i=n)):(u=i,i=n),i}function wo(){var i,c,d,w;return i=u,s.substr(u,6).toLowerCase()===il?(c=s.substr(u,6),u+=6):(c=n,v===0&&N(Rf)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=op()):(u=i,i=n)):(u=i,i=n),i}function rt(){var i,c,d,w;return i=u,s.substr(u,6).toLowerCase()===sl?(c=s.substr(u,6),u+=6):(c=n,v===0&&N(Ef)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=ap()):(u=i,i=n)):(u=i,i=n),i}function Or(){var i,c,d,w;return i=u,s.substr(u,4).toLowerCase()===ol?(c=s.substr(u,4),u+=4):(c=n,v===0&&N($f)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=up()):(u=i,i=n)):(u=i,i=n),i}function Ur(){var i,c,d,w;return i=u,s.substr(u,3).toLowerCase()===al?(c=s.substr(u,3),u+=3):(c=n,v===0&&N(Af)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=cp()):(u=i,i=n)):(u=i,i=n),i}function Gr(){var i,c,d,w;return i=u,s.substr(u,4).toLowerCase()===ul?(c=s.substr(u,4),u+=4):(c=n,v===0&&N(If)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=lp()):(u=i,i=n)):(u=i,i=n),i}function go(){var i,c,d,w;return i=u,s.substr(u,4).toLowerCase()===cl?(c=s.substr(u,4),u+=4):(c=n,v===0&&N(Nf)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=fp()):(u=i,i=n)):(u=i,i=n),i}function Cm(){var i,c,d,w;return i=u,s.substr(u,4).toLowerCase()===ll?(c=s.substr(u,4),u+=4):(c=n,v===0&&N(Pf)),c!==n?(d=u,v++,w=Q(),v--,w===n?d=void 0:(u=d,d=n),d!==n?(_=i,i=dp()):(u=i,i=n)):(u=i,i=n),i}function qr(){var i;return s.charCodeAt(u)===44?(i=fl,u++):(i=n,v===0&&N(Ff)),i}function xe(){var i;return s.charCodeAt(u)===40?(i=dl,u++):(i=n,v===0&&N(Vf)),i}function ve(){var i;return s.charCodeAt(u)===41?(i=pl,u++):(i=n,v===0&&N(Tf)),i}function M(){var i,c;for(i=[],c=ho();c!==n;)i.push(c),c=ho();return i}function ho(){var i;return Sl.test(s.charAt(u))?(i=s.charAt(u),u++):(i=n,v===0&&N(Df)),i}function Lm(){var i,c,d,w;if(i=u,c=zs(),c!==n&&(_=i,c=pp(c)),i=c,i===n)if(i=u,s.charCodeAt(u)===96?(c=_s,u++):(c=n,v===0&&N(Fs)),c!==n){if(d=[],Es.test(s.charAt(u))?(w=s.charAt(u),u++):(w=n,v===0&&N(Vs)),w!==n)for(;w!==n;)d.push(w),Es.test(s.charAt(u))?(w=s.charAt(u),u++):(w=n,v===0&&N(Vs));else d=n;d!==n?(s.charCodeAt(u)===96?(w=_s,u++):(w=n,v===0&&N(Fs)),w!==n?(_=i,i=mp(d)):(u=i,i=n)):(u=i,i=n)}else u=i,i=n;return i}function _m(i,c){return{type:"unary-expression",operator:i,expr:c,range:B()}}function yo(i,c,d,w){var R={type:"binary-expression",operator:i,left:c,right:d,range:B()};return w!==void 0&&(R.escape=w),R}function Mm(i,c){for(var d=[i],w=0;w<c.length;w++)d.push(c[w][3]);return d}function Rm(i,c,d){var w=Mm(i,c);return w}function nr(i,c){for(var d=i,w=0;w<c.length;w++)d=yo(c[w][1],d,c[w][3]);return d}function Em(i){/^(\d{4})-(\d{1,2})-(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/.test(i)!==!0&&er("Timestamp literal is invalid")}function $m(i){/^(\d{1,2}):(\d{1,2}):(\d{1,2})$|^(\d{1,2}):(\d{1,2})$|^(\d{1,2}):(\d{1,2}):(\d{1,2}).([0-9]+)$/.test(i)!==!0&&er("Time literal is invalid")}function Am(i){/^(\d{4})-(\d{1,2})-(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/.test(i)!==!0&&er("Date literal is invalid")}if(Nr=m(),Nr!==n&&u===s.length)return Nr;throw Nr!==n&&u<s.length&&N(wp()),Ws(Hn,Oe<s.length?s.charAt(Oe):null,Oe<s.length?tr(Oe,Oe+1):tr(Oe,Oe))}return{SyntaxError:t,parse:o}}();Cs.SyntaxError.prototype.name="PeggySyntaxError";var Pc=Cs.parse,ky=Cs.SyntaxError;var By=typeof window<"u"&&"$arcgis"in window&&typeof window.$arcgis=="object"&&"import"in window.$arcgis&&!("forceESM"in window.$arcgis);var mg=["ar","bg","bs","ca","cs","da","de","el","en","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nl","nb","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],qy=new Set(mg);var wg=void 0;wg=void 0;var Fc=e=>e.variables?e.variables.find(r=>r.name==="$layer"&&r.type==="dictionary").properties??[]:[];var gg=-2,hg=["+","-","*","/","||"],yg=["cast","extract","substring"],Bn=class{constructor(t,r){this.callStack=[];this._fields=[];this.markers=[];this._sdkFunctions=t.flatMap(o=>o.items),this._fields=r.profile?Fc(r.profile):[]}validateModel(t){try{let r=Pc(t);this.traverse(r)}catch(r){this._handleParserFailure(r,t)}}traverse(t){this.callStack.push(t),this._validateNode(t),this._traverseChildren(t),this.callStack.pop()}_validateNode(t){if(t)switch(t.type){case"interval":{let r=t.value.value;if(!Ac.test(r)||t.value.type!=="string"){let o=$e("ExpectedNumericalLiteral"),s=this._getRange(t.value);Re(o,s,this.markers);return}return}case"interval-period":return;case"interval-qualifier":return;case"case-expression":if(t.clauses.length===0){if(t.else){let s=$e("InvalidElseClause"),a={startLineNumber:t.elseRange.start.line,endLineNumber:t.elseRange.end.line,startColumn:t.elseRange.start.column,endColumn:t.elseRange.end.column};Re(s,a,this.markers);return}let r=$e("EmptyCaseExpression"),o={startLineNumber:t.range.start.line,endLineNumber:t.range.end.line,startColumn:t.range.start.column,endColumn:t.range.end.column};Re(r,o,this.markers);return}return;case"parameter":return;case"column-reference":{if(Object.values(bs).map(o=>o.toLowerCase()).includes(t.column.toLowerCase()))return;if(!this._fields.find(o=>o.name===t.column)){let o=$e("UnknownField",{field:t.column});Re(o,t.range,this.markers,!0)}return}case"expression-list":{let r=t.value,o=new Set,s=this.callStack.at(gg);if(s?.type==="function"&&yg.includes(s?.name?.toLowerCase()))return;if(r.forEach(a=>{let n=Er(a,this._fields);if(n!=="column-reference"&&n!=="time-only"){if(n==="unknown_function"){let l=$e("FunctionNotSupported",{function:a.name});Re(l,a.range,this.markers,!0);return}$r(n)&&(n="number"),o.has(n)||o.add(n)}}),o.size>1){let a=Array.from(o),n=$e("IncompatibleListDataType",{types:xs(a,",")});Re(n,t.range,this.markers,!0)}return}case"binary-expression":{let r=this.callStack.length===1,o=t.left,s=t.right,a=Er(o,this._fields),n=Er(s,this._fields);if(r&&!hg.includes(t.operator)){let l=`Cannot perform binary operation '${t.operator}' at root node.`;Re(l,t.range,this.markers,!0);return}switch(t.operator){case"AND":case"OR":Qe(o,"BOOLEAN",this.markers,this._fields),Qe(s,"BOOLEAN",this.markers,this._fields);break;case"IS":case"ISNOT":Qe(s,"NULL",this.markers,this._fields);break;case"IN":case"NOT IN":case"BETWEEN":case"NOTBETWEEN":Qe(s,"EXPRESSION-LIST",this.markers,this._fields);break;case"LIKE":case"NOT LIKE":Qe(s,"STRING",this.markers,this._fields);break;case"<>":case"<":case">":case">=":case"<=":case"=":{if(!Ss.includes(n)){let p=$e("TypeNotAssignable",{providedType:Ve(n),expectedType:xs(Ss,",")});Re(p,s.range,this.markers,!0)}let l=$r(a)&&$r(n);if(a!==n&&!l){let p=$e("MismatchedTypes",{leftValue:vs(o),providedType:a,rightValue:vs(s),expectedType:n});Re(p,t.range,this.markers,!0)}break}case"*":case"-":case"+":case"/":Qe(o,"NUMBER",this.markers,this._fields),Qe(s,"NUMBER",this.markers,this._fields);break;case"||":Qe(o,"STRING",this.markers,this._fields),Qe(s,"STRING",this.markers,this._fields);break;default:{let l=$e("UnsupportedOperator",{operator:Ve(t.operator)});Re(l,t.range,this.markers,!0)}}return}case"function":{let r=this._getFunction(t.name);if(!r){let o=$e("FunctionNotSupported",{function:t.name});Re(o,t.range,this.markers,!0);return}if(r.type==="function"){let{min:o,max:s}=r.parametersInfo,{args:{value:a}}=t,n=a.length;if(n<o||n>s){let l=$e("IncorrectArgumentLength",{minParams:o,maxParams:s,numArgs:n});Re(l,t.range,this.markers)}}}return;case"null":case"boolean":case"string":case"timestamp":case"date":case"time":case"number":case"current-time":return;case"data-type":return;case"unary-expression":console.warn("Unexpected unary expression found.");return;case"when-clause":return}}_handleParserFailure(t,r){if(t instanceof Error&&(!("location"in t)||!("format"in t)))throw t;if(r.trim()===""){this.markers=[];return}let o=t,s=o.message;Ic(o)&&(s=Nc(o));let a={startLineNumber:o.location.start.line,endLineNumber:o.location.end.line,startColumn:o.location.start.column,endColumn:o.location.end.column};Re(s,a,this.markers)}_getRange(t){return{startLineNumber:t.range.start.line,endLineNumber:t.range.end.line,startColumn:t.range.start.column,endColumn:t.range.end.column}}_getFunction(t){return this._sdkFunctions.find(r=>r.name.toLowerCase()===t.toLowerCase())}_traverseChildren(t){if(t)switch(t.type){case"case-expression":{let r=et[t.type];t.format==="simple"?r.forEach(o=>{let s=t[o];Array.isArray(s)?s.forEach(a=>{this.traverse(a)}):this.traverse(s)}):t.format==="searched"&&r.forEach(o=>{if(o==="operand")return;let s=t[o];Array.isArray(s)?s.forEach(a=>{this.traverse(a)}):this.traverse(s)})}break;case"when-clause":et[t.type].forEach(o=>{let s=t[o];this.traverse(s)});break;case"expression-list":et[t.type].forEach(o=>{let s=t[o];Array.isArray(s)?s.forEach(a=>{this.traverse(a)}):this.traverse(s)});break;case"unary-expression":et[t.type].forEach(o=>{let s=t[o];Array.isArray(s)&&this.traverse(s)});break;case"binary-expression":et[t.type].forEach(o=>{let s=t[o];this.traverse(s)});break;case"function":et[t.type].forEach(o=>{let s=t[o];this.traverse(s)});break;case"interval":et[t.type].forEach(o=>{let s=t[o];this.traverse(s)});break;case"interval-qualifier":et[t.type].forEach(o=>{let s=t[o];this.traverse(s)});break;default:break}}};var bg="${assetsPath}/api/sql-expression-api.t9n.${locale}.json";globalThis.onmessage=()=>{ns((e,t)=>new Ls(e,t))};var Ls=class{constructor(t,{languageId:r,languageOptions:o}){this._ctx=t;this._languageId=r,this._apiService=new Ec({assetsPath:o?.assetsPath??"",languageId:r,apiPathTemplate:bg})}async doValidation(t,r){let o=this._getTextDocument(t);if(!o)return await Promise.resolve([]);let s=await this.getApiLibrary(r),a=new Bn(s,r);return a.validateModel(o.getText()),await Promise.resolve(a.markers)}async doComplete(t){return this._getTextDocument(t)?await Promise.resolve({suggestions:[]}):await Promise.resolve({suggestions:[]})}async getApiLibrary(t){return await this._apiService.getApiLibrary(t)}_getTextDocument(t){let r=this._ctx.getMirrorModels();for(let o of r)if(o.uri.toString()===t)return Fn.create(t,this._languageId,o.version,o.getValue());return null}};})();
|
|
168
|
+
${i}`),o}return e.message.match(/but end of input found/)?"Invalid syntax: unexpected end of SQL Expression.":"Invalid syntax: unexpected token."}var xQ=typeof window<"u"&&"$arcgis"in window&&typeof window.$arcgis=="object"&&"import"in window.$arcgis&&!("forceESM"in window.$arcgis);var MR=["ar","bg","bs","ca","cs","da","de","el","en","es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","nl","nb","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],MQ=new Set(MR);var PR=void 0;PR=void 0;var dx=e=>e.variables?e.variables.find(r=>r.name==="$layer"&&r.type==="dictionary").properties??[]:[];q4();QI();var aZ=-2,lZ=["+","-","*","/","||"],cZ=["cast","extract","substring"],iw=class{constructor(t,r){this.callStack=[];this._fields=[];this.markers=[];this._sdkFunctions=t.flatMap(n=>n.items),this._fields=r.profile?dx(r.profile):[]}async validateModel(t){try{let{parseTree:r}=await B4(t,new nw);this.traverse(r)}catch(r){this._handleParserFailure(r,t)}}traverse(t){this.callStack.push(t),this._validateNode(t),this._traverseChildren(t),this.callStack.pop()}_validateNode(t){if(t)switch(t.type){case"interval":{let r=t.value.value;if(!lx.test(r)||t.value.type!=="string"){let n=Br("ExpectedNumericalLiteral"),i=this._getRange(t.value);kr(n,i,this.markers);return}return}case"interval-period":return;case"interval-qualifier":return;case"case-expression":if(t.clauses.length===0){if(t.else){let i=Br("InvalidElseClause"),o={startLineNumber:t.elseLocation?.start.line??t.else.location.start.line,endLineNumber:t.elseLocation?.end.line??t.else.location.end.line,startColumn:t.elseLocation?.start.column??t.else.location.start.column,endColumn:t.elseLocation?.end.column??t.else.location.end.column};kr(i,o,this.markers);return}let r=Br("EmptyCaseExpression"),n={startLineNumber:t.location.start.line,endLineNumber:t.location.end.line,startColumn:t.location.start.column,endColumn:t.location.end.column};kr(r,n,this.markers);return}return;case"parameter":return;case"column-reference":{if(Object.values(d2).map(n=>n.toLowerCase()).includes(t.column.toLowerCase()))return;if(!this._fields.find(n=>n.name===t.column)){let n=Br("UnknownField",{field:t.column});kr(n,t.location,this.markers,!0)}return}case"expression-list":{let r=t.value,n=new Set,i=this.callStack.at(aZ);if(i?.type==="function"&&cZ.includes(i?.name?.toLowerCase()))return;if(r.forEach(o=>{let s=Kc(o,this._fields);if(s!=="column-reference"&&s!=="time-only"){if(s==="unknown_function"){let a=Br("FunctionNotSupported",{function:o.name});kr(a,o.location,this.markers,!0);return}eu(s)&&(s="number"),n.has(s)||n.add(s)}}),n.size>1){let o=Array.from(n),s=Br("IncompatibleListDataType",{types:p2(o,",")});kr(s,t.location,this.markers,!0)}return}case"binary-expression":{let r=this.callStack.length===1,n=t.left,i=t.right,o=Kc(n,this._fields),s=Kc(i,this._fields);if(r&&!lZ.includes(t.operator)){let a=`Cannot perform binary operation '${t.operator}' at root node.`;kr(a,t.location,this.markers,!0);return}switch(t.operator){case"AND":case"OR":si(n,"BOOLEAN",this.markers,this._fields),si(i,"BOOLEAN",this.markers,this._fields);break;case"IS":case"ISNOT":si(i,"NULL",this.markers,this._fields);break;case"IN":case"NOT IN":case"BETWEEN":case"NOTBETWEEN":si(i,"EXPRESSION-LIST",this.markers,this._fields);break;case"LIKE":case"NOT LIKE":si(i,"STRING",this.markers,this._fields);break;case"<>":case"<":case">":case">=":case"<=":case"=":{if(!f2.includes(s)){let u=Br("TypeNotAssignable",{providedType:gn(s),expectedType:p2(f2,",")});kr(u,i.location,this.markers,!0)}let a=eu(o)&&eu(s);if(o!==s&&!a){let u=Br("MismatchedTypes",{leftValue:m2(n),providedType:o,rightValue:m2(i),expectedType:s});kr(u,t.location,this.markers,!0)}break}case"*":case"-":case"+":case"/":si(n,"NUMBER",this.markers,this._fields),si(i,"NUMBER",this.markers,this._fields);break;case"||":si(n,"STRING",this.markers,this._fields),si(i,"STRING",this.markers,this._fields);break;default:{let a=Br("UnsupportedOperator",{operator:gn(t.operator)});kr(a,t.location,this.markers,!0)}}return}case"function":{let r=this._getFunction(t.name);if(!r){let n=Br("FunctionNotSupported",{function:t.name});kr(n,t.location,this.markers,!0);return}if(r.type==="function"){let{min:n,max:i}=r.parametersInfo,{args:{value:o}}=t,s=o.length;if(s<n||s>i){let a=Br("IncorrectArgumentLength",{minParams:n,maxParams:i,numArgs:s});kr(a,t.location,this.markers)}}}return;case"null":case"boolean":case"string":case"timestamp":case"date":case"time":case"number":case"current-time":return;case"data-type":return;case"unary-expression":console.warn("Unexpected unary expression found.");return;case"when-clause":return}}_handleParserFailure(t,r){if(t instanceof Error&&(!("location"in t)||!("format"in t)))throw t;if(r.trim()===""){this.markers=[];return}let n=t,i=n.message;cx(n)&&(i=ux(n));let o={startLineNumber:n.location.start.line,endLineNumber:n.location.end.line,startColumn:n.location.start.column,endColumn:n.location.end.column};kr(i,o,this.markers)}_getRange(t){return{startLineNumber:t.location.start.line,endLineNumber:t.location.end.line,startColumn:t.location.start.column,endColumn:t.location.end.column}}_getFunction(t){return this._sdkFunctions.find(r=>r.name.toLowerCase()===t.toLowerCase())}_traverseChildren(t){if(t)switch(t.type){case"case-expression":{let r=$i[t.type];t.format==="simple"?r.forEach(n=>{let i=t[n];Array.isArray(i)?i.forEach(o=>{this.traverse(o)}):this.traverse(i)}):t.format==="searched"&&r.forEach(n=>{if(n==="operand")return;let i=t[n];Array.isArray(i)?i.forEach(o=>{this.traverse(o)}):this.traverse(i)})}break;case"when-clause":$i[t.type].forEach(n=>{let i=t[n];this.traverse(i)});break;case"expression-list":$i[t.type].forEach(n=>{let i=t[n];Array.isArray(i)?i.forEach(o=>{this.traverse(o)}):this.traverse(i)});break;case"unary-expression":$i[t.type].forEach(n=>{let i=t[n];Array.isArray(i)&&this.traverse(i)});break;case"binary-expression":$i[t.type].forEach(n=>{let i=t[n];this.traverse(i)});break;case"function":$i[t.type].forEach(n=>{let i=t[n];this.traverse(i)});break;case"interval":$i[t.type].forEach(n=>{let i=t[n];this.traverse(i)});break;case"interval-qualifier":$i[t.type].forEach(n=>{let i=t[n];this.traverse(i)});break;default:break}}};var uZ="${assetsPath}/api/sql-expression-api.t9n.${locale}.json";globalThis.onmessage=()=>{Yy((e,t)=>new pS(e,t))};var pS=class{constructor(t,{languageId:r,languageOptions:n}){this._ctx=t;this._languageId=r,this._apiService=new sx({assetsPath:n?.assetsPath??"",languageId:r,apiPathTemplate:uZ})}async doValidation(t,r){let n=this._getTextDocument(t);if(!n)return await Promise.resolve([]);let i=await this.getApiLibrary(r),o=new iw(i,r);return await o.validateModel(n.getText()),await Promise.resolve(o.markers)}async doComplete(t){return this._getTextDocument(t)?await Promise.resolve({suggestions:[]}):await Promise.resolve({suggestions:[]})}async getApiLibrary(t){return await this._apiService.getApiLibrary(t)}_getTextDocument(t){let r=this._ctx.getMirrorModels();for(let n of r)if(n.uri.toString()===t)return Ih.create(t,this._languageId,n.version,n.getValue());return null}};})();
|
|
169
|
+
/*! Bundled license information:
|
|
170
|
+
|
|
171
|
+
@esri/arcgis-html-sanitizer/dist/esm/index.js:
|
|
172
|
+
(*!
|
|
173
|
+
* @esri/arcgis-html-sanitizer - v4.0.3 - Wed Jul 03 2024 17:50:35 GMT-0400 (Eastern Daylight Time)
|
|
174
|
+
* Copyright (c) 2024 - Environmental Systems Research Institute, Inc.
|
|
175
|
+
* Apache-2.0
|
|
176
|
+
*
|
|
177
|
+
* js-xss
|
|
178
|
+
* Copyright (c) 2012-2018 Zongmin Lei(雷宗民) <leizongmin@gmail.com>
|
|
179
|
+
* http://ucdok.com
|
|
180
|
+
* MIT License, see https://github.com/leizongmin/js-xss/blob/master/LICENSE for details
|
|
181
|
+
*)
|
|
182
|
+
(*! *****************************************************************************
|
|
183
|
+
Copyright (c) Microsoft Corporation.
|
|
184
|
+
|
|
185
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
186
|
+
purpose with or without fee is hereby granted.
|
|
187
|
+
|
|
188
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
189
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
190
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
191
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
192
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
193
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
194
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
195
|
+
***************************************************************************** *)
|
|
196
|
+
|
|
197
|
+
@esri/calcite-components/dist/components/resources.js:
|
|
198
|
+
(*!
|
|
199
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
200
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
201
|
+
* v2.9.0
|
|
202
|
+
*)
|
|
203
|
+
|
|
204
|
+
@stencil/core/internal/client/shadow-css.js:
|
|
205
|
+
(**
|
|
206
|
+
* @license
|
|
207
|
+
* Copyright Google Inc. All Rights Reserved.
|
|
208
|
+
*
|
|
209
|
+
* Use of this source code is governed by an MIT-style license that can be
|
|
210
|
+
* found in the LICENSE file at https://angular.io/license
|
|
211
|
+
*
|
|
212
|
+
* This file is a port of shadowCSS from `webcomponents.js` to TypeScript.
|
|
213
|
+
* https://github.com/webcomponents/webcomponentsjs/blob/4efecd7e0e/src/ShadowCSS/ShadowCSS.js
|
|
214
|
+
* https://github.com/angular/angular/blob/master/packages/compiler/src/shadow_css.ts
|
|
215
|
+
*)
|
|
216
|
+
|
|
217
|
+
@stencil/core/internal/client/index.js:
|
|
218
|
+
(*!__STENCIL_STATIC_IMPORT_SWITCH__*)
|
|
219
|
+
|
|
220
|
+
@esri/calcite-components/dist/components/index.js:
|
|
221
|
+
(*!
|
|
222
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
223
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
224
|
+
* v2.9.0
|
|
225
|
+
*)
|
|
226
|
+
|
|
227
|
+
@esri/calcite-components/dist/components/guid.js:
|
|
228
|
+
(*!
|
|
229
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
230
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
231
|
+
* v2.9.0
|
|
232
|
+
*)
|
|
233
|
+
|
|
234
|
+
@esri/calcite-components/dist/components/dom.js:
|
|
235
|
+
(*!
|
|
236
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
237
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
238
|
+
* v2.9.0
|
|
239
|
+
*)
|
|
240
|
+
(*!
|
|
241
|
+
* tabbable 6.2.0
|
|
242
|
+
* @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
|
|
243
|
+
*)
|
|
244
|
+
|
|
245
|
+
@esri/calcite-components/dist/components/form.js:
|
|
246
|
+
(*!
|
|
247
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
248
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
249
|
+
* v2.9.0
|
|
250
|
+
*)
|
|
251
|
+
|
|
252
|
+
@esri/calcite-components/dist/components/interactive.js:
|
|
253
|
+
(*!
|
|
254
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
255
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
256
|
+
* v2.9.0
|
|
257
|
+
*)
|
|
258
|
+
|
|
259
|
+
@esri/calcite-components/dist/components/component.js:
|
|
260
|
+
(*!
|
|
261
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
262
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
263
|
+
* v2.9.0
|
|
264
|
+
*)
|
|
265
|
+
|
|
266
|
+
@esri/calcite-components/dist/components/label2.js:
|
|
267
|
+
(*!
|
|
268
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
269
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
270
|
+
* v2.9.0
|
|
271
|
+
*)
|
|
272
|
+
|
|
273
|
+
@esri/calcite-components/dist/components/loadable.js:
|
|
274
|
+
(*!
|
|
275
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
276
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
277
|
+
* v2.9.0
|
|
278
|
+
*)
|
|
279
|
+
|
|
280
|
+
@esri/calcite-components/dist/components/key.js:
|
|
281
|
+
(*!
|
|
282
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
283
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
284
|
+
* v2.9.0
|
|
285
|
+
*)
|
|
286
|
+
|
|
287
|
+
@esri/calcite-components/dist/components/observers.js:
|
|
288
|
+
(*!
|
|
289
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
290
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
291
|
+
* v2.9.0
|
|
292
|
+
*)
|
|
293
|
+
|
|
294
|
+
@esri/calcite-components/dist/components/locale.js:
|
|
295
|
+
(*!
|
|
296
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
297
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
298
|
+
* v2.9.0
|
|
299
|
+
*)
|
|
300
|
+
|
|
301
|
+
@esri/calcite-components/dist/components/t9n.js:
|
|
302
|
+
(*!
|
|
303
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
304
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
305
|
+
* v2.9.0
|
|
306
|
+
*)
|
|
307
|
+
|
|
308
|
+
@esri/calcite-components/dist/components/icon.js:
|
|
309
|
+
(*!
|
|
310
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
311
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
312
|
+
* v2.9.0
|
|
313
|
+
*)
|
|
314
|
+
|
|
315
|
+
@esri/calcite-components/dist/components/loader.js:
|
|
316
|
+
(*!
|
|
317
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
318
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
319
|
+
* v2.9.0
|
|
320
|
+
*)
|
|
321
|
+
|
|
322
|
+
@esri/calcite-components/dist/components/button.js:
|
|
323
|
+
(*!
|
|
324
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
325
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
326
|
+
* v2.9.0
|
|
327
|
+
*)
|
|
328
|
+
|
|
329
|
+
@esri/calcite-components/dist/components/calcite-button.js:
|
|
330
|
+
(*!
|
|
331
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
332
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
333
|
+
* v2.9.0
|
|
334
|
+
*)
|
|
335
|
+
|
|
336
|
+
@esri/calcite-components/dist/components/Validation.js:
|
|
337
|
+
(*!
|
|
338
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
339
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
340
|
+
* v2.9.0
|
|
341
|
+
*)
|
|
342
|
+
|
|
343
|
+
@esri/calcite-components/dist/components/input.js:
|
|
344
|
+
(*!
|
|
345
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
346
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
347
|
+
* v2.9.0
|
|
348
|
+
*)
|
|
349
|
+
|
|
350
|
+
@esri/calcite-components/dist/components/input-message.js:
|
|
351
|
+
(*!
|
|
352
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
353
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
354
|
+
* v2.9.0
|
|
355
|
+
*)
|
|
356
|
+
|
|
357
|
+
@esri/calcite-components/dist/components/progress.js:
|
|
358
|
+
(*!
|
|
359
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
360
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
361
|
+
* v2.9.0
|
|
362
|
+
*)
|
|
363
|
+
|
|
364
|
+
@esri/calcite-components/dist/components/input2.js:
|
|
365
|
+
(*!
|
|
366
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
367
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
368
|
+
* v2.9.0
|
|
369
|
+
*)
|
|
370
|
+
|
|
371
|
+
@esri/calcite-components/dist/components/calcite-input.js:
|
|
372
|
+
(*!
|
|
373
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
374
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
375
|
+
* v2.9.0
|
|
376
|
+
*)
|
|
377
|
+
|
|
378
|
+
@esri/calcite-components/dist/components/label.js:
|
|
379
|
+
(*!
|
|
380
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
381
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
382
|
+
* v2.9.0
|
|
383
|
+
*)
|
|
384
|
+
|
|
385
|
+
@esri/calcite-components/dist/components/calcite-label.js:
|
|
386
|
+
(*!
|
|
387
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
388
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
389
|
+
* v2.9.0
|
|
390
|
+
*)
|
|
391
|
+
|
|
392
|
+
@esri/calcite-components/dist/components/conditionalSlot.js:
|
|
393
|
+
(*!
|
|
394
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
395
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
396
|
+
* v2.9.0
|
|
397
|
+
*)
|
|
398
|
+
|
|
399
|
+
@esri/calcite-components/dist/components/focusTrapComponent.js:
|
|
400
|
+
(*!
|
|
401
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
402
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
403
|
+
* v2.9.0
|
|
404
|
+
*)
|
|
405
|
+
(*!
|
|
406
|
+
* focus-trap 7.5.4
|
|
407
|
+
* @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
|
|
408
|
+
*)
|
|
409
|
+
|
|
410
|
+
@esri/calcite-components/dist/components/openCloseComponent.js:
|
|
411
|
+
(*!
|
|
412
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
413
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
414
|
+
* v2.9.0
|
|
415
|
+
*)
|
|
416
|
+
|
|
417
|
+
@esri/calcite-components/dist/components/scrim.js:
|
|
418
|
+
(*!
|
|
419
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
420
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
421
|
+
* v2.9.0
|
|
422
|
+
*)
|
|
423
|
+
|
|
424
|
+
@esri/calcite-components/dist/components/calcite-modal.js:
|
|
425
|
+
(*!
|
|
426
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
427
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
428
|
+
* v2.9.0
|
|
429
|
+
*)
|
|
430
|
+
|
|
431
|
+
@esri/calcite-components/dist/components/resources2.js:
|
|
432
|
+
(*!
|
|
433
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
434
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
435
|
+
* v2.9.0
|
|
436
|
+
*)
|
|
437
|
+
|
|
438
|
+
@esri/calcite-components/dist/components/calcite-notice.js:
|
|
439
|
+
(*!
|
|
440
|
+
* All material copyright ESRI, All Rights Reserved, unless otherwise specified.
|
|
441
|
+
* See https://github.com/Esri/calcite-design-system/blob/main/LICENSE.md for details.
|
|
442
|
+
* v2.9.0
|
|
443
|
+
*)
|
|
444
|
+
*/
|