@arcgis/core 4.28.0-next.20230911 → 4.28.0-next.20230913
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/arcade/Feature.js +1 -1
- package/arcade/arcadeTimeUtils.js +1 -1
- package/arcade/executionError.js +1 -1
- package/arcade/featureSetUtils.js +1 -1
- package/arcade/featureset/actions/Adapted.js +1 -1
- package/arcade/featureset/actions/GroupBy.js +1 -1
- package/arcade/featureset/support/FeatureSet.js +1 -1
- package/arcade/featureset/support/errorsupport.js +1 -1
- package/arcade/functions/featuresetbase.js +1 -1
- package/arcade/functions/featuresetstats.js +1 -1
- package/arcade/functions/string.js +1 -1
- package/arcade.js +1 -1
- package/assets/esri/core/workers/RemoteClient.js +1 -1
- package/assets/esri/core/workers/chunks/0920312e3c7b63c2e253.js +1 -0
- package/assets/esri/core/workers/chunks/0cb007ab5db0a2a598ec.js +1 -0
- package/assets/esri/core/workers/chunks/0cc61f1b2c0473ded5c2.js +1 -0
- package/assets/esri/core/workers/chunks/0f804e3f888cb4998f46.js +1 -0
- package/assets/esri/core/workers/chunks/189dd81cf95bd8417ee3.js +1 -0
- package/assets/esri/core/workers/chunks/1a723bb4a341f645e5fe.js +1 -0
- package/assets/esri/core/workers/chunks/24c717492ea1b35310d8.js +1 -0
- package/assets/esri/core/workers/chunks/{3ce73dd4113dbc7d11de.js → 2eb58dc339b2bb03d9e3.js} +1 -1
- package/assets/esri/core/workers/chunks/{38c07a8574352a7f2f6d.js → 2ff0dbd5eb7ca57bb7fc.js} +1 -1
- package/assets/esri/core/workers/chunks/{768f3db2705fa9e57641.js → 49dfdc0463450491df9d.js} +1 -1
- package/assets/esri/core/workers/chunks/650a317b6dc245a7060f.js +1 -0
- package/assets/esri/core/workers/chunks/{56ed099745360888604e.js → 67f01c71280fa0759742.js} +1 -1
- package/assets/esri/core/workers/chunks/{f62842807744bdfaced7.js → 67fab13f56b340076763.js} +1 -1
- package/assets/esri/core/workers/chunks/6d94b358e8d1cf79bba3.js +1 -0
- package/assets/esri/core/workers/chunks/718607d7a3b33fc33b0a.js +1 -0
- package/assets/esri/core/workers/chunks/{4c63d6b9460aa6ae9843.js → 860417f4138f53d315ba.js} +2 -2
- package/assets/esri/core/workers/chunks/8aa7e994b74f66522c37.js +1 -0
- package/assets/esri/core/workers/chunks/9fa485b04b997b0a5509.js +1 -0
- package/assets/esri/core/workers/chunks/a047fcf3c7307a69b63c.js +1 -0
- package/assets/esri/core/workers/chunks/a753d9874801cd448946.js +1 -0
- package/assets/esri/core/workers/chunks/c51233ad51823cb98c35.js +1 -0
- package/assets/esri/core/workers/chunks/c61f20d91a5c432b07dc.js +1 -0
- package/assets/esri/core/workers/chunks/d3d11242e5af57ba77f4.js +1 -0
- package/assets/esri/core/workers/chunks/dbf343d1fb746f99bb6e.js +1 -0
- package/assets/esri/core/workers/chunks/{271ec1d1666bf6dc3dda.js → dc74b4ec85e8e3de5b27.js} +1 -1
- package/assets/esri/core/workers/chunks/e8a8791d765ab6c450dd.js +1 -0
- package/assets/esri/core/workers/chunks/{5fe7b5665710ec6d3046.js → eb0d1c5c96f735c162d3.js} +1 -1
- package/assets/esri/themes/base/widgets/_Sketch.scss +0 -5
- package/assets/esri/themes/base/widgets/_SketchTooltipControls.scss +0 -5
- package/assets/esri/themes/dark/main.css +1 -1
- package/assets/esri/themes/light/main.css +1 -1
- package/assets/esri/themes/light/view.css +1 -1
- package/chunks/HUDMaterial.glsl.js +38 -45
- package/chunks/languageUtils.js +1 -1
- package/core/promiseUtils.js +1 -1
- package/core/sql/AggregateFunctions.js +1 -1
- package/core/sql/DateOnly.js +1 -1
- package/core/sql/SqlTimestampOffset.js +1 -1
- package/core/sql/TimeOnly.js +1 -1
- package/core/sql/WhereClause.js +1 -1
- package/core/sql/WhereGrammar.js +1 -1
- package/core/sql/sqlCompareUtils.js +1 -1
- package/geometry/GeometryCursor.js +1 -1
- package/geometry/Mesh.js +1 -1
- package/geometry/support/labelPoint.js +1 -1
- package/geometry/support/meshUtils/bounds.js +1 -1
- package/geometry/support/meshUtils/georeference.js +1 -1
- package/interfaces.d.ts +190 -144
- package/layers/ImageryLayer.js +1 -1
- package/layers/SceneLayer.js +1 -1
- package/layers/graphics/controllers/FeatureTileController3D.js +1 -1
- package/layers/graphics/controllers/I3SOnDemandController.js +1 -1
- package/layers/graphics/sources/csv/csv.js +1 -1
- package/layers/support/FetchAssociatedFeatureLayer.js +1 -1
- package/layers/support/TilemapCache.js +1 -1
- package/layers/support/fieldUtils.js +1 -1
- package/layers/support/rasterDatasets/BaseRaster.js +1 -1
- package/layers/support/wmsUtils.js +1 -1
- package/layers/video/VideoController.js +1 -1
- package/package.json +3 -3
- package/smartMapping/heuristics/sizeRange.js +1 -1
- package/smartMapping/labels/bins.js +1 -1
- package/smartMapping/labels/clusters.js +1 -1
- package/smartMapping/labels/support/utils.js +1 -1
- package/smartMapping/popup/support/clusterUtils.js +1 -1
- package/smartMapping/support/clusterUtils.js +1 -1
- package/support/revision.js +1 -1
- package/views/2d/engine/webgl/DisplayId.js +1 -1
- package/views/2d/engine/webgl/Utils.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/AreaMeasurementVisualization.js +1 -1
- package/views/3d/analysis/AreaMeasurement/support/MeasurementData.js +1 -1
- package/views/3d/analysis/Dimension/DimensionVisualization.js +1 -1
- package/views/3d/analysis/Dimension/LengthDimensionSubTool.js +1 -1
- package/views/3d/analysis/Dimension/LengthDimensionVisualization.js +1 -1
- package/views/3d/analysis/Dimension/lengthDimensionManipulatorUtils.js +1 -1
- package/views/3d/analysis/Dimension/settings.js +1 -1
- package/views/3d/interactive/Manipulator3D.js +1 -1
- package/views/3d/interactive/editingTools/originGraphicVisualElementUtils.js +1 -1
- package/views/3d/interactive/editingTools/reshapeGraphic/ReshapeOperation.js +1 -1
- package/views/3d/interactive/measurementTools/areaMeasurement3D/AreaMeasurement3DTool.js +1 -1
- package/views/3d/layers/I3SMeshView3D.js +1 -1
- package/views/3d/layers/I3SMeshWorkerHandle.js +1 -1
- package/views/3d/layers/ImageryTileLayerView3D.js +1 -1
- package/views/3d/layers/SceneLayerWorker.js +1 -1
- package/views/3d/layers/i3s/I3SClientNodeLoader.js +1 -1
- package/views/3d/webgl-engine/core/FBOCache.js +1 -1
- package/views/3d/webgl-engine/lib/OffscreenRendering.js +1 -1
- package/views/3d/webgl-engine/materials/HUDMaterial.js +1 -1
- package/views/3d/webgl-engine/shaders/HUDMaterialTechniqueConfiguration.js +1 -1
- package/views/ToolViewManager.js +1 -1
- package/views/View.js +1 -1
- package/views/animation/easing.js +1 -1
- package/views/webgl/FramebufferObject.js +1 -1
- package/views/webgl/RenderingContext.js +1 -1
- package/views/webgl/enums.js +1 -1
- package/views/webgl/renderState.js +1 -1
- package/widgets/BasemapGallery/BasemapGalleryViewModel.js +1 -1
- package/widgets/Feature/FeatureMedia.js +1 -1
- package/widgets/FeatureForm.js +1 -1
- package/widgets/Features.js +1 -1
- package/widgets/Search/SearchViewModel.js +1 -1
- package/widgets/support/SketchTooltipControls/SketchTooltipControlsViewModel.js +1 -1
- package/widgets/support/SketchTooltipControls.js +1 -1
- package/widgets/support/SnappingControls.js +1 -1
- package/assets/esri/core/workers/chunks/055575ed2ab78be0bdb2.js +0 -1
- package/assets/esri/core/workers/chunks/0ee90a0b4d09a56c0d48.js +0 -1
- package/assets/esri/core/workers/chunks/15056f91d87f11b00bcc.js +0 -1
- package/assets/esri/core/workers/chunks/344e40934c98d6fe66ae.js +0 -1
- package/assets/esri/core/workers/chunks/558049fcac3a82a093fc.js +0 -1
- package/assets/esri/core/workers/chunks/5c41eb67d19b8710118a.js +0 -1
- package/assets/esri/core/workers/chunks/5d183ac1a8b68ba9c656.js +0 -1
- package/assets/esri/core/workers/chunks/610d4a5d2511fa81460e.js +0 -1
- package/assets/esri/core/workers/chunks/6755bb1f2a6575a8e082.js +0 -1
- package/assets/esri/core/workers/chunks/84173936b309712ba9b3.js +0 -1
- package/assets/esri/core/workers/chunks/877302d6e39a0d530aab.js +0 -1
- package/assets/esri/core/workers/chunks/a07dc782e69111e2eeaf.js +0 -1
- package/assets/esri/core/workers/chunks/b825019841247d173072.js +0 -1
- package/assets/esri/core/workers/chunks/bed1bc13b168fae46404.js +0 -1
- package/assets/esri/core/workers/chunks/c8dd21a332559c99815c.js +0 -1
- package/assets/esri/core/workers/chunks/ccc3564e76c0ec5c0228.js +0 -1
- package/assets/esri/core/workers/chunks/d0a81c7ec8a84eeadd31.js +0 -1
- package/assets/esri/core/workers/chunks/e7a852b319c1d89eddc5.js +0 -1
- package/assets/esri/core/workers/chunks/ebde11fdccb437954ce7.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[5613],{95401:(t,e,n)=>{n.d(e,{e:()=>l});var r,i,o,s=n(5732),a={exports:{}};r=a,i=function(){function t(t,n,i){i=i||2;var o,s,a,c,u,h,f,p=n&&n.length,g=p?n[0]*i:t.length,d=e(t,0,g,i,!0),m=[];if(!d||d.next===d.prev)return m;if(p&&(d=l(t,n,d,i)),t.length>80*i){o=a=t[0],s=c=t[1];for(var y=i;y<g;y+=i)(u=t[y])<o&&(o=u),(h=t[y+1])<s&&(s=h),u>a&&(a=u),h>c&&(c=h);f=0!==(f=Math.max(a-o,c-s))?1/f:0}return r(d,m,i,o,s,f),m}function e(t,e,n,r,i){var o,s;if(i===I(t,e,n,r)>0)for(o=e;o<n;o+=r)s=M(o,t[o],t[o+1],s);else for(o=n-r;o>=e;o-=r)s=M(o,t[o],t[o+1],s);if(s&&v(s,s.next)){var a=s.next;S(s),s=a}return s}function n(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!v(r,r.next)&&0!==x(r.prev,r,r.next))r=r.next;else{var i=r.prev;if(S(r),(r=e=i)===r.next)break;n=!0}}while(n||r!==e);return e}function r(t,e,l,c,u,h,f){if(t){!f&&h&&p(t,c,u,h);for(var g,d,m=t;t.prev!==t.next;)if(g=t.prev,d=t.next,h?o(t,c,u,h):i(t))e.push(g.i/l),e.push(t.i/l),e.push(d.i/l),S(t),t=d.next,m=d.next;else if((t=d)===m){f?1===f?r(t=s(n(t),e,l),e,l,c,u,h,2):2===f&&a(t,e,l,c,u,h):r(n(t),e,l,c,u,h,1);break}}}function i(t){var e=t.prev,n=t,r=t.next;if(x(e,n,r)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(m(e.x,e.y,n.x,n.y,r.x,r.y,i.x,i.y)&&x(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function o(t,e,n,r){var i=t.prev,o=t,s=t.next;if(x(i,o,s)>=0)return!1;for(var a=i.x<o.x?i.x<s.x?i.x:s.x:o.x<s.x?o.x:s.x,l=i.y<o.y?i.y<s.y?i.y:s.y:o.y<s.y?o.y:s.y,c=i.x>o.x?i.x>s.x?i.x:s.x:o.x>s.x?o.x:s.x,u=i.y>o.y?i.y>s.y?i.y:s.y:o.y>s.y?o.y:s.y,h=g(a,l,e,n,r),f=g(c,u,e,n,r),p=t.prevZ,d=t.nextZ;p&&p.z>=h&&d&&d.z<=f;){if(p!==t.prev&&p!==t.next&&m(i.x,i.y,o.x,o.y,s.x,s.y,p.x,p.y)&&x(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,d!==t.prev&&d!==t.next&&m(i.x,i.y,o.x,o.y,s.x,s.y,d.x,d.y)&&x(d.prev,d,d.next)>=0)return!1;d=d.nextZ}for(;p&&p.z>=h;){if(p!==t.prev&&p!==t.next&&m(i.x,i.y,o.x,o.y,s.x,s.y,p.x,p.y)&&x(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;d&&d.z<=f;){if(d!==t.prev&&d!==t.next&&m(i.x,i.y,o.x,o.y,s.x,s.y,d.x,d.y)&&x(d.prev,d,d.next)>=0)return!1;d=d.nextZ}return!0}function s(t,e,r){var i=t;do{var o=i.prev,s=i.next.next;!v(o,s)&&w(o,i,i.next,s)&&T(o,s)&&T(s,o)&&(e.push(o.i/r),e.push(i.i/r),e.push(s.i/r),S(i),S(i.next),i=t=s),i=i.next}while(i!==t);return n(i)}function a(t,e,i,o,s,a){var l=t;do{for(var c=l.next.next;c!==l.prev;){if(l.i!==c.i&&y(l,c)){var u=_(l,c);return l=n(l,l.next),u=n(u,u.next),r(l,e,i,o,s,a),void r(u,e,i,o,s,a)}c=c.next}l=l.next}while(l!==t)}function l(t,r,i,o){var s,a,l,u=[];for(s=0,a=r.length;s<a;s++)(l=e(t,r[s]*o,s<a-1?r[s+1]*o:t.length,o,!1))===l.next&&(l.steiner=!0),u.push(d(l));for(u.sort(c),s=0;s<u.length;s++)i=n(i=h(u[s],i),i.next);return i}function c(t,e){return t.x-e.x}function u(t){if(t.next.prev===t)return t;let e=t;for(;;){const n=e.next;if(n.prev===e||n===e||n===t)break;e=n}return e}function h(t,e){var r=function(t,e){var n,r=e,i=t.x,o=t.y,s=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var a=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(a<=i&&a>s){if(s=a,a===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!n)return null;if(i===s)return n;var l,c=n,u=n.x,h=n.y,p=1/0;r=n;do{i>=r.x&&r.x>=u&&i!==r.x&&m(o<h?i:s,o,u,h,o<h?s:i,o,r.x,r.y)&&(l=Math.abs(o-r.y)/(i-r.x),T(r,t)&&(l<p||l===p&&(r.x>n.x||r.x===n.x&&f(n,r)))&&(n=r,p=l)),r=r.next}while(r!==c);return n}(t,e);if(!r)return e;var i=_(r,t),o=n(r,r.next);let s=u(i);return n(s,s.next),o=u(o),u(e===r?o:e)}function f(t,e){return x(t.prev,t,e.prev)<0&&x(e.next,t,t.next)<0}function p(t,e,n,r){var i=t;do{null===i.z&&(i.z=g(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,function(t){var e,n,r,i,o,s,a,l,c=1;do{for(n=t,t=null,o=null,s=0;n;){for(s++,r=n,a=0,e=0;e<c&&(a++,r=r.nextZ);e++);for(l=c;a>0||l>0&&r;)0!==a&&(0===l||!r||n.z<=r.z)?(i=n,n=n.nextZ,a--):(i=r,r=r.nextZ,l--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,c*=2}while(s>1)}(i)}function g(t,e,n,r,i){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*i)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-r)*i)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function d(t){var e=t,n=t;do{(e.x<n.x||e.x===n.x&&e.y<n.y)&&(n=e),e=e.next}while(e!==t);return n}function m(t,e,n,r,i,o,s,a){return(i-s)*(e-a)-(t-s)*(o-a)>=0&&(t-s)*(r-a)-(n-s)*(e-a)>=0&&(n-s)*(o-a)-(i-s)*(r-a)>=0}function y(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&w(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(T(t,e)&&T(e,t)&&function(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}(t,e)&&(x(t.prev,t,e.prev)||x(t,e.prev,e))||v(t,e)&&x(t.prev,t,t.next)>0&&x(e.prev,e,e.next)>0)}function x(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function v(t,e){return t.x===e.x&&t.y===e.y}function w(t,e,n,r){var i=A(x(t,e,n)),o=A(x(t,e,r)),s=A(x(n,r,t)),a=A(x(n,r,e));return i!==o&&s!==a||!(0!==i||!b(t,n,e))||!(0!==o||!b(t,r,e))||!(0!==s||!b(n,t,r))||!(0!==a||!b(n,e,r))}function b(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function A(t){return t>0?1:t<0?-1:0}function T(t,e){return x(t.prev,t,t.next)<0?x(t,e,t.next)>=0&&x(t,t.prev,e)>=0:x(t,e,t.prev)<0||x(t,t.next,e)<0}function _(t,e){var n=new O(t.i,t.x,t.y),r=new O(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function M(t,e,n,r){var i=new O(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function S(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function O(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function I(t,e,n,r){for(var i=0,o=e,s=n-r;o<n;o+=r)i+=(t[s]-t[o])*(t[o+1]+t[s+1]),s=o;return i}return t.deviation=function(t,e,n,r){var i=e&&e.length,o=i?e[0]*n:t.length,s=Math.abs(I(t,0,o,n));if(i)for(var a=0,l=e.length;a<l;a++){var c=e[a]*n,u=a<l-1?e[a+1]*n:t.length;s-=Math.abs(I(t,c,u,n))}var h=0;for(a=0;a<r.length;a+=3){var f=r[a]*n,p=r[a+1]*n,g=r[a+2]*n;h+=Math.abs((t[f]-t[g])*(t[p+1]-t[f+1])-(t[f]-t[p])*(t[g+1]-t[f+1]))}return 0===s&&0===h?0:Math.abs((h-s)/s)},t.flatten=function(t){for(var e=t[0][0].length,n={vertices:[],holes:[],dimensions:e},r=0,i=0;i<t.length;i++){for(var o=0;o<t[i].length;o++)for(var s=0;s<e;s++)n.vertices.push(t[i][o][s]);i>0&&(r+=t[i-1].length,n.holes.push(r))}return n},t},void 0!==(o=i())&&(r.exports=o);const l=(0,s.g)(a.exports)},46521:(t,e,n)=>{function r(){return[1,0,0,0,1,0,0,0,1]}function i(t,e,n,r,i,o,s,a,l){return[t,e,n,r,i,o,s,a,l]}function o(t,e){return new Float64Array(t,e,9)}n.d(e,{a:()=>r,c:()=>o,f:()=>i}),Object.freeze(Object.defineProperty({__proto__:null,clone:function(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8]]},create:r,createView:o,fromValues:i},Symbol.toStringTag,{value:"Module"}))},13598:(t,e,n)=>{function r(){return[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15]]}function o(t,e){return new Float64Array(t,e,16)}n.d(e,{I:()=>s,a:()=>r,b:()=>i,c:()=>o});const s=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,createView:o,fromValues:function(t,e,n,r,i,o,s,a,l,c,u,h,f,p,g,d){return[t,e,n,r,i,o,s,a,l,c,u,h,f,p,g,d]}},Symbol.toStringTag,{value:"Module"}))},94961:(t,e,n)=>{function r(){return[0,0,0,1]}function i(t){return[t[0],t[1],t[2],t[3]]}function o(t,e){return new Float64Array(t,e,4)}n.d(e,{I:()=>s,a:()=>r,b:()=>i,c:()=>o});const s=[0,0,0,1];Object.freeze(Object.defineProperty({__proto__:null,IDENTITY:s,clone:i,create:r,createView:o,fromValues:function(t,e,n,r){return[t,e,n,r]}},Symbol.toStringTag,{value:"Module"}))},8310:(t,e,n)=>{n.d(e,{a:()=>y,c:()=>d,g:()=>x,h:()=>m,j:()=>b,l:()=>I}),n(80442);var r=n(92604),i=n(22021),o=n(52138),s=n(17896),a=n(65617),l=n(98766),c=n(88669),u=n(62155),h=n(78341),f=n(61277),p=n(12981);const g=d();function d(){return(0,c.c)()}function m(t,e=d()){return(0,l.c)(e,t)}function y(t){return t[3]}function x(t){return t}function v(t,e,n){if(null==e)return!1;const{origin:r,direction:i}=e,o=w;o[0]=r[0]-t[0],o[1]=r[1]-t[1],o[2]=r[2]-t[2];const s=i[0]*i[0]+i[1]*i[1]+i[2]*i[2];if(0===s)return!1;const a=2*(i[0]*o[0]+i[1]*o[1]+i[2]*o[2]),l=a*a-4*s*(o[0]*o[0]+o[1]*o[1]+o[2]*o[2]-t[3]*t[3]);if(l<0)return!1;const c=Math.sqrt(l);let u=(-a-c)/(2*s);const h=(-a+c)/(2*s);return(u<0||h<u&&h>0)&&(u=h),!(u<0||(n&&(n[0]=r[0]+i[0]*u,n[1]=r[1]+i[1]*u,n[2]=r[2]+i[2]*u),0))}const w=(0,a.c)();function b(t,e){return v(t,e,null)}function A(t,e,n){const r=p.WM.get(),i=p.MP.get();(0,s.b)(r,e.origin,e.direction);const a=y(t);(0,s.b)(n,r,e.origin),(0,s.i)(n,n,1/(0,s.l)(n)*a);const l=_(t,e.origin),c=(0,f.EU)(e.origin,n);return(0,o.c)(i,c+l,r),(0,s.e)(n,n,i),n}function T(t,e,n){const r=(0,s.f)(p.WM.get(),e,t),i=(0,s.i)(p.WM.get(),r,t[3]/(0,s.l)(r));return(0,s.g)(n,i,t)}function _(t,e){const n=(0,s.f)(p.WM.get(),e,t),r=(0,s.l)(n),o=y(t),a=o+Math.abs(o-r);return(0,i.ZF)(o/a)}const M=(0,a.c)();function S(t,e,n,r){const o=(0,s.f)(M,e,t);switch(n){case u.R.X:{const t=(0,i.jE)(o,M)[2];return(0,s.s)(r,-Math.sin(t),Math.cos(t),0)}case u.R.Y:{const t=(0,i.jE)(o,M),e=t[1],n=t[2],a=Math.sin(e);return(0,s.s)(r,-a*Math.cos(n),-a*Math.sin(n),Math.cos(e))}case u.R.Z:return(0,s.n)(r,o);default:return}}function O(t,e){const n=(0,s.f)(E,e,t);return(0,s.l)(n)-t[3]}function I(t,e){const n=(0,s.a)(t,e),r=y(t);return n<=r*r}const E=(0,a.c)(),C=d();Object.freeze(Object.defineProperty({__proto__:null,NullSphere:g,altitudeAt:O,angleToSilhouette:_,axisAt:S,clear:function(t){t[0]=t[1]=t[2]=t[3]=0},closestPoint:function(t,e,n){return v(t,e,n)?n:((0,h.JI)(e,t,n),T(t,n,n))},closestPointOnSilhouette:A,containsPoint:I,copy:m,create:d,distanceToSilhouette:function(t,e){const n=(0,s.f)(p.WM.get(),e,t),r=(0,s.o)(n),i=t[3]*t[3];return Math.sqrt(Math.abs(r-i))},elevate:function(t,e,n){return t!==n&&(0,s.c)(n,t),n[3]=t[3]+e,n},fromCenterAndRadius:function(t,e){return(0,c.f)(t[0],t[1],t[2],e)},fromRadius:function(t,e){return t[0]=t[1]=t[2]=0,t[3]=e,t},fromValues:function(t,e,n,r){return(0,c.f)(t,e,n,r)},getCenter:x,getRadius:y,intersectRay:v,intersectRayClosestSilhouette:function(t,e,n){if(v(t,e,n))return n;const r=A(t,e,p.WM.get());return(0,s.g)(n,e.origin,(0,s.i)(p.WM.get(),e.direction,(0,s.m)(e.origin,r)/(0,s.l)(e.direction))),n},intersectsRay:b,projectPoint:T,setAltitudeAt:function(t,e,n,r){const i=O(t,e),o=S(t,e,u.R.Z,E),a=(0,s.i)(E,o,n-i);return(0,s.g)(r,e,a)},setExtent:function(t,e,n){return r.Z.getLogger("esri.geometry.support.sphere").error("sphere.setExtent is not yet supported"),t===n?n:m(t,n)},tmpSphere:C,union:function(t,e,n=d()){const r=(0,s.m)(t,e),i=t[3],o=e[3];return r+o<i?((0,l.c)(n,t),n):r+i<o?((0,l.c)(n,e),n):((0,s.p)(n,t,e,(r+o-i)/(2*r)),n[3]=(r+i+o)/2,n)},wrap:function(t){return t}},Symbol.toStringTag,{value:"Module"}))},97323:(t,e,n)=>{function r(){return[0,0]}function i(t,e){return[t,e]}function o(t,e){return new Float64Array(t,e,2)}function s(){return i(1,1)}function a(){return i(1,0)}function l(){return i(0,1)}n.d(e,{a:()=>r,c:()=>o,f:()=>i});const c=s(),u=a(),h=l();Object.freeze(Object.defineProperty({__proto__:null,ONES:c,UNIT_X:u,UNIT_Y:h,ZEROS:[0,0],clone:function(t){return[t[0],t[1]]},create:r,createView:o,fromArray:function(t,e=[0,0]){const n=Math.min(2,t.length);for(let r=0;r<n;++r)e[r]=t[r];return e},fromValues:i,ones:s,unitX:a,unitY:l,zeros:function(){return[0,0]}},Symbol.toStringTag,{value:"Module"}))},20773:(t,e,n)=>{n.d(e,{a:()=>a,b:()=>s,c:()=>i,d:()=>u,e:()=>l,n:()=>h,s:()=>c,t:()=>o});var r=n(72220);function i(t,e,n){o(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function o(t,e,n,i=3,o=i){if(t.length/i!==Math.ceil(e.length/o))return r.c.error("source and destination buffers need to have the same number of elements"),t;const s=t.length/i,a=n[0],l=n[1],c=n[2],u=n[4],h=n[5],f=n[6],p=n[8],g=n[9],d=n[10],m=n[12],y=n[13],x=n[14];let v=0,w=0;for(let n=0;n<s;n++){const n=e[v],r=e[v+1],s=e[v+2];t[w]=a*n+u*r+p*s+m,t[w+1]=l*n+h*r+g*s+y,t[w+2]=c*n+f*r+d*s+x,v+=o,w+=i}return t}function s(t,e,n){a(t.typedBuffer,e.typedBuffer,n,t.typedBufferStride,e.typedBufferStride)}function a(t,e,n,i=3,o=i){if(t.length/i!==Math.ceil(e.length/o))return void r.c.error("source and destination buffers need to have the same number of elements");const s=t.length/i,a=n[0],l=n[1],c=n[2],u=n[3],h=n[4],f=n[5],p=n[6],g=n[7],d=n[8];let m=0,y=0;for(let n=0;n<s;n++){const n=e[m],r=e[m+1],s=e[m+2];t[y]=a*n+u*r+p*s,t[y+1]=l*n+h*r+g*s,t[y+2]=c*n+f*r+d*s,m+=o,y+=i}}function l(t,e,n){c(t.typedBuffer,e,n,t.typedBufferStride)}function c(t,e,n,r=3){const i=Math.min(t.length/r,e.count),o=e.typedBuffer,s=e.typedBufferStride;let a=0,l=0;for(let e=0;e<i;e++)t[l]=n*o[a],t[l+1]=n*o[a+1],t[l+2]=n*o[a+2],a+=s,l+=r}function u(t,e){h(t.typedBuffer,e.typedBuffer,t.typedBufferStride,e.typedBufferStride)}function h(t,e,n=3,r=n){const i=Math.min(t.length/n,e.length/r);let o=0,s=0;for(let a=0;a<i;a++){const i=e[o],a=e[o+1],l=e[o+2],c=i*i+a*a+l*l;if(c>0){const e=1/Math.sqrt(c);t[s]=e*i,t[s+1]=e*a,t[s+2]=e*l}o+=r,s+=n}}Object.freeze(Object.defineProperty({__proto__:null,normalize:h,normalizeView:u,scale:c,scaleView:l,shiftRight:function(t,e,n){const r=Math.min(t.count,e.count),i=t.typedBuffer,o=t.typedBufferStride,s=e.typedBuffer,a=e.typedBufferStride;let l=0,c=0;for(let t=0;t<r;t++)i[c]=s[l]>>n,i[c+1]=s[l+1]>>n,i[c+2]=s[l+2]>>n,l+=a,c+=o},transformMat3:a,transformMat3View:s,transformMat4:o,transformMat4View:i},Symbol.toStringTag,{value:"Module"}))},91303:(t,e,n)=>{var r;n.d(e,{Y:()=>r}),function(t){t[t.KILOBYTES=1024]="KILOBYTES",t[t.MEGABYTES=1048576]="MEGABYTES",t[t.GIGABYTES=1073741824]="GIGABYTES"}(r||(r={}))},22807:(t,e,n)=>{n.d(e,{x:()=>i});var r=n(41213);class i{constructor(t){this._allocator=t,this._items=[],this._itemsPtr=0,this._grow()}get(){return 0===this._itemsPtr&&(0,r.Y)((()=>this._reset())),this._itemsPtr===this._items.length&&this._grow(),this._items[this._itemsPtr++]}_reset(){const t=Math.min(3*Math.max(8,this._itemsPtr),this._itemsPtr+3*o);this._items.length=Math.min(t,this._items.length),this._itemsPtr=0}_grow(){for(let t=0;t<Math.max(8,Math.min(this._items.length,o));t++)this._items.push(this._allocator())}}const o=1024},70163:(t,e,n)=>{n.d(e,{Jl:()=>u,n$:()=>h});var r=n(3172),i=n(20102),o=n(95330),s=n(17452),a=n(49917);let l=null,c=!0;function u(t,e,n,r){if(!e||!n)throw new Error("Cannot construct image data without dimensions");if(c)try{return new ImageData(t,e,n)}catch(t){c=!1}const i=function(t,e,n){return n||(l||(l=document.createElement("canvas"),l.width=1,l.height=1),n=l),n.getContext("2d").createImageData(t,e)}(e,n,r);return i.data.set(t,0),i}async function h(t,e){const{arrayBuffer:l,mediaType:c}=await async function(t,e){const n=(0,s.sJ)(t);if(n?.isBase64)return{arrayBuffer:(0,a.R)(n.data),mediaType:n.mediaType};const i=await(0,r.Z)(t,{responseType:"array-buffer",...e});return{arrayBuffer:i.data,mediaType:i.getHeader("Content-Type")}}(t,e),u="image/png"===c;if("image/gif"===c){const{isAnimatedGIF:t,parseGif:r}=await n.e(3310).then(n.bind(n,83310));if(t(l))return r(l,e)}if(u){const{isAnimatedPNG:t,parseApng:r}=await n.e(4492).then(n.bind(n,54492));if(t(l))return r(l,e)}return async function(t,e){const n=window.URL.createObjectURL(t);try{const{data:t}=await(0,r.Z)(n,{...e,responseType:"image"});return t}catch(t){if(!(0,o.D_)(t))throw new i.Z("invalid-image",`Could not fetch requested image at ${n}`);throw t}finally{window.URL.revokeObjectURL(n)}}(new Blob([l],{type:c}),e)}},83025:(t,e,n)=>{n.d(e,{JK:()=>a,QZ:()=>o,Rq:()=>s,bg:()=>i,mB:()=>l});var r=n(1533);function i(t,e=!1){return t<=r.c8?e?new Array(t).fill(0):new Array(t):new Float64Array(t)}function o(t){return((0,r.kJ)(t)?t.length:t.byteLength/8)<=r.c8?Array.from(t):new Float64Array(t)}function s(t,e,n){return Array.isArray(t)?t.slice(e,e+n):t.subarray(e,e+n)}function a(t,e){for(let n=0;n<e.length;++n)t[n]=e[n];return t}function l(t){return Array.isArray(t)?new Float64Array(t):t}},24882:(t,e,n)=>{n.d(e,{$z:()=>s,KF:()=>u,mi:()=>i});var r=n(1533);function i(t){return(0,r.kJ)(t)?t.length<r.c8?t:o(t):t.length<r.c8?Array.from(t):t.BYTES_PER_ELEMENT===Uint16Array.BYTES_PER_ELEMENT?t:o(t)}function o(t){let e=!0;for(const n of t){if(n>=65536)return(0,r.kJ)(t)?new Uint32Array(t):t;n>=256&&(e=!1)}return e?new Uint8Array(t):new Uint16Array(t)}function s(t){return t<=r.c8?new Array(t):t<=65536?new Uint16Array(t):new Uint32Array(t)}let a=(()=>{const t=new Uint32Array(131072);for(let e=0;e<t.length;++e)t[e]=e;return t})();const l=[0],c=(()=>{const t=new Uint16Array(65536);for(let e=0;e<t.length;++e)t[e]=e;return t})();function u(t){if(1===t)return l;if(t<r.c8)return Array.from(new Uint16Array(c.buffer,0,t));if(t<c.length)return new Uint16Array(c.buffer,0,t);if(t>a.length){const e=Math.max(2*a.length,t);a=new Uint32Array(e);for(let t=0;t<a.length;t++)a[t]=t}return new Uint32Array(a.buffer,0,t)}new Uint8Array(65536)},62540:(t,e,n)=>{n.d(e,{Z:()=>x});var r,i=n(43697),o=n(96674),s=n(22974),a=n(92604),l=n(5600),c=n(90578),u=n(52011),h=n(75215),f=n(65542),p=n(60746),g=n(71630);const d="esri.geometry.support.MeshComponent",m=a.Z.getLogger(d);let y=r=class extends o.wq{static from(t){return(0,h.TJ)(r,t)}constructor(t){super(t),this.faces=null,this.material=null,this.shading="source",this.trustSourceNormals=!1}castFaces(t){return(0,g.X)(t,Uint32Array,[Uint16Array],{loggerTag:".faces=",stride:3},m)}castMaterial(t){return(0,h.TJ)(t&&"object"==typeof t&&("metallic"in t||"roughness"in t||"metallicRoughnessTexture"in t)?p.Z:f.Z,t)}clone(){return new r({faces:(0,s.d9)(this.faces),shading:this.shading,material:(0,s.d9)(this.material),trustSourceNormals:this.trustSourceNormals})}cloneWithDeduplication(t,e){const n={faces:(0,s.d9)(this.faces),shading:this.shading,material:this.material?this.material.cloneWithDeduplication(t,e):null,trustSourceNormals:this.trustSourceNormals};return new r(n)}get memoryUsage(){let t=0;return null!=this.faces&&(t+=this.faces.byteLength),null!=this.material&&(t+=this.material.memoryUsage),t}};(0,i._)([(0,l.Cb)({json:{write:!0}})],y.prototype,"faces",void 0),(0,i._)([(0,c.p)("faces")],y.prototype,"castFaces",null),(0,i._)([(0,l.Cb)({type:f.Z,json:{write:!0}})],y.prototype,"material",void 0),(0,i._)([(0,c.p)("material")],y.prototype,"castMaterial",null),(0,i._)([(0,l.Cb)({type:String,json:{write:!0}})],y.prototype,"shading",void 0),(0,i._)([(0,l.Cb)({type:Boolean})],y.prototype,"trustSourceNormals",void 0),y=r=(0,i._)([(0,u.j)(d)],y);const x=y},85872:(t,e,n)=>{n.d(e,{Z:()=>f});var r=n(43697),i=n(2368),o=n(96674),s=n(5600),a=(n(75215),n(67676),n(80442),n(36030)),l=n(52011),c=n(65617),u=n(94139);let h=class extends((0,i.J)(o.wq)){constructor(t){super(t),this.type="georeferenced-relative",this.isRelative=!0,this.isGeoreferenced=!0,this.origin=(0,c.c)()}getOriginPoint(t){const[e,n,r]=this.origin;return new u.Z({x:e,y:n,z:r,spatialReference:t})}setOriginFromPoint({x:t,y:e,z:n}){this.origin=(0,c.f)(t,e,n??0)}};(0,r._)([(0,a.J)({georeferencedRelative:"georeferenced-relative"},{readOnly:!0})],h.prototype,"type",void 0),(0,r._)([(0,s.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"origin",void 0),h=(0,r._)([(0,l.j)("esri.geometry.support.MeshGeoreferencedRelativeVertexSpace")],h);const f=h},84555:(t,e,n)=>{n.d(e,{Z:()=>f});var r=n(43697),i=n(2368),o=n(96674),s=n(5600),a=(n(75215),n(67676),n(80442),n(36030)),l=n(52011),c=n(65617),u=n(94139);let h=class extends((0,i.J)(o.wq)){constructor(t){super(t),this.type="local",this.isRelative=!0,this.isGeoreferenced=!1,this.origin=(0,c.c)()}getOriginPoint(t){const[e,n,r]=this.origin;return new u.Z({x:e,y:n,z:r,spatialReference:t})}setOriginFromPoint({x:t,y:e,z:n}){this.origin=(0,c.f)(t,e,n??0)}};(0,r._)([(0,a.J)({local:"local"},{readOnly:!0})],h.prototype,"type",void 0),(0,r._)([(0,s.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],h.prototype,"origin",void 0),h=(0,r._)([(0,l.j)("esri.geometry.support.MeshLocalVertexSpace")],h);const f=h},65542:(t,e,n)=>{n.d(e,{Z:()=>f});var r,i=n(43697),o=n(22303),s=n(96674),a=n(5600),l=(n(75215),n(67676),n(80442),n(52011)),c=n(85965),u=n(80218);let h=r=class extends s.wq{constructor(t){super(t),this.color=null,this.colorTexture=null,this.colorTextureTransform=null,this.normalTexture=void 0,this.normalTextureTransform=void 0,this.alphaMode="auto",this.alphaCutoff=.5,this.doubleSided=!0}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(t,e){const n=null!=t?t.get(this):null;if(n)return n;const i=new r(this.clonePropertiesWithDeduplication(e));return null!=t&&t.set(this,i),i}clonePropertiesWithDeduplication(t){return{color:null!=this.color?this.color.clone():null,colorTexture:this.colorTexture?.cloneWithDeduplication(t),normalTexture:this.normalTexture?.cloneWithDeduplication(t),alphaMode:this.alphaMode,alphaCutoff:this.alphaCutoff,doubleSided:this.doubleSided,colorTextureTransform:this.colorTextureTransform?.clone(),normalTextureTransform:this.normalTextureTransform?.clone()}}get memoryUsage(){return this.getMemoryUsage()}getMemoryUsage(){let t=0;return t+=null!=this.color?16:0,null!=this.colorTexture&&(t+=this.colorTexture.memoryUsage),t+=null!=this.colorTextureTransform?20:0,null!=this.normalTexture&&(t+=this.normalTexture.memoryUsage),t+=null!=this.normalTextureTransform?20:0,t}};(0,i._)([(0,a.Cb)({type:o.Z,json:{write:!0}})],h.prototype,"color",void 0),(0,i._)([(0,a.Cb)({type:c.Z,json:{write:!0}})],h.prototype,"colorTexture",void 0),(0,i._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],h.prototype,"colorTextureTransform",void 0),(0,i._)([(0,a.Cb)({type:c.Z,json:{write:!0}})],h.prototype,"normalTexture",void 0),(0,i._)([(0,a.Cb)({type:u.Z,json:{write:!0}})],h.prototype,"normalTextureTransform",void 0),(0,i._)([(0,a.Cb)({nonNullable:!0,json:{write:!0}})],h.prototype,"alphaMode",void 0),(0,i._)([(0,a.Cb)({nonNullable:!0,json:{write:!0}})],h.prototype,"alphaCutoff",void 0),(0,i._)([(0,a.Cb)({nonNullable:!0,json:{write:!0}})],h.prototype,"doubleSided",void 0),h=r=(0,i._)([(0,l.j)("esri.geometry.support.MeshMaterial")],h);const f=h},60746:(t,e,n)=>{n.d(e,{Z:()=>f});var r,i=n(43697),o=n(22303),s=n(5600),a=(n(75215),n(67676),n(80442),n(52011)),l=n(65542),c=n(85965),u=n(80218);let h=r=class extends l.Z{constructor(t){super(t),this.emissiveColor=null,this.emissiveTexture=null,this.emissiveTextureTransform=void 0,this.occlusionTexture=null,this.occlusionTextureTransform=void 0,this.metallic=1,this.roughness=1,this.metallicRoughnessTexture=null,this.metallicRoughnessTextureTransform=void 0}clone(){return this.cloneWithDeduplication(null,new Map)}cloneWithDeduplication(t,e){const n=null!=t?t.get(this):null;if(n)return n;const i=new r(this.clonePropertiesWithDeduplication(e));return null!=t&&t.set(this,i),i}getMemoryUsage(){let t=super.getMemoryUsage();return t+=null!=this.emissiveColor?16:0,null!=this.emissiveTexture&&(t+=this.emissiveTexture.memoryUsage),t+=null!=this.emissiveTextureTransform?20:0,null!=this.occlusionTexture&&(t+=this.occlusionTexture.memoryUsage),t+=null!=this.occlusionTextureTransform?20:0,null!=this.metallicRoughnessTexture&&(t+=this.metallicRoughnessTexture.memoryUsage),t+=null!=this.metallicRoughnessTextureTransform?20:0,t}clonePropertiesWithDeduplication(t){return{...super.clonePropertiesWithDeduplication(t),emissiveColor:this.emissiveColor?.clone(),emissiveTexture:this.emissiveTexture?.cloneWithDeduplication(t),emissiveTextureTransform:this.emissiveTextureTransform?.clone(),occlusionTexture:this.occlusionTexture?.cloneWithDeduplication(t),occlusionTextureTransform:this.occlusionTextureTransform?.clone(),metallic:this.metallic,roughness:this.roughness,metallicRoughnessTexture:this.metallicRoughnessTexture?.cloneWithDeduplication(t),metallicRoughnessTextureTransform:this.metallicRoughnessTextureTransform?.clone()}}};(0,i._)([(0,s.Cb)({type:o.Z,json:{write:!0}})],h.prototype,"emissiveColor",void 0),(0,i._)([(0,s.Cb)({type:c.Z,json:{write:!0}})],h.prototype,"emissiveTexture",void 0),(0,i._)([(0,s.Cb)({type:u.Z,json:{write:!0}})],h.prototype,"emissiveTextureTransform",void 0),(0,i._)([(0,s.Cb)({type:c.Z,json:{write:!0}})],h.prototype,"occlusionTexture",void 0),(0,i._)([(0,s.Cb)({type:u.Z,json:{write:!0}})],h.prototype,"occlusionTextureTransform",void 0),(0,i._)([(0,s.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],h.prototype,"metallic",void 0),(0,i._)([(0,s.Cb)({type:Number,nonNullable:!0,json:{write:!0},range:{min:0,max:1}})],h.prototype,"roughness",void 0),(0,i._)([(0,s.Cb)({type:c.Z,json:{write:!0}})],h.prototype,"metallicRoughnessTexture",void 0),(0,i._)([(0,s.Cb)({type:u.Z,json:{write:!0}})],h.prototype,"metallicRoughnessTextureTransform",void 0),h=r=(0,i._)([(0,a.j)("esri.geometry.support.MeshMaterialMetallicRoughness")],h);const f=h},85965:(t,e,n)=>{n.d(e,{Z:()=>m});var r,i=n(43697),o=(n(80442),n(70163)),s=n(96674),a=n(5600),l=n(75215),c=(n(67676),n(71715)),u=n(52011),h=n(30556),f=n(25929);const p=new WeakMap;let g=0,d=r=class extends s.wq{constructor(t){super(t),this.wrap="repeat"}get url(){return this._get("url")||null}set url(t){this._set("url",t),t&&this._set("data",null)}get data(){return this._get("data")||null}set data(t){this._set("data",t),t&&this._set("url",null)}writeData(t,e,n,r){if(t instanceof HTMLImageElement){const i={type:"image-element",src:(0,f.t)(t.src,r),crossOrigin:t.crossOrigin};e[n]=i}else if(t instanceof HTMLCanvasElement){const r=t.getContext("2d").getImageData(0,0,t.width,t.height),i={type:"canvas-element",imageData:this._encodeImageData(r)};e[n]=i}else if(t instanceof HTMLVideoElement){const i={type:"video-element",src:(0,f.t)(t.src,r),autoplay:t.autoplay,loop:t.loop,muted:t.muted,crossOrigin:t.crossOrigin,preload:t.preload};e[n]=i}else if(t instanceof ImageData){const r={type:"image-data",imageData:this._encodeImageData(t)};e[n]=r}}readData(t){switch(t.type){case"image-element":{const e=new Image;return e.src=t.src,e.crossOrigin=t.crossOrigin,e}case"canvas-element":{const e=this._decodeImageData(t.imageData),n=document.createElement("canvas");return n.width=e.width,n.height=e.height,n.getContext("2d").putImageData(e,0,0),n}case"image-data":return this._decodeImageData(t.imageData);case"video-element":{const e=document.createElement("video");return e.src=t.src,e.crossOrigin=t.crossOrigin,e.autoplay=t.autoplay,e.loop=t.loop,e.muted=t.muted,e.preload=t.preload,e}default:return}}get transparent(){const t=this.data,e=this.url;if(t instanceof HTMLCanvasElement)return this._imageDataContainsTransparent(t.getContext("2d").getImageData(0,0,t.width,t.height));if(t instanceof ImageData)return this._imageDataContainsTransparent(t);if(e){const t=e.substr(e.length-4,4).toLowerCase(),n=e.substr(0,15).toLocaleLowerCase();if(".png"===t||"data:image/png;"===n)return!0}return!1}set transparent(t){this._overrideIfSome("transparent",t)}get contentHash(){const t="string"==typeof this.wrap?this.wrap:"object"==typeof this.wrap?`${this.wrap.horizontal}/${this.wrap.vertical}`:"",e=(e="")=>`d:${e},t:${this.transparent},w:${t}`;return null!=this.url?e(this.url):null!=this.data?this.data instanceof HTMLImageElement||this.data instanceof HTMLVideoElement?e(this.data.src):(p.has(this.data)||p.set(this.data,++g),e(p.get(this.data))):e()}get memoryUsage(){let t=0;if(t+=null!=this.url?this.url.length:0,null!=this.data){const e=this.data;"data"in e?t+=e.data.byteLength:e instanceof HTMLImageElement?t+=e.naturalWidth*e.naturalHeight*3:e instanceof HTMLCanvasElement&&(t+=e.width*e.height*3)}return t}clone(){const t={url:this.url,data:this.data,wrap:this._cloneWrap()};return new r(t)}cloneWithDeduplication(t){const e=t.get(this);if(e)return e;const n=this.clone();return t.set(this,n),n}_cloneWrap(){return"string"==typeof this.wrap?this.wrap:{horizontal:this.wrap.horizontal,vertical:this.wrap.vertical}}_encodeImageData(t){let e="";for(let n=0;n<t.data.length;n++)e+=String.fromCharCode(t.data[n]);return{data:btoa(e),width:t.width,height:t.height}}_decodeImageData(t){const e=atob(t.data),n=new Uint8ClampedArray(e.length);for(let t=0;t<e.length;t++)n[t]=e.charCodeAt(t);return(0,o.Jl)(n,t.width,t.height)}_imageDataContainsTransparent(t){for(let e=3;e<t.data.length;e+=4)if(255!==t.data[e])return!0;return!1}static from(t){return"string"==typeof t?new r({url:t}):t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof ImageData||t instanceof HTMLVideoElement?new r({data:t}):(0,l.TJ)(r,t)}};(0,i._)([(0,a.Cb)({type:String,json:{write:f.w}})],d.prototype,"url",null),(0,i._)([(0,a.Cb)({json:{write:{overridePolicy(){return{enabled:!this.url}}}}}),(0,a.Cb)()],d.prototype,"data",null),(0,i._)([(0,h.c)("data")],d.prototype,"writeData",null),(0,i._)([(0,c.r)("data")],d.prototype,"readData",null),(0,i._)([(0,a.Cb)({type:Boolean,json:{write:{overridePolicy(){return{enabled:this._isOverridden("transparent")}}}}})],d.prototype,"transparent",null),(0,i._)([(0,a.Cb)({json:{write:!0}})],d.prototype,"wrap",void 0),(0,i._)([(0,a.Cb)({readOnly:!0})],d.prototype,"contentHash",null),d=r=(0,i._)([(0,u.j)("esri.geometry.support.MeshTexture")],d);const m=d},80218:(t,e,n)=>{n.d(e,{Z:()=>c});var r=n(43697),i=n(2368),o=n(96674),s=n(5600),a=(n(75215),n(67676),n(80442),n(52011));let l=class extends((0,i.J)(o.wq)){constructor(t){super(t),this.offset=[0,0],this.rotation=0,this.scale=[1,1]}};(0,r._)([(0,s.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"offset",void 0),(0,r._)([(0,s.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],l.prototype,"rotation",void 0),(0,r._)([(0,s.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],l.prototype,"scale",void 0),l=(0,r._)([(0,a.j)("esri.geometry.support.MeshTextureTransform")],l);const c=l},71630:(t,e,n)=>{n.d(e,{Q:()=>p,X:()=>d});var r,i=n(43697),o=n(96674),s=n(22974),a=n(92604),l=n(5600),c=n(90578),u=n(52011);const h="esri.geometry.support.MeshVertexAttributes",f=a.Z.getLogger(h);let p=r=class extends o.wq{constructor(t){super(t),this.color=null,this.position=new Float64Array(0),this.uv=null,this.normal=null,this.tangent=null}castColor(t){return d(t,Uint8Array,[Uint8ClampedArray],{loggerTag:".color=",stride:4},f)}castPosition(t){return t&&t instanceof Float32Array&&f.warn(".position=","Setting position attribute from a Float32Array may cause precision problems. Consider storing data in a Float64Array or a regular number array"),d(t,Float64Array,[Float32Array],{loggerTag:".position=",stride:3},f)}castUv(t){return d(t,Float32Array,[Float64Array],{loggerTag:".uv=",stride:2},f)}castNormal(t){return d(t,Float32Array,[Float64Array],{loggerTag:".normal=",stride:3},f)}castTangent(t){return d(t,Float32Array,[Float64Array],{loggerTag:".tangent=",stride:4},f)}clone(){const t={position:(0,s.d9)(this.position),uv:(0,s.d9)(this.uv),normal:(0,s.d9)(this.normal),tangent:(0,s.d9)(this.tangent),color:(0,s.d9)(this.color)};return new r(t)}clonePositional(){const t={position:(0,s.d9)(this.position),normal:(0,s.d9)(this.normal),tangent:(0,s.d9)(this.tangent),uv:this.uv,color:this.color};return new r(t)}get memoryUsage(){let t=0;return t+=this.position.byteLength,null!=this.uv&&(t+=this.uv.byteLength),null!=this.normal&&(t+=this.normal.byteLength),null!=this.tangent&&(t+=this.tangent.byteLength),null!=this.color&&(t+=this.color.byteLength),t}};function g(t,e,n,r){const{loggerTag:i,stride:o}=e;return t.length%o!=0?(r.error(i,`Invalid array length, expected a multiple of ${o}`),new n([])):t}function d(t,e,n,r,i){if(!t)return t;if(t instanceof e)return g(t,r,e,i);for(const o of n)if(t instanceof o)return g(new e(t),r,e,i);if(Array.isArray(t))return g(new e(t),r,e,i);{const r=n.map((t=>`'${t.name}'`));return i.error(`Failed to set property, expected one of ${r}, but got ${t.constructor.name}`),new e([])}}function m(t,e,n){e[n]=function(t){const e=new Array(t.length);for(let n=0;n<t.length;n++)e[n]=t[n];return e}(t)}(0,i._)([(0,l.Cb)({json:{write:m}})],p.prototype,"color",void 0),(0,i._)([(0,c.p)("color")],p.prototype,"castColor",null),(0,i._)([(0,l.Cb)({nonNullable:!0,json:{write:m}})],p.prototype,"position",void 0),(0,i._)([(0,c.p)("position")],p.prototype,"castPosition",null),(0,i._)([(0,l.Cb)({json:{write:m}})],p.prototype,"uv",void 0),(0,i._)([(0,c.p)("uv")],p.prototype,"castUv",null),(0,i._)([(0,l.Cb)({json:{write:m}})],p.prototype,"normal",void 0),(0,i._)([(0,c.p)("normal")],p.prototype,"castNormal",null),(0,i._)([(0,l.Cb)({json:{write:m}})],p.prototype,"tangent",void 0),(0,i._)([(0,c.p)("tangent")],p.prototype,"castTangent",null),p=r=(0,i._)([(0,u.j)(h)],p)},72220:(t,e,n)=>{n.d(e,{c:()=>r});const r=n(92604).Z.getLogger("esri.views.3d.support.buffer.math")},16996:(t,e,n)=>{n.d(e,{Ue:()=>l,nF:()=>u,zk:()=>c});var r=n(22021),i=n(22807),o=n(17896),s=n(65617),a=n(12981);function l(t){return t?{origin:(0,s.g)(t.origin),vector:(0,s.g)(t.vector)}:{origin:(0,s.c)(),vector:(0,s.c)()}}function c(t,e,n=l()){return(0,o.c)(n.origin,t),(0,o.f)(n.vector,e,t),n}function u(t,e,n){return function(t,e,n,i,s){const{vector:l,origin:c}=t,u=(0,o.f)(a.WM.get(),e,c),h=(0,o.j)(l,u)/(0,o.o)(l);return(0,o.i)(s,l,(0,r.uZ)(h,0,1)),(0,o.g)(s,s,t.origin)}(t,e,0,0,n)}(0,s.c)(),(0,s.c)(),new i.x((()=>l()))},84470:(t,e,n)=>{n.d(e,{CP:()=>a,JG:()=>g,LL:()=>l,NZ:()=>c,fV:()=>d,vj:()=>y,yT:()=>v,zE:()=>x});var r=n(3172),i=n(67676),o=n(95330),s=n(2981);class a{constructor(t,e,n){this.assetName=t,this.assetMimeType=e,this.parts=n}equals(t){return this===t||this.assetName===t.assetName&&this.assetMimeType===t.assetMimeType&&(0,i.fS)(this.parts,t.parts,((t,e)=>t.equals(e)))}isOnService(t){return this.parts.every((e=>e.isOnService(t)))}makeHash(){let t="";for(const e of this.parts)t+=e.partHash;return t}async toBlob(t){const{parts:e}=this;if(1===e.length)return e[0].toBlob(t);const n=await Promise.all(e.map((e=>e.toBlob(t))));return(0,o.k_)(t),new Blob(n)}}class l{constructor(t,e){this.partUrl=t,this.partHash=e}equals(t){return this===t||this.partUrl===t.partUrl&&this.partHash===t.partHash}isOnService(t){return this.partUrl.startsWith(`${t.path}/assets/`)}async toBlob(t){const{data:e}=await(0,r.Z)(this.partUrl,{responseType:"blob"});return(0,o.k_)(t),e}}function c(t){return function(t){return!!t&&(Array.isArray(t)?t.some(p):p(t))}(t?.source)}function u(t){return!!Array.isArray(t)&&t.every((t=>t instanceof a))}const h=/^(model\/gltf\+json)|(model\/gltf-binary)$/,f=/\.(gltf|glb)/i;function p(t){if(t instanceof File){const{type:e,name:n}=t;return h.test(e)||f.test(n)}return h.test(t.assetMimeType)||f.test(t.assetName)}function g(t,e){if(!t)return!1;const{source:n}=t;return function(t,e){if(Array.isArray(t)){const n=t;return n.length>0&&n.every((t=>m(t,e)))}return m(t,e)}(n,e)}function d(t,e){if(t===e)return!0;const{source:n}=t,{source:r}=e;if(n===r)return!0;if(u(n)&&u(r)){if(n.length!==r.length)return!1;const t=(t,e)=>t.assetName<e.assetName?-1:t.assetName>e.assetName?1:0,e=[...n].sort(t),i=[...r].sort(t);for(let t=0;t<e.length;++t)if(!e[t].equals(i[t]))return!1;return!0}return!1}function m(t,e){return t instanceof a&&t.isOnService(e)}function y(t,e){return t instanceof File?(0,s.dm)(t,e):(0,s.S0)(t.assetMimeType,e)??(0,s.Ow)(t.assetName,e)}function x(t){return Array.isArray(t)?t:[t]}function v(t){return!!t.original}},47545:(t,e,n)=>{n.d(e,{d:()=>o});var r=n(22021),i=n(24882);function o(t,e,n){const o=Array.isArray(t),u=o?t.length/e:t.byteLength/(4*e),h=o?t:new Uint32Array(t,0,u*e),f=n?.minReduction??0,p=n?.originalIndices||null,g=p?p.length:0,d=n?.componentOffsets||null;let m=0;if(d)for(let t=0;t<d.length-1;t++){const e=d[t+1]-d[t];e>m&&(m=e)}else m=u;const y=Math.floor(1.1*m)+1;(null==c||c.length<2*y)&&(c=new Uint32Array((0,r.Sf)(2*y)));for(let t=0;t<2*y;t++)c[t]=0;let x=0;const v=!!d&&!!p,w=v?g:u;let b=(0,i.$z)(u);const A=new Uint32Array(g),T=1.96;let _=0!==f?Math.ceil(4*T*T/(f*f)*f*(1-f)):w,M=1,S=d?d[1]:w;for(let t=0;t<w;t++){if(t===_){const e=1-x/t;if(e+T*Math.sqrt(e*(1-e)/t)<f)return null;_*=2}if(t===S){for(let t=0;t<2*y;t++)c[t]=0;if(p)for(let t=d[M-1];t<d[M];t++)A[t]=b[p[t]];S=d[++M]}const n=v?p[t]:t,r=n*e,i=l(h,r,e);let o=i%y,a=x;for(;0!==c[2*o+1];){if(c[2*o]===i){const t=c[2*o+1]-1;if(s(h,r,t*e,e)){a=b[t];break}}o++,o>=y&&(o-=y)}a===x&&(c[2*o]=i,c[2*o+1]=n+1,x++),b[n]=a}if(0!==f&&1-x/u<f)return null;if(v){for(let t=d[M-1];t<A.length;t++)A[t]=b[p[t]];b=(0,i.mi)(A)}const O=o?new Array(x):new Uint32Array(x*e);x=0;for(let t=0;t<w;t++)b[t]===x&&(a(h,(v?p[t]:t)*e,O,x*e,e),x++);if(p&&!v){const t=new Uint32Array(g);for(let e=0;e<t.length;e++)t[e]=b[p[e]];b=(0,i.mi)(t)}return{buffer:Array.isArray(O)?O:O.buffer,indices:b,uniqueCount:x}}function s(t,e,n,r){for(let i=0;i<r;i++)if(t[e+i]!==t[n+i])return!1;return!0}function a(t,e,n,r,i){for(let o=0;o<i;o++)n[r+o]=t[e+o]}function l(t,e,n){let r=0;for(let i=0;i<n;i++)r=t[e+i]+r|0,r=r+(r<<11)+(r>>>2)|0;return r>>>0}let c=null},62073:(t,e,n)=>{n.d(e,{Ue:()=>o,zu:()=>s,mJ:()=>p}),n(22021);var r=n(17896),i=n(65617);function o(t=g){return[t[0],t[1],t[2],t[3]]}function s(t,e,n,i=0,p=Math.floor(n*(1/3)),g=Math.floor(n*(2/3))){if(n<3)return!1;e(l,i);let d=p,m=!1;for(;d<n-1&&!m;)e(c,d),d++,m=!(0,r.h)(l,c);if(!m)return!1;for(d=Math.max(d,g),m=!1;d<n&&!m;)e(u,d),d++,(0,r.f)(h,l,c),(0,r.n)(h,h),(0,r.f)(f,c,u),(0,r.n)(f,f),m=!(0,r.h)(l,u)&&!(0,r.h)(c,u)&&Math.abs((0,r.j)(h,f))<a;return m?(function(t,e,n,r=o()){const i=n[0]-e[0],s=n[1]-e[1],a=n[2]-e[2],l=t[0]-e[0],c=t[1]-e[1],u=t[2]-e[2],h=s*u-a*c,f=a*l-i*u,p=i*c-s*l,g=h*h+f*f+p*p,d=Math.abs(g-1)>1e-5&&g>1e-12?1/Math.sqrt(g):1;r[0]=h*d,r[1]=f*d,r[2]=p*d,r[3]=-(r[0]*t[0]+r[1]*t[1]+r[2]*t[2])}(l,c,u,t),!0):(0!==i||1!==p||2!==g)&&s(t,e,n,0,1,2)}n(8310),n(61277),n(12981),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)(),(0,i.c)();const a=.99619469809,l=(0,i.c)(),c=(0,i.c)(),u=(0,i.c)(),h=(0,i.c)(),f=(0,i.c)();function p(t){return t}const g=[0,0,1,0];var d,m;(m=d||(d={}))[m.NONE=0]="NONE",m[m.CLAMP=1]="CLAMP",m[m.INFINITE_MIN=4]="INFINITE_MIN",m[m.INFINITE_MAX=8]="INFINITE_MAX",d.INFINITE_MIN,d.INFINITE_MAX,d.INFINITE_MAX},78341:(t,e,n)=>{n.d(e,{JI:()=>c,Ue:()=>s,re:()=>l}),n(67676);var r=n(22807),i=n(17896),o=n(65617);function s(t){return t?a((0,o.g)(t.origin),(0,o.g)(t.direction)):a((0,o.c)(),(0,o.c)())}function a(t,e){return{origin:t,direction:e}}function l(t,e){const n=u.get();return n.origin=t,n.direction=e,n}function c(t,e,n){const r=(0,i.j)(t.direction,(0,i.f)(n,e,t.origin));return(0,i.g)(n,t.origin,(0,i.i)(n,t.direction,r)),n}n(12981);const u=new r.x((()=>s()))},61277:(t,e,n)=>{n.d(e,{EU:()=>s});var r=n(22021),i=n(17896),o=n(65617);function s(t,e){const n=(0,i.j)(t,e)/((0,i.l)(t)*(0,i.l)(e));return-(0,r.ZF)(n)}(0,o.c)(),(0,o.c)()},12981:(t,e,n)=>{n.d(e,{MP:()=>g,WM:()=>p});var r=n(91303),i=n(41213),o=n(46521),s=n(13598),a=n(94961),l=n(97323),c=n(65617),u=n(88669);class h{constructor(t,e,n){this._itemByteSize=t,this._itemCreate=e,this._buffers=new Array,this._items=new Array,this._itemsPtr=0,this._itemsPerBuffer=Math.ceil(n/this._itemByteSize)}get(){0===this._itemsPtr&&(0,i.Y)((()=>this._reset()));const t=Math.floor(this._itemsPtr/this._itemsPerBuffer);for(;this._buffers.length<=t;){const t=new ArrayBuffer(this._itemsPerBuffer*this._itemByteSize);for(let e=0;e<this._itemsPerBuffer;++e)this._items.push(this._itemCreate(t,e*this._itemByteSize));this._buffers.push(t)}return this._items[this._itemsPtr++]}_reset(){const t=2*(Math.floor(this._itemsPtr/this._itemsPerBuffer)+1);for(;this._buffers.length>t;)this._buffers.pop(),this._items.length=this._buffers.length*this._itemsPerBuffer;this._itemsPtr=0}static createVec2f64(t=f){return new h(16,l.c,t)}static createVec3f64(t=f){return new h(24,c.a,t)}static createVec4f64(t=f){return new h(32,u.a,t)}static createMat3f64(t=f){return new h(72,o.c,t)}static createMat4f64(t=f){return new h(128,s.c,t)}static createQuatf64(t=f){return new h(32,a.c,t)}get test(){return{size:this._buffers.length*this._itemsPerBuffer*this._itemByteSize}}}const f=4*r.Y.KILOBYTES,p=(h.createVec2f64(),h.createVec3f64()),g=(h.createVec4f64(),h.createMat3f64(),h.createMat4f64());h.createQuatf64()},25158:(t,e,n)=>{n.r(e),n.d(e,{assetMapFromAssetMapsJSON:()=>le,extractMesh:()=>oe,meshFeatureSetFromJSON:()=>ie});var r=n(38171),i=n(92604),o=n(30175),s=n(65617),a=n(6570),l=n(43697),c=n(20102),u=n(83379),h=n(609),f=n(95330),p=n(17445),g=n(5600),d=(n(75215),n(67676),n(80442),n(52011)),m=n(9361),y=n(94139),x=n(38913),v=n(3709),w=n(62540);class b extends c.Z{constructor(){super("mesh-not-loaded","Mesh must be loaded before applying operations")}}class A extends c.Z{constructor(){super("component-not-found","Provided component is not part of the list of components")}}class T extends c.Z{constructor(){super("invalid-polygon","expected polygon to be a Polygon instance")}}class _ extends c.Z{constructor(){super("invalid-input:location","Expected location to be a Point instance")}}class M extends c.Z{constructor(){super("invalid-input:no-layer","A layer is needed to convert the files")}}class S extends c.Z{constructor(){super("invalid-input:no-model","No supported model found")}}class O extends c.Z{constructor(){super("invalid-input:multiple-models","Multiple supported models found")}}var I=n(85872),E=n(50567),C=n(84555),R=n(2674),N=n(71630),Z=n(95401),L=n(62155),P=n(86662),F=n(83025),U=n(24882),D=n(47545),j=(n(66577),n(22021)),B=n(67900),z=n(17896),k=n(62073);n(4726),n(22631),n(35065);const V=(0,k.Ue)();function G(t,e,n,r,i,o,s){i*=3;for(let a=0;a<o;++a){const o=t[e];r[i++]=o[0],r[i++]=o[1],r[i++]=s?o[2]:0,e+=n}return i/3}function W(t,e,n){if(e){const e=function(t,e,n){const r=function(t,e,n,r){const i=(t=>!Array.isArray(t[0]))(e)?(t,n)=>e[3*t+n]:(t,n)=>e[t][n],o=r?(0,B.c9)(r)/(0,B._R)(r):1;return(0,k.zu)(t,((t,e)=>(0,z.s)(t,i(e,0)*o,i(e,1)*o,i(e,2))),n)}(V,t,e,n)?(0,k.mJ)(V):[0,0,1];return Math.abs(r[2])>Math.cos((0,j.Vl)(80))?L.R.Z:Math.abs(r[1])>Math.abs(r[0])?L.R.Y:L.R.X}(t,t.length-1,n);if(e===L.R.X)return!(0,P.bu)(t,L.R.Y,L.R.Z);if(e===L.R.Y)return!(0,P.bu)(t,L.R.X,L.R.Z)}return!(0,P.bu)(t,L.R.X,L.R.Y)}var H,Y;(Y=H||(H={}))[Y.NONE=0]="NONE",Y[Y.CCW_IS_HOLE=1]="CCW_IS_HOLE";var $=n(66459);let q=null;function J(t,e){let n=1/0,r=1/0,i=1/0,o=-1/0,s=-1/0,l=-1/0;const c=t.length;let u=0;for(;u<c;){const e=t[u++],a=t[u++],c=t[u++];n=Math.min(n,e),r=Math.min(r,a),i=Math.min(i,c),o=Math.max(o,e),s=Math.max(s,a),l=Math.max(l,c)}return new a.Z({xmin:n,ymin:r,zmin:i,xmax:o,ymax:s,zmax:l,spatialReference:e})}var X=n(87360);function K(t,e,n,r=0){Q[0]=t.x,Q[1]=t.y;const i=t.z;return Q[2]=void 0!==i?i:r,(0,X.projectBuffer)(Q,t.spatialReference,0,e,n,0,1)}const Q=(0,s.c)();var tt=n(13442);const et="esri.geometry.support.meshUtils.centerAt";const nt=(0,s.c)(),rt=(0,s.c)(),it=(0,s.c)();n(99880),n(3172);var ot=n(17452);function st(t){const e=(0,ot.Yd)(t.url);return n=>{const r=(0,ot.PF)(n,e,e),i=r?r.replace(/^ *\.\//,""):null;return(i?t.files.get(i):null)??n}}function at(t){return ht.fromBlob(t)}n(47026);const lt=/^(model\/gltf\+json)|(model\/gltf-binary)$/,ct=/\.(gltf|glb)/i;function ut(t){const e=new Map;let n=null;for(const{name:r,mimeType:i,source:o}of t)(null==n||lt.test(i)||ct.test(r))&&(n=o.url),e.set(r,o.url),o.files.forEach(((t,n)=>e.set(n,t)));if(null==n)throw new c.Z("mesh-load-external:missing-files","Missing files to load external mesh source");return new ht(n,(()=>t.forEach((({source:t})=>t.dispose()))),e)}class ht{constructor(t,e=(()=>{}),n=new Map){this.url=t,this.dispose=e,this.files=n}static fromBlob(t){const e=URL.createObjectURL(t);return new ht(e,(()=>URL.revokeObjectURL(e)))}}var ft=n(2368),pt=n(46791),gt=n(84470);let dt=class extends ft.j{constructor(){super(),this.externalSources=new pt.Z,this._explicitDisplaySource=null,this.addHandles((0,p.on)((()=>this.externalSources),"after-remove",(({item:t})=>{t===this._explicitDisplaySource&&(this._explicitDisplaySource=null)}),{sync:!0,onListenerRemove:()=>this._explicitDisplaySource=null}))}get displaySource(){return this._explicitDisplaySource??this._implicitDisplaySource}set displaySource(t){if(null!=t&&!(0,gt.NZ)(t))throw new Error("Cannot use this source for display: it is not in a supported format.");this._explicitDisplaySource=t,t&&this.externalSources.every((e=>!(0,gt.fV)(e,t)))&&this.externalSources.add(t)}clearSources(){this.externalSources.removeAll()}getExternalSourcesOnService(t){return this.externalSources.items.filter((e=>(0,gt.JG)(e,t)))}get _implicitDisplaySource(){return this.externalSources.find(gt.NZ)}};(0,l._)([(0,g.Cb)()],dt.prototype,"externalSources",void 0),(0,l._)([(0,g.Cb)()],dt.prototype,"displaySource",null),(0,l._)([(0,g.Cb)()],dt.prototype,"_implicitDisplaySource",null),(0,l._)([(0,g.Cb)()],dt.prototype,"_explicitDisplaySource",void 0),dt=(0,l._)([(0,d.j)("esri.geometry.support.meshUtils.Metadata")],dt);var mt=n(21787),yt=n(46521),xt=n(13598),vt=n(58995),wt=n(83932),bt=n(56493);function At(t,e){if(t)for(let n=0;n<t.length;n+=3)for(let r=0;r<3;r++)t[n+r]+=e[r]}const Tt=(0,s.c)(),_t=(0,xt.a)(),Mt=(0,yt.a)(),St={position:[-.5,-.5,0,.5,-.5,0,.5,.5,0,-.5,.5,0],normal:[0,0,1,0,0,1,0,0,1,0,0,1],uv:[0,1,1,1,1,0,0,0],faces:[0,1,2,0,2,3],facingAxisOrderSwap:{east:[3,1,2],west:[-3,-1,2],north:[-1,3,2],south:[1,-3,2],up:[1,2,3],down:[1,-2,-3]}};function Ot(t,e,n){t.isPlane||function(t){for(let e=0;e<t.position.length;e+=3)t.position[e+2]+=.5}(t),function(t,e){if(null==e)return;const n="number"==typeof e?[e,e,e]:[null!=e.width?e.width:1,null!=e.depth?e.depth:1,null!=e.height?e.height:1];Rt[0]=n[0],Rt[4]=n[1],Rt[8]=n[2];for(let e=0;e<t.position.length;e+=3){for(let n=0;n<3;n++)Ct[n]=t.position[e+n];(0,z.t)(Ct,Ct,Rt);for(let n=0;n<3;n++)t.position[e+n]=Ct[n]}if(n[0]!==n[1]||n[1]!==n[2]){Rt[0]=1/n[0],Rt[4]=1/n[1],Rt[8]=1/n[2];for(let e=0;e<t.normal.length;e+=3){for(let n=0;n<3;n++)Ct[n]=t.normal[e+n];(0,z.t)(Ct,Ct,Rt),(0,z.n)(Ct,Ct);for(let n=0;n<3;n++)t.normal[e+n]=Ct[n]}}}(t,n?.size);const{vertexAttributes:r,vertexSpace:i,transform:o}=(0,$.w1)(t,e,n);return{vertexAttributes:new N.Q({...r,uv:t.uv}),vertexSpace:i,transform:o,components:[new w.Z({faces:t.faces,material:n&&n.material||null})],spatialReference:e.spatialReference}}const It={faceDescriptions:[{axis:[0,-1,0],uvOrigin:[0,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[1,0,0],uvOrigin:[.25,.625],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,1,0],uvOrigin:[.5,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[-1,0,0],uvOrigin:[.75,.625],corners:[[1,-1],[-1,-1],[-1,1],[1,1]]},{axis:[0,0,1],uvOrigin:[0,.375],corners:[[-1,-1],[1,-1],[1,1],[-1,1]]},{axis:[0,0,-1],uvOrigin:[0,.875],corners:[[-1,1],[1,1],[1,-1],[-1,-1]]}],uvScales:[[0,0],[1,0],[1,1],[0,1]],faceVertexOffsets:[0,1,2,0,2,3]},Et={south:0,east:1,north:2,west:3,up:4,down:5},Ct=(0,s.c)(),Rt=(0,yt.a)();var Nt=n(52138);const Zt="esri.geometry.support.meshUtils.rotate";function Lt(t,e,n,r=s.Z){if(null!=t){(0,Nt.c)(Dt,(0,v.WH)(e),(0,v.ZZ)(e));for(let e=0;e<t.length;e+=n){for(let n=0;n<3;n++)Pt[n]=t[e+n]-r[n];(0,z.e)(Pt,Pt,Dt);for(let n=0;n<3;n++)t[e+n]=Pt[n]+r[n]}}}const Pt=(0,s.c)(),Ft=(0,s.c)(),Ut=(0,v.Ue)(),Dt=(0,xt.a)(),jt=(0,yt.a)(),Bt=(0,s.c)(),zt="esri.geometry.support.meshUtils.scale";function kt(t,e,n=s.Z){if(t)for(let r=0;r<t.length;r+=3){for(let e=0;e<3;e++)Vt[e]=t[r+e]-n[e];(0,z.i)(Vt,Vt,e);for(let e=0;e<3;e++)t[r+e]=Vt[e]+n[e]}}const Vt=(0,s.c)(),Gt=(0,s.c)(),Wt=(0,s.c)();var Ht,Yt=n(2981);async function $t(t){const{BlobReader:e,ZipReader:r,BlobWriter:i}=await Promise.all([n.e(2712),n.e(4041)]).then(n.bind(n,74041)),o=[],s=new r(new e(t));return(await s.getEntries()).forEach((t=>{if(t.directory||/^__MACOS/i.test(t.filename))return;const e=new i,n=t.getData?.(e).then((e=>new File([e],t.filename)));n&&o.push(n)})),Promise.all(o)}const qt="esri.geometry.Mesh",Jt={base:null,key:"type",defaultKeyValue:"georeferenced",typeMap:{georeferenced:E.Z,"georeferenced-relative":I.Z,local:C.Z}};let Xt=Ht=class extends(u.Z.LoadableMixin((0,h.v)(m.Z))){constructor(t){super(t),this.components=null,this.vertexSpace=new E.Z,this.transform=null,this.metadata=new dt,this.hasZ=!0,this.hasM=!1,this.vertexAttributes=new N.Q,this.type="mesh"}initialize(){(0===this.metadata.externalSources.length||this.vertexAttributes.position.length)&&(this.loadStatus="loaded"),this.when((()=>{this.addHandles((0,p.YP)((()=>({vertexAttributes:this.vertexAttributes,components:this.components?.map((t=>t.clone()))})),(()=>this._clearSources()),{once:!0,sync:!0}))}))}get hasExtent(){return this.loaded?this.vertexAttributes.position.length>0&&(!this.components||this.components.length>0):null!=this.metadata.displaySource?.extent}get _transformedExtent(){const{components:t,spatialReference:e,vertexAttributes:n,vertexSpace:r}=this,i=n.position;if(0===i.length||t&&0===t.length)return new a.Z({xmin:0,ymin:0,zmin:0,xmax:0,ymax:0,zmax:0,spatialReference:e});if("local"===r.type){const{_untransformedExtent:t,transform:n}=this;return function({xmin:t,xmax:e,ymin:n,ymax:r,zmin:i,zmax:o},s,a,l){i??=0,o??=0,q??=new Float64Array(24);const c=q;return c[0]=t,c[1]=n,c[2]=i,c[3]=t,c[4]=r,c[5]=i,c[6]=e,c[7]=r,c[8]=i,c[9]=e,c[10]=n,c[11]=i,c[12]=t,c[13]=n,c[14]=o,c[15]=t,c[16]=r,c[17]=o,c[18]=e,c[19]=r,c[20]=o,c[21]=e,c[22]=n,c[23]=o,(0,$.project)({positions:c,transform:s,vertexSpace:a,inSpatialReference:l,outSpatialReference:l,outPositions:c}),J(c,l)}(t,n,r,e)}if("georeferenced-relative"===r.type){const{transform:t}=this;return J((0,$.project)({positions:i,transform:t,vertexSpace:r,inSpatialReference:e,outSpatialReference:e}),e)}return J(i,e)}get _untransformedExtent(){return J(this.vertexAttributes.position,this.spatialReference)}get anchor(){const{vertexSpace:t}=this;if(t.isRelative)return t.getOriginPoint(this.spatialReference);const{center:e,zmin:n}=this._transformedExtent;return new y.Z({x:e.x,y:e.y,z:n,spatialReference:this.spatialReference})}get origin(){const{vertexSpace:t}=this;return t.isRelative?t.getOriginPoint(this.spatialReference):this._transformedExtent.center}get extent(){return this.loaded||null==this.metadata?.displaySource?.extent?this._transformedExtent:this.metadata.displaySource.extent.clone()}addComponent(t){if(!this.loaded)return i.Z.getLogger(this).error("addComponent()",(new b).message);this.components||(this.components=[]),this.components.push(w.Z.from(t)),this.notifyChange("components")}removeComponent(t){if(!this.loaded)return i.Z.getLogger(this).error("removeComponent()",(new b).message);if(this.components){const e=this.components.indexOf(t);if(-1!==e)return this.components.splice(e,1),void this.notifyChange("components")}i.Z.getLogger(this).error("removeComponent()",(new A).message)}rotate(t,e,n,r){return(0,v.qw)(t,e,n,Qt),function(t,e,n){if(!t.vertexAttributes||!t.vertexAttributes.position||0===e[3])return;const{spatialReference:r,vertexSpace:o}=t;if(o.isRelative){(0,tt.A)(o,Zt,n);const r=n?.origin??t.origin;t.transform??=new R.Z,function(t,e,n,r){const i=e.origin,o=(0,z.s)(Pt,r.x,r.y,r.z??0),a=(0,z.f)(Pt,o,i);t.applyLocalInverse(a,Ft),t.rotation=(0,v.qC)(t.rotation,n,(0,v.Ue)()),t.applyLocalInverse(a,a),(0,z.f)(a,a,Ft),t.translation=(0,z.g)((0,s.c)(),t.translation,a)}(t.transform,o,e,r)}else{const o=n?.origin??t.origin;(0,tt.h)(r,n)?function(t,e,n){const r=t.spatialReference,i=(0,vt.rS)(r),o=Bt;K(n,o,i)||K(t.origin,o,i);const s=t.vertexAttributes.position,a=t.vertexAttributes.normal,l=t.vertexAttributes.tangent,c=new Float64Array(s.length),u=null!=a?new Float32Array(a.length):null,h=null!=l?new Float32Array(l.length):null;(0,wt.B)(i,o,Dt,i),(0,mt.f)(jt,Dt);const f=Ut;(0,z.t)((0,v.ZZ)(Ut),(0,v.ZZ)(e),jt),f[3]=e[3],(0,bt.XO)(s,r,c),null!=a&&null!=u&&(0,bt.Iz)(a,s,c,r,u),null!=l&&null!=h&&(0,bt.wi)(l,s,c,r,h),Lt(c,f,3,o),(0,bt.To)(c,s,r),null!=a&&null!=u&&(Lt(u,f,3),(0,bt.Yk)(u,s,c,r,a)),null!=l&&null!=h&&(Lt(h,f,4),(0,bt.M2)(h,s,c,r,l)),t.vertexAttributesChanged()}(t,e,o):function(t,e,n){const r=Bt;if(!K(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,i.Z.getLogger(Zt).error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}Lt(t.vertexAttributes.position,e,3,r),Lt(t.vertexAttributes.normal,e,3),Lt(t.vertexAttributes.tangent,e,4),t.vertexAttributesChanged()}(t,e,o)}}(this,Qt,r),this}offset(t,e,n,r){return this.loaded?(Kt[0]=t,Kt[1]=e,Kt[2]=n,function(t,e,n){if(!t.vertexAttributes||!t.vertexAttributes.position)return;const{vertexSpace:r}=t;r.isRelative?((0,tt.A)(r,"esri.geometry.support.meshUtils.offset",n),function(t,e){const n=t.origin;t.origin=(0,z.g)((0,s.c)(),n,e)}(r,e)):(0,tt.h)(t.spatialReference,n)?function(t,e){const n=t.spatialReference,r=t.vertexAttributes.position,i=t.vertexAttributes.normal,o=t.vertexAttributes.tangent,s=new Float64Array(r.length),a=null!=i?new Float32Array(i.length):null,l=null!=o?new Float32Array(o.length):null,c=t.extent.center,u=Tt;(0,wt.B)(n,[c.x,c.y,c.z],_t,(0,vt.rS)(n)),(0,mt.f)(Mt,_t),(0,z.t)(u,e,Mt),(0,bt.XO)(r,n,s),null!=i&&null!=a&&(0,bt.Iz)(i,r,s,n,a),null!=o&&null!=l&&(0,bt.wi)(o,r,s,n,l),At(s,u),(0,bt.To)(s,r,n),null!=i&&null!=a&&(0,bt.Yk)(a,r,s,n,i),null!=o&&null!=l&&(0,bt.M2)(l,r,s,n,o),t.vertexAttributesChanged()}(t,e):function(t,e){At(t.vertexAttributes.position,e),t.vertexAttributesChanged()}(t,e)}(this,Kt,r),this):(i.Z.getLogger(this).error("offset()",(new b).message),this)}scale(t,e){return this.loaded?(function(t,e,n){if(!t.vertexAttributes||!t.vertexAttributes.position)return;const{spatialReference:r,vertexSpace:o}=t;if(o.isRelative){(0,tt.A)(o,zt,n);const r=n?.origin??t.origin;t.transform??=new R.Z,function(t,e,n,r){const i=e.origin,o=(0,z.s)(Vt,r.x,r.y,r.z),a=(0,z.f)(Vt,o,i);t.applyLocalInverse(a,Gt);const l=(0,z.i)((0,s.c)(),t.scale,n);t.scale=l,t.applyLocalInverse(a,a),(0,z.f)(a,a,Gt),t.translation=(0,z.g)((0,s.c)(),t.translation,a)}(t.transform,o,e,r)}else{const o=(0,tt.h)(r,n),s=n?.origin??t.origin;o?function(t,e,n){const r=t.spatialReference,i=(0,vt.rS)(r),o=Wt;K(n,o,i)||K(t.origin,o,i);const s=t.vertexAttributes.position,a=t.vertexAttributes.normal,l=t.vertexAttributes.tangent,c=new Float64Array(s.length),u=null!=a?new Float32Array(a.length):null,h=null!=l?new Float32Array(l.length):null;(0,bt.XO)(s,r,c),null!=a&&null!=u&&(0,bt.Iz)(a,s,c,r,u),null!=l&&null!=h&&(0,bt.wi)(l,s,c,r,h),kt(c,e,o),(0,bt.To)(c,s,r),null!=a&&null!=u&&(0,bt.Yk)(u,s,c,r,a),null!=l&&null!=h&&(0,bt.M2)(h,s,c,r,l),t.vertexAttributesChanged()}(t,e,s):function(t,e,n){const r=Wt;if(!K(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,i.Z.getLogger(zt).error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}kt(t.vertexAttributes.position,e,r),t.vertexAttributesChanged()}(t,e,s)}}(this,t,e),this):(i.Z.getLogger(this).error("scale()",(new b).message),this)}centerAt(t,e){return this.loaded?(function(t,e,n){if(!t.vertexAttributes||!t.vertexAttributes.position)return;const{vertexSpace:r}=t,o=n?.origin??t.origin;r.isRelative?((0,tt.A)(r,et,n),function(t,e,n){const{vertexSpace:r}=t;if(!r.isRelative)return;const o=rt,a=nt;if(!K(e,a,t.spatialReference))return void i.Z.getLogger(et).error(`Failed to project centerAt location (wkid:${e.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}). Projection may be possible after calling projection.load().`);if(!K(n,o,t.spatialReference)){const e=t.origin;o[0]=e.x,o[1]=e.y,o[2]=e.z,i.Z.getLogger(et).error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}const l=(0,z.f)(it,a,o),c=r.origin;r.origin=(0,z.g)((0,s.c)(),c,l)}(t,e,o)):(0,tt.h)(t.spatialReference,n)?function(t,e,n){const r=(0,$.FF)(t.vertexAttributes,n,{geographic:!0}),{position:i,normal:o,tangent:s}=(0,$.iv)(r,e,{geographic:!0});t.vertexAttributes.position=i,t.vertexAttributes.normal=o,t.vertexAttributes.tangent=s,t.vertexAttributesChanged()}(t,e,o):function(t,e,n){const r=rt,o=nt;if(K(e,o,t.spatialReference)){if(!K(n,r,t.spatialReference)){const e=t.origin;r[0]=e.x,r[1]=e.y,r[2]=e.z,i.Z.getLogger(et).error(`Failed to project specified origin (wkid:${n.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}(function(t,e,n){if(t)for(let r=0;r<t.length;r+=3)for(let i=0;i<3;i++)t[r+i]+=e[i]-n[i]})(t.vertexAttributes.position,o,r),t.vertexAttributesChanged()}else i.Z.getLogger(et).error(`Failed to project centerAt location (wkid:${e.spatialReference.wkid}) to mesh spatial reference (wkid:${t.spatialReference.wkid}). Projection may be possible after calling projection.load().`)}(t,e,o)}(this,t,e),this):(i.Z.getLogger(this).error("centerAt()",(new b).message),this)}load(t){const{metadata:{displaySource:e}}=this;return e&&this.addResolvingPromise(async function(t,e,r){const{source:i}=e,{loadGLTFMesh:o}=await(0,f.Hl)(Promise.all([n.e(8598),n.e(8079)]).then(n.bind(n,78079)),r),s=await async function(t,e){if(Array.isArray(t)){if(!t.length)throw new c.Z("mesh-load-external:missing-assets","There must be at least one file to load");return t[0]instanceof File?function(t){return ut(t.map((t=>({name:t.name,mimeType:t.type,source:at(t)}))))}(t):async function(t,e){const n=await(0,f.OT)(t.map((async t=>{const n=await async function(t,e){const{parts:n}=t;if(1===n.length)return new ht(n[0].partUrl);const r=await t.toBlob(e);return(0,f.k_)(e),ht.fromBlob(r)}(t);return(0,f.k_)(e),{name:t.assetName,mimeType:t.assetMimeType,source:n}})));if((0,f.Hc)(e))throw n.forEach((t=>t.source.dispose())),(0,f.zE)();return ut(n)}(t,e)}return at(t)}(i,r);(0,f.k_)(r);const a=o(new y.Z({x:0,y:0,z:0,spatialReference:t.spatialReference}),s.url,{resolveFile:st(s),requestFile:void 0,useTransform:!0,signal:r?.signal});a.then((()=>s.dispose()),(()=>s.dispose()));const{vertexAttributes:l,components:u}=await a;t.vertexAttributes=l,t.components=u}(this,e,t)),Promise.resolve(this)}addExternalSources(t){this.metadata.externalSources.addMany(t)}updateDisplaySource(t){this.metadata.displaySource=t}clone(){return this.cloneWithVertexSpace(this.vertexSpace.clone())}cloneWithVertexSpace(t){let e=null;if(this.components){const t=new Map,n=new Map;e=this.components.map((e=>e.cloneWithDeduplication(t,n)))}const n={components:e,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes.clone(),vertexSpace:t,transform:this.transform?.clone()??null,metadata:this.metadata.clone()};return new Ht(n)}cloneShallow(){return new Ht({components:this.components,spatialReference:this.spatialReference,vertexAttributes:this.vertexAttributes,vertexSpace:this.vertexSpace.clone(),transform:this.transform,metadata:this.metadata})}vertexAttributesChanged(){this.notifyChange("vertexAttributes")}async toBinaryGLTF(t){const e=n.e(7277).then(n.bind(n,7277)),r=this.load(),i=await Promise.all([e,r]),{toBinaryGLTF:o}=i[0];return o(this,t)}get memoryUsage(){let t=0;if(t+=this.vertexAttributes.memoryUsage,null!=this.components)for(const e of this.components)t+=e.memoryUsage;return t}_clearSources(){this.metadata.clearSources()}static createBox(t,e){if(!(t instanceof y.Z))return i.Z.getLogger(qt).error(".createBox()",(new _).message),null;const n=new Ht(Ot(function(){const{faceDescriptions:t,faceVertexOffsets:e,uvScales:n}=It,r=4*t.length,i=new Float64Array(3*r),o=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array(2*t.length*3);let l=0,c=0,u=0,h=0;for(let r=0;r<t.length;r++){const f=t[r],p=l/3;for(const t of e)a[h++]=p+t;const g=f.corners;for(let t=0;t<4;t++){const e=g[t];let r=0;s[u++]=.25*n[t][0]+f.uvOrigin[0],s[u++]=f.uvOrigin[1]-.25*n[t][1];for(let t=0;t<3;t++)0!==f.axis[t]?(i[l++]=.5*f.axis[t],o[c++]=f.axis[t]):(i[l++]=.5*e[r++],o[c++]=0)}}return{position:i,normal:o,uv:s,faces:a}}(),t,e));return e&&e.imageFace&&"all"!==e.imageFace?function(t,e){const n=t.components[0],r=n.faces,i=Et[e],o=6*i,s=new Array(6),a=new Array(r.length-6);let l=0,c=0;for(let t=0;t<r.length;t++)t>=o&&t<o+6?s[l++]=r[t]:a[c++]=r[t];if(null!=t.vertexAttributes.uv){const e=new Float32Array(t.vertexAttributes.uv),n=4*i*2,r=[0,1,1,1,1,0,0,0];for(let t=0;t<r.length;t++)e[n+t]=r[t];t.vertexAttributes.uv=e}return t.components=[new w.Z({faces:s,material:n.material}),new w.Z({faces:a})],t}(n,e.imageFace):n}static createSphere(t,e){return t instanceof y.Z?new Ht(Ot(function(t=0){const e=Math.round(8*2**t),n=2*e,r=(e-1)*(n+1)+2*n,i=new Float64Array(3*r),o=new Float32Array(3*r),s=new Float32Array(2*r),a=new Uint32Array((e-1)*n*2*3);let l=0,c=0,u=0,h=0;for(let t=0;t<=e;t++){const r=t/e*Math.PI+.5*Math.PI,f=Math.cos(r),p=Math.sin(r);Ct[2]=p;const g=0===t||t===e,d=g?n-1:n;for(let r=0;r<=d;r++){const p=r/d*2*Math.PI;Ct[0]=-Math.sin(p)*f,Ct[1]=Math.cos(p)*f;for(let t=0;t<3;t++)i[l]=.5*Ct[t],o[l]=Ct[t],++l;s[c++]=(r+(g?.5:0))/n,s[c++]=t/e,0!==t&&r!==n&&(t!==e&&(a[u++]=h,a[u++]=h+1,a[u++]=h-n),1!==t&&(a[u++]=h,a[u++]=h-n,a[u++]=h-n-1)),h++}}return{position:i,normal:o,uv:s,faces:a}}(e&&e.densificationFactor||0),t,e)):(i.Z.getLogger(qt).error(".createSphere()",(new _).message),null)}static createCylinder(t,e){return t instanceof y.Z?new Ht(Ot(function(t=0){const e=Math.round(16*2**t),n=4*(e+1)+2*e,r=new Float64Array(3*n),i=new Float32Array(3*n),o=new Float32Array(2*n),s=new Uint32Array(4*e*3);let a=0,l=0,c=0,u=0,h=0;for(let t=0;t<=5;t++){const n=0===t||5===t,f=t<=1||t>=4,p=2===t||4===t,g=n?e-1:e;for(let d=0;d<=g;d++){const m=d/g*2*Math.PI,y=n?0:.5;Ct[0]=y*Math.sin(m),Ct[1]=y*-Math.cos(m),Ct[2]=t<=2?.5:-.5;for(let e=0;e<3;e++)r[a++]=Ct[e],i[l++]=f?2===e?t<=1?1:-1:0:2===e?0:Ct[e]/y;o[c++]=(d+(n?.5:0))/e,o[c++]=t<=1?1*t/3:t<=3?1*(t-2)/3+1/3:1*(t-4)/3+2/3,p||0===t||d===e||(5!==t&&(s[u++]=h,s[u++]=h+1,s[u++]=h-e),1!==t&&(s[u++]=h,s[u++]=h-e,s[u++]=h-e-1)),h++}}return{position:r,normal:i,uv:o,faces:s}}(e&&e.densificationFactor||0),t,e)):(i.Z.getLogger(qt).error(".createCylinder()",(new _).message),null)}static createPlane(t,e){if(!(t instanceof y.Z))return i.Z.getLogger(qt).error(".createPlane()",(new _).message),null;const n=e?.facing??"up",r=function(t,e){const n="number"==typeof e?e:null!=e?e.width:1,r="number"==typeof e?e:null!=e?e.height:1;switch(t){case"up":case"down":return{width:n,depth:r};case"north":case"south":return{width:n,height:r};case"east":case"west":return{depth:n,height:r}}}(n,e?.size);return new Ht(Ot(function(t){const e=St.facingAxisOrderSwap[t],n=St.position,r=St.normal,i=new Float64Array(n.length),o=new Float32Array(r.length);let s=0;for(let t=0;t<4;t++){const t=s;for(let a=0;a<3;a++){const l=e[a],c=Math.abs(l)-1,u=l>=0?1:-1;i[s]=n[t+c]*u,o[s]=r[t+c]*u,s++}}return{position:i,normal:o,uv:new Float32Array(St.uv),faces:new Uint32Array(St.faces),isPlane:!0}}(n),t,{...e,size:r}))}static createFromPolygon(t,e){if(!(t instanceof x.Z))return i.Z.getLogger(qt).error(".createFromPolygon()",(new T).message),null;const n=function(t){const e=function(t,e,n,r){const i=t.length,o=new Array(i),s=new Array(i),a=new Array(i);let l=0,c=0,u=0,h=0;for(let e=0;e<i;++e)h+=t[e].length;const f=(0,F.bg)(3*h);let p=0;for(let h=i-1;h>=0;h--){const g=t[h],d=n===H.CCW_IS_HOLE&&W(g,e,r);if(d&&1!==i)o[l++]=g;else{let t=g.length;for(let e=0;e<l;++e)t+=o[e].length;const n={index:p,pathLengths:new Array(l+1),count:t,holeIndices:new Array(l)};n.pathLengths[0]=g.length,g.length>0&&(a[u++]={index:p,count:g.length}),p=d?G(g,g.length-1,-1,f,p,g.length,e):G(g,0,1,f,p,g.length,e);for(let t=0;t<l;++t){const r=o[t];n.holeIndices[t]=p,n.pathLengths[t+1]=r.length,r.length>0&&(a[u++]={index:p,count:r.length}),p=G(r,0,1,f,p,r.length,e)}l=0,n.count>0&&(s[c++]=n)}}for(let t=0;t<l;++t){const n=o[t];n.length>0&&(a[u++]={index:p,count:n.length}),p=G(n,0,1,f,p,n.length,e)}return s.length=c,a.length=u,{position:f,polygons:s,outlines:a}}(t.rings,t.hasZ,H.CCW_IS_HOLE,t.spatialReference),n=new Array;let r=0,i=0;for(const t of e.polygons){const o=t.count,s=t.index,a=(0,F.Rq)(e.position,3*s,3*o),l=t.holeIndices.map((t=>t-s)),c=(0,U.mi)((0,Z.e)(a,l,3));n.push({position:a,faces:c}),r+=a.length,i+=c.length}const o=function(t,e,n){if(1===t.length)return t[0];const r=(0,F.bg)(e),i=new Array(n);let o=0,s=0,a=0;for(const e of t){for(let t=0;t<e.position.length;t++)r[o++]=e.position[t];for(const t of e.faces)i[s++]=t+a;a=o/3}return{position:r,faces:(0,U.mi)(i)}}(n,r,i),s=Array.isArray(o.position)?(0,D.d)(o.position,3,{originalIndices:o.faces}):(0,D.d)(o.position.buffer,6,{originalIndices:o.faces});return o.position=(0,F.QZ)(new Float64Array(s.buffer)),o.faces=s.indices,o}(t);return new Ht({vertexAttributes:new N.Q({position:n.position}),components:[new w.Z({faces:n.faces,shading:"flat",material:e?.material??null})],spatialReference:t.spatialReference,vertexSpace:new E.Z})}static async createFromGLTF(t,e,r){if(!(t instanceof y.Z)){const t=new _;throw i.Z.getLogger(qt).error(".createfromGLTF()",t.message),t}const{loadGLTFMesh:o}=await(0,f.Hl)(Promise.all([n.e(8598),n.e(8079)]).then(n.bind(n,78079)),r);return new Ht(await o(t,e,r))}static async createFromFiles(t,e,n){const r=t=>i.Z.getLogger(qt).error(".createFromFiles()",t.message);if(!(t instanceof y.Z)){const t=new _;throw r(t),t}const o=n?.layer;if(!o){const t=new M;throw r(t),t}const s=await Ht.extractAndFilterFiles(e,o),a=s.reduce(((t,e)=>(0,Yt.$z)(o.infoFor3D,e)?t+1:t),0);if(0===a){const t=new S;throw r(t),t}if(a>1){const t=new O;throw r(t),t}const l=Ht.createWithExternalSource(t,s),[c]=await o.uploadAssets([l],n);return c}static async extractAndFilterFiles(t,e){const n=e?.infoFor3D;return n?(await async function(t){const e=[];for(const n of t)n.name.toLowerCase().endsWith(".zip")?e.push($t(n)):e.push(Promise.resolve(n));return(await Promise.all(e)).flat()}(t)).filter((t=>(0,Yt.F7)(n,t))):t}static createWithExternalSource(t,e,n){const r=n?.extent??null,{x:i,y:o,z:s,spatialReference:a}=t,l=n?.transform?.clone()??new R.Z,c=n?.vertexSpace??new C.Z({origin:[i,o,s??0]}),u={source:e,extent:r},h=new dt;return h.externalSources.push(u),new Ht({metadata:h,transform:l,vertexSpace:c,spatialReference:a})}static createIncomplete(t,e){const{x:n,y:r,z:i,spatialReference:o}=t,s=e?.transform?.clone()??new R.Z,a=e?.vertexSpace??new C.Z({origin:[n,r,i??0]}),l=new Ht({transform:s,vertexSpace:a,spatialReference:o});return l.addResolvingPromise(Promise.reject(new c.Z("mesh-incomplete","Mesh resources are not complete"))),l}};(0,l._)([(0,g.Cb)({type:[w.Z],json:{write:!0}})],Xt.prototype,"components",void 0),(0,l._)([(0,g.Cb)({nonNullable:!0,types:Jt,constructOnly:!0,json:{write:!0}})],Xt.prototype,"vertexSpace",void 0),(0,l._)([(0,g.Cb)({type:R.Z,json:{write:!0}})],Xt.prototype,"transform",void 0),(0,l._)([(0,g.Cb)({constructOnly:!0})],Xt.prototype,"metadata",void 0),(0,l._)([(0,g.Cb)()],Xt.prototype,"hasExtent",null),(0,l._)([(0,g.Cb)()],Xt.prototype,"_transformedExtent",null),(0,l._)([(0,g.Cb)()],Xt.prototype,"_untransformedExtent",null),(0,l._)([(0,g.Cb)()],Xt.prototype,"anchor",null),(0,l._)([(0,g.Cb)()],Xt.prototype,"origin",null),(0,l._)([(0,g.Cb)({readOnly:!0,json:{read:!1}})],Xt.prototype,"extent",null),(0,l._)([(0,g.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!0}})],Xt.prototype,"hasZ",void 0),(0,l._)([(0,g.Cb)({readOnly:!0,json:{read:!1,write:!0,default:!1}})],Xt.prototype,"hasM",void 0),(0,l._)([(0,g.Cb)({type:N.Q,nonNullable:!0,json:{write:!0}})],Xt.prototype,"vertexAttributes",void 0),Xt=Ht=(0,l._)([(0,d.j)(qt)],Xt);const Kt=(0,s.c)(),Qt=(0,v.Ue)(),te=Xt;var ee=n(82971),ne=n(74889);const re=()=>i.Z.getLogger("esri.rest.support.meshFeatureSet");function ie(t,e,n){const i=n.features;n.features=[],delete n.geometryType;const o=ne.Z.fromJSON(n);if(o.geometryType="mesh",!n.assetMaps)return o;const s=le(e,n.assetMaps),a=t.sourceSpatialReference??ee.Z.WGS84,l=n.globalIdFieldName,{outFields:c}=t,u=null!=c&&c.length>0?(h=c.includes("*")?null:new Set(c),({attributes:t})=>{if(!t)return{};if(!h)return t;for(const e in t)h.has(e)||delete t[e];return t}):()=>({});var h;for(const t of i){const n=oe(t,l,a,e,s);null!=n&&o.features.push(new r.Z({geometry:n,attributes:u(t)}))}return o}function oe(t,e,n,r,i){const o=t.attributes[e],l=i.get(o);if(null==l)return re().error("mesh-feature-set:asset-not-found","Service returned a feature which was not found in the asset map",t),null;if(!t.geometry)return re().error("mesh-feature-set:no-geometry","Service returned a feature without geometry",t),null;const{originPoint:c,originVector:u}=function({attributes:t},e,{transformFieldRoles:n}){const r=t[n.originX],i=t[n.originY],o=t[n.originZ];return{originPoint:new y.Z({x:r,y:i,z:o,spatialReference:e}),originVector:(0,s.f)(r,i,o)}}(t,n,r),h=a.Z.fromJSON(t.geometry);h.spatialReference=n;const f=function(t,{transformFieldRoles:e}){return new R.Z({translation:[t[e.translationX],-t[e.translationZ],t[e.translationY]],rotationAxis:[t[e.rotationX],-t[e.rotationZ],t[e.rotationY]],rotationAngle:t[e.rotationDeg],scale:[t[e.scaleX],t[e.scaleZ],t[e.scaleY]]})}(t.attributes,r),p=l.projectVertices?new I.Z({origin:u}):new C.Z({origin:u}),g=function(t){const e=Array.from(t.files.values()),n=new Array;for(const t of e){if(t.status!==se.COMPLETED)return null;const e=new Array;for(const n of t.parts){if(!n)return null;e.push(new gt.LL(n.url,n.hash))}n.push(new gt.CP(t.name,t.mimeType,e))}return n}(l);return g?te.createWithExternalSource(c,g,{extent:h,transform:f,vertexSpace:p}):te.createIncomplete(c,{extent:h,transform:f,vertexSpace:p})}var se,ae;function le(t,e){const n=new Map;for(const r of e){const e=r.parentGlobalId;if(null==e)continue;const i=r.assetName,s=r.assetType,a=r.assetHash,l=r.assetURL,c=r.conversionStatus,u=r.seqNo,h=(0,Yt.d1)(s,t.supportedFormats);if(!h){re().error("mesh-feature-set:unknown-format",`Service returned an asset of type ${s}, but it does not list it as a supported type`);continue}const f=(0,o.s1)(n,e,(()=>({projectVertices:ue(r.flags).projectVertices,files:new Map})));(0,o.s1)(f.files,i,(()=>({name:i,type:s,mimeType:h,status:ce(c),parts:[]}))).parts[u]={hash:a,url:l}}return n}function ce(t){switch(t){case"COMPLETED":case"SUBMITTED":return se.COMPLETED;case"INPROGRESS":return se.PENDING;default:return se.FAILED}}function ue(t){return{projectVertices:t.includes("PROJECT_VERTICES")}}(ae=se||(se={}))[ae.FAILED=0]="FAILED",ae[ae.PENDING=1]="PENDING",ae[ae.COMPLETED=2]="COMPLETED"},17662:(t,e,n)=>{n.d(e,{c:()=>i});var r=n(99001);class i{constructor(){this.id=(0,r.D)()}}},4726:(t,e,n)=>{var r;n.d(e,{U:()=>r}),function(t){t[t.Layer=0]="Layer",t[t.Object=1]="Object",t[t.Mesh=2]="Mesh",t[t.Line=3]="Line",t[t.Point=4]="Point",t[t.Material=5]="Material",t[t.Texture=6]="Texture",t[t.COUNT=7]="COUNT"}(r||(r={}))},22631:(t,e,n)=>{n.d(e,{Z:()=>I});var r=n(13598),i=n(17896),o=n(24882),s=n(1533);function a(t){if(t.length<s.c8)return Array.from(t);if((0,s.kJ)(t))return Float64Array.from(t);if(!("BYTES_PER_ELEMENT"in t))return Array.from(t);switch(t.BYTES_PER_ELEMENT){case 1:return Uint8Array.from(t);case 2:return(0,s.Uc)(t)?Uint16Array.from(t):Int16Array.from(t);case 4:return Float32Array.from(t);default:return Float64Array.from(t)}}var l=n(47026),c=n(44553),u=n(65617),h=n(11726);class f{constructor(t,e,n,r){this.primitiveIndices=t,this._numIndexPerPrimitive=e,this.indices=n,this.position=r,this._children=void 0,(0,h.hu)(t.length>=1),(0,h.hu)(n.length%this._numIndexPerPrimitive==0),(0,h.hu)(n.length>=t.length*this._numIndexPerPrimitive),(0,h.hu)(3===r.size||4===r.size);const{data:o,size:s}=r,a=t.length;let l=s*n[this._numIndexPerPrimitive*t[0]];p.clear(),p.push(l);const c=(0,u.f)(o[l],o[l+1],o[l+2]),f=(0,u.g)(c);for(let e=0;e<a;++e){const r=this._numIndexPerPrimitive*t[e];for(let t=0;t<this._numIndexPerPrimitive;++t){l=s*n[r+t],p.push(l);let e=o[l];c[0]=Math.min(e,c[0]),f[0]=Math.max(e,f[0]),e=o[l+1],c[1]=Math.min(e,c[1]),f[1]=Math.max(e,f[1]),e=o[l+2],c[2]=Math.min(e,c[2]),f[2]=Math.max(e,f[2])}}this.bbMin=c,this.bbMax=f;const g=(0,i.p)((0,u.c)(),this.bbMin,this.bbMax,.5);this.radius=.5*Math.max(Math.max(f[0]-c[0],f[1]-c[1]),f[2]-c[2]);let d=this.radius*this.radius;for(let t=0;t<p.length;++t){l=p.at(t);const e=o[l]-g[0],n=o[l+1]-g[1],r=o[l+2]-g[2],i=e*e+n*n+r*r;if(i<=d)continue;const s=Math.sqrt(i),a=.5*(s-this.radius);this.radius=this.radius+a,d=this.radius*this.radius;const c=a/s;g[0]+=e*c,g[1]+=n*c,g[2]+=r*c}this.center=g,p.clear()}getChildren(){if(this._children||(0,i.a)(this.bbMin,this.bbMax)<=1)return this._children;const t=(0,i.p)((0,u.c)(),this.bbMin,this.bbMax,.5),e=this.primitiveIndices.length,n=new Uint8Array(e),r=new Array(8);for(let t=0;t<8;++t)r[t]=0;const{data:o,size:s}=this.position;for(let i=0;i<e;++i){let e=0;const a=this._numIndexPerPrimitive*this.primitiveIndices[i];let l=s*this.indices[a],c=o[l],u=o[l+1],h=o[l+2];for(let t=1;t<this._numIndexPerPrimitive;++t){l=s*this.indices[a+t];const e=o[l],n=o[l+1],r=o[l+2];e<c&&(c=e),n<u&&(u=n),r<h&&(h=r)}c<t[0]&&(e|=1),u<t[1]&&(e|=2),h<t[2]&&(e|=4),n[i]=e,++r[e]}let a=0;for(let t=0;t<8;++t)r[t]>0&&++a;if(a<2)return;const l=new Array(8);for(let t=0;t<8;++t)l[t]=r[t]>0?new Uint32Array(r[t]):void 0;for(let t=0;t<8;++t)r[t]=0;for(let t=0;t<e;++t){const e=n[t];l[e][r[e]++]=this.primitiveIndices[t]}this._children=new Array;for(let t=0;t<8;++t)void 0!==l[t]&&this._children.push(new f(l[t],this._numIndexPerPrimitive,this.indices,this.position));return this._children}static prune(){p.prune()}}const p=new c.Z({deallocator:null});var g=n(17662),d=n(4726),m=n(22807),y=n(16996);function x(t,e,n){return(0,i.f)(v,e,t),(0,i.f)(w,n,t),(0,i.l)((0,i.b)(v,v,w))/2}n(12981),new m.x(y.Ue),new m.x((()=>{return t?{p0:(0,u.g)(t.p0),p1:(0,u.g)(t.p1),p2:(0,u.g)(t.p2)}:{p0:(0,u.c)(),p1:(0,u.c)(),p2:(0,u.c)()};var t}));const v=(0,u.c)(),w=(0,u.c)(),b=(0,u.c)(),A=(0,u.c)(),T=(0,u.c)(),_=(0,u.c)();var M=n(99001);class S{constructor(t){this.channel=t,this.id=(0,M.D)()}}var O=n(35065);n(9820),(0,u.c)(),new Float32Array(6);class I extends g.c{constructor(t,e,n=[],r=null,i=d.U.Mesh,s=null,a=-1){super(),this.material=t,this.mapPositions=r,this.type=i,this.objectAndLayerIdColor=s,this.edgeIndicesLength=a,this.visible=!0,this._vertexAttributes=new Map,this._indices=new Map,this._boundingInfo=null;for(const[t,n]of e)n&&this._vertexAttributes.set(t,{...n});if(null==n||0===n.length){const t=function(t){const e=t.values().next().value;return null==e?0:e.data.length/e.size}(this._vertexAttributes),e=(0,o.KF)(t);this.edgeIndicesLength=this.edgeIndicesLength<0?t:this.edgeIndicesLength;for(const t of this._vertexAttributes.keys())this._indices.set(t,e)}else for(const[t,e]of n)e&&(this._indices.set(t,(0,o.mi)(e)),t===O.T.POSITION&&(this.edgeIndicesLength=this.edgeIndicesLength<0?this._indices.get(t).length:this.edgeIndicesLength))}instantiate(t={}){const e=new I(t.material||this.material,[],void 0,this.mapPositions,this.type,this.objectAndLayerIdColor,this.edgeIndicesLength);return this._vertexAttributes.forEach(((t,n)=>{t.exclusive=!1,e._vertexAttributes.set(n,t)})),this._indices.forEach(((t,n)=>e._indices.set(n,t))),e._boundingInfo=this._boundingInfo,e.transformation=t.transformation||this.transformation,e}get vertexAttributes(){return this._vertexAttributes}getMutableAttribute(t){let e=this._vertexAttributes.get(t);return e&&!e.exclusive&&(e={...e,exclusive:!0,data:a(e.data)},this._vertexAttributes.set(t,e)),e}setAttributeData(t,e){const n=this._vertexAttributes.get(t);n&&this._vertexAttributes.set(t,{...n,exclusive:!0,data:e})}get indices(){return this._indices}get indexCount(){const t=this._indices.values().next().value;return t?t.length:0}get faceCount(){return this.indexCount/3}get boundingInfo(){return null==this._boundingInfo&&(this._boundingInfo=this._calculateBoundingInfo()),this._boundingInfo}computeAttachmentOrigin(t){return!!(this.type===d.U.Mesh?this._computeAttachmentOriginTriangles(t):this.type===d.U.Line?this._computeAttachmentOriginLines(t):this._computeAttachmentOriginPoints(t))&&(null!=this._transformation&&(0,i.e)(t,t,this._transformation),!0)}_computeAttachmentOriginTriangles(t){const e=this.indices.get(O.T.POSITION);return function(t,e,n){if(!t||!e)return!1;const{size:r,data:o}=t;(0,i.s)(n,0,0,0),(0,i.s)(_,0,0,0);let s=0,a=0;for(let t=0;t<e.length-2;t+=3){const l=e[t]*r,c=e[t+1]*r,u=e[t+2]*r;(0,i.s)(b,o[l],o[l+1],o[l+2]),(0,i.s)(A,o[c],o[c+1],o[c+2]),(0,i.s)(T,o[u],o[u+1],o[u+2]);const h=x(b,A,T);h?((0,i.g)(b,b,A),(0,i.g)(b,b,T),(0,i.i)(b,b,1/3*h),(0,i.g)(n,n,b),s+=h):((0,i.g)(_,_,b),(0,i.g)(_,_,A),(0,i.g)(_,_,T),a+=3)}return!(0===a&&0===s||(0!==s?((0,i.i)(n,n,1/s),0):0===a||((0,i.i)(n,_,1/a),0)))}(this.vertexAttributes.get(O.T.POSITION),e,t)}_computeAttachmentOriginLines(t){const e=this.vertexAttributes.get(O.T.POSITION),n=this.indices.get(O.T.POSITION);return function(t,e,n,r){if(!t)return!1;(0,i.s)(r,0,0,0),(0,i.s)(_,0,0,0);let o=0,s=0;const{size:a,data:l}=t,c=e?e.length-1:l.length/a-1,u=c+(n?2:0);for(let t=0;t<u;t+=2){const n=t<c?t:c,u=t<c?t+1:0,h=(e?e[n]:n)*a,f=(e?e[u]:u)*a;b[0]=l[h],b[1]=l[h+1],b[2]=l[h+2],A[0]=l[f],A[1]=l[f+1],A[2]=l[f+2],(0,i.i)(b,(0,i.g)(b,b,A),.5);const p=(0,i.q)(b,A);p>0?((0,i.g)(r,r,(0,i.i)(b,b,p)),o+=p):0===o&&((0,i.g)(_,_,b),s++)}return 0!==o?((0,i.i)(r,r,1/o),!0):0!==s&&((0,i.i)(r,_,1/s),!0)}(e,n,n&&function(t,e,n){return!(!("isClosed"in t)||!t.isClosed)&&(n?n.length>2:e.data.length>6)}(this.material.parameters,e,n),t)}_computeAttachmentOriginPoints(t){const e=this.indices.get(O.T.POSITION);return function(t,e,n){if(!t||!e)return!1;const{size:r,data:o}=t;(0,i.s)(n,0,0,0);let s=-1,a=0;for(let t=0;t<e.length;t++){const i=e[t]*r;s!==i&&(n[0]+=o[i],n[1]+=o[i+1],n[2]+=o[i+2],a++),s=i}return a>1&&(0,i.i)(n,n,1/a),a>0}(this.vertexAttributes.get(O.T.POSITION),e,t)}invalidateBoundingInfo(){this._boundingInfo=null}_calculateBoundingInfo(){const t=this.indices.get(O.T.POSITION),e=this.vertexAttributes.get(O.T.POSITION);if(!t||0===t.length||!e)return null;const n=this.type===d.U.Mesh?3:1;(0,h.hu)(t.length%n==0,"Indexing error: "+t.length+" not divisible by "+n);const r=(0,o.KF)(t.length/n);return new f(r,n,t,e)}get transformation(){return this._transformation??r.I}set transformation(t){this._transformation=t&&t!==r.I?(0,r.b)(t):null}addHighlight(){const t=new S(l.V_.Highlight);return this.highlights=function(t,e){return null==t&&(t=[]),t.push(e),t}(this.highlights,t),t}removeHighlight(t){this.highlights=function(t,e){if(null==t)return null;const n=t.filter((t=>t!==e));return 0===n.length?null:n}(this.highlights,t)}}},11726:(t,e,n)=>{n.d(e,{hu:()=>i,yK:()=>o}),n(97323),n(98766),(0,n(88669).c)();class r{constructor(t){this.message=t}toString(){return`AssertException: ${this.message}`}}function i(t,e){if(!t){e=e||"Assertion";const t=new Error(e).stack;throw new r(`${e} at ${t}`)}}function o(t,e,n,r){let i,o=(n[0]-t[0])/e[0],s=(r[0]-t[0])/e[0];o>s&&(i=o,o=s,s=i);let a=(n[1]-t[1])/e[1],l=(r[1]-t[1])/e[1];if(a>l&&(i=a,a=l,l=i),o>l||a>s)return!1;a>o&&(o=a),l<s&&(s=l);let c=(n[2]-t[2])/e[2],u=(r[2]-t[2])/e[2];return c>u&&(i=c,c=u,u=i),!(o>u||c>s||(u<s&&(s=u),s<0))}},35065:(t,e,n)=>{var r;n.d(e,{T:()=>r}),function(t){t.POSITION="position",t.NORMAL="normal",t.NORMALCOMPRESSED="normalCompressed",t.UV0="uv0",t.AUXPOS1="auxpos1",t.AUXPOS2="auxpos2",t.COLOR="color",t.SYMBOLCOLOR="symbolColor",t.SIZE="size",t.TANGENT="tangent",t.OFFSET="offset",t.SUBDIVISIONFACTOR="subdivisionFactor",t.COLORFEATUREATTRIBUTE="colorFeatureAttribute",t.SIZEFEATUREATTRIBUTE="sizeFeatureAttribute",t.OPACITYFEATUREATTRIBUTE="opacityFeatureAttribute",t.DISTANCETOSTART="distanceToStart",t.UVMAPSPACE="uvMapSpace",t.BOUNDINGRECT="boundingRect",t.UVREGION="uvRegion",t.PROFILERIGHT="profileRight",t.PROFILEUP="profileUp",t.PROFILEVERTEXANDNORMAL="profileVertexAndNormal",t.FEATUREVALUE="featureValue",t.INSTANCEMODELORIGINHI="instanceModelOriginHi",t.INSTANCEMODELORIGINLO="instanceModelOriginLo",t.INSTANCEMODEL="instanceModel",t.INSTANCEMODELNORMAL="instanceModelNormal",t.INSTANCECOLOR="instanceColor",t.INSTANCEFEATUREATTRIBUTE="instanceFeatureAttribute",t.LOCALTRANSFORM="localTransform",t.GLOBALTRANSFORM="globalTransform",t.BOUNDINGSPHERE="boundingSphere",t.MODELORIGIN="modelOrigin",t.MODELSCALEFACTORS="modelScaleFactors",t.FEATUREATTRIBUTE="featureAttribute",t.STATE="state",t.LODLEVEL="lodLevel",t.POSITION0="position0",t.POSITION1="position1",t.NORMALA="normalA",t.NORMALB="normalB",t.COMPONENTINDEX="componentIndex",t.VARIANTOFFSET="variantOffset",t.VARIANTSTROKE="variantStroke",t.VARIANTEXTENSION="variantExtension",t.U8PADDING="u8padding",t.U16PADDING="u16padding",t.SIDENESS="sideness",t.START="start",t.END="end",t.UP="up",t.EXTRUDE="extrude",t.OBJECTANDLAYERIDCOLOR="objectAndLayerIdColor",t.INSTANCEOBJECTANDLAYERIDCOLOR="instanceObjectAndLayerIdColor"}(r||(r={}))},47026:(t,e,n)=>{var r,i,o,s,a,l,c,u,h;n.d(e,{Gv:()=>i,Iq:()=>u,JJ:()=>c,Rw:()=>s,Ti:()=>h,V_:()=>l,Vr:()=>r,hU:()=>a}),function(t){t[t.None=0]="None",t[t.Front=1]="Front",t[t.Back=2]="Back",t[t.COUNT=3]="COUNT"}(r||(r={})),function(t){t[t.Less=0]="Less",t[t.Lequal=1]="Lequal",t[t.COUNT=2]="COUNT"}(i||(i={})),function(t){t[t.BACKGROUND=0]="BACKGROUND",t[t.UPDATE=1]="UPDATE"}(o||(o={})),function(t){t[t.NOT_LOADED=0]="NOT_LOADED",t[t.LOADING=1]="LOADING",t[t.LOADED=2]="LOADED"}(s||(s={})),function(t){t[t.IntegratedMeshMaskExcluded=1]="IntegratedMeshMaskExcluded",t[t.OutlineVisualElementMask=2]="OutlineVisualElementMask"}(a||(a={})),function(t){t[t.Highlight=0]="Highlight",t[t.MaskOccludee=1]="MaskOccludee",t[t.COUNT=2]="COUNT"}(l||(l={})),function(t){t[t.Blend=0]="Blend",t[t.Opaque=1]="Opaque",t[t.Mask=2]="Mask",t[t.MaskBlend=3]="MaskBlend",t[t.COUNT=4]="COUNT"}(c||(c={})),function(t){t[t.OFF=0]="OFF",t[t.ON=1]="ON"}(u||(u={})),function(t){t.DDS_ENCODING="image/vnd-ms.dds",t.KTX2_ENCODING="image/ktx2",t.BASIS_ENCODING="image/x.basis"}(h||(h={}))},9820:(t,e,n)=>{function r(t,e){const n=t.length;for(let r=0;r<n;++r)o[0]=t[r],e[r]=o[0];return e}function i(t,e){const n=t.length;for(let r=0;r<n;++r)o[0]=t[r],o[1]=t[r]-o[0],e[r]=o[1];return e}n.d(e,{GB:()=>i,U8:()=>r});const o=new Float32Array(2)}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[8079],{79583:(_,E,T)=>{function R(_){switch(_){case"u8":case"i8":return 1;case"u16":case"i16":return 2;case"u32":case"i32":case"f32":return 4;case"f64":return 8}}T.d(E,{n1:()=>R})},78079:(_,E,T)=>{T.r(E),T.d(E,{loadGLTFMesh:()=>d});var R=T(22303),A=T(3172),e=T(30175),N=T(22021),t=T(21787),n=T(46521),S=T(65617),C=T(88669),I=T(62540),O=T(60746),r=T(85965),o=T(80218),L=T(71630),M=T(56481),u=T(20773),D=T(11077),P=T(79583);Object.freeze(Object.defineProperty({__proto__:null,copy:function(_,E,T){const R=_.typedBuffer,A=_.typedBufferStride,e=E.typedBuffer,N=E.typedBufferStride,t=T?T.count:E.count;let n=(T&&T.dstIndex?T.dstIndex:0)*A,S=(T&&T.srcIndex?T.srcIndex:0)*N;for(let _=0;_<t;++_){for(let _=0;_<9;++_)R[n+_]=e[S+_];n+=A,S+=N}}},Symbol.toStringTag,{value:"Module"})),Object.freeze(Object.defineProperty({__proto__:null,copy:function(_,E,T){const R=_.typedBuffer,A=_.typedBufferStride,e=E.typedBuffer,N=E.typedBufferStride,t=T?T.count:E.count;let n=(T&&T.dstIndex?T.dstIndex:0)*A,S=(T&&T.srcIndex?T.srcIndex:0)*N;for(let _=0;_<t;++_){for(let _=0;_<16;++_)R[n+_]=e[S+_];n+=A,S+=N}}},Symbol.toStringTag,{value:"Module"})),T(93860);var G=T(10816),c=T(56067),s=T(75488);function U(_,E){return new _(new ArrayBuffer(E*_.ElementCount*(0,P.n1)(_.ElementType)))}var B=T(66459),l=T(40270),i=T(91695),a=T(91911),f=T(15317),F=T(57758),H=T(35371);async function d(_,E,T){const e={...T,useTransform:T?.useTransform??!0},t=new l.C(function(_){const E=_?.resolveFile,T=_?.requestFile;return E||T?{busy:!1,request:async(_,R,e)=>{const N=E?.(_)??_;if(T){const _=await T(N,R,e?.signal);if(void 0!==_)return _}const t="image"===R?"image":"binary"===R?"array-buffer":"json";return(await(0,A.Z)(N,{responseType:t,signal:null!=e?e.signal:null})).data}}:null}(e)),n=(await(0,i.Q)(t,E,e,!0)).model,I=n.lods.shift(),M=new Map,u=new Map;n.textures.forEach(((_,E)=>M.set(E,function(_){return new r.Z({data:((0,f.$A)(_.data),_.data),wrap:X(_.parameters.wrap)})}(_)))),n.materials.forEach(((_,E)=>u.set(E,function(_,E){const T=new R.Z(function(_,E){return(0,C.f)(b(_[0]),b(_[1]),b(_[2]),E)}(_.color,_.opacity)),A=_.emissiveFactor?new R.Z(function(_){return(0,S.f)(b(_[0]),b(_[1]),b(_[2]))}(_.emissiveFactor)):null,e=_=>_?new o.Z({scale:_.scale?[_.scale[0],_.scale[1]]:[1,1],rotation:(0,N.BV)(_.rotation??0),offset:_.offset?[_.offset[0],_.offset[1]]:[0,0]}):null;return new O.Z({color:T,colorTexture:E.get(_.textureColor),normalTexture:E.get(_.textureNormal),emissiveColor:A,emissiveTexture:E.get(_.textureEmissive),occlusionTexture:E.get(_.textureOcclusion),alphaMode:Y(_.alphaMode),alphaCutoff:_.alphaCutoff,doubleSided:_.doubleSided,metallic:_.metallicFactor,roughness:_.roughnessFactor,metallicRoughnessTexture:E.get(_.textureMetallicRoughness),colorTextureTransform:e(_.colorTextureTransform),normalTextureTransform:e(_.normalTextureTransform),occlusionTextureTransform:e(_.occlusionTextureTransform),emissiveTextureTransform:e(_.emissiveTextureTransform),metallicRoughnessTextureTransform:e(_.metallicRoughnessTextureTransform)})}(_,M))));const D=x(I);for(const _ of D.parts)V(D,_,u);const{position:P,normal:G,tangent:c,color:s,texCoord0:U}=D.vertexAttributes,a={position:P.typedBuffer,normal:null!=G?G.typedBuffer:null,tangent:null!=c?c.typedBuffer:null,uv:null!=U?U.typedBuffer:null,color:null!=s?s.typedBuffer:null},F=(0,B.w1)(a,_,e);return{transform:F.transform,vertexSpace:F.vertexSpace,components:D.components,spatialReference:_.spatialReference,vertexAttributes:new L.Q({position:F.vertexAttributes.position,normal:F.vertexAttributes.normal,tangent:F.vertexAttributes.tangent,color:a.color,uv:a.uv})}}function m(_,E){if(null==_)return"-";const T=_.typedBuffer;return`${(0,e.s1)(E,T.buffer,(()=>E.size))}/${T.byteOffset}/${T.byteLength}`}function p(_){return null!=_?_.toString():"-"}function x(_){let E=0;const T={color:!1,tangent:!1,normal:!1,texCoord0:!1},R=new Map,A=new Map,N=[];for(const t of _.parts){const{attributes:{position:_,normal:n,color:S,tangent:C,texCoord0:I}}=t,O=`\n ${m(_,R)}/\n ${m(n,R)}/\n ${m(S,R)}/\n ${m(C,R)}/\n ${m(I,R)}/\n ${p(t.transform)}\n `;let r=!1;const o=(0,e.s1)(A,O,(()=>(r=!0,{start:E,length:_.count})));r&&(E+=_.count),n&&(T.normal=!0),S&&(T.color=!0),C&&(T.tangent=!0),I&&(T.texCoord0=!0),N.push({gltf:t,writeVertices:r,region:o})}return{vertexAttributes:{position:U(M.fP,E),normal:T.normal?U(M.ct,E):null,tangent:T.tangent?U(M.ek,E):null,color:T.color?U(M.mc,E):null,texCoord0:T.texCoord0?U(M.Eu,E):null},parts:N,components:[]}}function V(_,E,T){E.writeVertices&&function(_,E){const{position:T,normal:R,tangent:A,color:e,texCoord0:S}=_.vertexAttributes,C=E.region.start,{attributes:I,transform:O}=E.gltf,r=I.position.count;if((0,u.c)(T.slice(C,r),I.position,O),null!=I.normal&&null!=R){const _=(0,t.n)((0,n.a)(),O),E=R.slice(C,r);(0,u.b)(E,I.normal,_),(0,N.oc)(_)&&(0,u.d)(E,E)}else null!=R&&(0,c.f)(R,0,0,1,{dstIndex:C,count:r});if(null!=I.tangent&&null!=A){const _=(0,t.n)((0,n.a)(),O),E=A.slice(C,r);(0,D.a)(E,I.tangent,_),(0,N.oc)(_)&&(0,D.n)(E,E)}else null!=A&&(0,s.f)(A,0,0,1,1,{dstIndex:C,count:r});if(null!=I.texCoord0&&null!=S?(0,G.a)(S.slice(C,r),I.texCoord0):null!=S&&(0,G.f)(S,0,0,{dstIndex:C,count:r}),null!=I.color&&null!=e){const _=I.color,E=e.slice(C,r);if(4===_.elementCount)_ instanceof M.ek?(0,D.b)(E,_,255):_ instanceof M.mc?(0,s.a)(E,_):_ instanceof M.v6&&(0,D.b)(E,_,1/256);else{(0,s.f)(E,255,255,255,255);const T=M.ne.fromTypedArray(E.typedBuffer,E.typedBufferStride);_ instanceof M.ct?(0,u.e)(T,_,255):_ instanceof M.ne?(0,c.a)(T,_):_ instanceof M.mw&&(0,u.e)(T,_,1/256)}}else null!=e&&(0,s.f)(e.slice(C,r),255,255,255,255)}(_,E);const{indices:R,attributes:A,primitiveType:e,material:S}=E.gltf;let C=(0,a.p)(R||A.position.count,e);const O=E.region.start;if(O){const _=new Uint32Array(C);for(let E=0;E<C.length;E++)_[E]+=O;C=_}_.components.push(new I.Z({faces:C,material:T.get(S),shading:A.normal?"source":"flat",trustSourceNormals:!0}))}function Y(_){switch(_){case"OPAQUE":return"opaque";case"MASK":return"mask";case"BLEND":return"blend"}}function X(_){return{horizontal:g(_.s),vertical:g(_.t)}}function g(_){switch(_){case H.e8.CLAMP_TO_EDGE:return"clamp";case H.e8.MIRRORED_REPEAT:return"mirror";case H.e8.REPEAT:return"repeat"}}function b(_){return _**(1/F.j)*255}},35371:(_,E,T)=>{var R,A,e,N,t,n,S,C,I,O,r,o,L,M,u,D,P,G,c,s,U,B,l;T.d(E,{Br:()=>D,LR:()=>n,Lu:()=>i,MX:()=>A,No:()=>L,Tg:()=>P,VI:()=>M,VY:()=>B,Wf:()=>S,_g:()=>U,cw:()=>r,db:()=>N,e8:()=>o,g:()=>C,l1:()=>G,lP:()=>u,lk:()=>R,q_:()=>a,qi:()=>s,w0:()=>t,wb:()=>I,xS:()=>O,zi:()=>e}),function(_){_[_.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",_[_.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",_[_.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT"}(R||(R={})),function(_){_[_.POINTS=0]="POINTS",_[_.LINES=1]="LINES",_[_.LINE_LOOP=2]="LINE_LOOP",_[_.LINE_STRIP=3]="LINE_STRIP",_[_.TRIANGLES=4]="TRIANGLES",_[_.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",_[_.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(A||(A={})),function(_){_[_.ZERO=0]="ZERO",_[_.ONE=1]="ONE",_[_.SRC_COLOR=768]="SRC_COLOR",_[_.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",_[_.SRC_ALPHA=770]="SRC_ALPHA",_[_.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",_[_.DST_ALPHA=772]="DST_ALPHA",_[_.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",_[_.DST_COLOR=774]="DST_COLOR",_[_.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",_[_.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",_[_.CONSTANT_COLOR=32769]="CONSTANT_COLOR",_[_.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",_[_.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",_[_.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(e||(e={})),function(_){_[_.ADD=32774]="ADD",_[_.MIN=32775]="MIN",_[_.MAX=32776]="MAX",_[_.SUBTRACT=32778]="SUBTRACT",_[_.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(N||(N={})),function(_){_[_.ARRAY_BUFFER=34962]="ARRAY_BUFFER",_[_.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",_[_.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",_[_.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",_[_.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",_[_.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",_[_.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER"}(t||(t={})),function(_){_[_.FRONT=1028]="FRONT",_[_.BACK=1029]="BACK",_[_.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(n||(n={})),function(_){_[_.CW=2304]="CW",_[_.CCW=2305]="CCW"}(S||(S={})),function(_){_[_.BYTE=5120]="BYTE",_[_.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",_[_.SHORT=5122]="SHORT",_[_.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",_[_.INT=5124]="INT",_[_.UNSIGNED_INT=5125]="UNSIGNED_INT",_[_.FLOAT=5126]="FLOAT"}(C||(C={})),function(_){_[_.NEVER=512]="NEVER",_[_.LESS=513]="LESS",_[_.EQUAL=514]="EQUAL",_[_.LEQUAL=515]="LEQUAL",_[_.GREATER=516]="GREATER",_[_.NOTEQUAL=517]="NOTEQUAL",_[_.GEQUAL=518]="GEQUAL",_[_.ALWAYS=519]="ALWAYS"}(I||(I={})),function(_){_[_.ZERO=0]="ZERO",_[_.KEEP=7680]="KEEP",_[_.REPLACE=7681]="REPLACE",_[_.INCR=7682]="INCR",_[_.DECR=7683]="DECR",_[_.INVERT=5386]="INVERT",_[_.INCR_WRAP=34055]="INCR_WRAP",_[_.DECR_WRAP=34056]="DECR_WRAP"}(O||(O={})),function(_){_[_.NEAREST=9728]="NEAREST",_[_.LINEAR=9729]="LINEAR",_[_.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",_[_.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",_[_.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",_[_.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(r||(r={})),function(_){_[_.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",_[_.REPEAT=10497]="REPEAT",_[_.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(o||(o={})),function(_){_[_.TEXTURE_2D=3553]="TEXTURE_2D",_[_.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",_[_.TEXTURE_3D=32879]="TEXTURE_3D",_[_.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",_[_.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",_[_.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",_[_.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",_[_.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",_[_.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",_[_.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(L||(L={})),function(_){_[_.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",_[_.DEPTH_STENCIL=34041]="DEPTH_STENCIL",_[_.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",_[_.ALPHA=6406]="ALPHA",_[_.RGB=6407]="RGB",_[_.RGBA=6408]="RGBA",_[_.LUMINANCE=6409]="LUMINANCE",_[_.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",_[_.RED=6403]="RED",_[_.RG=33319]="RG",_[_.RED_INTEGER=36244]="RED_INTEGER",_[_.RG_INTEGER=33320]="RG_INTEGER",_[_.RGB_INTEGER=36248]="RGB_INTEGER",_[_.RGBA_INTEGER=36249]="RGBA_INTEGER"}(M||(M={})),function(_){_[_.RGBA4=32854]="RGBA4",_[_.R16F=33325]="R16F",_[_.RG16F=33327]="RG16F",_[_.RGB32F=34837]="RGB32F",_[_.RGBA16F=34842]="RGBA16F",_[_.R32F=33326]="R32F",_[_.RG32F=33328]="RG32F",_[_.RGBA32F=34836]="RGBA32F",_[_.R11F_G11F_B10F=35898]="R11F_G11F_B10F",_[_.RGB8=32849]="RGB8",_[_.RGBA8=32856]="RGBA8",_[_.RGB5_A1=32855]="RGB5_A1",_[_.R8=33321]="R8",_[_.RG8=33323]="RG8",_[_.R8I=33329]="R8I",_[_.R8UI=33330]="R8UI",_[_.R16I=33331]="R16I",_[_.R16UI=33332]="R16UI",_[_.R32I=33333]="R32I",_[_.R32UI=33334]="R32UI",_[_.RG8I=33335]="RG8I",_[_.RG8UI=33336]="RG8UI",_[_.RG16I=33337]="RG16I",_[_.RG16UI=33338]="RG16UI",_[_.RG32I=33339]="RG32I",_[_.RG32UI=33340]="RG32UI",_[_.RGB16F=34843]="RGB16F",_[_.RGB9_E5=35901]="RGB9_E5",_[_.SRGB8=35905]="SRGB8",_[_.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",_[_.RGB565=36194]="RGB565",_[_.RGBA32UI=36208]="RGBA32UI",_[_.RGB32UI=36209]="RGB32UI",_[_.RGBA16UI=36214]="RGBA16UI",_[_.RGB16UI=36215]="RGB16UI",_[_.RGBA8UI=36220]="RGBA8UI",_[_.RGB8UI=36221]="RGB8UI",_[_.RGBA32I=36226]="RGBA32I",_[_.RGB32I=36227]="RGB32I",_[_.RGBA16I=36232]="RGBA16I",_[_.RGB16I=36233]="RGB16I",_[_.RGBA8I=36238]="RGBA8I",_[_.RGB8I=36239]="RGB8I",_[_.R8_SNORM=36756]="R8_SNORM",_[_.RG8_SNORM=36757]="RG8_SNORM",_[_.RGB8_SNORM=36758]="RGB8_SNORM",_[_.RGBA8_SNORM=36759]="RGBA8_SNORM",_[_.RGB10_A2=32857]="RGB10_A2",_[_.RGB10_A2UI=36975]="RGB10_A2UI"}(u||(u={})),function(_){_[_.FLOAT=5126]="FLOAT",_[_.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",_[_.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",_[_.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",_[_.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",_[_.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",_[_.BYTE=5120]="BYTE",_[_.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",_[_.SHORT=5122]="SHORT",_[_.UNSIGNED_INT=5125]="UNSIGNED_INT",_[_.INT=5124]="INT",_[_.HALF_FLOAT=5131]="HALF_FLOAT",_[_.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",_[_.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",_[_.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",_[_.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(D||(D={})),function(_){_[_.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",_[_.STENCIL_INDEX8=36168]="STENCIL_INDEX8",_[_.DEPTH_STENCIL=34041]="DEPTH_STENCIL",_[_.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",_[_.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",_[_.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",_[_.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(P||(P={})),function(_){_[_.STATIC_DRAW=35044]="STATIC_DRAW",_[_.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",_[_.STREAM_DRAW=35040]="STREAM_DRAW",_[_.STATIC_READ=35045]="STATIC_READ",_[_.DYNAMIC_READ=35049]="DYNAMIC_READ",_[_.STREAM_READ=35041]="STREAM_READ",_[_.STATIC_COPY=35046]="STATIC_COPY",_[_.DYNAMIC_COPY=35050]="DYNAMIC_COPY",_[_.STREAM_COPY=35042]="STREAM_COPY"}(G||(G={})),function(_){_[_.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",_[_.VERTEX_SHADER=35633]="VERTEX_SHADER"}(c||(c={})),function(_){_[_.FRAMEBUFFER=36160]="FRAMEBUFFER",_[_.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",_[_.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(s||(s={})),function(_){_[_.Texture=0]="Texture",_[_.BufferObject=1]="BufferObject",_[_.VertexArrayObject=2]="VertexArrayObject",_[_.Shader=3]="Shader",_[_.Program=4]="Program",_[_.FramebufferObject=5]="FramebufferObject",_[_.Renderbuffer=6]="Renderbuffer",_[_.Sync=7]="Sync",_[_.COUNT=8]="COUNT"}(U||(U={})),function(_){_[_.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",_[_.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",_[_.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",_[_.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",_[_.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",_[_.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",_[_.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",_[_.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",_[_.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",_[_.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",_[_.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",_[_.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",_[_.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",_[_.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",_[_.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",_[_.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(B||(B={})),function(_){_[_.NONE=0]="NONE",_[_.BACK=1029]="BACK"}(l||(l={}));const i=33306;var a,f,F,H,d,m,p;!function(_){_[_.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",_[_.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",_[_.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",_[_.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",_[_.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",_[_.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",_[_.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",_[_.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",_[_.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",_[_.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",_[_.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",_[_.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",_[_.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",_[_.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(a||(a={})),function(_){_[_.FLOAT=5126]="FLOAT",_[_.FLOAT_VEC2=35664]="FLOAT_VEC2",_[_.FLOAT_VEC3=35665]="FLOAT_VEC3",_[_.FLOAT_VEC4=35666]="FLOAT_VEC4",_[_.INT=5124]="INT",_[_.INT_VEC2=35667]="INT_VEC2",_[_.INT_VEC3=35668]="INT_VEC3",_[_.INT_VEC4=35669]="INT_VEC4",_[_.BOOL=35670]="BOOL",_[_.BOOL_VEC2=35671]="BOOL_VEC2",_[_.BOOL_VEC3=35672]="BOOL_VEC3",_[_.BOOL_VEC4=35673]="BOOL_VEC4",_[_.FLOAT_MAT2=35674]="FLOAT_MAT2",_[_.FLOAT_MAT3=35675]="FLOAT_MAT3",_[_.FLOAT_MAT4=35676]="FLOAT_MAT4",_[_.SAMPLER_2D=35678]="SAMPLER_2D",_[_.SAMPLER_CUBE=35680]="SAMPLER_CUBE",_[_.UNSIGNED_INT=5125]="UNSIGNED_INT",_[_.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",_[_.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",_[_.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",_[_.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",_[_.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",_[_.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",_[_.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",_[_.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",_[_.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",_[_.SAMPLER_3D=35679]="SAMPLER_3D",_[_.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",_[_.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",_[_.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",_[_.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",_[_.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",_[_.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",_[_.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",_[_.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",_[_.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",_[_.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",_[_.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",_[_.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(f||(f={})),function(_){_[_.OBJECT_TYPE=37138]="OBJECT_TYPE",_[_.SYNC_CONDITION=37139]="SYNC_CONDITION",_[_.SYNC_STATUS=37140]="SYNC_STATUS",_[_.SYNC_FLAGS=37141]="SYNC_FLAGS"}(F||(F={})),function(_){_[_.UNSIGNALED=37144]="UNSIGNALED",_[_.SIGNALED=37145]="SIGNALED"}(H||(H={})),function(_){_[_.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",_[_.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",_[_.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",_[_.WAIT_FAILED=37149]="WAIT_FAILED"}(d||(d={})),function(_){_[_.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(m||(m={})),function(_){_[_.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(p||(p={}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[1074,5732,2596],{59153:(n,e,t)=>{t.r(e),t.d(e,{registerFunctions:()=>d});var a=t(48853),r=t(27535),i=t(61363),o=t(24240),u=t(41555),c=t(8968);async function s(n,e,t,a,r,u){if(1===a.length){if((0,i.o)(a[0]))return(0,o.t)(n,a[0],(0,i.H)(a[1],-1));if((0,i.q)(a[0]))return(0,o.t)(n,a[0].toArray(),(0,i.H)(a[1],-1))}else if(2===a.length){if((0,i.o)(a[0]))return(0,o.t)(n,a[0],(0,i.H)(a[1],-1));if((0,i.q)(a[0]))return(0,o.t)(n,a[0].toArray(),(0,i.H)(a[1],-1));if((0,i.u)(a[0])){const t=await a[0].load(),o=await l(c.WhereClause.create(a[1],t.getFieldsIndex(),{timeZone:t.dateTimeReferenceFieldIndex.layerDateFieldsTimeZoneDefaultUTC}),u,r);return f(r,await a[0].calculateStatistic(n,o,(0,i.H)(a[2],1e3),e.abortSignal))}}else if(3===a.length&&(0,i.u)(a[0])){const t=await a[0].load(),o=await l(c.WhereClause.create(a[1],t.getFieldsIndex(),{timeZone:t.dateTimeReferenceFieldIndex.layerDateFieldsTimeZoneDefaultUTC}),u,r);return f(r,await a[0].calculateStatistic(n,o,(0,i.H)(a[2],1e3),e.abortSignal))}return(0,o.t)(n,a,-1)}function f(n,e){return e instanceof u.H?a.iG.fromReaderAsTimeStampOffset(e.toStorageFormat()):e instanceof Date?a.iG.dateJSAndZoneToArcadeDate(e,(0,i.L)(n)):e}async function l(n,e,t){const a=n.getVariables();if(a.length>0){const r=[];for(let n=0;n<a.length;n++){const i={name:a[n]};r.push(await e.evaluateIdentifier(t,i))}const i={};for(let n=0;n<a.length;n++)i[a[n]]=r[n];return n.parameters=i,n}return n}function d(n){"async"===n.mode&&(n.functions.stdev=function(e,t){return n.standardFunctionAsync(e,t,((t,a,r)=>s("stdev",t,0,r,e,n)))},n.functions.variance=function(e,t){return n.standardFunctionAsync(e,t,((t,a,r)=>s("variance",t,0,r,e,n)))},n.functions.average=function(e,t){return n.standardFunctionAsync(e,t,((t,a,r)=>s("mean",t,0,r,e,n)))},n.functions.mean=function(e,t){return n.standardFunctionAsync(e,t,((t,a,r)=>s("mean",t,0,r,e,n)))},n.functions.sum=function(e,t){return n.standardFunctionAsync(e,t,((t,a,r)=>s("sum",t,0,r,e,n)))},n.functions.min=function(e,t){return n.standardFunctionAsync(e,t,((t,a,r)=>s("min",t,0,r,e,n)))},n.functions.max=function(e,t){return n.standardFunctionAsync(e,t,((t,a,r)=>s("max",t,0,r,e,n)))},n.functions.count=function(e,t){return n.standardFunctionAsync(e,t,((n,a,o)=>{if((0,i.E)(o,1,1,e,t),(0,i.u)(o[0]))return o[0].count(n.abortSignal);if((0,i.o)(o[0])||(0,i.c)(o[0]))return o[0].length;if((0,i.q)(o[0]))return o[0].length();throw new r.aV(e,r.rH.InvalidParameter,t)}))})}},5732:(n,e,t)=>{t.d(e,{c:()=>a,g:()=>r});var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function r(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[7126],{17126:(t,e,n)=>{n.d(e,{ou:()=>Xn,Qf:()=>et,vF:()=>_,ld:()=>L});class r extends Error{}class s extends r{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class i extends r{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class a extends r{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class o extends r{}class u extends r{constructor(t){super(`Invalid unit ${t}`)}}class l extends r{}class c extends r{constructor(){super("Zone is an abstract class")}}const h="numeric",d="short",m="long",f={year:h,month:h,day:h},y={year:h,month:d,day:h},g={year:h,month:d,day:h,weekday:d},w={year:h,month:m,day:h},p={year:h,month:m,day:h,weekday:m},v={hour:h,minute:h},T={hour:h,minute:h,second:h},S={hour:h,minute:h,second:h,timeZoneName:d},O={hour:h,minute:h,second:h,timeZoneName:m},b={hour:h,minute:h,hourCycle:"h23"},k={hour:h,minute:h,second:h,hourCycle:"h23"},N={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:d},M={hour:h,minute:h,second:h,hourCycle:"h23",timeZoneName:m},D={year:h,month:h,day:h,hour:h,minute:h},V={year:h,month:h,day:h,hour:h,minute:h,second:h},E={year:h,month:d,day:h,hour:h,minute:h},x={year:h,month:d,day:h,hour:h,minute:h,second:h},I={year:h,month:d,day:h,weekday:d,hour:h,minute:h},C={year:h,month:m,day:h,hour:h,minute:h,timeZoneName:d},F={year:h,month:m,day:h,hour:h,minute:h,second:h,timeZoneName:d},Z={year:h,month:m,day:h,weekday:m,hour:h,minute:h,timeZoneName:m},$={year:h,month:m,day:h,weekday:m,hour:h,minute:h,second:h,timeZoneName:m};class L{get type(){throw new c}get name(){throw new c}get ianaName(){return this.name}get isUniversal(){throw new c}offsetName(t,e){throw new c}formatOffset(t,e){throw new c}offset(t){throw new c}equals(t){throw new c}get isValid(){throw new c}}let z=null;class q extends L{static get instance(){return null===z&&(z=new q),z}get type(){return"system"}get name(){return(new Intl.DateTimeFormat).resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return xt(t,e,n)}formatOffset(t,e){return Zt(this.offset(t),e)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return"system"===t.type}get isValid(){return!0}}let j={};const A={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};let U={};class _ extends L{static create(t){return U[t]||(U[t]=new _(t)),U[t]}static resetCache(){U={},j={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch(t){return!1}}constructor(t){super(),this.zoneName=t,this.valid=_.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:e,locale:n}){return xt(t,e,n,this.name)}formatOffset(t,e){return Zt(this.offset(t),e)}offset(t){const e=new Date(t);if(isNaN(e))return NaN;const n=(r=this.name,j[r]||(j[r]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:r,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),j[r]);var r;let[s,i,a,o,u,l,c]=n.formatToParts?function(t,e){const n=t.formatToParts(e),r=[];for(let t=0;t<n.length;t++){const{type:e,value:s}=n[t],i=A[e];"era"===e?r[i]=s:dt(i)||(r[i]=parseInt(s,10))}return r}(n,e):function(t,e){const n=t.format(e).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,i,a,o,u,l,c]=r;return[a,s,i,o,u,l,c]}(n,e);"BC"===o&&(s=1-Math.abs(s));let h=+e;const d=h%1e3;return h-=d>=0?d:1e3+d,(Dt({year:s,month:i,day:a,hour:24===u?0:u,minute:l,second:c,millisecond:0})-h)/6e4}equals(t){return"iana"===t.type&&t.name===this.name}get isValid(){return this.valid}}let H={},R={};function W(t,e={}){const n=JSON.stringify([t,e]);let r=R[n];return r||(r=new Intl.DateTimeFormat(t,e),R[n]=r),r}let J={},Y={},P=null;function G(t,e,n,r){const s=t.listingMode();return"error"===s?null:"en"===s?n(e):r(e)}class B{constructor(t,e,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;const{padTo:r,floor:s,...i}=n;if(!e||Object.keys(i).length>0){const e={useGrouping:!1,...n};n.padTo>0&&(e.minimumIntegerDigits=n.padTo),this.inf=function(t,e={}){const n=JSON.stringify([t,e]);let r=J[n];return r||(r=new Intl.NumberFormat(t,e),J[n]=r),r}(t,e)}}format(t){if(this.inf){const e=this.floor?Math.floor(t):t;return this.inf.format(e)}return vt(this.floor?Math.floor(t):bt(t,3),this.padTo)}}class Q{constructor(t,e,n){let r;if(this.opts=n,this.originalZone=void 0,this.opts.timeZone)this.dt=t;else if("fixed"===t.zone.type){const e=t.offset/60*-1,n=e>=0?`Etc/GMT+${e}`:`Etc/GMT${e}`;0!==t.offset&&_.create(n).valid?(r=n,this.dt=t):(r="UTC",this.dt=0===t.offset?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else"system"===t.zone.type?this.dt=t:"iana"===t.zone.type?(this.dt=t,r=t.zone.name):(r="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);const s={...this.opts};s.timeZone=s.timeZone||r,this.dtf=W(e,s)}format(){return this.originalZone?this.formatToParts().map((({value:t})=>t)).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){const t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.map((t=>{if("timeZoneName"===t.type){const e=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...t,value:e}}return t})):t}resolvedOptions(){return this.dtf.resolvedOptions()}}class K{constructor(t,e,n){this.opts={style:"long",...n},!e&&yt()&&(this.rtf=function(t,e={}){const{base:n,...r}=e,s=JSON.stringify([t,r]);let i=Y[s];return i||(i=new Intl.RelativeTimeFormat(t,e),Y[s]=i),i}(t,n))}format(t,e){return this.rtf?this.rtf.format(t,e):function(t,e,n="always",r=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},i=-1===["hours","minutes","seconds"].indexOf(t);if("auto"===n&&i){const n="days"===t;switch(e){case 1:return n?"tomorrow":`next ${s[t][0]}`;case-1:return n?"yesterday":`last ${s[t][0]}`;case 0:return n?"today":`this ${s[t][0]}`}}const a=Object.is(e,-0)||e<0,o=Math.abs(e),u=1===o,l=s[t],c=r?u?l[1]:l[2]||l[1]:u?s[t][0]:t;return a?`${o} ${c} ago`:`in ${o} ${c}`}(e,t,this.opts.numeric,"long"!==this.opts.style)}formatToParts(t,e){return this.rtf?this.rtf.formatToParts(t,e):[]}}class X{static fromOpts(t){return X.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,e,n,r=!1){const s=t||ht.defaultLocale,i=s||(r?"en-US":P||(P=(new Intl.DateTimeFormat).resolvedOptions().locale,P)),a=e||ht.defaultNumberingSystem,o=n||ht.defaultOutputCalendar;return new X(i,a,o,s)}static resetCache(){P=null,R={},J={},Y={}}static fromObject({locale:t,numberingSystem:e,outputCalendar:n}={}){return X.create(t,e,n)}constructor(t,e,n,r){const[s,i,a]=function(t){const e=t.indexOf("-x-");-1!==e&&(t=t.substring(0,e));const n=t.indexOf("-u-");if(-1===n)return[t];{let e,r;try{e=W(t).resolvedOptions(),r=t}catch(s){const i=t.substring(0,n);e=W(i).resolvedOptions(),r=i}const{numberingSystem:s,calendar:i}=e;return[r,s,i]}}(t);this.locale=s,this.numberingSystem=e||i||null,this.outputCalendar=n||a||null,this.intl=function(t,e,n){return n||e?(t.includes("-u-")||(t+="-u"),n&&(t+=`-ca-${n}`),e&&(t+=`-nu-${e}`),t):t}(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=r,this.fastNumbersCached=null}get fastNumbers(){var t;return null==this.fastNumbersCached&&(this.fastNumbersCached=(!(t=this).numberingSystem||"latn"===t.numberingSystem)&&("latn"===t.numberingSystem||!t.locale||t.locale.startsWith("en")||"latn"===new Intl.DateTimeFormat(t.intl).resolvedOptions().numberingSystem)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),e=!(null!==this.numberingSystem&&"latn"!==this.numberingSystem||null!==this.outputCalendar&&"gregory"!==this.outputCalendar);return t&&e?"en":"intl"}clone(t){return t&&0!==Object.getOwnPropertyNames(t).length?X.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1):this}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,e=!1){return G(this,t,jt,(()=>{const n=e?{month:t,day:"numeric"}:{month:t},r=e?"format":"standalone";return this.monthsCache[r][t]||(this.monthsCache[r][t]=function(t){const e=[];for(let n=1;n<=12;n++){const r=Xn.utc(2009,n,1);e.push(t(r))}return e}((t=>this.extract(t,n,"month")))),this.monthsCache[r][t]}))}weekdays(t,e=!1){return G(this,t,Ht,(()=>{const n=e?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=e?"format":"standalone";return this.weekdaysCache[r][t]||(this.weekdaysCache[r][t]=function(t){const e=[];for(let n=1;n<=7;n++){const r=Xn.utc(2016,11,13+n);e.push(t(r))}return e}((t=>this.extract(t,n,"weekday")))),this.weekdaysCache[r][t]}))}meridiems(){return G(this,void 0,(()=>Rt),(()=>{if(!this.meridiemCache){const t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Xn.utc(2016,11,13,9),Xn.utc(2016,11,13,19)].map((e=>this.extract(e,t,"dayperiod")))}return this.meridiemCache}))}eras(t){return G(this,t,Pt,(()=>{const e={era:t};return this.eraCache[t]||(this.eraCache[t]=[Xn.utc(-40,1,1),Xn.utc(2017,1,1)].map((t=>this.extract(t,e,"era")))),this.eraCache[t]}))}extract(t,e,n){const r=this.dtFormatter(t,e).formatToParts().find((t=>t.type.toLowerCase()===n));return r?r.value:null}numberFormatter(t={}){return new B(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,e={}){return new Q(t,this.intl,e)}relFormatter(t={}){return new K(this.intl,this.isEnglish(),t)}listFormatter(t={}){return function(t,e={}){const n=JSON.stringify([t,e]);let r=H[n];return r||(r=new Intl.ListFormat(t,e),H[n]=r),r}(this.intl,t)}isEnglish(){return"en"===this.locale||"en-us"===this.locale.toLowerCase()||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}let tt=null;class et extends L{static get utcInstance(){return null===tt&&(tt=new et(0)),tt}static instance(t){return 0===t?et.utcInstance:new et(t)}static parseSpecifier(t){if(t){const e=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(e)return new et(It(e[1],e[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return 0===this.fixed?"UTC":`UTC${Zt(this.fixed,"narrow")}`}get ianaName(){return 0===this.fixed?"Etc/UTC":`Etc/GMT${Zt(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,e){return Zt(this.fixed,e)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return"fixed"===t.type&&t.fixed===this.fixed}get isValid(){return!0}}class nt extends L{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function rt(t,e){if(dt(t)||null===t)return e;if(t instanceof L)return t;if("string"==typeof t){const n=t.toLowerCase();return"default"===n?e:"local"===n||"system"===n?q.instance:"utc"===n||"gmt"===n?et.utcInstance:et.parseSpecifier(n)||_.create(t)}return mt(t)?et.instance(t):"object"==typeof t&&"offset"in t&&"function"==typeof t.offset?t:new nt(t)}let st,it=()=>Date.now(),at="system",ot=null,ut=null,lt=null,ct=60;class ht{static get now(){return it}static set now(t){it=t}static set defaultZone(t){at=t}static get defaultZone(){return rt(at,q.instance)}static get defaultLocale(){return ot}static set defaultLocale(t){ot=t}static get defaultNumberingSystem(){return ut}static set defaultNumberingSystem(t){ut=t}static get defaultOutputCalendar(){return lt}static set defaultOutputCalendar(t){lt=t}static get twoDigitCutoffYear(){return ct}static set twoDigitCutoffYear(t){ct=t%100}static get throwOnInvalid(){return st}static set throwOnInvalid(t){st=t}static resetCaches(){X.resetCache(),_.resetCache()}}function dt(t){return void 0===t}function mt(t){return"number"==typeof t}function ft(t){return"number"==typeof t&&t%1==0}function yt(){try{return"undefined"!=typeof Intl&&!!Intl.RelativeTimeFormat}catch(t){return!1}}function gt(t,e,n){if(0!==t.length)return t.reduce(((t,r)=>{const s=[e(r),r];return t&&n(t[0],s[0])===t[0]?t:s}),null)[1]}function wt(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function pt(t,e,n){return ft(t)&&t>=e&&t<=n}function vt(t,e=2){let n;return n=t<0?"-"+(""+-t).padStart(e,"0"):(""+t).padStart(e,"0"),n}function Tt(t){return dt(t)||null===t||""===t?void 0:parseInt(t,10)}function St(t){return dt(t)||null===t||""===t?void 0:parseFloat(t)}function Ot(t){if(!dt(t)&&null!==t&&""!==t){const e=1e3*parseFloat("0."+t);return Math.floor(e)}}function bt(t,e,n=!1){const r=10**e;return(n?Math.trunc:Math.round)(t*r)/r}function kt(t){return t%4==0&&(t%100!=0||t%400==0)}function Nt(t){return kt(t)?366:365}function Mt(t,e){const n=(r=e-1)-12*Math.floor(r/12)+1;var r;return 2===n?kt(t+(e-n)/12)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Dt(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function Vt(t){const e=(t+Math.floor(t/4)-Math.floor(t/100)+Math.floor(t/400))%7,n=t-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return 4===e||3===r?53:52}function Et(t){return t>99?t:t>ht.twoDigitCutoffYear?1900+t:2e3+t}function xt(t,e,n,r=null){const s=new Date(t),i={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(i.timeZone=r);const a={timeZoneName:e,...i},o=new Intl.DateTimeFormat(n,a).formatToParts(s).find((t=>"timezonename"===t.type.toLowerCase()));return o?o.value:null}function It(t,e){let n=parseInt(t,10);Number.isNaN(n)&&(n=0);const r=parseInt(e,10)||0;return 60*n+(n<0||Object.is(n,-0)?-r:r)}function Ct(t){const e=Number(t);if("boolean"==typeof t||""===t||Number.isNaN(e))throw new l(`Invalid unit value ${t}`);return e}function Ft(t,e){const n={};for(const r in t)if(wt(t,r)){const s=t[r];if(null==s)continue;n[e(r)]=Ct(s)}return n}function Zt(t,e){const n=Math.trunc(Math.abs(t/60)),r=Math.trunc(Math.abs(t%60)),s=t>=0?"+":"-";switch(e){case"short":return`${s}${vt(n,2)}:${vt(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${vt(n,2)}${vt(r,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function $t(t){return function(t,e){return["hour","minute","second","millisecond"].reduce(((e,n)=>(e[n]=t[n],e)),{})}(t)}const Lt=["January","February","March","April","May","June","July","August","September","October","November","December"],zt=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],qt=["J","F","M","A","M","J","J","A","S","O","N","D"];function jt(t){switch(t){case"narrow":return[...qt];case"short":return[...zt];case"long":return[...Lt];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const At=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Ut=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],_t=["M","T","W","T","F","S","S"];function Ht(t){switch(t){case"narrow":return[..._t];case"short":return[...Ut];case"long":return[...At];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const Rt=["AM","PM"],Wt=["Before Christ","Anno Domini"],Jt=["BC","AD"],Yt=["B","A"];function Pt(t){switch(t){case"narrow":return[...Yt];case"short":return[...Jt];case"long":return[...Wt];default:return null}}function Gt(t,e){let n="";for(const r of t)r.literal?n+=r.val:n+=e(r.val);return n}const Bt={D:f,DD:y,DDD:w,DDDD:p,t:v,tt:T,ttt:S,tttt:O,T:b,TT:k,TTT:N,TTTT:M,f:D,ff:E,fff:C,ffff:Z,F:V,FF:x,FFF:F,FFFF:$};class Qt{static create(t,e={}){return new Qt(t,e)}static parseFormat(t){let e=null,n="",r=!1;const s=[];for(let i=0;i<t.length;i++){const a=t.charAt(i);"'"===a?(n.length>0&&s.push({literal:r||/^\s+$/.test(n),val:n}),e=null,n="",r=!r):r||a===e?n+=a:(n.length>0&&s.push({literal:/^\s+$/.test(n),val:n}),n=a,e=a)}return n.length>0&&s.push({literal:r||/^\s+$/.test(n),val:n}),s}static macroTokenToFormatOpts(t){return Bt[t]}constructor(t,e){this.opts=e,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,e){return null===this.systemLoc&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...e}).format()}dtFormatter(t,e={}){return this.loc.dtFormatter(t,{...this.opts,...e})}formatDateTime(t,e){return this.dtFormatter(t,e).format()}formatDateTimeParts(t,e){return this.dtFormatter(t,e).formatToParts()}formatInterval(t,e){return this.dtFormatter(t.start,e).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,e){return this.dtFormatter(t,e).resolvedOptions()}num(t,e=0){if(this.opts.forceSimple)return vt(t,e);const n={...this.opts};return e>0&&(n.padTo=e),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,e){const n="en"===this.loc.listingMode(),r=this.loc.outputCalendar&&"gregory"!==this.loc.outputCalendar,s=(e,n)=>this.loc.extract(t,e,n),i=e=>t.isOffsetFixed&&0===t.offset&&e.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,e.format):"",a=(e,r)=>n?function(t,e){return jt(e)[t.month-1]}(t,e):s(r?{month:e}:{month:e,day:"numeric"},"month"),o=(e,r)=>n?function(t,e){return Ht(e)[t.weekday-1]}(t,e):s(r?{weekday:e}:{weekday:e,month:"long",day:"numeric"},"weekday"),u=e=>{const n=Qt.macroTokenToFormatOpts(e);return n?this.formatWithSystemDefault(t,n):e},l=e=>n?function(t,e){return Pt(e)[t.year<0?0:1]}(t,e):s({era:e},"era");return Gt(Qt.parseFormat(e),(e=>{switch(e){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12==0?12:t.hour%12);case"hh":return this.num(t.hour%12==0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return n?function(t){return Rt[t.hour<12?0:1]}(t):s({hour:"numeric",hourCycle:"h12"},"dayperiod");case"d":return r?s({day:"numeric"},"day"):this.num(t.day);case"dd":return r?s({day:"2-digit"},"day"):this.num(t.day,2);case"c":case"E":return this.num(t.weekday);case"ccc":return o("short",!0);case"cccc":return o("long",!0);case"ccccc":return o("narrow",!0);case"EEE":return o("short",!1);case"EEEE":return o("long",!1);case"EEEEE":return o("narrow",!1);case"L":return r?s({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return r?s({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return r?s({month:"numeric"},"month"):this.num(t.month);case"MM":return r?s({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return r?s({year:"numeric"},"year"):this.num(t.year);case"yy":return r?s({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return r?s({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return r?s({year:"numeric"},"year"):this.num(t.year,6);case"G":return l("short");case"GG":return l("long");case"GGGGG":return l("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return u(e)}}))}formatDurationFromString(t,e){const n=t=>{switch(t[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},r=Qt.parseFormat(e),s=r.reduce(((t,{literal:e,val:n})=>e?t:t.concat(n)),[]);return Gt(r,(t=>e=>{const r=n(e);return r?this.num(t.get(r),e.length):e})(t.shiftTo(...s.map(n).filter((t=>t)))))}}class Kt{constructor(t,e){this.reason=t,this.explanation=e}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}const Xt=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function te(...t){const e=t.reduce(((t,e)=>t+e.source),"");return RegExp(`^${e}$`)}function ee(...t){return e=>t.reduce((([t,n,r],s)=>{const[i,a,o]=s(e,r);return[{...t,...i},a||n,o]}),[{},null,1]).slice(0,2)}function ne(t,...e){if(null==t)return[null,null];for(const[n,r]of e){const e=n.exec(t);if(e)return r(e)}return[null,null]}function re(...t){return(e,n)=>{const r={};let s;for(s=0;s<t.length;s++)r[t[s]]=Tt(e[n+s]);return[r,null,n+s]}}const se=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,ie=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,ae=RegExp(`${ie.source}(?:${se.source}?(?:\\[(${Xt.source})\\])?)?`),oe=RegExp(`(?:T${ae.source})?`),ue=re("weekYear","weekNumber","weekDay"),le=re("year","ordinal"),ce=RegExp(`${ie.source} ?(?:${se.source}|(${Xt.source}))?`),he=RegExp(`(?: ${ce.source})?`);function de(t,e,n){const r=t[e];return dt(r)?n:Tt(r)}function me(t,e){return[{hours:de(t,e,0),minutes:de(t,e+1,0),seconds:de(t,e+2,0),milliseconds:Ot(t[e+3])},null,e+4]}function fe(t,e){const n=!t[e]&&!t[e+1],r=It(t[e+1],t[e+2]);return[{},n?null:et.instance(r),e+3]}function ye(t,e){return[{},t[e]?_.create(t[e]):null,e+1]}const ge=RegExp(`^T?${ie.source}$`),we=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;function pe(t){const[e,n,r,s,i,a,o,u,l]=t,c="-"===e[0],h=u&&"-"===u[0],d=(t,e=!1)=>void 0!==t&&(e||t&&c)?-t:t;return[{years:d(St(n)),months:d(St(r)),weeks:d(St(s)),days:d(St(i)),hours:d(St(a)),minutes:d(St(o)),seconds:d(St(u),"-0"===u),milliseconds:d(Ot(l),h)}]}const ve={GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Te(t,e,n,r,s,i,a){const o={year:2===e.length?Et(Tt(e)):Tt(e),month:zt.indexOf(n)+1,day:Tt(r),hour:Tt(s),minute:Tt(i)};return a&&(o.second=Tt(a)),t&&(o.weekday=t.length>3?At.indexOf(t)+1:Ut.indexOf(t)+1),o}const Se=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function Oe(t){const[,e,n,r,s,i,a,o,u,l,c,h]=t,d=Te(e,s,r,n,i,a,o);let m;return m=u?ve[u]:l?0:It(c,h),[d,new et(m)]}const be=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,ke=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Ne=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function Me(t){const[,e,n,r,s,i,a,o]=t;return[Te(e,s,r,n,i,a,o),et.utcInstance]}function De(t){const[,e,n,r,s,i,a,o]=t;return[Te(e,o,n,r,s,i,a),et.utcInstance]}const Ve=te(/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,oe),Ee=te(/(\d{4})-?W(\d\d)(?:-?(\d))?/,oe),xe=te(/(\d{4})-?(\d{3})/,oe),Ie=te(ae),Ce=ee((function(t,e){return[{year:de(t,e),month:de(t,e+1,1),day:de(t,e+2,1)},null,e+3]}),me,fe,ye),Fe=ee(ue,me,fe,ye),Ze=ee(le,me,fe,ye),$e=ee(me,fe,ye),Le=ee(me),ze=te(/(\d{4})-(\d\d)-(\d\d)/,he),qe=te(ce),je=ee(me,fe,ye),Ae="Invalid Duration",Ue={weeks:{days:7,hours:168,minutes:10080,seconds:604800,milliseconds:6048e5},days:{hours:24,minutes:1440,seconds:86400,milliseconds:864e5},hours:{minutes:60,seconds:3600,milliseconds:36e5},minutes:{seconds:60,milliseconds:6e4},seconds:{milliseconds:1e3}},_e={years:{quarters:4,months:12,weeks:52,days:365,hours:8760,minutes:525600,seconds:31536e3,milliseconds:31536e6},quarters:{months:3,weeks:13,days:91,hours:2184,minutes:131040,seconds:7862400,milliseconds:78624e5},months:{weeks:4,days:30,hours:720,minutes:43200,seconds:2592e3,milliseconds:2592e6},...Ue},He={years:{quarters:4,months:12,weeks:52.1775,days:365.2425,hours:8765.82,minutes:525949.2,seconds:525949.2*60,milliseconds:525949.2*60*1e3},quarters:{months:3,weeks:13.044375,days:91.310625,hours:2191.455,minutes:131487.3,seconds:525949.2*60/4,milliseconds:7889237999.999999},months:{weeks:4.3481250000000005,days:30.436875,hours:730.485,minutes:43829.1,seconds:2629746,milliseconds:2629746e3},...Ue},Re=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],We=Re.slice(0).reverse();function Je(t,e,n=!1){const r={values:n?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new Ge(r)}function Ye(t,e){let n=e.milliseconds??0;for(const r of We.slice(1))e[r]&&(n+=e[r]*t[r].milliseconds);return n}function Pe(t,e){const n=Ye(t,e)<0?-1:1;Re.reduceRight(((r,s)=>{if(dt(e[s]))return r;if(r){const i=e[r]*n,a=t[s][r],o=Math.floor(i/a);e[s]+=o*n,e[r]-=o*a*n}return s}),null),Re.reduce(((n,r)=>{if(dt(e[r]))return n;if(n){const s=e[n]%1;e[n]-=s,e[r]+=s*t[n][r]}return r}),null)}class Ge{constructor(t){const e="longterm"===t.conversionAccuracy||!1;let n=e?He:_e;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||X.create(),this.conversionAccuracy=e?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,e){return Ge.fromObject({milliseconds:t},e)}static fromObject(t,e={}){if(null==t||"object"!=typeof t)throw new l("Duration.fromObject: argument expected to be an object, got "+(null===t?"null":typeof t));return new Ge({values:Ft(t,Ge.normalizeUnit),loc:X.fromObject(e),conversionAccuracy:e.conversionAccuracy,matrix:e.matrix})}static fromDurationLike(t){if(mt(t))return Ge.fromMillis(t);if(Ge.isDuration(t))return t;if("object"==typeof t)return Ge.fromObject(t);throw new l(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,e){const[n]=function(t){return ne(t,[we,pe])}(t);return n?Ge.fromObject(n,e):Ge.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,e){const[n]=function(t){return ne(t,[ge,Le])}(t);return n?Ge.fromObject(n,e):Ge.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,e=null){if(!t)throw new l("need to specify a reason the Duration is invalid");const n=t instanceof Kt?t:new Kt(t,e);if(ht.throwOnInvalid)throw new a(n);return new Ge({invalid:n})}static normalizeUnit(t){const e={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t?t.toLowerCase():t];if(!e)throw new u(t);return e}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,e={}){const n={...e,floor:!1!==e.round&&!1!==e.floor};return this.isValid?Qt.create(this.loc,n).formatDurationFromString(this,t):Ae}toHuman(t={}){if(!this.isValid)return Ae;const e=Re.map((e=>{const n=this.values[e];return dt(n)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:e.slice(0,-1)}).format(n)})).filter((t=>t));return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(e)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return 0!==this.years&&(t+=this.years+"Y"),0===this.months&&0===this.quarters||(t+=this.months+3*this.quarters+"M"),0!==this.weeks&&(t+=this.weeks+"W"),0!==this.days&&(t+=this.days+"D"),0===this.hours&&0===this.minutes&&0===this.seconds&&0===this.milliseconds||(t+="T"),0!==this.hours&&(t+=this.hours+"H"),0!==this.minutes&&(t+=this.minutes+"M"),0===this.seconds&&0===this.milliseconds||(t+=bt(this.seconds+this.milliseconds/1e3,3)+"S"),"P"===t&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const e=this.toMillis();return e<0||e>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Xn.fromMillis(e,{zone:"UTC"}).toISOTime(t))}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.isValid?Ye(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const e=Ge.fromDurationLike(t),n={};for(const t of Re)(wt(e.values,t)||wt(this.values,t))&&(n[t]=e.get(t)+this.get(t));return Je(this,{values:n},!0)}minus(t){if(!this.isValid)return this;const e=Ge.fromDurationLike(t);return this.plus(e.negate())}mapUnits(t){if(!this.isValid)return this;const e={};for(const n of Object.keys(this.values))e[n]=Ct(t(this.values[n],n));return Je(this,{values:e},!0)}get(t){return this[Ge.normalizeUnit(t)]}set(t){return this.isValid?Je(this,{values:{...this.values,...Ft(t,Ge.normalizeUnit)}}):this}reconfigure({locale:t,numberingSystem:e,conversionAccuracy:n,matrix:r}={}){return Je(this,{loc:this.loc.clone({locale:t,numberingSystem:e}),matrix:r,conversionAccuracy:n})}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return Pe(this.matrix,t),Je(this,{values:t},!0)}rescale(){return this.isValid?Je(this,{values:function(t){const e={};for(const[n,r]of Object.entries(t))0!==r&&(e[n]=r);return e}(this.normalize().shiftToAll().toObject())},!0):this}shiftTo(...t){if(!this.isValid)return this;if(0===t.length)return this;t=t.map((t=>Ge.normalizeUnit(t)));const e={},n={},r=this.toObject();let s;for(const i of Re)if(t.indexOf(i)>=0){s=i;let t=0;for(const e in n)t+=this.matrix[e][i]*n[e],n[e]=0;mt(r[i])&&(t+=r[i]);const a=Math.trunc(t);e[i]=a,n[i]=(1e3*t-1e3*a)/1e3}else mt(r[i])&&(n[i]=r[i]);for(const t in n)0!==n[t]&&(e[s]+=t===s?n[t]:n[t]/this.matrix[s][t]);return Pe(this.matrix,e),Je(this,{values:e},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;const t={};for(const e of Object.keys(this.values))t[e]=0===this.values[e]?0:-this.values[e];return Je(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid)return!1;if(!this.loc.equals(t.loc))return!1;for(const r of Re)if(e=this.values[r],n=t.values[r],!(void 0===e||0===e?void 0===n||0===n:e===n))return!1;var e,n;return!0}}const Be="Invalid Interval";class Qe{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,e=null){if(!t)throw new l("need to specify a reason the Interval is invalid");const n=t instanceof Kt?t:new Kt(t,e);if(ht.throwOnInvalid)throw new i(n);return new Qe({invalid:n})}static fromDateTimes(t,e){const n=tr(t),r=tr(e),s=function(t,e){return t&&t.isValid?e&&e.isValid?e<t?Qe.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null:Qe.invalid("missing or invalid end"):Qe.invalid("missing or invalid start")}(n,r);return null==s?new Qe({start:n,end:r}):s}static after(t,e){const n=Ge.fromDurationLike(e),r=tr(t);return Qe.fromDateTimes(r,r.plus(n))}static before(t,e){const n=Ge.fromDurationLike(e),r=tr(t);return Qe.fromDateTimes(r.minus(n),r)}static fromISO(t,e){const[n,r]=(t||"").split("/",2);if(n&&r){let t,s,i,a;try{t=Xn.fromISO(n,e),s=t.isValid}catch(r){s=!1}try{i=Xn.fromISO(r,e),a=i.isValid}catch(r){a=!1}if(s&&a)return Qe.fromDateTimes(t,i);if(s){const n=Ge.fromISO(r,e);if(n.isValid)return Qe.after(t,n)}else if(a){const t=Ge.fromISO(n,e);if(t.isValid)return Qe.before(i,t)}}return Qe.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return null===this.invalidReason}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const e=this.start.startOf(t),n=this.end.startOf(t);return Math.floor(n.diff(e,t).get(t))+(n.valueOf()!==this.end.valueOf())}hasSame(t){return!!this.isValid&&(this.isEmpty()||this.e.minus(1).hasSame(this.s,t))}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return!!this.isValid&&this.s>t}isBefore(t){return!!this.isValid&&this.e<=t}contains(t){return!!this.isValid&&this.s<=t&&this.e>t}set({start:t,end:e}={}){return this.isValid?Qe.fromDateTimes(t||this.s,e||this.e):this}splitAt(...t){if(!this.isValid)return[];const e=t.map(tr).filter((t=>this.contains(t))).sort(),n=[];let{s:r}=this,s=0;for(;r<this.e;){const t=e[s]||this.e,i=+t>+this.e?this.e:t;n.push(Qe.fromDateTimes(r,i)),r=i,s+=1}return n}splitBy(t){const e=Ge.fromDurationLike(t);if(!this.isValid||!e.isValid||0===e.as("milliseconds"))return[];let n,{s:r}=this,s=1;const i=[];for(;r<this.e;){const t=this.start.plus(e.mapUnits((t=>t*s)));n=+t>+this.e?this.e:t,i.push(Qe.fromDateTimes(r,n)),r=n,s+=1}return i}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return!!this.isValid&&+this.e==+t.s}abutsEnd(t){return!!this.isValid&&+t.e==+this.s}engulfs(t){return!!this.isValid&&this.s<=t.s&&this.e>=t.e}equals(t){return!(!this.isValid||!t.isValid)&&this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const e=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return e>=n?null:Qe.fromDateTimes(e,n)}union(t){if(!this.isValid)return this;const e=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return Qe.fromDateTimes(e,n)}static merge(t){const[e,n]=t.sort(((t,e)=>t.s-e.s)).reduce((([t,e],n)=>e?e.overlaps(n)||e.abutsStart(n)?[t,e.union(n)]:[t.concat([e]),n]:[t,n]),[[],null]);return n&&e.push(n),e}static xor(t){let e=null,n=0;const r=[],s=t.map((t=>[{time:t.s,type:"s"},{time:t.e,type:"e"}])),i=Array.prototype.concat(...s).sort(((t,e)=>t.time-e.time));for(const t of i)n+="s"===t.type?1:-1,1===n?e=t.time:(e&&+e!=+t.time&&r.push(Qe.fromDateTimes(e,t.time)),e=null);return Qe.merge(r)}difference(...t){return Qe.xor([this].concat(t)).map((t=>this.intersection(t))).filter((t=>t&&!t.isEmpty()))}toString(){return this.isValid?`[${this.s.toISO()} – ${this.e.toISO()})`:Be}toLocaleString(t=f,e={}){return this.isValid?Qt.create(this.s.loc.clone(e),t).formatInterval(this):Be}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Be}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Be}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Be}toFormat(t,{separator:e=" – "}={}){return this.isValid?`${this.s.toFormat(t)}${e}${this.e.toFormat(t)}`:Be}toDuration(t,e){return this.isValid?this.e.diff(this.s,t,e):Ge.invalid(this.invalidReason)}mapEndpoints(t){return Qe.fromDateTimes(t(this.s),t(this.e))}}class Ke{static hasDST(t=ht.defaultZone){const e=Xn.now().setZone(t).set({month:12});return!t.isUniversal&&e.offset!==e.set({month:6}).offset}static isValidIANAZone(t){return _.isValidZone(t)}static normalizeZone(t){return rt(t,ht.defaultZone)}static months(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||X.create(e,n,s)).months(t)}static monthsFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null,outputCalendar:s="gregory"}={}){return(r||X.create(e,n,s)).months(t,!0)}static weekdays(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null}={}){return(r||X.create(e,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:e=null,numberingSystem:n=null,locObj:r=null}={}){return(r||X.create(e,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return X.create(t).meridiems()}static eras(t="short",{locale:e=null}={}){return X.create(e,null,"gregory").eras(t)}static features(){return{relative:yt()}}}function Xe(t,e){const n=t=>t.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(e)-n(t);return Math.floor(Ge.fromMillis(r).as("days"))}const tn={arab:"[٠-٩]",arabext:"[۰-۹]",bali:"[᭐-᭙]",beng:"[০-৯]",deva:"[०-९]",fullwide:"[0-9]",gujr:"[૦-૯]",hanidec:"[〇|一|二|三|四|五|六|七|八|九]",khmr:"[០-៩]",knda:"[೦-೯]",laoo:"[໐-໙]",limb:"[᥆-᥏]",mlym:"[൦-൯]",mong:"[᠐-᠙]",mymr:"[၀-၉]",orya:"[୦-୯]",tamldec:"[௦-௯]",telu:"[౦-౯]",thai:"[๐-๙]",tibt:"[༠-༩]",latn:"\\d"},en={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},nn=tn.hanidec.replace(/[\[|\]]/g,"").split("");function rn({numberingSystem:t},e=""){return new RegExp(`${tn[t||"latn"]}${e}`)}function sn(t,e=(t=>t)){return{regex:t,deser:([t])=>e(function(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let n=0;n<t.length;n++){const r=t.charCodeAt(n);if(-1!==t[n].search(tn.hanidec))e+=nn.indexOf(t[n]);else for(const t in en){const[n,s]=en[t];r>=n&&r<=s&&(e+=r-n)}}return parseInt(e,10)}return e}(t))}}const an=`[ ${String.fromCharCode(160)}]`,on=new RegExp(an,"g");function un(t){return t.replace(/\./g,"\\.?").replace(on,an)}function ln(t){return t.replace(/\./g,"").replace(on," ").toLowerCase()}function cn(t,e){return null===t?null:{regex:RegExp(t.map(un).join("|")),deser:([n])=>t.findIndex((t=>ln(n)===ln(t)))+e}}function hn(t,e){return{regex:t,deser:([,t,e])=>It(t,e),groups:e}}function dn(t){return{regex:t,deser:([t])=>t}}const mn={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};let fn=null;function yn(t,e){return Array.prototype.concat(...t.map((t=>function(t,e){if(t.literal)return t;const n=wn(Qt.macroTokenToFormatOpts(t.val),e);return null==n||n.includes(void 0)?t:n}(t,e))))}function gn(t,e,n){const r=yn(Qt.parseFormat(n),t),s=r.map((e=>function(t,e){const n=rn(e),r=rn(e,"{2}"),s=rn(e,"{3}"),i=rn(e,"{4}"),a=rn(e,"{6}"),o=rn(e,"{1,2}"),u=rn(e,"{1,3}"),l=rn(e,"{1,6}"),c=rn(e,"{1,9}"),h=rn(e,"{2,4}"),d=rn(e,"{4,6}"),m=t=>{return{regex:RegExp((e=t.val,e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"))),deser:([t])=>t,literal:!0};var e},f=(f=>{if(t.literal)return m(f);switch(f.val){case"G":return cn(e.eras("short"),0);case"GG":return cn(e.eras("long"),0);case"y":return sn(l);case"yy":case"kk":return sn(h,Et);case"yyyy":case"kkkk":return sn(i);case"yyyyy":return sn(d);case"yyyyyy":return sn(a);case"M":case"L":case"d":case"H":case"h":case"m":case"q":case"s":case"W":return sn(o);case"MM":case"LL":case"dd":case"HH":case"hh":case"mm":case"qq":case"ss":case"WW":return sn(r);case"MMM":return cn(e.months("short",!0),1);case"MMMM":return cn(e.months("long",!0),1);case"LLL":return cn(e.months("short",!1),1);case"LLLL":return cn(e.months("long",!1),1);case"o":case"S":return sn(u);case"ooo":case"SSS":return sn(s);case"u":return dn(c);case"uu":return dn(o);case"uuu":case"E":case"c":return sn(n);case"a":return cn(e.meridiems(),0);case"EEE":return cn(e.weekdays("short",!1),1);case"EEEE":return cn(e.weekdays("long",!1),1);case"ccc":return cn(e.weekdays("short",!0),1);case"cccc":return cn(e.weekdays("long",!0),1);case"Z":case"ZZ":return hn(new RegExp(`([+-]${o.source})(?::(${r.source}))?`),2);case"ZZZ":return hn(new RegExp(`([+-]${o.source})(${r.source})?`),2);case"z":return dn(/[a-z_+-/]{1,256}?/i);case" ":return dn(/[^\S\n\r]/);default:return m(f)}})(t)||{invalidReason:"missing Intl.DateTimeFormat.formatToParts support"};return f.token=t,f}(e,t))),i=s.find((t=>t.invalidReason));if(i)return{input:e,tokens:r,invalidReason:i.invalidReason};{const[t,n]=function(t){return[`^${t.map((t=>t.regex)).reduce(((t,e)=>`${t}(${e.source})`),"")}$`,t]}(s),i=RegExp(t,"i"),[a,u]=function(t,e,n){const r=t.match(e);if(r){const t={};let e=1;for(const s in n)if(wt(n,s)){const i=n[s],a=i.groups?i.groups+1:1;!i.literal&&i.token&&(t[i.token.val[0]]=i.deser(r.slice(e,e+a))),e+=a}return[r,t]}return[r,{}]}(e,i,n),[l,c,h]=u?function(t){let e,n=null;return dt(t.z)||(n=_.create(t.z)),dt(t.Z)||(n||(n=new et(t.Z)),e=t.Z),dt(t.q)||(t.M=3*(t.q-1)+1),dt(t.h)||(t.h<12&&1===t.a?t.h+=12:12===t.h&&0===t.a&&(t.h=0)),0===t.G&&t.y&&(t.y=-t.y),dt(t.u)||(t.S=Ot(t.u)),[Object.keys(t).reduce(((e,n)=>{const r=(t=>{switch(t){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}})(n);return r&&(e[r]=t[n]),e}),{}),n,e]}(u):[null,null,void 0];if(wt(u,"a")&&wt(u,"H"))throw new o("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:r,regex:i,rawMatches:a,matches:u,result:l,zone:c,specificOffset:h}}}function wn(t,e){if(!t)return null;const n=Qt.create(e,t).dtFormatter((fn||(fn=Xn.fromMillis(1555555555555)),fn)),r=n.formatToParts(),s=n.resolvedOptions();return r.map((e=>function(t,e,n){const{type:r,value:s}=t;if("literal"===r){const t=/^\s+$/.test(s);return{literal:!t,val:t?" ":s}}const i=e[r];let a=r;"hour"===r&&(a=null!=e.hour12?e.hour12?"hour12":"hour24":null!=e.hourCycle?"h11"===e.hourCycle||"h12"===e.hourCycle?"hour12":"hour24":n.hour12?"hour12":"hour24");let o=mn[a];if("object"==typeof o&&(o=o[i]),o)return{literal:!1,val:o}}(e,t,s)))}const pn=[0,31,59,90,120,151,181,212,243,273,304,334],vn=[0,31,60,91,121,152,182,213,244,274,305,335];function Tn(t,e){return new Kt("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function Sn(t,e,n){const r=new Date(Date.UTC(t,e-1,n));t<100&&t>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return 0===s?7:s}function On(t,e,n){return n+(kt(t)?vn:pn)[e-1]}function bn(t,e){const n=kt(t)?vn:pn,r=n.findIndex((t=>t<e));return{month:r+1,day:e-n[r]}}function kn(t){const{year:e,month:n,day:r}=t,s=On(e,n,r),i=Sn(e,n,r);let a,o=Math.floor((s-i+10)/7);return o<1?(a=e-1,o=Vt(a)):o>Vt(e)?(a=e+1,o=1):a=e,{weekYear:a,weekNumber:o,weekday:i,...$t(t)}}function Nn(t){const{weekYear:e,weekNumber:n,weekday:r}=t,s=Sn(e,1,4),i=Nt(e);let a,o=7*n+r-s-3;o<1?(a=e-1,o+=Nt(a)):o>i?(a=e+1,o-=Nt(e)):a=e;const{month:u,day:l}=bn(a,o);return{year:a,month:u,day:l,...$t(t)}}function Mn(t){const{year:e,month:n,day:r}=t;return{year:e,ordinal:On(e,n,r),...$t(t)}}function Dn(t){const{year:e,ordinal:n}=t,{month:r,day:s}=bn(e,n);return{year:e,month:r,day:s,...$t(t)}}function Vn(t){const e=ft(t.year),n=pt(t.month,1,12),r=pt(t.day,1,Mt(t.year,t.month));return e?n?!r&&Tn("day",t.day):Tn("month",t.month):Tn("year",t.year)}function En(t){const{hour:e,minute:n,second:r,millisecond:s}=t,i=pt(e,0,23)||24===e&&0===n&&0===r&&0===s,a=pt(n,0,59),o=pt(r,0,59),u=pt(s,0,999);return i?a?o?!u&&Tn("millisecond",s):Tn("second",r):Tn("minute",n):Tn("hour",e)}const xn="Invalid DateTime",In=864e13;function Cn(t){return new Kt("unsupported zone",`the zone "${t.name}" is not supported`)}function Fn(t){return null===t.weekData&&(t.weekData=kn(t.c)),t.weekData}function Zn(t,e){const n={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Xn({...n,...e,old:n})}function $n(t,e,n){let r=t-60*e*1e3;const s=n.offset(r);if(e===s)return[r,e];r-=60*(s-e)*1e3;const i=n.offset(r);return s===i?[r,s]:[t-60*Math.min(s,i)*1e3,Math.max(s,i)]}function Ln(t,e){const n=new Date(t+=60*e*1e3);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function zn(t,e,n){return $n(Dt(t),e,n)}function qn(t,e){const n=t.o,r=t.c.year+Math.trunc(e.years),s=t.c.month+Math.trunc(e.months)+3*Math.trunc(e.quarters),i={...t.c,year:r,month:s,day:Math.min(t.c.day,Mt(r,s))+Math.trunc(e.days)+7*Math.trunc(e.weeks)},a=Ge.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),o=Dt(i);let[u,l]=$n(o,n,t.zone);return 0!==a&&(u+=a,l=t.zone.offset(u)),{ts:u,o:l}}function jn(t,e,n,r,s,i){const{setZone:a,zone:o}=n;if(t&&0!==Object.keys(t).length||e){const r=e||o,s=Xn.fromObject(t,{...n,zone:r,specificOffset:i});return a?s:s.setZone(o)}return Xn.invalid(new Kt("unparsable",`the input "${s}" can't be parsed as ${r}`))}function An(t,e,n=!0){return t.isValid?Qt.create(X.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(t,e):null}function Un(t,e){const n=t.c.year>9999||t.c.year<0;let r="";return n&&t.c.year>=0&&(r+="+"),r+=vt(t.c.year,n?6:4),e?(r+="-",r+=vt(t.c.month),r+="-",r+=vt(t.c.day)):(r+=vt(t.c.month),r+=vt(t.c.day)),r}function _n(t,e,n,r,s,i){let a=vt(t.c.hour);return e?(a+=":",a+=vt(t.c.minute),0===t.c.millisecond&&0===t.c.second&&n||(a+=":")):a+=vt(t.c.minute),0===t.c.millisecond&&0===t.c.second&&n||(a+=vt(t.c.second),0===t.c.millisecond&&r||(a+=".",a+=vt(t.c.millisecond,3))),s&&(t.isOffsetFixed&&0===t.offset&&!i?a+="Z":t.o<0?(a+="-",a+=vt(Math.trunc(-t.o/60)),a+=":",a+=vt(Math.trunc(-t.o%60))):(a+="+",a+=vt(Math.trunc(t.o/60)),a+=":",a+=vt(Math.trunc(t.o%60)))),i&&(a+="["+t.zone.ianaName+"]"),a}const Hn={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},Rn={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},Wn={ordinal:1,hour:0,minute:0,second:0,millisecond:0},Jn=["year","month","day","hour","minute","second","millisecond"],Yn=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],Pn=["year","ordinal","hour","minute","second","millisecond"];function Gn(t){const e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new u(t);return e}function Bn(t,e){const n=rt(e.zone,ht.defaultZone),r=X.fromObject(e),s=ht.now();let i,a;if(dt(t.year))i=s;else{for(const e of Jn)dt(t[e])&&(t[e]=Hn[e]);const e=Vn(t)||En(t);if(e)return Xn.invalid(e);const r=n.offset(s);[i,a]=zn(t,r,n)}return new Xn({ts:i,zone:n,loc:r,o:a})}function Qn(t,e,n){const r=!!dt(n.round)||n.round,s=(t,s)=>(t=bt(t,r||n.calendary?0:2,!0),e.loc.clone(n).relFormatter(n).format(t,s)),i=r=>n.calendary?e.hasSame(t,r)?0:e.startOf(r).diff(t.startOf(r),r).get(r):e.diff(t,r).get(r);if(n.unit)return s(i(n.unit),n.unit);for(const t of n.units){const e=i(t);if(Math.abs(e)>=1)return s(e,t)}return s(t>e?-0:0,n.units[n.units.length-1])}function Kn(t){let e,n={};return t.length>0&&"object"==typeof t[t.length-1]?(n=t[t.length-1],e=Array.from(t).slice(0,t.length-1)):e=Array.from(t),[n,e]}class Xn{constructor(t){const e=t.zone||ht.defaultZone;let n=t.invalid||(Number.isNaN(t.ts)?new Kt("invalid input"):null)||(e.isValid?null:Cn(e));this.ts=dt(t.ts)?ht.now():t.ts;let r=null,s=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(e))[r,s]=[t.old.c,t.old.o];else{const t=e.offset(this.ts);r=Ln(this.ts,t),n=Number.isNaN(r.year)?new Kt("invalid input"):null,r=n?null:r,s=n?null:t}this._zone=e,this.loc=t.loc||X.create(),this.invalid=n,this.weekData=null,this.c=r,this.o=s,this.isLuxonDateTime=!0}static now(){return new Xn({})}static local(){const[t,e]=Kn(arguments),[n,r,s,i,a,o,u]=e;return Bn({year:n,month:r,day:s,hour:i,minute:a,second:o,millisecond:u},t)}static utc(){const[t,e]=Kn(arguments),[n,r,s,i,a,o,u]=e;return t.zone=et.utcInstance,Bn({year:n,month:r,day:s,hour:i,minute:a,second:o,millisecond:u},t)}static fromJSDate(t,e={}){const n=(r=t,"[object Date]"===Object.prototype.toString.call(r)?t.valueOf():NaN);var r;if(Number.isNaN(n))return Xn.invalid("invalid input");const s=rt(e.zone,ht.defaultZone);return s.isValid?new Xn({ts:n,zone:s,loc:X.fromObject(e)}):Xn.invalid(Cn(s))}static fromMillis(t,e={}){if(mt(t))return t<-In||t>In?Xn.invalid("Timestamp out of range"):new Xn({ts:t,zone:rt(e.zone,ht.defaultZone),loc:X.fromObject(e)});throw new l(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,e={}){if(mt(t))return new Xn({ts:1e3*t,zone:rt(e.zone,ht.defaultZone),loc:X.fromObject(e)});throw new l("fromSeconds requires a numerical input")}static fromObject(t,e={}){t=t||{};const n=rt(e.zone,ht.defaultZone);if(!n.isValid)return Xn.invalid(Cn(n));const r=ht.now(),s=dt(e.specificOffset)?n.offset(r):e.specificOffset,i=Ft(t,Gn),a=!dt(i.ordinal),u=!dt(i.year),l=!dt(i.month)||!dt(i.day),c=u||l,h=i.weekYear||i.weekNumber,d=X.fromObject(e);if((c||a)&&h)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(l&&a)throw new o("Can't mix ordinal dates with month/day");const m=h||i.weekday&&!c;let f,y,g=Ln(r,s);m?(f=Yn,y=Rn,g=kn(g)):a?(f=Pn,y=Wn,g=Mn(g)):(f=Jn,y=Hn);let w=!1;for(const t of f)dt(i[t])?i[t]=w?y[t]:g[t]:w=!0;const p=m?function(t){const e=ft(t.weekYear),n=pt(t.weekNumber,1,Vt(t.weekYear)),r=pt(t.weekday,1,7);return e?n?!r&&Tn("weekday",t.weekday):Tn("week",t.week):Tn("weekYear",t.weekYear)}(i):a?function(t){const e=ft(t.year),n=pt(t.ordinal,1,Nt(t.year));return e?!n&&Tn("ordinal",t.ordinal):Tn("year",t.year)}(i):Vn(i),v=p||En(i);if(v)return Xn.invalid(v);const T=m?Nn(i):a?Dn(i):i,[S,O]=zn(T,s,n),b=new Xn({ts:S,zone:n,o:O,loc:d});return i.weekday&&c&&t.weekday!==b.weekday?Xn.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${b.toISO()}`):b}static fromISO(t,e={}){const[n,r]=function(t){return ne(t,[Ve,Ce],[Ee,Fe],[xe,Ze],[Ie,$e])}(t);return jn(n,r,e,"ISO 8601",t)}static fromRFC2822(t,e={}){const[n,r]=function(t){return ne(function(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}(t),[Se,Oe])}(t);return jn(n,r,e,"RFC 2822",t)}static fromHTTP(t,e={}){const[n,r]=function(t){return ne(t,[be,Me],[ke,Me],[Ne,De])}(t);return jn(n,r,e,"HTTP",e)}static fromFormat(t,e,n={}){if(dt(t)||dt(e))throw new l("fromFormat requires an input string and a format");const{locale:r=null,numberingSystem:s=null}=n,i=X.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),[a,o,u,c]=function(t,e,n){const{result:r,zone:s,specificOffset:i,invalidReason:a}=gn(t,e,n);return[r,s,i,a]}(i,t,e);return c?Xn.invalid(c):jn(a,o,n,`format ${e}`,t,u)}static fromString(t,e,n={}){return Xn.fromFormat(t,e,n)}static fromSQL(t,e={}){const[n,r]=function(t){return ne(t,[ze,Ce],[qe,je])}(t);return jn(n,r,e,"SQL",t)}static invalid(t,e=null){if(!t)throw new l("need to specify a reason the DateTime is invalid");const n=t instanceof Kt?t:new Kt(t,e);if(ht.throwOnInvalid)throw new s(n);return new Xn({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,e={}){const n=wn(t,X.fromObject(e));return n?n.map((t=>t?t.val:null)).join(""):null}static expandFormat(t,e={}){return yn(Qt.parseFormat(t),X.fromObject(e)).map((t=>t.val)).join("")}get(t){return this[t]}get isValid(){return null===this.invalid}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Fn(this).weekYear:NaN}get weekNumber(){return this.isValid?Fn(this).weekNumber:NaN}get weekday(){return this.isValid?Fn(this).weekday:NaN}get ordinal(){return this.isValid?Mn(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ke.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ke.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ke.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ke.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return!this.isOffsetFixed&&(this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset)}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];const t=864e5,e=6e4,n=Dt(this.c),r=this.zone.offset(n-t),s=this.zone.offset(n+t),i=this.zone.offset(n-r*e),a=this.zone.offset(n-s*e);if(i===a)return[this];const o=n-i*e,u=n-a*e,l=Ln(o,i),c=Ln(u,a);return l.hour===c.hour&&l.minute===c.minute&&l.second===c.second&&l.millisecond===c.millisecond?[Zn(this,{ts:o}),Zn(this,{ts:u})]:[this]}get isInLeapYear(){return kt(this.year)}get daysInMonth(){return Mt(this.year,this.month)}get daysInYear(){return this.isValid?Nt(this.year):NaN}get weeksInWeekYear(){return this.isValid?Vt(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:e,numberingSystem:n,calendar:r}=Qt.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:e,numberingSystem:n,outputCalendar:r}}toUTC(t=0,e={}){return this.setZone(et.instance(t),e)}toLocal(){return this.setZone(ht.defaultZone)}setZone(t,{keepLocalTime:e=!1,keepCalendarTime:n=!1}={}){if((t=rt(t,ht.defaultZone)).equals(this.zone))return this;if(t.isValid){let r=this.ts;if(e||n){const e=t.offset(this.ts),n=this.toObject();[r]=zn(n,e,t)}return Zn(this,{ts:r,zone:t})}return Xn.invalid(Cn(t))}reconfigure({locale:t,numberingSystem:e,outputCalendar:n}={}){return Zn(this,{loc:this.loc.clone({locale:t,numberingSystem:e,outputCalendar:n})})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const e=Ft(t,Gn),n=!dt(e.weekYear)||!dt(e.weekNumber)||!dt(e.weekday),r=!dt(e.ordinal),s=!dt(e.year),i=!dt(e.month)||!dt(e.day),a=s||i,u=e.weekYear||e.weekNumber;if((a||r)&&u)throw new o("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(i&&r)throw new o("Can't mix ordinal dates with month/day");let l;n?l=Nn({...kn(this.c),...e}):dt(e.ordinal)?(l={...this.toObject(),...e},dt(e.day)&&(l.day=Math.min(Mt(l.year,l.month),l.day))):l=Dn({...Mn(this.c),...e});const[c,h]=zn(l,this.o,this.zone);return Zn(this,{ts:c,o:h})}plus(t){return this.isValid?Zn(this,qn(this,Ge.fromDurationLike(t))):this}minus(t){return this.isValid?Zn(this,qn(this,Ge.fromDurationLike(t).negate())):this}startOf(t){if(!this.isValid)return this;const e={},n=Ge.normalizeUnit(t);switch(n){case"years":e.month=1;case"quarters":case"months":e.day=1;case"weeks":case"days":e.hour=0;case"hours":e.minute=0;case"minutes":e.second=0;case"seconds":e.millisecond=0}if("weeks"===n&&(e.weekday=1),"quarters"===n){const t=Math.ceil(this.month/3);e.month=3*(t-1)+1}return this.set(e)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,e={}){return this.isValid?Qt.create(this.loc.redefaultToEN(e)).formatDateTimeFromString(this,t):xn}toLocaleString(t=f,e={}){return this.isValid?Qt.create(this.loc.clone(e),t).formatDateTime(this):xn}toLocaleParts(t={}){return this.isValid?Qt.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:e=!1,suppressMilliseconds:n=!1,includeOffset:r=!0,extendedZone:s=!1}={}){if(!this.isValid)return null;const i="extended"===t;let a=Un(this,i);return a+="T",a+=_n(this,i,e,n,r,s),a}toISODate({format:t="extended"}={}){return this.isValid?Un(this,"extended"===t):null}toISOWeekDate(){return An(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:e=!1,includeOffset:n=!0,includePrefix:r=!1,extendedZone:s=!1,format:i="extended"}={}){return this.isValid?(r?"T":"")+_n(this,"extended"===i,e,t,n,s):null}toRFC2822(){return An(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return An(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?Un(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:e=!1,includeOffsetSpace:n=!0}={}){let r="HH:mm:ss.SSS";return(e||t)&&(n&&(r+=" "),e?r+="z":t&&(r+="ZZ")),An(this,r,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():xn}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const e={...this.c};return t.includeConfig&&(e.outputCalendar=this.outputCalendar,e.numberingSystem=this.loc.numberingSystem,e.locale=this.loc.locale),e}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,e="milliseconds",n={}){if(!this.isValid||!t.isValid)return Ge.invalid("created by diffing an invalid DateTime");const r={locale:this.locale,numberingSystem:this.numberingSystem,...n},s=(o=e,Array.isArray(o)?o:[o]).map(Ge.normalizeUnit),i=t.valueOf()>this.valueOf(),a=function(t,e,n,r){let[s,i,a,o]=function(t,e,n){const r=[["years",(t,e)=>e.year-t.year],["quarters",(t,e)=>e.quarter-t.quarter+4*(e.year-t.year)],["months",(t,e)=>e.month-t.month+12*(e.year-t.year)],["weeks",(t,e)=>{const n=Xe(t,e);return(n-n%7)/7}],["days",Xe]],s={},i=t;let a,o;for(const[u,l]of r)n.indexOf(u)>=0&&(a=u,s[u]=l(t,e),o=i.plus(s),o>e?(s[u]--,(t=i.plus(s))>e&&(o=t,s[u]--,t=i.plus(s))):t=o);return[t,s,o,a]}(t,e,n);const u=e-s,l=n.filter((t=>["hours","minutes","seconds","milliseconds"].indexOf(t)>=0));0===l.length&&(a<e&&(a=s.plus({[o]:1})),a!==s&&(i[o]=(i[o]||0)+u/(a-s)));const c=Ge.fromObject(i,r);return l.length>0?Ge.fromMillis(u,r).shiftTo(...l).plus(c):c}(i?this:t,i?t:this,s,r);var o;return i?a.negate():a}diffNow(t="milliseconds",e={}){return this.diff(Xn.now(),t,e)}until(t){return this.isValid?Qe.fromDateTimes(this,t):this}hasSame(t,e){if(!this.isValid)return!1;const n=t.valueOf(),r=this.setZone(t.zone,{keepLocalTime:!0});return r.startOf(e)<=n&&n<=r.endOf(e)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const e=t.base||Xn.fromObject({},{zone:this.zone}),n=t.padding?this<e?-t.padding:t.padding:0;let r=["years","months","days","hours","minutes","seconds"],s=t.unit;return Array.isArray(t.unit)&&(r=t.unit,s=void 0),Qn(e,this.plus(n),{...t,numeric:"always",units:r,unit:s})}toRelativeCalendar(t={}){return this.isValid?Qn(t.base||Xn.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(Xn.isDateTime))throw new l("min requires all arguments be DateTimes");return gt(t,(t=>t.valueOf()),Math.min)}static max(...t){if(!t.every(Xn.isDateTime))throw new l("max requires all arguments be DateTimes");return gt(t,(t=>t.valueOf()),Math.max)}static fromFormatExplain(t,e,n={}){const{locale:r=null,numberingSystem:s=null}=n;return gn(X.fromOpts({locale:r,numberingSystem:s,defaultToEN:!0}),t,e)}static fromStringExplain(t,e,n={}){return Xn.fromFormatExplain(t,e,n)}static get DATE_SHORT(){return f}static get DATE_MED(){return y}static get DATE_MED_WITH_WEEKDAY(){return g}static get DATE_FULL(){return w}static get DATE_HUGE(){return p}static get TIME_SIMPLE(){return v}static get TIME_WITH_SECONDS(){return T}static get TIME_WITH_SHORT_OFFSET(){return S}static get TIME_WITH_LONG_OFFSET(){return O}static get TIME_24_SIMPLE(){return b}static get TIME_24_WITH_SECONDS(){return k}static get TIME_24_WITH_SHORT_OFFSET(){return N}static get TIME_24_WITH_LONG_OFFSET(){return M}static get DATETIME_SHORT(){return D}static get DATETIME_SHORT_WITH_SECONDS(){return V}static get DATETIME_MED(){return E}static get DATETIME_MED_WITH_SECONDS(){return x}static get DATETIME_MED_WITH_WEEKDAY(){return I}static get DATETIME_FULL(){return C}static get DATETIME_FULL_WITH_SECONDS(){return F}static get DATETIME_HUGE(){return Z}static get DATETIME_HUGE_WITH_SECONDS(){return $}}function tr(t){if(Xn.isDateTime(t))return t;if(t&&t.valueOf&&mt(t.valueOf()))return Xn.fromJSDate(t);if(t&&"object"==typeof t)return Xn.fromObject(t);throw new l(`Unknown datetime argument: ${t}, of type ${typeof t}`)}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[4325],{95648:(E,_,T)=>{var R,e,A,n,N,S,C,i,t,O,o,r,I,L,P,M,D,u,l,a,B,c,U,G,f,F,d,s,H,g,p,m,Y,X,V,W,h,x,y,v,b,k,w,K,Z,Q,q,J,j,z,$,EE,_E,TE,RE,eE,AE,nE,NE,SE,CE;T.d(_,{$y:()=>c,AH:()=>e,CS:()=>q,DD:()=>i,Dd:()=>H,Em:()=>B,JS:()=>Z,Ky:()=>t,Lh:()=>J,Qb:()=>AE,RL:()=>R,RS:()=>NE,TF:()=>a,Tx:()=>N,UR:()=>D,UX:()=>eE,bj:()=>Q,eZ:()=>C,id:()=>f,kP:()=>W,r4:()=>v,sj:()=>h,v2:()=>A,zQ:()=>s,zV:()=>M}),function(E){E[E.BUTT=0]="BUTT",E[E.ROUND=1]="ROUND",E[E.SQUARE=2]="SQUARE",E[E.UNKNOWN=4]="UNKNOWN"}(R||(R={})),function(E){E[E.BEVEL=0]="BEVEL",E[E.ROUND=1]="ROUND",E[E.MITER=2]="MITER",E[E.UNKNOWN=4]="UNKNOWN"}(e||(e={})),function(E){E[E.SCREEN=0]="SCREEN",E[E.MAP=1]="MAP"}(A||(A={})),function(E){E[E.Tint=0]="Tint",E[E.Ignore=1]="Ignore",E[E.Multiply=99]="Multiply"}(n||(n={})),function(E){E.Both="Both",E.JustBegin="JustBegin",E.JustEnd="JustEnd",E.None="None"}(N||(N={})),function(E){E[E.Mosaic=0]="Mosaic",E[E.Centered=1]="Centered"}(S||(S={})),function(E){E[E.Normal=0]="Normal",E[E.Superscript=1]="Superscript",E[E.Subscript=2]="Subscript"}(C||(C={})),function(E){E[E.MSSymbol=0]="MSSymbol",E[E.Unicode=1]="Unicode"}(i||(i={})),function(E){E[E.Unspecified=0]="Unspecified",E[E.TrueType=1]="TrueType",E[E.PSOpenType=2]="PSOpenType",E[E.TTOpenType=3]="TTOpenType",E[E.Type1=4]="Type1"}(t||(t={})),function(E){E[E.Display=0]="Display",E[E.Map=1]="Map"}(O||(O={})),function(E){E.None="None",E.Loop="Loop",E.Oscillate="Oscillate"}(o||(o={})),function(E){E[E.Z=0]="Z",E[E.X=1]="X",E[E.Y=2]="Y"}(r||(r={})),function(E){E[E.XYZ=0]="XYZ",E[E.ZXY=1]="ZXY",E[E.YXZ=2]="YXZ"}(I||(I={})),function(E){E[E.Rectangle=0]="Rectangle",E[E.RoundedRectangle=1]="RoundedRectangle",E[E.Oval=2]="Oval"}(L||(L={})),function(E){E[E.None=0]="None",E[E.Alpha=1]="Alpha",E[E.Screen=2]="Screen",E[E.Multiply=3]="Multiply",E[E.Add=4]="Add"}(P||(P={})),function(E){E[E.TTB=0]="TTB",E[E.RTL=1]="RTL",E[E.BTT=2]="BTT"}(M||(M={})),function(E){E[E.None=0]="None",E[E.SignPost=1]="SignPost",E[E.FaceNearPlane=2]="FaceNearPlane"}(D||(D={})),function(E){E[E.Float=0]="Float",E[E.String=1]="String",E[E.Boolean=2]="Boolean"}(u||(u={})),function(E){E[E.Intersect=0]="Intersect",E[E.Subtract=1]="Subtract"}(l||(l={})),function(E){E.OpenEnded="OpenEnded",E.Block="Block",E.Crossed="Crossed"}(a||(a={})),function(E){E.FullGeometry="FullGeometry",E.PerpendicularFromFirstSegment="PerpendicularFromFirstSegment",E.ReversedFirstSegment="ReversedFirstSegment",E.PerpendicularToSecondSegment="PerpendicularToSecondSegment",E.SecondSegmentWithTicks="SecondSegmentWithTicks",E.DoublePerpendicular="DoublePerpendicular",E.OppositeToFirstSegment="OppositeToFirstSegment",E.TriplePerpendicular="TriplePerpendicular",E.HalfCircleFirstSegment="HalfCircleFirstSegment",E.HalfCircleSecondSegment="HalfCircleSecondSegment",E.HalfCircleExtended="HalfCircleExtended",E.OpenCircle="OpenCircle",E.CoverageEdgesWithTicks="CoverageEdgesWithTicks",E.GapExtentWithDoubleTicks="GapExtentWithDoubleTicks",E.GapExtentMidline="GapExtentMidline",E.Chevron="Chevron",E.PerpendicularWithArc="PerpendicularWithArc",E.ClosedHalfCircle="ClosedHalfCircle",E.TripleParallelExtended="TripleParallelExtended",E.ParallelWithTicks="ParallelWithTicks",E.Parallel="Parallel",E.PerpendicularToFirstSegment="PerpendicularToFirstSegment",E.ParallelOffset="ParallelOffset",E.OffsetOpposite="OffsetOpposite",E.OffsetSame="OffsetSame",E.CircleWithArc="CircleWithArc",E.DoubleJog="DoubleJog",E.PerpendicularOffset="PerpendicularOffset",E.LineExcludingLastSegment="LineExcludingLastSegment",E.MultivertexArrow="MultivertexArrow",E.CrossedArrow="CrossedArrow",E.ChevronArrow="ChevronArrow",E.ChevronArrowOffset="ChevronArrowOffset",E.PartialFirstSegment="PartialFirstSegment",E.Arch="Arch",E.CurvedParallelTicks="CurvedParallelTicks",E.Arc90Degrees="Arc90Degrees"}(B||(B={})),function(E){E.Mitered="Mitered",E.Bevelled="Bevelled",E.Rounded="Rounded",E.Square="Square",E.TrueBuffer="TrueBuffer"}(c||(c={})),function(E){E.ClosePath="ClosePath",E.ConvexHull="ConvexHull",E.RectangularBox="RectangularBox"}(U||(U={})),function(E){E.BeginningOfLine="BeginningOfLine",E.EndOfLine="EndOfLine"}(G||(G={})),function(E){E.Mitered="Mitered",E.Bevelled="Bevelled",E.Rounded="Rounded",E.Square="Square"}(f||(f={})),function(E){E.Fast="Fast",E.Accurate="Accurate"}(F||(F={})),function(E){E.BeginningOfLine="BeginningOfLine",E.EndOfLine="EndOfLine"}(d||(d={})),function(E){E.Sinus="Sinus",E.Square="Square",E.Triangle="Triangle",E.Random="Random"}(s||(s={})),function(E){E[E.None=0]="None",E[E.Default=1]="Default",E[E.Force=2]="Force"}(H||(H={})),function(E){E[E.Buffered=0]="Buffered",E[E.Left=1]="Left",E[E.Right=2]="Right",E[E.AlongLine=3]="AlongLine"}(g||(g={})),function(E){E[E.Linear=0]="Linear",E[E.Rectangular=1]="Rectangular",E[E.Circular=2]="Circular",E[E.Buffered=3]="Buffered"}(p||(p={})),function(E){E[E.Discrete=0]="Discrete",E[E.Continuous=1]="Continuous"}(m||(m={})),function(E){E[E.AcrossLine=0]="AcrossLine",E[E.AloneLine=1]="AloneLine"}(Y||(Y={})),function(E){E[E.Left=0]="Left",E[E.Right=1]="Right",E[E.Center=2]="Center",E[E.Justify=3]="Justify"}(X||(X={})),function(E){E[E.Base=0]="Base",E[E.MidPoint=1]="MidPoint",E[E.ThreePoint=2]="ThreePoint",E[E.FourPoint=3]="FourPoint",E[E.Underline=4]="Underline",E[E.CircularCW=5]="CircularCW",E[E.CircularCCW=6]="CircularCCW"}(V||(V={})),function(E){E.Butt="Butt",E.Round="Round",E.Square="Square"}(W||(W={})),function(E){E.NoConstraint="NoConstraint",E.HalfPattern="HalfPattern",E.HalfGap="HalfGap",E.FullPattern="FullPattern",E.FullGap="FullGap",E.Custom="Custom"}(h||(h={})),function(E){E[E.None=-1]="None",E[E.Custom=0]="Custom",E[E.Circle=1]="Circle",E[E.OpenArrow=2]="OpenArrow",E[E.ClosedArrow=3]="ClosedArrow",E[E.Diamond=4]="Diamond"}(x||(x={})),function(E){E[E.ExtraLeading=0]="ExtraLeading",E[E.Multiple=1]="Multiple",E[E.Exact=2]="Exact"}(y||(y={})),function(E){E.Bevel="Bevel",E.Round="Round",E.Miter="Miter"}(v||(v={})),function(E){E[E.Default=0]="Default",E[E.String=1]="String",E[E.Numeric=2]="Numeric"}(b||(b={})),function(E){E[E.InsidePolygon=0]="InsidePolygon",E[E.PolygonCenter=1]="PolygonCenter",E[E.RandomlyInsidePolygon=2]="RandomlyInsidePolygon"}(k||(k={})),function(E){E[E.Tint=0]="Tint",E[E.Replace=1]="Replace",E[E.Multiply=2]="Multiply"}(w||(w={})),function(E){E[E.ClipAtBoundary=0]="ClipAtBoundary",E[E.RemoveIfCenterOutsideBoundary=1]="RemoveIfCenterOutsideBoundary",E[E.DoNotTouchBoundary=2]="DoNotTouchBoundary",E[E.DoNotClip=3]="DoNotClip"}(K||(K={})),function(E){E.NoConstraint="NoConstraint",E.WithMarkers="WithMarkers",E.WithFullGap="WithFullGap",E.WithHalfGap="WithHalfGap",E.Custom="Custom"}(Z||(Z={})),function(E){E.Fixed="Fixed",E.Random="Random",E.RandomFixedQuantity="RandomFixedQuantity"}(Q||(Q={})),function(E){E.LineMiddle="LineMiddle",E.LineBeginning="LineBeginning",E.LineEnd="LineEnd",E.SegmentMidpoint="SegmentMidpoint"}(q||(q={})),function(E){E.OnPolygon="OnPolygon",E.CenterOfMass="CenterOfMass",E.BoundingBoxCenter="BoundingBoxCenter"}(J||(J={})),function(E){E[E.Low=0]="Low",E[E.Medium=1]="Medium",E[E.High=2]="High"}(j||(j={})),function(E){E[E.MarkerCenter=0]="MarkerCenter",E[E.MarkerBounds=1]="MarkerBounds"}(z||(z={})),function(E){E[E.None=0]="None",E[E.PropUniform=1]="PropUniform",E[E.PropNonuniform=2]="PropNonuniform",E[E.DifUniform=3]="DifUniform",E[E.DifNonuniform=4]="DifNonuniform"}($||($={})),function(E){E.Tube="Tube",E.Strip="Strip",E.Wall="Wall"}(EE||(EE={})),function(E){E[E.Random=0]="Random",E[E.Increasing=1]="Increasing",E[E.Decreasing=2]="Decreasing",E[E.IncreasingThenDecreasing=3]="IncreasingThenDecreasing"}(_E||(_E={})),function(E){E[E.Relative=0]="Relative",E[E.Absolute=1]="Absolute"}(TE||(TE={})),function(E){E[E.Normal=0]="Normal",E[E.LowerCase=1]="LowerCase",E[E.Allcaps=2]="Allcaps"}(RE||(RE={})),function(E){E[E.LTR=0]="LTR",E[E.RTL=1]="RTL"}(eE||(eE={})),function(E){E.Draft="Draft",E.Picture="Picture",E.Text="Text"}(AE||(AE={})),function(E){E[E.Top=0]="Top",E[E.Center=1]="Center",E[E.Baseline=2]="Baseline",E[E.Bottom=3]="Bottom"}(nE||(nE={})),function(E){E[E.Right=0]="Right",E[E.Upright=1]="Upright"}(NE||(NE={})),function(E){E[E.Small=0]="Small",E[E.Medium=1]="Medium",E[E.Large=2]="Large"}(SE||(SE={})),function(E){E[E.Calm=0]="Calm",E[E.Rippled=1]="Rippled",E[E.Slight=2]="Slight",E[E.Moderate=3]="Moderate"}(CE||(CE={}))},16534:(E,_,T)=>{T.d(_,{$6:()=>G,BB:()=>L,Cj:()=>l,GS:()=>d,JS:()=>a,KA:()=>B,Kg:()=>N,NS:()=>I,S:()=>O,SQ:()=>c,T3:()=>u,U8:()=>o,Ux:()=>g,WD:()=>H,Wq:()=>s,XT:()=>t,av:()=>p,do:()=>P,gV:()=>m,gr:()=>A,i9:()=>n,iD:()=>i,k9:()=>e,mb:()=>r,oh:()=>S,pZ:()=>f,qu:()=>D,rL:()=>F,s4:()=>M,uk:()=>C,yc:()=>U,zE:()=>Y});var R=T(80442);const e=1e-30,A=4294967295,n=512,N=128,S=511,C=29,i=24,t=8,O=1,o=2,r=3,I=2,L=1,P=1.05,M=((0,R.Z)("featurelayer-force-marker-text-draw-order"),2),D=128-2*M,u=8,l=500,a=10,B=1024,c=2,U=0,G=1,f=4,F=8,d=16,s=4,H=1,g=4,p=8,m=32,Y=64},35371:(E,_,T)=>{var R,e,A,n,N,S,C,i,t,O,o,r,I,L,P,M,D,u,l,a,B,c,U;T.d(_,{Br:()=>M,LR:()=>S,Lu:()=>G,MX:()=>e,No:()=>I,Tg:()=>D,VI:()=>L,VY:()=>c,Wf:()=>C,_g:()=>B,cw:()=>o,db:()=>n,e8:()=>r,g:()=>i,l1:()=>u,lP:()=>P,lk:()=>R,q_:()=>f,qi:()=>a,w0:()=>N,wb:()=>t,xS:()=>O,zi:()=>A}),function(E){E[E.DEPTH_BUFFER_BIT=256]="DEPTH_BUFFER_BIT",E[E.STENCIL_BUFFER_BIT=1024]="STENCIL_BUFFER_BIT",E[E.COLOR_BUFFER_BIT=16384]="COLOR_BUFFER_BIT"}(R||(R={})),function(E){E[E.POINTS=0]="POINTS",E[E.LINES=1]="LINES",E[E.LINE_LOOP=2]="LINE_LOOP",E[E.LINE_STRIP=3]="LINE_STRIP",E[E.TRIANGLES=4]="TRIANGLES",E[E.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",E[E.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(e||(e={})),function(E){E[E.ZERO=0]="ZERO",E[E.ONE=1]="ONE",E[E.SRC_COLOR=768]="SRC_COLOR",E[E.ONE_MINUS_SRC_COLOR=769]="ONE_MINUS_SRC_COLOR",E[E.SRC_ALPHA=770]="SRC_ALPHA",E[E.ONE_MINUS_SRC_ALPHA=771]="ONE_MINUS_SRC_ALPHA",E[E.DST_ALPHA=772]="DST_ALPHA",E[E.ONE_MINUS_DST_ALPHA=773]="ONE_MINUS_DST_ALPHA",E[E.DST_COLOR=774]="DST_COLOR",E[E.ONE_MINUS_DST_COLOR=775]="ONE_MINUS_DST_COLOR",E[E.SRC_ALPHA_SATURATE=776]="SRC_ALPHA_SATURATE",E[E.CONSTANT_COLOR=32769]="CONSTANT_COLOR",E[E.ONE_MINUS_CONSTANT_COLOR=32770]="ONE_MINUS_CONSTANT_COLOR",E[E.CONSTANT_ALPHA=32771]="CONSTANT_ALPHA",E[E.ONE_MINUS_CONSTANT_ALPHA=32772]="ONE_MINUS_CONSTANT_ALPHA"}(A||(A={})),function(E){E[E.ADD=32774]="ADD",E[E.MIN=32775]="MIN",E[E.MAX=32776]="MAX",E[E.SUBTRACT=32778]="SUBTRACT",E[E.REVERSE_SUBTRACT=32779]="REVERSE_SUBTRACT"}(n||(n={})),function(E){E[E.ARRAY_BUFFER=34962]="ARRAY_BUFFER",E[E.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",E[E.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",E[E.PIXEL_PACK_BUFFER=35051]="PIXEL_PACK_BUFFER",E[E.PIXEL_UNPACK_BUFFER=35052]="PIXEL_UNPACK_BUFFER",E[E.COPY_READ_BUFFER=36662]="COPY_READ_BUFFER",E[E.COPY_WRITE_BUFFER=36663]="COPY_WRITE_BUFFER"}(N||(N={})),function(E){E[E.FRONT=1028]="FRONT",E[E.BACK=1029]="BACK",E[E.FRONT_AND_BACK=1032]="FRONT_AND_BACK"}(S||(S={})),function(E){E[E.CW=2304]="CW",E[E.CCW=2305]="CCW"}(C||(C={})),function(E){E[E.BYTE=5120]="BYTE",E[E.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",E[E.SHORT=5122]="SHORT",E[E.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",E[E.INT=5124]="INT",E[E.UNSIGNED_INT=5125]="UNSIGNED_INT",E[E.FLOAT=5126]="FLOAT"}(i||(i={})),function(E){E[E.NEVER=512]="NEVER",E[E.LESS=513]="LESS",E[E.EQUAL=514]="EQUAL",E[E.LEQUAL=515]="LEQUAL",E[E.GREATER=516]="GREATER",E[E.NOTEQUAL=517]="NOTEQUAL",E[E.GEQUAL=518]="GEQUAL",E[E.ALWAYS=519]="ALWAYS"}(t||(t={})),function(E){E[E.ZERO=0]="ZERO",E[E.KEEP=7680]="KEEP",E[E.REPLACE=7681]="REPLACE",E[E.INCR=7682]="INCR",E[E.DECR=7683]="DECR",E[E.INVERT=5386]="INVERT",E[E.INCR_WRAP=34055]="INCR_WRAP",E[E.DECR_WRAP=34056]="DECR_WRAP"}(O||(O={})),function(E){E[E.NEAREST=9728]="NEAREST",E[E.LINEAR=9729]="LINEAR",E[E.NEAREST_MIPMAP_NEAREST=9984]="NEAREST_MIPMAP_NEAREST",E[E.LINEAR_MIPMAP_NEAREST=9985]="LINEAR_MIPMAP_NEAREST",E[E.NEAREST_MIPMAP_LINEAR=9986]="NEAREST_MIPMAP_LINEAR",E[E.LINEAR_MIPMAP_LINEAR=9987]="LINEAR_MIPMAP_LINEAR"}(o||(o={})),function(E){E[E.CLAMP_TO_EDGE=33071]="CLAMP_TO_EDGE",E[E.REPEAT=10497]="REPEAT",E[E.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(r||(r={})),function(E){E[E.TEXTURE_2D=3553]="TEXTURE_2D",E[E.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",E[E.TEXTURE_3D=32879]="TEXTURE_3D",E[E.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",E[E.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",E[E.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",E[E.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",E[E.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",E[E.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",E[E.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY"}(I||(I={})),function(E){E[E.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",E[E.DEPTH_STENCIL=34041]="DEPTH_STENCIL",E[E.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",E[E.ALPHA=6406]="ALPHA",E[E.RGB=6407]="RGB",E[E.RGBA=6408]="RGBA",E[E.LUMINANCE=6409]="LUMINANCE",E[E.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",E[E.RED=6403]="RED",E[E.RG=33319]="RG",E[E.RED_INTEGER=36244]="RED_INTEGER",E[E.RG_INTEGER=33320]="RG_INTEGER",E[E.RGB_INTEGER=36248]="RGB_INTEGER",E[E.RGBA_INTEGER=36249]="RGBA_INTEGER"}(L||(L={})),function(E){E[E.RGBA4=32854]="RGBA4",E[E.R16F=33325]="R16F",E[E.RG16F=33327]="RG16F",E[E.RGB32F=34837]="RGB32F",E[E.RGBA16F=34842]="RGBA16F",E[E.R32F=33326]="R32F",E[E.RG32F=33328]="RG32F",E[E.RGBA32F=34836]="RGBA32F",E[E.R11F_G11F_B10F=35898]="R11F_G11F_B10F",E[E.RGB8=32849]="RGB8",E[E.RGBA8=32856]="RGBA8",E[E.RGB5_A1=32855]="RGB5_A1",E[E.R8=33321]="R8",E[E.RG8=33323]="RG8",E[E.R8I=33329]="R8I",E[E.R8UI=33330]="R8UI",E[E.R16I=33331]="R16I",E[E.R16UI=33332]="R16UI",E[E.R32I=33333]="R32I",E[E.R32UI=33334]="R32UI",E[E.RG8I=33335]="RG8I",E[E.RG8UI=33336]="RG8UI",E[E.RG16I=33337]="RG16I",E[E.RG16UI=33338]="RG16UI",E[E.RG32I=33339]="RG32I",E[E.RG32UI=33340]="RG32UI",E[E.RGB16F=34843]="RGB16F",E[E.RGB9_E5=35901]="RGB9_E5",E[E.SRGB8=35905]="SRGB8",E[E.SRGB8_ALPHA8=35907]="SRGB8_ALPHA8",E[E.RGB565=36194]="RGB565",E[E.RGBA32UI=36208]="RGBA32UI",E[E.RGB32UI=36209]="RGB32UI",E[E.RGBA16UI=36214]="RGBA16UI",E[E.RGB16UI=36215]="RGB16UI",E[E.RGBA8UI=36220]="RGBA8UI",E[E.RGB8UI=36221]="RGB8UI",E[E.RGBA32I=36226]="RGBA32I",E[E.RGB32I=36227]="RGB32I",E[E.RGBA16I=36232]="RGBA16I",E[E.RGB16I=36233]="RGB16I",E[E.RGBA8I=36238]="RGBA8I",E[E.RGB8I=36239]="RGB8I",E[E.R8_SNORM=36756]="R8_SNORM",E[E.RG8_SNORM=36757]="RG8_SNORM",E[E.RGB8_SNORM=36758]="RGB8_SNORM",E[E.RGBA8_SNORM=36759]="RGBA8_SNORM",E[E.RGB10_A2=32857]="RGB10_A2",E[E.RGB10_A2UI=36975]="RGB10_A2UI"}(P||(P={})),function(E){E[E.FLOAT=5126]="FLOAT",E[E.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",E[E.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",E[E.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",E[E.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",E[E.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",E[E.BYTE=5120]="BYTE",E[E.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",E[E.SHORT=5122]="SHORT",E[E.UNSIGNED_INT=5125]="UNSIGNED_INT",E[E.INT=5124]="INT",E[E.HALF_FLOAT=5131]="HALF_FLOAT",E[E.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",E[E.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",E[E.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",E[E.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV"}(M||(M={})),function(E){E[E.DEPTH_COMPONENT16=33189]="DEPTH_COMPONENT16",E[E.STENCIL_INDEX8=36168]="STENCIL_INDEX8",E[E.DEPTH_STENCIL=34041]="DEPTH_STENCIL",E[E.DEPTH_COMPONENT24=33190]="DEPTH_COMPONENT24",E[E.DEPTH_COMPONENT32F=36012]="DEPTH_COMPONENT32F",E[E.DEPTH24_STENCIL8=35056]="DEPTH24_STENCIL8",E[E.DEPTH32F_STENCIL8=36013]="DEPTH32F_STENCIL8"}(D||(D={})),function(E){E[E.STATIC_DRAW=35044]="STATIC_DRAW",E[E.DYNAMIC_DRAW=35048]="DYNAMIC_DRAW",E[E.STREAM_DRAW=35040]="STREAM_DRAW",E[E.STATIC_READ=35045]="STATIC_READ",E[E.DYNAMIC_READ=35049]="DYNAMIC_READ",E[E.STREAM_READ=35041]="STREAM_READ",E[E.STATIC_COPY=35046]="STATIC_COPY",E[E.DYNAMIC_COPY=35050]="DYNAMIC_COPY",E[E.STREAM_COPY=35042]="STREAM_COPY"}(u||(u={})),function(E){E[E.FRAGMENT_SHADER=35632]="FRAGMENT_SHADER",E[E.VERTEX_SHADER=35633]="VERTEX_SHADER"}(l||(l={})),function(E){E[E.FRAMEBUFFER=36160]="FRAMEBUFFER",E[E.READ_FRAMEBUFFER=36008]="READ_FRAMEBUFFER",E[E.DRAW_FRAMEBUFFER=36009]="DRAW_FRAMEBUFFER"}(a||(a={})),function(E){E[E.Texture=0]="Texture",E[E.BufferObject=1]="BufferObject",E[E.VertexArrayObject=2]="VertexArrayObject",E[E.Shader=3]="Shader",E[E.Program=4]="Program",E[E.FramebufferObject=5]="FramebufferObject",E[E.Renderbuffer=6]="Renderbuffer",E[E.Sync=7]="Sync",E[E.COUNT=8]="COUNT"}(B||(B={})),function(E){E[E.COLOR_ATTACHMENT0=36064]="COLOR_ATTACHMENT0",E[E.COLOR_ATTACHMENT1=36065]="COLOR_ATTACHMENT1",E[E.COLOR_ATTACHMENT2=36066]="COLOR_ATTACHMENT2",E[E.COLOR_ATTACHMENT3=36067]="COLOR_ATTACHMENT3",E[E.COLOR_ATTACHMENT4=36068]="COLOR_ATTACHMENT4",E[E.COLOR_ATTACHMENT5=36069]="COLOR_ATTACHMENT5",E[E.COLOR_ATTACHMENT6=36070]="COLOR_ATTACHMENT6",E[E.COLOR_ATTACHMENT7=36071]="COLOR_ATTACHMENT7",E[E.COLOR_ATTACHMENT8=36072]="COLOR_ATTACHMENT8",E[E.COLOR_ATTACHMENT9=36073]="COLOR_ATTACHMENT9",E[E.COLOR_ATTACHMENT10=36074]="COLOR_ATTACHMENT10",E[E.COLOR_ATTACHMENT11=36075]="COLOR_ATTACHMENT11",E[E.COLOR_ATTACHMENT12=36076]="COLOR_ATTACHMENT12",E[E.COLOR_ATTACHMENT13=36077]="COLOR_ATTACHMENT13",E[E.COLOR_ATTACHMENT14=36078]="COLOR_ATTACHMENT14",E[E.COLOR_ATTACHMENT15=36079]="COLOR_ATTACHMENT15"}(c||(c={})),function(E){E[E.NONE=0]="NONE",E[E.BACK=1029]="BACK"}(U||(U={}));const G=33306;var f,F,d,s,H,g,p;!function(E){E[E.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",E[E.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",E[E.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",E[E.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",E[E.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",E[E.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",E[E.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",E[E.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",E[E.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",E[E.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",E[E.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",E[E.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",E[E.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",E[E.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC"}(f||(f={})),function(E){E[E.FLOAT=5126]="FLOAT",E[E.FLOAT_VEC2=35664]="FLOAT_VEC2",E[E.FLOAT_VEC3=35665]="FLOAT_VEC3",E[E.FLOAT_VEC4=35666]="FLOAT_VEC4",E[E.INT=5124]="INT",E[E.INT_VEC2=35667]="INT_VEC2",E[E.INT_VEC3=35668]="INT_VEC3",E[E.INT_VEC4=35669]="INT_VEC4",E[E.BOOL=35670]="BOOL",E[E.BOOL_VEC2=35671]="BOOL_VEC2",E[E.BOOL_VEC3=35672]="BOOL_VEC3",E[E.BOOL_VEC4=35673]="BOOL_VEC4",E[E.FLOAT_MAT2=35674]="FLOAT_MAT2",E[E.FLOAT_MAT3=35675]="FLOAT_MAT3",E[E.FLOAT_MAT4=35676]="FLOAT_MAT4",E[E.SAMPLER_2D=35678]="SAMPLER_2D",E[E.SAMPLER_CUBE=35680]="SAMPLER_CUBE",E[E.UNSIGNED_INT=5125]="UNSIGNED_INT",E[E.UNSIGNED_INT_VEC2=36294]="UNSIGNED_INT_VEC2",E[E.UNSIGNED_INT_VEC3=36295]="UNSIGNED_INT_VEC3",E[E.UNSIGNED_INT_VEC4=36296]="UNSIGNED_INT_VEC4",E[E.FLOAT_MAT2x3=35685]="FLOAT_MAT2x3",E[E.FLOAT_MAT2x4=35686]="FLOAT_MAT2x4",E[E.FLOAT_MAT3x2=35687]="FLOAT_MAT3x2",E[E.FLOAT_MAT3x4=35688]="FLOAT_MAT3x4",E[E.FLOAT_MAT4x2=35689]="FLOAT_MAT4x2",E[E.FLOAT_MAT4x3=35690]="FLOAT_MAT4x3",E[E.SAMPLER_3D=35679]="SAMPLER_3D",E[E.SAMPLER_2D_SHADOW=35682]="SAMPLER_2D_SHADOW",E[E.SAMPLER_2D_ARRAY=36289]="SAMPLER_2D_ARRAY",E[E.SAMPLER_2D_ARRAY_SHADOW=36292]="SAMPLER_2D_ARRAY_SHADOW",E[E.SAMPLER_CUBE_SHADOW=36293]="SAMPLER_CUBE_SHADOW",E[E.INT_SAMPLER_2D=36298]="INT_SAMPLER_2D",E[E.INT_SAMPLER_3D=36299]="INT_SAMPLER_3D",E[E.INT_SAMPLER_CUBE=36300]="INT_SAMPLER_CUBE",E[E.INT_SAMPLER_2D_ARRAY=36303]="INT_SAMPLER_2D_ARRAY",E[E.UNSIGNED_INT_SAMPLER_2D=36306]="UNSIGNED_INT_SAMPLER_2D",E[E.UNSIGNED_INT_SAMPLER_3D=36307]="UNSIGNED_INT_SAMPLER_3D",E[E.UNSIGNED_INT_SAMPLER_CUBE=36308]="UNSIGNED_INT_SAMPLER_CUBE",E[E.UNSIGNED_INT_SAMPLER_2D_ARRAY=36311]="UNSIGNED_INT_SAMPLER_2D_ARRAY"}(F||(F={})),function(E){E[E.OBJECT_TYPE=37138]="OBJECT_TYPE",E[E.SYNC_CONDITION=37139]="SYNC_CONDITION",E[E.SYNC_STATUS=37140]="SYNC_STATUS",E[E.SYNC_FLAGS=37141]="SYNC_FLAGS"}(d||(d={})),function(E){E[E.UNSIGNALED=37144]="UNSIGNALED",E[E.SIGNALED=37145]="SIGNALED"}(s||(s={})),function(E){E[E.ALREADY_SIGNALED=37146]="ALREADY_SIGNALED",E[E.TIMEOUT_EXPIRED=37147]="TIMEOUT_EXPIRED",E[E.CONDITION_SATISFIED=37148]="CONDITION_SATISFIED",E[E.WAIT_FAILED=37149]="WAIT_FAILED"}(H||(H={})),function(E){E[E.SYNC_GPU_COMMANDS_COMPLETE=37143]="SYNC_GPU_COMMANDS_COMPLETE"}(g||(g={})),function(E){E[E.SYNC_FLUSH_COMMANDS_BIT=1]="SYNC_FLUSH_COMMANDS_BIT"}(p||(p={}))}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunkRemoteClient=self.webpackChunkRemoteClient||[]).push([[6459],{21787:(t,n,r)=>{r.d(n,{a:()=>c,d:()=>s,f:()=>o,i:()=>h,m:()=>u,n:()=>l,s:()=>a,t:()=>i});var e=r(46851);function o(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[4],t[4]=n[5],t[5]=n[6],t[6]=n[8],t[7]=n[9],t[8]=n[10],t}function a(t,n,r,e,o,a,i,s,c,u){return t[0]=n,t[1]=r,t[2]=e,t[3]=o,t[4]=a,t[5]=i,t[6]=s,t[7]=c,t[8]=u,t}function i(t,n){if(t===n){const r=n[1],e=n[2],o=n[5];t[1]=n[3],t[2]=n[6],t[3]=r,t[5]=n[7],t[6]=e,t[7]=o}else t[0]=n[0],t[1]=n[3],t[2]=n[6],t[3]=n[1],t[4]=n[4],t[5]=n[7],t[6]=n[2],t[7]=n[5],t[8]=n[8];return t}function s(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],i=n[4],s=n[5],c=n[6],u=n[7],l=n[8],f=l*i-s*u,h=-l*a+s*c,p=u*a-i*c;let M=r*f+e*h+o*p;return M?(M=1/M,t[0]=f*M,t[1]=(-l*e+o*u)*M,t[2]=(s*e-o*i)*M,t[3]=h*M,t[4]=(l*r-o*c)*M,t[5]=(-s*r+o*a)*M,t[6]=p*M,t[7]=(-u*r+e*c)*M,t[8]=(i*r-e*a)*M,t):null}function c(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],i=n[4],s=n[5],c=n[6],u=n[7],l=n[8];return t[0]=i*l-s*u,t[1]=o*u-e*l,t[2]=e*s-o*i,t[3]=s*c-a*l,t[4]=r*l-o*c,t[5]=o*a-r*s,t[6]=a*u-i*c,t[7]=e*c-r*u,t[8]=r*i-e*a,t}function u(t,n,r){const e=n[0],o=n[1],a=n[2],i=n[3],s=n[4],c=n[5],u=n[6],l=n[7],f=n[8],h=r[0],p=r[1],M=r[2],g=r[3],m=r[4],y=r[5],b=r[6],A=r[7],d=r[8];return t[0]=h*e+p*i+M*u,t[1]=h*o+p*s+M*l,t[2]=h*a+p*c+M*f,t[3]=g*e+m*i+y*u,t[4]=g*o+m*s+y*l,t[5]=g*a+m*c+y*f,t[6]=b*e+A*i+d*u,t[7]=b*o+A*s+d*l,t[8]=b*a+A*c+d*f,t}function l(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],i=n[4],s=n[5],c=n[6],u=n[7],l=n[8],f=n[9],h=n[10],p=n[11],M=n[12],g=n[13],m=n[14],y=n[15],b=r*s-e*i,A=r*c-o*i,d=r*u-a*i,P=e*c-o*s,E=e*u-a*s,_=o*u-a*c,C=l*g-f*M,T=l*m-h*M,F=l*y-p*M,x=f*m-h*g,R=f*y-p*g,v=h*y-p*m;let j=b*v-A*R+d*x+P*F-E*T+_*C;return j?(j=1/j,t[0]=(s*v-c*R+u*x)*j,t[1]=(c*F-i*v-u*T)*j,t[2]=(i*R-s*F+u*C)*j,t[3]=(o*R-e*v-a*x)*j,t[4]=(r*v-o*F+a*T)*j,t[5]=(e*F-r*R-a*C)*j,t[6]=(g*_-m*E+y*P)*j,t[7]=(m*d-M*_-y*A)*j,t[8]=(M*E-g*d+y*b)*j,t):null}function f(t,n,r){return t[0]=n[0]-r[0],t[1]=n[1]-r[1],t[2]=n[2]-r[2],t[3]=n[3]-r[3],t[4]=n[4]-r[4],t[5]=n[5]-r[5],t[6]=n[6]-r[6],t[7]=n[7]-r[7],t[8]=n[8]-r[8],t}function h(t){const n=(0,e.g)(),r=t[0],o=t[1],a=t[2],i=t[3],s=t[4],c=t[5],u=t[6],l=t[7],f=t[8];return Math.abs(1-(r*r+i*i+u*u))<=n&&Math.abs(1-(o*o+s*s+l*l))<=n&&Math.abs(1-(a*a+c*c+f*f))<=n}const p=u,M=f;Object.freeze(Object.defineProperty({__proto__:null,add:function(t,n,r){return t[0]=n[0]+r[0],t[1]=n[1]+r[1],t[2]=n[2]+r[2],t[3]=n[3]+r[3],t[4]=n[4]+r[4],t[5]=n[5]+r[5],t[6]=n[6]+r[6],t[7]=n[7]+r[7],t[8]=n[8]+r[8],t},adjoint:c,copy:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=n[2],t[3]=n[3],t[4]=n[4],t[5]=n[5],t[6]=n[6],t[7]=n[7],t[8]=n[8],t},determinant:function(t){const n=t[0],r=t[1],e=t[2],o=t[3],a=t[4],i=t[5],s=t[6],c=t[7],u=t[8];return n*(u*a-i*c)+r*(-u*o+i*s)+e*(c*o-a*s)},equals:function(t,n){const r=t[0],o=t[1],a=t[2],i=t[3],s=t[4],c=t[5],u=t[6],l=t[7],f=t[8],h=n[0],p=n[1],M=n[2],g=n[3],m=n[4],y=n[5],b=n[6],A=n[7],d=n[8],P=(0,e.g)();return Math.abs(r-h)<=P*Math.max(1,Math.abs(r),Math.abs(h))&&Math.abs(o-p)<=P*Math.max(1,Math.abs(o),Math.abs(p))&&Math.abs(a-M)<=P*Math.max(1,Math.abs(a),Math.abs(M))&&Math.abs(i-g)<=P*Math.max(1,Math.abs(i),Math.abs(g))&&Math.abs(s-m)<=P*Math.max(1,Math.abs(s),Math.abs(m))&&Math.abs(c-y)<=P*Math.max(1,Math.abs(c),Math.abs(y))&&Math.abs(u-b)<=P*Math.max(1,Math.abs(u),Math.abs(b))&&Math.abs(l-A)<=P*Math.max(1,Math.abs(l),Math.abs(A))&&Math.abs(f-d)<=P*Math.max(1,Math.abs(f),Math.abs(d))},exactEquals:function(t,n){return t[0]===n[0]&&t[1]===n[1]&&t[2]===n[2]&&t[3]===n[3]&&t[4]===n[4]&&t[5]===n[5]&&t[6]===n[6]&&t[7]===n[7]&&t[8]===n[8]},frob:function(t){return Math.sqrt(t[0]**2+t[1]**2+t[2]**2+t[3]**2+t[4]**2+t[5]**2+t[6]**2+t[7]**2+t[8]**2)},fromMat2d:function(t,n){return t[0]=n[0],t[1]=n[1],t[2]=0,t[3]=n[2],t[4]=n[3],t[5]=0,t[6]=n[4],t[7]=n[5],t[8]=1,t},fromMat4:o,fromQuat:function(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],i=r+r,s=e+e,c=o+o,u=r*i,l=e*i,f=e*s,h=o*i,p=o*s,M=o*c,g=a*i,m=a*s,y=a*c;return t[0]=1-f-M,t[3]=l-y,t[6]=h+m,t[1]=l+y,t[4]=1-u-M,t[7]=p-g,t[2]=h-m,t[5]=p+g,t[8]=1-u-f,t},fromRotation:function(t,n){const r=Math.sin(n),e=Math.cos(n);return t[0]=e,t[1]=r,t[2]=0,t[3]=-r,t[4]=e,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromScaling:function(t,n){return t[0]=n[0],t[1]=0,t[2]=0,t[3]=0,t[4]=n[1],t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},fromTranslation:function(t,n){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=n[0],t[7]=n[1],t[8]=1,t},identity:function(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,t},invert:s,isOrthoNormal:h,mul:p,multiply:u,multiplyScalar:function(t,n,r){return t[0]=n[0]*r,t[1]=n[1]*r,t[2]=n[2]*r,t[3]=n[3]*r,t[4]=n[4]*r,t[5]=n[5]*r,t[6]=n[6]*r,t[7]=n[7]*r,t[8]=n[8]*r,t},multiplyScalarAndAdd:function(t,n,r,e){return t[0]=n[0]+r[0]*e,t[1]=n[1]+r[1]*e,t[2]=n[2]+r[2]*e,t[3]=n[3]+r[3]*e,t[4]=n[4]+r[4]*e,t[5]=n[5]+r[5]*e,t[6]=n[6]+r[6]*e,t[7]=n[7]+r[7]*e,t[8]=n[8]+r[8]*e,t},normalFromMat4:l,normalFromMat4Legacy:function(t,n){const r=n[0],e=n[1],o=n[2],a=n[4],i=n[5],s=n[6],c=n[8],u=n[9],l=n[10],f=l*i-s*u,h=-l*a+s*c,p=u*a-i*c,M=r*f+e*h+o*p;if(!M)return null;const g=1/M;return t[0]=f*g,t[1]=(-l*e+o*u)*g,t[2]=(s*e-o*i)*g,t[3]=h*g,t[4]=(l*r-o*c)*g,t[5]=(-s*r+o*a)*g,t[6]=p*g,t[7]=(-u*r+e*c)*g,t[8]=(i*r-e*a)*g,t},projection:function(t,n,r){return t[0]=2/n,t[1]=0,t[2]=0,t[3]=0,t[4]=-2/r,t[5]=0,t[6]=-1,t[7]=1,t[8]=1,t},rotate:function(t,n,r){const e=n[0],o=n[1],a=n[2],i=n[3],s=n[4],c=n[5],u=n[6],l=n[7],f=n[8],h=Math.sin(r),p=Math.cos(r);return t[0]=p*e+h*i,t[1]=p*o+h*s,t[2]=p*a+h*c,t[3]=p*i-h*e,t[4]=p*s-h*o,t[5]=p*c-h*a,t[6]=u,t[7]=l,t[8]=f,t},scale:function(t,n,r){const e=r[0],o=r[1],a=r[2];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t[6]=a*n[6],t[7]=a*n[7],t[8]=a*n[8],t},scaleByVec2:function(t,n,r){const e=r[0],o=r[1];return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=o*n[3],t[4]=o*n[4],t[5]=o*n[5],t},set:a,str:function(t){return"mat3("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+", "+t[4]+", "+t[5]+", "+t[6]+", "+t[7]+", "+t[8]+")"},sub:M,subtract:f,translate:function(t,n,r){const e=n[0],o=n[1],a=n[2],i=n[3],s=n[4],c=n[5],u=n[6],l=n[7],f=n[8],h=r[0],p=r[1];return t[0]=e,t[1]=o,t[2]=a,t[3]=i,t[4]=s,t[5]=c,t[6]=h*e+p*i+u,t[7]=h*o+p*s+l,t[8]=h*a+p*c+f,t},transpose:i},Symbol.toStringTag,{value:"Module"}))},51305:(t,n,r)=>{r.d(n,{a:()=>p,c:()=>m,g:()=>l,j:()=>R,k:()=>g,m:()=>f,s:()=>u});var e=r(46521),o=r(94961),a=r(65617),i=r(46851),s=r(17896),c=r(98766);function u(t,n,r){r*=.5;const e=Math.sin(r);return t[0]=e*n[0],t[1]=e*n[1],t[2]=e*n[2],t[3]=Math.cos(r),t}function l(t,n){const r=2*Math.acos(n[3]),e=Math.sin(r/2);return e>(0,i.g)()?(t[0]=n[0]/e,t[1]=n[1]/e,t[2]=n[2]/e):(t[0]=1,t[1]=0,t[2]=0),r}function f(t,n,r){const e=n[0],o=n[1],a=n[2],i=n[3],s=r[0],c=r[1],u=r[2],l=r[3];return t[0]=e*l+i*s+o*u-a*c,t[1]=o*l+i*c+a*s-e*u,t[2]=a*l+i*u+e*c-o*s,t[3]=i*l-e*s-o*c-a*u,t}function h(t,n,r,e){const o=n[0],a=n[1],s=n[2],c=n[3];let u,l,f,h,p,M=r[0],g=r[1],m=r[2],y=r[3];return l=o*M+a*g+s*m+c*y,l<0&&(l=-l,M=-M,g=-g,m=-m,y=-y),1-l>(0,i.g)()?(u=Math.acos(l),f=Math.sin(u),h=Math.sin((1-e)*u)/f,p=Math.sin(e*u)/f):(h=1-e,p=e),t[0]=h*o+p*M,t[1]=h*a+p*g,t[2]=h*s+p*m,t[3]=h*c+p*y,t}function p(t,n){return t[0]=-n[0],t[1]=-n[1],t[2]=-n[2],t[3]=n[3],t}function M(t,n){const r=n[0]+n[4]+n[8];let e;if(r>0)e=Math.sqrt(r+1),t[3]=.5*e,e=.5/e,t[0]=(n[5]-n[7])*e,t[1]=(n[6]-n[2])*e,t[2]=(n[1]-n[3])*e;else{let r=0;n[4]>n[0]&&(r=1),n[8]>n[3*r+r]&&(r=2);const o=(r+1)%3,a=(r+2)%3;e=Math.sqrt(n[3*r+r]-n[3*o+o]-n[3*a+a]+1),t[r]=.5*e,e=.5/e,t[3]=(n[3*o+a]-n[3*a+o])*e,t[o]=(n[3*o+r]+n[3*r+o])*e,t[a]=(n[3*a+r]+n[3*r+a])*e}return t}function g(t,n,r,e){const o=.5*Math.PI/180;n*=o,r*=o,e*=o;const a=Math.sin(n),i=Math.cos(n),s=Math.sin(r),c=Math.cos(r),u=Math.sin(e),l=Math.cos(e);return t[0]=a*c*l-i*s*u,t[1]=i*s*l+a*c*u,t[2]=i*c*u-a*s*l,t[3]=i*c*l+a*s*u,t}const m=c.c,y=c.s,b=c.a,A=f,d=c.b,P=c.d,E=c.l,_=c.f,C=_,T=c.g,F=T,x=c.n,R=c.h,v=c.e,j=(0,a.c)(),w=(0,a.f)(1,0,0),S=(0,a.f)(0,1,0),O=(0,o.a)(),L=(0,o.a)(),Z=(0,e.a)();Object.freeze(Object.defineProperty({__proto__:null,add:b,calculateW:function(t,n){const r=n[0],e=n[1],o=n[2];return t[0]=r,t[1]=e,t[2]=o,t[3]=Math.sqrt(Math.abs(1-r*r-e*e-o*o)),t},conjugate:p,copy:m,dot:P,equals:v,exactEquals:R,fromEuler:g,fromMat3:M,getAxisAngle:l,identity:function(t){return t[0]=0,t[1]=0,t[2]=0,t[3]=1,t},invert:function(t,n){const r=n[0],e=n[1],o=n[2],a=n[3],i=r*r+e*e+o*o+a*a,s=i?1/i:0;return t[0]=-r*s,t[1]=-e*s,t[2]=-o*s,t[3]=a*s,t},len:C,length:_,lerp:E,mul:A,multiply:f,normalize:x,random:function(t){const n=i.R,r=n(),e=n(),o=n(),a=Math.sqrt(1-r),s=Math.sqrt(r);return t[0]=a*Math.sin(2*Math.PI*e),t[1]=a*Math.cos(2*Math.PI*e),t[2]=s*Math.sin(2*Math.PI*o),t[3]=s*Math.cos(2*Math.PI*o),t},rotateX:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],i=n[3],s=Math.sin(r),c=Math.cos(r);return t[0]=e*c+i*s,t[1]=o*c+a*s,t[2]=a*c-o*s,t[3]=i*c-e*s,t},rotateY:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],i=n[3],s=Math.sin(r),c=Math.cos(r);return t[0]=e*c-a*s,t[1]=o*c+i*s,t[2]=a*c+e*s,t[3]=i*c-o*s,t},rotateZ:function(t,n,r){r*=.5;const e=n[0],o=n[1],a=n[2],i=n[3],s=Math.sin(r),c=Math.cos(r);return t[0]=e*c+o*s,t[1]=o*c-e*s,t[2]=a*c+i*s,t[3]=i*c-a*s,t},rotationTo:function(t,n,r){const e=(0,s.j)(n,r);return e<-.999999?((0,s.b)(j,w,n),(0,s.k)(j)<1e-6&&(0,s.b)(j,S,n),(0,s.n)(j,j),u(t,j,Math.PI),t):e>.999999?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):((0,s.b)(j,n,r),t[0]=j[0],t[1]=j[1],t[2]=j[2],t[3]=1+e,x(t,t))},scale:d,set:y,setAxes:function(t,n,r,e){const o=Z;return o[0]=r[0],o[3]=r[1],o[6]=r[2],o[1]=e[0],o[4]=e[1],o[7]=e[2],o[2]=-n[0],o[5]=-n[1],o[8]=-n[2],x(t,M(t,o))},setAxisAngle:u,slerp:h,sqlerp:function(t,n,r,e,o,a){return h(O,n,o,a),h(L,r,e,a),h(t,O,L,2*a*(1-a)),t},sqrLen:F,squaredLength:T,str:function(t){return"quat("+t[0]+", "+t[1]+", "+t[2]+", "+t[3]+")"}},Symbol.toStringTag,{value:"Module"}))},83932:(t,n,r)=>{r.d(n,{B:()=>u});var e=r(22021),o=r(52138),a=r(65617);function i(t,n,r){const e=Math.sin(t),o=Math.cos(t),a=Math.sin(n),i=Math.cos(n),s=r;return s[0]=-e,s[4]=-a*o,s[8]=i*o,s[12]=0,s[1]=o,s[5]=-a*e,s[9]=i*e,s[13]=0,s[2]=0,s[6]=i,s[10]=a,s[14]=0,s[3]=0,s[7]=0,s[11]=0,s[15]=1,s}var s=r(29166),c=r(8744);function u(t,n,r,e){if(null==t||null==e)return!1;const a=(0,s.eT)(t,s.Jz),u=(0,s.eT)(e,s.sp);if(a===u&&!l(u)&&(a!==s.Ej.UNKNOWN||(0,c.fS)(t,e)))return(0,o.d)(r,n),!0;if(l(u)){const t=s.rf[a][s.Ej.LON_LAT],e=s.rf[s.Ej.LON_LAT][u];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,p,0),i(f*h[0],f*h[1],r),r[12]=p[0],r[13]=p[1],r[14]=p[2],!0)}if((u===s.Ej.WEB_MERCATOR||u===s.Ej.PLATE_CARREE)&&(a===s.Ej.WGS84||a===s.Ej.CGCS2000&&u===s.Ej.PLATE_CARREE||a===s.Ej.SPHERICAL_ECEF||a===s.Ej.WEB_MERCATOR)){const t=s.rf[a][s.Ej.LON_LAT],e=s.rf[s.Ej.LON_LAT][u];return null!=t&&null!=e&&(t(n,0,h,0),e(h,0,p,0),a===s.Ej.SPHERICAL_ECEF?function(t,n,r){i(t,n,r),(0,o.t)(r,r)}(f*h[0],f*h[1],r):(0,o.g)(r),r[12]=p[0],r[13]=p[1],r[14]=p[2],!0)}return!1}function l(t){return t===s.Ej.SPHERICAL_ECEF||t===s.Ej.SPHERICAL_MARS_PCPF||t===s.Ej.SPHERICAL_MOON_PCPF}const f=(0,e.Vl)(1),h=(0,a.c)(),p=(0,a.c)()},58995:(t,n,r)=>{r.d(n,{rS:()=>u});var e=r(2109),o=r(82971),a=r(8744);const i=new o.Z(e.kU),s=new o.Z(e.JL),c=new o.Z(e.mM);function u(t){return t&&((0,a.BZ)(t)||(0,a.fS)(t,s))?s:t&&((0,a.V2)(t)||(0,a.fS)(t,c))?c:i}new o.Z(e.pn)},50567:(t,n,r)=>{r.d(n,{Z:()=>u});var e=r(43697),o=r(2368),a=r(96674),i=(r(92604),r(75215),r(67676),r(80442),r(20102),r(36030)),s=r(52011);let c=class extends((0,o.J)(a.wq)){constructor(){super({}),this.type="georeferenced",this.isRelative=!1,this.isGeoreferenced=!0}};(0,e._)([(0,i.J)({georeferenced:"georeferenced"},{readOnly:!0})],c.prototype,"type",void 0),c=(0,e._)([(0,s.j)("esri.geometry.support.MeshGeoreferencedVertexSpace")],c);const u=c},2674:(t,n,r)=>{r.d(n,{Z:()=>y});var e,o=r(43697),a=r(96674),i=r(5600),s=(r(75215),r(67676),r(80442),r(52011)),c=r(52138),u=r(13598),l=r(51305),f=r(94961),h=r(17896),p=r(65617),M=r(3709);let g=e=class extends a.wq{constructor(t){super(t),this.translation=(0,p.c)(),this.rotationAxis=(0,p.e)(M.up),this.rotationAngle=0,this.scale=(0,p.f)(1,1,1)}get rotation(){return(0,M.uT)(this.rotationAxis,this.rotationAngle)}set rotation(t){this.rotationAxis=(0,p.g)((0,M.ZZ)(t)),this.rotationAngle=(0,M.EU)(t)}get localMatrix(){const t=(0,u.a)();return(0,l.s)(m,(0,M.ZZ)(this.rotation),(0,M.WH)(this.rotation)),(0,c.f)(t,m,this.translation,this.scale),t}get localMatrixInverse(){return(0,c.i)((0,u.a)(),this.localMatrix)}applyLocal(t,n){return(0,h.e)(n,t,this.localMatrix)}applyLocalInverse(t,n){return(0,h.e)(n,t,this.localMatrixInverse)}equals(t){return this===t||null!=t&&(0,c.e)(this.localMatrix,t.localMatrix)}clone(){const t={translation:(0,p.g)(this.translation),rotationAxis:(0,p.g)(this.rotationAxis),rotationAngle:this.rotationAngle,scale:(0,p.g)(this.scale)};return new e(t)}};(0,o._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"translation",void 0),(0,o._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"rotationAxis",void 0),(0,o._)([(0,i.Cb)({type:Number,nonNullable:!0,json:{write:!0}})],g.prototype,"rotationAngle",void 0),(0,o._)([(0,i.Cb)({type:[Number],nonNullable:!0,json:{write:!0}})],g.prototype,"scale",void 0),(0,o._)([(0,i.Cb)()],g.prototype,"rotation",null),(0,o._)([(0,i.Cb)()],g.prototype,"localMatrix",null),(0,o._)([(0,i.Cb)()],g.prototype,"localMatrixInverse",null),g=e=(0,o._)([(0,s.j)("esri.geometry.support.MeshTransform")],g);const m=(0,f.a)(),y=g},3709:(t,n,r)=>{r.d(n,{EU:()=>p,Ue:()=>c,WH:()=>M,ZZ:()=>h,qC:()=>l,qw:()=>f,uT:()=>u,up:()=>g});var e=r(22021),o=r(51305),a=r(94961),i=r(17896),s=r(65617);function c(t=g){return[t[0],t[1],t[2],t[3]]}function u(t,n,r=c()){return(0,i.c)(r,t),r[3]=n,r}function l(t,n,r=c()){return(0,o.s)(m,t,M(t)),(0,o.s)(y,n,M(n)),(0,o.m)(m,y,m),function(t,n){return t[3]=n,t}(r,(0,e.BV)((0,o.g)(r,m)))}function f(t,n,r,e=c()){return u(s.U,t,b),u(s.b,n,A),u(s.d,r,d),l(b,A,b),l(b,d,e),e}function h(t){return t}function p(t){return t[3]}function M(t){return(0,e.Vl)(t[3])}const g=[0,0,1,0],m=(0,a.a)(),y=(0,a.a)(),b=(c(),c()),A=c(),d=c()},13442:(t,n,r)=>{r.d(n,{A:()=>a,h:()=>o});var e=r(92604);function o(t,n){return t.isGeographic||t.isWebMercator&&(n?.geographic??!0)}function a(t,n,r){const o=!t.isGeoreferenced;null!=r?.geographic&&r.geographic!==o&&e.Z.getLogger(n).warnOnce(`Specifying the 'geographic' parameter (${r.geographic}) for a Mesh vertex space of type "${t.type}" is not supported. This parameter will be ignored.`)}},66459:(t,n,r)=>{r.d(n,{FF:()=>F,I5:()=>C,Ne:()=>_,Yq:()=>x,iv:()=>E,project:()=>R,w1:()=>T});var e=r(67900),o=r(46521),a=r(52138),i=r(13598),s=r(17896),c=r(65617),u=r(21787),l=r(73615),f=r(58995),h=r(83932),p=r(87360),M=r(83025),g=r(85872),m=r(50567),y=r(84555),b=r(2674),A=r(20773),d=r(13442),P=r(56493);function E(t,n,r){return(0,d.h)(n.spatialReference,r)?function(t,n,r){const e=n.spatialReference,o=S(n,r,I),a=new Float64Array(t.position.length),i=function(t,n,r,e){(0,A.t)(e,t,n);const o=new Float64Array(t.length);return(0,P.To)(e,o,r)}(t.position,o,e,a),s=(0,u.n)(N,o);return{position:i,normal:v(i,a,t.normal,s,e),tangent:j(i,a,t.tangent,s,e)}}(t,n,r):function(t,n,r){const e=new Float64Array(t.position.length),o=t.position,a=n.x,i=n.y,s=n.z??0,c=Z(r?r.unit:null,n.spatialReference);for(let t=0;t<o.length;t+=3)e[t]=o[t]*c+a,e[t+1]=o[t+1]*c+i,e[t+2]=o[t+2]*c+s;return{position:e,normal:t.normal,tangent:t.tangent}}(t,n,r)}function _(t,n=i.I){const{position:r,normal:e,tangent:o}=t;return{position:(0,A.t)(new Float64Array(r.length),r,n),normal:null!=e?(0,P.w9)(e,new Float32Array(e.length),n):null,tangent:null!=o?(0,P.VS)(o,new Float32Array(o.length),n):null}}function C(t,n,r,e){const{position:o,normal:a,tangent:i}=t;return n.isRelative?E(_(t,r?.localMatrix),n.getOriginPoint(e),{geographic:!n.isGeoreferenced}):{position:o,normal:a,tangent:i}}function T(t,n,r){if(r?.useTransform){const{position:e,normal:o,tangent:a}=t,{x:i,y:s,z:u}=n,l=(0,c.f)(i,s,u??0);return{vertexAttributes:{position:e,normal:o,tangent:a},vertexSpace:r.geographic??1?new y.Z({origin:l}):new g.Z({origin:l}),transform:new b.Z}}return{vertexAttributes:E(t,n,r),vertexSpace:new m.Z,transform:null}}function F(t,n,r){return(0,d.h)(n.spatialReference,r)?function(t,n,r){const e=n.spatialReference;S(n,r,I);const o=(0,a.i)(q,I),i=new Float64Array(t.position.length),s=function(t,n,r,e){const o=(0,P.XO)(t,n,e),a=new Float64Array(o.length);return(0,A.t)(a,o,r),a}(t.position,e,o,i),c=(0,u.n)(N,o);return{position:s,normal:O(t.normal,t.position,i,e,c),tangent:L(t.tangent,t.position,i,e,c)}}(t,n,r):w(t,n,r)}function x(t,n,r,e,o){if(!n.isRelative)return F(t,e,o);const{spatialReference:a}=e,i=C(t,n,r,a);return e.equals(n.getOriginPoint(a))?w(i,e,o):F(i,e,o)}function R({positions:t,transform:n,vertexSpace:r,inSpatialReference:e,outSpatialReference:o,outPositions:u}){const g=r.isRelative?r.origin:c.Z,m=r.isRelative?n?.localMatrix??i.I:i.I;if(r.isGeoreferenced){const n=u??(0,M.bg)(t.length);if((0,a.a)(m,i.I)?(0,M.JK)(n,t):(0,A.t)(n,t,m),!(0,s.h)(g,c.Z)){const[t,r,e]=g;for(let o=0;o<n.length;o+=3)n[o]+=t,n[o+1]+=r,n[o+2]+=e}return(0,p.projectBuffer)(n,e,0,n,o,0,n.length/3),n}let y=e;const b=(0,f.rS)(e);(0,l.canProjectWithoutEngine)(e,b)&&(y=b),(0,h.B)(e,g,I,y),(0,a.m)(I,I,m);const d=u??(0,M.bg)(t.length);return(0,A.t)(d,t,I),(0,p.projectBuffer)(d,y,0,d,o,0,d.length/3),d}function v(t,n,r,e,o){if(null==r)return null;const a=new Float32Array(r.length);return(0,A.a)(a,r,e),(0,P.Yk)(a,t,n,o,a),a}function j(t,n,r,e,o){if(null==r)return null;const a=new Float32Array(r.length);(0,A.a)(a,r,e,4);for(let t=3;t<a.length;t+=4)a[t]=r[t];return(0,P.M2)(a,t,n,o,a),a}function w(t,n,r){const e=new Float64Array(t.position.length),o=t.position,a=n.x,i=n.y,s=n.z??0,c=Z(r?r.unit:null,n.spatialReference);for(let t=0;t<o.length;t+=3)e[t]=(o[t]-a)/c,e[t+1]=(o[t+1]-i)/c,e[t+2]=(o[t+2]-s)/c;return{position:e,normal:t.normal,tangent:t.tangent}}function S(t,n,r){(0,h.B)(t.spatialReference,[t.x,t.y,t.z??0],r,(0,f.rS)(t.spatialReference));const e=Z(n?n.unit:null,t.spatialReference);return(0,a.b)(r,r,[e,e,e]),r}function O(t,n,r,e,o){if(null==t)return null;const a=(0,P.Iz)(t,n,r,e,new Float32Array(t.length));return(0,A.a)(a,a,o),a}function L(t,n,r,e,o){if(null==t)return null;const a=(0,P.wi)(t,n,r,e,new Float32Array(t.length));return(0,A.a)(a,a,o,4),a}function Z(t,n){if(null==t)return 1;const r=(0,e.r6)(n);return 1/(0,e.En)(r,"meters",t)}const I=(0,i.a)(),q=(0,i.a)(),N=(0,o.a)()},56493:(t,n,r)=>{r.d(n,{Iz:()=>y,M2:()=>C,To:()=>d,VS:()=>E,XO:()=>A,Yk:()=>b,w9:()=>P,wi:()=>_});var e=r(92604),o=r(21787),a=r(46521),i=r(13598),s=r(17896),c=r(65617),u=r(58995),l=r(83932),f=r(87360),h=r(8744),p=r(40488),M=r(56481),g=r(20773);const m=e.Z.getLogger("esri.geometry.support.meshUtils.normalProjection");function y(t,n,r,e,o){return F(e)?(T(R.TO_PCPF,M.ct.fromTypedArray(t),M.fP.fromTypedArray(n),M.fP.fromTypedArray(r),e,M.ct.fromTypedArray(o)),o):(m.error("Cannot convert spatial reference to PCPF"),o)}function b(t,n,r,e,o){return F(e)?(T(R.FROM_PCPF,M.ct.fromTypedArray(t),M.fP.fromTypedArray(n),M.fP.fromTypedArray(r),e,M.ct.fromTypedArray(o)),o):(m.error("Cannot convert to spatial reference from PCPF"),o)}function A(t,n,r){return(0,f.projectBuffer)(t,n,0,r,(0,u.rS)(n),0,t.length/3),r}function d(t,n,r){return(0,f.projectBuffer)(t,(0,u.rS)(r),0,n,r,0,t.length/3),n}function P(t,n,r){return(0,o.n)(O,r),(0,g.a)(n,t,O),(0,o.i)(O)||(0,g.n)(n,n),n}function E(t,n,r){if((0,o.n)(O,r),(0,g.a)(n,t,O,4),(0,o.i)(O)||(0,g.n)(n,n,4),t!==n)for(let r=3;r<t.length;r+=4)n[r]=t[r];return n}function _(t,n,r,e,o){if(!F(e))return m.error("Cannot convert spatial reference to PCPF"),o;T(R.TO_PCPF,M.ct.fromTypedArray(t,4*Float32Array.BYTES_PER_ELEMENT),M.fP.fromTypedArray(n),M.fP.fromTypedArray(r),e,M.ct.fromTypedArray(o,4*Float32Array.BYTES_PER_ELEMENT));for(let n=3;n<t.length;n+=4)o[n]=t[n];return o}function C(t,n,r,e,o){if(!F(e))return m.error("Cannot convert to spatial reference from PCPF"),o;T(R.FROM_PCPF,M.ct.fromTypedArray(t,16),M.fP.fromTypedArray(n),M.fP.fromTypedArray(r),e,M.ct.fromTypedArray(o,16));for(let n=3;n<t.length;n+=4)o[n]=t[n];return o}function T(t,n,r,e,a,i){if(!n)return;const c=r.count,f=(0,u.rS)(a);if(x(a))for(let r=0;r<c;r++)e.getVec(r,j),n.getVec(r,w),(0,l.B)(f,j,S,f),(0,o.f)(O,S),t===R.FROM_PCPF&&(0,o.t)(O,O),(0,s.t)(w,w,O),i.setVec(r,w);else for(let a=0;a<c;a++){e.getVec(a,j),n.getVec(a,w),(0,l.B)(f,j,S,f),(0,o.f)(O,S);const c=(0,p.mZ)(r.get(a,1));let u=Math.cos(c);t===R.TO_PCPF&&(u=1/u),O[0]*=u,O[1]*=u,O[2]*=u,O[3]*=u,O[4]*=u,O[5]*=u,t===R.FROM_PCPF&&(0,o.t)(O,O),(0,s.t)(w,w,O),(0,s.n)(w,w),i.setVec(a,w)}return i}function F(t){return x(t)||function(t){return t.isWebMercator}(t)}function x(t){return t.isWGS84||(0,h.yW)(t)||(0,h.BZ)(t)||(0,h.V2)(t)}var R,v;(v=R||(R={}))[v.TO_PCPF=0]="TO_PCPF",v[v.FROM_PCPF=1]="FROM_PCPF";const j=(0,c.c)(),w=(0,c.c)(),S=(0,i.a)(),O=(0,a.a)()}}]);
|