(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-cce14d88"],{"04c4":function(e,t,i){"use strict";i.d(t,"a",(function(){return d}));var n=i("c120"),s=i("ce76");const r=5e4,a={minX:0,minY:0,maxX:0,maxY:0};function o(e,t,i){a.minX=t[0],a.minY=t[1],a.maxX=t[2],a.maxY=t[3],e.search(a,i)}class d{constructor(){this._indexInvalid=!1,this._boundsToLoad=[],this._boundsById=new Map,this._idByBounds=new Map,this._index=new s["a"](9,Object(n["a"])("esri-csp-restrictions")?e=>({minX:e[0],minY:e[1],maxX:e[2],maxY:e[3]}):["[0]","[1]","[2]","[3]"]),this._loadIndex=()=>{if(this._indexInvalid){const e=new Array(this._idByBounds.size);let t=0;this._idByBounds.forEach((i,n)=>{e[t++]=n}),this._indexInvalid=!1,this._index.clear(),this._index.load(e)}else this._boundsToLoad.length&&(this._index.load(this._boundsToLoad.filter(e=>this._idByBounds.has(e))),this._boundsToLoad.length=0)}}clear(){this._indexInvalid=!1,this._boundsToLoad.length=0,this._boundsById.clear(),this._idByBounds.clear(),this._index.clear()}delete(e){const t=this._boundsById.get(e);this._boundsById.delete(e),t&&(this._idByBounds.delete(t),this._indexInvalid||this._index.remove(t))}forEachInBounds(e,t){this._loadIndex(),o(this._index,e,e=>t(this._idByBounds.get(e)))}get(e){return this._boundsById.get(e)}has(e){return this._boundsById.has(e)}invalidateIndex(){this._indexInvalid||(this._indexInvalid=!0,this._boundsToLoad.length=0)}set(e,t){if(!this._indexInvalid){const t=this._boundsById.get(e);t&&(this._index.remove(t),this._idByBounds.delete(t))}this._boundsById.set(e,t),t&&(this._idByBounds.set(t,e),this._indexInvalid||(this._boundsToLoad.push(t),this._boundsToLoad.length>r&&this._loadIndex()))}}},"1a59":function(e,t,i){"use strict";i.r(t),i.d(t,"default",(function(){return j}));var n=i("ce50"),s=i("b2b2"),r=i("a9ab"),a=i("7f83"),o=i("6655"),d=i("a745"),u=i("6517"),l=i("1ec3"),c=i("6411"),h=i("88d1"),f=i("21ca"),p=i("80b7"),m=i("6781"),y=i("c1da");const g=a["b"],b={xmin:-180,ymin:-90,xmax:180,ymax:90,spatialReference:a["b"]},_={hasAttachments:!1,capabilities:"query, editing, create, delete, update",useStandardizedQueries:!0,supportsCoordinatesQuantization:!0,supportsReturningQueryGeometry:!0,advancedQueryCapabilities:{supportsQueryAttachments:!1,supportsStatistics:!0,supportsPercentileStatistics:!0,supportsReturningGeometryCentroid:!0,supportsQueryWithDistance:!0,supportsDistinct:!0,supportsReturningQueryExtent:!0,supportsReturningGeometryProperties:!1,supportsHavingClause:!0,supportsOrderBy:!0,supportsPagination:!0,supportsQueryWithResultType:!1,supportsSqlExpression:!0,supportsDisjointSpatialRel:!0}};function I(e){return Object(r["f"])(e)?null!=e.z:!!e.hasZ}function x(e){return Object(r["f"])(e)?null!=e.m:!!e.hasM}class j{constructor(){this._queryEngine=null,this._nextObjectId=null}destroy(){this._queryEngine&&this._queryEngine&&this._queryEngine.destroy(),this._queryEngine=this._fieldsIndex=this._createDefaultAttributes=null}async load(e){const t=[],{features:i}=e,s=this._inferLayerProperties(i,e.fields),r=e.fields||[],a=null!=e.hasM?e.hasM:s.hasM,o=null!=e.hasZ?e.hasZ:s.hasZ,f=!e.spatialReference&&!s.spatialReference,I=f?g:e.spatialReference||s.spatialReference,x=f?b:null,j=e.geometryType||s.geometryType,O=!j;let B=e.objectIdField||s.objectIdField,F=e.timeInfo;if(!O&&(f&&t.push({name:"feature-layer:spatial-reference-not-found",message:"Spatial reference not provided or found in features. Defaults to WGS84"}),!j))throw new n["a"]("feature-layer:missing-property","geometryType not set and couldn't be inferred from the provided features");if(!B)throw new n["a"]("feature-layer:missing-property","objectIdField not set and couldn't be found in the provided fields");if(s.objectIdField&&B!==s.objectIdField&&(t.push({name:"feature-layer:duplicated-oid-field",message:`Provided objectIdField "${B}" doesn't match the field name "${s.objectIdField}", found in the provided fields`}),B=s.objectIdField),B&&!s.objectIdField){let e=null;r.some(t=>t.name===B&&(e=t,!0))?(e.type="esriFieldTypeOID",e.editable=!1,e.nullable=!1):r.unshift({alias:B,name:B,type:"esriFieldTypeOID",editable:!1,nullable:!1})}for(const d of r){if(null==d.name&&(d.name=d.alias),null==d.alias&&(d.alias=d.name),!d.name)throw new n["a"]("feature-layer:invalid-field-name","field name is missing",{field:d});if(d.name===B&&(d.type="esriFieldTypeOID"),-1===m["a"].jsonValues.indexOf(d.type))throw new n["a"]("feature-layer:invalid-field-type",`invalid type for field "${d.name}"`,{field:d})}const M={};for(const n of r)if("esriFieldTypeOID"!==n.type&&"esriFieldTypeGlobalID"!==n.type){const e=Object(y["o"])(n);void 0!==e&&(M[n.name]=e)}if(this._fieldsIndex=new p["a"](r),this._createDefaultAttributes=Object(h["b"])(M,B),F){if(F.startTimeField){const e=this._fieldsIndex.get(F.startTimeField);e?(F.startTimeField=e.name,e.type="esriFieldTypeDate"):F.startTimeField=null}if(F.endTimeField){const e=this._fieldsIndex.get(F.endTimeField);e?(F.endTimeField=e.name,e.type="esriFieldTypeDate"):F.endTimeField=null}if(F.trackIdField){const e=this._fieldsIndex.get(F.trackIdField);e?F.trackIdField=e.name:(F.trackIdField=null,t.push({name:"feature-layer:invalid-timeInfo-trackIdField",message:"trackIdField is missing",details:{timeInfo:F}}))}F.startTimeField||F.endTimeField||(t.push({name:"feature-layer:invalid-timeInfo",message:"startTimeField and endTimeField are missing or invalid",details:{timeInfo:F}}),F=null)}const v={warnings:t,featureErrors:[],layerDefinition:{..._,drawingInfo:Object(h["d"])(j),templates:Object(h["c"])(M),extent:x,geometryType:j,objectIdField:B,fields:r,hasZ:!!o,hasM:!!a,timeInfo:F},assignedObjectIds:{}};if(this._queryEngine=new c["a"]({fields:r,geometryType:j,hasM:a,hasZ:o,objectIdField:B,spatialReference:I,featureStore:new u["a"]({geometryType:j,hasM:a,hasZ:o}),timeInfo:F,cacheSpatialQueries:!0}),!i||!i.length)return this._nextObjectId=d["b"],v;const w=Object(d["a"])(B,i);return this._nextObjectId=w+1,await Object(l["a"])(i,I),this._loadInitialFeatures(v,i)}async applyEdits(e){const{spatialReference:t,geometryType:i}=this._queryEngine;return await Promise.all([Object(f["c"])(t,i),Object(l["a"])(e.adds,t),Object(l["a"])(e.updates,t)]),this._applyEdits(e)}queryFeatures(e,t={}){return this._queryEngine.executeQuery(e,t.signal)}queryFeatureCount(e,t={}){return this._queryEngine.executeQueryForCount(e,t.signal)}queryObjectIds(e,t={}){return this._queryEngine.executeQueryForIds(e,t.signal)}queryExtent(e,t={}){return this._queryEngine.executeQueryForExtent(e,t.signal)}querySnapping(e,t={}){return this._queryEngine.executeQueryForSnapping(e,t.signal)}_inferLayerProperties(e,t){let i,n,a=null,o=null,d=null;for(const u of e){const e=u.geometry;if(!Object(s["j"])(e)&&(a||(a=Object(r["c"])(e)),o||(o=e.spatialReference),null==i&&(i=I(e)),null==n&&(n=x(e)),a&&o&&null!=i&&null!=n))break}if(t&&t.length){let e=null;t.some(t=>{const i="esriFieldTypeOID"===t.type,n=!t.type&&t.name&&"objectid"===t.name.toLowerCase();return e=t,i||n})&&(d=e.name)}return{geometryType:a,spatialReference:o,objectIdField:d,hasM:n,hasZ:i}}_loadInitialFeatures(e,t){const{geometryType:i,hasM:n,hasZ:a,objectIdField:d,spatialReference:u,featureStore:c}=this._queryEngine,h=[];for(const o of t){if(null!=o.uid&&(e.assignedObjectIds[o.uid]=-1),o.geometry&&i!==Object(r["c"])(o.geometry)){e.featureErrors.push(Object(f["a"])("Incorrect geometry type."));continue}const t=this._createDefaultAttributes(),n=Object(f["d"])(this._fieldsIndex,t,o.attributes,!0,e.warnings);n?e.featureErrors.push(n):(this._assignObjectId(t,o.attributes,!0),o.attributes=t,null!=o.uid&&(e.assignedObjectIds[o.uid]=o.attributes[d]),Object(s["k"])(o.geometry)&&(o.geometry=Object(l["b"])(o.geometry,o.geometry.spatialReference,u)),h.push(o))}if(c.addMany(Object(o["c"])([],h,i,a,n,d)),e.layerDefinition.extent=this._queryEngine.fullExtent,e.layerDefinition.timeInfo){const{start:t,end:i}=this._queryEngine.timeExtent;e.layerDefinition.timeInfo.timeExtent=[t,i]}return e}_applyEdits(e){const{adds:t,updates:i,deletes:n}=e,s={addResults:[],deleteResults:[],updateResults:[],uidToObjectId:{}};if(t&&t.length&&this._applyAddEdits(s,t),i&&i.length&&this._applyUpdateEdits(s,i),n&&n.length){for(const e of n)s.deleteResults.push(Object(f["b"])(e));this._queryEngine.featureStore.removeManyById(n)}return{fullExtent:this._queryEngine.fullExtent,featureEditResults:s}}_applyAddEdits(e,t){const{addResults:i}=e,{geometryType:n,hasM:a,hasZ:d,objectIdField:u,spatialReference:c,featureStore:h}=this._queryEngine,p=[];for(const o of t){if(o.geometry&&n!==Object(r["c"])(o.geometry)){i.push(Object(f["a"])("Incorrect geometry type."));continue}const t=this._createDefaultAttributes(),a=Object(f["d"])(this._fieldsIndex,t,o.attributes);if(a)i.push(a);else{if(this._assignObjectId(t,o.attributes),o.attributes=t,null!=o.uid){const t=o.attributes[u];e.uidToObjectId[o.uid]=t}Object(s["k"])(o.geometry)&&(o.geometry=Object(l["b"])(Object(f["e"])(o.geometry,c),o.geometry.spatialReference,c)),p.push(o),i.push(Object(f["b"])(o.attributes[u]))}}h.addMany(Object(o["c"])([],p,n,d,a,u))}_applyUpdateEdits({updateResults:e},t){const{geometryType:i,hasM:n,hasZ:a,objectIdField:d,spatialReference:u,featureStore:c}=this._queryEngine;for(const h of t){const{attributes:t,geometry:p}=h,m=t&&t[d];if(null==m){e.push(Object(f["a"])(`Identifier field ${d} missing`));continue}if(!c.has(m)){e.push(Object(f["a"])(`Feature with object id ${m} missing`));continue}const y=Object(o["j"])(c.getFeature(m),i,a,n);if(Object(s["k"])(p)){if(i!==Object(r["c"])(p)){e.push(Object(f["a"])("Incorrect geometry type."));continue}y.geometry=Object(l["b"])(Object(f["e"])(p,u),p.spatialReference,u)}if(t){const i=Object(f["d"])(this._fieldsIndex,y.attributes,t);if(i){e.push(i);continue}}c.add(Object(o["a"])(y,i,a,n,d)),e.push(Object(f["b"])(m))}}_assignObjectId(e,t,i=!1){const n=this._queryEngine.objectIdField;i&&t&&isFinite(t[n])?e[n]=t[n]:e[n]=this._nextObjectId++}}},"21ca":function(e,t,i){"use strict";i.d(t,"a",(function(){return o})),i.d(t,"b",(function(){return u})),i.d(t,"c",(function(){return y})),i.d(t,"d",(function(){return c})),i.d(t,"e",(function(){return p}));var n=i("7f83"),s=i("c1da");class r{constructor(){this.code=null,this.description=null}}class a{constructor(e){this.error=new r,this.globalId=null,this.objectId=null,this.success=!1,this.uniqueId=null,this.error.description=e}}function o(e){return new a(e)}class d{constructor(e){this.globalId=null,this.success=!0,this.objectId=this.uniqueId=e}}function u(e){return new d(e)}const l=new Set;function c(e,t,i,n=!1,r){l.clear();for(const a in i){const d=e.get(a);if(!d)continue;const u=i[a],c=h(d,u);if(c!==u&&r&&r.push({name:"invalid-value-type",message:"attribute value was converted to match the field type",details:{field:d,originalValue:u,sanitizedValue:c}}),l.add(d.name),d&&(n||d.editable)){const e=Object(s["v"])(d,c);if(e)return o(Object(s["w"])(e,d,c));t[d.name]=c}}for(const s of e.requiredFields)if(!l.has(s.name))return o(`missing required field "${s.name}"`);return null}function h(e,t){let i=t;return"string"==typeof t&&Object(s["p"])(e)?i=parseFloat(t):null!=t&&Object(s["q"])(e)&&"string"!=typeof t&&(i=String(t)),Object(s["t"])(i)}let f;function p(e,t){if(!e||!Object(n["l"])(t))return e;if("rings"in e||"paths"in e){if(!f)throw new TypeError("geometry engine not loaded");return f.simplify(t,e)}return e}async function m(){return f||(f=await Promise.all([i.e("chunk-2d22cf8c"),i.e("chunk-180660b2")]).then(i.bind(null,"00ac")),f)}async function y(e,t){!Object(n["l"])(e)||"esriGeometryPolygon"!==t&&"esriGeometryPolyline"!==t||await m()}},"461f":function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var n=i("b2b2"),s=i("d97e"),r=i("9392"),a=i("8152");const o={getObjectId:e=>e.objectId,getAttributes:e=>e.attributes,getAttribute:(e,t)=>e.attributes[t],cloneWithGeometry:(e,t)=>new r["a"](t,e.attributes,null,e.objectId),getGeometry:e=>e.geometry,getCentroid:(e,t)=>(Object(n["j"])(e.centroid)&&(e.centroid=Object(s["a"])(new a["a"],e.geometry,t.hasZ,t.hasM)),e.centroid)}},6517:function(e,t,i){"use strict";i.d(t,"a",(function(){return h}));var n=i("ce50"),s=i("ce6d"),r=i("e92d"),a=i("b2b2"),o=i("4261"),d=i("9180"),u=i("6655"),l=i("04c4"),c=i("461f");class h{constructor(e){this.geometryInfo=e,this._boundsStore=new l["a"],this._featuresById=new Map,this._markedIds=new Set,this.events=new s["a"],this.featureAdapter=c["a"]}get geometryType(){return this.geometryInfo.geometryType}get hasM(){return this.geometryInfo.hasM}get hasZ(){return this.geometryInfo.hasZ}get numFeatures(){return this._featuresById.size}get fullBounds(){if(!this.numFeatures)return null;const e=Object(d["l"])(d["a"]);return this._featuresById.forEach(t=>{const i=this._boundsStore.get(t.objectId);i&&(e[0]=Math.min(i[0],e[0]),e[1]=Math.min(i[1],e[1]),e[2]=Math.max(i[2],e[2]),e[3]=Math.max(i[3],e[3]))}),e}get storeStatistics(){let e=0;return this._featuresById.forEach(t=>{Object(a["k"])(t.geometry)&&t.geometry.coords&&(e+=t.geometry.coords.length)}),{featureCount:this._featuresById.size,vertexCount:e/(this.hasZ?this.hasM?4:3:this.hasM?3:2)}}add(e){this._add(e),this._emitChanged()}addMany(e){for(const t of e)this._add(t);this._emitChanged()}clear(){this._featuresById.clear(),this._boundsStore.clear(),this._emitChanged()}removeById(e){const t=this._featuresById.get(e);return t?(this._remove(t),this._emitChanged(),t):null}removeManyById(e){this._boundsStore.invalidateIndex();for(const t of e){const e=this._featuresById.get(t);e&&this._remove(e)}this._emitChanged()}forEachBounds(e,t,i){for(const n of e){const e=this._boundsStore.get(n.objectId);e&&t(Object(o["s"])(i,e))}}getFeature(e){return this._featuresById.get(e)}has(e){return this._featuresById.has(e)}forEach(e){this._featuresById.forEach(t=>e(t))}forEachInBounds(e,t){this._boundsStore.forEachInBounds(e,e=>{t(this._featuresById.get(e))})}startMarkingUsedFeatures(){this._boundsStore.invalidateIndex(),this._markedIds.clear()}sweep(){let e=!1;this._featuresById.forEach((t,i)=>{this._markedIds.has(i)||(e=!0,this._remove(t))}),this._markedIds.clear(),e&&this._emitChanged()}_emitChanged(){this.events.emit("changed",void 0)}_add(e){if(!e)return;const t=e.objectId;if(null==t)return void r["a"].getLogger("esri.layers.graphics.data.FeatureStore").error(new n["a"]("featurestore:invalid-feature","feature id is missing",{feature:e}));const i=this._featuresById.get(t);let s;if(this._markedIds.add(t),i?(e.displayId=i.displayId,s=this._boundsStore.get(t),this._boundsStore.delete(t)):Object(a["k"])(this.onFeatureAdd)&&this.onFeatureAdd(e),Object(a["j"])(e.geometry)||!e.geometry.coords||!e.geometry.coords.length)return this._boundsStore.set(t,null),void this._featuresById.set(t,e);s=Object(u["s"])(Object(a["k"])(s)?s:Object(d["l"])(),e.geometry,this.geometryInfo.hasZ,this.geometryInfo.hasM),Object(a["k"])(s)&&this._boundsStore.set(t,s),this._featuresById.set(t,e)}_remove(e){return Object(a["k"])(this.onFeatureRemove)&&this.onFeatureRemove(e),this._markedIds.delete(e.objectId),this._boundsStore.delete(e.objectId),this._featuresById.delete(e.objectId),e}}},"88d1":function(e,t,i){"use strict";i.d(t,"a",(function(){return h})),i.d(t,"b",(function(){return l})),i.d(t,"c",(function(){return c})),i.d(t,"d",(function(){return o}));var n=i("c120"),s=i("7ffa"),r=i("a94c"),a=i("8246");function o(e){return{renderer:{type:"simple",symbol:"esriGeometryPoint"===e||"esriGeometryMultipoint"===e?a["c"]:"esriGeometryPolyline"===e?a["e"]:a["d"]}}}const d=/^[_$a-zA-Z][_$a-zA-Z0-9]*$/;let u=1;function l(e,t){if(Object(n["a"])("esri-csp-restrictions"))return()=>({[t]:null,...e});try{let i=`this.${t} = null;`;for(const t in e)i+=`this${d.test(t)?"."+t:`["${t}"]`} = ${JSON.stringify(e[t])};`;const n=new Function(`\n return class AttributesClass$${u++} {\n constructor() {\n ${i};\n }\n }\n `)();return()=>new n}catch(i){return()=>({[t]:null,...e})}}function c(e={}){return[{name:"New Feature",description:"",prototype:{attributes:Object(s["a"])(e)}}]}function h(e,t){return{attachment:null,data:{isVersioned:!1,supportsAttachment:!1,supportsM:!1,supportsZ:e},metadata:{supportsAdvancedFieldProperties:!1},operations:{supportsCalculate:!1,supportsTruncate:!1,supportsValidateSql:!1,supportsAdd:t,supportsDelete:t,supportsEditing:t,supportsChangeTracking:!1,supportsQuery:!0,supportsQueryAttachments:!1,supportsResizeAttachments:!1,supportsSync:!1,supportsUpdate:t,supportsExceedsLimitStatistics:!0},query:r["a"],queryRelated:{supportsCount:!0,supportsOrderBy:!0,supportsPagination:!0},editing:{supportsGeometryUpdate:t,supportsGlobalId:!1,supportsReturnServiceEditsInSourceSpatialReference:!1,supportsRollbackOnFailure:!1,supportsUpdateWithoutM:!1,supportsUploadWithItemId:!1,supportsDeleteByAnonymous:!1,supportsDeleteByOthers:!1,supportsUpdateByAnonymous:!1,supportsUpdateByOthers:!1}}}},a745:function(e,t,i){"use strict";i.d(t,"a",(function(){return s})),i.d(t,"b",(function(){return n}));const n=1;function s(e,t){let i=0;for(const s of t){var n;const t=null==(n=s.attributes)?void 0:n[e];"number"==typeof t&&isFinite(t)&&(i=Math.max(i,t))}return i}},ce76:function(e,t,i){"use strict";i.d(t,"a",(function(){return o}));var n=i("b50f"),s=i("b2b2"),r=i("8a44"),a=i("4637");class o{constructor(e=9,t){this.compareMinX=c,this.compareMinY=h,this._toBBox=function(e){return e},this._maxEntries=Math.max(4,e||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),t&&("function"==typeof t?this._toBBox=t:this._initFormat(t)),this.clear()}destroy(){this.clear(),I.prune(),x.prune(),j.prune(),O.prune()}all(e){this._all(this.data,e)}search(e,t){let i=this.data;const n=this._toBBox;if(b(e,i))for(I.clear();i;){for(let s=0,r=i.children.length;s0;){var u;if(i||(i=Object(s["c"])(j.pop()),r=j.data[j.length-1],a=null!=(u=O.pop())?u:0,o=!0),i.leaf&&(t=Object(n["g"])(i.children,e,i.children.length,i.indexHint),-1!==t))return i.children.splice(t,1),j.push(i),this._condense(j),this;o||i.leaf||!g(i,d)?r?(a++,i=r.children[a],o=!1):i=null:(j.push(i),O.push(a),a=0,r=i,i=i.children[0])}return this}toJSON(){return this.data}fromJSON(e){return this.data=e,this}_all(e,t){let i=e;for(x.clear();i;){var n;if(!0===i.leaf)for(const e of i.children)t(e);else x.pushArray(i.children);i=null!=(n=x.pop())?n:null}}_build(e,t,i,n){const s=i-t+1;let r=this._maxEntries;if(s<=r){const n=new M(e.slice(t,i+1));return d(n,this._toBBox),n}n||(n=Math.ceil(Math.log(s)/Math.log(r)),r=Math.ceil(s/r**(n-1)));const a=new v([]);a.height=n;const o=Math.ceil(s/r),u=o*Math.ceil(Math.sqrt(r));_(e,t,i,u,this.compareMinX);for(let d=t;d<=i;d+=u){const t=Math.min(d+u-1,i);_(e,d,t,o,this.compareMinY);for(let i=d;i<=t;i+=o){const s=Math.min(i+o-1,t);a.children.push(this._build(e,i,s,n-1))}}return d(a,this._toBBox),a}_chooseSubtree(e,t,i,n){for(;n.push(t),!0!==t.leaf&&n.length-1!==i;){let i,n=1/0,s=1/0;for(let r=0,a=t.children.length;r=0&&j.data[t].children.length>this._maxEntries;)this._split(j,t),t--;this._adjustParentBBoxes(s,j,t)}_split(e,t){const i=e.data[t],n=i.children.length,s=this._minEntries;this._chooseSplitAxis(i,s,n);const r=this._chooseSplitIndex(i,s,n);if(!r)return void console.log(" Error: assertion failed at PooledRBush._split: no valid split index");const a=i.children.splice(r,i.children.length-r),o=i.leaf?new M(a):new v(a);o.height=i.height,d(i,this._toBBox),d(o,this._toBBox),t?e.data[t-1].children.push(o):this._splitRoot(i,o)}_splitRoot(e,t){this.data=new v([e,t]),this.data.height=e.height+1,d(this.data,this._toBBox)}_chooseSplitIndex(e,t,i){let n,s,r;n=s=1/0;for(let a=t;a<=i-t;a++){const t=u(e,0,a,this._toBBox),o=u(e,a,i,this._toBBox),d=y(t,o),l=f(t)+f(o);d=t;d--){const t=e.children[d];l(a,e.leaf?s(t):t),o+=p(a)}return o}_adjustParentBBoxes(e,t,i){for(let n=i;n>=0;n--)l(t.data[n],e)}_condense(e){for(let t=e.length-1;t>=0;t--){const i=e.data[t];if(0===i.children.length)if(t>0){const s=e.data[t-1],r=s.children;r.splice(Object(n["g"])(r,i,r.length,s.indexHint),1)}else this.clear();else d(i,this._toBBox)}}_initFormat(e){const t=["return a"," - b",";"];this.compareMinX=new Function("a","b",t.join(e[0])),this.compareMinY=new Function("a","b",t.join(e[1])),this._toBBox=new Function("a","return {minX: a"+e[0]+", minY: a"+e[1]+", maxX: a"+e[2]+", maxY: a"+e[3]+"};")}}function d(e,t){u(e,0,e.children.length,t,e)}function u(e,t,i,n,s){s||(s=new M([])),s.minX=1/0,s.minY=1/0,s.maxX=-1/0,s.maxY=-1/0;for(let r,a=t;a=e.minX&&t.maxY>=e.minY}function _(e,t,i,n,r){const o=[t,i];for(;o.length;){const t=Object(s["c"])(o.pop()),i=Object(s["c"])(o.pop());if(t-i<=n)continue;const d=i+Math.ceil((t-i)/n/2)*n;Object(a["a"])(e,d,i,t,r),o.push(i,d,d,t)}}const I=new r["a"],x=new r["a"],j=new r["a"],O=new r["a"]({deallocator:void 0});class B{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}}class F extends B{constructor(){super(...arguments),this.height=1,this.indexHint=new n["a"]}}class M extends F{constructor(e){super(),this.children=e,this.leaf=!0}}class v extends F{constructor(e){super(),this.children=e,this.leaf=!1}}}}]); //# sourceMappingURL=chunk-cce14d88.81467c4d.js.map