1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2209],{42209:function(n,e,t){t.r(e),t.d(e,{registerFunctions:function(){return c}});var a=t(19249),r=t(7182),i=t(94837),o=t(68673);function d(n){return n&&n.domain?"coded-value"===n.domain.type||"codedValue"===n.domain.type?a.Z.convertObjectToArcadeDictionary({type:"codedValue",name:n.domain.name,dataType:o.yE[n.field.type],codedValues:n.domain.codedValues.map(n=>({name:n.name,code:n.code}))}):a.Z.convertObjectToArcadeDictionary({type:"range",name:n.domain.name,dataType:o.yE[n.field.type],min:n.domain.min,max:n.domain.max}):null}function c(n){"async"===n.mode&&(n.functions.domain=function(e,t){return n.standardFunctionAsync(e,t,async(n,a,o)=>{if((0,i.y)(o,2,3,e,t),(0,i.w)(o[0]))return d((0,i.P)(o[0],(0,i.j)(o[1]),void 0===o[2]?void 0:(0,i.g)(o[2])));if((0,i.T)(o[0]))return await o[0]._ensureLoaded(),d((0,i.Y)((0,i.j)(o[1]),o[0],null,void 0===o[2]?void 0:(0,i.g)(o[2])));throw new r.aV(e,r.rH.InvalidParameter,t)})},n.functions.subtypes=function(e,t){return n.standardFunctionAsync(e,t,async(n,o,d)=>{if((0,i.y)(d,1,1,e,t),(0,i.w)(d[0])){let n=(0,i.O)(d[0]);return n?a.Z.convertObjectToArcadeDictionary(n):null}if((0,i.T)(d[0])){await d[0]._ensureLoaded();let n=d[0].subtypes();return n?a.Z.convertObjectToArcadeDictionary(n):null}throw new r.aV(e,r.rH.InvalidParameter,t)})},n.functions.domainname=function(e,t){return n.standardFunctionAsync(e,t,async(n,a,o)=>{if((0,i.y)(o,2,4,e,t),(0,i.w)(o[0]))return(0,i.Q)(o[0],(0,i.j)(o[1]),o[2],void 0===o[3]?void 0:(0,i.g)(o[3]));if((0,i.T)(o[0])){await o[0]._ensureLoaded();let n=(0,i.Y)((0,i.j)(o[1]),o[0],null,void 0===o[3]?void 0:(0,i.g)(o[3]));return(0,i.Z)(n,o[2])}throw new r.aV(e,r.rH.InvalidParameter,t)})},n.signatures.push({name:"domainname",min:2,max:4}),n.functions.domaincode=function(e,t){return n.standardFunctionAsync(e,t,async(n,a,o)=>{if((0,i.y)(o,2,4,e,t),(0,i.w)(o[0]))return(0,i.S)(o[0],(0,i.j)(o[1]),o[2],void 0===o[3]?void 0:(0,i.g)(o[3]));if((0,i.T)(o[0])){await o[0]._ensureLoaded();let n=(0,i.Y)((0,i.j)(o[1]),o[0],null,void 0===o[3]?void 0:(0,i.g)(o[3]));return(0,i._)(n,o[2])}throw new r.aV(e,r.rH.InvalidParameter,t)})},n.signatures.push({name:"domaincode",min:2,max:4})),n.functions.text=function(e,t){return n.standardFunctionAsync(e,t,(n,a,r)=>{if((0,i.y)(r,1,2,e,t),!(0,i.T)(r[0]))return(0,i.t)(r[0],r[1]);{let e=(0,i.A)(r[1],"");if(""===e)return r[0].castToText();if("schema"===e.toLowerCase())return r[0].convertToText("schema",n.abortSignal);if("featureset"===e.toLowerCase())return r[0].convertToText("featureset",n.abortSignal)}})},n.functions.gdbversion=function(e,t){return n.standardFunctionAsync(e,t,async(n,a,o)=>{if((0,i.y)(o,1,1,e,t),(0,i.w)(o[0]))return o[0].gdbVersion();if((0,i.T)(o[0]))return(await o[0].load()).gdbVersion;throw new r.aV(e,r.rH.InvalidParameter,t)})},n.functions.schema=function(e,t){return n.standardFunctionAsync(e,t,async(n,o,d)=>{if((0,i.y)(d,1,1,e,t),(0,i.T)(d[0]))return await d[0].load(),a.Z.convertObjectToArcadeDictionary(d[0].schema());if((0,i.w)(d[0])){let n=(0,i.N)(d[0]);return n?a.Z.convertObjectToArcadeDictionary(n):null}throw new r.aV(e,r.rH.InvalidParameter,t)})}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.