@arcgis/core 4.24.0-next.20220429 → 4.24.0-next.20220430

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/assets/esri/core/workers/RemoteClient.js +1 -1
  2. package/assets/esri/core/workers/chunks/{3a43a2918b44781aaf85.js → 055a0ebf22a82f859474.js} +1 -1
  3. package/assets/esri/core/workers/chunks/{3273b6be43eeb49ee842.js → 0b12ff7b2ed2838afbb8.js} +1 -1
  4. package/assets/esri/core/workers/chunks/0e25548573baf855e394.js +1 -0
  5. package/assets/esri/core/workers/chunks/{c388ac33496f004d56f3.js → 135a90ae61f3b3cae91b.js} +1 -1
  6. package/assets/esri/core/workers/chunks/{54f9b1ab9d472bf4baca.js → 1facbda248863cf72cbd.js} +1 -1
  7. package/assets/esri/core/workers/chunks/2133499e642193f6738f.js +1 -0
  8. package/assets/esri/core/workers/chunks/{3c572629f46e5093223c.js → 30333a95dc0a44e23fb5.js} +1 -1
  9. package/assets/esri/core/workers/chunks/{7afe89eafab00afb31f2.js → 30837d93116f0337972f.js} +1 -1
  10. package/assets/esri/core/workers/chunks/31df729c17470245288c.js +2 -0
  11. package/assets/esri/core/workers/chunks/{c0bf663240df7be68131.js.LICENSE.txt → 31df729c17470245288c.js.LICENSE.txt} +1 -1
  12. package/assets/esri/core/workers/chunks/{e5d6f3815ecab8560404.js → 4130ea1f5a9f197168d7.js} +1 -1
  13. package/assets/esri/core/workers/chunks/{f5855075104c12bf71d8.js → 59e341b2db44351bf557.js} +1 -1
  14. package/assets/esri/core/workers/chunks/{73630d52768e3d932f30.js → 5a10b58533b4116115ac.js} +1 -1
  15. package/assets/esri/core/workers/chunks/{dc193247a1980360ec4f.js → 8e98ff9404a802352037.js} +1 -1
  16. package/assets/esri/core/workers/chunks/{863cfe35ee640bac103f.js → 94e51fe1c539df6257c2.js} +1 -1
  17. package/assets/esri/core/workers/chunks/{cbe7e6283a427a618d4b.js → 9519a02b9b8db88a3150.js} +1 -1
  18. package/assets/esri/core/workers/chunks/a59ee7d2b98c85f27dd2.js +1 -0
  19. package/assets/esri/core/workers/chunks/{92ef9b0c61640e0ecbb4.js → a5dbab94697757c87c49.js} +1 -1
  20. package/assets/esri/core/workers/chunks/{147d3ee9aa81d7b2b7fa.js → a6406a248b7b2ed65f35.js} +1 -1
  21. package/assets/esri/core/workers/chunks/{ebdf61eb364ac0856f40.js → acbd0f4d72d1f5d8e4e8.js} +1 -1
  22. package/assets/esri/core/workers/chunks/ad68fe924456d6d7d4f0.js +1 -0
  23. package/assets/esri/core/workers/chunks/b06c949fc7d08e376a5f.js +1 -0
  24. package/assets/esri/core/workers/chunks/c9b09099488d0e719dfb.js +1 -0
  25. package/assets/esri/core/workers/chunks/{4a05d0dfa73ff570e1fa.js → d15e6662d90718411d62.js} +1 -1
  26. package/assets/esri/core/workers/chunks/{b74b9dceabbf7b1aec39.js → d16aac3461af9cee0c29.js} +1 -1
  27. package/assets/esri/core/workers/chunks/{b9d9be39cd64f28dd478.js → d60dd3e1028f714f2258.js} +1 -1
  28. package/assets/esri/core/workers/chunks/{cab6decfcb3f596a3837.js → d8c59b1d73650c060dfb.js} +1 -1
  29. package/assets/esri/core/workers/chunks/{d24339b37cc9316e6d99.js → dcb6e1b33402d7fa455b.js} +1 -1
  30. package/assets/esri/core/workers/chunks/{a8da24116180d708cf81.js → df653bca2b14dffc82d1.js} +1 -1
  31. package/chunks/index.js +1 -1
  32. package/config.js +1 -1
  33. package/interfaces.d.ts +8 -0
  34. package/layers/mixins/PortalLayer.js +1 -1
  35. package/package.json +2 -2
  36. package/request.js +1 -1
  37. package/support/revision.js +1 -1
  38. package/views/2d/engine/vectorTiles/TileParser.js +1 -1
  39. package/views/2d/layers/features/support/GraphicsReader.js +1 -1
  40. package/views/2d/layers/graphics/GraphicsView2D.js +1 -1
  41. package/views/3d/terrain/PatchRenderData.js +1 -1
  42. package/views/3d/terrain/TerrainSurface.js +1 -1
  43. package/views/3d/terrain/Tile.js +1 -1
  44. package/widgets/FeatureTable/Grid/Grid.js +2 -2
  45. package/widgets/Sketch/SketchViewModel.js +1 -1
  46. package/assets/esri/core/workers/chunks/3f6b17c9d2629ed396da.js +0 -1
  47. package/assets/esri/core/workers/chunks/68d57660c7c71b82ff3c.js +0 -1
  48. package/assets/esri/core/workers/chunks/6ef8de3aa9a8d9c22161.js +0 -1
  49. package/assets/esri/core/workers/chunks/b548bf032c8af34fe155.js +0 -1
  50. package/assets/esri/core/workers/chunks/bbcae04235830debd814.js +0 -1
  51. package/assets/esri/core/workers/chunks/c0bf663240df7be68131.js +0 -2
  52. package/assets/esri/core/workers/chunks/cd9668acbe3babd2b188.js +0 -1
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1534],{5732:(e,t,r)=>{r.d(t,{a:()=>s,c:()=>n,g:()=>a});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function s(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}},41534:(e,t,r)=>{r.r(t),r.d(t,{WhereClause:()=>A,defaultAttributeAdapter:()=>H});var n=r(80442);function a(e,t){const r=s[e.toLowerCase()];return null!=r&&t>=r.minParams&&t<=r.maxParams}const s={min:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.min.apply(Math,e[0])},max:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.max.apply(Math,e[0])},avg:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:u(e[0])},sum:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:function(e){let t=0;for(let r=0;r<e.length;r++)t+=e[r];return t}(e[0])},stddev:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.sqrt(i(e[0]))},count:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:e[0].length},var:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:i(e[0])}};function u(e){let t=0;for(let r=0;r<e.length;r++)t+=e[r];return t/e.length}function i(e){const t=u(e),r=e.length;let n=0;for(const r of e)n+=(r-t)**2;return r>1?n/(r-1):0}var o=r(19153);class l{constructor(){this.op="+",this.day=0,this.second=0,this.hour=0,this.month=0,this.year=0,this.minute=0}static _fixDefaults(e){if(null!==e.precision||null!==e.secondary)throw new Error("Primary and Secondary SqlInterval qualifiers not supported")}static createFromMilliseconds(e){const t=new l;return t.second=e/1e3,t}static createFromValueAndQualifer(e,t,r){let n=null;const a=new l;if(a.op="-"===r?"-":"+","interval-period"===t.type){l._fixDefaults(t);const r=new RegExp("^[0-9]{1,}$");if("year"===t.period||"month"===t.period)throw new Error("Year-Month Intervals not supported");if(!r.test(e))throw new Error("Illegal Interval");a[t.period]=parseFloat(e)}else{if(l._fixDefaults(t.start),l._fixDefaults(t.end),"year"===t.start.period||"month"===t.start.period)throw new Error("Year-Month Intervals not supported");if("year"===t.end.period||"month"===t.end.period)throw new Error("Year-Month Intervals not supported");switch(t.start.period){case"day":switch(t.end.period){case"hour":if(n=new RegExp("^[0-9]{1,} [0-9]{1,}$"),!n.test(e))throw new Error("Illegal Interval");a[t.start.period]=parseFloat(e.split(" ")[0]),a[t.end.period]=parseFloat(e.split(" ")[1]);break;case"minute":if(n=new RegExp("^[0-9]{1,} [0-9]{1,2}:[0-9]{1,}$"),!n.test(e))throw new Error("Illegal Interval");{a[t.start.period]=parseFloat(e.split(" ")[0]);const r=e.split(" ")[1].split(":");a.hour=parseFloat(r[0]),a.minute=parseFloat(r[1])}break;case"second":if(n=new RegExp("^[0-9]{1,} [0-9]{1,2}:[0-9]{1,2}:[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$"),!n.test(e))throw new Error("Illegal Interval");{a[t.start.period]=parseFloat(e.split(" ")[0]);const r=e.split(" ")[1].split(":");a.hour=parseFloat(r[0]),a.minute=parseFloat(r[1]),a.second=parseFloat(r[2])}break;default:throw"Invalid Interval."}break;case"hour":switch(t.end.period){case"minute":if(n=new RegExp("^[0-9]{1,}:[0-9]{1,}$"),!n.test(e))throw new Error("Illegal Interval");a.hour=parseFloat(e.split(":")[0]),a.minute=parseFloat(e.split(":")[1]);break;case"second":if(n=new RegExp("^[0-9]{1,}:[0-9]{1,2}:[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$"),!n.test(e))throw new Error("Illegal Interval");{const t=e.split(":");a.hour=parseFloat(t[0]),a.minute=parseFloat(t[1]),a.second=parseFloat(t[2])}break;default:throw"Invalid Interval."}break;case"minute":if("second"!==t.end.period)throw"Invalid Interval.";if(n=new RegExp("^[0-9]{1,}:[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$"),!n.test(e))throw new Error("Illegal Interval");{const t=e.split(":");a.minute=parseFloat(t[0]),a.second=parseFloat(t[1])}break;default:throw"Invalid Interval."}}return a}valueInMilliseconds(){return("-"===this.op?-1:1)*(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 c(e,t){const r=f[e.toLowerCase()];if(null==r)throw new Error("Function Not Recognised");if(t.length<r.minParams||t.length>r.maxParams)throw new Error(`Invalid Parameter count for call to ${e.toUpperCase()}`);return r.evaluate(t)}function p(e,t){const r=f[e.toLowerCase()];return null!=r&&t>=r.minParams&&t<=r.maxParams}const f={extract:{minParams:2,maxParams:2,evaluate:([e,t])=>{if(null==t)return null;if(t instanceof Date)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()}throw new Error("Invalid Parameter for call to EXTRACT")}},substring:{minParams:2,maxParams:3,evaluate:e=>{if(2===e.length){const[t,r]=e;return null==t||null==r?null:t.toString().substring(r-1)}if(3===e.length){const[t,r,n]=e;return null==t||null==r||null==n?null:n<=0?"":t.toString().substring(r-1,r+n-1)}}},position:{minParams:2,maxParams:2,evaluate:([e,t])=>null==e||null==t?null:t.indexOf(e)+1},trim:{minParams:2,maxParams:3,evaluate:e=>{const t=3===e.length,r=t?e[1]:" ",n=t?e[2]:e[1];if(null==r||null==n)return null;const a=`(${(0,o.Qs)(r)})`;switch(e[0]){case"BOTH":return n.replace(new RegExp(`^${a}*|${a}*$`,"g"),"");case"LEADING":return n.replace(new RegExp(`^${a}*`,"g"),"");case"TRAILING":return n.replace(new RegExp(`${a}*$`,"g"),"")}throw new Error("Invalid Parameter for call to TRIM")}},abs:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.abs(e[0])},ceiling:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.ceil(e[0])},floor:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.floor(e[0])},log:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.log(e[0])},log10:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.log(e[0])*Math.LOG10E},sin:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.sin(e[0])},cos:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.cos(e[0])},tan:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.tan(e[0])},asin:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.asin(e[0])},acos:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.acos(e[0])},atan:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:Math.atan(e[0])},sign:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:e[0]>0?1:e[1]<0?-1:0},power:{minParams:2,maxParams:2,evaluate:e=>null==e[0]||null==e[1]?null:e[0]**e[1]},mod:{minParams:2,maxParams:2,evaluate:e=>null==e[0]||null==e[1]?null:e[0]%e[1]},round:{minParams:1,maxParams:2,evaluate:e=>{const t=e[0],r=2===e.length?10**e[1]:1;return null==t?null:Math.round(t*r)/r}},truncate:{minParams:1,maxParams:2,evaluate:e=>null==e[0]?null:1===e.length?parseInt(e[0].toFixed(0),10):parseFloat(e[0].toFixed(e[1]))},char_length:{minParams:1,maxParams:1,evaluate:e=>"string"==typeof e[0]||e[0]instanceof String?e[0].length:0},concat:{minParams:1,maxParams:1/0,evaluate:e=>{let t="";for(let r=0;r<e.length;r++){if(null==e[r])return null;t+=e[r].toString()}return t}},lower:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:e[0].toString().toLowerCase()},upper:{minParams:1,maxParams:1,evaluate:e=>null==e[0]?null:e[0].toString().toUpperCase()}};r(5732);var v,h,d={exports:{}};h=function(){function e(t,r,n,a){var s=Error.call(this,t);return Object.setPrototypeOf&&Object.setPrototypeOf(s,e.prototype),s.expected=r,s.found=n,s.location=a,s.name="SyntaxError",s}function t(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.prototype.format=function(e){var r="Error: "+this.message;if(this.location){var n,a=null;for(n=0;n<e.length;n++)if(e[n].source===this.location.source){a=e[n].text.split(/\r\n|\n|\r/g);break}var s=this.location.start,u=this.location.source+":"+s.line+":"+s.column;if(a){var i=this.location.end,o=t("",s.line.toString().length),l=a[s.line-1],c=s.line===i.line?i.column:l.length+1;r+="\n --\x3e "+u+"\n"+o+" |\n"+s.line+" | "+l+"\n"+o+" | "+t("",s.column-1)+t("",c-s.column,"^")}else r+="\n at "+u}return r},e.buildMessage=function(e,t){var r={literal:function(e){return'"'+a(e.text)+'"'},class:function(e){var t=e.parts.map((function(e){return Array.isArray(e)?s(e[0])+"-"+s(e[1]):s(e)}));return"["+(e.inverted?"^":"")+t+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function a(e){return e.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(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function s(e){return e.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(e){return"\\x0"+n(e)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(e){return"\\x"+n(e)}))}function u(e){return r[e.type](e)}return"Expected "+function(e){var t,r,n=e.map(u);if(n.sort(),n.length>0){for(t=1,r=1;t<n.length;t++)n[t-1]!==n[t]&&(n[r]=n[t],r++);n.length=r}switch(n.length){case 1:return n[0];case 2:return n[0]+" or "+n[1];default:return n.slice(0,-1).join(", ")+", or "+n[n.length-1]}}(e)+" but "+function(e){return e?'"'+a(e)+'"':"end of input"}(t)+" found."},{SyntaxError:e,parse:function(t,r){var n,a={},s=(r=void 0!==r?r:{}).grammarSource,u={start:Ye},i=Ye,o="''",l=/^[A-Za-z_\x80-\uFFFF]/,c=/^[A-Za-z0-9_]/,p=/^[A-Za-z0-9_.\x80-\uFFFF]/,f=/^[^']/,v=/^[0-9]/,h=/^[eE]/,d=/^[+\-]/,m=/^[ \t\n\r]/,g=/^[^`]/,w=He("!",!1),y=He("=",!1),N=He(">=",!1),b=He(">",!1),T=He("<=",!1),x=He("<>",!1),_=He("<",!1),A=He("!=",!1),I=He("+",!1),E=He("-",!1),S=He("*",!1),C=He("/",!1),P=qe([["A","Z"],["a","z"],"_",["€","￿"]],!1,!1),F=qe([["A","Z"],["a","z"],["0","9"],"_"],!1,!1),L=qe([["A","Z"],["a","z"],["0","9"],"_",".",["€","￿"]],!1,!1),M=He("@",!1),O=He("'",!1),D=He("N'",!1),R=He("''",!1),J=qe(["'"],!0,!1),k=He(".",!1),$=qe([["0","9"]],!1,!1),U=qe(["e","E"],!1,!1),H=qe(["+","-"],!1,!1),q=He("NULL",!0),V=He("TRUE",!0),B=He("FALSE",!0),j=He("IN",!0),Y=He("IS",!0),z=He("LIKE",!0),G=He("ESCAPE",!0),W=He("NOT",!0),Z=He("AND",!0),K=He("OR",!0),Q=He("BETWEEN",!0),X=He("FROM",!0),ee=He("FOR",!0),te=He("SUBSTRING",!0),re=He("EXTRACT",!0),ne=He("TRIM",!0),ae=He("POSITION",!0),se=He("TIMESTAMP",!0),ue=He("DATE",!0),ie=He("LEADING",!0),oe=He("TRAILING",!0),le=He("BOTH",!0),ce=He("TO",!0),pe=He("INTERVAL",!0),fe=He("YEAR",!0),ve=He("MONTH",!0),he=He("DAY",!0),de=He("HOUR",!0),me=He("MINUTE",!0),ge=He("SECOND",!0),we=He("CASE",!0),ye=He("END",!0),Ne=He("WHEN",!0),be=He("THEN",!0),Te=He("ELSE",!0),xe=He(",",!1),_e=He("(",!1),Ae=He(")",!1),Ie=qe([" ","\t","\n","\r"],!1,!1),Ee=He("`",!1),Se=qe(["`"],!0,!1),Ce=function(e,t){return dr(e,t)},Pe=function(e){return e[0]+" "+e[2]},Fe=function(e,t){return e+t.join("")},Le=function(e){return{type:"interval-period",period:e.value,precision:null,secondary:null}},Me=function(e,t){return{type:"interval-period",period:"second",precision:e,secondary:t}},Oe=function(e){return parseFloat(e)},De=function(e,t){return{type:"when_clause",operand:e,value:t}},Re=0,Je=[{line:1,column:1}],ke=0,$e=[],Ue=0;if("startRule"in r){if(!(r.startRule in u))throw new Error("Can't start parsing from rule \""+r.startRule+'".');i=u[r.startRule]}function He(e,t){return{type:"literal",text:e,ignoreCase:t}}function qe(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function Ve(e){var r,n=Je[e];if(n)return n;for(r=e-1;!Je[r];)r--;for(n={line:(n=Je[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return Je[e]=n,n}function Be(e,t){var r=Ve(e),n=Ve(t);return{source:s,start:{offset:e,line:r.line,column:r.column},end:{offset:t,line:n.line,column:n.column}}}function je(e){Re<ke||(Re>ke&&(ke=Re,$e=[]),$e.push(e))}function Ye(){var e,t;return e=Re,pr(),(t=Ge())!==a?(pr(),e=t):(Re=e,e=a),e}function ze(){var e,t,r,n,s,u,i,o;if(e=Re,(t=Ge())!==a){for(r=[],n=Re,s=pr(),(u=or())!==a?(i=pr(),(o=Ge())!==a?n=s=[s,u,i,o]:(Re=n,n=a)):(Re=n,n=a);n!==a;)r.push(n),n=Re,s=pr(),(u=or())!==a?(i=pr(),(o=Ge())!==a?n=s=[s,u,i,o]:(Re=n,n=a)):(Re=n,n=a);e=function(e,t){var r={type:"expr_list"},n=function(e,t,r){return function(e,t){for(var r=[e],n=0;n<t.length;n++)r.push(t[n][3]);return r}(e,t)}(e,t);return r.value=n,r}(t,r)}else Re=e,e=a;return e}function Ge(){var e,t,r,n,s,u,i,o;if(e=Re,(t=We())!==a){for(r=[],n=Re,s=pr(),(u=Rt())!==a?(i=pr(),(o=We())!==a?n=s=[s,u,i,o]:(Re=n,n=a)):(Re=n,n=a);n!==a;)r.push(n),n=Re,s=pr(),(u=Rt())!==a?(i=pr(),(o=We())!==a?n=s=[s,u,i,o]:(Re=n,n=a)):(Re=n,n=a);e=Ce(t,r)}else Re=e,e=a;return e}function We(){var e,t,r,n,s,u,i,o;if(e=Re,(t=Ze())!==a){for(r=[],n=Re,s=pr(),(u=Dt())!==a?(i=pr(),(o=Ze())!==a?n=s=[s,u,i,o]:(Re=n,n=a)):(Re=n,n=a);n!==a;)r.push(n),n=Re,s=pr(),(u=Dt())!==a?(i=pr(),(o=Ze())!==a?n=s=[s,u,i,o]:(Re=n,n=a)):(Re=n,n=a);e=Ce(t,r)}else Re=e,e=a;return e}function Ze(){var e,r,n,s,u;return e=Re,(r=Ot())===a&&(r=Re,33===t.charCodeAt(Re)?(n="!",Re++):(n=a,0===Ue&&je(w)),n!==a?(s=Re,Ue++,61===t.charCodeAt(Re)?(u="=",Re++):(u=a,0===Ue&&je(y)),Ue--,u===a?s=void 0:(Re=s,s=a),s!==a?r=n=[n,s]:(Re=r,r=a)):(Re=r,r=a)),r!==a?(n=pr(),(s=Ze())!==a?e=function(e){return function(e,t){return{type:"unary_expr",operator:"NOT",expr:t}}(0,e)}(s):(Re=e,e=a)):(Re=e,e=a),e===a&&(e=function(){var e,t,r;return e=Re,(t=et())!==a?(pr(),(r=function(){var e;return(e=function(){var e,t,r,n,s,u;if(e=[],t=Re,r=pr(),(n=Ke())!==a?(s=pr(),(u=et())!==a?t=r=[r,n,s,u]:(Re=t,t=a)):(Re=t,t=a),t!==a)for(;t!==a;)e.push(t),t=Re,r=pr(),(n=Ke())!==a?(s=pr(),(u=et())!==a?t=r=[r,n,s,u]:(Re=t,t=a)):(Re=t,t=a);else e=a;return e!==a&&(e=function(e){return{type:"arithmetic",tail:e}}(e)),e}())===a&&(e=function(){var e,t,r,n;return e=Re,(t=Xe())!==a?(pr(),(r=lr())!==a?(pr(),(n=ze())!==a?(pr(),cr()!==a?e=function(e,t){return{op:e,right:t}}(t,n):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a),e===a&&(e=Re,(t=Xe())!==a?(pr(),(r=lr())!==a?(pr(),(n=cr())!==a?e=function(e){return{op:e,right:{type:"expr_list",value:[]}}}(t):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a),e===a&&(e=Re,(t=Xe())!==a?(pr(),(r=lt())!==a?e=function(e,t){return{op:e,right:t}}(t,r):(Re=e,e=a)):(Re=e,e=a))),e}())===a&&(e=function(){var e,t,r,n,s,u;return e=Re,(t=Ot())!==a?(pr(),(r=Jt())!==a?(pr(),(n=et())!==a?(pr(),(s=Dt())!==a?(pr(),(u=et())!==a?e=function(e,t,r){return{op:"NOT"+e,right:{type:"expr_list",value:[t,r]}}}(r,n,u):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a),e===a&&(e=Re,(t=Jt())!==a?(pr(),(r=et())!==a?(pr(),(n=Dt())!==a?(pr(),(s=et())!==a?e=function(e,t,r){return{op:e,right:{type:"expr_list",value:[t,r]}}}(t,r,s):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)),e}())===a&&(e=function(){var e,t,r,n;return e=Re,(t=Ft())!==a?(pr(),(r=Ot())!==a?(pr(),(n=et())!==a?e=function(e,t){return{op:e+"NOT",right:t}}(t,n):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a),e===a&&(e=Re,(t=Ft())!==a?(pr(),(r=et())!==a?e=function(e,t){return{op:e,right:t}}(t,r):(Re=e,e=a)):(Re=e,e=a)),e}())===a&&(e=function(){var e,t,r,n;return e=Re,(t=Qe())!==a?(pr(),(r=mt())!==a?(pr(),Mt()!==a?(pr(),(n=gt())!==a?e=function(e,t,r){return{op:e,right:t,escape:r.value}}(t,r,n):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a),e===a&&(e=Re,(t=Qe())!==a?(pr(),(r=mt())!==a?e=function(e,t){return{op:e,right:t,escape:""}}(t,r):(Re=e,e=a)):(Re=e,e=a)),e}()),e}())===a&&(r=null),e=function(e,t){return""==t||null==t||null==t?e:"arithmetic"==t.type?dr(e,t.tail):hr(t.op,e,t.right,t.escape)}(t,r)):(Re=e,e=a),e}()),e}function Ke(){var e;return">="===t.substr(Re,2)?(e=">=",Re+=2):(e=a,0===Ue&&je(N)),e===a&&(62===t.charCodeAt(Re)?(e=">",Re++):(e=a,0===Ue&&je(b)),e===a&&("<="===t.substr(Re,2)?(e="<=",Re+=2):(e=a,0===Ue&&je(T)),e===a&&("<>"===t.substr(Re,2)?(e="<>",Re+=2):(e=a,0===Ue&&je(x)),e===a&&(60===t.charCodeAt(Re)?(e="<",Re++):(e=a,0===Ue&&je(_)),e===a&&(61===t.charCodeAt(Re)?(e="=",Re++):(e=a,0===Ue&&je(y)),e===a&&("!="===t.substr(Re,2)?(e="!=",Re+=2):(e=a,0===Ue&&je(A)))))))),e}function Qe(){var e,t,r,n,s;return e=Re,t=Re,(r=Ot())!==a?(n=pr(),(s=Lt())!==a?t=r=[r,n,s]:(Re=t,t=a)):(Re=t,t=a),t!==a&&(t=Pe(t)),(e=t)===a&&(e=Lt()),e}function Xe(){var e,t,r,n,s;return e=Re,t=Re,(r=Ot())!==a?(n=pr(),(s=Pt())!==a?t=r=[r,n,s]:(Re=t,t=a)):(Re=t,t=a),t!==a&&(t=Pe(t)),(e=t)===a&&(e=Pt()),e}function et(){var e,t,r,n,s,u,i,o;if(e=Re,(t=rt())!==a){for(r=[],n=Re,s=pr(),(u=tt())!==a?(i=pr(),(o=rt())!==a?n=s=[s,u,i,o]:(Re=n,n=a)):(Re=n,n=a);n!==a;)r.push(n),n=Re,s=pr(),(u=tt())!==a?(i=pr(),(o=rt())!==a?n=s=[s,u,i,o]:(Re=n,n=a)):(Re=n,n=a);e=Ce(t,r)}else Re=e,e=a;return e}function tt(){var e;return 43===t.charCodeAt(Re)?(e="+",Re++):(e=a,0===Ue&&je(I)),e===a&&(45===t.charCodeAt(Re)?(e="-",Re++):(e=a,0===Ue&&je(E))),e}function rt(){var e,t,r,n,s,u,i,o;if(e=Re,(t=at())!==a){for(r=[],n=Re,s=pr(),(u=nt())!==a?(i=pr(),(o=at())!==a?n=s=[s,u,i,o]:(Re=n,n=a)):(Re=n,n=a);n!==a;)r.push(n),n=Re,s=pr(),(u=nt())!==a?(i=pr(),(o=at())!==a?n=s=[s,u,i,o]:(Re=n,n=a)):(Re=n,n=a);e=function(e,t){return dr(e,t)}(t,r)}else Re=e,e=a;return e}function nt(){var e;return 42===t.charCodeAt(Re)?(e="*",Re++):(e=a,0===Ue&&je(S)),e===a&&(47===t.charCodeAt(Re)?(e="/",Re++):(e=a,0===Ue&&je(C))),e}function at(){var e,t;return(e=function(){var e;return(e=gt())===a&&(e=function(){var e,t,r,n;return e=Re,(t=function(){var e,t,r,n;return e=Re,(t=bt())!==a&&(r=Tt())!==a&&(n=xt())!==a?e=function(e,t,r){return parseFloat(e+t+r)}(t,r,n):(Re=e,e=a),e===a&&(e=Re,(t=bt())!==a&&(r=Tt())!==a?e=function(e,t){return parseFloat(e+t)}(t,r):(Re=e,e=a),e===a&&(e=Re,(t=bt())!==a&&(r=xt())!==a?e=function(e,t){return parseFloat(e+t)}(t,r):(Re=e,e=a),e===a&&(e=Re,(t=bt())!==a&&(t=function(e){return parseFloat(e)}(t)),e=t))),e}())!==a?(r=Re,Ue++,n=ut(),Ue--,n===a?r=void 0:(Re=r,r=a),r!==a?e=function(e){return{type:"number",value:e}}(t):(Re=e,e=a)):(Re=e,e=a),e}())===a&&(e=function(){var e,t;return e=Re,(t=St())!==a&&(t={type:"bool",value:!0}),(e=t)===a&&(e=Re,(t=Ct())!==a&&(t={type:"bool",value:!1}),e=t),e}())===a&&(e=function(){var e;return(e=Et())!==a&&(e={type:"null",value:null}),e}())===a&&(e=function(){var e,t;return e=Re,jt()!==a?(pr(),(t=mt())!==a?e=function(e){return{type:"date",value:e.value}}(t):(Re=e,e=a)):(Re=e,e=a),e}())===a&&(e=function(){var e,t;return e=Re,Bt()!==a?(pr(),(t=mt())!==a?e=function(e){return{type:"timestamp",value:e.value}}(t):(Re=e,e=a)):(Re=e,e=a),e}())===a&&(e=pt()),e}())===a&&(e=function(){var e,t,r;return e=Re,Ht()!==a?(pr(),lr()!==a?(pr(),(t=function(){var e;return(e=Kt())===a&&(e=Qt())===a&&(e=Xt())===a&&(e=er())===a&&(e=tr())===a&&(e=rr()),e}())!==a?(pr(),kt()!==a?(pr(),(r=Ge())!==a?(pr(),cr()!==a?e=function(e,t){return{type:"function",name:"extract",args:{type:"expr_list",value:[{type:"string",value:e},t]}}}(t,r):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a),e}())===a&&(e=function(){var e,t,r,n,s,u,i;return e=Re,Ut()!==a?(pr(),lr()!==a?(pr(),(t=Ge())!==a?(pr(),kt()!==a?(pr(),(r=Ge())!==a?(pr(),n=Re,(s=$t())!==a?(u=pr(),(i=Ge())!==a?n=s=[s,u,i,pr()]:(Re=n,n=a)):(Re=n,n=a),n===a&&(n=null),(s=cr())!==a?e=function(e,t,r){return{type:"function",name:"substring",args:{type:"expr_list",value:r?[e,t,r[2]]:[e,t]}}}(t,r,n):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a),e}())===a&&(e=function(){var e,t,r,n;return e=Re,qt()!==a?(pr(),lr()!==a?(pr(),(t=ct())===a&&(t=null),pr(),(r=Ge())!==a?(pr(),kt()!==a?(pr(),(n=Ge())!==a?(pr(),cr()!==a?e=function(e,t,r){return{type:"function",name:"trim",args:{type:"expr_list",value:[{type:"string",value:null==e?"BOTH":e},t,r]}}}(t,r,n):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a),e===a&&(e=Re,qt()!==a?(pr(),lr()!==a?(pr(),(t=ct())===a&&(t=null),pr(),(r=Ge())!==a?(pr(),cr()!==a?e=function(e,t){return{type:"function",name:"trim",args:{type:"expr_list",value:[{type:"string",value:null==e?"BOTH":e},t]}}}(t,r):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)),e}())===a&&(e=function(){var e,t,r;return e=Re,Vt()!==a?(pr(),lr()!==a?(pr(),(t=Ge())!==a?(pr(),Pt()!==a?(pr(),(r=Ge())!==a?(pr(),cr()!==a?e=function(e,t){return{type:"function",name:"position",args:{type:"expr_list",value:[e,t]}}}(t,r):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a),e}())===a&&(e=function(){var e,t,r;return e=Re,(t=vr())!==a?(pr(),lr()!==a?(pr(),(r=ze())===a&&(r=null),pr(),cr()!==a?e=function(e,t){return{type:"function",name:e,args:t||{type:"expr_list",value:[]}}}(t,r):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a),e}())===a&&(e=function(){var e;return(e=function(){var e,t,r,n,s;if(e=Re,nr()!==a)if(pr(),(t=Ge())!==a){for(pr(),r=[],n=yt();n!==a;)r.push(n),n=yt();n=pr(),(s=ar())!==a?e=function(e,t){return{type:"case_expression",format:"simple",operand:e,clauses:t,else:null}}(t,r):(Re=e,e=a)}else Re=e,e=a;else Re=e,e=a;if(e===a)if(e=Re,nr()!==a)if(pr(),(t=Ge())!==a){for(pr(),r=[],n=yt();n!==a;)r.push(n),n=yt();n=pr(),(s=Nt())!==a?(pr(),ar()!==a?e=function(e,t,r){return{type:"case_expression",format:"simple",operand:e,clauses:t,else:r.value}}(t,r,s):(Re=e,e=a)):(Re=e,e=a)}else Re=e,e=a;else Re=e,e=a;return e}())===a&&(e=function(){var e,t,r,n;if(e=Re,nr()!==a){for(pr(),t=[],r=wt();r!==a;)t.push(r),r=wt();r=pr(),(n=ar())!==a?e=function(e){return{type:"case_expression",format:"searched",clauses:e,else:null}}(t):(Re=e,e=a)}else Re=e,e=a;if(e===a)if(e=Re,nr()!==a){for(pr(),t=[],r=wt();r!==a;)t.push(r),r=wt();r=pr(),(n=Nt())!==a?(pr(),ar()!==a?e=function(e,t){return{type:"case_expression",format:"searched",clauses:e,else:t.value}}(t,n):(Re=e,e=a)):(Re=e,e=a)}else Re=e,e=a;return e}()),e}())===a&&(e=function(){var e;return(e=function(){var e;return(e=function(){var e,t,r,n;if(e=Re,(t=ut())!==a){for(r=[],n=ot();n!==a;)r.push(n),n=ot();e=Fe(t,r)}else Re=e,e=a;return e}())!==a&&(e=e),e}())!==a&&(e=function(e){return/^CURRENT_DATE$/i.test(e)?{type:"current_time",mode:"date"}:/^CURRENT_TIMESTAMP$/i.test(e)?{type:"current_time",mode:"timestamp"}:{type:"column_ref",table:"",column:e}}(e)),e}())===a&&(e=lt())===a&&(e=Re,lr()!==a?(pr(),(t=Ge())!==a?(pr(),cr()!==a?e=function(e){return e.paren=!0,e}(t):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)),e}function st(){var e,t,r,n;if(e=Re,(t=ut())!==a){for(r=[],n=it();n!==a;)r.push(n),n=it();e=Fe(t,r)}else Re=e,e=a;return e}function ut(){var e;return l.test(t.charAt(Re))?(e=t.charAt(Re),Re++):(e=a,0===Ue&&je(P)),e}function it(){var e;return c.test(t.charAt(Re))?(e=t.charAt(Re),Re++):(e=a,0===Ue&&je(F)),e}function ot(){var e;return p.test(t.charAt(Re))?(e=t.charAt(Re),Re++):(e=a,0===Ue&&je(L)),e}function lt(){var e,r,n;return e=Re,64===t.charCodeAt(Re)?(r="@",Re++):(r=a,0===Ue&&je(M)),r!==a&&(n=st())!==a?e=r=[r,n]:(Re=e,e=a),e!==a&&(e=function(e){return{type:"param",value:e[1]}}(e)),e}function ct(){var e;return(e=Yt())===a&&(e=zt())===a&&(e=Gt()),e}function pt(){var e,r,n,s;return e=Re,Zt()!==a?(pr(),45===t.charCodeAt(Re)?(r="-",Re++):(r=a,0===Ue&&je(E)),r===a&&(43===t.charCodeAt(Re)?(r="+",Re++):(r=a,0===Ue&&je(I))),r!==a?(pr(),(n=mt())!==a?(pr(),(s=ft())!==a?e=function(e,t,r){return{type:"interval",value:t,qualifier:r,op:e}}(r,n,s):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a),e===a&&(e=Re,Zt()!==a?(pr(),(r=mt())!==a?(pr(),(n=ft())!==a?e=function(e,t){return{type:"interval",value:e,qualifier:t,op:""}}(r,n):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)),e}function ft(){var e,t,r;return e=Re,(t=function(){var e,t,r;return e=Re,(t=vt())!==a?(pr(),lr()!==a?(pr(),(r=dt())!==a?(pr(),cr()!==a?e=function(e,t){return{type:"interval-period",period:e.value,precision:t,secondary:null}}(t,r):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a),e===a&&(e=Re,(t=vt())!==a&&(t=Le(t)),e=t),e}())!==a?(pr(),Wt()!==a?(pr(),(r=function(){var e,t,r,n;return e=Re,(t=vt())!==a&&(t=function(e){return{type:"interval-period",period:e.value,precision:null,secondary:null}}(t)),(e=t)===a&&(e=Re,(t=rr())!==a?(pr(),lr()!==a?(pr(),(r=dt())!==a?(pr(),or()!==a?(pr(),(n=ht())!==a?(pr(),cr()!==a?e=Me(r,n):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a),e===a&&(e=Re,(t=rr())!==a?(pr(),lr()!==a?(pr(),(r=dt())!==a?(pr(),cr()!==a?e=function(e){return{type:"interval-period",period:"second",precision:e,secondary:null}}(r):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a),e===a&&(e=Re,(t=rr())!==a&&(t={type:"interval-period",period:"second",precision:null,secondary:null}),e=t))),e}())!==a?e=function(e,t){return{type:"interval-qualifier",start:e,end:t}}(t,r):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a),e===a&&(e=function(){var e,t,r,n;return e=Re,(t=vt())!==a?(pr(),lr()!==a?(pr(),(r=ht())!==a?(pr(),cr()!==a?e=function(e,t){return{type:"interval-period",period:e.value,precision:t,secondary:null}}(t,r):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a),e===a&&(e=Re,(t=vt())!==a&&(t=Le(t)),(e=t)===a&&(e=Re,(t=rr())!==a?(pr(),lr()!==a?(pr(),(r=dt())!==a?(pr(),or()!==a?(pr(),(n=ht())!==a?(pr(),cr()!==a?e=Me(r,n):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a),e===a&&(e=Re,(t=rr())!==a?(pr(),lr()!==a?(pr(),(r=ht())!==a?(pr(),cr()!==a?e=function(e){return{type:"interval-period",period:"second",precision:e,secondary:null}}(r):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a),e===a&&(e=Re,(t=rr())!==a&&(t={type:"interval-period",period:"second",precision:null,secondary:null}),e=t)))),e}()),e}function vt(){var e,t;return e=Re,(t=Xt())!==a&&(t={type:"string",value:"day"}),(e=t)===a&&(e=Re,(t=er())!==a&&(t={type:"string",value:"hour"}),(e=t)===a&&(e=Re,(t=tr())!==a&&(t={type:"string",value:"minute"}),(e=t)===a&&(e=Re,(t=Qt())!==a&&(t={type:"string",value:"month"}),(e=t)===a&&(e=Re,(t=Kt())!==a&&(t={type:"string",value:"year"}),e=t)))),e}function ht(){var e;return(e=_t())!==a&&(e=Oe(e)),e}function dt(){var e;return(e=_t())!==a&&(e=Oe(e)),e}function mt(){var e;return(e=gt())===a&&(e=lt()),e}function gt(){var e,r,n,s,u;if(e=Re,39===t.charCodeAt(Re)?(r="'",Re++):(r=a,0===Ue&&je(O)),r===a&&("N'"===t.substr(Re,2)?(r="N'",Re+=2):(r=a,0===Ue&&je(D))),r!==a){for(n=[],s=Re,t.substr(Re,2)===o?(u=o,Re+=2):(u=a,0===Ue&&je(R)),u!==a&&(u="'"),(s=u)===a&&(f.test(t.charAt(Re))?(s=t.charAt(Re),Re++):(s=a,0===Ue&&je(J)));s!==a;)n.push(s),s=Re,t.substr(Re,2)===o?(u=o,Re+=2):(u=a,0===Ue&&je(R)),u!==a&&(u="'"),(s=u)===a&&(f.test(t.charAt(Re))?(s=t.charAt(Re),Re++):(s=a,0===Ue&&je(J)));39===t.charCodeAt(Re)?(s="'",Re++):(s=a,0===Ue&&je(O)),s!==a?e=function(e){return{type:"string",value:e.join("")}}(n):(Re=e,e=a)}else Re=e,e=a;return e}function wt(){var e,t,r;return e=Re,sr()!==a?(pr(),(t=Ge())!==a?(pr(),ur()!==a?(pr(),(r=Ge())!==a?e=De(t,r):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a),e}function yt(){var e,t,r;return e=Re,sr()!==a?(pr(),(t=Ge())!==a?(pr(),ur()!==a?(pr(),(r=Ge())!==a?e=De(t,r):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a)):(Re=e,e=a),e}function Nt(){var e,t;return e=Re,ir()!==a?(pr(),(t=Ge())!==a?e=function(e){return{type:"else_clause",value:e}}(t):(Re=e,e=a)):(Re=e,e=a),e}function bt(){var e,r,n;return(e=_t())===a&&(e=Re,45===t.charCodeAt(Re)?(r="-",Re++):(r=a,0===Ue&&je(E)),r===a&&(43===t.charCodeAt(Re)?(r="+",Re++):(r=a,0===Ue&&je(I))),r!==a&&(n=_t())!==a?e=function(e,t){return e[0]+t}(r,n):(Re=e,e=a)),e}function Tt(){var e,r,n;return e=Re,46===t.charCodeAt(Re)?(r=".",Re++):(r=a,0===Ue&&je(k)),r!==a?((n=_t())===a&&(n=null),e=function(e){return"."+(null!=e?e:"")}(n)):(Re=e,e=a),e}function xt(){var e,t,r;return e=Re,(t=It())!==a&&(r=_t())!==a?e=function(e,t){return e+t}(t,r):(Re=e,e=a),e}function _t(){var e,t;if(e=[],(t=At())!==a)for(;t!==a;)e.push(t),t=At();else e=a;return e!==a&&(e=function(e){return e.join("")}(e)),e}function At(){var e;return v.test(t.charAt(Re))?(e=t.charAt(Re),Re++):(e=a,0===Ue&&je($)),e}function It(){var e,r,n;return e=Re,h.test(t.charAt(Re))?(r=t.charAt(Re),Re++):(r=a,0===Ue&&je(U)),r!==a?(d.test(t.charAt(Re))?(n=t.charAt(Re),Re++):(n=a,0===Ue&&je(H)),n===a&&(n=null),e=function(e,t){return"e"+(null===t?"":t)}(0,n)):(Re=e,e=a),e}function Et(){var e,r,n,s;return e=Re,"null"===t.substr(Re,4).toLowerCase()?(r=t.substr(Re,4),Re+=4):(r=a,0===Ue&&je(q)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e=r=[r,n]:(Re=e,e=a)):(Re=e,e=a),e}function St(){var e,r,n,s;return e=Re,"true"===t.substr(Re,4).toLowerCase()?(r=t.substr(Re,4),Re+=4):(r=a,0===Ue&&je(V)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e=r=[r,n]:(Re=e,e=a)):(Re=e,e=a),e}function Ct(){var e,r,n,s;return e=Re,"false"===t.substr(Re,5).toLowerCase()?(r=t.substr(Re,5),Re+=5):(r=a,0===Ue&&je(B)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e=r=[r,n]:(Re=e,e=a)):(Re=e,e=a),e}function Pt(){var e,r,n,s;return e=Re,"in"===t.substr(Re,2).toLowerCase()?(r=t.substr(Re,2),Re+=2):(r=a,0===Ue&&je(j)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="IN":(Re=e,e=a)):(Re=e,e=a),e}function Ft(){var e,r,n,s;return e=Re,"is"===t.substr(Re,2).toLowerCase()?(r=t.substr(Re,2),Re+=2):(r=a,0===Ue&&je(Y)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="IS":(Re=e,e=a)):(Re=e,e=a),e}function Lt(){var e,r,n,s;return e=Re,"like"===t.substr(Re,4).toLowerCase()?(r=t.substr(Re,4),Re+=4):(r=a,0===Ue&&je(z)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="LIKE":(Re=e,e=a)):(Re=e,e=a),e}function Mt(){var e,r,n,s;return e=Re,"escape"===t.substr(Re,6).toLowerCase()?(r=t.substr(Re,6),Re+=6):(r=a,0===Ue&&je(G)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="ESCAPE":(Re=e,e=a)):(Re=e,e=a),e}function Ot(){var e,r,n,s;return e=Re,"not"===t.substr(Re,3).toLowerCase()?(r=t.substr(Re,3),Re+=3):(r=a,0===Ue&&je(W)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="NOT":(Re=e,e=a)):(Re=e,e=a),e}function Dt(){var e,r,n,s;return e=Re,"and"===t.substr(Re,3).toLowerCase()?(r=t.substr(Re,3),Re+=3):(r=a,0===Ue&&je(Z)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="AND":(Re=e,e=a)):(Re=e,e=a),e}function Rt(){var e,r,n,s;return e=Re,"or"===t.substr(Re,2).toLowerCase()?(r=t.substr(Re,2),Re+=2):(r=a,0===Ue&&je(K)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="OR":(Re=e,e=a)):(Re=e,e=a),e}function Jt(){var e,r,n,s;return e=Re,"between"===t.substr(Re,7).toLowerCase()?(r=t.substr(Re,7),Re+=7):(r=a,0===Ue&&je(Q)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="BETWEEN":(Re=e,e=a)):(Re=e,e=a),e}function kt(){var e,r,n,s;return e=Re,"from"===t.substr(Re,4).toLowerCase()?(r=t.substr(Re,4),Re+=4):(r=a,0===Ue&&je(X)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="FROM":(Re=e,e=a)):(Re=e,e=a),e}function $t(){var e,r,n,s;return e=Re,"for"===t.substr(Re,3).toLowerCase()?(r=t.substr(Re,3),Re+=3):(r=a,0===Ue&&je(ee)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="FOR":(Re=e,e=a)):(Re=e,e=a),e}function Ut(){var e,r,n,s;return e=Re,"substring"===t.substr(Re,9).toLowerCase()?(r=t.substr(Re,9),Re+=9):(r=a,0===Ue&&je(te)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="SUBSTRING":(Re=e,e=a)):(Re=e,e=a),e}function Ht(){var e,r,n,s;return e=Re,"extract"===t.substr(Re,7).toLowerCase()?(r=t.substr(Re,7),Re+=7):(r=a,0===Ue&&je(re)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="EXTRACT":(Re=e,e=a)):(Re=e,e=a),e}function qt(){var e,r,n,s;return e=Re,"trim"===t.substr(Re,4).toLowerCase()?(r=t.substr(Re,4),Re+=4):(r=a,0===Ue&&je(ne)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="TRIM":(Re=e,e=a)):(Re=e,e=a),e}function Vt(){var e,r,n,s;return e=Re,"position"===t.substr(Re,8).toLowerCase()?(r=t.substr(Re,8),Re+=8):(r=a,0===Ue&&je(ae)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="POSITION":(Re=e,e=a)):(Re=e,e=a),e}function Bt(){var e,r,n,s;return e=Re,"timestamp"===t.substr(Re,9).toLowerCase()?(r=t.substr(Re,9),Re+=9):(r=a,0===Ue&&je(se)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="TIMESTAMP":(Re=e,e=a)):(Re=e,e=a),e}function jt(){var e,r,n,s;return e=Re,"date"===t.substr(Re,4).toLowerCase()?(r=t.substr(Re,4),Re+=4):(r=a,0===Ue&&je(ue)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="DATE":(Re=e,e=a)):(Re=e,e=a),e}function Yt(){var e,r,n,s;return e=Re,"leading"===t.substr(Re,7).toLowerCase()?(r=t.substr(Re,7),Re+=7):(r=a,0===Ue&&je(ie)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="LEADING":(Re=e,e=a)):(Re=e,e=a),e}function zt(){var e,r,n,s;return e=Re,"trailing"===t.substr(Re,8).toLowerCase()?(r=t.substr(Re,8),Re+=8):(r=a,0===Ue&&je(oe)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="TRAILING":(Re=e,e=a)):(Re=e,e=a),e}function Gt(){var e,r,n,s;return e=Re,"both"===t.substr(Re,4).toLowerCase()?(r=t.substr(Re,4),Re+=4):(r=a,0===Ue&&je(le)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="BOTH":(Re=e,e=a)):(Re=e,e=a),e}function Wt(){var e,r,n,s;return e=Re,"to"===t.substr(Re,2).toLowerCase()?(r=t.substr(Re,2),Re+=2):(r=a,0===Ue&&je(ce)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="TO":(Re=e,e=a)):(Re=e,e=a),e}function Zt(){var e,r,n,s;return e=Re,"interval"===t.substr(Re,8).toLowerCase()?(r=t.substr(Re,8),Re+=8):(r=a,0===Ue&&je(pe)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="INTERVAL":(Re=e,e=a)):(Re=e,e=a),e}function Kt(){var e,r,n,s;return e=Re,"year"===t.substr(Re,4).toLowerCase()?(r=t.substr(Re,4),Re+=4):(r=a,0===Ue&&je(fe)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="YEAR":(Re=e,e=a)):(Re=e,e=a),e}function Qt(){var e,r,n,s;return e=Re,"month"===t.substr(Re,5).toLowerCase()?(r=t.substr(Re,5),Re+=5):(r=a,0===Ue&&je(ve)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="MONTH":(Re=e,e=a)):(Re=e,e=a),e}function Xt(){var e,r,n,s;return e=Re,"day"===t.substr(Re,3).toLowerCase()?(r=t.substr(Re,3),Re+=3):(r=a,0===Ue&&je(he)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="DAY":(Re=e,e=a)):(Re=e,e=a),e}function er(){var e,r,n,s;return e=Re,"hour"===t.substr(Re,4).toLowerCase()?(r=t.substr(Re,4),Re+=4):(r=a,0===Ue&&je(de)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="HOUR":(Re=e,e=a)):(Re=e,e=a),e}function tr(){var e,r,n,s;return e=Re,"minute"===t.substr(Re,6).toLowerCase()?(r=t.substr(Re,6),Re+=6):(r=a,0===Ue&&je(me)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="MINUTE":(Re=e,e=a)):(Re=e,e=a),e}function rr(){var e,r,n,s;return e=Re,"second"===t.substr(Re,6).toLowerCase()?(r=t.substr(Re,6),Re+=6):(r=a,0===Ue&&je(ge)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="SECOND":(Re=e,e=a)):(Re=e,e=a),e}function nr(){var e,r,n,s;return e=Re,"case"===t.substr(Re,4).toLowerCase()?(r=t.substr(Re,4),Re+=4):(r=a,0===Ue&&je(we)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="CASE":(Re=e,e=a)):(Re=e,e=a),e}function ar(){var e,r,n,s;return e=Re,"end"===t.substr(Re,3).toLowerCase()?(r=t.substr(Re,3),Re+=3):(r=a,0===Ue&&je(ye)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="END":(Re=e,e=a)):(Re=e,e=a),e}function sr(){var e,r,n,s;return e=Re,"when"===t.substr(Re,4).toLowerCase()?(r=t.substr(Re,4),Re+=4):(r=a,0===Ue&&je(Ne)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="WHEN":(Re=e,e=a)):(Re=e,e=a),e}function ur(){var e,r,n,s;return e=Re,"then"===t.substr(Re,4).toLowerCase()?(r=t.substr(Re,4),Re+=4):(r=a,0===Ue&&je(be)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="THEN":(Re=e,e=a)):(Re=e,e=a),e}function ir(){var e,r,n,s;return e=Re,"else"===t.substr(Re,4).toLowerCase()?(r=t.substr(Re,4),Re+=4):(r=a,0===Ue&&je(Te)),r!==a?(n=Re,Ue++,s=it(),Ue--,s===a?n=void 0:(Re=n,n=a),n!==a?e="ELSE":(Re=e,e=a)):(Re=e,e=a),e}function or(){var e;return 44===t.charCodeAt(Re)?(e=",",Re++):(e=a,0===Ue&&je(xe)),e}function lr(){var e;return 40===t.charCodeAt(Re)?(e="(",Re++):(e=a,0===Ue&&je(_e)),e}function cr(){var e;return 41===t.charCodeAt(Re)?(e=")",Re++):(e=a,0===Ue&&je(Ae)),e}function pr(){var e,t;for(e=[],t=fr();t!==a;)e.push(t),t=fr();return e}function fr(){var e;return m.test(t.charAt(Re))?(e=t.charAt(Re),Re++):(e=a,0===Ue&&je(Ie)),e}function vr(){var e,r,n,s;if(e=Re,(r=st())!==a&&(r=r),(e=r)===a)if(e=Re,96===t.charCodeAt(Re)?(r="`",Re++):(r=a,0===Ue&&je(Ee)),r!==a){if(n=[],g.test(t.charAt(Re))?(s=t.charAt(Re),Re++):(s=a,0===Ue&&je(Se)),s!==a)for(;s!==a;)n.push(s),g.test(t.charAt(Re))?(s=t.charAt(Re),Re++):(s=a,0===Ue&&je(Se));else n=a;n!==a?(96===t.charCodeAt(Re)?(s="`",Re++):(s=a,0===Ue&&je(Ee)),s!==a?e=function(e){return e.join("")}(n):(Re=e,e=a)):(Re=e,e=a)}else Re=e,e=a;return e}function hr(e,t,r,n){var a={type:"binary_expr",operator:e,left:t,right:r};return void 0!==n&&(a.escape=n),a}function dr(e,t){for(var r=e,n=0;n<t.length;n++)r=hr(t[n][1],r,t[n][3]);return r}if((n=i())!==a&&Re===t.length)return n;throw n!==a&&Re<t.length&&je({type:"end"}),function(t,r,n){return new e(e.buildMessage(t,r),t,r,n)}($e,ke<t.length?t.charAt(ke):null,ke<t.length?Be(ke,ke+1):Be(ke,ke))}}},(v=d).exports&&(v.exports=h());const m=/^(\d{4})-(\d{1,2})-(\d{1,2})$/,g=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2}(\.[0-9]+)?)$/,w=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2}(\.[0-9]+)?)(\+|\-)(\d{1,2}):(\d{1,2})$/,y=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})(\+|\-)(\d{1,2}):(\d{1,2})$/,N=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/,b=new Set(["current_timestamp","current_date","current_time"]);function T(e,t){return(e+="").length>=t?e:new Array(t-e.length+1).join("0")+e}function x(e,t,r="0",n="0",a="0",s="0",u="",i="0",o="0"){if("+"===u||"-"===u){const l=`${T(parseInt(e,10),4)}-${T(parseInt(t,10),2)}-${T(parseInt(r,10),2)}`;let c="";parseFloat(s)<10&&(c="0");const p=`${T(parseInt(n,10),2)}:${T(parseInt(a,10),2)}:${c+parseFloat(s).toString()}`,f=`${u}${T(parseInt(i,10),2)}:${T(parseInt(o,10),2)}`;return new Date(l+"T"+p+f)}return new Date(parseInt(e,10),parseInt(t,10)-1,parseInt(r,10),parseInt(n,10),parseInt(a,10),parseFloat(s))}class _{static makeBool(e){return S(e)}static featureValue(e,t,r,n){return U(e,t,r,n)}static equalsNull(e){return null===e}static applyLike(e,t,r){return R(e,t,r)}static ensureArray(e){return C(e)}static applyIn(e,t){return M(e,t)}static currentDate(){const e=new Date;return e.setHours(0,0,0,0),e}static makeSqlInterval(e,t,r){return l.createFromValueAndQualifer(e,t,r)}static convertInterval(e){return e instanceof l?e.valueInMilliseconds():e}static currentTimestamp(){return new Date}static compare(e,t,r){return k(e,t,r)}static calculate(e,t,r){return $(e,t,r)}static makeComparable(e){return J(e)}static evaluateFunction(e,t){return c(e,t)}static lookup(e,t){const r=t[e];return void 0===r?null:r}static between(e,t){return null==e||null==t[0]||null==t[1]?null:e>=t[0]&&e<=t[1]}static notbetween(e,t){return null==e||null==t[0]||null==t[1]?null:e<t[0]||e>t[1]}static ternaryNot(e){return P(e)}static ternaryAnd(e,t){return F(e,t)}static ternaryOr(e,t){return L(e,t)}}class A{constructor(e,t){this.fieldsIndex=t,this.datefields={},this.parameters={},this._hasDateFunctions=void 0,this.parseTree=class{static parse(e){return d.exports.parse(e)}}.parse(e);const{isStandardized:r,isAggregate:n,referencedFieldNames:a}=this._extractExpressionInfo(t);this.referencedFieldNames=a,this.isStandardized=r,this.isAggregate=n}static create(e,t){return new A(e,t)}get fieldNames(){return this.referencedFieldNames}testSet(e,t=H){const r={};for(const n of this.fieldNames)r[n]=e.map((e=>t.getAttribute(e,n)));return!!this._evaluateNode(this.parseTree,{attributes:r},H)}calculateValue(e,t=H){const r=this._evaluateNode(this.parseTree,e,t);return r instanceof l?r.valueInMilliseconds()/864e5:r}calculateValueCompiled(e,t=H){return null!=this.parseTree._compiledVersion?this.parseTree._compiledVersion(e,this.parameters,t,this.datefields):(0,n.Z)("esri-csp-restrictions")?this.calculateValue(e,t):(this._compileMe(),this.parseTree._compiledVersion(e,this.parameters,t,this.datefields))}testFeature(e,t=H){return!!this._evaluateNode(this.parseTree,e,t)}testFeatureCompiled(e,t=H){return null!=this.parseTree._compiledVersion?!!this.parseTree._compiledVersion(e,this.parameters,t,this.datefields):(0,n.Z)("esri-csp-restrictions")?this.testFeature(e,t):(this._compileMe(),!!this.parseTree._compiledVersion(e,this.parameters,t,this.datefields))}get hasDateFunctions(){return null!=this._hasDateFunctions||(this._hasDateFunctions=!1,this._visitAll(this.parseTree,(e=>{"current_time"===e.type?this._hasDateFunctions=!0:"function"===e.type&&(this._hasDateFunctions=this._hasDateFunctions||b.has(e.name.toLowerCase()))}))),this._hasDateFunctions}getFunctions(){const e=new Set;return this._visitAll(this.parseTree,(t=>{"function"===t.type&&e.add(t.name.toLowerCase())})),Array.from(e)}getExpressions(){const e=new Map;return this._visitAll(this.parseTree,(t=>{if("function"===t.type){const r=t.name.toLowerCase(),n=t.args.value[0];if("column_ref"===n.type){const t=n.column,a=`${r}-${t}`;e.has(a)||e.set(a,{aggregateType:r,field:t})}}})),[...e.values()]}getVariables(){const e=new Set;return this._visitAll(this.parseTree,(t=>{"param"===t.type&&e.add(t.value.toLowerCase())})),Array.from(e)}_compileMe(){const e="return this.convertInterval("+this.evaluateNodeToJavaScript(this.parseTree)+")";this.parseTree._compiledVersion=new Function("feature","lookups","attributeAdapter","datefields",e).bind(_)}_extractExpressionInfo(e){const t=[],r=new Set;let n=!0,s=!0;return this._visitAll(this.parseTree,(u=>{switch(u.type){case"column_ref":{const n=e.get(u.column);let a,s;n?a=s=n.name:(s=u.column,a=s.toLowerCase()),!n||"date"!==n.type&&"esriFieldTypeDate"!==n.type||(this.datefields[n.name]=1),r.has(a)||(r.add(a),t.push(s)),u.column=s;break}case"function":{const{name:e,args:t}=u,r=t.value.length;n&&(n=p(e,r)),s&&(s=a(e,r));break}}})),{referencedFieldNames:Array.from(t),isStandardized:n,isAggregate:s}}_visitAll(e,t){if(null!=e)switch(t(e),e.type){case"when_clause":this._visitAll(e.operand,t),this._visitAll(e.value,t);break;case"case_expression":for(const r of e.clauses)this._visitAll(r,t);"simple"===e.format&&this._visitAll(e.operand,t),null!==e.else&&this._visitAll(e.else,t);break;case"expr_list":for(const r of e.value)this._visitAll(r,t);break;case"unary_expr":this._visitAll(e.expr,t);break;case"binary_expr":this._visitAll(e.left,t),this._visitAll(e.right,t);break;case"function":this._visitAll(e.args,t)}}evaluateNodeToJavaScript(e){switch(e.type){case"interval":return"this.makeSqlInterval("+this.evaluateNodeToJavaScript(e.value)+", "+JSON.stringify(e.qualifier)+","+JSON.stringify(e.op)+")";case"case_expression":{let t="";if("simple"===e.format){const r="this.makeComparable("+this.evaluateNodeToJavaScript(e.operand)+")";t="( ";for(let n=0;n<e.clauses.length;n++)t+=" ("+r+" === this.makeComparable("+this.evaluateNodeToJavaScript(e.clauses[n].operand)+")) ? ("+this.evaluateNodeToJavaScript(e.clauses[n].value)+") : ";null!==e.else?t+=this.evaluateNodeToJavaScript(e.else):t+="null",t+=" )"}else{t="( ";for(let r=0;r<e.clauses.length;r++)t+=" this.makeBool("+this.evaluateNodeToJavaScript(e.clauses[r].operand)+")===true ? ("+this.evaluateNodeToJavaScript(e.clauses[r].value)+") : ";null!==e.else?t+=this.evaluateNodeToJavaScript(e.else):t+="null",t+=" )"}return t}case"param":return"this.lookup("+JSON.stringify(e.value.toLowerCase())+",lookups)";case"expr_list":{let t="[";for(const r of e.value)"["!==t&&(t+=","),t+=this.evaluateNodeToJavaScript(r);return t+="]",t}case"unary_expr":return"this.ternaryNot("+this.evaluateNodeToJavaScript(e.expr)+")";case"binary_expr":switch(e.operator){case"AND":return"this.ternaryAnd("+this.evaluateNodeToJavaScript(e.left)+","+this.evaluateNodeToJavaScript(e.right)+" )";case"OR":return"this.ternaryOr("+this.evaluateNodeToJavaScript(e.left)+","+this.evaluateNodeToJavaScript(e.right)+" )";case"IS":if("null"!==e.right.type)throw new Error("Unsupported RHS for IS");return"this.equalsNull("+this.evaluateNodeToJavaScript(e.left)+")";case"ISNOT":if("null"!==e.right.type)throw new Error("Unsupported RHS for IS");return"(!(this.equalsNull("+this.evaluateNodeToJavaScript(e.left)+")))";case"IN":return"this.applyIn("+this.evaluateNodeToJavaScript(e.left)+",this.ensureArray("+this.evaluateNodeToJavaScript(e.right)+"))";case"NOT IN":return"this.ternaryNot(this.applyIn("+this.evaluateNodeToJavaScript(e.left)+",this.ensureArray("+this.evaluateNodeToJavaScript(e.right)+")))";case"BETWEEN":return"this.between("+this.evaluateNodeToJavaScript(e.left)+","+this.evaluateNodeToJavaScript(e.right)+")";case"NOTBETWEEN":return"this.notbetween("+this.evaluateNodeToJavaScript(e.left)+","+this.evaluateNodeToJavaScript(e.right)+")";case"LIKE":return"this.applyLike("+this.evaluateNodeToJavaScript(e.left)+","+this.evaluateNodeToJavaScript(e.right)+","+JSON.stringify(e.escape)+")";case"NOT LIKE":return"this.ternaryNot(this.applyLike("+this.evaluateNodeToJavaScript(e.left)+","+this.evaluateNodeToJavaScript(e.right)+","+JSON.stringify(e.escape)+"))";case"<>":case"<":case">":case">=":case"<=":case"=":return"this.compare("+JSON.stringify(e.operator)+","+this.evaluateNodeToJavaScript(e.left)+","+this.evaluateNodeToJavaScript(e.right)+")";case"*":case"-":case"+":case"/":return"this.calculate("+JSON.stringify(e.operator)+","+this.evaluateNodeToJavaScript(e.left)+","+this.evaluateNodeToJavaScript(e.right)+")"}throw new Error("Not Supported Operator "+e.operator);case"null":case"bool":case"string":case"number":return JSON.stringify(e.value);case"date":return"(new Date("+E(e.value).getTime().toString()+"))";case"timestamp":return"(new Date("+I(e.value).getTime().toString()+"))";case"current_time":return"date"===e.mode?"this.currentDate()":"this.currentTimestamp()";case"column_ref":return"this.featureValue(feature,"+JSON.stringify(e.column)+",datefields,attributeAdapter)";case"function":return"this.evaluateFunction("+JSON.stringify(e.name)+","+this.evaluateNodeToJavaScript(e.args)+")"}throw new Error("Unsupported sql syntax "+e.type)}_evaluateNode(e,t,r){switch(e.type){case"interval":{const n=this._evaluateNode(e.value,t,r);return l.createFromValueAndQualifer(n,e.qualifier,e.op)}case"case_expression":if("simple"===e.format){const n=J(this._evaluateNode(e.operand,t,r));for(let a=0;a<e.clauses.length;a++)if(n===J(this._evaluateNode(e.clauses[a].operand,t,r)))return this._evaluateNode(e.clauses[a].value,t,r);if(null!==e.else)return this._evaluateNode(e.else,t,r)}else{for(let n=0;n<e.clauses.length;n++)if(S(this._evaluateNode(e.clauses[n].operand,t,r)))return this._evaluateNode(e.clauses[n].value,t,r);if(null!==e.else)return this._evaluateNode(e.else,t,r)}return null;case"param":return this.parameters[e.value.toLowerCase()];case"expr_list":{const n=[];for(const a of e.value)n.push(this._evaluateNode(a,t,r));return n}case"unary_expr":return P(this._evaluateNode(e.expr,t,r));case"binary_expr":switch(e.operator){case"AND":return F(this._evaluateNode(e.left,t,r),this._evaluateNode(e.right,t,r));case"OR":return L(this._evaluateNode(e.left,t,r),this._evaluateNode(e.right,t,r));case"IS":if("null"!==e.right.type)throw new Error("Unsupported RHS for IS");return null===this._evaluateNode(e.left,t,r);case"ISNOT":if("null"!==e.right.type)throw new Error("Unsupported RHS for IS");return null!==this._evaluateNode(e.left,t,r);case"IN":{const n=C(this._evaluateNode(e.right,t,r));return M(this._evaluateNode(e.left,t,r),n)}case"NOT IN":{const n=C(this._evaluateNode(e.right,t,r));return P(M(this._evaluateNode(e.left,t,r),n))}case"BETWEEN":{const n=this._evaluateNode(e.left,t,r),a=this._evaluateNode(e.right,t,r);return null==n||null==a[0]||null==a[1]?null:n>=J(a[0])&&n<=J(a[1])}case"NOTBETWEEN":{const n=this._evaluateNode(e.left,t,r),a=this._evaluateNode(e.right,t,r);return null==n||null==a[0]||null==a[1]?null:n<J(a[0])||n>J(a[1])}case"LIKE":return R(this._evaluateNode(e.left,t,r),this._evaluateNode(e.right,t,r),e.escape);case"NOT LIKE":return P(R(this._evaluateNode(e.left,t,r),this._evaluateNode(e.right,t,r),e.escape));case"<>":case"<":case">":case">=":case"<=":case"=":return k(e.operator,this._evaluateNode(e.left,t,r),this._evaluateNode(e.right,t,r));case"-":case"+":case"*":case"/":return $(e.operator,this._evaluateNode(e.left,t,r),this._evaluateNode(e.right,t,r))}case"null":case"bool":case"string":case"number":return e.value;case"date":return E(e.value);case"timestamp":return I(e.value);case"current_time":{const t=new Date;return"date"===e.mode&&t.setHours(0,0,0,0),t}case"column_ref":return U(t,e.column,this.datefields,r);case"function":{const n=this._evaluateNode(e.args,t,r);return this.isAggregate?function(e,t){const r=s[e.toLowerCase()];if(null==r)throw new Error("Function Not Recognised");if(t.length<r.minParams||t.length>r.maxParams)throw new Error(`Invalid Parameter count for call to ${e.toUpperCase()}`);return r.evaluate(t)}(e.name,n):c(e.name,n)}}throw new Error("Unsupported sql syntax "+e.type)}}function I(e){let t=g.exec(e);if(null!==t){const[,e,r,n,a,s,u]=t;return x(e,r,n,a,s,u)}if(t=w.exec(e),null!==t){const[,e,r,n,a,s,u,i,o,l]=t;return x(e,r,n,a,s,u,i,o,l)}if(t=y.exec(e),null!==t){const[,e,r,n,a,s,u,i,o]=t;return x(e,r,n,a,s,"0",u,i,o)}if(t=N.exec(e),null!==t){const[,e,r,n,a,s]=t;return x(e,r,n,a,s)}if(t=m.exec(e),null!==t){const[,e,r,n]=t;return x(e,r,n)}throw new Error("SQL Invalid Timestamp")}function E(e){const t=m.exec(e);if(null===t)throw new Error("SQL Invalid Date");const[,r,n,a]=t;return new Date(parseInt(r,10),parseInt(n,10)-1,parseInt(a,10))}function S(e){return!0===e}function C(e){return Array.isArray(e)?e:[e]}function P(e){return null!==e?!0!==e:null}function F(e,t){return null!=e&&null!=t?!0===e&&!0===t:!1!==e&&!1!==t&&null}function L(e,t){return null!=e&&null!=t?!0===e||!0===t:!0===e||!0===t||null}function M(e,t){if(null==e)return null;let r=!1;for(const n of t)if(null==n)r=null;else if(e===n){r=!0;break}return r}const O="-[]/{}()*+?.\\^$|";var D;function R(e,t,r){return null==e?null:function(e,t){const r=t;let n="",a=D.Normal;for(let t=0;t<e.length;t++){const s=e.charAt(t);switch(a){case D.Normal:s===r?a=D.Escaped:O.includes(s)?n+="\\"+s:n+="%"===s?".*":"_"===s?".":s;break;case D.Escaped:O.includes(s)?n+="\\"+s:n+=s,a=D.Normal}}return new RegExp("^"+n+"$","m")}(t,r).test(e)}function J(e){return e instanceof Date?e.valueOf():e}function k(e,t,r){if(null==t||null==r)return null;const n=J(t),a=J(r);switch(e){case"<>":return n!==a;case"=":return n===a;case">":return n>a;case"<":return n<a;case">=":return n>=a;case"<=":return n<=a}}function $(e,t,r){if(t instanceof l)if(r instanceof Date)switch(e){case"+":return new Date(t.valueInMilliseconds()+r.getTime());case"-":return t.valueInMilliseconds()-r.getTime();case"*":return t.valueInMilliseconds()*r.getTime();case"/":return t.valueInMilliseconds()/r.getTime()}else if(r instanceof l)switch(e){case"+":return l.createFromMilliseconds(t.valueInMilliseconds()+r.valueInMilliseconds());case"-":return l.createFromMilliseconds(t.valueInMilliseconds()-r.valueInMilliseconds());case"*":return t.valueInMilliseconds()*r.valueInMilliseconds();case"/":return t.valueInMilliseconds()/r.valueInMilliseconds()}else t=t.valueInMilliseconds();else if(r instanceof l)if(t instanceof Date)switch(e){case"+":return new Date(r.valueInMilliseconds()+t.getTime());case"-":return new Date(t.getTime()-r.valueInMilliseconds());case"*":return t.getTime()*r.valueInMilliseconds();case"/":return t.getTime()/r.valueInMilliseconds()}else r=r.valueInMilliseconds();else if(t instanceof Date&&"number"==typeof r)switch(r=24*r*60*60*1e3,t=t.getTime(),e){case"+":return new Date(t+r);case"-":return new Date(t-r);case"*":return new Date(t*r);case"/":return new Date(t/r)}else if(r instanceof Date&&"number"==typeof t)switch(t=24*t*60*60*1e3,r=r.getTime(),e){case"+":return new Date(t+r);case"-":return new Date(t-r);case"*":return new Date(t*r);case"/":return new Date(t/r)}switch(e){case"+":return t+r;case"-":return t-r;case"*":return t*r;case"/":return t/r}}function U(e,t,r,n){const a=n.getAttribute(e,t);return null!=a&&1===r[t]?new Date(a):a}!function(e){e[e.Normal=0]="Normal",e[e.Escaped=1]="Escaped"}(D||(D={}));const H={getAttribute:(e,t)=>(function(e){return e&&"object"==typeof e.attributes}(e)?e.attributes:e)[t]}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4133,7873],{65845:(e,t,r)=>{r.d(t,{D:()=>a});var i=r(81153);function a(e){e&&e.writtenProperties&&e.writtenProperties.forEach((e=>{const t=e.target;e.newOrigin&&e.oldOrigin!==e.newOrigin&&(0,i.l)(t)&&t.updateOrigin(e.propName,e.newOrigin)}))}},81153:(e,t,r)=>{function i(e){return e&&"getAtOrigin"in e&&"originOf"in e}r.d(t,{l:()=>i})},41123:(e,t,r)=>{r.d(t,{D:()=>a});const i="randomUUID"in crypto;function a(){if(i)return crypto.randomUUID();const e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;const t=t=>e[t].toString(16);return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}},54295:(e,t,r)=>{r.d(t,{V:()=>o});var i=r(43697),a=r(5600),s=(r(67676),r(80442),r(75215),r(52011));const o=e=>{let t=class extends e{get apiKey(){var e;return this._isOverridden("apiKey")?this._get("apiKey"):function(e){return"portalItem"in e}(this)?null==(e=this.portalItem)?void 0:e.apiKey:null}set apiKey(e){null!=e?this._override("apiKey",e):(this._clearOverride("apiKey"),this.clear("apiKey","user"))}};return(0,i._)([(0,a.Cb)({type:String})],t.prototype,"apiKey",null),t=(0,i._)([(0,s.j)("esri.layers.mixins.APIKeyMixin")],t),t}},17287:(e,t,r)=>{r.d(t,{Y:()=>p});var i=r(43697),a=r(92604),s=r(70586),o=r(5600),n=(r(67676),r(80442),r(75215),r(52011)),l=r(66677);const p=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,l.Qc)(this.url);if((0,s.pC)(e)&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,l.Nm)(e,a.Z.getLogger(this.declaredClass)))}};return(0,i._)([(0,o.Cb)()],t.prototype,"title",null),(0,i._)([(0,o.Cb)({type:String})],t.prototype,"url",null),t=(0,i._)([(0,n.j)("esri.layers.mixins.ArcGISService")],t),t}},16859:(e,t,r)=>{r.d(t,{I:()=>I});var i=r(43697),a=r(40330),s=r(3172),o=r(66643),n=r(20102),l=r(92604),p=r(70586),u=r(95330),d=r(17452),c=r(5600),h=(r(67676),r(80442),r(75215),r(71715)),y=r(52011),m=r(30556),f=r(65587),g=r(15235),v=r(86082);const w=l.Z.getLogger("esri.layers.mixins.PortalLayer"),I=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){var e;null==(e=this.portalItem)||e.destroy(),this.portalItem=null}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new g.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const i=await r.e(8062).then(r.bind(r,18062));return(0,u.k_)(t),await i.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData},t)}catch(e){throw(0,u.D_)(e)||w.warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,u.r9)(e),!0))))}async _fetchUserHasEditingPrivileges(e){const t=this.url?null==a.id?void 0:a.id.findCredential(this.url):null;if(!t)return!0;const r=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=r,(0,p.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){var t,r;const i=null==(t=this.portalItem)||null==(r=t.portal)?void 0:r.user;if(i)return i;const n=a.id.findServerInfo(this.url);if(null==n||!n.owningSystemUrl)return null;const l=`${n.owningSystemUrl}/sharing/rest`,u=f.Z.getDefault();if(u&&u.loaded&&(0,d.Fv)(u.restUrl)===(0,d.Fv)(l))return u.user;const c=`${l}/community/self`,h=(0,p.pC)(e)?e.signal:null,y=await(0,o.q6)((0,s.default)(c,{authMode:"no-prompt",query:{f:"json"},signal:h}));return y.ok?v.default.fromJSON(y.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,i=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||f.Z.getDefault());return r&&i&&!(0,d.tm)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new n.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save the scene, set the layer.portalItem to null or save the scene to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,c.Cb)({type:g.default})],t.prototype,"portalItem",null),(0,i._)([(0,h.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,m.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,c.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,i._)([(0,y.j)("esri.layers.mixins.PortalLayer")],t),t},S={credential:null,user:null}},32271:(e,t,r)=>{r.d(t,{xp:()=>q,Vt:()=>E});var i=r(43697),a=r(3172),s=r(20102),o=(r(80442),r(92604)),n=r(70586),l=r(95330),p=r(17452),u=r(5600),d=(r(67676),r(75215),r(71715)),c=r(52011),h=r(30556),y=r(65845),m=r(6570),f=r(79235),g=r(82971),v=r(66677),w=r(21506),I=r(61064),S=r(65587),_=r(15235),b=r(66643),x=r(41123),P=r(97873);async function R(e,t,r){if(!t||!t.resources)return;const i=t.portalItem===e.portalItem?new Set(e.paths):new Set;e.paths.length=0,e.portalItem=t.portalItem;const a=new Set(t.resources.toKeep.map((e=>e.resource.path))),o=new Set,n=[];a.forEach((t=>{i.delete(t),e.paths.push(t)}));for(const s of t.resources.toUpdate)if(i.delete(s.resource.path),a.has(s.resource.path)||o.has(s.resource.path)){const{resource:t,content:i,finish:a,error:o}=s,l=(0,P.getSiblingOfSameTypeI)(t,(0,x.D)());e.paths.push(l.path),n.push(U({resource:l,content:i,finish:a,error:o},r))}else e.paths.push(s.resource.path),n.push(O(s,r)),o.add(s.resource.path);for(const i of t.resources.toAdd)n.push(U(i,r)),e.paths.push(i.resource.path);if(i.forEach((e=>{const r=t.portalItem.resourceFromPath(e);n.push(r.portalItem.removeResource(r).catch((()=>{})))})),0===n.length)return;const p=await(0,l.as)(n);(0,l.k_)(r);const u=p.filter((e=>"error"in e)).map((e=>e.error));if(u.length>0)throw new s.Z("save:resources","Failed to save one or more resources",{errors:u})}async function U(e,t){const r=await(0,b.q6)(e.resource.portalItem.addResource(e.resource,e.content,t));if(!0!==r.ok)throw e.error&&e.error(r.error),r.error;e.finish&&e.finish(e.resource)}async function O(e,t){const r=await(0,b.q6)(e.resource.update(e.content,t));if(!0!==r.ok)throw e.error(r.error),r.error;e.finish(e.resource)}const C=o.Z.getLogger("esri.layers.mixins.SceneService"),E=e=>{let t=class extends e{constructor(){super(...arguments),this.spatialReference=null,this.fullExtent=null,this.heightModelInfo=null,this.minScale=0,this.maxScale=0,this.version={major:Number.NaN,minor:Number.NaN,versionString:""},this.copyright=null,this.sublayerTitleMode="item-title",this.title=null,this.layerId=null,this.indexInfo=null,this._debouncedSaveOperations=(0,l.Ds)((async(e,t,r)=>{switch(e){case q.SAVE:return this._save(t);case q.SAVE_AS:return this._saveAs(r,t)}}))}readSpatialReference(e,t){return this._readSpatialReference(t)}_readSpatialReference(e){if(null!=e.spatialReference)return g.Z.fromJSON(e.spatialReference);{const t=e.store,r=t.indexCRS||t.geographicCRS,i=r&&parseInt(r.substring(r.lastIndexOf("/")+1,r.length),10);return null!=i?new g.Z(i):null}}readFullExtent(e,t,r){if(null!=e&&"object"==typeof e){const i=null==e.spatialReference?{...e,spatialReference:this._readSpatialReference(t)}:e;return m.Z.fromJSON(i,r)}const i=t.store,a=this._readSpatialReference(t);return null==a||null==i||null==i.extent||!Array.isArray(i.extent)||i.extent.some((e=>e<T))?null:new m.Z({xmin:i.extent[0],ymin:i.extent[1],xmax:i.extent[2],ymax:i.extent[3],spatialReference:a})}parseVersionString(e){const t={major:Number.NaN,minor:Number.NaN,versionString:e},r=e.split(".");return r.length>=2&&(t.major=parseInt(r[0],10),t.minor=parseInt(r[1],10)),t}readVersion(e,t){const r=t.store,i=null!=r.version?r.version.toString():"";return this.parseVersionString(i)}readTitlePortalItem(e){return"item-title"!==this.sublayerTitleMode?void 0:e}readTitleService(e,t){const r=this.portalItem&&this.portalItem.title;if("item-title"===this.sublayerTitleMode)return(0,v.a7)(this.url,t.name);let i=t.name;if(!i&&this.url){const e=(0,v.Qc)(this.url);(0,n.pC)(e)&&(i=e.title)}return"item-title-and-service-name"===this.sublayerTitleMode&&r&&(i=r+" - "+i),(0,v.ld)(i)}set url(e){const t=(0,v.XG)({layer:this,url:e,nonStandardUrlAllowed:!1,logger:C});this._set("url",t.url),null!=t.layerId&&this._set("layerId",t.layerId)}writeUrl(e,t,r,i){(0,v.wH)(this,e,"layers",t,i)}get parsedUrl(){const e=this._get("url");if(!e)return null;const t=(0,p.mN)(e);return null!=this.layerId&&(t.path=`${t.path}/layers/${this.layerId}`),t}async _fetchIndexAndUpdateExtent(e,t){this.indexInfo=(0,I.T)(this.parsedUrl.path,this.rootNode,e,this.apiKey,C,t),null==this.fullExtent||this.fullExtent.hasZ||this._updateExtent(await this.indexInfo)}_updateExtent(e){if("page"===(null==e?void 0:e.type)){var t,r;const i=e.rootIndex%e.pageSize,a=null==(t=e.rootPage)||null==(r=t.nodes)?void 0:r[i];if(null==a||null==a.obb||null==a.obb.center||null==a.obb.halfSize)throw new s.Z("sceneservice:invalid-node-page","Invalid node page.");if(a.obb.center[0]<T||null==this.fullExtent||this.fullExtent.hasZ)return;const o=a.obb.halfSize,n=a.obb.center[2],l=Math.sqrt(o[0]*o[0]+o[1]*o[1]+o[2]*o[2]);this.fullExtent.zmin=n-l,this.fullExtent.zmax=n+l}else if("node"===(null==e?void 0:e.type)){var i;const t=null==(i=e.rootNode)?void 0:i.mbs;if(!Array.isArray(t)||4!==t.length||t[0]<T)return;const r=t[2],a=t[3];this.fullExtent.zmin=r-a,this.fullExtent.zmax=r+a}}async _fetchService(e){if(null==this.url)throw new s.Z("sceneservice:url-not-set","Scene service can not be loaded without valid portal item or url");if(null==this.layerId&&/SceneServer\/*$/i.test(this.url)){const t=await this._fetchFirstLayerId(e);null!=t&&(this.layerId=t)}return this._fetchServiceLayer(e)}async _fetchFirstLayerId(e){const t=await(0,a.default)(this.url,{query:{f:"json",token:this.apiKey},responseType:"json",signal:e});if(t.data&&Array.isArray(t.data.layers)&&t.data.layers.length>0)return t.data.layers[0].id}async _fetchServiceLayer(e){const t=await(0,a.default)(this.parsedUrl.path,{query:{f:"json",token:this.apiKey},responseType:"json",signal:e});t.ssl&&(this.url=this.url.replace(/^http:/i,"https:"));let r=!1;if(t.data.layerType&&"Voxel"===t.data.layerType&&(r=!0),r)return this._fetchVoxelServiceLayer();const i=t.data;this.read(i,{origin:"service",url:this.parsedUrl}),this.validateLayer(i)}async _fetchVoxelServiceLayer(e){const t=(await(0,a.default)(this.parsedUrl.path+"/layer",{query:{f:"json",token:this.apiKey},responseType:"json",signal:e})).data;this.read(t,{origin:"service",url:this.parsedUrl}),this.validateLayer(t)}async _ensureLoadBeforeSave(){await this.load(),"beforeSave"in this&&"function"==typeof this.beforeSave&&await this.beforeSave()}validateLayer(e){}_updateTypeKeywords(e,t,r){e.typeKeywords||(e.typeKeywords=[]);const i=t.getTypeKeywords();for(const t of i)e.typeKeywords.push(t);e.typeKeywords&&(e.typeKeywords=e.typeKeywords.filter(((e,t,r)=>r.indexOf(e)===t)),r===N.newItem&&(e.typeKeywords=e.typeKeywords.filter((e=>"Hosted Service"!==e))))}async _saveAs(e,t){const r={...Z,...t};let i=_.default.from(e);i||(C.error("_saveAs(): requires a portal item parameter"),await Promise.reject(new s.Z("sceneservice:portal-item-required","_saveAs() requires a portal item to save to"))),i.id&&(i=i.clone(),i.id=null);const a=i.portal||S.Z.getDefault();await this._ensureLoadBeforeSave(),i.type=j,i.portal=a;const o={origin:"portal-item",url:null,messages:[],portal:a,portalItem:i,writtenProperties:[],blockedRelativeUrls:[],resources:{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}},n={layers:[this.write({},o)]};return await Promise.all(o.resources.pendingOperations),await this._validateAgainstJSONSchema(n,o,r),i.url=this.url,i.title||(i.title=this.title),this._updateTypeKeywords(i,r,N.newItem),await a._signIn(),await a.user.addItem({item:i,folder:r&&r.folder,data:n}),await R(this.resourceReferences,o,null),this.portalItem=i,(0,y.D)(o),o.portalItem=i,i}async _save(e){const t={...Z,...e};this.portalItem||(C.error("_save(): requires the .portalItem property to be set"),await Promise.reject(new s.Z("sceneservice:portal-item-not-set","Portal item to save to has not been set on this SceneService"))),this.portalItem.type!==j&&(C.error("_save(): Non-matching portal item type. Got "+this.portalItem.type+", expected "+j),await Promise.reject(new s.Z("sceneservice:portal-item-wrong-type",`Portal item needs to have type "${j}"`))),await this._ensureLoadBeforeSave();const r={origin:"portal-item",url:this.portalItem.itemUrl&&(0,p.mN)(this.portalItem.itemUrl),messages:[],portal:this.portalItem.portal||S.Z.getDefault(),portalItem:this.portalItem,writtenProperties:[],blockedRelativeUrls:[],resources:{toAdd:[],toUpdate:[],toKeep:[],pendingOperations:[]}},i={layers:[this.write({},r)]};return await Promise.all(r.resources.pendingOperations),await this._validateAgainstJSONSchema(i,r,t),this.portalItem.url=this.url,this.portalItem.title||(this.portalItem.title=this.title),this._updateTypeKeywords(this.portalItem,t,N.existingItem),await this.portalItem.update({data:i}),await R(this.resourceReferences,r,null),(0,y.D)(r),this.portalItem}async _validateAgainstJSONSchema(e,t,i){let a=t.messages.filter((e=>"error"===e.type)).map((e=>new s.Z(e.name,e.message,e.details)));if(i&&i.validationOptions.ignoreUnsupported&&(a=a.filter((e=>"layer:unsupported"!==e.name&&"symbol:unsupported"!==e.name&&"symbol-layer:unsupported"!==e.name&&"property:unsupported"!==e.name&&"url:unsupported"!==e.name&&"scenemodification:unsupported"!==e.name))),i.validationOptions.enabled||A){const t=(await r.e(7572).then(r.bind(r,87572))).validate(e,i.portalItemLayerType);if(t.length>0){const e=`Layer item did not validate:\n${t.join("\n")}`;if(C.error(`_validateAgainstJSONSchema(): ${e}`),"throw"===i.validationOptions.failPolicy){const e=t.map((e=>new s.Z("sceneservice:schema-validation",e))).concat(a);throw new s.Z("sceneservice-validate:error","Failed to save layer item due to schema validation, see `details.errors`.",{combined:e})}}}if(a.length>0)throw new s.Z("sceneservice:save","Failed to save SceneService due to unsupported or invalid content. See 'details.errors' for more detailed information",{errors:a})}};return(0,i._)([(0,u.Cb)(w.id)],t.prototype,"id",void 0),(0,i._)([(0,u.Cb)({type:g.Z})],t.prototype,"spatialReference",void 0),(0,i._)([(0,d.r)("spatialReference",["spatialReference","store.indexCRS","store.geographicCRS"])],t.prototype,"readSpatialReference",null),(0,i._)([(0,u.Cb)({type:m.Z})],t.prototype,"fullExtent",void 0),(0,i._)([(0,d.r)("fullExtent",["fullExtent","store.extent","spatialReference","store.indexCRS","store.geographicCRS"])],t.prototype,"readFullExtent",null),(0,i._)([(0,u.Cb)({readOnly:!0,type:f.Z})],t.prototype,"heightModelInfo",void 0),(0,i._)([(0,u.Cb)({type:Number,json:{name:"layerDefinition.minScale",write:!0,origins:{service:{read:{source:"minScale"},write:!1}}}})],t.prototype,"minScale",void 0),(0,i._)([(0,u.Cb)({type:Number,json:{name:"layerDefinition.maxScale",write:!0,origins:{service:{read:{source:"maxScale"},write:!1}}}})],t.prototype,"maxScale",void 0),(0,i._)([(0,u.Cb)({readOnly:!0})],t.prototype,"version",void 0),(0,i._)([(0,d.r)("version",["store.version"])],t.prototype,"readVersion",null),(0,i._)([(0,u.Cb)({type:String,json:{read:{source:"copyrightText"}}})],t.prototype,"copyright",void 0),(0,i._)([(0,u.Cb)({type:String,json:{read:!1}})],t.prototype,"sublayerTitleMode",void 0),(0,i._)([(0,u.Cb)({type:String})],t.prototype,"title",void 0),(0,i._)([(0,d.r)("portal-item","title")],t.prototype,"readTitlePortalItem",null),(0,i._)([(0,d.r)("service","title",["name"])],t.prototype,"readTitleService",null),(0,i._)([(0,u.Cb)({type:Number,json:{origins:{service:{read:{source:"id"}},"portal-item":{write:{target:"id",isRequired:!0,ignoreOrigin:!0},read:!1}}}})],t.prototype,"layerId",void 0),(0,i._)([(0,u.Cb)(w.HQ)],t.prototype,"url",null),(0,i._)([(0,h.c)("url")],t.prototype,"writeUrl",null),(0,i._)([(0,u.Cb)()],t.prototype,"parsedUrl",null),(0,i._)([(0,u.Cb)({readOnly:!0})],t.prototype,"store",void 0),(0,i._)([(0,u.Cb)({type:String,readOnly:!0,json:{read:{source:"store.rootNode"}}})],t.prototype,"rootNode",void 0),t=(0,i._)([(0,c.j)("esri.layers.mixins.SceneService")],t),t},T=-1e38,A=!1;var N,K;(K=N||(N={}))[K.existingItem=0]="existingItem",K[K.newItem=1]="newItem";const j="Scene Service",Z={getTypeKeywords:()=>[],portalItemLayerType:"unknown",validationOptions:{enabled:!0,ignoreUnsupported:!1,failPolicy:"throw"}};var q;!function(e){e[e.SAVE=0]="SAVE",e[e.SAVE_AS=1]="SAVE_AS"}(q||(q={}))},61064:(e,t,r)=>{r.d(t,{T:()=>o});var i=r(3172),a=r(20102),s=r(70586);async function o(e,t,r,o,n,l){let p=null;if((0,s.pC)(r)){const t=`${e}/nodepages/`,a=t+Math.floor(r.rootIndex/r.nodesPerPage);try{return{type:"page",rootPage:(await(0,i.default)(a,{query:{f:"json",token:o},responseType:"json",signal:l})).data,rootIndex:r.rootIndex,pageSize:r.nodesPerPage,lodMetric:r.lodSelectionMetricType,urlPrefix:t}}catch(e){(0,s.pC)(n)&&n.warn("#fetchIndexInfo()","Failed to load root node page. Falling back to node documents.",a,e),p=e}}if(!t)return null;const u=`${e}/nodes/`,d=u+(t&&t.split("/").pop());try{return{type:"node",rootNode:(await(0,i.default)(d,{query:{f:"json",token:o},responseType:"json",signal:l})).data,urlPrefix:u}}catch(e){throw new a.Z("sceneservice:root-node-missing","Root node missing.",{pageError:p,nodeError:e,url:d})}}},97873:(e,t,r)=>{r.r(t),r.d(t,{addOrUpdateResource:()=>l,contentToBlob:()=>h,fetchResources:()=>n,getSiblingOfSameType:()=>y,getSiblingOfSameTypeI:()=>m,removeAllResources:()=>u,removeResource:()=>p,splitPrefixFileNameAndExtension:()=>c});var i=r(3172),a=r(20102),s=r(70586),o=r(17452);async function n(e,t={},r){await e.load(r);const i=(0,o.v_)(e.itemUrl,"resources"),{start:a=1,num:n=10,sortOrder:l="asc",sortField:p="created"}=t,u={query:{start:a,num:n,sortOrder:l,sortField:p,token:e.apiKey},signal:(0,s.U2)(r,"signal")},d=await e.portal._request(i,u);return{total:d.total,nextStart:d.nextStart,resources:d.resources.map((({created:t,size:r,resource:i})=>({created:new Date(t),size:r,resource:e.resourceFromPath(i)})))}}async function l(e,t,r,i){if(!e.hasPath())throw new a.Z(`portal-item-resource-${t}:invalid-path`,"Resource does not have a valid path");const n=e.portalItem;await n.load(i);const l=(0,o.v_)(n.userItemUrl,"add"===t?"addResources":"updateResources"),[p,u]=d(e.path),c=await h(r),y=new FormData;return p&&"."!==p&&y.append("resourcesPrefix",p),y.append("fileName",u),y.append("file",c,u),y.append("f","json"),(0,s.pC)(i)&&i.access&&y.append("access",i.access),await n.portal._request(l,{method:"post",body:y,signal:(0,s.U2)(i,"signal")}),e}async function p(e,t,r){if(!t.hasPath())throw new a.Z("portal-item-resources-remove:invalid-path","Resource does not have a valid path");await e.load(r);const i=(0,o.v_)(e.userItemUrl,"removeResources");await e.portal._request(i,{method:"post",query:{resource:t.path},signal:(0,s.U2)(r,"signal")}),t.portalItem=null}async function u(e,t){await e.load(t);const r=(0,o.v_)(e.userItemUrl,"removeResources");return e.portal._request(r,{method:"post",query:{deleteAll:!0},signal:(0,s.U2)(t,"signal")})}function d(e){const t=e.lastIndexOf("/");return-1===t?[".",e]:[e.slice(0,t),e.slice(t+1)]}function c(e){const[t,r]=function(e){const t=(0,o.Ml)(e);return(0,s.Wi)(t)?[e,""]:[e.slice(0,e.length-t.length-1),`.${t}`]}(e),[i,a]=d(t);return[i,a,r]}async function h(e){return e instanceof Blob?e:(await(0,i.default)(e.url,{responseType:"blob"})).data}function y(e,t){if(!e.hasPath())return null;const[r,,i]=c(e.path);return e.portalItem.resourceFromPath((0,o.v_)(r,t+i))}function m(e,t){if(!e.hasPath())return null;const[r,,i]=c(e.path);return e.portalItem.resourceFromPath((0,o.v_)(r,t+i))}}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[3172],{3172:(e,t,r)=>{r.r(t),r.d(t,{default:()=>p});var n=r(68773),s=r(40330),o=r(20102),a=r(80442),i=r(22974),l=r(70586),u=r(95330),c=r(17452),d=r(71058),h=r(85958);async function p(e,t){var i;const h=(0,c.HK)(e),y=(0,c.jc)(e);y||h||(e=(0,c.Fv)(e));const g={url:e,requestOptions:{...(0,l.Wg)(t)}};let b=(0,c.oh)(e);if(b){const e=await async function(e,t){if(null!=e.responseData)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(e){r=v("request:interceptor",e,t)}if((n instanceof Error||n instanceof o.Z)&&(r=v("request:interceptor",n,t)),r)throw e.error&&e.error(r),r;return n}}(b,g);if(null!=e)return{data:e,getHeader:k,requestOptions:g.requestOptions,url:g.url};b.after||b.error||(b=null)}if(e=g.url,"image"===(t=g.requestOptions).responseType){if((0,a.Z)("host-webworker")||(0,a.Z)("host-node"))throw v("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),g)}else if(h)throw v("request:invalid-parameters",new Error("Data URLs are not supported for responseType = "+t.responseType),g);if("head"===t.method){if(t.body)throw v("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),g);if(h||y)throw v("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),g)}if(await async function(){(0,a.Z)("host-webworker")?m||(m=await r.e(9884).then(r.bind(r,29884))):p._abortableFetch||(p._abortableFetch=globalThis.fetch.bind(globalThis))}(),m)return m.execute(e,t);const q=new AbortController;(0,u.fu)(t,(()=>q.abort()));const T={controller:q,credential:null,credentialToken:null,fetchOptions:null,hasToken:!1,interceptor:b,params:g,redoRequest:!1,useIdentity:f.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},C=await async function(e){var t,r;let o,a;await async function(e){const t=e.params.url,r=e.params.requestOptions,o=e.controller.signal,a=r.body;let i=null,l=null,c=null;if(w&&"HTMLFormElement"in globalThis&&(a instanceof FormData?i=a:a instanceof HTMLFormElement&&(l=a,i=new FormData(l))),"string"==typeof a&&(c=a),e.fetchOptions={cache:r.cacheBust&&!p._abortableFetch.polyfill?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:"head"===r.method?"HEAD":"GET",mode:"cors",redirect:"follow",signal:o},(i||c)&&(e.fetchOptions.body=i||c),"anonymous"===r.authMode&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query&&r.query.token||i&&i.get&&i.get("token")||l&&l.elements.token),!e.hasToken&&n.Z.apiKey&&(0,d.r)(t)&&(r.query||(r.query={}),r.query.token=n.Z.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!O(t)&&!(0,u.Hc)(o)){let n;"immediate"===r.authMode?(await E(),n=await s.id.getCredential(t,{signal:o}),e.credential=n):"no-prompt"===r.authMode?(await E(),n=await s.id.getCredential(t,{prompt:!1,signal:o}).catch((()=>{})),e.credential=n):s.id&&(n=s.id.findCredential(t)),n&&(e.credentialToken=n.token,e.useSSL=!!n.ssl)}}(e);try{do{[o,a]=await S(e)}while(!await L(e,o,a))}catch(t){const r=v("request:server",t,e.params,o);throw r.details.ssl=e.useSSL,e.interceptor&&e.interceptor.error&&e.interceptor.error(r),r}const i=e.params.url;if(/\/sharing\/rest\/(accounts|portals)\/self/i.test(i)&&!e.hasToken&&!e.credentialToken&&null!=(t=a)&&null!=(r=t.user)&&r.username&&!(0,c.kl)(i)){const e=(0,c.P$)(i,!0);e&&f.trustedServers.push(e)}const l=e.credential;if(l&&s.id){const e=s.id.findServerInfo(l.server);let t=e&&e.owningSystemUrl;if(t){t=t.replace(/\/?$/,"/sharing");const e=s.id.findCredential(t,l.userId);e&&-1===s.id._getIdenticalSvcIdx(t,e)&&e.resources.unshift(t)}}return{data:a,getHeader:o?e=>o.headers.get(e):k,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}(T);return null==(i=b)||null==i.after||i.after(C),C}let m;const f=n.Z.request,w="FormData"in globalThis,y=[499,498,403,401],g=["COM_0056","COM_0057","SB_0008"],b=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],k=()=>null,q=Symbol();function T(e){const t=(0,c.P$)(e);return!t||t.endsWith(".arcgis.com")||p._corsServers.includes(t)||(0,c.kl)(t)}function v(e,t,r,n){let s="Error";const a={url:r.url,requestOptions:r.requestOptions,getHeader:k,ssl:!1};if(t instanceof o.Z)return t.details?(t.details=(0,i.d9)(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=a,t;if(t){const e=n&&(e=>n.headers.get(e)),r=n&&n.status,o=t.message;o&&(s=o),e&&(a.getHeader=e),a.httpStatus=(null!=t.httpCode?t.httpCode:t.code)||r||0,a.subCode=t.subcode,a.messageCode=t.messageCode,"string"==typeof t.details?a.messages=[t.details]:a.messages=t.details,a.raw=q in t?t[q]:t}return(0,u.D_)(t)?(0,u.zE)():new o.Z(e,s,a)}async function E(){s.id||await Promise.all([r.e(280),r.e(1400),r.e(3879)]).then(r.bind(r,28153))}function O(e){return b.some((t=>t.test(e)))}async function S(e){let t=e.params.url;const r=e.params.requestOptions,n=e.fetchOptions,o=(0,c.jc)(t)||(0,c.HK)(t),i=r.responseType||"json",l=o?0:null!=r.timeout?r.timeout:f.timeout;let d=!1;if(!o){e.useSSL&&(t=(0,c.hO)(t)),r.cacheBust&&"default"===n.cache&&(t=(0,c.ZN)(t,"request.preventCache",Date.now()));let o={...r.query};e.credentialToken&&(o.token=e.credentialToken);let i=(0,c.B7)(o);(0,a.Z)("esri-url-encodes-apostrophe")&&(i=i.replace(/'/g,"%27"));const l=t.length+1+i.length;let u;d="delete"===r.method||"post"===r.method||"put"===r.method||!!r.body||l>f.maxUrlLength;const h=r.useProxy||!!(0,c.ed)(t);if(h){const e=(0,c.b7)(t);u=e.path,!d&&u.length+1+l>f.maxUrlLength&&(d=!0),e.query&&(o={...e.query,...o})}if("HEAD"===n.method&&(d||h)){if(d){if(l>f.maxUrlLength)throw v("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params);throw v("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params)}if(h)throw v("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}if(d?(n.method="delete"===r.method?"DELETE":"put"===r.method?"PUT":"POST",r.body?t=(0,c.fl)(t,o):(n.body=(0,c.B7)(o),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=(0,c.fl)(t,o),h&&(e.useProxy=!0,t=`${u}?${t}`),o.token&&w&&n.body instanceof FormData){const e=n.body;e.set?e.set("token",o.token):e.append("token",o.token)}if(r.hasOwnProperty("withCredentials"))e.withCredentials=r.withCredentials;else if(!(0,c.D6)(t,(0,c.TI)()))if((0,c.kl)(t))e.withCredentials=!0;else if(s.id){const r=s.id.findServerInfo(t);r&&r.webTierAuth&&(e.withCredentials=!0)}e.withCredentials&&(n.credentials="include")}let h,m,y=0,g=!1;l>0&&(y=setTimeout((()=>{g=!0,e.controller.abort()}),l));try{if("native-request-init"===r.responseType)m=n,m.url=t;else if("image"!==r.responseType||"default"!==n.cache||"GET"!==n.method||d||function(e){if(e)for(const t of Object.getOwnPropertyNames(e))if(e[t])return!0;return!1}(r.headers)||!o&&!e.useProxy&&f.proxyUrl&&!T(t)){if(h=await p._abortableFetch(t,n),e.useProxy||function(e){const t=(0,c.P$)(e);t&&!p._corsServers.includes(t)&&p._corsServers.push(t)}(t),"native"===r.responseType)m=h;else if("HEAD"!==n.method)if(h.ok){switch(i){case"array-buffer":m=await h.arrayBuffer();break;case"blob":case"image":m=await h.blob();break;default:m=await h.text()}if(y&&(clearTimeout(y),y=0),"json"===i||"xml"===i||"document"===i)if(m)switch(i){case"json":m=JSON.parse(m);break;case"xml":m=C(m,"application/xml");break;case"document":m=C(m,"text/html")}else m=null;if(m){if("array-buffer"===i||"blob"===i){const e=h.headers.get("Content-Type");if(/application\/json|text\/plain/i.test(e)&&m["blob"===i?"size":"byteLength"]<=750)try{const e=await new Response(m).json();e.error&&(m=e)}catch{}}"image"===i&&m instanceof Blob&&(m=await x(URL.createObjectURL(m),e,!0))}}else m=await h.text()}else m=await x(t,e)}catch(n){if("AbortError"===n.name){if(g)throw new Error("Timeout exceeded");throw(0,u.zE)("Request canceled")}if(!(!h&&n instanceof TypeError&&f.proxyUrl)||r.body||"delete"===r.method||"head"===r.method||"post"===r.method||"put"===r.method||e.useProxy||T(t))throw n;e.redoRequest=!0,(0,c.tD)({proxyUrl:f.proxyUrl,urlPrefix:(0,c.P$)(t)})}finally{y&&clearTimeout(y)}return[h,m]}function C(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 L(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;const n=e.params.requestOptions;if(!t||"native"===n.responseType||"native-request-init"===n.responseType)return!0;let o,a,i,l;if(!t.ok)throw o=new Error(`Unable to load ${t.url} status: ${t.status}`),o[q]=r,o;null!=r&&r.error&&(o=r.error),o&&(a=Number(o.code),i=o.hasOwnProperty("subcode")?Number(o.subcode):null,l=o.messageCode,l=l&&l.toUpperCase());const u=n.authMode;if(403===a&&(4===i||o.message&&o.message.toLowerCase().includes("ssl")&&!o.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&("no-prompt"!==u||498===a)&&y.includes(a)&&!O(e.params.url)&&(403!==a||!g.includes(l)&&(null==i||2===i&&e.credentialToken))){await E();try{const t=await s.id.getCredential(e.params.url,{error:v("request:server",o,e.params),prompt:"no-prompt"!==u,signal:e.controller.signal,token:e.credentialToken});return e.credential=t,e.credentialToken=t.token,e.useSSL=e.useSSL||t.ssl,!1}catch(t){if("no-prompt"===u)return e.credential=null,e.credentialToken=null,!1;o=t}}if(o)throw o;return!0}function x(e,t,r=!1){const n=t.controller.signal,s=new Image;return t.withCredentials?s.crossOrigin="use-credentials":s.crossOrigin="anonymous",s.alt="",s.src=e,(0,h.f)(s,e,r,n)}p._abortableFetch=null,p._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"]},71058:(e,t,r)=>{r.d(t,{r:()=>o});var n=r(17452);const s=["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"];function o(e){const t=(0,n.P$)(e,!0);return t&&t.endsWith(".arcgis.com")&&!s.includes(t)&&!e.endsWith("/sharing/rest/generateToken")}},85958:(e,t,r)=>{r.d(t,{f:()=>a});var n=r(80442),s=r(70586),o=r(95330);function a(e,t,r=!1,a){return new Promise(((l,u)=>{if((0,o.Hc)(a))return void u(i());let c=()=>{p(),u(new Error(`Unable to load ${t}`))},d=()=>{const t=e;p(),l(t)},h=()=>{if(!e)return;const t=e;p(),t.src="",u(i())};const p=()=>{(0,n.Z)("esri-image-decode")||(e.removeEventListener("error",c),e.removeEventListener("load",d)),c=null,d=null,e=null,(0,s.pC)(a)&&a.removeEventListener("abort",h),h=null,r&&URL.revokeObjectURL(t)};(0,s.pC)(a)&&a.addEventListener("abort",h),(0,n.Z)("esri-image-decode")?e.decode().then(d,c):(e.addEventListener("error",c),e.addEventListener("load",d))}))}function i(){try{return new DOMException("Aborted","AbortError")}catch{const e=new Error;return e.name="AbortError",e}}}}]);
@@ -1,2 +0,0 @@
1
- /*! For license information please see c0bf663240df7be68131.js.LICENSE.txt */
2
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[280],{77210:(t,e,r)=>{r.d(e,{YY:()=>o});const n="undefined"!=typeof window?window:{},i=(n.document,n.HTMLElement,{$flags$:0,$resourcesUrl$:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,r,n)=>t.addEventListener(e,r,n),rel:(t,e,r,n)=>t.removeEventListener(e,r,n),ce:(t,e)=>new CustomEvent(t,e)}),o=(new WeakMap,t=>i.$resourcesUrl$=t);new WeakMap,new Map},44291:(t,e,r)=>{r.d(e,{v:()=>C});var n=["input","select","textarea","a[href]","button","[tabindex]:not(slot)","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])',"details>summary:first-of-type","details"],i=n.join(","),o="undefined"==typeof Element,a=o?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,s=!o&&Element.prototype.getRootNode?function(t){return t.getRootNode()}:function(t){return t.ownerDocument},l=function(t,e,r){var n=Array.prototype.slice.apply(t.querySelectorAll(i));return e&&a.call(t,i)&&n.unshift(t),n.filter(r)},c=function t(e,r,n){for(var o=[],s=Array.from(e);s.length;){var l=s.shift();if("SLOT"===l.tagName){var c=l.assignedElements(),u=t(c.length?c:l.children,!0,n);n.flatten?o.push.apply(o,u):o.push({scope:l,candidates:u})}else{a.call(l,i)&&n.filter(l)&&(r||!e.includes(l))&&o.push(l);var d=l.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(l);if(d){var f=t(!0===d?l.children:d.children,!0,n);n.flatten?o.push.apply(o,f):o.push({scope:l,candidates:f})}else s.unshift.apply(s,l.children)}}return o},u=function(t,e){return t.tabIndex<0&&(e||/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||t.isContentEditable)&&isNaN(parseInt(t.getAttribute("tabindex"),10))?0:t.tabIndex},d=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},f=function(t){return"INPUT"===t.tagName},p=function(t){var e=t.getBoundingClientRect(),r=e.width,n=e.height;return 0===r&&0===n},g=function(t,e){return!(e.disabled||function(t){return f(t)&&"hidden"===t.type}(e)||function(t,e){var r=e.displayCheck,n=e.getShadowRoot;if("hidden"===getComputedStyle(t).visibility)return!0;var i=a.call(t,"details>summary:first-of-type")?t.parentElement:t;if(a.call(i,"details:not([open]) *"))return!0;if(!r||"full"===r){if("function"==typeof n){for(var o=t;t;){var l=t.parentElement,c=s(t);if(l&&!l.shadowRoot&&!0===n(l))return p(t);t=t.assignedSlot?t.assignedSlot:l||c===t.ownerDocument?l:c.host}t=o}return!t.getClientRects().length}return"non-zero-area"===r&&p(t)}(e,t)||function(t){return"DETAILS"===t.tagName&&Array.prototype.slice.apply(t.children).some((function(t){return"SUMMARY"===t.tagName}))}(e)||function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if("FIELDSET"===e.tagName&&e.disabled){for(var r=0;r<e.children.length;r++){var n=e.children.item(r);if("LEGEND"===n.tagName)return!!a.call(e,"fieldset[disabled] *")||!n.contains(t)}return!0}e=e.parentElement}return!1}(e))},b=function(t,e){return!(function(t){return function(t){return f(t)&&"radio"===t.type}(t)&&!function(t){if(!t.name)return!0;var e,r=t.form||s(t),n=function(t){return r.querySelectorAll('input[type="radio"][name="'+t+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)e=n(window.CSS.escape(t.name));else try{e=n(t.name)}catch(t){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",t.message),!1}var i=function(t,e){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===e)return t[r]}(e,t.form);return!i||i===t}(t)}(e)||u(e)<0||!g(t,e))},h=function t(e){var r=[],n=[];return e.forEach((function(e,i){var o=!!e.scope,a=o?e.scope:e,s=u(a,o),l=o?t(e.candidates):a;0===s?o?r.push.apply(r,l):r.push(a):n.push({documentOrder:i,tabIndex:s,item:e,isScope:o,content:l})})),n.sort(d).reduce((function(t,e){return e.isScope?t.push.apply(t,e.content):t.push(e.content),t}),[]).concat(r)},m=function(t,e){var r;return r=(e=e||{}).getShadowRoot?c([t],e.includeContainer,{filter:b.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot}):l(t,e.includeContainer,b.bind(null,e)),h(r)},v=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==a.call(t,i)&&b(e,t)},y=n.concat("iframe").join(","),w=function(t,e){if(e=e||{},!t)throw new Error("No node provided");return!1!==a.call(t,y)&&g(e,t)};function x(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function k(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var A,O=(A=[],{activateTrap:function(t){if(A.length>0){var e=A[A.length-1];e!==t&&e.pause()}var r=A.indexOf(t);-1===r||A.splice(r,1),A.push(t)},deactivateTrap:function(t){var e=A.indexOf(t);-1!==e&&A.splice(e,1),A.length>0&&A[A.length-1].unpause()}}),T=function(t){return setTimeout(t,0)},S=function(t,e){var r=-1;return t.every((function(t,n){return!e(t)||(r=n,!1)})),r},E=function(t){for(var e=arguments.length,r=new Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];return"function"==typeof t?t.apply(void 0,r):t},I=function(t){return t.target.shadowRoot&&"function"==typeof t.composedPath?t.composedPath()[0]:t.target},C=function(t,e){var r,n=(null==e?void 0:e.document)||document,i=function(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?x(Object(r),!0).forEach((function(e){k(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):x(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0},e),o={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0},a=function(t,e,r){return t&&void 0!==t[e]?t[e]:i[r||e]},s=function(t){return o.containerGroups.findIndex((function(e){var r=e.container,n=e.tabbableNodes;return r.contains(t)||n.find((function(e){return e===t}))}))},u=function(t){var e=i[t];if("function"==typeof e){for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];e=e.apply(void 0,o)}if(!e){if(void 0===e||!1===e)return e;throw new Error("`".concat(t,"` was specified but was not a node, or did not return a node"))}var s=e;if("string"==typeof e&&!(s=n.querySelector(e)))throw new Error("`".concat(t,"` as selector refers to no known node"));return s},d=function(){var t=u("initialFocus");if(!1===t)return!1;if(void 0===t)if(s(n.activeElement)>=0)t=n.activeElement;else{var e=o.tabbableGroups[0];t=e&&e.firstTabbableNode||u("fallbackFocus")}if(!t)throw new Error("Your focus-trap needs to have at least one focusable element");return t},f=function(){if(o.containerGroups=o.containers.map((function(t){var e,r,n=m(t,i.tabbableOptions),o=(e=t,(r=(r=i.tabbableOptions)||{}).getShadowRoot?c([e],r.includeContainer,{filter:g.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):l(e,r.includeContainer,g.bind(null,r)));return{container:t,tabbableNodes:n,focusableNodes:o,firstTabbableNode:n.length>0?n[0]:null,lastTabbableNode:n.length>0?n[n.length-1]:null,nextTabbableNode:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=o.findIndex((function(e){return e===t}));if(!(r<0))return e?o.slice(r+1).find((function(t){return v(t,i.tabbableOptions)})):o.slice(0,r).reverse().find((function(t){return v(t,i.tabbableOptions)}))}}})),o.tabbableGroups=o.containerGroups.filter((function(t){return t.tabbableNodes.length>0})),o.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times")},p=function t(e){!1!==e&&e!==n.activeElement&&(e&&e.focus?(e.focus({preventScroll:!!i.preventScroll}),o.mostRecentlyFocusedNode=e,function(t){return t.tagName&&"input"===t.tagName.toLowerCase()&&"function"==typeof t.select}(e)&&e.select()):t(d()))},b=function(t){var e=u("setReturnFocus",t);return e||!1!==e&&t},h=function(t){var e=I(t);s(e)>=0||(E(i.clickOutsideDeactivates,t)?r.deactivate({returnFocus:i.returnFocusOnDeactivate&&!w(e,i.tabbableOptions)}):E(i.allowOutsideClick,t)||t.preventDefault())},y=function(t){var e=I(t),r=s(e)>=0;r||e instanceof Document?r&&(o.mostRecentlyFocusedNode=e):(t.stopImmediatePropagation(),p(o.mostRecentlyFocusedNode||d()))},A=function(t){if(function(t){return"Escape"===t.key||"Esc"===t.key||27===t.keyCode}(t)&&!1!==E(i.escapeDeactivates,t))return t.preventDefault(),void r.deactivate();(function(t){return"Tab"===t.key||9===t.keyCode})(t)&&function(t){var e=I(t);f();var r=null;if(o.tabbableGroups.length>0){var n=s(e),a=n>=0?o.containerGroups[n]:void 0;if(n<0)r=t.shiftKey?o.tabbableGroups[o.tabbableGroups.length-1].lastTabbableNode:o.tabbableGroups[0].firstTabbableNode;else if(t.shiftKey){var l=S(o.tabbableGroups,(function(t){var r=t.firstTabbableNode;return e===r}));if(l<0&&(a.container===e||w(e,i.tabbableOptions)&&!v(e,i.tabbableOptions)&&!a.nextTabbableNode(e,!1))&&(l=n),l>=0){var c=0===l?o.tabbableGroups.length-1:l-1;r=o.tabbableGroups[c].lastTabbableNode}}else{var d=S(o.tabbableGroups,(function(t){var r=t.lastTabbableNode;return e===r}));if(d<0&&(a.container===e||w(e,i.tabbableOptions)&&!v(e,i.tabbableOptions)&&!a.nextTabbableNode(e))&&(d=n),d>=0){var g=d===o.tabbableGroups.length-1?0:d+1;r=o.tabbableGroups[g].firstTabbableNode}}}else r=u("fallbackFocus");r&&(t.preventDefault(),p(r))}(t)},C=function(t){if(!E(i.clickOutsideDeactivates,t)){var e=I(t);s(e)>=0||E(i.allowOutsideClick,t)||(t.preventDefault(),t.stopImmediatePropagation())}},j=function(){if(o.active)return O.activateTrap(r),o.delayInitialFocusTimer=i.delayInitialFocus?T((function(){p(d())})):p(d()),n.addEventListener("focusin",y,!0),n.addEventListener("mousedown",h,{capture:!0,passive:!1}),n.addEventListener("touchstart",h,{capture:!0,passive:!1}),n.addEventListener("click",C,{capture:!0,passive:!1}),n.addEventListener("keydown",A,{capture:!0,passive:!1}),r},F=function(){if(o.active)return n.removeEventListener("focusin",y,!0),n.removeEventListener("mousedown",h,!0),n.removeEventListener("touchstart",h,!0),n.removeEventListener("click",C,!0),n.removeEventListener("keydown",A,!0),r};return(r={activate:function(t){if(o.active)return this;var e=a(t,"onActivate"),r=a(t,"onPostActivate"),i=a(t,"checkCanFocusTrap");i||f(),o.active=!0,o.paused=!1,o.nodeFocusedBeforeActivation=n.activeElement,e&&e();var s=function(){i&&f(),j(),r&&r()};return i?(i(o.containers.concat()).then(s,s),this):(s(),this)},deactivate:function(t){if(!o.active)return this;clearTimeout(o.delayInitialFocusTimer),o.delayInitialFocusTimer=void 0,F(),o.active=!1,o.paused=!1,O.deactivateTrap(r);var e=a(t,"onDeactivate"),n=a(t,"onPostDeactivate"),i=a(t,"checkCanReturnFocus");e&&e();var s=a(t,"returnFocus","returnFocusOnDeactivate"),l=function(){T((function(){s&&p(b(o.nodeFocusedBeforeActivation)),n&&n()}))};return s&&i?(i(b(o.nodeFocusedBeforeActivation)).then(l,l),this):(l(),this)},pause:function(){return o.paused||!o.active||(o.paused=!0,F()),this},unpause:function(){return o.paused&&o.active?(o.paused=!1,f(),j(),this):this},updateContainerElements:function(t){var e=[].concat(t).filter(Boolean);return o.containers=e.map((function(t){return"string"==typeof t?n.querySelector(t):t})),o.active&&f(),this}}).updateContainerElements(t),r}},8728:(t,e,r)=>{r.d(e,{Z:()=>dt});var n,i,o=Function.prototype,a=Object.prototype,s=o.toString,l=a.hasOwnProperty,c=s.call(Object),u=a.toString,d=(n=Object.getPrototypeOf,i=Object,function(t){return n(i(t))}),f={exports:{}},p={},g={exports:{}},b={};function h(){return{"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1}}var m=/javascript\s*\:/gim;b.whiteList={"align-content":!1,"align-items":!1,"align-self":!1,"alignment-adjust":!1,"alignment-baseline":!1,all:!1,"anchor-point":!1,animation:!1,"animation-delay":!1,"animation-direction":!1,"animation-duration":!1,"animation-fill-mode":!1,"animation-iteration-count":!1,"animation-name":!1,"animation-play-state":!1,"animation-timing-function":!1,azimuth:!1,"backface-visibility":!1,background:!0,"background-attachment":!0,"background-clip":!0,"background-color":!0,"background-image":!0,"background-origin":!0,"background-position":!0,"background-repeat":!0,"background-size":!0,"baseline-shift":!1,binding:!1,bleed:!1,"bookmark-label":!1,"bookmark-level":!1,"bookmark-state":!1,border:!0,"border-bottom":!0,"border-bottom-color":!0,"border-bottom-left-radius":!0,"border-bottom-right-radius":!0,"border-bottom-style":!0,"border-bottom-width":!0,"border-collapse":!0,"border-color":!0,"border-image":!0,"border-image-outset":!0,"border-image-repeat":!0,"border-image-slice":!0,"border-image-source":!0,"border-image-width":!0,"border-left":!0,"border-left-color":!0,"border-left-style":!0,"border-left-width":!0,"border-radius":!0,"border-right":!0,"border-right-color":!0,"border-right-style":!0,"border-right-width":!0,"border-spacing":!0,"border-style":!0,"border-top":!0,"border-top-color":!0,"border-top-left-radius":!0,"border-top-right-radius":!0,"border-top-style":!0,"border-top-width":!0,"border-width":!0,bottom:!1,"box-decoration-break":!0,"box-shadow":!0,"box-sizing":!0,"box-snap":!0,"box-suppress":!0,"break-after":!0,"break-before":!0,"break-inside":!0,"caption-side":!1,chains:!1,clear:!0,clip:!1,"clip-path":!1,"clip-rule":!1,color:!0,"color-interpolation-filters":!0,"column-count":!1,"column-fill":!1,"column-gap":!1,"column-rule":!1,"column-rule-color":!1,"column-rule-style":!1,"column-rule-width":!1,"column-span":!1,"column-width":!1,columns:!1,contain:!1,content:!1,"counter-increment":!1,"counter-reset":!1,"counter-set":!1,crop:!1,cue:!1,"cue-after":!1,"cue-before":!1,cursor:!1,direction:!1,display:!0,"display-inside":!0,"display-list":!0,"display-outside":!0,"dominant-baseline":!1,elevation:!1,"empty-cells":!1,filter:!1,flex:!1,"flex-basis":!1,"flex-direction":!1,"flex-flow":!1,"flex-grow":!1,"flex-shrink":!1,"flex-wrap":!1,float:!1,"float-offset":!1,"flood-color":!1,"flood-opacity":!1,"flow-from":!1,"flow-into":!1,font:!0,"font-family":!0,"font-feature-settings":!0,"font-kerning":!0,"font-language-override":!0,"font-size":!0,"font-size-adjust":!0,"font-stretch":!0,"font-style":!0,"font-synthesis":!0,"font-variant":!0,"font-variant-alternates":!0,"font-variant-caps":!0,"font-variant-east-asian":!0,"font-variant-ligatures":!0,"font-variant-numeric":!0,"font-variant-position":!0,"font-weight":!0,grid:!1,"grid-area":!1,"grid-auto-columns":!1,"grid-auto-flow":!1,"grid-auto-rows":!1,"grid-column":!1,"grid-column-end":!1,"grid-column-start":!1,"grid-row":!1,"grid-row-end":!1,"grid-row-start":!1,"grid-template":!1,"grid-template-areas":!1,"grid-template-columns":!1,"grid-template-rows":!1,"hanging-punctuation":!1,height:!0,hyphens:!1,icon:!1,"image-orientation":!1,"image-resolution":!1,"ime-mode":!1,"initial-letters":!1,"inline-box-align":!1,"justify-content":!1,"justify-items":!1,"justify-self":!1,left:!1,"letter-spacing":!0,"lighting-color":!0,"line-box-contain":!1,"line-break":!1,"line-grid":!1,"line-height":!1,"line-snap":!1,"line-stacking":!1,"line-stacking-ruby":!1,"line-stacking-shift":!1,"line-stacking-strategy":!1,"list-style":!0,"list-style-image":!0,"list-style-position":!0,"list-style-type":!0,margin:!0,"margin-bottom":!0,"margin-left":!0,"margin-right":!0,"margin-top":!0,"marker-offset":!1,"marker-side":!1,marks:!1,mask:!1,"mask-box":!1,"mask-box-outset":!1,"mask-box-repeat":!1,"mask-box-slice":!1,"mask-box-source":!1,"mask-box-width":!1,"mask-clip":!1,"mask-image":!1,"mask-origin":!1,"mask-position":!1,"mask-repeat":!1,"mask-size":!1,"mask-source-type":!1,"mask-type":!1,"max-height":!0,"max-lines":!1,"max-width":!0,"min-height":!0,"min-width":!0,"move-to":!1,"nav-down":!1,"nav-index":!1,"nav-left":!1,"nav-right":!1,"nav-up":!1,"object-fit":!1,"object-position":!1,opacity:!1,order:!1,orphans:!1,outline:!1,"outline-color":!1,"outline-offset":!1,"outline-style":!1,"outline-width":!1,overflow:!1,"overflow-wrap":!1,"overflow-x":!1,"overflow-y":!1,padding:!0,"padding-bottom":!0,"padding-left":!0,"padding-right":!0,"padding-top":!0,page:!1,"page-break-after":!1,"page-break-before":!1,"page-break-inside":!1,"page-policy":!1,pause:!1,"pause-after":!1,"pause-before":!1,perspective:!1,"perspective-origin":!1,pitch:!1,"pitch-range":!1,"play-during":!1,position:!1,"presentation-level":!1,quotes:!1,"region-fragment":!1,resize:!1,rest:!1,"rest-after":!1,"rest-before":!1,richness:!1,right:!1,rotation:!1,"rotation-point":!1,"ruby-align":!1,"ruby-merge":!1,"ruby-position":!1,"shape-image-threshold":!1,"shape-outside":!1,"shape-margin":!1,size:!1,speak:!1,"speak-as":!1,"speak-header":!1,"speak-numeral":!1,"speak-punctuation":!1,"speech-rate":!1,stress:!1,"string-set":!1,"tab-size":!1,"table-layout":!1,"text-align":!0,"text-align-last":!0,"text-combine-upright":!0,"text-decoration":!0,"text-decoration-color":!0,"text-decoration-line":!0,"text-decoration-skip":!0,"text-decoration-style":!0,"text-emphasis":!0,"text-emphasis-color":!0,"text-emphasis-position":!0,"text-emphasis-style":!0,"text-height":!0,"text-indent":!0,"text-justify":!0,"text-orientation":!0,"text-overflow":!0,"text-shadow":!0,"text-space-collapse":!0,"text-transform":!0,"text-underline-position":!0,"text-wrap":!0,top:!1,transform:!1,"transform-origin":!1,"transform-style":!1,transition:!1,"transition-delay":!1,"transition-duration":!1,"transition-property":!1,"transition-timing-function":!1,"unicode-bidi":!1,"vertical-align":!1,visibility:!1,"voice-balance":!1,"voice-duration":!1,"voice-family":!1,"voice-pitch":!1,"voice-range":!1,"voice-rate":!1,"voice-stress":!1,"voice-volume":!1,volume:!1,"white-space":!1,widows:!1,width:!0,"will-change":!1,"word-break":!0,"word-spacing":!0,"word-wrap":!0,"wrap-flow":!1,"wrap-through":!1,"writing-mode":!1,"z-index":!1},b.getDefaultWhiteList=h,b.onAttr=function(t,e,r){},b.onIgnoreAttr=function(t,e,r){},b.safeAttrValue=function(t,e){return m.test(e)?"":e};var v=function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},y=function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")},w=b,x=function(t,e){";"!==(t=y(t))[t.length-1]&&(t+=";");var r=t.length,n=!1,i=0,o=0,a="";function s(){if(!n){var r=v(t.slice(i,o)),s=r.indexOf(":");if(-1!==s){var l=v(r.slice(0,s)),c=v(r.slice(s+1));if(l){var u=e(i,a.length,l,c,r);u&&(a+=u+"; ")}}}i=o+1}for(;o<r;o++){var l=t[o];if("/"===l&&"*"===t[o+1]){var c=t.indexOf("*/",o+2);if(-1===c)break;i=(o=c+1)+1,n=!1}else"("===l?n=!0:")"===l?n=!1:";"===l?n||s():"\n"===l&&s()}return v(a)};function k(t){return null==t}function A(t){(t=function(t){var e={};for(var r in t)e[r]=t[r];return e}(t||{})).whiteList=t.whiteList||w.whiteList,t.onAttr=t.onAttr||w.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||w.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||w.safeAttrValue,this.options=t}A.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,r=e.whiteList,n=e.onAttr,i=e.onIgnoreAttr,o=e.safeAttrValue;return x(t,(function(t,e,a,s,l){var c=r[a],u=!1;if(!0===c?u=c:"function"==typeof c?u=c(s):c instanceof RegExp&&(u=c.test(s)),!0!==u&&(u=!1),s=o(a,s)){var d,f={position:e,sourcePosition:t,source:l,isWhite:u};return u?k(d=n(a,s,f))?a+":"+s:d:k(d=i(a,s,f))?void 0:d}}))};var O=A;!function(t,e){var r=b,n=O;for(var i in(e=t.exports=function(t,e){return new n(e).process(t)}).FilterCSS=n,r)e[i]=r[i]}(g,g.exports);var T={indexOf:function(t,e){var r,n;if(Array.prototype.indexOf)return t.indexOf(e);for(r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1},forEach:function(t,e,r){var n,i;if(Array.prototype.forEach)return t.forEach(e,r);for(n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(t){var e=/\s|\n|\t/.exec(t);return e?e.index:-1}},S=g.exports.FilterCSS,E=g.exports.getDefaultWhiteList,I=T;var C=new S;function j(t){return t.replace(F,"&lt;").replace(L,"&gt;")}var F=/</g,L=/>/g,N=/"/g,z=/&quot;/g,D=/&#([a-zA-Z0-9]*);?/gim,R=/&colon;?/gim,P=/&newline;?/gim,V=/((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,G=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,B=/u\s*r\s*l\s*\(.*/gi;function W(t){return t.replace(N,"&quot;")}function q(t){return t.replace(z,'"')}function $(t){return t.replace(D,(function(t,e){return"x"===e[0]||"X"===e[0]?String.fromCharCode(parseInt(e.substr(1),16)):String.fromCharCode(parseInt(e,10))}))}function U(t){return t.replace(R,":").replace(P," ")}function H(t){for(var e="",r=0,n=t.length;r<n;r++)e+=t.charCodeAt(r)<32?" ":t.charAt(r);return I.trim(e)}function M(t){return H(t=U(t=$(t=q(t))))}function _(t){return j(t=W(t))}p.whiteList={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"]},p.getDefaultWhiteList=function(){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"]}},p.onTag=function(t,e,r){},p.onIgnoreTag=function(t,e,r){},p.onTagAttr=function(t,e,r){},p.onIgnoreTagAttr=function(t,e,r){},p.safeAttrValue=function(t,e,r,n){if(r=M(r),"href"===e||"src"===e){if("#"===(r=I.trim(r)))return"#";if("http://"!==r.substr(0,7)&&"https://"!==r.substr(0,8)&&"mailto:"!==r.substr(0,7)&&"tel:"!==r.substr(0,4)&&"data:image/"!==r.substr(0,11)&&"ftp://"!==r.substr(0,6)&&"./"!==r.substr(0,2)&&"../"!==r.substr(0,3)&&"#"!==r[0]&&"/"!==r[0])return""}else if("background"===e){if(V.lastIndex=0,V.test(r))return""}else if("style"===e){if(G.lastIndex=0,G.test(r))return"";if(B.lastIndex=0,B.test(r)&&(V.lastIndex=0,V.test(r)))return"";!1!==n&&(r=(n=n||C).process(r))}return _(r)},p.escapeHtml=j,p.escapeQuote=W,p.unescapeQuote=q,p.escapeHtmlEntities=$,p.escapeDangerHtml5Entities=U,p.clearNonPrintableCharacter=H,p.friendlyAttrValue=M,p.escapeAttrValue=_,p.onIgnoreTagStripAll=function(){return""},p.StripTagBody=function(t,e){"function"!=typeof e&&(e=function(){});var r=!Array.isArray(t),n=[],i=!1;return{onIgnoreTag:function(o,a,s){if(function(e){return!!r||-1!==I.indexOf(t,e)}(o)){if(s.isClosing){var l="[/removed]",c=s.position+l.length;return n.push([!1!==i?i:s.position,c]),i=!1,l}return i||(i=s.position),"[removed]"}return e(o,a,s)},remove:function(t){var e="",r=0;return I.forEach(n,(function(n){e+=t.slice(r,n[0]),r=n[1]})),e+=t.slice(r)}}},p.stripCommentTag=function(t){for(var e="",r=0;r<t.length;){var n=t.indexOf("\x3c!--",r);if(-1===n){e+=t.slice(r);break}e+=t.slice(r,n);var i=t.indexOf("--\x3e",n);if(-1===i)break;r=i+3}return e},p.stripBlankChar=function(t){var e=t.split("");return(e=e.filter((function(t){var e=t.charCodeAt(0);return!(127===e||e<=31&&10!==e&&13!==e)}))).join("")},p.cssFilter=C,p.getDefaultCSSWhiteList=E;var X={},Y=T;function Z(t){var e=Y.spaceIndex(t);if(-1===e)var r=t.slice(1,-1);else r=t.slice(1,e+1);return"/"===(r=Y.trim(r).toLowerCase()).slice(0,1)&&(r=r.slice(1)),"/"===r.slice(-1)&&(r=r.slice(0,-1)),r}function K(t){return"</"===t.slice(0,2)}var Q=/[^a-zA-Z0-9_:\.\-]/gim;function J(t,e){for(;e<t.length;e++){var r=t[e];if(" "!==r)return"="===r?e:-1}}function tt(t,e){for(;e>0;e--){var r=t[e];if(" "!==r)return"="===r?e:-1}}function et(t){return function(t){return'"'===t[0]&&'"'===t[t.length-1]||"'"===t[0]&&"'"===t[t.length-1]}(t)?t.substr(1,t.length-2):t}X.parseTag=function(t,e,r){var n="",i=0,o=!1,a=!1,s=0,l=t.length,c="",u="";t:for(s=0;s<l;s++){var d=t.charAt(s);if(!1===o){if("<"===d){o=s;continue}}else if(!1===a){if("<"===d){n+=r(t.slice(i,s)),o=s,i=s;continue}if(">"===d){n+=r(t.slice(i,o)),c=Z(u=t.slice(o,s+1)),n+=e(o,n.length,c,u,K(u)),i=s+1,o=!1;continue}if('"'===d||"'"===d)for(var f=1,p=t.charAt(s-f);""===p.trim()||"="===p;){if("="===p){a=d;continue t}p=t.charAt(s-++f)}}else if(d===a){a=!1;continue}}return i<t.length&&(n+=r(t.substr(i))),n},X.parseAttr=function(t,e){var r=0,n=[],i=!1,o=t.length;function a(t,r){if(!((t=(t=Y.trim(t)).replace(Q,"").toLowerCase()).length<1)){var i=e(t,r||"");i&&n.push(i)}}for(var s=0;s<o;s++){var l,c=t.charAt(s);if(!1!==i||"="!==c)if(!1===i||s!==r||'"'!==c&&"'"!==c||"="!==t.charAt(s-1)){if(/\s|\n|\t/.test(c)){if(t=t.replace(/\s|\n|\t/g," "),!1===i){if(-1===(l=J(t,s))){a(Y.trim(t.slice(r,s))),i=!1,r=s+1;continue}s=l-1;continue}if(-1===(l=tt(t,s-1))){a(i,et(Y.trim(t.slice(r,s)))),i=!1,r=s+1;continue}}}else{if(-1===(l=t.indexOf(c,s+1)))break;a(i,Y.trim(t.slice(r+1,l))),i=!1,r=(s=l)+1}else i=t.slice(r,s),r=s+1}return r<t.length&&(!1===i?a(t.slice(r)):a(i,et(Y.trim(t.slice(r))))),Y.trim(n.join(" "))};var rt=g.exports.FilterCSS,nt=p,it=X,ot=it.parseTag,at=it.parseAttr,st=T;function lt(t){return null==t}function ct(t){(t=function(t){var e={};for(var r in t)e[r]=t[r];return e}(t||{})).stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=nt.onIgnoreTagStripAll),t.whiteList=t.whiteList||t.allowList||nt.whiteList,t.onTag=t.onTag||nt.onTag,t.onTagAttr=t.onTagAttr||nt.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||nt.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||nt.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||nt.safeAttrValue,t.escapeHtml=t.escapeHtml||nt.escapeHtml,this.options=t,!1===t.css?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new rt(t.css))}ct.prototype.process=function(t){if(!(t=(t=t||"").toString()))return"";var e=this.options,r=e.whiteList,n=e.onTag,i=e.onIgnoreTag,o=e.onTagAttr,a=e.onIgnoreTagAttr,s=e.safeAttrValue,l=e.escapeHtml,c=this.cssFilter;e.stripBlankChar&&(t=nt.stripBlankChar(t)),e.allowCommentTag||(t=nt.stripCommentTag(t));var u=!1;e.stripIgnoreTagBody&&(u=nt.StripTagBody(e.stripIgnoreTagBody,i),i=u.onIgnoreTag);var d=ot(t,(function(t,e,u,d,f){var p,g={sourcePosition:t,position:e,isClosing:f,isWhite:r.hasOwnProperty(u)};if(!lt(p=n(u,d,g)))return p;if(g.isWhite){if(g.isClosing)return"</"+u+">";var b=function(t){var e=st.spaceIndex(t);if(-1===e)return{html:"",closing:"/"===t[t.length-2]};var r="/"===(t=st.trim(t.slice(e+1,-1)))[t.length-1];return r&&(t=st.trim(t.slice(0,-1))),{html:t,closing:r}}(d),h=r[u],m=at(b.html,(function(t,e){var r,n=-1!==st.indexOf(h,t);return lt(r=o(u,t,e,n))?n?(e=s(u,t,e,c))?t+'="'+e+'"':t:lt(r=a(u,t,e,n))?void 0:r:r}));return d="<"+u,m&&(d+=" "+m),b.closing&&(d+=" /"),d+">"}return lt(p=i(u,d,g))?l(d):p}),l);return u&&(d=u.remove(d)),d};var ut=ct;!function(t,e){var r=p,n=X,i=ut;function o(t,e){return new i(e).process(t)}for(var a in(e=t.exports=o).filterXSS=o,e.FilterXSS=i,r)e[a]=r[a];for(var a in n)e[a]=n[a];"undefined"!=typeof self&&"undefined"!=typeof DedicatedWorkerGlobalScope&&self instanceof DedicatedWorkerGlobalScope&&(self.filterXSS=t.exports)}(f,f.exports);var dt=function(){function t(t,e){var r,n=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],audio:["autoplay","controls","loop","muted","preload"],b:[],br:[],dd:["style"],div:["align","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],ol:[],p:["style"],source:["media","src","type"],span:["style"],strong:[],sub:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(t,e,r,i){return"a"===t&&"href"===e||("img"===t||"source"===t)&&"src"===e?n.sanitizeUrl(r):f.exports.safeAttrValue(t,e,r,i)}},t&&!e?r=t:t&&e?(r=Object.create(this.arcgisFilterOptions),Object.keys(t).forEach((function(e){"whiteList"===e?r.whiteList=n._extendObjectOfArrays([n.arcgisWhiteList,t.whiteList||{}]):r[e]=t[e]}))):(r=Object.create(this.arcgisFilterOptions)).whiteList=this.arcgisWhiteList,this.xssFilterOptions=r,this._xssFilter=new f.exports.FilterXSS(r)}return t.prototype.sanitize=function(t,e){switch(void 0===e&&(e={}),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,e);default:if(e.allowUndefined&&void 0===t)return;return null}},t.prototype.sanitizeUrl=function(t,e){var r=(null!=e?e:{}).isProtocolRequired,n=void 0===r||r,i=this._trim(t.substring(0,t.indexOf(":"))),o="/"===t,a=/^#/.test(t),s=i&&this.allowedProtocols.indexOf(i.toLowerCase())>-1;return o||a||s?f.exports.escapeAttrValue(t):i||n?"":f.exports.escapeAttrValue("https://".concat(t))},t.prototype.sanitizeHTMLAttribute=function(t,e,r,n){return"function"==typeof this.xssFilterOptions.safeAttrValue?this.xssFilterOptions.safeAttrValue(t,e,r,n):f.exports.safeAttrValue(t,e,r,n)},t.prototype.validate=function(t,e){void 0===e&&(e={});var r=this.sanitize(t,e);return{isValid:t===r,sanitized:r}},t.prototype._extendObjectOfArrays=function(t){var e={};return t.forEach((function(t){Object.keys(t).forEach((function(r){Array.isArray(t[r])&&Array.isArray(e[r])?e[r]=e[r].concat(t[r]):e[r]=t[r]}))})),e},t.prototype._iterateOverObject=function(t,e){var r=this;void 0===e&&(e={});try{var n=!1,i=void 0;if(Array.isArray(t))i=t.reduce((function(t,i){var o=r.validate(i,e);return o.isValid?t.concat([i]):(n=!0,t.concat([o.sanitized]))}),[]);else{if(!function(t){if(!function(t){return!!t&&"object"==typeof t}(t)||"[object Object]"!=u.call(t)||function(t){var e=!1;if(null!=t&&"function"!=typeof t.toString)try{e=!!(t+"")}catch(t){}return e}(t))return!1;var e=d(t);if(null===e)return!0;var r=l.call(e,"constructor")&&e.constructor;return"function"==typeof r&&r instanceof r&&s.call(r)==c}(t)){if(e.allowUndefined&&void 0===t)return;return null}i=Object.keys(t).reduce((function(i,o){var a=t[o],s=r.validate(a,e);return s.isValid?i[o]=a:(n=!0,i[o]=s.sanitized),i}),{})}return n?i:t}catch(t){return null}},t.prototype._trim=function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},t}()}}]);
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1408],{88387:(e,t,r)=>{r.r(t),r.d(t,{default:()=>X});var i,n=r(43697),s=(r(66577),r(51773)),o=(r(16050),r(12501),r(95088),r(79056),r(5499),r(84382)),l=r(30687),a=r(91423),p=r(32400),d=r(3172),u=r(78223),c=r(20102),h=r(92604),y=r(70586),m=r(16453),f=r(95330),b=r(5600),v=(r(67676),r(80442),r(75215)),g=r(71715),w=r(52011),S=r(63213),x=r(86973),_=r(29600),I=r(17287),C=r(71612),P=r(17017),E=r(69637),L=r(38009),j=r(16859),F=r(34760),N=r(72965),O=r(28294),Z=r(21506),R=r(55785),D=r(53518),$=r(35671),k=r(2319),A=r(30707),T=r(96674);let U=i=class extends T.wq{constructor(){super(...arguments),this.age=null,this.ageReceived=null,this.displayCount=null,this.maxObservations=1}clone(){return new i({age:this.age,ageReceived:this.ageReceived,displayCount:this.displayCount,maxObservations:this.maxObservations})}};(0,n._)([(0,b.Cb)({type:Number,json:{write:!0}})],U.prototype,"age",void 0),(0,n._)([(0,b.Cb)({type:Number,json:{write:!0}})],U.prototype,"ageReceived",void 0),(0,n._)([(0,b.Cb)({type:Number,json:{write:!0}})],U.prototype,"displayCount",void 0),(0,n._)([(0,b.Cb)({type:Number,json:{write:!0}})],U.prototype,"maxObservations",void 0),U=i=(0,n._)([(0,w.j)("esri.layers.support.PurgeOptions")],U);const V=U;var z=r(40555),J=r(57444),B=r(32163),q=r(20682),M=r(82971),H=r(6570);const W=h.Z.getLogger("esri.layers.StreamLayer"),Y=(0,D.v)();let G=class extends((0,E.b)((0,C.h)((0,O.n)((0,N.M)((0,F.Q)((0,I.Y)((0,L.q)((0,j.I)((0,m.R)((0,P.N)(_.Z))))))))))){constructor(...e){super(...e),this.copyright=null,this.definitionExpression=null,this.displayField=null,this.elevationInfo=null,this.featureReduction=null,this.fields=null,this.fieldsIndex=null,this.geometryDefinition=null,this.geometryType=null,this.labelsVisible=!0,this.labelingInfo=null,this.legendEnabled=!0,this.maxReconnectionAttempts=0,this.maxReconnectionInterval=20,this.maxScale=0,this.minScale=0,this.objectIdField=null,this.operationalLayerType="ArcGISStreamLayer",this.popupEnabled=!0,this.popupTemplate=null,this.purgeOptions=new V,this.screenSizePerspectiveEnabled=!0,this.sourceJSON=null,this.spatialReference=M.Z.WGS84,this.type="stream",this.url=null,this.updateInterval=300,this.webSocketUrl=null}normalizeCtorArgs(e,t){return"string"==typeof e?{url:e,...t}:e}load(e){if(!("WebSocket"in globalThis))return this.addResolvingPromise(Promise.reject(new c.Z("stream-layer:websocket-unsupported","WebSocket is not supported in this browser. StreamLayer will not have real-time connection with the stream service."))),Promise.resolve(this);const t=(0,y.pC)(e)?e.signal:null;return this.addResolvingPromise(this.loadFromPortal({supportedTypes:["Stream Service","Feed"]},e).catch(f.r9).then((()=>this._fetchService(t)))),Promise.resolve(this)}get defaultPopupTemplate(){return this.createPopupTemplate()}set renderer(e){(0,$.YN)(e,this.fieldsIndex),this._set("renderer",e)}readRenderer(e,t,r){const i=(t=t.layerDefinition||t).drawingInfo&&t.drawingInfo.renderer||void 0;if(i){const e=(0,a.a)(i,t,r)||void 0;return e||W.error("Failed to create renderer",{rendererDefinition:t.drawingInfo.renderer,layer:this,context:r}),e}if(t.defaultSymbol)return t.types&&t.types.length?new l.Z({defaultSymbol:Q(t.defaultSymbol,t,r),field:t.typeIdField,uniqueValueInfos:t.types.map((e=>({id:e.id,symbol:Q(e.symbol,e,r)})))}):new o.Z({symbol:Q(t.defaultSymbol,t,r)})}createPopupTemplate(e){return(0,B.eZ)(this,e)}createQuery(){const e=new J.Z;return e.returnGeometry=!0,e.outFields=["*"],e.where=this.definitionExpression||"1=1",e}getFieldDomain(e,t){if(!this.fields)return null;let r=null;return this.fields.some((t=>(t.name===e&&(r=t.domain),!!r))),r}getField(e){return this.fieldsIndex.get(e)}serviceSupportsSpatialReference(e){return!0}async _fetchService(e){var t;if(this.webSocketUrl){var r;if(null==(r=this.timeInfo)||!r.trackIdField)throw new c.Z("stream-layer:missing-metadata","The stream layer trackIdField must be specified.");if(!this.objectIdField)throw new c.Z("stream-layer:missing-metadata","The stream layer objectIdField must be specified.");if(!this.fields)throw new c.Z("stream-layer:missing-metadata","The stream layer fields must be specified.");if(!this.geometryType)throw new c.Z("stream-layer:missing-metadata","The stream layer geometryType must be specified.");this.url=this.webSocketUrl}else if(!this.sourceJSON){const{data:t}=await(0,d.default)(this.parsedUrl.path,{query:{f:"json",...this.customParameters,...this.parsedUrl.query},responseType:"json",signal:e});this.sourceJSON=t}return this.sourceJSON={...null!=(t=this.sourceJSON)?t:{},objectIdField:"__esri_stream_id__"},this.read(this.sourceJSON,{origin:"service",url:this.parsedUrl}),(0,$.YN)(this.renderer,this.fieldsIndex),(0,$.UF)(this.timeInfo,this.fieldsIndex),(0,z.y)(this,{origin:"service"})}};(0,n._)([(0,b.Cb)({type:String})],G.prototype,"copyright",void 0),(0,n._)([(0,b.Cb)({readOnly:!0})],G.prototype,"defaultPopupTemplate",null),(0,n._)([(0,b.Cb)({type:String,json:{name:"layerDefinition.definitionExpression",write:{enabled:!0,allowNull:!0}}})],G.prototype,"definitionExpression",void 0),(0,n._)([(0,b.Cb)({type:String})],G.prototype,"displayField",void 0),(0,n._)([(0,b.Cb)({type:q.Z})],G.prototype,"elevationInfo",void 0),(0,n._)([(0,b.Cb)(R.d)],G.prototype,"featureReduction",void 0),(0,n._)([(0,b.Cb)(Y.fields)],G.prototype,"fields",void 0),(0,n._)([(0,b.Cb)(Y.fieldsIndex)],G.prototype,"fieldsIndex",void 0),(0,n._)([(0,b.Cb)({type:H.Z})],G.prototype,"geometryDefinition",void 0),(0,n._)([(0,b.Cb)({type:x.Mk.apiValues,json:{read:{reader:x.Mk.read}}})],G.prototype,"geometryType",void 0),(0,n._)([(0,b.Cb)(Z.iR)],G.prototype,"labelsVisible",void 0),(0,n._)([(0,b.Cb)({type:[k.Z],json:{read:{source:"layerDefinition.drawingInfo.labelingInfo",reader:A.r},write:{target:"layerDefinition.drawingInfo.labelingInfo"}}})],G.prototype,"labelingInfo",void 0),(0,n._)([(0,b.Cb)(Z.rn)],G.prototype,"legendEnabled",void 0),(0,n._)([(0,b.Cb)({type:["show","hide"]})],G.prototype,"listMode",void 0),(0,n._)([(0,b.Cb)({type:v.z8})],G.prototype,"maxReconnectionAttempts",void 0),(0,n._)([(0,b.Cb)({type:v.z8})],G.prototype,"maxReconnectionInterval",void 0),(0,n._)([(0,b.Cb)(Z.u1)],G.prototype,"maxScale",void 0),(0,n._)([(0,b.Cb)(Z.rO)],G.prototype,"minScale",void 0),(0,n._)([(0,b.Cb)({type:String})],G.prototype,"objectIdField",void 0),(0,n._)([(0,b.Cb)({value:"ArcGISStreamLayer",type:["ArcGISStreamLayer"]})],G.prototype,"operationalLayerType",void 0),(0,n._)([(0,b.Cb)(Z.C_)],G.prototype,"popupEnabled",void 0),(0,n._)([(0,b.Cb)({type:s.Z,json:{read:{source:"popupInfo"},write:{target:"popupInfo"}}})],G.prototype,"popupTemplate",void 0),(0,n._)([(0,b.Cb)({type:V})],G.prototype,"purgeOptions",void 0),(0,n._)([(0,b.Cb)({types:p.A,json:{origins:{service:{write:{target:"drawingInfo.renderer",enabled:!1}},"web-scene":{name:"layerDefinition.drawingInfo.renderer",types:p.o,write:!0}},write:{target:"layerDefinition.drawingInfo.renderer"}}})],G.prototype,"renderer",null),(0,n._)([(0,g.r)("service","renderer",["drawingInfo.renderer","defaultSymbol"]),(0,g.r)("renderer",["layerDefinition.drawingInfo.renderer","layerDefinition.defaultSymbol"])],G.prototype,"readRenderer",null),(0,n._)([(0,b.Cb)(Z.YI)],G.prototype,"screenSizePerspectiveEnabled",void 0),(0,n._)([(0,b.Cb)()],G.prototype,"sourceJSON",void 0),(0,n._)([(0,b.Cb)({type:M.Z,json:{origins:{service:{read:{source:"spatialReference"}}}}})],G.prototype,"spatialReference",void 0),(0,n._)([(0,b.Cb)({json:{read:!1}})],G.prototype,"type",void 0),(0,n._)([(0,b.Cb)(Z.HQ)],G.prototype,"url",void 0),(0,n._)([(0,b.Cb)({type:Number})],G.prototype,"updateInterval",void 0),(0,n._)([(0,b.Cb)({type:String})],G.prototype,"webSocketUrl",void 0),G=(0,n._)([(0,w.j)("esri.layers.StreamLayer")],G);const Q=(0,S.d)({types:u.QT}),X=G},17287:(e,t,r)=>{r.d(t,{Y:()=>p});var i=r(43697),n=r(92604),s=r(70586),o=r(5600),l=(r(67676),r(80442),r(75215),r(52011)),a=r(66677);const p=e=>{let t=class extends e{get title(){if(this._get("title")&&"defaults"!==this.originOf("title"))return this._get("title");if(this.url){const e=(0,a.Qc)(this.url);if((0,s.pC)(e)&&e.title)return e.title}return this._get("title")||""}set title(e){this._set("title",e)}set url(e){this._set("url",(0,a.Nm)(e,n.Z.getLogger(this.declaredClass)))}};return(0,i._)([(0,o.Cb)()],t.prototype,"title",null),(0,i._)([(0,o.Cb)({type:String})],t.prototype,"url",null),t=(0,i._)([(0,l.j)("esri.layers.mixins.ArcGISService")],t),t}},17017:(e,t,r)=>{r.d(t,{N:()=>o});var i=r(43697),n=r(5600),s=(r(67676),r(80442),r(75215),r(52011));const o=e=>{let t=class extends e{constructor(){super(...arguments),this.customParameters=null}};return(0,i._)([(0,n.Cb)({type:Object,json:{write:{overridePolicy:e=>({enabled:!!(e&&Object.keys(e).length>0)})}}})],t.prototype,"customParameters",void 0),t=(0,i._)([(0,s.j)("esri.layers.mixins.CustomParametersMixin")],t),t}},16859:(e,t,r)=>{r.d(t,{I:()=>w});var i=r(43697),n=r(40330),s=r(3172),o=r(66643),l=r(20102),a=r(92604),p=r(70586),d=r(95330),u=r(17452),c=r(5600),h=(r(67676),r(80442),r(75215),r(71715)),y=r(52011),m=r(30556),f=r(65587),b=r(15235),v=r(86082);const g=a.Z.getLogger("esri.layers.mixins.PortalLayer"),w=e=>{let t=class extends e{constructor(){super(...arguments),this.resourceReferences={portalItem:null,paths:[]},this.userHasEditingPrivileges=!0}destroy(){var e;null==(e=this.portalItem)||e.destroy(),this.portalItem=null}set portalItem(e){e!==this._get("portalItem")&&(this.removeOrigin("portal-item"),this._set("portalItem",e))}readPortalItem(e,t,r){if(t.itemId)return new b.default({id:t.itemId,portal:r&&r.portal})}writePortalItem(e,t){e&&e.id&&(t.itemId=e.id)}async loadFromPortal(e,t){if(this.portalItem&&this.portalItem.id)try{const i=await r.e(8062).then(r.bind(r,18062));return(0,d.k_)(t),await i.load({instance:this,supportedTypes:e.supportedTypes,validateItem:e.validateItem,supportsData:e.supportsData},t)}catch(e){throw(0,d.D_)(e)||g.warn(`Failed to load layer (${this.title}, ${this.id}) portal item (${this.portalItem.id})\n ${e}`),e}}async finishLoadEditablePortalLayer(e){this._set("userHasEditingPrivileges",await this._fetchUserHasEditingPrivileges(e).catch((e=>((0,d.r9)(e),!0))))}async _fetchUserHasEditingPrivileges(e){const t=this.url?null==n.id?void 0:n.id.findCredential(this.url):null;if(!t)return!0;const r=S.credential===t?S.user:await this._fetchEditingUser(e);return S.credential=t,S.user=r,(0,p.Wi)(r)||null==r.privileges||r.privileges.includes("features:user:edit")}async _fetchEditingUser(e){var t,r;const i=null==(t=this.portalItem)||null==(r=t.portal)?void 0:r.user;if(i)return i;const l=n.id.findServerInfo(this.url);if(null==l||!l.owningSystemUrl)return null;const a=`${l.owningSystemUrl}/sharing/rest`,d=f.Z.getDefault();if(d&&d.loaded&&(0,u.Fv)(d.restUrl)===(0,u.Fv)(a))return d.user;const c=`${a}/community/self`,h=(0,p.pC)(e)?e.signal:null,y=await(0,o.q6)((0,s.default)(c,{authMode:"no-prompt",query:{f:"json"},signal:h}));return y.ok?v.default.fromJSON(y.value.data):null}read(e,t){t&&(t.layer=this),super.read(e,t)}write(e,t){const r=t&&t.portal,i=this.portalItem&&this.portalItem.id&&(this.portalItem.portal||f.Z.getDefault());return r&&i&&!(0,u.tm)(i.restUrl,r.restUrl)?(t.messages&&t.messages.push(new l.Z("layer:cross-portal",`The layer '${this.title} (${this.id})' cannot be persisted because it refers to an item on a different portal than the one being saved to. To save the scene, set the layer.portalItem to null or save the scene to the same portal as the item associated with the layer`,{layer:this})),null):super.write(e,{...t,layer:this})}};return(0,i._)([(0,c.Cb)({type:b.default})],t.prototype,"portalItem",null),(0,i._)([(0,h.r)("web-document","portalItem",["itemId"])],t.prototype,"readPortalItem",null),(0,i._)([(0,m.c)("web-document","portalItem",{itemId:{type:String}})],t.prototype,"writePortalItem",null),(0,i._)([(0,c.Cb)({clonable:!1})],t.prototype,"resourceReferences",void 0),(0,i._)([(0,c.Cb)({readOnly:!0})],t.prototype,"userHasEditingPrivileges",void 0),t=(0,i._)([(0,y.j)("esri.layers.mixins.PortalLayer")],t),t},S={credential:null,user:null}},34760:(e,t,r)=>{r.d(t,{Q:()=>b});var i=r(43697),n=r(92604),s=r(95330),o=r(5600),l=(r(67676),r(80442),r(75215),r(52011)),a=r(80539),p=(r(26258),r(87538));const d=new a.Z,u=new WeakMap;function c(e){return e&&"object"==typeof e&&"refreshInterval"in e&&"refresh"in e}function h(e,t){return Number.isFinite(e)&&Number.isFinite(t)?t<=0?e:h(t,e%t):0}let y=0,m=0;function f(){const e=Date.now();for(const r of d)if(r.refreshInterval){var t;e-(null!=(t=u.get(r))?t:0)+5>=6e4*r.refreshInterval&&(u.set(r,e),r.refresh(e))}}(0,p.EH)((()=>{const e=Date.now();let t=0;for(const r of d)t=h(Math.round(6e4*r.refreshInterval),t),r.refreshInterval?u.get(r)||u.set(r,e):u.delete(r);if(t!==m){if(m=t,clearInterval(y),0===m)return void(y=0);y=setInterval(f,m)}}));const b=e=>{let t=class extends e{constructor(...e){super(...e),this.refreshInterval=0,this.refreshTimestamp=0,this._debounceHasDataChanged=(0,s.Ds)((()=>this.hasDataChanged())),this.when().then((()=>{!function(e){c(e)&&d.push(e)}(this)}),(()=>{}))}destroy(){c(this)&&d.includes(this)&&d.remove(this)}get refreshParameters(){return{_ts:this.refreshTimestamp||null}}refresh(e=Date.now()){(0,s.R8)(this._debounceHasDataChanged()).then((t=>{t&&this._set("refreshTimestamp",e),this.emit("refresh",{dataChanged:t})}),(e=>{n.Z.getLogger(this.declaredClass).error(e),this.emit("refresh",{dataChanged:!1,error:e})}))}async hasDataChanged(){return!0}};return(0,i._)([(0,o.Cb)({type:Number,cast:e=>e>=.1?e:e<=0?0:.1,json:{write:!0}})],t.prototype,"refreshInterval",void 0),(0,i._)([(0,o.Cb)({readOnly:!0})],t.prototype,"refreshTimestamp",void 0),(0,i._)([(0,o.Cb)()],t.prototype,"refreshParameters",null),t=(0,i._)([(0,l.j)("esri.layers.mixins.RefreshableLayer")],t),t}},2319:(e,t,r)=>{r.d(t,{Z:()=>j});var i,n=r(43697),s=r(78223),o=r(35454),l=r(96674),a=r(22974),p=r(62357),d=r(5600),u=(r(75215),r(71715)),c=r(52011),h=r(30556),y=(r(67676),r(80442),r(8813));let m=i=class extends l.wq{constructor(){super(...arguments),this.expression=null,this.title=null,this.value=null}readExpression(e,t){return t.value?(0,y.dI)(t.value):e}writeExpression(e,t,r){null!=this.value&&(e=(0,y.dI)(this.value)),null!=e&&(t[r]=e)}clone(){return new i({expression:this.expression,title:this.title,value:this.value})}};(0,n._)([(0,d.Cb)({type:String,json:{write:{writerEnsuresNonNull:!0}}})],m.prototype,"expression",void 0),(0,n._)([(0,u.r)("expression",["expression","value"])],m.prototype,"readExpression",null),(0,n._)([(0,h.c)("expression")],m.prototype,"writeExpression",null),(0,n._)([(0,d.Cb)({type:String,json:{write:!0,origins:{"web-scene":{write:!1}}}})],m.prototype,"title",void 0),(0,n._)([(0,d.Cb)({json:{read:!1,write:!1}})],m.prototype,"value",void 0),m=i=(0,n._)([(0,c.j)("esri.layers.support.LabelExpressionInfo")],m);const f=m;var b=r(20256),v=r(4095),g=r(77987),w=r(78724),S=r(58333);g.Z.fromJSON(S.I4),v.Z.fromJSON(S.ET),b.Z.fromJSON(S.lF);const x=w.Z.fromJSON(S.qP);g.Z.fromJSON(S.eG),v.Z.fromJSON(S.wW),b.Z.fromJSON(S.lj);var _,I=r(21878);const C=new o.X({esriServerPointLabelPlacementAboveCenter:"above-center",esriServerPointLabelPlacementAboveLeft:"above-left",esriServerPointLabelPlacementAboveRight:"above-right",esriServerPointLabelPlacementBelowCenter:"below-center",esriServerPointLabelPlacementBelowLeft:"below-left",esriServerPointLabelPlacementBelowRight:"below-right",esriServerPointLabelPlacementCenterCenter:"center-center",esriServerPointLabelPlacementCenterLeft:"center-left",esriServerPointLabelPlacementCenterRight:"center-right",esriServerLinePlacementAboveAfter:"above-after",esriServerLinePlacementAboveAlong:"above-along",esriServerLinePlacementAboveBefore:"above-before",esriServerLinePlacementAboveStart:"above-start",esriServerLinePlacementAboveEnd:"above-end",esriServerLinePlacementBelowAfter:"below-after",esriServerLinePlacementBelowAlong:"below-along",esriServerLinePlacementBelowBefore:"below-before",esriServerLinePlacementBelowStart:"below-start",esriServerLinePlacementBelowEnd:"below-end",esriServerLinePlacementCenterAfter:"center-after",esriServerLinePlacementCenterAlong:"center-along",esriServerLinePlacementCenterBefore:"center-before",esriServerLinePlacementCenterStart:"center-start",esriServerLinePlacementCenterEnd:"center-end",esriServerPolygonPlacementAlwaysHorizontal:"always-horizontal"},{ignoreUnknown:!0});function P(e){var t;return!e||"service"!==e.origin&&!("map-image"===(null==(t=e.layer)?void 0:t.type))}function E(e){var t,r;return!!function(e){return"map-image"===(null==e?void 0:e.type)}(e)&&!(null==(t=e.capabilities)||null==(r=t.exportMap)||!r.supportsArcadeExpressionForLabeling)}let L=_=class extends l.wq{constructor(e){super(e),this.type="label",this.name=null,this.allowOverrun=!1,this.deconflictionStrategy="static",this.labelExpression=null,this.labelExpressionInfo=null,this.labelPlacement=null,this.labelPosition="curved",this.maxScale=0,this.minScale=0,this.repeatLabel=!0,this.repeatLabelDistance=null,this.symbol=x,this.useCodedValues=void 0,this.where=null}static evaluateWhere(e,t){const r=(e,t,r)=>{switch(t){case"=":return e==r;case"<>":return e!=r;case">":return e>r;case">=":return e>=r;case"<":return e<r;case"<=":return e<=r}return!1};try{if(null==e)return!0;const i=e.split(" ");if(3===i.length)return r(t[i[0]],i[1],i[2]);if(7===i.length){const e=r(t[i[0]],i[1],i[2]),n=i[3],s=r(t[i[4]],i[5],i[6]);switch(n){case"AND":return e&&s;case"OR":return e||s}}return!1}catch(t){console.log("Error.: can't parse = "+e)}}readLabelExpression(e,t){const r=t.labelExpressionInfo;if(!r||!r.value&&!r.expression)return e}writeLabelExpression(e,t,r){if(this.labelExpressionInfo)if(null!=this.labelExpressionInfo.value)e=(0,y.z7)(this.labelExpressionInfo.value);else if(null!=this.labelExpressionInfo.expression){const t=(0,y.el)(this.labelExpressionInfo.expression);t&&(e="["+t+"]")}null!=e&&(t[r]=e)}writeLabelExpressionInfo(e,t,r,i){if(null==e&&null!=this.labelExpression&&P(i))e=new f({expression:this.getLabelExpressionArcade()});else if(!e)return;const n=e.toJSON(i);n.expression&&(t[r]=n)}writeMaxScale(e,t){(e||this.minScale)&&(t.maxScale=e)}writeMinScale(e,t){(e||this.maxScale)&&(t.minScale=e)}getLabelExpression(){return(0,y.hV)(this)}getLabelExpressionArcade(){return(0,y.YI)(this)}getLabelExpressionSingleField(){return(0,y.UO)(this)}hash(){return JSON.stringify(this)}clone(){return new _({allowOverrun:this.allowOverrun,deconflictionStrategy:this.deconflictionStrategy,labelExpression:this.labelExpression,labelExpressionInfo:(0,a.d9)(this.labelExpressionInfo),labelPosition:this.labelPosition,labelPlacement:this.labelPlacement,maxScale:this.maxScale,minScale:this.minScale,name:this.name,repeatLabel:this.repeatLabel,repeatLabelDistance:this.repeatLabelDistance,symbol:(0,a.d9)(this.symbol),where:this.where,useCodedValues:this.useCodedValues})}};(0,n._)([(0,d.Cb)({type:String,json:{write:!0}})],L.prototype,"name",void 0),(0,n._)([(0,d.Cb)({type:Boolean,json:{write:!0,default:!1,origins:{"web-scene":{write:!1}}}})],L.prototype,"allowOverrun",void 0),(0,n._)([(0,d.Cb)({type:String,json:{write:!0,default:"static",origins:{"web-scene":{write:!1}}}})],L.prototype,"deconflictionStrategy",void 0),(0,n._)([(0,d.Cb)({type:String,json:{write:{overridePolicy(e,t,r){return this.labelExpressionInfo&&"service"===(null==r?void 0:r.origin)&&E(r.layer)?{enabled:!1}:{allowNull:!0}}}}})],L.prototype,"labelExpression",void 0),(0,n._)([(0,u.r)("labelExpression")],L.prototype,"readLabelExpression",null),(0,n._)([(0,h.c)("labelExpression")],L.prototype,"writeLabelExpression",null),(0,n._)([(0,d.Cb)({type:f,json:{write:{overridePolicy:(e,t,r)=>function(e){return P(e)||E(e.layer)}(r)?{allowNull:!0}:{enabled:!1}}}})],L.prototype,"labelExpressionInfo",void 0),(0,n._)([(0,h.c)("labelExpressionInfo")],L.prototype,"writeLabelExpressionInfo",null),(0,n._)([(0,d.Cb)({type:C.apiValues,json:{type:C.jsonValues,read:C.read,write:C.write}})],L.prototype,"labelPlacement",void 0),(0,n._)([(0,d.Cb)({type:["curved","parallel"],json:{write:!0,origins:{"web-map":{write:!1},"web-scene":{write:!1},"portal-item":{write:!1}}}})],L.prototype,"labelPosition",void 0),(0,n._)([(0,d.Cb)({type:Number})],L.prototype,"maxScale",void 0),(0,n._)([(0,h.c)("maxScale")],L.prototype,"writeMaxScale",null),(0,n._)([(0,d.Cb)({type:Number})],L.prototype,"minScale",void 0),(0,n._)([(0,h.c)("minScale")],L.prototype,"writeMinScale",null),(0,n._)([(0,d.Cb)({type:Boolean,json:{write:!0,origins:{"web-scene":{write:!1},"portal-item":{write:!1}}}})],L.prototype,"repeatLabel",void 0),(0,n._)([(0,d.Cb)({type:Number,cast:p.t_,json:{write:!0,origins:{"web-scene":{write:!1}}}})],L.prototype,"repeatLabelDistance",void 0),(0,n._)([(0,d.Cb)({types:s.yK,json:{origins:{"web-scene":{types:s.S6,write:I.vX,default:null}},write:I.vX,default:null}})],L.prototype,"symbol",void 0),(0,n._)([(0,d.Cb)({type:Boolean,json:{write:!0}})],L.prototype,"useCodedValues",void 0),(0,n._)([(0,d.Cb)({type:String,json:{write:!0}})],L.prototype,"where",void 0),L=_=(0,n._)([(0,c.j)("esri.layers.support.LabelClass")],L);const j=L},8813:(e,t,r)=>{r.d(t,{UO:()=>h,YI:()=>c,dI:()=>y,el:()=>g,hV:()=>u,z7:()=>d});var i=r(19153);const n="__begin__",s="__end__",o=new RegExp(n,"ig"),l=new RegExp(s,"ig"),a=new RegExp("^"+n,"i"),p=new RegExp(s+"$","i");function d(e){return e.replace(new RegExp("\\{","g"),"[").replace(new RegExp("\\}","g"),"]")}function u(e){const t={expression:"",type:"none"};return e.labelExpressionInfo?e.labelExpressionInfo.value?(t.expression=e.labelExpressionInfo.value,t.type="conventional"):e.labelExpressionInfo.expression&&(t.expression=e.labelExpressionInfo.expression,t.type="arcade"):null!=e.labelExpression&&(t.expression=function(e){return e.replace(new RegExp("\\[","g"),"{").replace(new RegExp("\\]","g"),"}")}(e.labelExpression),t.type="conventional"),t}function c(e){const t=u(e);if(!t)return null;switch(t.type){case"conventional":return y(t.expression);case"arcade":return t.expression}return null}function h(e){const t=u(e);if(!t)return null;switch(t.type){case"conventional":return function(e){const t=e.match(m);return t&&t[1].trim()||null}(t.expression);case"arcade":return g(t.expression)}return null}function y(e){let t;return e?(t=(0,i.gx)(e,(e=>n+'$feature["'+e+'"]'+s)),t=a.test(t)?t.replace(a,""):'"'+t,t=p.test(t)?t.replace(p,""):t+'"',t=t.replace(o,'" + ').replace(l,' + "')):t='""',t}const m=/^\s*\{([^}]+)\}\s*$/i,f=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*$/i,b=/^\s*(?:(?:\$feature\.(\w+))|(?:\$feature\[(["'])([\w\s]+)(\2)\]));?\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])(\1|\3)(\5)\s*\));?\s*$/i,v=/^\s*(?:DomainName\(\s*\$feature\s*,\s*(["'])([\w\s]+)(\1)\s*\));?\s*$/i;function g(e){if(!e)return null;let t=f.exec(e)||b.exec(e);return t?t[1]||t[3]:(t=v.exec(e),t?t[2]:null)}},40555:(e,t,r)=>{r.d(t,{y:()=>o});var i=r(66643),n=r(95330),s=r(20941);async function o(e,t,r){const o=e&&e.getAtOrigin&&e.getAtOrigin("renderer",t.origin);if(o&&"unique-value"===o.type&&o.styleOrigin){const l=await(0,i.q6)(o.populateFromStyle());if((0,n.k_)(r),!1===l.ok){const r=l.error;t&&t.messages&&t.messages.push(new s.Z("renderer:style-reference",`Failed to create unique value renderer from style reference: ${r.message}`,{error:r,context:t})),e.clear("renderer",t.origin)}}}},51706:(e,t,r)=>{var i,n;function s(e){return e&&"esri.renderers.visualVariables.SizeVariable"===e.declaredClass}function o(e){return null!=e&&!isNaN(e)&&isFinite(e)}function l(e){return e.valueExpression?i.Expression:e.field&&"string"==typeof e.field?i.Field:i.Unknown}function a(e,t){const r=t||l(e),s=e.valueUnit||"unknown";return r===i.Unknown?n.Constant:e.stops?n.Stops:null!=e.minSize&&null!=e.maxSize&&null!=e.minDataValue&&null!=e.maxDataValue?n.ClampedLinear:"unknown"===s?null!=e.minSize&&null!=e.minDataValue?e.minSize&&e.minDataValue?n.Proportional:n.Additive:n.Identity:n.RealWorldSize}r.d(t,{PS:()=>l,QW:()=>a,RY:()=>i,hL:()=>n,iY:()=>s,qh:()=>o}),function(e){e.Unknown="unknown",e.Expression="expression",e.Field="field"}(i||(i={})),function(e){e.Unknown="unknown",e.Stops="stops",e.ClampedLinear="clamped-linear",e.Proportional="proportional",e.Additive="additive",e.Constant="constant",e.Identity="identity",e.RealWorldSize="real-world-size"}(n||(n={}))},32163:(e,t,r)=>{r.d(t,{eZ:()=>u});var i=r(51773),n=r(35671),s=r(84649),o=(r(63801),r(48074),r(38745),r(9190)),l=(r(10214),r(44951),r(422)),a=r(63061);const p=["oid","global-id"],d=["oid","global-id","guid"];function u({displayField:e,editFieldsInfo:t,fields:r,objectIdField:a,title:p},d){if(!r)return null;const u=function({editFieldsInfo:e,fields:t,objectIdField:r},i){return function(e,t){const r=e;return t&&(e=e.filter((e=>!t.includes(e.type)))),e===r&&(e=e.slice()),e.sort(y),e}(t,(null==i?void 0:i.ignoreFieldTypes)||g).map((t=>new l.Z({fieldName:t.name,isEditable:f(t,e),label:t.alias,format:b(t),visible:h(t,{editFieldsInfo:e,objectIdField:r,visibleFieldNames:null==i?void 0:i.visibleFieldNames})})))}({editFieldsInfo:t,fields:r,objectIdField:a},d);if(!u.length)return null;const c=function(e){const t=(0,n.O5)(e),{titleBase:r}=e;return t?`${r}: {${t.trim()}}`:r}({titleBase:p,fields:r,displayField:e}),m=[new o.Z,new s.Z];return new i.Z({title:c,content:m,fieldInfos:u})}const c=[/^fnode_$/i,/^tnode_$/i,/^lpoly_$/i,/^rpoly_$/i,/^poly_$/i,/^subclass$/i,/^subclass_$/i,/^rings_ok$/i,/^rings_nok$/i,/shape/i,/perimeter/i,/objectid/i,/_i$/i],h=(e,{editFieldsInfo:t,objectIdField:r,visibleFieldNames:i})=>i?i.has(e.name):!(m(e.name,t)||r&&e.name===r||p.includes(e.type)||c.some((t=>t.test(e.name))));function y(e,t){return"oid"===e.type?-1:"oid"===t.type?1:v(e)?-1:v(t)?1:(e.alias||e.name).toLocaleLowerCase().localeCompare((t.alias||t.name).toLocaleLowerCase())}function m(e,t){if(!e||!t)return!1;const{creationDateField:r,creatorField:i,editDateField:n,editorField:s}=t;return[r&&r.toLowerCase(),i&&i.toLowerCase(),n&&n.toLowerCase(),s&&s.toLowerCase()].includes(e.toLowerCase())}function f(e,t){return e.editable&&!d.includes(e.type)&&!m(e.name,t)}function b(e){switch(e.type){case"small-integer":case"integer":case"single":return new a.Z({digitSeparator:!0,places:0});case"double":return new a.Z({digitSeparator:!0,places:2});case"date":return new a.Z({dateFormat:"long-month-day-year"});default:return"string"===e.type&&(0,n.Ec)(e.name)?new a.Z({digitSeparator:!0,places:0}):null}}function v(e){return"name"===(e.name&&e.name.toLowerCase())||"name"===(e.alias&&e.alias.toLowerCase())||void 0}const g=["geometry","blob","raster","guid","xml"]}}]);