import{_ as G}from"./index-b5c8f851.js";function q(t){return typeof t=="function"}function D(t,r,o,e){return q(t)?t(r,o,e):t}const B=` /-, `;function P(t){let r=t.length;for(;r--;)if(!B.includes(t.charAt(r)))return!1;return!0}function v(t,r){const o=[];let e=0,n=-1;do if(n=t.indexOf("[",e),n>=e){if(n>e){const i=t.substr(e,n-e);o.push([i,null,P(i)])}if(e=n+1,n=t.indexOf("]",e),n>=e){if(n>e){const i=r[t.substr(e,n-e)];i&&o.push([null,i,!1])}e=n+1}}while(n!==-1);if(eF(n,e,o)}function R(t,r){switch(typeof t!="string"&&(t=String(t)),r){case"LowerCase":return t.toLowerCase();case"Allcaps":return t.toUpperCase();default:return t}}function U(t,r,o,e,n,i,M=!0){const u=r/n,f=o/i,m=Math.ceil(u/2),_=Math.ceil(f/2);for(let s=0;s=-1&&a<=1&&(l=2*a*a*a-3*a*a+1,l>0&&(c=4*(h+d*r),S+=l*t[c+3],p+=l,t[c+3]<255&&(l=l*t[c+3]/250),I+=l*t[c],k+=l*t[c+1],g+=l*t[c+2],b+=l))}}e[C]=I/b,e[C+1]=k/b,e[C+2]=g/b,e[C+3]=S/p}}function V(t){return t?{r:t[0],g:t[1],b:t[2],a:t[3]/255}:{r:0,g:0,b:0,a:0}}function j(t){var r;return((r=t.data)==null?void 0:r.symbol)??null}function J(t){return t.type==="CIMVectorMarker"||t.type==="CIMPictureMarker"||t.type==="CIMBarChartMarker"||t.type==="CIMCharacterMarker"||t.type==="CIMPieChartMarker"||t.type==="CIMStackedBarChartMarker"}function H(t){return t.type==="CIMGradientStroke"||t.type==="CIMPictureStroke"||t.type==="CIMSolidStroke"}function K(t){return t!=null&&(t.type==="CIMMarkerPlacementAlongLineRandomSize"||t.type==="CIMMarkerPlacementAlongLineSameSize"||t.type==="CIMMarkerPlacementAlongLineVariableSize"||t.type==="CIMMarkerPlacementAtExtremities"||t.type==="CIMMarkerPlacementAtMeasuredUnits"||t.type==="CIMMarkerPlacementAtRatioPositions"||t.type==="CIMMarkerPlacementOnLine"||t.type==="CIMMarkerPlacementOnVertices")}const Q=(t,r=0)=>t==null||isNaN(t)?r:t,W=t=>t.tintColor?V(t.tintColor):{r:255,g:255,b:255,a:1},X=t=>{if(!t)return!1;for(const r of t)switch(r.type){case"CIMGeometricEffectBuffer":case"CIMGeometricEffectOffset":case"CIMGeometricEffectDonut":return!0}return!1};function Y(){return G(()=>import("./geometryEngineJSON-a8df8ba1.js"),["assets/geometryEngineJSON-a8df8ba1.js","assets/geometryEngineBase-5b22cc12.js","assets/index-b5c8f851.js","assets/index-86716609.css","assets/geometryEngineJSON-9fc26574.js","assets/json-48e3ea08.js"])}function Z(t){if(!t)return"normal";switch(t.toLowerCase()){case"italic":return"italic";case"oblique":return"oblique";default:return"normal"}}function $(t){if(!t)return"normal";switch(t.toLowerCase()){case"bold":return"bold";case"bolder":return"bolder";case"lighter":return"lighter";default:return"normal"}}function tt(t){let r="normal",o="normal";if(t){const e=t.toLowerCase();e.includes("italic")?r="italic":e.includes("oblique")&&(r="oblique"),e.includes("bold")?o="bold":e.includes("light")&&(o="lighter")}return{style:r,weight:o}}function rt(t){return t.underline?"underline":t.strikethrough?"line-through":"none"}function w(t){if(!t)return null;switch(t.type){case"CIMPolygonSymbol":if(t.symbolLayers)for(const r of t.symbolLayers){const o=w(r);if(o!=null)return o}break;case"CIMTextSymbol":return w(t.symbol);case"CIMSolidFill":return t.color}}function A(t){if(t)switch(t.type){case"CIMPolygonSymbol":case"CIMLineSymbol":{const r=t.symbolLayers;if(r)for(const o of r){const e=A(o);if(e!=null)return e}break}case"CIMTextSymbol":return A(t.symbol);case"CIMSolidStroke":return t.color}}function x(t){if(t)switch(t.type){case"CIMPolygonSymbol":case"CIMLineSymbol":if(t.symbolLayers)for(const r of t.symbolLayers){const o=x(r);if(o!==void 0)return o}break;case"CIMTextSymbol":return x(t.symbol);case"CIMSolidStroke":case"CIMGradientStroke":case"CIMPictureStroke":return t.width}}function et(t){switch(t){case"Left":default:return"left";case"Right":return"right";case"Center":case"Justify":return"center"}}function nt(t){switch(t){case"Top":default:return"top";case"Center":return"middle";case"Baseline":return"baseline";case"Bottom":return"bottom"}}function ot(t){return(t?Object.keys(t):[]).map(r=>({name:r,alias:r,type:typeof t[r]=="string"?"esriFieldTypeString":"esriFieldTypeDouble"}))}const it=t=>t.includes("data:image/svg+xml");export{ot as A,it as F,nt as G,Y as I,x as L,H as M,w as P,tt as S,U as a,Q as b,N as c,X as d,q as e,j as f,$ as g,Z as h,v as i,rt as k,F as l,K as m,W as p,R as s,D as t,V as u,A as w,et as x,J as y};