diff --git a/assets/schema/derisk.sql b/assets/schema/derisk.sql index 4830425e..562694ab 100644 --- a/assets/schema/derisk.sql +++ b/assets/schema/derisk.sql @@ -9,7 +9,7 @@ use derisk; -- MySQL DDL Script for Derisk -- Version: 0.3.0 -- Generated from SQLAlchemy ORM Models --- Generated: 2026-03-09 22:38:05 +-- Generated: 2026-03-11 00:09:58 -- ============================================================ SET NAMES utf8mb4; diff --git a/packages/derisk-app/src/derisk_app/static/web/404.html b/packages/derisk-app/src/derisk_app/static/web/404.html deleted file mode 100644 index b90a06a2..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/404.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/404/index.html b/packages/derisk-app/src/derisk_app/static/web/404/index.html deleted file mode 100644 index b90a06a2..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/404/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/LOGO.png b/packages/derisk-app/src/derisk_app/static/web/LOGO.png deleted file mode 100644 index d581df60..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/LOGO.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/LOGO_1.png b/packages/derisk-app/src/derisk_app/static/web/LOGO_1.png deleted file mode 100644 index d581df60..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/LOGO_1.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/LOGO_SMALL.png b/packages/derisk-app/src/derisk_app/static/web/LOGO_SMALL.png deleted file mode 100644 index 656857c6..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/LOGO_SMALL.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/05f6971a-37fe2a1a50eb9be0.js b/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/05f6971a-37fe2a1a50eb9be0.js deleted file mode 100644 index 7e89bf76..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/05f6971a-37fe2a1a50eb9be0.js +++ /dev/null @@ -1,54 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5600],{49101:function(e){e.exports=function(){"use strict";var e,t,i;function r(r,a){if(e)if(t){var s="var sharedChunk = {}; ("+e+")(sharedChunk); ("+t+")(sharedChunk);",n={};e(n),i=a(n),"undefined"!=typeof window&&(i.workerUrl=window.URL.createObjectURL(new Blob([s],{type:"text/javascript"})))}else t=a;else e=a}return r(["exports"],function(e){let t,i,r,a,s,n,o,l,h,u,c,d,p,f,m,_,g,y,x,v;function b(e,t,i,r){return new(i||(i=Promise))(function(a,s){function n(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?a(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(n,o)}l((r=r.apply(e,t||[])).next())})}function w(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function S(e,t){this.x=e,this.y=t}"function"==typeof SuppressedError&&SuppressedError,S.prototype={clone:function(){return new S(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,i=e.y-this.y;return t*t+i*i},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[2]*this.x+e[3]*this.y;return this.x=e[0]*this.x+e[1]*this.y,this.y=t,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),i=Math.sin(e),r=i*this.x+t*this.y;return this.x=t*this.x-i*this.y,this.y=r,this},_rotateAround:function(e,t){var i=Math.cos(e),r=Math.sin(e),a=t.y+r*(this.x-t.x)+i*(this.y-t.y);return this.x=t.x+i*(this.x-t.x)-r*(this.y-t.y),this.y=a,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},S.convert=function(e){return e instanceof S?e:Array.isArray(e)?new S(e[0],e[1]):e};var T,I,A,M,E=w(S);function k(e,t,i,r){this.cx=3*e,this.bx=3*(i-e)-this.cx,this.ax=1-this.cx-this.bx,this.cy=3*t,this.by=3*(r-t)-this.cy,this.ay=1-this.cy-this.by,this.p1x=e,this.p1y=t,this.p2x=i,this.p2y=r}k.prototype={sampleCurveX:function(e){return((this.ax*e+this.bx)*e+this.cx)*e},sampleCurveY:function(e){return((this.ay*e+this.by)*e+this.cy)*e},sampleCurveDerivativeX:function(e){return(3*this.ax*e+2*this.bx)*e+this.cx},solveCurveX:function(e,t){if(void 0===t&&(t=1e-6),e<0)return 0;if(e>1)return 1;for(var i=e,r=0;r<8;r++){var a=this.sampleCurveX(i)-e;if(Math.abs(a)Math.abs(s))break;i-=a/s}var n=0,o=1;for(i=e,r=0;r<20&&!(Math.abs((a=this.sampleCurveX(i))-e)a?n=i:o=i,i=.5*(o-n)+n;return i},solve:function(e,t){return this.sampleCurveY(this.solveCurveX(e,t))}};var C=w(k);function P(){return null==t&&(t="undefined"!=typeof OffscreenCanvas&&new OffscreenCanvas(1,1).getContext("2d")&&"function"==typeof createImageBitmap),t}function z(){if(null==i&&(i=!1,P())){let e=new OffscreenCanvas(5,5).getContext("2d",{willReadFrequently:!0});if(e){for(let t=0;t<25;t++){let i=4*t;e.fillStyle=`rgb(${i},${i+1},${i+2})`,e.fillRect(t%5,Math.floor(t/5),1,1)}let t=e.getImageData(0,0,5,5).data;for(let e=0;e<100;e++)if(e%4!=3&&t[e]!==e){i=!0;break}}}return i||!1}function D(e,t,i,r){let a=new C(e,t,i,r);return function(e){return a.solve(e)}}let L=D(.25,.1,.25,1);function R(e,t,i){return Math.min(i,Math.max(t,e))}function B(e,t,i){let r=i-t,a=((e-t)%r+r)%r+t;return a===t?i:a}function F(e,...t){for(let i of t)for(let t in i)e[t]=i[t];return e}let O=1;function V(e,t,i){let r={};for(let a in e)r[a]=t.call(i||this,e[a],a,e);return r}function N(e,t,i){let r={};for(let a in e)t.call(i||this,e[a],a,e)&&(r[a]=e[a]);return r}function U(e){return Array.isArray(e)?e.map(U):"object"==typeof e&&e?V(e,U):e}let $={};function j(e){$[e]||("undefined"!=typeof console&&console.warn(e),$[e]=!0)}function q(e,t,i){return(i.y-e.y)*(t.x-e.x)>(t.y-e.y)*(i.x-e.x)}function Z(){return"undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof self&&self instanceof WorkerGlobalScope}let G=null;function X(e){return"undefined"!=typeof ImageBitmap&&e instanceof ImageBitmap}let W="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAAC0lEQVQYV2NgAAIAAAUAAarVyFEAAAAASUVORK5CYII=";function H(e,t,i,r,a){return b(this,void 0,void 0,function*(){if("undefined"==typeof VideoFrame)throw Error("VideoFrame not supported");let s=new VideoFrame(e,{timestamp:0});try{let n=null==s?void 0:s.format;if(!n||!n.startsWith("BGR")&&!n.startsWith("RGB"))throw Error(`Unrecognized format ${n}`);let o=n.startsWith("BGR"),l=new Uint8ClampedArray(r*a*4);if(yield s.copyTo(l,function(e,t,i,r,a){let s=4*Math.max(-t,0),n=(Math.max(0,i)-i)*r*4+s,o=Math.max(0,t),l=Math.max(0,i);return{rect:{x:o,y:l,width:Math.min(e.width,t+r)-o,height:Math.min(e.height,i+a)-l},layout:[{offset:n,stride:4*r}]}}(e,t,i,r,a)),o)for(let e=0;ecancelAnimationFrame(t)}},getImageData(e,t=0){return this.getImageCanvasContext(e).getImageData(-t,-t,e.width+2*t,e.height+2*t)},getImageCanvasContext(e){let t=window.document.createElement("canvas"),i=t.getContext("2d",{willReadFrequently:!0});if(!i)throw Error("failed to create canvas 2d context");return t.width=e.width,t.height=e.height,i.drawImage(e,0,0,e.width,e.height),i},resolveURL:e=>(s||(s=document.createElement("a")),s.href=e,s.href),hardwareConcurrency:"undefined"!=typeof navigator&&navigator.hardwareConcurrency||4,get prefersReducedMotion(){return!!matchMedia&&(null==n&&(n=matchMedia("(prefers-reduced-motion: reduce)")),n.matches)}},Y={MAX_PARALLEL_IMAGE_REQUESTS:16,MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:8,MAX_TILE_CACHE_ZOOM_LEVELS:5,REGISTERED_PROTOCOLS:{},WORKER_URL:""};class J extends Error{constructor(e,t,i,r){super(`AJAXError: ${t} (${e}): ${i}`),this.status=e,this.statusText=t,this.url=i,this.body=r}}let Q=Z()?()=>self.worker&&self.worker.referrer:()=>("blob:"===window.location.protocol?window.parent:window).location.href,ee=e=>Y.REGISTERED_PROTOCOLS[e.substring(0,e.indexOf("://"))];function et(e,t){let i=new AbortController,r=new Request(e.url,{method:e.method||"GET",body:e.body,credentials:e.credentials,headers:e.headers,cache:e.cache,referrer:Q(),signal:i.signal}),a=!1,s=!1;return"json"===e.type&&r.headers.set("Accept","application/json"),s||fetch(r).then(i=>i.ok?void("arrayBuffer"===e.type||"image"===e.type?i.arrayBuffer():"json"===e.type?i.json():i.text()).then(e=>{s||(a=!0,t(null,e,i.headers.get("Cache-Control"),i.headers.get("Expires")))}).catch(e=>{s||t(Error(e.message))}):i.blob().then(r=>t(new J(i.status,i.statusText,e.url,r)))).catch(e=>{20!==e.code&&t(Error(e.message))}),{cancel:()=>{s=!0,a||i.abort()}}}let ei=function(e,t){var i;if(/:\/\//.test(e.url)&&!/^https?:|^file:/.test(e.url)){if(Z()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",e,t);if(!Z())return(ee(e.url)||et)(e,t)}if(!(/^file:/.test(i=e.url)||/^file:/.test(Q())&&!/^\w+:/.test(i))){if(fetch&&Request&&AbortController&&Object.prototype.hasOwnProperty.call(Request.prototype,"signal"))return et(e,t);if(Z()&&self.worker&&self.worker.actor)return self.worker.actor.send("getResource",e,t,void 0,!0)}let r=new XMLHttpRequest;for(let t in r.open(e.method||"GET",e.url,!0),"arrayBuffer"!==e.type&&"image"!==e.type||(r.responseType="arraybuffer"),e.headers)r.setRequestHeader(t,e.headers[t]);return"json"===e.type&&(r.responseType="text",r.setRequestHeader("Accept","application/json")),r.withCredentials="include"===e.credentials,r.onerror=()=>{t(Error(r.statusText))},r.onload=()=>{if((r.status>=200&&r.status<300||0===r.status)&&null!==r.response){let i=r.response;if("json"===e.type)try{i=JSON.parse(r.response)}catch(e){return t(e)}t(null,i,r.getResponseHeader("Cache-Control"),r.getResponseHeader("Expires"))}else{let i=new Blob([r.response],{type:r.getResponseHeader("Content-Type")});t(new J(r.status,r.statusText,e.url,i))}},r.send(e.body),{cancel:()=>r.abort()}},er=function(e,t){return ei(F(e,{type:"arrayBuffer"}),t)};function ea(e){if(!e||0>=e.indexOf("://")||0===e.indexOf("data:image/")||0===e.indexOf("blob:"))return!0;let t=new URL(e),i=window.location;return t.protocol===i.protocol&&t.host===i.host}function es(e,t,i){i[e]&&-1!==i[e].indexOf(t)||(i[e]=i[e]||[],i[e].push(t))}function en(e,t,i){if(i&&i[e]){let r=i[e].indexOf(t);-1!==r&&i[e].splice(r,1)}}class eo{constructor(e,t={}){F(this,t),this.type=e}}class el extends eo{constructor(e,t={}){super("error",F({error:e},t))}}class eh{on(e,t){return this._listeners=this._listeners||{},es(e,t,this._listeners),this}off(e,t){return en(e,t,this._listeners),en(e,t,this._oneTimeListeners),this}once(e,t){return t?(this._oneTimeListeners=this._oneTimeListeners||{},es(e,t,this._oneTimeListeners),this):new Promise(t=>this.once(e,t))}fire(e,t){"string"==typeof e&&(e=new eo(e,t||{}));let i=e.type;if(this.listens(i)){for(let t of(e.target=this,this._listeners&&this._listeners[i]?this._listeners[i].slice():[]))t.call(this,e);for(let t of this._oneTimeListeners&&this._oneTimeListeners[i]?this._oneTimeListeners[i].slice():[])en(i,t,this._oneTimeListeners),t.call(this,e);let t=this._eventedParent;t&&(F(e,"function"==typeof this._eventedParentData?this._eventedParentData():this._eventedParentData),t.fire(e))}else e instanceof el&&console.error(e.error);return this}listens(e){return this._listeners&&this._listeners[e]&&this._listeners[e].length>0||this._oneTimeListeners&&this._oneTimeListeners[e]&&this._oneTimeListeners[e].length>0||this._eventedParent&&this._eventedParent.listens(e)}setEventedParent(e,t){return this._eventedParent=e,this._eventedParentData=t,this}}var eu={$version:8,$root:{version:{required:!0,type:"enum",values:[8]},name:{type:"string"},metadata:{type:"*"},center:{type:"array",value:"number"},zoom:{type:"number"},bearing:{type:"number",default:0,period:360,units:"degrees"},pitch:{type:"number",default:0,units:"degrees"},light:{type:"light"},terrain:{type:"terrain"},sources:{required:!0,type:"sources"},sprite:{type:"sprite"},glyphs:{type:"string"},transition:{type:"transition"},layers:{required:!0,type:"array",value:"layer"}},sources:{"*":{type:"source"}},source:["source_vector","source_raster","source_raster_dem","source_geojson","source_video","source_image"],source_vector:{type:{required:!0,type:"enum",values:{vector:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},attribution:{type:"string"},promoteId:{type:"promoteId"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster:{type:{required:!0,type:"enum",values:{raster:{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},scheme:{type:"enum",values:{xyz:{},tms:{}},default:"xyz"},attribution:{type:"string"},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_raster_dem:{type:{required:!0,type:"enum",values:{"raster-dem":{}}},url:{type:"string"},tiles:{type:"array",value:"string"},bounds:{type:"array",value:"number",length:4,default:[-180,-85.051129,180,85.051129]},minzoom:{type:"number",default:0},maxzoom:{type:"number",default:22},tileSize:{type:"number",default:512,units:"pixels"},attribution:{type:"string"},encoding:{type:"enum",values:{terrarium:{},mapbox:{},custom:{}},default:"mapbox"},redFactor:{type:"number",default:1},blueFactor:{type:"number",default:1},greenFactor:{type:"number",default:1},baseShift:{type:"number",default:0},volatile:{type:"boolean",default:!1},"*":{type:"*"}},source_geojson:{type:{required:!0,type:"enum",values:{geojson:{}}},data:{required:!0,type:"*"},maxzoom:{type:"number",default:18},attribution:{type:"string"},buffer:{type:"number",default:128,maximum:512,minimum:0},filter:{type:"*"},tolerance:{type:"number",default:.375},cluster:{type:"boolean",default:!1},clusterRadius:{type:"number",default:50,minimum:0},clusterMaxZoom:{type:"number"},clusterMinPoints:{type:"number"},clusterProperties:{type:"*"},lineMetrics:{type:"boolean",default:!1},generateId:{type:"boolean",default:!1},promoteId:{type:"promoteId"}},source_video:{type:{required:!0,type:"enum",values:{video:{}}},urls:{required:!0,type:"array",value:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},source_image:{type:{required:!0,type:"enum",values:{image:{}}},url:{required:!0,type:"string"},coordinates:{required:!0,type:"array",length:4,value:{type:"array",length:2,value:"number"}}},layer:{id:{type:"string",required:!0},type:{type:"enum",values:{fill:{},line:{},symbol:{},circle:{},heatmap:{},"fill-extrusion":{},raster:{},hillshade:{},background:{}},required:!0},metadata:{type:"*"},source:{type:"string"},"source-layer":{type:"string"},minzoom:{type:"number",minimum:0,maximum:24},maxzoom:{type:"number",minimum:0,maximum:24},filter:{type:"filter"},layout:{type:"layout"},paint:{type:"paint"}},layout:["layout_fill","layout_line","layout_circle","layout_heatmap","layout_fill-extrusion","layout_symbol","layout_raster","layout_hillshade","layout_background"],layout_background:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_fill:{"fill-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_circle:{"circle-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_heatmap:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},"layout_fill-extrusion":{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_line:{"line-cap":{type:"enum",values:{butt:{},round:{},square:{}},default:"butt",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-join":{type:"enum",values:{bevel:{},round:{},miter:{}},default:"miter",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"line-miter-limit":{type:"number",default:2,requires:[{"line-join":"miter"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-round-limit":{type:"number",default:1.05,requires:[{"line-join":"round"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_symbol:{"symbol-placement":{type:"enum",values:{point:{},line:{},"line-center":{}},default:"point",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-spacing":{type:"number",default:250,minimum:1,units:"pixels",requires:[{"symbol-placement":"line"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"symbol-avoid-edges":{type:"boolean",default:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"symbol-sort-key":{type:"number",expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"symbol-z-order":{type:"enum",values:{auto:{},"viewport-y":{},source:{}},default:"auto",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-allow-overlap":{type:"boolean",default:!1,requires:["icon-image",{"!":"icon-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-ignore-placement":{type:"boolean",default:!1,requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-optional":{type:"boolean",default:!1,requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-rotation-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-size":{type:"number",default:1,minimum:0,units:"factor of the original icon size",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-text-fit":{type:"enum",values:{none:{},width:{},height:{},both:{}},default:"none",requires:["icon-image","text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-text-fit-padding":{type:"array",value:"number",length:4,default:[0,0,0,0],units:"pixels",requires:["icon-image","text-field",{"icon-text-fit":["both","width","height"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-image":{type:"resolvedImage",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-padding":{type:"padding",default:[2],units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-keep-upright":{type:"boolean",default:!1,requires:["icon-image",{"icon-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"icon-offset":{type:"array",value:"number",length:2,default:[0,0],requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"icon-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-pitch-alignment":{type:"enum",values:{map:{},viewport:{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotation-alignment":{type:"enum",values:{map:{},viewport:{},"viewport-glyph":{},auto:{}},default:"auto",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-field":{type:"formatted",default:"",tokens:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-font":{type:"array",value:"string",default:["Open Sans Regular","Arial Unicode MS Regular"],requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-size":{type:"number",default:16,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-width":{type:"number",default:10,minimum:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-line-height":{type:"number",default:1.2,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-letter-spacing":{type:"number",default:0,units:"ems",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-justify":{type:"enum",values:{auto:{},left:{},center:{},right:{}},default:"center",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-radial-offset":{type:"number",units:"ems",default:0,requires:["text-field"],"property-type":"data-driven",expression:{interpolated:!0,parameters:["zoom","feature"]}},"text-variable-anchor":{type:"array",value:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-variable-anchor-offset":{type:"variableAnchorOffsetCollection",requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-anchor":{type:"enum",values:{center:{},left:{},right:{},top:{},bottom:{},"top-left":{},"top-right":{},"bottom-left":{},"bottom-right":{}},default:"center",requires:["text-field",{"!":"text-variable-anchor"}],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-max-angle":{type:"number",default:45,units:"degrees",requires:["text-field",{"symbol-placement":["line","line-center"]}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-writing-mode":{type:"array",value:"enum",values:{horizontal:{},vertical:{}},requires:["text-field",{"symbol-placement":["point"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-rotate":{type:"number",default:0,period:360,units:"degrees",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-padding":{type:"number",default:2,minimum:0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-keep-upright":{type:"boolean",default:!0,requires:["text-field",{"text-rotation-alignment":"map"},{"symbol-placement":["line","line-center"]}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-transform":{type:"enum",values:{none:{},uppercase:{},lowercase:{}},default:"none",requires:["text-field"],expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-offset":{type:"array",value:"number",units:"ems",length:2,default:[0,0],requires:["text-field",{"!":"text-radial-offset"}],expression:{interpolated:!0,parameters:["zoom","feature"]},"property-type":"data-driven"},"text-allow-overlap":{type:"boolean",default:!1,requires:["text-field",{"!":"text-overlap"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-overlap":{type:"enum",values:{never:{},always:{},cooperative:{}},requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-ignore-placement":{type:"boolean",default:!1,requires:["text-field"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-optional":{type:"boolean",default:!1,requires:["text-field","icon-image"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_raster:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},layout_hillshade:{visibility:{type:"enum",values:{visible:{},none:{}},default:"visible","property-type":"constant"}},filter:{type:"array",value:"*"},filter_operator:{type:"enum",values:{"==":{},"!=":{},">":{},">=":{},"<":{},"<=":{},in:{},"!in":{},all:{},any:{},none:{},has:{},"!has":{},within:{}}},geometry_type:{type:"enum",values:{Point:{},LineString:{},Polygon:{}}},function:{expression:{type:"expression"},stops:{type:"array",value:"function_stop"},base:{type:"number",default:1,minimum:0},property:{type:"string",default:"$zoom"},type:{type:"enum",values:{identity:{},exponential:{},interval:{},categorical:{}},default:"exponential"},colorSpace:{type:"enum",values:{rgb:{},lab:{},hcl:{}},default:"rgb"},default:{type:"*",required:!1}},function_stop:{type:"array",minimum:0,maximum:24,value:["number","color"],length:2},expression:{type:"array",value:"*",minimum:1},light:{anchor:{type:"enum",default:"viewport",values:{map:{},viewport:{}},"property-type":"data-constant",transition:!1,expression:{interpolated:!1,parameters:["zoom"]}},position:{type:"array",default:[1.15,210,30],length:3,value:"number","property-type":"data-constant",transition:!0,expression:{interpolated:!0,parameters:["zoom"]}},color:{type:"color","property-type":"data-constant",default:"#ffffff",expression:{interpolated:!0,parameters:["zoom"]},transition:!0},intensity:{type:"number","property-type":"data-constant",default:.5,minimum:0,maximum:1,expression:{interpolated:!0,parameters:["zoom"]},transition:!0}},terrain:{source:{type:"string",required:!0},exaggeration:{type:"number",minimum:0,default:1}},paint:["paint_fill","paint_line","paint_circle","paint_heatmap","paint_fill-extrusion","paint_symbol","paint_raster","paint_hillshade","paint_background"],paint_fill:{"fill-antialias":{type:"boolean",default:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-outline-color":{type:"color",transition:!0,requires:[{"!":"fill-pattern"},{"fill-antialias":!0}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"}},"paint_fill-extrusion":{"fill-extrusion-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"fill-extrusion-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["fill-extrusion-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"fill-extrusion-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"fill-extrusion-height":{type:"number",default:0,minimum:0,units:"meters",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-base":{type:"number",default:0,minimum:0,units:"meters",transition:!0,requires:["fill-extrusion-height"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"fill-extrusion-vertical-gradient":{type:"boolean",default:!0,transition:!1,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_line:{"line-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"line-pattern"}],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"line-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["line-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"line-width":{type:"number",default:1,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-gap-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-offset":{type:"number",default:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"line-dasharray":{type:"array",value:"number",minimum:0,transition:!0,units:"line widths",requires:[{"!":"line-pattern"}],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"line-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom","feature"]},"property-type":"cross-faded-data-driven"},"line-gradient":{type:"color",transition:!1,requires:[{"!":"line-dasharray"},{"!":"line-pattern"},{source:"geojson",has:{lineMetrics:!0}}],expression:{interpolated:!0,parameters:["line-progress"]},"property-type":"color-ramp"}},paint_circle:{"circle-radius":{type:"number",default:5,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-blur":{type:"number",default:0,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"circle-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["circle-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-scale":{type:"enum",values:{map:{},viewport:{}},default:"map",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-pitch-alignment":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"circle-stroke-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"circle-stroke-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"}},paint_heatmap:{"heatmap-radius":{type:"number",default:30,minimum:1,transition:!0,units:"pixels",expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-weight":{type:"number",default:1,minimum:0,transition:!1,expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"heatmap-intensity":{type:"number",default:1,minimum:0,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"heatmap-color":{type:"color",default:["interpolate",["linear"],["heatmap-density"],0,"rgba(0, 0, 255, 0)",.1,"royalblue",.3,"cyan",.5,"lime",.7,"yellow",1,"red"],transition:!1,expression:{interpolated:!0,parameters:["heatmap-density"]},"property-type":"color-ramp"},"heatmap-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_symbol:{"icon-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-color":{type:"color",default:"#000000",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"icon-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["icon-image"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"icon-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["icon-image","icon-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"text-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-color":{type:"color",default:"#000000",transition:!0,overridable:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-color":{type:"color",default:"rgba(0, 0, 0, 0)",transition:!0,requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-width":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-halo-blur":{type:"number",default:0,minimum:0,transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom","feature","feature-state"]},"property-type":"data-driven"},"text-translate":{type:"array",value:"number",length:2,default:[0,0],transition:!0,units:"pixels",requires:["text-field"],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"text-translate-anchor":{type:"enum",values:{map:{},viewport:{}},default:"map",requires:["text-field","text-translate"],expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"}},paint_raster:{"raster-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-hue-rotate":{type:"number",default:0,period:360,transition:!0,units:"degrees",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-min":{type:"number",default:0,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-brightness-max":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-saturation":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-contrast":{type:"number",default:0,minimum:-1,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"raster-resampling":{type:"enum",values:{linear:{},nearest:{}},default:"linear",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"raster-fade-duration":{type:"number",default:300,minimum:0,transition:!1,units:"milliseconds",expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_hillshade:{"hillshade-illumination-direction":{type:"number",default:335,minimum:0,maximum:359,transition:!1,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-illumination-anchor":{type:"enum",values:{map:{},viewport:{}},default:"viewport",expression:{interpolated:!1,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-exaggeration":{type:"number",default:.5,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-shadow-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-highlight-color":{type:"color",default:"#FFFFFF",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"hillshade-accent-color":{type:"color",default:"#000000",transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},paint_background:{"background-color":{type:"color",default:"#000000",transition:!0,requires:[{"!":"background-pattern"}],expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"},"background-pattern":{type:"resolvedImage",transition:!0,expression:{interpolated:!1,parameters:["zoom"]},"property-type":"cross-faded"},"background-opacity":{type:"number",default:1,minimum:0,maximum:1,transition:!0,expression:{interpolated:!0,parameters:["zoom"]},"property-type":"data-constant"}},transition:{duration:{type:"number",default:300,minimum:0,units:"milliseconds"},delay:{type:"number",default:0,minimum:0,units:"milliseconds"}},"property-type":{"data-driven":{type:"property-type"},"cross-faded":{type:"property-type"},"cross-faded-data-driven":{type:"property-type"},"color-ramp":{type:"property-type"},"data-constant":{type:"property-type"},constant:{type:"property-type"}},promoteId:{"*":{type:"string"}}};let ec=["type","source","source-layer","minzoom","maxzoom","filter","layout"];function ed(e,t){if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let i=0;i`:"value"===e.itemType.kind?"array":`array<${t}>`}return e.kind}let eF=[eS,eT,eI,eA,eM,eP,eE,eR(ek),ez,eD,eL];function eO(e,t){if("error"===t.kind)return null;if("array"===e.kind){if("array"===t.kind&&(0===t.N&&"value"===t.itemType.kind||!eO(e.itemType,t.itemType))&&("number"!=typeof e.N||e.N===t.N))return null}else{if(e.kind===t.kind)return null;if("value"===e.kind){for(let e of eF)if(!eO(e,t))return null}}return`Expected ${eB(e)} but found ${eB(t)} instead.`}function eV(e,t){return t.some(t=>t.kind===e.kind)}function eN(e,t){return t.some(t=>"null"===t?null===e:"array"===t?Array.isArray(e):"object"===t?e&&!Array.isArray(e)&&"object"==typeof e:t===typeof e)}function eU(e,t){return"array"===e.kind&&"array"===t.kind?e.itemType.kind===t.itemType.kind&&"number"==typeof e.N:e.kind===t.kind}let e$=4/29,ej=6/29,eq=6/29*3*(6/29),eZ=6/29*(6/29)*(6/29),eG=Math.PI/180,eX=180/Math.PI;function eW(e){return(e%=360)<0&&(e+=360),e}function eH([e,t,i,r]){let a,s,n=eY((.2225045*(e=eK(e))+.7168786*(t=eK(t))+.0606169*(i=eK(i)))/1);e===t&&t===i?a=s=n:(a=eY((.4360747*e+.3850649*t+.1430804*i)/.96422),s=eY((.0139322*e+.0971045*t+.7141733*i)/.82521));let o=116*n-16;return[o<0?0:o,500*(a-n),200*(n-s),r]}function eK(e){return e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function eY(e){return e>eZ?Math.pow(e,1/3):e/eq+e$}function eJ([e,t,i,r]){let a=(e+16)/116,s=isNaN(t)?a:a+t/500,n=isNaN(i)?a:a-i/200;return a=+e0(a),[eQ(3.1338561*(s=.96422*e0(s))-1.6168667*a-.4906146*(n=.82521*e0(n))),eQ(-.9787684*s+1.9161415*a+.033454*n),eQ(.0719453*s-.2289914*a+1.4052427*n),r]}function eQ(e){return(e=e<=.00304?12.92*e:1.055*Math.pow(e,1/2.4)-.055)<0?0:e>1?1:e}function e0(e){return e>ej?e*e*e:eq*(e-e$)}function e1(e){return parseInt(e.padEnd(2,e),16)/255}function e2(e,t){return e5(t?e/100:e,0,1)}function e5(e,t,i){return Math.min(Math.max(t,e),i)}function e3(e){return!e.some(Number.isNaN)}let e4={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};class e6{constructor(e,t,i,r=1,a=!0){this.r=e,this.g=t,this.b=i,this.a=r,a||(this.r*=r,this.g*=r,this.b*=r,r||this.overwriteGetter("rgb",[e,t,i,r]))}static parse(e){if(e instanceof e6)return e;if("string"!=typeof e)return;let t=function(e){if("transparent"===(e=e.toLowerCase().trim()))return[0,0,0,0];let t=e4[e];if(t){let[e,i,r]=t;return[e/255,i/255,r/255,1]}if(e.startsWith("#")&&/^#(?:[0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/.test(e)){let t=e.length<6?1:2,i=1;return[e1(e.slice(i,i+=t)),e1(e.slice(i,i+=t)),e1(e.slice(i,i+=t)),e1(e.slice(i,i+t)||"ff")]}if(e.startsWith("rgb")){let t=e.match(/^rgba?\(\s*([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s+|\s*(,)\s*)([\de.+-]+)(%)?(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(t){let[e,i,r,a,s,n,o,l,h,u,c,d]=t,p=[a||" ",o||" ",u].join("");if(" "===p||" /"===p||",,"===p||",,,"===p){let e=[r,n,h].join(""),t="%%%"===e?100:255*(""===e);if(t){let e=[e5(i/t,0,1),e5(s/t,0,1),e5(l/t,0,1),c?e2(+c,d):1];if(e3(e))return e}}return}}let i=e.match(/^hsla?\(\s*([\de.+-]+)(?:deg)?(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s+|\s*(,)\s*)([\de.+-]+)%(?:\s*([,\/])\s*([\de.+-]+)(%)?)?\s*\)$/);if(i){let[e,t,r,a,s,n,o,l,h]=i,u=[r||" ",s||" ",o].join("");if(" "===u||" /"===u||",,"===u||",,,"===u){let e=[+t,e5(+a,0,100),e5(+n,0,100),l?e2(+l,h):1];if(e3(e))return function([e,t,i,r]){function a(r){let a=(r+e/30)%12,s=t*Math.min(i,1-i);return i-s*Math.max(-1,Math.min(a-3,9-a,1))}return e=eW(e),t/=100,i/=100,[a(0),a(8),a(4),r]}(e)}}}(e);return t?new e6(...t,!1):void 0}get rgb(){let{r:e,g:t,b:i,a:r}=this,a=r||1/0;return this.overwriteGetter("rgb",[e/a,t/a,i/a,r])}get hcl(){return this.overwriteGetter("hcl",function(e){let[t,i,r,a]=eH(e),s=Math.sqrt(i*i+r*r);return[Math.round(1e4*s)?eW(Math.atan2(r,i)*eX):NaN,s,t,a]}(this.rgb))}get lab(){return this.overwriteGetter("lab",eH(this.rgb))}overwriteGetter(e,t){return Object.defineProperty(this,e,{value:t}),t}toString(){let[e,t,i,r]=this.rgb;return`rgba(${[e,t,i].map(e=>Math.round(255*e)).join(",")},${r})`}}e6.black=new e6(0,0,0,1),e6.white=new e6(1,1,1,1),e6.transparent=new e6(0,0,0,0),e6.red=new e6(1,0,0,1);class e8{constructor(e,t,i){this.sensitivity=e?t?"variant":"case":t?"accent":"base",this.locale=i,this.collator=new Intl.Collator(this.locale?this.locale:[],{sensitivity:this.sensitivity,usage:"search"})}compare(e,t){return this.collator.compare(e,t)}resolvedLocale(){return new Intl.Collator(this.locale?this.locale:[]).resolvedOptions().locale}}class e9{constructor(e,t,i,r,a){this.text=e,this.image=t,this.scale=i,this.fontStack=r,this.textColor=a}}class e7{constructor(e){this.sections=e}static fromString(e){return new e7([new e9(e,null,null,null,null)])}isEmpty(){return 0===this.sections.length||!this.sections.some(e=>0!==e.text.length||e.image&&0!==e.image.name.length)}static factory(e){return e instanceof e7?e:e7.fromString(e)}toString(){return 0===this.sections.length?"":this.sections.map(e=>e.text).join("")}}class te{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof te)return e;if("number"==typeof e)return new te([e,e,e,e]);if(Array.isArray(e)&&!(e.length<1||e.length>4)){for(let t of e)if("number"!=typeof t)return;switch(e.length){case 1:e=[e[0],e[0],e[0],e[0]];break;case 2:e=[e[0],e[1],e[0],e[1]];break;case 3:e=[e[0],e[1],e[2],e[1]]}return new te(e)}}toString(){return JSON.stringify(this.values)}}let tt=new Set(["center","left","right","top","bottom","top-left","top-right","bottom-left","bottom-right"]);class ti{constructor(e){this.values=e.slice()}static parse(e){if(e instanceof ti)return e;if(Array.isArray(e)&&!(e.length<1)&&e.length%2==0){for(let t=0;t=0&&e<=255&&"number"==typeof t&&t>=0&&t<=255&&"number"==typeof i&&i>=0&&i<=255?void 0===r||"number"==typeof r&&r>=0&&r<=1?null:`Invalid rgba value [${[e,t,i,r].join(", ")}]: 'a' must be between 0 and 1.`:`Invalid rgba value [${("number"==typeof r?[e,t,i,r]:[e,t,i]).join(", ")}]: 'r', 'g', and 'b' must be between 0 and 255.`}function ts(e){if(null===e||"string"==typeof e||"boolean"==typeof e||"number"==typeof e||e instanceof e6||e instanceof e8||e instanceof e7||e instanceof te||e instanceof ti||e instanceof tr)return!0;if(Array.isArray(e)){for(let t of e)if(!ts(t))return!1;return!0}if("object"==typeof e){for(let t in e)if(!ts(e[t]))return!1;return!0}return!1}function tn(e){if(null===e)return eS;if("string"==typeof e)return eI;if("boolean"==typeof e)return eA;if("number"==typeof e)return eT;if(e instanceof e6)return eM;if(e instanceof e8)return eC;if(e instanceof e7)return eP;if(e instanceof te)return ez;if(e instanceof ti)return eL;if(e instanceof tr)return eD;if(Array.isArray(e)){let t,i=e.length;for(let i of e){let e=tn(i);if(t){if(t===e)continue;t=ek;break}t=e}return eR(t||ek,i)}return eE}function to(e){let t=typeof e;return null===e?"":"string"===t||"number"===t||"boolean"===t?String(e):e instanceof e6||e instanceof e7||e instanceof te||e instanceof ti||e instanceof tr?e.toString():JSON.stringify(e)}class tl{constructor(e,t){this.type=e,this.value=t}static parse(e,t){if(2!==e.length)return t.error(`'literal' expression requires exactly one argument, but found ${e.length-1} instead.`);if(!ts(e[1]))return t.error("invalid value");let i=e[1],r=tn(i),a=t.expectedType;return"array"===r.kind&&0===r.N&&a&&"array"===a.kind&&("number"!=typeof a.N||0===a.N)&&(r=a),new tl(r,i)}evaluate(){return this.value}eachChild(){}outputDefined(){return!0}}class th{constructor(e){this.name="ExpressionEvaluationError",this.message=e}toJSON(){return this.message}}let tu={string:eI,number:eT,boolean:eA,object:eE};class tc{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let i,r=1,a=e[0];if("array"===a){let a,s;if(e.length>2){let i=e[1];if("string"!=typeof i||!(i in tu)||"object"===i)return t.error('The item type argument of "array" must be one of string, number, boolean',1);a=tu[i],r++}else a=ek;if(e.length>3){if(null!==e[2]&&("number"!=typeof e[2]||e[2]<0||e[2]!==Math.floor(e[2])))return t.error('The length argument to "array" must be a positive integer literal',2);s=e[2],r++}i=eR(a,s)}else{if(!tu[a])throw Error(`Types doesn't contain name = ${a}`);i=tu[a]}let s=[];for(;re.outputDefined())}}let td={"to-boolean":eA,"to-color":eM,"to-number":eT,"to-string":eI};class tp{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let i=e[0];if(!td[i])throw Error(`Can't parse ${i} as it is not part of the known types`);if(("to-boolean"===i||"to-string"===i)&&2!==e.length)return t.error("Expected one argument.");let r=td[i],a=[];for(let i=1;i4?`Invalid rbga value ${JSON.stringify(t)}: expected an array containing either three or four numeric values.`:ta(t[0],t[1],t[2],t[3])))return new e6(t[0]/255,t[1]/255,t[2]/255,t[3])}throw new th(i||`Could not parse color from value '${"string"==typeof t?t:JSON.stringify(t)}'`)}case"padding":{let t;for(let i of this.args){t=i.evaluate(e);let r=te.parse(t);if(r)return r}throw new th(`Could not parse padding from value '${"string"==typeof t?t:JSON.stringify(t)}'`)}case"variableAnchorOffsetCollection":{let t;for(let i of this.args){t=i.evaluate(e);let r=ti.parse(t);if(r)return r}throw new th(`Could not parse variableAnchorOffsetCollection from value '${"string"==typeof t?t:JSON.stringify(t)}'`)}case"number":{let t=null;for(let i of this.args){if(null===(t=i.evaluate(e)))return 0;let r=Number(t);if(!isNaN(r))return r}throw new th(`Could not convert ${JSON.stringify(t)} to number.`)}case"formatted":return e7.fromString(to(this.args[0].evaluate(e)));case"resolvedImage":return tr.fromString(to(this.args[0].evaluate(e)));default:return to(this.args[0].evaluate(e))}}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}}let tf=["Unknown","Point","LineString","Polygon"];class tm{constructor(){this.globals=null,this.feature=null,this.featureState=null,this.formattedSection=null,this._parseColorCache={},this.availableImages=null,this.canonical=null}id(){return this.feature&&"id"in this.feature?this.feature.id:null}geometryType(){return this.feature?"number"==typeof this.feature.type?tf[this.feature.type]:this.feature.type:null}geometry(){return this.feature&&"geometry"in this.feature?this.feature.geometry:null}canonicalID(){return this.canonical}properties(){return this.feature&&this.feature.properties||{}}parseColor(e){let t=this._parseColorCache[e];return t||(t=this._parseColorCache[e]=e6.parse(e)),t}}class t_{constructor(e,t,i=[],r,a=new ew,s=[]){this.registry=e,this.path=i,this.key=i.map(e=>`[${e}]`).join(""),this.scope=a,this.errors=s,this.expectedType=r,this._isConstant=t}parse(e,t,i,r,a={}){return t?this.concat(t,i,r)._parse(e,a):this._parse(e,a)}_parse(e,t){function i(e,t,i){return"assert"===i?new tc(t,[e]):"coerce"===i?new tp(t,[e]):e}if(null!==e&&"string"!=typeof e&&"boolean"!=typeof e&&"number"!=typeof e||(e=["literal",e]),Array.isArray(e)){if(0===e.length)return this.error('Expected an array with at least one element. If you wanted a literal array, use ["literal", []].');let r=e[0];if("string"!=typeof r)return this.error(`Expression name must be a string, but found ${typeof r} instead. If you wanted a literal array, use ["literal", [...]].`,0),null;let a=this.registry[r];if(a){let r=a.parse(e,this);if(!r)return null;if(this.expectedType){let e=this.expectedType,a=r.type;if("string"!==e.kind&&"number"!==e.kind&&"boolean"!==e.kind&&"object"!==e.kind&&"array"!==e.kind||"value"!==a.kind)if("color"!==e.kind&&"formatted"!==e.kind&&"resolvedImage"!==e.kind||"value"!==a.kind&&"string"!==a.kind)if("padding"!==e.kind||"value"!==a.kind&&"number"!==a.kind&&"array"!==a.kind)if("variableAnchorOffsetCollection"!==e.kind||"value"!==a.kind&&"array"!==a.kind){if(this.checkSubtype(e,a))return null}else r=i(r,e,t.typeAnnotation||"coerce");else r=i(r,e,t.typeAnnotation||"coerce");else r=i(r,e,t.typeAnnotation||"coerce");else r=i(r,e,t.typeAnnotation||"assert")}if(!(r instanceof tl)&&"resolvedImage"!==r.type.kind&&this._isConstant(r)){let e=new tm;try{r=new tl(r.type,r.evaluate(e))}catch(e){return this.error(e.message),null}}return r}return this.error(`Unknown expression "${r}". If you wanted a literal array, use ["literal", [...]].`,0)}return this.error(void 0===e?"'undefined' value invalid. Use null instead.":"object"==typeof e?'Bare objects invalid. Use ["literal", {...}] instead.':`Expected an array, but found ${typeof e} instead.`)}concat(e,t,i){let r="number"==typeof e?this.path.concat(e):this.path,a=i?this.scope.concat(i):this.scope;return new t_(this.registry,this._isConstant,r,t||null,a,this.errors)}error(e,...t){let i=`${this.key}${t.map(e=>`[${e}]`).join("")}`;this.errors.push(new eb(i,e))}checkSubtype(e,t){let i=eO(e,t);return i&&this.error(i),i}}class tg{constructor(e,t,i){this.type=eC,this.locale=i,this.caseSensitive=e,this.diacriticSensitive=t}static parse(e,t){if(2!==e.length)return t.error("Expected one argument.");let i=e[1];if("object"!=typeof i||Array.isArray(i))return t.error("Collator options argument must be an object.");let r=t.parse(void 0!==i["case-sensitive"]&&i["case-sensitive"],1,eA);if(!r)return null;let a=t.parse(void 0!==i["diacritic-sensitive"]&&i["diacritic-sensitive"],1,eA);if(!a)return null;let s=null;return!i.locale||(s=t.parse(i.locale,1,eI))?new tg(r,a,s):null}evaluate(e){return new e8(this.caseSensitive.evaluate(e),this.diacriticSensitive.evaluate(e),this.locale?this.locale.evaluate(e):null)}eachChild(e){e(this.caseSensitive),e(this.diacriticSensitive),this.locale&&e(this.locale)}outputDefined(){return!1}}function ty(e,t){e[0]=Math.min(e[0],t[0]),e[1]=Math.min(e[1],t[1]),e[2]=Math.max(e[2],t[0]),e[3]=Math.max(e[3],t[1])}function tx(e,t){return!(e[0]<=t[0]||e[2]>=t[2]||e[1]<=t[1]||e[3]>=t[3])}function tv(e,t){var i,r;let a=!1;for(let s=0,n=t.length;se[1]!=(r=n[t+1])[1]>e[1]&&e[0]<(r[0]-i[0])*(e[1]-i[1])/(r[1]-i[1])+i[0]&&(a=!a)}}return a}function tb(e,t,i,r){let a=r[0]-i[0],s=r[1]-i[1],n=(e[0]-i[0])*s-a*(e[1]-i[1]),o=(t[0]-i[0])*s-a*(t[1]-i[1]);return n>0&&o<0||n<0&&o>0}function tw(e,t){for(let i=0;ii[2]){let t=.5*r,a=e[0]-i[0]>t?-r:i[0]-e[0]>t?r:0;0===a&&(a=e[0]-i[2]>t?-r:i[2]-e[0]>t?r:0),e[0]+=a}ty(t,e)}function tA(e,t,i,r){let a=8192*Math.pow(2,r.z),s=[8192*r.x,8192*r.y],n=[];for(let r of e)for(let e of r){let r=[e.x+s[0],e.y+s[1]];tI(r,t,i,a),n.push(r)}return n}function tM(e,t,i,r){let a=8192*Math.pow(2,r.z),s=[8192*r.x,8192*r.y],n=[];for(let i of e){let e=[];for(let r of i){let i=[r.x+s[0],r.y+s[1]];ty(t,i),e.push(i)}n.push(e)}if(t[2]-t[0]<=a/2)for(let e of(t[0]=t[1]=1/0,t[2]=t[3]=-1/0,n))for(let r of e)tI(r,t,i,a);return n}class tE{constructor(e,t){this.type=eA,this.geojson=e,this.geometries=t}static parse(e,t){if(2!==e.length)return t.error(`'within' expression requires exactly one argument, but found ${e.length-1} instead.`);if(ts(e[1])){let t=e[1];if("FeatureCollection"===t.type)for(let e=0;e!Array.isArray(t)||t.length===e.length-1),o=null;for(let[r,s]of n){o=new t_(t.registry,tP,t.path,null,t.scope);let n=[],l=!1;for(let t=1;tArray.isArray(e)?`(${e.map(eB).join(", ")})`:`(${eB(e.type)}...)`).join(" | "),r=[];for(let i=1;i{i=t?i&&tP(e):i&&e instanceof tl}),!!i&&tz(e)&&tL(e,["zoom","heatmap-density","line-progress","accumulated","is-supported-script"])}function tz(e){if(e instanceof tC&&("get"===e.name&&1===e.args.length||"feature-state"===e.name||"has"===e.name&&1===e.args.length||"properties"===e.name||"geometry-type"===e.name||"id"===e.name||/^filter-/.test(e.name))||e instanceof tE)return!1;let t=!0;return e.eachChild(e=>{t&&!tz(e)&&(t=!1)}),t}function tD(e){if(e instanceof tC&&"feature-state"===e.name)return!1;let t=!0;return e.eachChild(e=>{t&&!tD(e)&&(t=!1)}),t}function tL(e,t){if(e instanceof tC&&t.indexOf(e.name)>=0)return!1;let i=!0;return e.eachChild(e=>{i&&!tL(e,t)&&(i=!1)}),i}function tR(e,t){let i=e.length-1,r,a,s=0,n=i,o=0;for(;s<=n;)if(r=e[o=Math.floor((s+n)/2)],a=e[o+1],r<=t){if(o===i||tt))throw new th("Input is not a number.");n=o-1}return 0}class tB{constructor(e,t,i){for(let[r,a]of(this.type=e,this.input=t,this.labels=[],this.outputs=[],i))this.labels.push(r),this.outputs.push(a)}static parse(e,t){if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");let i=t.parse(e[1],1,eT);if(!i)return null;let r=[],a=null;t.expectedType&&"value"!==t.expectedType.kind&&(a=t.expectedType);for(let i=1;i=s)return t.error('Input/output pairs for "step" expressions must be arranged with input values in strictly ascending order.',o);let h=t.parse(n,l,a);if(!h)return null;a=a||h.type,r.push([s,h])}return new tB(a,i,r)}evaluate(e){let t=this.labels,i=this.outputs;if(1===t.length)return i[0].evaluate(e);let r=this.input.evaluate(e);if(r<=t[0])return i[0].evaluate(e);let a=t.length;return r>=t[a-1]?i[a-1].evaluate(e):i[tR(t,r)].evaluate(e)}eachChild(e){for(let t of(e(this.input),this.outputs))e(t)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}}function tF(e,t,i){return e.map((e,r)=>e+i*(t[r]-e))}let tO={number:function(e,t,i){return e+i*(t-e)},color:function(e,t,i,r="rgb"){switch(r){case"rgb":{let[r,a,s,n]=tF(e.rgb,t.rgb,i);return new e6(r,a,s,n,!1)}case"hcl":{let r,a,[s,n,o,l]=e.hcl,[h,u,c,d]=t.hcl;if(isNaN(s)||isNaN(h))isNaN(s)?isNaN(h)?r=NaN:(r=h,1!==o&&0!==o||(a=u)):(r=s,1!==c&&0!==c||(a=n));else{let e=h-s;h>s&&e>180?e-=360:h180&&(e+=360),r=s+i*e}let[p,f,m,_]=function([e,t,i,r]){return eJ([i,Math.cos(e=isNaN(e)?0:e*eG)*t,Math.sin(e)*t,r])}([r,null!=a?a:n+i*(u-n),o+i*(c-o),l+i*(d-l)]);return new e6(p,f,m,_,!1)}case"lab":{let[r,a,s,n]=eJ(tF(e.lab,t.lab,i));return new e6(r,a,s,n,!1)}}},array:tF,padding:function(e,t,i){return new te(tF(e.values,t.values,i))},variableAnchorOffsetCollection:function(e,t,i){let r=e.values,a=t.values;if(r.length!==a.length)throw new th(`Cannot interpolate values of different length. from: ${e.toString()}, to: ${t.toString()}`);let s=[];for(let e=0;e"number"!=typeof e||e<0||e>1))return t.error("Cubic bezier interpolation requires four numeric arguments with values between 0 and 1.",1);r={name:"cubic-bezier",controlPoints:e}}}if(e.length-1<4)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if((e.length-1)%2!=0)return t.error("Expected an even number of arguments.");if(!(a=t.parse(a,2,eT)))return null;let n=[],o=null;"interpolate-hcl"===i||"interpolate-lab"===i?o=eM:t.expectedType&&"value"!==t.expectedType.kind&&(o=t.expectedType);for(let e=0;e=i)return t.error('Input/output pairs for "interpolate" expressions must be arranged with input values in strictly ascending order.',a);let h=t.parse(r,l,o);if(!h)return null;o=o||h.type,n.push([i,h])}return eU(o,eT)||eU(o,eM)||eU(o,ez)||eU(o,eL)||eU(o,eR(eT))?new tV(o,i,r,a,n):t.error(`Type ${eB(o)} is not interpolatable.`)}evaluate(e){let t=this.labels,i=this.outputs;if(1===t.length)return i[0].evaluate(e);let r=this.input.evaluate(e);if(r<=t[0])return i[0].evaluate(e);let a=t.length;if(r>=t[a-1])return i[a-1].evaluate(e);let s=tR(t,r),n=tV.interpolationFactor(this.interpolation,r,t[s],t[s+1]),o=i[s].evaluate(e),l=i[s+1].evaluate(e);switch(this.operator){case"interpolate":return tO[this.type.kind](o,l,n);case"interpolate-hcl":return tO.color(o,l,n,"hcl");case"interpolate-lab":return tO.color(o,l,n,"lab")}}eachChild(e){for(let t of(e(this.input),this.outputs))e(t)}outputDefined(){return this.outputs.every(e=>e.outputDefined())}}function tN(e,t,i,r){let a=r-i,s=e-i;return 0===a?0:1===t?s/a:(Math.pow(t,s)-1)/(Math.pow(t,a)-1)}class tU{constructor(e,t){this.type=e,this.args=t}static parse(e,t){if(e.length<2)return t.error("Expectected at least one argument.");let i=null,r=t.expectedType;r&&"value"!==r.kind&&(i=r);let a=[];for(let r of e.slice(1)){let e=t.parse(r,1+a.length,i,void 0,{typeAnnotation:"omit"});if(!e)return null;i=i||e.type,a.push(e)}if(!i)throw Error("No output type");return new tU(r&&a.some(e=>eO(r,e.type))?ek:i,a)}evaluate(e){let t,i=null,r=0;for(let a of this.args)if(r++,(i=a.evaluate(e))&&i instanceof tr&&!i.available&&(t||(t=i.name),i=null,r===this.args.length&&(i=t)),null!==i)break;return i}eachChild(e){this.args.forEach(e)}outputDefined(){return this.args.every(e=>e.outputDefined())}}class t${constructor(e,t){this.type=t.type,this.bindings=[].concat(e),this.result=t}evaluate(e){return this.result.evaluate(e)}eachChild(e){for(let t of this.bindings)e(t[1]);e(this.result)}static parse(e,t){if(e.length<4)return t.error(`Expected at least 3 arguments, but found ${e.length-1} instead.`);let i=[];for(let r=1;r=i.length)throw new th(`Array index out of bounds: ${t} > ${i.length-1}.`);if(t!==Math.floor(t))throw new th(`Array index must be an integer, but found ${t} instead.`);return i[t]}eachChild(e){e(this.index),e(this.input)}outputDefined(){return!1}}class tq{constructor(e,t){this.type=eA,this.needle=e,this.haystack=t}static parse(e,t){if(3!==e.length)return t.error(`Expected 2 arguments, but found ${e.length-1} instead.`);let i=t.parse(e[1],1,ek),r=t.parse(e[2],2,ek);return i&&r?eV(i.type,[eA,eI,eT,eS,ek])?new tq(i,r):t.error(`Expected first argument to be of type boolean, string, number or null, but found ${eB(i.type)} instead`):null}evaluate(e){let t=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(!i)return!1;if(!eN(t,["boolean","string","number","null"]))throw new th(`Expected first argument to be of type boolean, string, number or null, but found ${eB(tn(t))} instead.`);if(!eN(i,["string","array"]))throw new th(`Expected second argument to be of type array or string, but found ${eB(tn(i))} instead.`);return i.indexOf(t)>=0}eachChild(e){e(this.needle),e(this.haystack)}outputDefined(){return!0}}class tZ{constructor(e,t,i){this.type=eT,this.needle=e,this.haystack=t,this.fromIndex=i}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);let i=t.parse(e[1],1,ek),r=t.parse(e[2],2,ek);if(!i||!r)return null;if(!eV(i.type,[eA,eI,eT,eS,ek]))return t.error(`Expected first argument to be of type boolean, string, number or null, but found ${eB(i.type)} instead`);if(4===e.length){let a=t.parse(e[3],3,eT);return a?new tZ(i,r,a):null}return new tZ(i,r)}evaluate(e){let t=this.needle.evaluate(e),i=this.haystack.evaluate(e);if(!eN(t,["boolean","string","number","null"]))throw new th(`Expected first argument to be of type boolean, string, number or null, but found ${eB(tn(t))} instead.`);if(!eN(i,["string","array"]))throw new th(`Expected second argument to be of type array or string, but found ${eB(tn(i))} instead.`);if(this.fromIndex){let r=this.fromIndex.evaluate(e);return i.indexOf(t,r)}return i.indexOf(t)}eachChild(e){e(this.needle),e(this.haystack),this.fromIndex&&e(this.fromIndex)}outputDefined(){return!1}}class tG{constructor(e,t,i,r,a,s){this.inputType=e,this.type=t,this.input=i,this.cases=r,this.outputs=a,this.otherwise=s}static parse(e,t){let i,r;if(e.length<5)return t.error(`Expected at least 4 arguments, but found only ${e.length-1}.`);if(e.length%2!=1)return t.error("Expected an even number of arguments.");t.expectedType&&"value"!==t.expectedType.kind&&(r=t.expectedType);let a={},s=[];for(let n=2;nNumber.MAX_SAFE_INTEGER)return h.error(`Branch labels must be integers no larger than ${Number.MAX_SAFE_INTEGER}.`);if("number"==typeof e&&Math.floor(e)!==e)return h.error("Numeric branch labels must be integer values.");if(i){if(h.checkSubtype(i,tn(e)))return null}else i=tn(e);if(void 0!==a[String(e)])return h.error("Branch labels must be unique.");a[String(e)]=s.length}let u=t.parse(l,n,r);if(!u)return null;r=r||u.type,s.push(u)}let n=t.parse(e[1],1,ek);if(!n)return null;let o=t.parse(e[e.length-1],e.length-1,r);return o?"value"!==n.type.kind&&t.concat(1).checkSubtype(i,n.type)?null:new tG(i,r,n,a,s,o):null}evaluate(e){let t=this.input.evaluate(e);return(tn(t)===this.inputType&&this.outputs[this.cases[t]]||this.otherwise).evaluate(e)}eachChild(e){e(this.input),this.outputs.forEach(e),e(this.otherwise)}outputDefined(){return this.outputs.every(e=>e.outputDefined())&&this.otherwise.outputDefined()}}class tX{constructor(e,t,i){this.type=e,this.branches=t,this.otherwise=i}static parse(e,t){let i;if(e.length<4)return t.error(`Expected at least 3 arguments, but found only ${e.length-1}.`);if(e.length%2!=0)return t.error("Expected an odd number of arguments.");t.expectedType&&"value"!==t.expectedType.kind&&(i=t.expectedType);let r=[];for(let a=1;at.outputDefined())&&this.otherwise.outputDefined()}}class tW{constructor(e,t,i,r){this.type=e,this.input=t,this.beginIndex=i,this.endIndex=r}static parse(e,t){if(e.length<=2||e.length>=5)return t.error(`Expected 3 or 4 arguments, but found ${e.length-1} instead.`);let i=t.parse(e[1],1,ek),r=t.parse(e[2],2,eT);if(!i||!r)return null;if(!eV(i.type,[eR(ek),eI,ek]))return t.error(`Expected first argument to be of type array or string, but found ${eB(i.type)} instead`);if(4===e.length){let a=t.parse(e[3],3,eT);return a?new tW(i.type,i,r,a):null}return new tW(i.type,i,r)}evaluate(e){let t=this.input.evaluate(e),i=this.beginIndex.evaluate(e);if(!eN(t,["string","array"]))throw new th(`Expected first argument to be of type array or string, but found ${eB(tn(t))} instead.`);if(this.endIndex){let r=this.endIndex.evaluate(e);return t.slice(i,r)}return t.slice(i)}eachChild(e){e(this.input),e(this.beginIndex),this.endIndex&&e(this.endIndex)}outputDefined(){return!1}}function tH(e,t){return"=="===e||"!="===e?"boolean"===t.kind||"string"===t.kind||"number"===t.kind||"null"===t.kind||"value"===t.kind:"string"===t.kind||"number"===t.kind||"value"===t.kind}function tK(e,t,i,r){return 0===r.compare(t,i)}function tY(e,t,i){let r="=="!==e&&"!="!==e;return class a{constructor(e,t,i){this.type=eA,this.lhs=e,this.rhs=t,this.collator=i,this.hasUntypedArgument="value"===e.type.kind||"value"===t.type.kind}static parse(e,t){if(3!==e.length&&4!==e.length)return t.error("Expected two or three arguments.");let i=e[0],s=t.parse(e[1],1,ek);if(!s)return null;if(!tH(i,s.type))return t.concat(1).error(`"${i}" comparisons are not supported for type '${eB(s.type)}'.`);let n=t.parse(e[2],2,ek);if(!n)return null;if(!tH(i,n.type))return t.concat(2).error(`"${i}" comparisons are not supported for type '${eB(n.type)}'.`);if(s.type.kind!==n.type.kind&&"value"!==s.type.kind&&"value"!==n.type.kind)return t.error(`Cannot compare types '${eB(s.type)}' and '${eB(n.type)}'.`);r&&("value"===s.type.kind&&"value"!==n.type.kind?s=new tc(n.type,[s]):"value"!==s.type.kind&&"value"===n.type.kind&&(n=new tc(s.type,[n])));let o=null;if(4===e.length){if("string"!==s.type.kind&&"string"!==n.type.kind&&"value"!==s.type.kind&&"value"!==n.type.kind)return t.error("Cannot use collator to compare non-string types.");if(!(o=t.parse(e[3],3,eC)))return null}return new a(s,n,o)}evaluate(a){let s=this.lhs.evaluate(a),n=this.rhs.evaluate(a);if(r&&this.hasUntypedArgument){let t=tn(s),i=tn(n);if(t.kind!==i.kind||"string"!==t.kind&&"number"!==t.kind)throw new th(`Expected arguments for "${e}" to be (string, string) or (number, number), but found (${t.kind}, ${i.kind}) instead.`)}if(this.collator&&!r&&this.hasUntypedArgument){let e=tn(s),i=tn(n);if("string"!==e.kind||"string"!==i.kind)return t(a,s,n)}return this.collator?i(a,s,n,this.collator.evaluate(a)):t(a,s,n)}eachChild(e){e(this.lhs),e(this.rhs),this.collator&&e(this.collator)}outputDefined(){return!0}}}let tJ=tY("==",function(e,t,i){return t===i},tK),tQ=tY("!=",function(e,t,i){return t!==i},function(e,t,i,r){return!tK(0,t,i,r)}),t0=tY("<",function(e,t,i){return tr.compare(t,i)}),t1=tY(">",function(e,t,i){return t>i},function(e,t,i,r){return r.compare(t,i)>0}),t2=tY("<=",function(e,t,i){return t<=i},function(e,t,i,r){return 0>=r.compare(t,i)}),t5=tY(">=",function(e,t,i){return t>=i},function(e,t,i,r){return r.compare(t,i)>=0});class t3{constructor(e,t,i,r,a){this.type=eI,this.number=e,this.locale=t,this.currency=i,this.minFractionDigits=r,this.maxFractionDigits=a}static parse(e,t){if(3!==e.length)return t.error("Expected two arguments.");let i=t.parse(e[1],1,eT);if(!i)return null;let r=e[2];if("object"!=typeof r||Array.isArray(r))return t.error("NumberFormat options argument must be an object.");let a=null;if(r.locale&&!(a=t.parse(r.locale,1,eI)))return null;let s=null;if(r.currency&&!(s=t.parse(r.currency,1,eI)))return null;let n=null;if(r["min-fraction-digits"]&&!(n=t.parse(r["min-fraction-digits"],1,eT)))return null;let o=null;return!r["max-fraction-digits"]||(o=t.parse(r["max-fraction-digits"],1,eT))?new t3(i,a,s,n,o):null}evaluate(e){return new Intl.NumberFormat(this.locale?this.locale.evaluate(e):[],{style:this.currency?"currency":"decimal",currency:this.currency?this.currency.evaluate(e):void 0,minimumFractionDigits:this.minFractionDigits?this.minFractionDigits.evaluate(e):void 0,maximumFractionDigits:this.maxFractionDigits?this.maxFractionDigits.evaluate(e):void 0}).format(this.number.evaluate(e))}eachChild(e){e(this.number),this.locale&&e(this.locale),this.currency&&e(this.currency),this.minFractionDigits&&e(this.minFractionDigits),this.maxFractionDigits&&e(this.maxFractionDigits)}outputDefined(){return!1}}class t4{constructor(e){this.type=eP,this.sections=e}static parse(e,t){if(e.length<2)return t.error("Expected at least one argument.");let i=e[1];if(!Array.isArray(i)&&"object"==typeof i)return t.error("First argument must be an image or text section.");let r=[],a=!1;for(let i=1;i<=e.length-1;++i){let s=e[i];if(a&&"object"==typeof s&&!Array.isArray(s)){a=!1;let e=null;if(s["font-scale"]&&!(e=t.parse(s["font-scale"],1,eT)))return null;let i=null;if(s["text-font"]&&!(i=t.parse(s["text-font"],1,eR(eI))))return null;let n=null;if(s["text-color"]&&!(n=t.parse(s["text-color"],1,eM)))return null;let o=r[r.length-1];o.scale=e,o.font=i,o.textColor=n}else{let s=t.parse(e[i],1,ek);if(!s)return null;let n=s.type.kind;if("string"!==n&&"value"!==n&&"null"!==n&&"resolvedImage"!==n)return t.error("Formatted text type must be 'string', 'value', 'image' or 'null'.");a=!0,r.push({content:s,scale:null,font:null,textColor:null})}}return new t4(r)}evaluate(e){return new e7(this.sections.map(t=>{let i=t.content.evaluate(e);return tn(i)===eD?new e9("",i,null,null,null):new e9(to(i),null,t.scale?t.scale.evaluate(e):null,t.font?t.font.evaluate(e).join(","):null,t.textColor?t.textColor.evaluate(e):null)}))}eachChild(e){for(let t of this.sections)e(t.content),t.scale&&e(t.scale),t.font&&e(t.font),t.textColor&&e(t.textColor)}outputDefined(){return!1}}class t6{constructor(e){this.type=eD,this.input=e}static parse(e,t){if(2!==e.length)return t.error("Expected two arguments.");let i=t.parse(e[1],1,eI);return i?new t6(i):t.error("No image name provided.")}evaluate(e){let t=this.input.evaluate(e),i=tr.fromString(t);return i&&e.availableImages&&(i.available=e.availableImages.indexOf(t)>-1),i}eachChild(e){e(this.input)}outputDefined(){return!1}}class t8{constructor(e){this.type=eT,this.input=e}static parse(e,t){if(2!==e.length)return t.error(`Expected 1 argument, but found ${e.length-1} instead.`);let i=t.parse(e[1],1);return i?"array"!==i.type.kind&&"string"!==i.type.kind&&"value"!==i.type.kind?t.error(`Expected argument of type string or array, but found ${eB(i.type)} instead.`):new t8(i):null}evaluate(e){let t=this.input.evaluate(e);if("string"==typeof t||Array.isArray(t))return t.length;throw new th(`Expected value to be of type string or array, but found ${eB(tn(t))} instead.`)}eachChild(e){e(this.input)}outputDefined(){return!1}}let t9={"==":tJ,"!=":tQ,">":t1,"<":t0,">=":t5,"<=":t2,array:tc,at:tj,boolean:tc,case:tX,coalesce:tU,collator:tg,format:t4,image:t6,in:tq,"index-of":tZ,interpolate:tV,"interpolate-hcl":tV,"interpolate-lab":tV,length:t8,let:t$,literal:tl,match:tG,number:tc,"number-format":t3,object:tc,slice:tW,step:tB,string:tc,"to-boolean":tp,"to-color":tp,"to-number":tp,"to-string":tp,var:tk,within:tE};function t7(e,[t,i,r,a]){t=t.evaluate(e),i=i.evaluate(e),r=r.evaluate(e);let s=a?a.evaluate(e):1,n=ta(t,i,r,s);if(n)throw new th(n);return new e6(t/255,i/255,r/255,s,!1)}function ie(e,t){let i=t[e];return void 0===i?null:i}function it(e){return{type:e}}function ii(e){return{result:"success",value:e}}function ir(e){return{result:"error",value:e}}function ia(e){return"data-driven"===e["property-type"]||"cross-faded-data-driven"===e["property-type"]}function is(e){return!!e.expression&&e.expression.parameters.indexOf("zoom")>-1}function io(e){return!!e.expression&&e.expression.interpolated}function il(e){return e instanceof Number?"number":e instanceof String?"string":e instanceof Boolean?"boolean":Array.isArray(e)?"array":null===e?"null":typeof e}function ih(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function iu(e){return e}function ic(e,t,i){return void 0!==e?e:void 0!==t?t:void 0!==i?i:void 0}function id(e,t,i,r,a){return ic(typeof i===a?r[i]:void 0,e.default,t.default)}function ip(e,t,i){if("number"!==il(i))return ic(e.default,t.default);let r=e.stops.length;if(1===r||i<=e.stops[0][0])return e.stops[0][1];if(i>=e.stops[r-1][0])return e.stops[r-1][1];let a=tR(e.stops.map(e=>e[0]),i);return e.stops[a][1]}function im(e,t,i){let r=void 0!==e.base?e.base:1;if("number"!==il(i))return ic(e.default,t.default);let a=e.stops.length;if(1===a||i<=e.stops[0][0])return e.stops[0][1];if(i>=e.stops[a-1][0])return e.stops[a-1][1];let s=tR(e.stops.map(e=>e[0]),i),n=function(e,t,i,r){let a=r-i,s=e-i;return 0===a?0:1===t?s/a:(Math.pow(t,s)-1)/(Math.pow(t,a)-1)}(i,r,e.stops[s][0],e.stops[s+1][0]),o=e.stops[s][1],l=e.stops[s+1][1],h=tO[t.type]||iu;return"function"==typeof o.evaluate?{evaluate(...t){let i=o.evaluate.apply(void 0,t),r=l.evaluate.apply(void 0,t);if(void 0!==i&&void 0!==r)return h(i,r,n,e.colorSpace)}}:h(o,l,n,e.colorSpace)}function i_(e,t,i){switch(t.type){case"color":i=e6.parse(i);break;case"formatted":i=e7.fromString(i.toString());break;case"resolvedImage":i=tr.fromString(i.toString());break;case"padding":i=te.parse(i);break;default:il(i)===t.type||"enum"===t.type&&t.values[i]||(i=void 0)}return ic(i,e.default,t.default)}tC.register(t9,{error:[{kind:"error"},[eI],(e,[t])=>{throw new th(t.evaluate(e))}],typeof:[eI,[ek],(e,[t])=>eB(tn(t.evaluate(e)))],"to-rgba":[eR(eT,4),[eM],(e,[t])=>{let[i,r,a,s]=t.evaluate(e).rgb;return[255*i,255*r,255*a,s]}],rgb:[eM,[eT,eT,eT],t7],rgba:[eM,[eT,eT,eT,eT],t7],has:{type:eA,overloads:[[[eI],(e,[t])=>t.evaluate(e)in e.properties()],[[eI,eE],(e,[t,i])=>t.evaluate(e)in i.evaluate(e)]]},get:{type:ek,overloads:[[[eI],(e,[t])=>ie(t.evaluate(e),e.properties())],[[eI,eE],(e,[t,i])=>ie(t.evaluate(e),i.evaluate(e))]]},"feature-state":[ek,[eI],(e,[t])=>ie(t.evaluate(e),e.featureState||{})],properties:[eE,[],e=>e.properties()],"geometry-type":[eI,[],e=>e.geometryType()],id:[ek,[],e=>e.id()],zoom:[eT,[],e=>e.globals.zoom],"heatmap-density":[eT,[],e=>e.globals.heatmapDensity||0],"line-progress":[eT,[],e=>e.globals.lineProgress||0],accumulated:[ek,[],e=>void 0===e.globals.accumulated?null:e.globals.accumulated],"+":[eT,it(eT),(e,t)=>{let i=0;for(let r of t)i+=r.evaluate(e);return i}],"*":[eT,it(eT),(e,t)=>{let i=1;for(let r of t)i*=r.evaluate(e);return i}],"-":{type:eT,overloads:[[[eT,eT],(e,[t,i])=>t.evaluate(e)-i.evaluate(e)],[[eT],(e,[t])=>-t.evaluate(e)]]},"/":[eT,[eT,eT],(e,[t,i])=>t.evaluate(e)/i.evaluate(e)],"%":[eT,[eT,eT],(e,[t,i])=>t.evaluate(e)%i.evaluate(e)],ln2:[eT,[],()=>Math.LN2],pi:[eT,[],()=>Math.PI],e:[eT,[],()=>Math.E],"^":[eT,[eT,eT],(e,[t,i])=>Math.pow(t.evaluate(e),i.evaluate(e))],sqrt:[eT,[eT],(e,[t])=>Math.sqrt(t.evaluate(e))],log10:[eT,[eT],(e,[t])=>Math.log(t.evaluate(e))/Math.LN10],ln:[eT,[eT],(e,[t])=>Math.log(t.evaluate(e))],log2:[eT,[eT],(e,[t])=>Math.log(t.evaluate(e))/Math.LN2],sin:[eT,[eT],(e,[t])=>Math.sin(t.evaluate(e))],cos:[eT,[eT],(e,[t])=>Math.cos(t.evaluate(e))],tan:[eT,[eT],(e,[t])=>Math.tan(t.evaluate(e))],asin:[eT,[eT],(e,[t])=>Math.asin(t.evaluate(e))],acos:[eT,[eT],(e,[t])=>Math.acos(t.evaluate(e))],atan:[eT,[eT],(e,[t])=>Math.atan(t.evaluate(e))],min:[eT,it(eT),(e,t)=>Math.min(...t.map(t=>t.evaluate(e)))],max:[eT,it(eT),(e,t)=>Math.max(...t.map(t=>t.evaluate(e)))],abs:[eT,[eT],(e,[t])=>Math.abs(t.evaluate(e))],round:[eT,[eT],(e,[t])=>{let i=t.evaluate(e);return i<0?-Math.round(-i):Math.round(i)}],floor:[eT,[eT],(e,[t])=>Math.floor(t.evaluate(e))],ceil:[eT,[eT],(e,[t])=>Math.ceil(t.evaluate(e))],"filter-==":[eA,[eI,ek],(e,[t,i])=>e.properties()[t.value]===i.value],"filter-id-==":[eA,[ek],(e,[t])=>e.id()===t.value],"filter-type-==":[eA,[eI],(e,[t])=>e.geometryType()===t.value],"filter-<":[eA,[eI,ek],(e,[t,i])=>{let r=e.properties()[t.value],a=i.value;return typeof r==typeof a&&r{let i=e.id(),r=t.value;return typeof i==typeof r&&i":[eA,[eI,ek],(e,[t,i])=>{let r=e.properties()[t.value],a=i.value;return typeof r==typeof a&&r>a}],"filter-id->":[eA,[ek],(e,[t])=>{let i=e.id(),r=t.value;return typeof i==typeof r&&i>r}],"filter-<=":[eA,[eI,ek],(e,[t,i])=>{let r=e.properties()[t.value],a=i.value;return typeof r==typeof a&&r<=a}],"filter-id-<=":[eA,[ek],(e,[t])=>{let i=e.id(),r=t.value;return typeof i==typeof r&&i<=r}],"filter->=":[eA,[eI,ek],(e,[t,i])=>{let r=e.properties()[t.value],a=i.value;return typeof r==typeof a&&r>=a}],"filter-id->=":[eA,[ek],(e,[t])=>{let i=e.id(),r=t.value;return typeof i==typeof r&&i>=r}],"filter-has":[eA,[ek],(e,[t])=>t.value in e.properties()],"filter-has-id":[eA,[],e=>null!==e.id()&&void 0!==e.id()],"filter-type-in":[eA,[eR(eI)],(e,[t])=>t.value.indexOf(e.geometryType())>=0],"filter-id-in":[eA,[eR(ek)],(e,[t])=>t.value.indexOf(e.id())>=0],"filter-in-small":[eA,[eI,eR(ek)],(e,[t,i])=>i.value.indexOf(e.properties()[t.value])>=0],"filter-in-large":[eA,[eI,eR(ek)],(e,[t,i])=>(function(e,t,i,r){for(;i<=r;){let a=i+r>>1;if(t[a]===e)return!0;t[a]>e?r=a-1:i=a+1}return!1})(e.properties()[t.value],i.value,0,i.value.length-1)],all:{type:eA,overloads:[[[eA,eA],(e,[t,i])=>t.evaluate(e)&&i.evaluate(e)],[it(eA),(e,t)=>{for(let i of t)if(!i.evaluate(e))return!1;return!0}]]},any:{type:eA,overloads:[[[eA,eA],(e,[t,i])=>t.evaluate(e)||i.evaluate(e)],[it(eA),(e,t)=>{for(let i of t)if(i.evaluate(e))return!0;return!1}]]},"!":[eA,[eA],(e,[t])=>!t.evaluate(e)],"is-supported-script":[eA,[eI],(e,[t])=>{let i=e.globals&&e.globals.isSupportedScript;return!i||i(t.evaluate(e))}],upcase:[eI,[eI],(e,[t])=>t.evaluate(e).toUpperCase()],downcase:[eI,[eI],(e,[t])=>t.evaluate(e).toLowerCase()],concat:[eI,it(ek),(e,t)=>t.map(t=>to(t.evaluate(e))).join("")],"resolved-locale":[eI,[eC],(e,[t])=>t.evaluate(e).resolvedLocale()]});class ig{constructor(e,t){this.expression=e,this._warningHistory={},this._evaluator=new tm,this._defaultValue=t?"color"===t.type&&ih(t.default)?new e6(0,0,0,0):"color"===t.type?e6.parse(t.default)||null:"padding"===t.type?te.parse(t.default)||null:"variableAnchorOffsetCollection"===t.type?ti.parse(t.default)||null:void 0===t.default?null:t.default:null,this._enumValues=t&&"enum"===t.type?t.values:null}evaluateWithoutErrorHandling(e,t,i,r,a,s){return this._evaluator.globals=e,this._evaluator.feature=t,this._evaluator.featureState=i,this._evaluator.canonical=r,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=s,this.expression.evaluate(this._evaluator)}evaluate(e,t,i,r,a,s){this._evaluator.globals=e,this._evaluator.feature=t||null,this._evaluator.featureState=i||null,this._evaluator.canonical=r,this._evaluator.availableImages=a||null,this._evaluator.formattedSection=s||null;try{let e=this.expression.evaluate(this._evaluator);if(null==e||"number"==typeof e&&e!=e)return this._defaultValue;if(this._enumValues&&!(e in this._enumValues))throw new th(`Expected value to be one of ${Object.keys(this._enumValues).map(e=>JSON.stringify(e)).join(", ")}, but found ${JSON.stringify(e)} instead.`);return e}catch(e){return this._warningHistory[e.message]||(this._warningHistory[e.message]=!0,"undefined"!=typeof console&&console.warn(e.message)),this._defaultValue}}}function iy(e){return Array.isArray(e)&&e.length>0&&"string"==typeof e[0]&&e[0]in t9}function ix(e,t){let i=new t_(t9,tP,[],t?function(e){let t={color:eM,string:eI,number:eT,enum:eI,boolean:eA,formatted:eP,padding:ez,resolvedImage:eD,variableAnchorOffsetCollection:eL};return"array"===e.type?eR(t[e.value]||ek,e.length):t[e.type]}(t):void 0),r=i.parse(e,void 0,void 0,void 0,t&&"string"===t.type?{typeAnnotation:"coerce"}:void 0);return r?ii(new ig(r,t)):ir(i.errors)}class iv{constructor(e,t){this.kind=e,this._styleExpression=t,this.isStateDependent="constant"!==e&&!tD(t.expression)}evaluateWithoutErrorHandling(e,t,i,r,a,s){return this._styleExpression.evaluateWithoutErrorHandling(e,t,i,r,a,s)}evaluate(e,t,i,r,a,s){return this._styleExpression.evaluate(e,t,i,r,a,s)}}class ib{constructor(e,t,i,r){this.kind=e,this.zoomStops=i,this._styleExpression=t,this.isStateDependent="camera"!==e&&!tD(t.expression),this.interpolationType=r}evaluateWithoutErrorHandling(e,t,i,r,a,s){return this._styleExpression.evaluateWithoutErrorHandling(e,t,i,r,a,s)}evaluate(e,t,i,r,a,s){return this._styleExpression.evaluate(e,t,i,r,a,s)}interpolationFactor(e,t,i){return this.interpolationType?tV.interpolationFactor(this.interpolationType,e,t,i):0}}function iw(e,t){let i=ix(e,t);if("error"===i.result)return i;let r=i.value.expression,a=tz(r);if(!a&&!ia(t))return ir([new eb("","data expressions not supported")]);let s=tL(r,["zoom"]);if(!s&&!is(t))return ir([new eb("","zoom expressions not supported")]);let n=function e(t){let i=null;if(t instanceof t$)i=e(t.result);else if(t instanceof tU){for(let r of t.args)if(i=e(r))break}else(t instanceof tB||t instanceof tV)&&t.input instanceof tC&&"zoom"===t.input.name&&(i=t);return i instanceof eb||t.eachChild(t=>{let r=e(t);r instanceof eb?i=r:!i&&r?i=new eb("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.'):i&&r&&i!==r&&(i=new eb("",'Only one zoom-based "step" or "interpolate" subexpression may be used in an expression.'))}),i}(r);return n||s?n instanceof eb?ir([n]):n instanceof tV&&!io(t)?ir([new eb("",'"interpolate" expressions cannot be used with this property')]):ii(n?new ib(a?"camera":"composite",i.value,n.labels,n instanceof tV?n.interpolation:void 0):new iv(a?"constant":"source",i.value)):ir([new eb("",'"zoom" expression may only be used as input to a top-level "step" or "interpolate" expression.')])}class iS{constructor(e,t){this._parameters=e,this._specification=t,ev(this,function e(t,i){var r;let a,s,n,o="color"===i.type,l=t.stops&&"object"==typeof t.stops[0][0],h=l||!(l||void 0!==t.property),u=t.type||(io(i)?"exponential":"interval");if(o||"padding"===i.type){let e=o?e6.parse:te.parse;(t=ev({},t)).stops&&(t.stops=t.stops.map(t=>[t[0],e(t[1])])),t.default=e(t.default?t.default:i.default)}if(t.colorSpace&&"rgb"!==(r=t.colorSpace)&&"hcl"!==r&&"lab"!==r)throw Error(`Unknown color space: "${t.colorSpace}"`);if("exponential"===u)a=im;else if("interval"===u)a=ip;else if("categorical"===u){for(let e of(a=id,s=Object.create(null),t.stops))s[e[0]]=e[1];n=typeof t.stops[0][0]}else{if("identity"!==u)throw Error(`Unknown function type "${u}"`);a=i_}if(l){let r={},a=[];for(let e=0;ee[0]),evaluate:({zoom:e},r)=>im({stops:s,base:t.base},i,e).evaluate(e,r)}}if(h){let e="exponential"===u?{name:"exponential",base:void 0!==t.base?t.base:1}:null;return{kind:"camera",interpolationType:e,interpolationFactor:tV.interpolationFactor.bind(void 0,e),zoomStops:t.stops.map(e=>e[0]),evaluate:({zoom:e})=>a(t,i,e,s,n)}}return{kind:"source",evaluate(e,r){let o=r&&r.properties?r.properties[t.property]:void 0;return void 0===o?ic(t.default,i.default):a(t,i,o,s,n)}}}(this._parameters,this._specification))}static deserialize(e){return new iS(e._parameters,e._specification)}static serialize(e){return{_parameters:e._parameters,_specification:e._specification}}}function iT(e){if(!0===e||!1===e)return!0;if(!Array.isArray(e)||0===e.length)return!1;switch(e[0]){case"has":return e.length>=2&&"$id"!==e[1]&&"$type"!==e[1];case"in":return e.length>=3&&("string"!=typeof e[1]||Array.isArray(e[2]));case"!in":case"!has":case"none":return!1;case"==":case"!=":case">":case">=":case"<":case"<=":return 3!==e.length||Array.isArray(e[1])||Array.isArray(e[2]);case"any":case"all":for(let t of e.slice(1))if(!iT(t)&&"boolean"!=typeof t)return!1;return!0;default:return!0}}let iI={type:"boolean",default:!1,transition:!1,"property-type":"data-driven",expression:{interpolated:!1,parameters:["zoom","feature"]}};function iA(e){if(null==e)return{filter:()=>!0,needGeometry:!1};iT(e)||(e=function e(t){if(!t)return!0;let i=t[0];return t.length<=1?"any"!==i:"=="===i?iE(t[1],t[2],"=="):"!="===i?iP(iE(t[1],t[2],"==")):"<"===i||">"===i||"<="===i||">="===i?iE(t[1],t[2],i):"any"===i?["any"].concat(t.slice(1).map(e)):"all"===i?["all"].concat(t.slice(1).map(e)):"none"===i?["all"].concat(t.slice(1).map(e).map(iP)):"in"===i?ik(t[1],t.slice(2)):"!in"===i?iP(ik(t[1],t.slice(2))):"has"===i?iC(t[1]):"!has"===i?iP(iC(t[1])):"within"!==i||t}(e));let t=ix(e,iI);if("error"===t.result)throw Error(t.value.map(e=>`${e.key}: ${e.message}`).join(", "));return{filter:(e,i,r)=>t.value.evaluate(e,i,{},r),needGeometry:function e(t){if(!Array.isArray(t))return!1;if("within"===t[0])return!0;for(let i=1;it)}function iE(e,t,i){switch(e){case"$type":return[`filter-type-${i}`,t];case"$id":return[`filter-id-${i}`,t];default:return[`filter-${i}`,e,t]}}function ik(e,t){if(0===t.length)return!1;switch(e){case"$type":return["filter-type-in",["literal",t]];case"$id":return["filter-id-in",["literal",t]];default:return t.length>200&&!t.some(e=>typeof e!=typeof t[0])?["filter-in-large",e,["literal",t.sort(iM)]]:["filter-in-small",e,["literal",t]]}}function iC(e){switch(e){case"$type":return!0;case"$id":return["filter-has-id"];default:return["filter-has",e]}}function iP(e){return["!",e]}function iz(e){let t=e.value;return t?[new ex(e.key,t,"constants have been deprecated as of v8")]:[]}function iD(e){return e instanceof Number||e instanceof String||e instanceof Boolean?e.valueOf():e}function iL(e){if(Array.isArray(e))return e.map(iL);if(e instanceof Object&&!(e instanceof Number||e instanceof String||e instanceof Boolean)){let t={};for(let i in e)t[i]=iL(e[i]);return t}return iD(e)}function iR(e){let t=e.key,i=e.value,r=e.valueSpec||{},a=e.objectElementValidators||{},s=e.style,n=e.styleSpec,o=e.validateSpec,l=[],h=il(i);if("object"!==h)return[new ex(t,i,`object expected, ${h} found`)];for(let e in i){let h,u=e.split(".")[0],c=r[u]||r["*"];if(a[u])h=a[u];else if(r[u])h=o;else if(a["*"])h=a["*"];else{if(!r["*"]){l.push(new ex(t,i[e],`unknown property "${e}"`));continue}h=o}l=l.concat(h({key:(t?`${t}.`:t)+e,value:i[e],valueSpec:c,style:s,styleSpec:n,object:i,objectKey:e,validateSpec:o},i))}for(let e in r)a[e]||r[e].required&&void 0===r[e].default&&void 0===i[e]&&l.push(new ex(t,i,`missing required property "${e}"`));return l}function iB(e){let t=e.value,i=e.valueSpec,r=e.style,a=e.styleSpec,s=e.key,n=e.arrayElementValidator||e.validateSpec;if("array"!==il(t))return[new ex(s,t,`array expected, ${il(t)} found`)];if(i.length&&t.length!==i.length)return[new ex(s,t,`array length ${i.length} expected, length ${t.length} found`)];if(i["min-length"]&&t.lengthr.maximum?[new ex(t,i,`${i} is greater than the maximum value ${r.maximum}`)]:[]}function iO(e){let t=e.valueSpec,i=iD(e.value.type),r,a,s,n={},o="categorical"!==i&&void 0===e.value.property,l="array"===il(e.value.stops)&&"array"===il(e.value.stops[0])&&"object"===il(e.value.stops[0][0]),h=iR({key:e.key,value:e.value,valueSpec:e.styleSpec.function,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{stops:function(e){if("identity"===i)return[new ex(e.key,e.value,'identity function may not have a "stops" property')];let t=[],r=e.value;return t=t.concat(iB({key:e.key,value:r,valueSpec:e.valueSpec,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec,arrayElementValidator:u})),"array"===il(r)&&0===r.length&&t.push(new ex(e.key,r,"array must have at least one stop")),t},default:function(e){return e.validateSpec({key:e.key,value:e.value,valueSpec:t,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec})}}});return"identity"===i&&o&&h.push(new ex(e.key,e.value,'missing required property "property"')),"identity"===i||e.value.stops||h.push(new ex(e.key,e.value,'missing required property "stops"')),"exponential"===i&&e.valueSpec.expression&&!io(e.valueSpec)&&h.push(new ex(e.key,e.value,"exponential functions not supported")),e.styleSpec.$version>=8&&(o||ia(e.valueSpec)?o&&!is(e.valueSpec)&&h.push(new ex(e.key,e.value,"zoom functions not supported")):h.push(new ex(e.key,e.value,"property functions not supported"))),("categorical"===i||l)&&void 0===e.value.property&&h.push(new ex(e.key,e.value,'"property" property is required')),h;function u(e){let i=[],r=e.value,o=e.key;if("array"!==il(r))return[new ex(o,r,`array expected, ${il(r)} found`)];if(2!==r.length)return[new ex(o,r,`array length 2 expected, length ${r.length} found`)];if(l){if("object"!==il(r[0]))return[new ex(o,r,`object expected, ${il(r[0])} found`)];if(void 0===r[0].zoom)return[new ex(o,r,"object stop key must have zoom")];if(void 0===r[0].value)return[new ex(o,r,"object stop key must have value")];if(s&&s>iD(r[0].zoom))return[new ex(o,r[0].zoom,"stop zoom values must appear in ascending order")];iD(r[0].zoom)!==s&&(s=iD(r[0].zoom),a=void 0,n={}),i=i.concat(iR({key:`${o}[0]`,value:r[0],valueSpec:{zoom:{}},validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec,objectElementValidators:{zoom:iF,value:c}}))}else i=i.concat(c({key:`${o}[0]`,value:r[0],valueSpec:{},validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec},r));return iy(iL(r[1]))?i.concat([new ex(`${o}[1]`,r[1],"expressions are not allowed in function stops.")]):i.concat(e.validateSpec({key:`${o}[1]`,value:r[1],valueSpec:t,validateSpec:e.validateSpec,style:e.style,styleSpec:e.styleSpec}))}function c(e,s){let o=il(e.value),l=iD(e.value),h=null!==e.value?e.value:s;if(r){if(o!==r)return[new ex(e.key,h,`${o} stop domain type must match previous stop domain type ${r}`)]}else r=o;if("number"!==o&&"string"!==o&&"boolean"!==o)return[new ex(e.key,h,"stop domain value must be a number, string, or boolean")];if("number"!==o&&"categorical"!==i){let r=`number expected, ${o} found`;return ia(t)&&void 0===i&&(r+='\nIf you intended to use a categorical function, specify `"type": "categorical"`.'),[new ex(e.key,h,r)]}return"categorical"!==i||"number"!==o||isFinite(l)&&Math.floor(l)===l?"categorical"!==i&&"number"===o&&void 0!==a&&lnew ex(`${e.key}${t.key}`,e.value,t.message));let i=t.value.expression||t.value._styleExpression.expression;if("property"===e.expressionContext&&"text-font"===e.propertyKey&&!i.outputDefined())return[new ex(e.key,e.value,`Invalid data expression for "${e.propertyKey}". Output values must be contained as literals within the expression.`)];if("property"===e.expressionContext&&"layout"===e.propertyType&&!tD(i))return[new ex(e.key,e.value,'"feature-state" data expressions are not supported with layout properties.')];if("filter"===e.expressionContext&&!tD(i))return[new ex(e.key,e.value,'"feature-state" data expressions are not supported with filters.')];if(e.expressionContext&&0===e.expressionContext.indexOf("cluster")){if(!tL(i,["zoom","feature-state"]))return[new ex(e.key,e.value,'"zoom" and "feature-state" expressions are not supported with cluster properties.')];if("cluster-initial"===e.expressionContext&&!tz(i))return[new ex(e.key,e.value,"Feature data expressions are not supported with initial expression part of cluster properties.")]}return[]}function iN(e){let t=e.key,i=e.value,r=e.valueSpec,a=[];return Array.isArray(r.values)?-1===r.values.indexOf(iD(i))&&a.push(new ex(t,i,`expected one of [${r.values.join(", ")}], ${JSON.stringify(i)} found`)):-1===Object.keys(r.values).indexOf(iD(i))&&a.push(new ex(t,i,`expected one of [${Object.keys(r.values).join(", ")}], ${JSON.stringify(i)} found`)),a}function iU(e){return iT(iL(e.value))?iV(ev({},e,{expressionContext:"filter",valueSpec:{value:"boolean"}})):function e(t){let i=t.value,r=t.key;if("array"!==il(i))return[new ex(r,i,`array expected, ${il(i)} found`)];let a=t.styleSpec,s,n=[];if(i.length<1)return[new ex(r,i,"filter array must have at least 1 element")];switch(n=n.concat(iN({key:`${r}[0]`,value:i[0],valueSpec:a.filter_operator,style:t.style,styleSpec:t.styleSpec})),iD(i[0])){case"<":case"<=":case">":case">=":i.length>=2&&"$type"===iD(i[1])&&n.push(new ex(r,i,`"$type" cannot be use with operator "${i[0]}"`));case"==":case"!=":3!==i.length&&n.push(new ex(r,i,`filter array for operator "${i[0]}" must have 3 elements`));case"in":case"!in":i.length>=2&&"string"!==(s=il(i[1]))&&n.push(new ex(`${r}[1]`,i[1],`string expected, ${s} found`));for(let e=2;e{e in i&&t.push(new ex(r,i[e],`"${e}" is prohibited for ref layers`))}),a.layers.forEach(t=>{iD(t.id)===o&&(e=t)}),e?e.ref?t.push(new ex(r,i.ref,"ref cannot reference another ref layer")):n=iD(e.type):t.push(new ex(r,i.ref,`ref layer "${o}" not found`))}else if("background"!==n)if(i.source){let e=a.sources&&a.sources[i.source],s=e&&iD(e.type);e?"vector"===s&&"raster"===n?t.push(new ex(r,i.source,`layer "${i.id}" requires a raster source`)):"raster-dem"!==s&&"hillshade"===n?t.push(new ex(r,i.source,`layer "${i.id}" requires a raster-dem source`)):"raster"===s&&"raster"!==n?t.push(new ex(r,i.source,`layer "${i.id}" requires a vector source`)):"vector"!==s||i["source-layer"]?"raster-dem"===s&&"hillshade"!==n?t.push(new ex(r,i.source,"raster-dem source can only be used with layer type 'hillshade'.")):"line"===n&&i.paint&&i.paint["line-gradient"]&&("geojson"!==s||!e.lineMetrics)&&t.push(new ex(r,i,`layer "${i.id}" specifies a line-gradient, which requires a GeoJSON source with \`lineMetrics\` enabled.`)):t.push(new ex(r,i,`layer "${i.id}" must specify a "source-layer"`)):t.push(new ex(r,i.source,`source "${i.source}" not found`))}else t.push(new ex(r,i,'missing required property "source"'));return t=t.concat(iR({key:r,value:i,valueSpec:s.layer,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,objectElementValidators:{"*":()=>[],type:()=>e.validateSpec({key:`${r}.type`,value:i.type,valueSpec:s.layer.type,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,object:i,objectKey:"type"}),filter:iU,layout:e=>iR({layer:i,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,objectElementValidators:{"*":e=>iq(ev({layerType:n},e))}}),paint:e=>iR({layer:i,key:e.key,value:e.value,style:e.style,styleSpec:e.styleSpec,validateSpec:e.validateSpec,objectElementValidators:{"*":e=>ij(ev({layerType:n},e))}})}}))}function iG(e){let t=e.value,i=e.key,r=il(t);return"string"!==r?[new ex(i,t,`string expected, ${r} found`)]:[]}let iX={promoteId:function({key:e,value:t}){if("string"===il(t))return iG({key:e,value:t});{let i=[];for(let r in t)i.push(...iG({key:`${e}.${r}`,value:t[r]}));return i}}};function iW(e){let t,i=e.value,r=e.key,a=e.styleSpec,s=e.style,n=e.validateSpec;if(!i.type)return[new ex(r,i,'"type" is required')];let o=iD(i.type);switch(o){case"vector":case"raster":return iR({key:r,value:i,valueSpec:a[`source_${o.replace("-","_")}`],style:e.style,styleSpec:a,objectElementValidators:iX,validateSpec:n});case"raster-dem":return function(e){var t;let i=null!=(t=e.sourceName)?t:"",r=e.value,a=e.styleSpec,s=a.source_raster_dem,n=e.style,o=[],l=il(r);if(void 0===r)return o;if("object"!==l)return o.push(new ex("source_raster_dem",r,`object expected, ${l} found`)),o;let h="custom"===iD(r.encoding),u=["redFactor","greenFactor","blueFactor","baseShift"],c=e.value.encoding?`"${e.value.encoding}"`:"Default";for(let t in r)!h&&u.includes(t)?o.push(new ex(t,r[t],`In "${i}": "${t}" is only valid when "encoding" is set to "custom". ${c} encoding found`)):s[t]?o=o.concat(e.validateSpec({key:t,value:r[t],valueSpec:s[t],validateSpec:e.validateSpec,style:n,styleSpec:a})):o.push(new ex(t,r[t],`unknown property "${t}"`));return o}({sourceName:r,value:i,style:e.style,styleSpec:a,validateSpec:n});case"geojson":if(t=iR({key:r,value:i,valueSpec:a.source_geojson,style:s,styleSpec:a,validateSpec:n,objectElementValidators:iX}),i.cluster)for(let e in i.clusterProperties){let[a,s]=i.clusterProperties[e],o="string"==typeof a?[a,["accumulated"],["get",e]]:a;t.push(...iV({key:`${r}.${e}.map`,value:s,validateSpec:n,expressionContext:"cluster-map"})),t.push(...iV({key:`${r}.${e}.reduce`,value:o,validateSpec:n,expressionContext:"cluster-reduce"}))}return t;case"video":return iR({key:r,value:i,valueSpec:a.source_video,style:s,validateSpec:n,styleSpec:a});case"image":return iR({key:r,value:i,valueSpec:a.source_image,style:s,validateSpec:n,styleSpec:a});case"canvas":return[new ex(r,null,"Please use runtime APIs to add canvas sources, rather than including them in stylesheets.","source.canvas")];default:return iN({key:`${r}.type`,value:i.type,valueSpec:{values:["vector","raster","raster-dem","geojson","video","image"]},style:s,validateSpec:n,styleSpec:a})}}function iH(e){let t=e.value,i=e.styleSpec,r=i.light,a=e.style,s=[],n=il(t);if(void 0===t)return s;if("object"!==n)return s.concat([new ex("light",t,`object expected, ${n} found`)]);for(let n in t){let o=n.match(/^(.*)-transition$/);s=s.concat(o&&r[o[1]]&&r[o[1]].transition?e.validateSpec({key:n,value:t[n],valueSpec:i.transition,validateSpec:e.validateSpec,style:a,styleSpec:i}):r[n]?e.validateSpec({key:n,value:t[n],valueSpec:r[n],validateSpec:e.validateSpec,style:a,styleSpec:i}):[new ex(n,t[n],`unknown property "${n}"`)])}return s}function iK(e){let t=e.value,i=e.styleSpec,r=i.terrain,a=e.style,s=[],n=il(t);if(void 0===t)return s;if("object"!==n)return s.concat([new ex("terrain",t,`object expected, ${n} found`)]);for(let n in t)s=s.concat(r[n]?e.validateSpec({key:n,value:t[n],valueSpec:r[n],validateSpec:e.validateSpec,style:a,styleSpec:i}):[new ex(n,t[n],`unknown property "${n}"`)]);return s}function iY(e){let t=[],i=e.value,r=e.key;if(Array.isArray(i)){let a=[],s=[];for(let n in i)i[n].id&&a.includes(i[n].id)&&t.push(new ex(r,i,`all the sprites' ids must be unique, but ${i[n].id} is duplicated`)),a.push(i[n].id),i[n].url&&s.includes(i[n].url)&&t.push(new ex(r,i,`all the sprites' URLs must be unique, but ${i[n].url} is duplicated`)),s.push(i[n].url),t=t.concat(iR({key:`${r}[${n}]`,value:i[n],valueSpec:{id:{type:"string",required:!0},url:{type:"string",required:!0}},validateSpec:e.validateSpec}));return t}return iG({key:r,value:i})}let iJ={"*":()=>[],array:iB,boolean:function(e){let t=e.value,i=e.key,r=il(t);return"boolean"!==r?[new ex(i,t,`boolean expected, ${r} found`)]:[]},number:iF,color:function(e){let t=e.key,i=e.value,r=il(i);return"string"!==r?[new ex(t,i,`color expected, ${r} found`)]:e6.parse(String(i))?[]:[new ex(t,i,`color expected, "${i}" found`)]},constants:iz,enum:iN,filter:iU,function:iO,layer:iZ,object:iR,source:iW,light:iH,terrain:iK,string:iG,formatted:function(e){return 0===iG(e).length?[]:iV(e)},resolvedImage:function(e){return 0===iG(e).length?[]:iV(e)},padding:function(e){let t=e.key,i=e.value;if("array"===il(i)){if(i.length<1||i.length>4)return[new ex(t,i,`padding requires 1 to 4 values; ${i.length} values found`)];let r={type:"number"},a=[];for(let s=0;s[]}})),e.constants&&(i=i.concat(iz({key:"constants",value:e.constants,style:e,styleSpec:t,validateSpec:iQ}))),i5(i)}function i2(e){return function(t){return e({...t,validateSpec:iQ})}}function i5(e){return[].concat(e).sort((e,t)=>e.line-t.line)}function i3(e){return function(...t){return i5(e.apply(this,t))}}i1.source=i3(i2(iW)),i1.sprite=i3(i2(iY)),i1.glyphs=i3(i2(i0)),i1.light=i3(i2(iH)),i1.terrain=i3(i2(iK)),i1.layer=i3(i2(iZ)),i1.filter=i3(i2(iU)),i1.paintProperty=i3(i2(ij)),i1.layoutProperty=i3(i2(iq));let i4=i1.light,i6=i1.paintProperty,i8=i1.layoutProperty;function i9(e,t){let i=!1;if(t&&t.length)for(let r of t)e.fire(new el(Error(r.message))),i=!0;return i}class i7{constructor(e,t,i){let r=this.cells=[];if(e instanceof ArrayBuffer){this.arrayBuffer=e;let a=new Int32Array(this.arrayBuffer);e=a[0],this.d=(t=a[1])+2*(i=a[2]);for(let e=0;e=h[l+0]&&r>=h[l+1])?(n[c]=!0,s.push(a[c])):n[c]=!1}}}}_forEachCell(e,t,i,r,a,s,n,o){let l=this._convertToCellCoord(e),h=this._convertToCellCoord(t),u=this._convertToCellCoord(i),c=this._convertToCellCoord(r);for(let d=l;d<=u;d++)for(let l=h;l<=c;l++){let h=this.d*l+d;if((!o||o(this._convertFromCellCoord(d),this._convertFromCellCoord(l),this._convertFromCellCoord(d+1),this._convertFromCellCoord(l+1)))&&a.call(this,e,t,i,r,h,s,n,o))return}}_convertFromCellCoord(e){return(e-this.padding)/this.scale}_convertToCellCoord(e){return Math.max(0,Math.min(this.d-1,Math.floor(e*this.scale)+this.padding))}toArrayBuffer(){if(this.arrayBuffer)return this.arrayBuffer;let e=this.cells,t=3+this.cells.length+1+1,i=0;for(let e=0;e=0)continue;let s=e[i];a[i]=re[r].shallow.indexOf(i)>=0?s:rr(s,t)}e instanceof Error&&(a.message=e.message)}if(a.$name)throw Error("$name property is reserved for worker serialization logic.");return"Object"!==r&&(a.$name=r),a}throw Error("can't serialize object of type "+typeof e)}function ra(e){if(null==e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||e instanceof Boolean||e instanceof Number||e instanceof String||e instanceof Date||e instanceof RegExp||e instanceof Blob||ri(e)||X(e)||ArrayBuffer.isView(e)||e instanceof ImageData)return e;if(Array.isArray(e))return e.map(ra);if("object"==typeof e){let t=e.$name||"Object";if(!re[t])throw Error(`can't deserialize unregistered class ${t}`);let{klass:i}=re[t];if(!i)throw Error(`can't deserialize unregistered class ${t}`);if(i.deserialize)return i.deserialize(e);let r=Object.create(i.prototype);for(let i of Object.keys(e)){if("$name"===i)continue;let a=e[i];r[i]=re[t].shallow.indexOf(i)>=0?a:ra(a)}return r}throw Error("can't deserialize object of type "+typeof e)}class rs{constructor(){this.first=!0}update(e,t){let i=Math.floor(e);return this.first?(this.first=!1,this.lastIntegerZoom=i,this.lastIntegerZoomTime=0,this.lastZoom=e,this.lastFloorZoom=i,!0):(this.lastFloorZoom>i?(this.lastIntegerZoom=i+1,this.lastIntegerZoomTime=t):this.lastFloorZoome>=128&&e<=255,Arabic:e=>e>=1536&&e<=1791,"Arabic Supplement":e=>e>=1872&&e<=1919,"Arabic Extended-A":e=>e>=2208&&e<=2303,"Hangul Jamo":e=>e>=4352&&e<=4607,"Unified Canadian Aboriginal Syllabics":e=>e>=5120&&e<=5759,Khmer:e=>e>=6016&&e<=6143,"Unified Canadian Aboriginal Syllabics Extended":e=>e>=6320&&e<=6399,"General Punctuation":e=>e>=8192&&e<=8303,"Letterlike Symbols":e=>e>=8448&&e<=8527,"Number Forms":e=>e>=8528&&e<=8591,"Miscellaneous Technical":e=>e>=8960&&e<=9215,"Control Pictures":e=>e>=9216&&e<=9279,"Optical Character Recognition":e=>e>=9280&&e<=9311,"Enclosed Alphanumerics":e=>e>=9312&&e<=9471,"Geometric Shapes":e=>e>=9632&&e<=9727,"Miscellaneous Symbols":e=>e>=9728&&e<=9983,"Miscellaneous Symbols and Arrows":e=>e>=11008&&e<=11263,"CJK Radicals Supplement":e=>e>=11904&&e<=12031,"Kangxi Radicals":e=>e>=12032&&e<=12255,"Ideographic Description Characters":e=>e>=12272&&e<=12287,"CJK Symbols and Punctuation":e=>e>=12288&&e<=12351,Hiragana:e=>e>=12352&&e<=12447,Katakana:e=>e>=12448&&e<=12543,Bopomofo:e=>e>=12544&&e<=12591,"Hangul Compatibility Jamo":e=>e>=12592&&e<=12687,Kanbun:e=>e>=12688&&e<=12703,"Bopomofo Extended":e=>e>=12704&&e<=12735,"CJK Strokes":e=>e>=12736&&e<=12783,"Katakana Phonetic Extensions":e=>e>=12784&&e<=12799,"Enclosed CJK Letters and Months":e=>e>=12800&&e<=13055,"CJK Compatibility":e=>e>=13056&&e<=13311,"CJK Unified Ideographs Extension A":e=>e>=13312&&e<=19903,"Yijing Hexagram Symbols":e=>e>=19904&&e<=19967,"CJK Unified Ideographs":e=>e>=19968&&e<=40959,"Yi Syllables":e=>e>=40960&&e<=42127,"Yi Radicals":e=>e>=42128&&e<=42191,"Hangul Jamo Extended-A":e=>e>=43360&&e<=43391,"Hangul Syllables":e=>e>=44032&&e<=55215,"Hangul Jamo Extended-B":e=>e>=55216&&e<=55295,"Private Use Area":e=>e>=57344&&e<=63743,"CJK Compatibility Ideographs":e=>e>=63744&&e<=64255,"Arabic Presentation Forms-A":e=>e>=64336&&e<=65023,"Vertical Forms":e=>e>=65040&&e<=65055,"CJK Compatibility Forms":e=>e>=65072&&e<=65103,"Small Form Variants":e=>e>=65104&&e<=65135,"Arabic Presentation Forms-B":e=>e>=65136&&e<=65279,"Halfwidth and Fullwidth Forms":e=>e>=65280&&e<=65519};function ro(e){for(let t of e)if(rl(t.charCodeAt(0)))return!0;return!1}function rl(e){return!(746!==e&&747!==e&&(e<4352||!(rn["Bopomofo Extended"](e)||rn.Bopomofo(e)||rn["CJK Compatibility Forms"](e)&&!(e>=65097&&e<=65103)||rn["CJK Compatibility Ideographs"](e)||rn["CJK Compatibility"](e)||rn["CJK Radicals Supplement"](e)||rn["CJK Strokes"](e)||!(!rn["CJK Symbols and Punctuation"](e)||e>=12296&&e<=12305||e>=12308&&e<=12319||12336===e)||rn["CJK Unified Ideographs Extension A"](e)||rn["CJK Unified Ideographs"](e)||rn["Enclosed CJK Letters and Months"](e)||rn["Hangul Compatibility Jamo"](e)||rn["Hangul Jamo Extended-A"](e)||rn["Hangul Jamo Extended-B"](e)||rn["Hangul Jamo"](e)||rn["Hangul Syllables"](e)||rn.Hiragana(e)||rn["Ideographic Description Characters"](e)||rn.Kanbun(e)||rn["Kangxi Radicals"](e)||rn["Katakana Phonetic Extensions"](e)||rn.Katakana(e)&&12540!==e||!(!rn["Halfwidth and Fullwidth Forms"](e)||65288===e||65289===e||65293===e||e>=65306&&e<=65310||65339===e||65341===e||65343===e||e>=65371&&e<=65503||65507===e||e>=65512&&e<=65519)||!(!rn["Small Form Variants"](e)||e>=65112&&e<=65118||e>=65123&&e<=65126)||rn["Unified Canadian Aboriginal Syllabics"](e)||rn["Unified Canadian Aboriginal Syllabics Extended"](e)||rn["Vertical Forms"](e)||rn["Yijing Hexagram Symbols"](e)||rn["Yi Syllables"](e)||rn["Yi Radicals"](e))))}function rh(e){return!(rl(e)||rn["Latin-1 Supplement"](e)&&(167===e||169===e||174===e||177===e||188===e||189===e||190===e||215===e||247===e)||rn["General Punctuation"](e)&&(8214===e||8224===e||8225===e||8240===e||8241===e||8251===e||8252===e||8258===e||8263===e||8264===e||8265===e||8273===e)||rn["Letterlike Symbols"](e)||rn["Number Forms"](e)||rn["Miscellaneous Technical"](e)&&(e>=8960&&e<=8967||e>=8972&&e<=8991||e>=8996&&e<=9e3||9003===e||e>=9085&&e<=9114||e>=9150&&e<=9165||9167===e||e>=9169&&e<=9179||e>=9186&&e<=9215)||rn["Control Pictures"](e)&&9251!==e||rn["Optical Character Recognition"](e)||rn["Enclosed Alphanumerics"](e)||rn["Geometric Shapes"](e)||rn["Miscellaneous Symbols"](e)&&!(e>=9754&&e<=9759)||rn["Miscellaneous Symbols and Arrows"](e)&&(e>=11026&&e<=11055||e>=11088&&e<=11097||e>=11192&&e<=11243)||rn["CJK Symbols and Punctuation"](e)||rn.Katakana(e)||rn["Private Use Area"](e)||rn["CJK Compatibility Forms"](e)||rn["Small Form Variants"](e)||rn["Halfwidth and Fullwidth Forms"](e)||8734===e||8756===e||8757===e||e>=9984&&e<=10087||e>=10102&&e<=10131||65532===e||65533===e)}function ru(e){return e>=1424&&e<=2303||rn["Arabic Presentation Forms-A"](e)||rn["Arabic Presentation Forms-B"](e)}let rc="deferred",rd="loading",rp="loaded",rf=null,rm="unavailable",r_=null,rg=function(e){e&&"string"==typeof e&&e.indexOf("NetworkError")>-1&&(rm="error"),rf&&rf(e)};function ry(){rx.fire(new eo("pluginStateChange",{pluginStatus:rm,pluginURL:r_}))}let rx=new eh,rv=function(){return rm},rb=function(){if(rm!==rc||!r_)throw Error("rtl-text-plugin cannot be downloaded unless a pluginURL is specified");rm=rd,ry(),r_&&er({url:r_},e=>{e?rg(e):(rm=rp,ry())})},rw={applyArabicShaping:null,processBidirectionalText:null,processStyledBidirectionalText:null,isLoaded:()=>rm===rp||null!=rw.applyArabicShaping,isLoading:()=>rm===rd,setState(e){if(!Z())throw Error("Cannot set the state of the rtl-text-plugin when not in the web-worker context");rm=e.pluginStatus,r_=e.pluginURL},isParsed(){if(!Z())throw Error("rtl-text-plugin is only parsed on the worker-threads");return null!=rw.applyArabicShaping&&null!=rw.processBidirectionalText&&null!=rw.processStyledBidirectionalText},getPluginURL(){if(!Z())throw Error("rtl-text-plugin url can only be queried from the worker threads");return r_}};class rS{constructor(e,t){this.zoom=e,t?(this.now=t.now,this.fadeDuration=t.fadeDuration,this.zoomHistory=t.zoomHistory,this.transition=t.transition):(this.now=0,this.fadeDuration=0,this.zoomHistory=new rs,this.transition={})}isSupportedScript(e){var t,i=rw.isLoaded();for(let r of e)if(t=r.charCodeAt(0),!i&&ru(t)||t>=2304&&t<=3583||t>=3840&&t<=4255||rn.Khmer(t))return!1;return!0}crossFadingFactor(){return 0===this.fadeDuration?1:Math.min((this.now-this.zoomHistory.lastIntegerZoomTime)/this.fadeDuration,1)}getCrossfadeParameters(){let e=this.zoom,t=e-Math.floor(e),i=this.crossFadingFactor();return e>this.zoomHistory.lastIntegerZoom?{fromScale:2,toScale:1,t:t+(1-t)*i}:{fromScale:.5,toScale:1,t:1-(1-i)*t}}}class rT{constructor(e,t){this.property=e,this.value=t,this.expression=function(e,t){if(ih(e))return new iS(e,t);if(iy(e)){let i=iw(e,t);if("error"===i.result)throw Error(i.value.map(e=>`${e.key}: ${e.message}`).join(", "));return i.value}{let i=e;return"color"===t.type&&"string"==typeof e?i=e6.parse(e):"padding"===t.type&&("number"==typeof e||Array.isArray(e))?i=te.parse(e):"variableAnchorOffsetCollection"===t.type&&Array.isArray(e)&&(i=ti.parse(e)),{kind:"constant",evaluate:()=>i}}}(void 0===t?e.specification.default:t,e.specification)}isDataDriven(){return"source"===this.expression.kind||"composite"===this.expression.kind}possiblyEvaluate(e,t,i){return this.property.possiblyEvaluate(this,e,t,i)}}class rI{constructor(e){this.property=e,this.value=new rT(e,void 0)}transitioned(e,t){return new rM(this.property,this.value,t,F({},e.transition,this.transition),e.now)}untransitioned(){return new rM(this.property,this.value,null,{},0)}}class rA{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitionablePropertyValues)}getValue(e){return U(this._values[e].value.value)}setValue(e,t){Object.prototype.hasOwnProperty.call(this._values,e)||(this._values[e]=new rI(this._values[e].property)),this._values[e].value=new rT(this._values[e].property,null===t?void 0:U(t))}getTransition(e){return U(this._values[e].transition)}setTransition(e,t){Object.prototype.hasOwnProperty.call(this._values,e)||(this._values[e]=new rI(this._values[e].property)),this._values[e].transition=U(t)||void 0}serialize(){let e={};for(let t of Object.keys(this._values)){let i=this.getValue(t);void 0!==i&&(e[t]=i);let r=this.getTransition(t);void 0!==r&&(e[`${t}-transition`]=r)}return e}transitioned(e,t){let i=new rE(this._properties);for(let r of Object.keys(this._values))i._values[r]=this._values[r].transitioned(e,t._values[r]);return i}untransitioned(){let e=new rE(this._properties);for(let t of Object.keys(this._values))e._values[t]=this._values[t].untransitioned();return e}}class rM{constructor(e,t,i,r,a){this.property=e,this.value=t,this.begin=a+r.delay||0,this.end=this.begin+r.duration||0,e.specification.transition&&(r.delay||r.duration)&&(this.prior=i)}possiblyEvaluate(e,t,i){let r=e.now||0,a=this.value.possiblyEvaluate(e,t,i),s=this.prior;if(s){if(r>this.end||this.value.isDataDriven())return this.prior=null,a;if(r=1)return 1;let t=e*e,i=t*e;return 4*(e<.5?i:3*(e-t)+i-.75)}(n))}}return a}}class rE{constructor(e){this._properties=e,this._values=Object.create(e.defaultTransitioningPropertyValues)}possiblyEvaluate(e,t,i){let r=new rP(this._properties);for(let a of Object.keys(this._values))r._values[a]=this._values[a].possiblyEvaluate(e,t,i);return r}hasTransition(){for(let e of Object.keys(this._values))if(this._values[e].prior)return!0;return!1}}class rk{constructor(e){this._properties=e,this._values=Object.create(e.defaultPropertyValues)}hasValue(e){return void 0!==this._values[e].value}getValue(e){return U(this._values[e].value)}setValue(e,t){this._values[e]=new rT(this._values[e].property,null===t?void 0:U(t))}serialize(){let e={};for(let t of Object.keys(this._values)){let i=this.getValue(t);void 0!==i&&(e[t]=i)}return e}possiblyEvaluate(e,t,i){let r=new rP(this._properties);for(let a of Object.keys(this._values))r._values[a]=this._values[a].possiblyEvaluate(e,t,i);return r}}class rC{constructor(e,t,i){this.property=e,this.value=t,this.parameters=i}isConstant(){return"constant"===this.value.kind}constantOr(e){return"constant"===this.value.kind?this.value.value:e}evaluate(e,t,i,r){return this.property.evaluate(this.value,this.parameters,e,t,i,r)}}class rP{constructor(e){this._properties=e,this._values=Object.create(e.defaultPossiblyEvaluatedValues)}get(e){return this._values[e]}}class rz{constructor(e){this.specification=e}possiblyEvaluate(e,t){if(e.isDataDriven())throw Error("Value should not be data driven");return e.expression.evaluate(t)}interpolate(e,t,i){let r=tO[this.specification.type];return r?r(e,t,i):e}}class rD{constructor(e,t){this.specification=e,this.overrides=t}possiblyEvaluate(e,t,i,r){return new rC(this,"constant"===e.expression.kind||"camera"===e.expression.kind?{kind:"constant",value:e.expression.evaluate(t,null,{},i,r)}:e.expression,t)}interpolate(e,t,i){if("constant"!==e.value.kind||"constant"!==t.value.kind)return e;if(void 0===e.value.value||void 0===t.value.value)return new rC(this,{kind:"constant",value:void 0},e.parameters);let r=tO[this.specification.type];return r?new rC(this,{kind:"constant",value:r(e.value.value,t.value.value,i)},e.parameters):e}evaluate(e,t,i,r,a,s){return"constant"===e.kind?e.value:e.evaluate(t,i,r,a,s)}}class rL extends rD{possiblyEvaluate(e,t,i,r){if(void 0===e.value)return new rC(this,{kind:"constant",value:void 0},t);if("constant"===e.expression.kind){let a=e.expression.evaluate(t,null,{},i,r),s="resolvedImage"===e.property.specification.type&&"string"!=typeof a?a.name:a;return new rC(this,{kind:"constant",value:this._calculate(s,s,s,t)},t)}return"camera"===e.expression.kind?new rC(this,{kind:"constant",value:this._calculate(e.expression.evaluate({zoom:t.zoom-1}),e.expression.evaluate({zoom:t.zoom}),e.expression.evaluate({zoom:t.zoom+1}),t)},t):new rC(this,e.expression,t)}evaluate(e,t,i,r,a,s){if("source"===e.kind){let n=e.evaluate(t,i,r,a,s);return this._calculate(n,n,n,t)}return"composite"===e.kind?this._calculate(e.evaluate({zoom:Math.floor(t.zoom)-1},i,r),e.evaluate({zoom:Math.floor(t.zoom)},i,r),e.evaluate({zoom:Math.floor(t.zoom)+1},i,r),t):e.value}_calculate(e,t,i,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:i,to:t}}interpolate(e){return e}}class rR{constructor(e){this.specification=e}possiblyEvaluate(e,t,i,r){if(void 0!==e.value){if("constant"===e.expression.kind){let a=e.expression.evaluate(t,null,{},i,r);return this._calculate(a,a,a,t)}return this._calculate(e.expression.evaluate(new rS(Math.floor(t.zoom-1),t)),e.expression.evaluate(new rS(Math.floor(t.zoom),t)),e.expression.evaluate(new rS(Math.floor(t.zoom+1),t)),t)}}_calculate(e,t,i,r){return r.zoom>r.zoomHistory.lastIntegerZoom?{from:e,to:t}:{from:i,to:t}}interpolate(e){return e}}class rB{constructor(e){this.specification=e}possiblyEvaluate(e,t,i,r){return!!e.expression.evaluate(t,null,{},i,r)}interpolate(){return!1}}class rF{constructor(e){for(let t in this.properties=e,this.defaultPropertyValues={},this.defaultTransitionablePropertyValues={},this.defaultTransitioningPropertyValues={},this.defaultPossiblyEvaluatedValues={},this.overridableProperties=[],e){let i=e[t];i.specification.overridable&&this.overridableProperties.push(t);let r=this.defaultPropertyValues[t]=new rT(i,void 0),a=this.defaultTransitionablePropertyValues[t]=new rI(i);this.defaultTransitioningPropertyValues[t]=a.untransitioned(),this.defaultPossiblyEvaluatedValues[t]=r.possiblyEvaluate({})}}}rt("DataDrivenProperty",rD),rt("DataConstantProperty",rz),rt("CrossFadedDataDrivenProperty",rL),rt("CrossFadedProperty",rR),rt("ColorRampProperty",rB);let rO="-transition";class rV extends eh{constructor(e,t){if(super(),this.id=e.id,this.type=e.type,this._featureFilter={filter:()=>!0,needGeometry:!1},"custom"!==e.type&&(this.metadata=e.metadata,this.minzoom=e.minzoom,this.maxzoom=e.maxzoom,"background"!==e.type&&(this.source=e.source,this.sourceLayer=e["source-layer"],this.filter=e.filter),t.layout&&(this._unevaluatedLayout=new rk(t.layout)),t.paint)){for(let i in this._transitionablePaint=new rA(t.paint),e.paint)this.setPaintProperty(i,e.paint[i],{validate:!1});for(let t in e.layout)this.setLayoutProperty(t,e.layout[t],{validate:!1});this._transitioningPaint=this._transitionablePaint.untransitioned(),this.paint=new rP(t.paint)}}getCrossfadeParameters(){return this._crossfadeParameters}getLayoutProperty(e){return"visibility"===e?this.visibility:this._unevaluatedLayout.getValue(e)}setLayoutProperty(e,t,i={}){null!=t&&this._validate(i8,`layers.${this.id}.layout.${e}`,e,t,i)||("visibility"!==e?this._unevaluatedLayout.setValue(e,t):this.visibility=t)}getPaintProperty(e){return e.endsWith(rO)?this._transitionablePaint.getTransition(e.slice(0,-11)):this._transitionablePaint.getValue(e)}setPaintProperty(e,t,i={}){if(null!=t&&this._validate(i6,`layers.${this.id}.paint.${e}`,e,t,i))return!1;if(e.endsWith(rO))return this._transitionablePaint.setTransition(e.slice(0,-11),t||void 0),!1;{let i=this._transitionablePaint._values[e],r="cross-faded-data-driven"===i.property.specification["property-type"],a=i.value.isDataDriven(),s=i.value;this._transitionablePaint.setValue(e,t),this._handleSpecialPaintPropertyUpdate(e);let n=this._transitionablePaint._values[e].value;return n.isDataDriven()||a||r||this._handleOverridablePaintPropertyUpdate(e,s,n)}}_handleSpecialPaintPropertyUpdate(e){}_handleOverridablePaintPropertyUpdate(e,t,i){return!1}isHidden(e){return!!(this.minzoom&&e=this.maxzoom)||"none"===this.visibility}updateTransitions(e){this._transitioningPaint=this._transitionablePaint.transitioned(e,this._transitioningPaint)}hasTransition(){return this._transitioningPaint.hasTransition()}recalculate(e,t){e.getCrossfadeParameters&&(this._crossfadeParameters=e.getCrossfadeParameters()),this._unevaluatedLayout&&(this.layout=this._unevaluatedLayout.possiblyEvaluate(e,void 0,t)),this.paint=this._transitioningPaint.possiblyEvaluate(e,void 0,t)}serialize(){let e={id:this.id,type:this.type,source:this.source,"source-layer":this.sourceLayer,metadata:this.metadata,minzoom:this.minzoom,maxzoom:this.maxzoom,filter:this.filter,layout:this._unevaluatedLayout&&this._unevaluatedLayout.serialize(),paint:this._transitionablePaint&&this._transitionablePaint.serialize()};return this.visibility&&(e.layout=e.layout||{},e.layout.visibility=this.visibility),N(e,(e,t)=>!(void 0===e||"layout"===t&&!Object.keys(e).length||"paint"===t&&!Object.keys(e).length))}_validate(e,t,i,r,a={}){return(!a||!1!==a.validate)&&i9(this,e.call(i1,{key:t,layerType:this.type,objectKey:i,value:r,styleSpec:eu,style:{glyphs:!0,sprite:!0}}))}is3D(){return!1}isTileClipped(){return!1}hasOffscreenPass(){return!1}resize(){}isStateDependent(){for(let e in this.paint._values){let t=this.paint.get(e);if(t instanceof rC&&ia(t.property.specification)&&("source"===t.value.kind||"composite"===t.value.kind)&&t.value.isStateDependent)return!0}return!1}}let rN={Int8:Int8Array,Uint8:Uint8Array,Int16:Int16Array,Uint16:Uint16Array,Int32:Int32Array,Uint32:Uint32Array,Float32:Float32Array};class rU{constructor(e,t){this._structArray=e,this._pos1=t*this.size,this._pos2=this._pos1/2,this._pos4=this._pos1/4,this._pos8=this._pos1/8}}class r${constructor(){this.isTransferred=!1,this.capacity=-1,this.resize(0)}static serialize(e,t){return e._trim(),t&&(e.isTransferred=!0,t.push(e.arrayBuffer)),{length:e.length,arrayBuffer:e.arrayBuffer}}static deserialize(e){let t=Object.create(this.prototype);return t.arrayBuffer=e.arrayBuffer,t.length=e.length,t.capacity=e.arrayBuffer.byteLength/t.bytesPerElement,t._refreshViews(),t}_trim(){this.length!==this.capacity&&(this.capacity=this.length,this.arrayBuffer=this.arrayBuffer.slice(0,this.length*this.bytesPerElement),this._refreshViews())}clear(){this.length=0}resize(e){this.reserve(e),this.length=e}reserve(e){if(e>this.capacity){this.capacity=Math.max(e,Math.floor(5*this.capacity),128),this.arrayBuffer=new ArrayBuffer(this.capacity*this.bytesPerElement);let t=this.uint8;this._refreshViews(),t&&this.uint8.set(t)}}_refreshViews(){throw Error("_refreshViews() must be implemented by each concrete StructArray layout")}}function rj(e,t=1){let i=0,r=0;return{members:e.map(e=>{let a=rN[e.type].BYTES_PER_ELEMENT,s=i=rq(i,Math.max(t,a)),n=e.components||1;return r=Math.max(r,a),i+=a*n,{name:e.name,type:e.type,components:n,offset:s}}),size:rq(i,Math.max(r,t)),alignment:t}}function rq(e,t){return Math.ceil(e/t)*t}class rZ extends r${_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t){let i=this.length;return this.resize(i+1),this.emplace(i,e,t)}emplace(e,t,i){let r=2*e;return this.int16[r+0]=t,this.int16[r+1]=i,e}}rZ.prototype.bytesPerElement=4,rt("StructArrayLayout2i4",rZ);class rG extends r${_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i){let r=this.length;return this.resize(r+1),this.emplace(r,e,t,i)}emplace(e,t,i,r){let a=3*e;return this.int16[a+0]=t,this.int16[a+1]=i,this.int16[a+2]=r,e}}rG.prototype.bytesPerElement=6,rt("StructArrayLayout3i6",rG);class rX extends r${_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,r){let a=this.length;return this.resize(a+1),this.emplace(a,e,t,i,r)}emplace(e,t,i,r,a){let s=4*e;return this.int16[s+0]=t,this.int16[s+1]=i,this.int16[s+2]=r,this.int16[s+3]=a,e}}rX.prototype.bytesPerElement=8,rt("StructArrayLayout4i8",rX);class rW extends r${_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,r,a,s){let n=this.length;return this.resize(n+1),this.emplace(n,e,t,i,r,a,s)}emplace(e,t,i,r,a,s,n){let o=6*e;return this.int16[o+0]=t,this.int16[o+1]=i,this.int16[o+2]=r,this.int16[o+3]=a,this.int16[o+4]=s,this.int16[o+5]=n,e}}rW.prototype.bytesPerElement=12,rt("StructArrayLayout2i4i12",rW);class rH extends r${_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,r,a,s){let n=this.length;return this.resize(n+1),this.emplace(n,e,t,i,r,a,s)}emplace(e,t,i,r,a,s,n){let o=4*e,l=8*e;return this.int16[o+0]=t,this.int16[o+1]=i,this.uint8[l+4]=r,this.uint8[l+5]=a,this.uint8[l+6]=s,this.uint8[l+7]=n,e}}rH.prototype.bytesPerElement=8,rt("StructArrayLayout2i4ub8",rH);class rK extends r${_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t){let i=this.length;return this.resize(i+1),this.emplace(i,e,t)}emplace(e,t,i){let r=2*e;return this.float32[r+0]=t,this.float32[r+1]=i,e}}rK.prototype.bytesPerElement=8,rt("StructArrayLayout2f8",rK);class rY extends r${_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i,r,a,s,n,o,l,h){let u=this.length;return this.resize(u+1),this.emplace(u,e,t,i,r,a,s,n,o,l,h)}emplace(e,t,i,r,a,s,n,o,l,h,u){let c=10*e;return this.uint16[c+0]=t,this.uint16[c+1]=i,this.uint16[c+2]=r,this.uint16[c+3]=a,this.uint16[c+4]=s,this.uint16[c+5]=n,this.uint16[c+6]=o,this.uint16[c+7]=l,this.uint16[c+8]=h,this.uint16[c+9]=u,e}}rY.prototype.bytesPerElement=20,rt("StructArrayLayout10ui20",rY);class rJ extends r${_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i,r,a,s,n,o,l,h,u,c){let d=this.length;return this.resize(d+1),this.emplace(d,e,t,i,r,a,s,n,o,l,h,u,c)}emplace(e,t,i,r,a,s,n,o,l,h,u,c,d){let p=12*e;return this.int16[p+0]=t,this.int16[p+1]=i,this.int16[p+2]=r,this.int16[p+3]=a,this.uint16[p+4]=s,this.uint16[p+5]=n,this.uint16[p+6]=o,this.uint16[p+7]=l,this.int16[p+8]=h,this.int16[p+9]=u,this.int16[p+10]=c,this.int16[p+11]=d,e}}rJ.prototype.bytesPerElement=24,rt("StructArrayLayout4i4ui4i24",rJ);class rQ extends r${_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i){let r=this.length;return this.resize(r+1),this.emplace(r,e,t,i)}emplace(e,t,i,r){let a=3*e;return this.float32[a+0]=t,this.float32[a+1]=i,this.float32[a+2]=r,e}}rQ.prototype.bytesPerElement=12,rt("StructArrayLayout3f12",rQ);class r0 extends r${_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint32[+e+0]=t,e}}r0.prototype.bytesPerElement=4,rt("StructArrayLayout1ul4",r0);class r1 extends r${_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i,r,a,s,n,o,l){let h=this.length;return this.resize(h+1),this.emplace(h,e,t,i,r,a,s,n,o,l)}emplace(e,t,i,r,a,s,n,o,l,h){let u=10*e;return this.int16[u+0]=t,this.int16[u+1]=i,this.int16[u+2]=r,this.int16[u+3]=a,this.int16[u+4]=s,this.int16[u+5]=n,this.uint32[5*e+3]=o,this.uint16[u+8]=l,this.uint16[u+9]=h,e}}r1.prototype.bytesPerElement=20,rt("StructArrayLayout6i1ul2ui20",r1);class r2 extends r${_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,r,a,s){let n=this.length;return this.resize(n+1),this.emplace(n,e,t,i,r,a,s)}emplace(e,t,i,r,a,s,n){let o=6*e;return this.int16[o+0]=t,this.int16[o+1]=i,this.int16[o+2]=r,this.int16[o+3]=a,this.int16[o+4]=s,this.int16[o+5]=n,e}}r2.prototype.bytesPerElement=12,rt("StructArrayLayout2i2i2i12",r2);class r5 extends r${_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer)}emplaceBack(e,t,i,r,a){let s=this.length;return this.resize(s+1),this.emplace(s,e,t,i,r,a)}emplace(e,t,i,r,a,s){let n=4*e,o=8*e;return this.float32[n+0]=t,this.float32[n+1]=i,this.float32[n+2]=r,this.int16[o+6]=a,this.int16[o+7]=s,e}}r5.prototype.bytesPerElement=16,rt("StructArrayLayout2f1f2i16",r5);class r3 extends r${_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,r){let a=this.length;return this.resize(a+1),this.emplace(a,e,t,i,r)}emplace(e,t,i,r,a){let s=12*e,n=3*e;return this.uint8[s+0]=t,this.uint8[s+1]=i,this.float32[n+1]=r,this.float32[n+2]=a,e}}r3.prototype.bytesPerElement=12,rt("StructArrayLayout2ub2f12",r3);class r4 extends r${_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i){let r=this.length;return this.resize(r+1),this.emplace(r,e,t,i)}emplace(e,t,i,r){let a=3*e;return this.uint16[a+0]=t,this.uint16[a+1]=i,this.uint16[a+2]=r,e}}r4.prototype.bytesPerElement=6,rt("StructArrayLayout3ui6",r4);class r6 extends r${_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,r,a,s,n,o,l,h,u,c,d,p,f,m,_){let g=this.length;return this.resize(g+1),this.emplace(g,e,t,i,r,a,s,n,o,l,h,u,c,d,p,f,m,_)}emplace(e,t,i,r,a,s,n,o,l,h,u,c,d,p,f,m,_,g){let y=24*e,x=12*e,v=48*e;return this.int16[y+0]=t,this.int16[y+1]=i,this.uint16[y+2]=r,this.uint16[y+3]=a,this.uint32[x+2]=s,this.uint32[x+3]=n,this.uint32[x+4]=o,this.uint16[y+10]=l,this.uint16[y+11]=h,this.uint16[y+12]=u,this.float32[x+7]=c,this.float32[x+8]=d,this.uint8[v+36]=p,this.uint8[v+37]=f,this.uint8[v+38]=m,this.uint32[x+10]=_,this.int16[y+22]=g,e}}r6.prototype.bytesPerElement=48,rt("StructArrayLayout2i2ui3ul3ui2f3ub1ul1i48",r6);class r8 extends r${_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.int16=new Int16Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,r,a,s,n,o,l,h,u,c,d,p,f,m,_,g,y,x,v,b,w,S,T,I,A,M){let E=this.length;return this.resize(E+1),this.emplace(E,e,t,i,r,a,s,n,o,l,h,u,c,d,p,f,m,_,g,y,x,v,b,w,S,T,I,A,M)}emplace(e,t,i,r,a,s,n,o,l,h,u,c,d,p,f,m,_,g,y,x,v,b,w,S,T,I,A,M,E){let k=32*e,C=16*e;return this.int16[k+0]=t,this.int16[k+1]=i,this.int16[k+2]=r,this.int16[k+3]=a,this.int16[k+4]=s,this.int16[k+5]=n,this.int16[k+6]=o,this.int16[k+7]=l,this.uint16[k+8]=h,this.uint16[k+9]=u,this.uint16[k+10]=c,this.uint16[k+11]=d,this.uint16[k+12]=p,this.uint16[k+13]=f,this.uint16[k+14]=m,this.uint16[k+15]=_,this.uint16[k+16]=g,this.uint16[k+17]=y,this.uint16[k+18]=x,this.uint16[k+19]=v,this.uint16[k+20]=b,this.uint16[k+21]=w,this.uint16[k+22]=S,this.uint32[C+12]=T,this.float32[C+13]=I,this.float32[C+14]=A,this.uint16[k+30]=M,this.uint16[k+31]=E,e}}r8.prototype.bytesPerElement=64,rt("StructArrayLayout8i15ui1ul2f2ui64",r8);class r9 extends r${_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.float32[+e+0]=t,e}}r9.prototype.bytesPerElement=4,rt("StructArrayLayout1f4",r9);class r7 extends r${_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i){let r=this.length;return this.resize(r+1),this.emplace(r,e,t,i)}emplace(e,t,i,r){let a=3*e;return this.uint16[6*e+0]=t,this.float32[a+1]=i,this.float32[a+2]=r,e}}r7.prototype.bytesPerElement=12,rt("StructArrayLayout1ui2f12",r7);class ae extends r${_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint32=new Uint32Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t,i){let r=this.length;return this.resize(r+1),this.emplace(r,e,t,i)}emplace(e,t,i,r){let a=4*e;return this.uint32[2*e+0]=t,this.uint16[a+2]=i,this.uint16[a+3]=r,e}}ae.prototype.bytesPerElement=8,rt("StructArrayLayout1ul2ui8",ae);class at extends r${_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e,t){let i=this.length;return this.resize(i+1),this.emplace(i,e,t)}emplace(e,t,i){let r=2*e;return this.uint16[r+0]=t,this.uint16[r+1]=i,e}}at.prototype.bytesPerElement=4,rt("StructArrayLayout2ui4",at);class ai extends r${_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.uint16=new Uint16Array(this.arrayBuffer)}emplaceBack(e){let t=this.length;return this.resize(t+1),this.emplace(t,e)}emplace(e,t){return this.uint16[+e+0]=t,e}}ai.prototype.bytesPerElement=2,rt("StructArrayLayout1ui2",ai);class ar extends r${_refreshViews(){this.uint8=new Uint8Array(this.arrayBuffer),this.float32=new Float32Array(this.arrayBuffer)}emplaceBack(e,t,i,r){let a=this.length;return this.resize(a+1),this.emplace(a,e,t,i,r)}emplace(e,t,i,r,a){let s=4*e;return this.float32[s+0]=t,this.float32[s+1]=i,this.float32[s+2]=r,this.float32[s+3]=a,e}}ar.prototype.bytesPerElement=16,rt("StructArrayLayout4f16",ar);class aa extends rU{get anchorPointX(){return this._structArray.int16[this._pos2+0]}get anchorPointY(){return this._structArray.int16[this._pos2+1]}get x1(){return this._structArray.int16[this._pos2+2]}get y1(){return this._structArray.int16[this._pos2+3]}get x2(){return this._structArray.int16[this._pos2+4]}get y2(){return this._structArray.int16[this._pos2+5]}get featureIndex(){return this._structArray.uint32[this._pos4+3]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+8]}get bucketIndex(){return this._structArray.uint16[this._pos2+9]}get anchorPoint(){return new E(this.anchorPointX,this.anchorPointY)}}aa.prototype.size=20;class as extends r1{get(e){return new aa(this,e)}}rt("CollisionBoxArray",as);class an extends rU{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get glyphStartIndex(){return this._structArray.uint16[this._pos2+2]}get numGlyphs(){return this._structArray.uint16[this._pos2+3]}get vertexStartIndex(){return this._structArray.uint32[this._pos4+2]}get lineStartIndex(){return this._structArray.uint32[this._pos4+3]}get lineLength(){return this._structArray.uint32[this._pos4+4]}get segment(){return this._structArray.uint16[this._pos2+10]}get lowerSize(){return this._structArray.uint16[this._pos2+11]}get upperSize(){return this._structArray.uint16[this._pos2+12]}get lineOffsetX(){return this._structArray.float32[this._pos4+7]}get lineOffsetY(){return this._structArray.float32[this._pos4+8]}get writingMode(){return this._structArray.uint8[this._pos1+36]}get placedOrientation(){return this._structArray.uint8[this._pos1+37]}set placedOrientation(e){this._structArray.uint8[this._pos1+37]=e}get hidden(){return this._structArray.uint8[this._pos1+38]}set hidden(e){this._structArray.uint8[this._pos1+38]=e}get crossTileID(){return this._structArray.uint32[this._pos4+10]}set crossTileID(e){this._structArray.uint32[this._pos4+10]=e}get associatedIconIndex(){return this._structArray.int16[this._pos2+22]}}an.prototype.size=48;class ao extends r6{get(e){return new an(this,e)}}rt("PlacedSymbolArray",ao);class al extends rU{get anchorX(){return this._structArray.int16[this._pos2+0]}get anchorY(){return this._structArray.int16[this._pos2+1]}get rightJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+2]}get centerJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+3]}get leftJustifiedTextSymbolIndex(){return this._structArray.int16[this._pos2+4]}get verticalPlacedTextSymbolIndex(){return this._structArray.int16[this._pos2+5]}get placedIconSymbolIndex(){return this._structArray.int16[this._pos2+6]}get verticalPlacedIconSymbolIndex(){return this._structArray.int16[this._pos2+7]}get key(){return this._structArray.uint16[this._pos2+8]}get textBoxStartIndex(){return this._structArray.uint16[this._pos2+9]}get textBoxEndIndex(){return this._structArray.uint16[this._pos2+10]}get verticalTextBoxStartIndex(){return this._structArray.uint16[this._pos2+11]}get verticalTextBoxEndIndex(){return this._structArray.uint16[this._pos2+12]}get iconBoxStartIndex(){return this._structArray.uint16[this._pos2+13]}get iconBoxEndIndex(){return this._structArray.uint16[this._pos2+14]}get verticalIconBoxStartIndex(){return this._structArray.uint16[this._pos2+15]}get verticalIconBoxEndIndex(){return this._structArray.uint16[this._pos2+16]}get featureIndex(){return this._structArray.uint16[this._pos2+17]}get numHorizontalGlyphVertices(){return this._structArray.uint16[this._pos2+18]}get numVerticalGlyphVertices(){return this._structArray.uint16[this._pos2+19]}get numIconVertices(){return this._structArray.uint16[this._pos2+20]}get numVerticalIconVertices(){return this._structArray.uint16[this._pos2+21]}get useRuntimeCollisionCircles(){return this._structArray.uint16[this._pos2+22]}get crossTileID(){return this._structArray.uint32[this._pos4+12]}set crossTileID(e){this._structArray.uint32[this._pos4+12]=e}get textBoxScale(){return this._structArray.float32[this._pos4+13]}get collisionCircleDiameter(){return this._structArray.float32[this._pos4+14]}get textAnchorOffsetStartIndex(){return this._structArray.uint16[this._pos2+30]}get textAnchorOffsetEndIndex(){return this._structArray.uint16[this._pos2+31]}}al.prototype.size=64;class ah extends r8{get(e){return new al(this,e)}}rt("SymbolInstanceArray",ah);class au extends r9{getoffsetX(e){return this.float32[+e+0]}}rt("GlyphOffsetArray",au);class ac extends rG{getx(e){return this.int16[3*e+0]}gety(e){return this.int16[3*e+1]}gettileUnitDistanceFromAnchor(e){return this.int16[3*e+2]}}rt("SymbolLineVertexArray",ac);class ad extends rU{get textAnchor(){return this._structArray.uint16[this._pos2+0]}get textOffset0(){return this._structArray.float32[this._pos4+1]}get textOffset1(){return this._structArray.float32[this._pos4+2]}}ad.prototype.size=12;class ap extends r7{get(e){return new ad(this,e)}}rt("TextAnchorOffsetArray",ap);class af extends rU{get featureIndex(){return this._structArray.uint32[this._pos4+0]}get sourceLayerIndex(){return this._structArray.uint16[this._pos2+2]}get bucketIndex(){return this._structArray.uint16[this._pos2+3]}}af.prototype.size=8;class am extends ae{get(e){return new af(this,e)}}rt("FeatureIndexArray",am);class a_ extends rZ{}class ag extends rZ{}class ay extends rZ{}class ax extends rW{}class av extends rH{}class ab extends rK{}class aw extends rY{}class aS extends rJ{}class aT extends rQ{}class aI extends r0{}class aA extends r2{}class aM extends r3{}class aE extends r4{}class ak extends at{}let{members:aC}=rj([{name:"a_pos",components:2,type:"Int16"}],4);class aP{constructor(e=[]){this.segments=e}prepareSegment(e,t,i,r){let a=this.segments[this.segments.length-1];return e>aP.MAX_VERTEX_ARRAY_LENGTH&&j(`Max vertices per segment is ${aP.MAX_VERTEX_ARRAY_LENGTH}: bucket requested ${e}`),(!a||a.vertexLength+e>aP.MAX_VERTEX_ARRAY_LENGTH||a.sortKey!==r)&&(a={vertexOffset:t.length,primitiveOffset:i.length,vertexLength:0,primitiveLength:0},void 0!==r&&(a.sortKey=r),this.segments.push(a)),a}get(){return this.segments}destroy(){for(let e of this.segments)for(let t in e.vaos)e.vaos[t].destroy()}static simpleSegment(e,t,i,r){return new aP([{vertexOffset:e,primitiveOffset:t,vertexLength:i,primitiveLength:r,vaos:{},sortKey:0}])}}function az(e,t){return 256*(e=R(Math.floor(e),0,255))+R(Math.floor(t),0,255)}aP.MAX_VERTEX_ARRAY_LENGTH=65535,rt("SegmentVector",aP);let aD=rj([{name:"a_pattern_from",components:4,type:"Uint16"},{name:"a_pattern_to",components:4,type:"Uint16"},{name:"a_pixel_ratio_from",components:1,type:"Uint16"},{name:"a_pixel_ratio_to",components:1,type:"Uint16"}]);var aL={exports:{}},aR={exports:{}};aR.exports=function(e,t){var i,r,a,s,n,o;for(r=e.length-(i=3&e.length),a=t,o=0;o>>16)*0xcc9e2d51&65535)<<16)|0)<<15|n>>>17))*0x1b873593+(((n>>>16)*0x1b873593&65535)<<16)|0)<<13|a>>>19))+((5*(a>>>16)&65535)<<16)|0))+((58964+(s>>>16)&65535)<<16);switch(n=0,i){case 3:n^=(255&e.charCodeAt(o+2))<<16;case 2:n^=(255&e.charCodeAt(o+1))<<8;case 1:a^=n=(65535&(n=(n=(65535&(n^=255&e.charCodeAt(o)))*0xcc9e2d51+(((n>>>16)*0xcc9e2d51&65535)<<16)|0)<<15|n>>>17))*0x1b873593+(((n>>>16)*0x1b873593&65535)<<16)|0}return a^=e.length,a=0x85ebca6b*(65535&(a^=a>>>16))+((0x85ebca6b*(a>>>16)&65535)<<16)|0,a=0xc2b2ae35*(65535&(a^=a>>>13))+((0xc2b2ae35*(a>>>16)&65535)<<16)|0,(a^=a>>>16)>>>0};var aB=aR.exports,aF={exports:{}};aF.exports=function(e,t){for(var i,r=e.length,a=t^r,s=0;r>=4;)i=0x5bd1e995*(65535&(i=255&e.charCodeAt(s)|(255&e.charCodeAt(++s))<<8|(255&e.charCodeAt(++s))<<16|(255&e.charCodeAt(++s))<<24))+((0x5bd1e995*(i>>>16)&65535)<<16),a=0x5bd1e995*(65535&a)+((0x5bd1e995*(a>>>16)&65535)<<16)^(i=0x5bd1e995*(65535&(i^=i>>>24))+((0x5bd1e995*(i>>>16)&65535)<<16)),r-=4,++s;switch(r){case 3:a^=(255&e.charCodeAt(s+2))<<16;case 2:a^=(255&e.charCodeAt(s+1))<<8;case 1:a=0x5bd1e995*(65535&(a^=255&e.charCodeAt(s)))+((0x5bd1e995*(a>>>16)&65535)<<16)}return a=0x5bd1e995*(65535&(a^=a>>>13))+((0x5bd1e995*(a>>>16)&65535)<<16),(a^=a>>>15)>>>0};var aO=aF.exports;aL.exports=aB,aL.exports.murmur3=aB,aL.exports.murmur2=aO;var aV=w(aL.exports);class aN{constructor(){this.ids=[],this.positions=[],this.indexed=!1}add(e,t,i,r){this.ids.push(aU(e)),this.positions.push(t,i,r)}getPositions(e){if(!this.indexed)throw Error("Trying to get index, but feature positions are not indexed");let t=aU(e),i=0,r=this.ids.length-1;for(;i>1;this.ids[e]>=t?r=e:i=e+1}let a=[];for(;this.ids[i]===t;)a.push({index:this.positions[3*i],start:this.positions[3*i+1],end:this.positions[3*i+2]}),i++;return a}static serialize(e,t){let i=new Float64Array(e.ids),r=new Uint32Array(e.positions);return function e(t,i,r,a){for(;r>1],n=r-1,o=a+1;for(;;){do n++;while(t[n]s);if(n>=o)break;a$(t,n,o),a$(i,3*n,3*o),a$(i,3*n+1,3*o+1),a$(i,3*n+2,3*o+2)}o-r`u_${e}`),this.type=i}setUniform(e,t,i){e.set(i.constantOr(this.value))}getBinding(e,t,i){return"color"===this.type?new aG(e,t):new aq(e,t)}}class aK{constructor(e,t){this.uniformNames=t.map(e=>`u_${e}`),this.patternFrom=null,this.patternTo=null,this.pixelRatioFrom=1,this.pixelRatioTo=1}setConstantPatternPositions(e,t){this.pixelRatioFrom=t.pixelRatio,this.pixelRatioTo=e.pixelRatio,this.patternFrom=t.tlbr,this.patternTo=e.tlbr}setUniform(e,t,i,r){let a="u_pattern_to"===r?this.patternTo:"u_pattern_from"===r?this.patternFrom:"u_pixel_ratio_to"===r?this.pixelRatioTo:"u_pixel_ratio_from"===r?this.pixelRatioFrom:null;a&&e.set(a)}getBinding(e,t,i){return"u_pattern"===i.substr(0,9)?new aZ(e,t):new aq(e,t)}}class aY{constructor(e,t,i,r){this.expression=e,this.type=i,this.maxValue=0,this.paintVertexAttributes=t.map(e=>({name:`a_${e}`,type:"Float32",components:"color"===i?2:1,offset:0})),this.paintVertexArray=new r}populatePaintArray(e,t,i,r,a){let s=this.paintVertexArray.length,n=this.expression.evaluate(new rS(0),t,{},r,[],a);this.paintVertexArray.resize(e),this._setPaintValue(s,e,n)}updatePaintArray(e,t,i,r){let a=this.expression.evaluate({zoom:0},i,r);this._setPaintValue(e,t,a)}_setPaintValue(e,t,i){if("color"===this.type){let r=aW(i);for(let i=e;i`u_${e}_t`),this.type=i,this.useIntegerZoom=r,this.zoom=a,this.maxValue=0,this.paintVertexAttributes=t.map(e=>({name:`a_${e}`,type:"Float32",components:"color"===i?4:2,offset:0})),this.paintVertexArray=new s}populatePaintArray(e,t,i,r,a){let s=this.expression.evaluate(new rS(this.zoom),t,{},r,[],a),n=this.expression.evaluate(new rS(this.zoom+1),t,{},r,[],a),o=this.paintVertexArray.length;this.paintVertexArray.resize(e),this._setPaintValue(o,e,s,n)}updatePaintArray(e,t,i,r){let a=this.expression.evaluate({zoom:this.zoom},i,r),s=this.expression.evaluate({zoom:this.zoom+1},i,r);this._setPaintValue(e,t,a,s)}_setPaintValue(e,t,i,r){if("color"===this.type){let a=aW(i),s=aW(r);for(let i=e;i`#define HAS_UNIFORM_${e}`))}return e}getBinderAttributes(){let e=[];for(let t in this.binders){let i=this.binders[t];if(i instanceof aY||i instanceof aJ)for(let t=0;t!0){for(let r of(this.programConfigurations={},e))this.programConfigurations[r.id]=new a0(r,t,i);this.needsUpload=!1,this._featureMap=new aN,this._bufferOffset=0}populatePaintArrays(e,t,i,r,a,s){for(let i in this.programConfigurations)this.programConfigurations[i].populatePaintArrays(e,t,r,a,s);void 0!==t.id&&this._featureMap.add(t.id,i,this._bufferOffset,e),this._bufferOffset=e,this.needsUpload=!0}updatePaintArrays(e,t,i,r){for(let a of i)this.needsUpload=this.programConfigurations[a.id].updatePaintArrays(e,this._featureMap,t,a,r)||this.needsUpload}get(e){return this.programConfigurations[e]}upload(e){if(this.needsUpload){for(let t in this.programConfigurations)this.programConfigurations[t].upload(e);this.needsUpload=!1}}destroy(){for(let e in this.programConfigurations)this.programConfigurations[e].destroy()}}function a2(e,t,i){let r={"line-pattern":{source:aw,composite:aw},"fill-pattern":{source:aw,composite:aw},"fill-extrusion-pattern":{source:aw,composite:aw}}[e];return r&&r[i]||({color:{source:rK,composite:ar},number:{source:r9,composite:rK}})[t][i]}rt("ConstantBinder",aH),rt("CrossFadedConstantBinder",aK),rt("SourceExpressionBinder",aY),rt("CrossFadedCompositeBinder",aQ),rt("CompositeExpressionBinder",aJ),rt("ProgramConfiguration",a0,{omit:["_buffers"]}),rt("ProgramConfigurationSet",a1);let a5=-16383-1;function a3(e){let t=8192/e.extent,i=e.loadGeometry();for(let e=0;ei.x+1||si.y+1)&&j("Geometry exceeds allowed extent, reduce your vector tile buffer size")}}return i}function a4(e,t){return{type:e.type,id:e.id,properties:e.properties,geometry:t?a3(e):[]}}function a6(e,t,i,r,a){e.emplaceBack(2*t+(r+1)/2,2*i+(a+1)/2)}class a8{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.id),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new ag,this.indexArray=new aE,this.segments=new aP,this.programConfigurations=new a1(e.layers,e.zoom),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(e,t,i){let r=this.layers[0],a=[],s=null,n=!1;for(let{feature:t,id:o,index:l,sourceLayerIndex:h}of("circle"===r.type&&(n=!(s=r.layout.get("circle-sort-key")).isConstant()),e)){let e=this.layers[0]._featureFilter.needGeometry,r=a4(t,e);if(!this.layers[0]._featureFilter.filter(new rS(this.zoom),r,i))continue;let u=n?s.evaluate(r,{},i):void 0,c={id:o,properties:t.properties,type:t.type,sourceLayerIndex:h,index:l,geometry:e?r.geometry:a3(t),patterns:{},sortKey:u};a.push(c)}for(let r of(n&&a.sort((e,t)=>e.sortKey-t.sortKey),a)){let{geometry:a,index:s,sourceLayerIndex:n}=r,o=e[s].feature;this.addFeature(r,a,s,i),t.featureIndex.insert(o,a,s,n,this.index)}}update(e,t,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,i)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,aC),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}addFeature(e,t,i,r){for(let i of t)for(let t of i){let i=t.x,r=t.y;if(i<0||i>=8192||r<0||r>=8192)continue;let a=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray,e.sortKey),s=a.vertexLength;a6(this.layoutVertexArray,i,r,-1,-1),a6(this.layoutVertexArray,i,r,1,-1),a6(this.layoutVertexArray,i,r,1,1),a6(this.layoutVertexArray,i,r,-1,1),this.indexArray.emplaceBack(s,s+1,s+2),this.indexArray.emplaceBack(s,s+3,s+2),a.vertexLength+=4,a.primitiveLength+=2}this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,i,{},r)}}function a9(e,t){for(let i=0;i1?i:i.sub(t)._mult(a)._add(t))}function sr(e,t){let i,r,a,s=!1;for(let n=0;nt.y!=a.y>t.y&&t.x<(a.x-r.x)*(t.y-r.y)/(a.y-r.y)+r.x&&(s=!s)}return s}function sa(e,t){let i=!1;for(let r=0,a=e.length-1;rt.y!=n.y>t.y&&t.x<(n.x-s.x)*(t.y-s.y)/(n.y-s.y)+s.x&&(i=!i)}return i}function ss(e,t,i){let r=t.paint.get(e).value;return"constant"===r.kind?r.value:i.programConfigurations.get(t.id).getMaxValue(e)}function sn(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function so(e,t,i,r,a){if(!t[0]&&!t[1])return e;let s=E.convert(t)._mult(a);"viewport"===i&&s._rotate(-r);let n=[];for(let t=0;tsf(e,o)),p=c?u*n:u;for(let e of r)for(let t of e){let e=c?t:sf(t,o),i=p,r=sd([],[t.x,t.y,0,1],o);if("viewport"===this.paint.get("circle-pitch-scale")&&"map"===this.paint.get("circle-pitch-alignment")?i*=r[3]/s.cameraToCenterDistance:"map"===this.paint.get("circle-pitch-scale")&&"viewport"===this.paint.get("circle-pitch-alignment")&&(i*=s.cameraToCenterDistance/r[3]),l=i,sa(d,e)||st(e,d,l))return!0}return!1}}function sf(e,t){let i=sd([],[e.x,e.y,0,1],t);return new E(i[0]/i[3],i[1]/i[3])}class sm extends a8{}rt("HeatmapBucket",sm,{omit:["layers"]});var s_={get paint(){return h=h||new rF({"heatmap-radius":new rD(eu.paint_heatmap["heatmap-radius"]),"heatmap-weight":new rD(eu.paint_heatmap["heatmap-weight"]),"heatmap-intensity":new rz(eu.paint_heatmap["heatmap-intensity"]),"heatmap-color":new rB(eu.paint_heatmap["heatmap-color"]),"heatmap-opacity":new rz(eu.paint_heatmap["heatmap-opacity"])})}};function sg(e,{width:t,height:i},r,a){if(a){if(a instanceof Uint8ClampedArray)a=new Uint8Array(a.buffer);else if(a.length!==t*i*r)throw RangeError(`mismatched image size. expected: ${a.length} but got: ${t*i*r}`)}else a=new Uint8Array(t*i*r);return e.width=t,e.height=i,e.data=a,e}function sy(e,{width:t,height:i},r){if(t===e.width&&i===e.height)return;let a=sg({},{width:t,height:i},r);sx(e,a,{x:0,y:0},{x:0,y:0},{width:Math.min(e.width,t),height:Math.min(e.height,i)},r),e.width=t,e.height=i,e.data=a.data}function sx(e,t,i,r,a,s){if(0===a.width||0===a.height)return t;if(a.width>e.width||a.height>e.height||i.x>e.width-a.width||i.y>e.height-a.height)throw RangeError("out of range source coordinates for image copy");if(a.width>t.width||a.height>t.height||r.x>t.width-a.width||r.y>t.height-a.height)throw RangeError("out of range destination coordinates for image copy");let n=e.data,o=t.data;if(n===o)throw Error("srcData equals dstData, so image is already copied");for(let l=0;l{t[e.evaluationKey]=s;let n=e.expression.evaluate(t);a.data[i+r+0]=Math.floor(255*n.r/n.a),a.data[i+r+1]=Math.floor(255*n.g/n.a),a.data[i+r+2]=Math.floor(255*n.b/n.a),a.data[i+r+3]=Math.floor(255*n.a)};if(e.clips)for(let t=0,a=0;t=s.next.y&&s.next.y!==s.y){var h=s.x+(o-s.y)*(s.next.x-s.x)/(s.next.y-s.y);if(h<=n&&h>l&&(l=h,a=s.x=s.x&&s.x>=d&&n!==s.x&&sD(oa.x||s.x===a.x&&(i=a,r=s,0>sL(i.prev,i,r.prev)&&0>sL(r.next,i,i.next))))&&(a=s,f=u)),s=s.next}while(s!==c);return a}(e,t);if(!i)return t;var r=sN(i,e);return sC(r,r.next),sC(i,i.next)}(o[a],i);return i}(e,t,d,i)),e.length>80*i){r=s=e[0],a=n=e[1];for(var f=i;fs&&(s=o),l>n&&(n=l);h=0!==(h=Math.max(s-r,n-a))?32767/h:0}return function e(t,i,r,a,s,n,o){if(t){!o&&n&&function(e,t,i,r){var a=e;do 0===a.z&&(a.z=sz(a.x,a.y,t,i,r)),a.prevZ=a.prev,a.nextZ=a.next,a=a.next;while(a!==e);a.prevZ.nextZ=null,a.prevZ=null,function(e){var t,i,r,a,s,n,o,l,h=1;do{for(i=e,e=null,s=null,n=0;i;){for(n++,r=i,o=0,t=0;t0||l>0&&r;)0!==o&&(0===l||!r||i.z<=r.z)?(a=i,i=i.nextZ,o--):(a=r,r=r.nextZ,l--),s?s.nextZ=a:e=a,a.prevZ=s,s=a;i=r}s.nextZ=null,h*=2}while(n>1)}(a)}(t,a,s,n);for(var l,h,u=t;t.prev!==t.next;)if(l=t.prev,h=t.next,n?function(e,t,i,r){var a=e.prev,s=e.next;if(sL(a,e,s)>=0)return!1;for(var n=a.x,o=e.x,l=s.x,h=a.y,u=e.y,c=s.y,d=no?n>l?n:l:o>l?o:l,m=h>u?h>c?h:c:u>c?u:c,_=sz(d,p,t,i,r),g=sz(f,m,t,i,r),y=e.prevZ,x=e.nextZ;y&&y.z>=_&&x&&x.z<=g;){if(y.x>=d&&y.x<=f&&y.y>=p&&y.y<=m&&y!==a&&y!==s&&sD(n,h,o,u,l,c,y.x,y.y)&&sL(y.prev,y,y.next)>=0||(y=y.prevZ,x.x>=d&&x.x<=f&&x.y>=p&&x.y<=m&&x!==a&&x!==s&&sD(n,h,o,u,l,c,x.x,x.y)&&sL(x.prev,x,x.next)>=0))return!1;x=x.nextZ}for(;y&&y.z>=_;){if(y.x>=d&&y.x<=f&&y.y>=p&&y.y<=m&&y!==a&&y!==s&&sD(n,h,o,u,l,c,y.x,y.y)&&sL(y.prev,y,y.next)>=0)return!1;y=y.prevZ}for(;x&&x.z<=g;){if(x.x>=d&&x.x<=f&&x.y>=p&&x.y<=m&&x!==a&&x!==s&&sD(n,h,o,u,l,c,x.x,x.y)&&sL(x.prev,x,x.next)>=0)return!1;x=x.nextZ}return!0}(t,a,s,n):function(e){var t=e.prev,i=e.next;if(sL(t,e,i)>=0)return!1;for(var r=t.x,a=e.x,s=i.x,n=t.y,o=e.y,l=i.y,h=ra?r>s?r:s:a>s?a:s,d=n>o?n>l?n:l:o>l?o:l,p=i.next;p!==t;){if(p.x>=h&&p.x<=c&&p.y>=u&&p.y<=d&&sD(r,n,a,o,s,l,p.x,p.y)&&sL(p.prev,p,p.next)>=0)return!1;p=p.next}return!0}(t))i.push(l.i/r|0),i.push(t.i/r|0),i.push(h.i/r|0),s$(t),t=h.next,u=h.next;else if((t=h)===u){o?1===o?e(t=function(e,t,i){var r=e;do{var a=r.prev,s=r.next.next;!sR(a,s)&&sB(a,r,r.next,s)&&sV(a,s)&&sV(s,a)&&(t.push(a.i/i|0),t.push(r.i/i|0),t.push(s.i/i|0),s$(r),s$(r.next),r=e=s),r=r.next}while(r!==e);return sC(r)}(sC(t),i,r),i,r,a,s,n,2):2===o&&function(t,i,r,a,s,n){var o=t;do{for(var l,h,u=o.next.next;u!==o.prev;){if(o.i!==u.i&&(l=o,h=u,l.next.i!==h.i&&l.prev.i!==h.i&&!function(e,t){var i=e;do{if(i.i!==e.i&&i.next.i!==e.i&&i.i!==t.i&&i.next.i!==t.i&&sB(i,i.next,e,t))return!0;i=i.next}while(i!==e);return!1}(l,h)&&(sV(l,h)&&sV(h,l)&&function(e,t){var i=e,r=!1,a=(e.x+t.x)/2,s=(e.y+t.y)/2;do i.y>s!=i.next.y>s&&i.next.y!==i.y&&a<(i.next.x-i.x)*(s-i.y)/(i.next.y-i.y)+i.x&&(r=!r),i=i.next;while(i!==e);return r}(l,h)&&(sL(l.prev,l,h.prev)||sL(l,h.prev,h))||sR(l,h)&&sL(l.prev,l,l.next)>0&&sL(h.prev,h,h.next)>0))){var c=sN(o,u);return o=sC(o,o.next),c=sC(c,c.next),e(o,i,r,a,s,n,0),void e(c,i,r,a,s,n,0)}u=u.next}o=o.next}while(o!==t)}(t,i,r,a,s,n):e(sC(t),i,r,a,s,n,1);break}}}(d,p,i,r,a,h,0),p}function sk(e,t,i,r,a){var s,n;if(a===sq(e,t,i,r)>0)for(s=t;s=t;s-=r)n=sU(s,e[s],e[s+1],n);return n&&sR(n,n.next)&&(s$(n),n=n.next),n}function sC(e,t){if(!e)return e;t||(t=e);var i,r=e;do if(i=!1,r.steiner||!sR(r,r.next)&&0!==sL(r.prev,r,r.next))r=r.next;else{if(s$(r),(r=t=r.prev)===r.next)break;i=!0}while(i||r!==t);return t}function sP(e,t){return e.x-t.x}function sz(e,t,i,r,a){return(e=0x55555555&((e=0x33333333&((e=0xf0f0f0f&((e=0xff00ff&((e=(e-i)*a|0)|e<<8))|e<<4))|e<<2))|e<<1))|(t=0x55555555&((t=0x33333333&((t=0xf0f0f0f&((t=0xff00ff&((t=(t-r)*a|0)|t<<8))|t<<4))|t<<2))|t<<1))<<1}function sD(e,t,i,r,a,s,n,o){return(a-n)*(t-o)>=(e-n)*(s-o)&&(e-n)*(r-o)>=(i-n)*(t-o)&&(i-n)*(s-o)>=(a-n)*(r-o)}function sL(e,t,i){return(t.y-e.y)*(i.x-t.x)-(t.x-e.x)*(i.y-t.y)}function sR(e,t){return e.x===t.x&&e.y===t.y}function sB(e,t,i,r){var a=sO(sL(e,t,i)),s=sO(sL(e,t,r)),n=sO(sL(i,r,e)),o=sO(sL(i,r,t));return a!==s&&n!==o||!(0!==a||!sF(e,i,t))||!(0!==s||!sF(e,r,t))||!(0!==n||!sF(i,e,r))||!(0!==o||!sF(i,t,r))}function sF(e,t,i){return t.x<=Math.max(e.x,i.x)&&t.x>=Math.min(e.x,i.x)&&t.y<=Math.max(e.y,i.y)&&t.y>=Math.min(e.y,i.y)}function sO(e){return e>0?1:e<0?-1:0}function sV(e,t){return 0>sL(e.prev,e,e.next)?sL(e,t,e.next)>=0&&sL(e,e.prev,t)>=0:0>sL(e,t,e.prev)||0>sL(e,e.next,t)}function sN(e,t){var i=new sj(e.i,e.x,e.y),r=new sj(t.i,t.x,t.y),a=e.next,s=t.prev;return e.next=t,t.prev=e,i.next=a,a.prev=i,r.next=i,i.prev=r,s.next=r,r.prev=s,r}function sU(e,t,i,r){var a=new sj(e,t,i);return r?(a.next=r.next,a.prev=r,r.next.prev=a,r.next=a):(a.prev=a,a.next=a),a}function s$(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function sj(e,t,i){this.i=e,this.x=t,this.y=i,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}function sq(e,t,i,r){for(var a=0,s=t,n=i-r;s0&&i.holes.push(r+=e[a-1].length)}return i};var sZ=w(sM.exports);function sG(e,t,i){var r=e[t];e[t]=e[i],e[i]=r}function sX(e,t){return et)}function sW(e,t){let i,r,a=e.length;if(a<=1)return[e];let s=[];for(let t=0;t1)for(let e=0;er;){if(a-r>600){var n=a-r+1,o=i-r+1,l=Math.log(n),h=.5*Math.exp(2*l/3),u=.5*Math.sqrt(l*h*(n-h)/n)*(o-n/2<0?-1:1);e(t,i,Math.max(r,Math.floor(i-o*h/n+u)),Math.min(a,Math.floor(i+(n-o)*h/n+u)),s)}var c=t[i],d=r,p=a;for(sG(t,r,i),s(t[a],c)>0&&sG(t,r,a);ds(t[d],c);)d++;for(;s(t[p],c)>0;)p--}0===s(t[r],c)?sG(t,r,p):sG(t,++p,a),p<=i&&(r=p+1),i<=p&&(a=p-1)}}(n,t,1,o||n.length-1,sH||sX),s[e]=s[e].slice(0,t))}return s}function sH(e,t){return t.area-e.area}function sK(e,t,i){let r=i.patternDependencies,a=!1;for(let i of t){let t=i.paint.get(`${e}-pattern`);t.isConstant()||(a=!0);let s=t.constantOr(null);s&&(a=!0,r[s.to]=!0,r[s.from]=!0)}return a}function sY(e,t,i,r,a){let s=a.patternDependencies;for(let n of t){let t=n.paint.get(`${e}-pattern`).value;if("constant"!==t.kind){let e=t.evaluate({zoom:r-1},i,{},a.availableImages),o=t.evaluate({zoom:r},i,{},a.availableImages),l=t.evaluate({zoom:r+1},i,{},a.availableImages);e=e&&e.name?e.name:e,o=o&&o.name?o.name:o,l=l&&l.name?l.name:l,s[e]=!0,s[o]=!0,s[l]=!0,i.patterns[n.id]={min:e,mid:o,max:l}}}return i}class sJ{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.id),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.layoutVertexArray=new ay,this.indexArray=new aE,this.indexArray2=new ak,this.programConfigurations=new a1(e.layers,e.zoom),this.segments=new aP,this.segments2=new aP,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(e,t,i){this.hasPattern=sK("fill",this.layers,t);let r=this.layers[0].layout.get("fill-sort-key"),a=!r.isConstant(),s=[];for(let{feature:n,id:o,index:l,sourceLayerIndex:h}of e){let e=this.layers[0]._featureFilter.needGeometry,u=a4(n,e);if(!this.layers[0]._featureFilter.filter(new rS(this.zoom),u,i))continue;let c=a?r.evaluate(u,{},i,t.availableImages):void 0,d={id:o,properties:n.properties,type:n.type,sourceLayerIndex:h,index:l,geometry:e?u.geometry:a3(n),patterns:{},sortKey:c};s.push(d)}for(let r of(a&&s.sort((e,t)=>e.sortKey-t.sortKey),s)){let{geometry:a,index:s,sourceLayerIndex:n}=r;if(this.hasPattern){let e=sY("fill",this.layers,r,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(r,a,s,i,{});t.featureIndex.insert(e[s].feature,a,s,n,this.index)}}update(e,t,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,i)}addFeatures(e,t,i){for(let e of this.patternFeatures)this.addFeature(e,e.geometry,e.index,t,i)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,sA),this.indexBuffer=e.createIndexBuffer(this.indexArray),this.indexBuffer2=e.createIndexBuffer(this.indexArray2)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.indexBuffer2.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.segments2.destroy())}addFeature(e,t,i,r,a){for(let e of sW(t,500)){let t=0;for(let i of e)t+=i.length;let i=this.segments.prepareSegment(t,this.layoutVertexArray,this.indexArray),r=i.vertexLength,a=[],s=[];for(let t of e){if(0===t.length)continue;t!==e[0]&&s.push(a.length/2);let i=this.segments2.prepareSegment(t.length,this.layoutVertexArray,this.indexArray2),r=i.vertexLength;this.layoutVertexArray.emplaceBack(t[0].x,t[0].y),this.indexArray2.emplaceBack(r+t.length-1,r),a.push(t[0].x),a.push(t[0].y);for(let e=1;e>3;t=1===r?e.readString():2===r?e.readFloat():3===r?e.readDouble():4===r?e.readVarint64():5===r?e.readVarint():6===r?e.readSVarint():7===r?e.readBoolean():null}return t}(i))}function s7(e,t,i){if(3===e){var r=new s8(i,i.readVarint()+i.pos);r.length&&(t[r.name]=r)}}s4.types=["Unknown","Point","LineString","Polygon"],s4.prototype.loadGeometry=function(){var e=this._pbf;e.pos=this._geometry;for(var t,i=e.readVarint()+e.pos,r=1,a=0,s=0,n=0,o=[];e.pos>3}if(a--,1===r||2===r)s+=e.readSVarint(),n+=e.readSVarint(),1===r&&(t&&o.push(t),t=[]),t.push(new S(s,n));else{if(7!==r)throw Error("unknown command "+r);t&&t.push(t[0].clone())}}return t&&o.push(t),o},s4.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,i=1,r=0,a=0,s=0,n=1/0,o=-1/0,l=1/0,h=-1/0;e.pos>3}if(r--,1===i||2===i)(a+=e.readSVarint())o&&(o=a),(s+=e.readSVarint())h&&(h=s);else if(7!==i)throw Error("unknown command "+i)}return[n,l,o,h]},s4.prototype.toGeoJSON=function(e,t,i){var r,a,s=this.extent*Math.pow(2,i),n=this.extent*e,o=this.extent*t,l=this.loadGeometry(),h=s4.types[this.type];function u(e){for(var t=0;t=this._features.length)throw Error("feature index out of bounds");this._pbf.pos=this._features[e];var t=this._pbf.readVarint()+this._pbf.pos;return new s4(this._pbf,t,this.extent,this._keys,this._values)},s3.VectorTile=function(e,t){this.layers=e.readFields(s7,{},t)},s3.VectorTileFeature=s4,s3.VectorTileLayer=s8;let ne=s3.VectorTileFeature.types;function nt(e,t,i,r,a,s,n,o){e.emplaceBack(t,i,2*Math.floor(8192*r)+n,8192*a*2,8192*s*2,Math.round(o))}class ni{constructor(e){this.zoom=e.zoom,this.overscaling=e.overscaling,this.layers=e.layers,this.layerIds=this.layers.map(e=>e.id),this.index=e.index,this.hasPattern=!1,this.layoutVertexArray=new ax,this.centroidVertexArray=new a_,this.indexArray=new aE,this.programConfigurations=new a1(e.layers,e.zoom),this.segments=new aP,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(e,t,i){for(let{feature:r,id:a,index:s,sourceLayerIndex:n}of(this.features=[],this.hasPattern=sK("fill-extrusion",this.layers,t),e)){let e=this.layers[0]._featureFilter.needGeometry,o=a4(r,e);if(!this.layers[0]._featureFilter.filter(new rS(this.zoom),o,i))continue;let l={id:a,sourceLayerIndex:n,index:s,geometry:e?o.geometry:a3(r),properties:r.properties,type:r.type,patterns:{}};this.hasPattern?this.features.push(sY("fill-extrusion",this.layers,l,this.zoom,t)):this.addFeature(l,l.geometry,s,i,{}),t.featureIndex.insert(r,l.geometry,s,n,this.index,!0)}}addFeatures(e,t,i){for(let e of this.features){let{geometry:r}=e;this.addFeature(e,r,e.index,t,i)}}update(e,t,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,i)}isEmpty(){return 0===this.layoutVertexArray.length&&0===this.centroidVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,s5),this.centroidVertexBuffer=e.createVertexBuffer(this.centroidVertexArray,s2.members,!0),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy(),this.centroidVertexBuffer.destroy())}addFeature(e,t,i,r,a){let s={x:0,y:0,vertexCount:0};for(let i of sW(t,500)){let t=0;for(let e of i)t+=e.length;let r=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray);for(let e of i){var n,o,l;if(0===e.length||(n=e).every(e=>e.x<0)||n.every(e=>e.x>8192)||n.every(e=>e.y<0)||n.every(e=>e.y>8192))continue;let t=0;for(let i=0;i=1){let n=e[i-1];if(o=a,l=n,(o.x!==l.x||!(o.x<0)&&!(o.x>8192))&&(o.y!==l.y||!(o.y<0)&&!(o.y>8192))){r.vertexLength+4>aP.MAX_VERTEX_ARRAY_LENGTH&&(r=this.segments.prepareSegment(4,this.layoutVertexArray,this.indexArray));let e=a.sub(n)._perp()._unit(),i=n.dist(a);t+i>32768&&(t=0),nt(this.layoutVertexArray,a.x,a.y,e.x,e.y,0,0,t),nt(this.layoutVertexArray,a.x,a.y,e.x,e.y,0,1,t),s.x+=2*a.x,s.y+=2*a.y,s.vertexCount+=2,t+=i,nt(this.layoutVertexArray,n.x,n.y,e.x,e.y,0,0,t),nt(this.layoutVertexArray,n.x,n.y,e.x,e.y,0,1,t),s.x+=2*n.x,s.y+=2*n.y,s.vertexCount+=2;let o=r.vertexLength;this.indexArray.emplaceBack(o,o+2,o+1),this.indexArray.emplaceBack(o+1,o+2,o+3),r.vertexLength+=4,r.primitiveLength+=2}}}}if(r.vertexLength+t>aP.MAX_VERTEX_ARRAY_LENGTH&&(r=this.segments.prepareSegment(t,this.layoutVertexArray,this.indexArray)),"Polygon"!==ne[e.type])continue;let a=[],h=[],u=r.vertexLength;for(let e of i)if(0!==e.length){e!==i[0]&&h.push(a.length/2);for(let t=0;te.id),this.index=e.index,this.hasPattern=!1,this.patternFeatures=[],this.lineClipsArray=[],this.gradients={},this.layers.forEach(e=>{this.gradients[e.id]={}}),this.layoutVertexArray=new av,this.layoutVertexArray2=new ab,this.indexArray=new aE,this.programConfigurations=new a1(e.layers,e.zoom),this.segments=new aP,this.maxLineLength=0,this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id)}populate(e,t,i){this.hasPattern=sK("line",this.layers,t);let r=this.layers[0].layout.get("line-sort-key"),a=!r.isConstant(),s=[];for(let{feature:t,id:n,index:o,sourceLayerIndex:l}of e){let e=this.layers[0]._featureFilter.needGeometry,h=a4(t,e);if(!this.layers[0]._featureFilter.filter(new rS(this.zoom),h,i))continue;let u=a?r.evaluate(h,{},i):void 0,c={id:n,properties:t.properties,type:t.type,sourceLayerIndex:l,index:o,geometry:e?h.geometry:a3(t),patterns:{},sortKey:u};s.push(c)}for(let r of(a&&s.sort((e,t)=>e.sortKey-t.sortKey),s)){let{geometry:a,index:s,sourceLayerIndex:n}=r;if(this.hasPattern){let e=sY("line",this.layers,r,this.zoom,t);this.patternFeatures.push(e)}else this.addFeature(r,a,s,i,{});t.featureIndex.insert(e[s].feature,a,s,n,this.index)}}update(e,t,i){this.stateDependentLayers.length&&this.programConfigurations.updatePaintArrays(e,t,this.stateDependentLayers,i)}addFeatures(e,t,i){for(let e of this.patternFeatures)this.addFeature(e,e.geometry,e.index,t,i)}isEmpty(){return 0===this.layoutVertexArray.length}uploadPending(){return!this.uploaded||this.programConfigurations.needsUpload}upload(e){this.uploaded||(0!==this.layoutVertexArray2.length&&(this.layoutVertexBuffer2=e.createVertexBuffer(this.layoutVertexArray2,nl)),this.layoutVertexBuffer=e.createVertexBuffer(this.layoutVertexArray,no),this.indexBuffer=e.createIndexBuffer(this.indexArray)),this.programConfigurations.upload(e),this.uploaded=!0}destroy(){this.layoutVertexBuffer&&(this.layoutVertexBuffer.destroy(),this.indexBuffer.destroy(),this.programConfigurations.destroy(),this.segments.destroy())}lineFeatureClips(e){if(e.properties&&Object.prototype.hasOwnProperty.call(e.properties,"mapbox_clip_start")&&Object.prototype.hasOwnProperty.call(e.properties,"mapbox_clip_end"))return{start:+e.properties.mapbox_clip_start,end:+e.properties.mapbox_clip_end}}addFeature(e,t,i,r,a){let s=this.layers[0].layout,n=s.get("line-join").evaluate(e,{}),o=s.get("line-cap"),l=s.get("line-miter-limit"),h=s.get("line-round-limit");for(let i of(this.lineClips=this.lineFeatureClips(e),t))this.addLine(i,e,n,o,l,h);this.programConfigurations.populatePaintArrays(this.layoutVertexArray.length,e,i,a,r)}addLine(e,t,i,r,a,s){let n,o,l,h,u;if(this.distance=0,this.scaledDistance=0,this.totalDistance=0,this.lineClips){this.lineClipsArray.push(this.lineClips);for(let t=0;t=2&&e[d-1].equals(e[d-2]);)d--;let p=0;for(;p0;if(b&&t>p){let e=n.dist(o);if(e>2*f){let t=n.sub(n.sub(o)._mult(f/e)._round());this.updateDistance(o,t),this.addCurrentVertex(t,h,0,0,m),o=t}}let S=o&&l,T=S?i:c?"butt":r;if(S&&"round"===T&&(xa&&(T="bevel"),"bevel"===T&&(x>2&&(T="flipbevel"),x100)_=u.mult(-1);else{let e=x*h.add(u).mag()/h.sub(u).mag();_._perp()._mult(e*(w?-1:1))}this.addCurrentVertex(n,_,0,0,m),this.addCurrentVertex(n,_.mult(-1),0,0,m)}else if("bevel"===T||"fakeround"===T){let e=-Math.sqrt(x*x-1),t=w?e:0,i=w?0:e;if(o&&this.addCurrentVertex(n,h,t,i,m),"fakeround"===T){let e=Math.round(180*v/Math.PI/20);for(let t=1;t2*f){let t=n.add(l.sub(n)._mult(f/e)._round());this.updateDistance(n,t),this.addCurrentVertex(t,u,0,0,m),n=t}}}}addCurrentVertex(e,t,i,r,a,s=!1){let n=t.y*r-t.x,o=-t.y-t.x*r;this.addHalfVertex(e,t.x+t.y*i,t.y-t.x*i,s,!1,i,a),this.addHalfVertex(e,n,o,s,!0,-r,a),this.distance>16384&&0===this.totalDistance&&(this.distance=0,this.updateScaledDistance(),this.addCurrentVertex(e,t,i,r,a,s))}addHalfVertex({x:e,y:t},i,r,a,s,n,o){let l=.5*(this.lineClips?32767*this.scaledDistance:this.scaledDistance);this.layoutVertexArray.emplaceBack((e<<1)+ +!!a,(t<<1)+ +!!s,Math.round(63*i)+128,Math.round(63*r)+128,1+(0===n?0:n<0?-1:1)|(63&l)<<2,l>>6),this.lineClips&&this.layoutVertexArray2.emplaceBack((this.scaledDistance-this.lineClips.start)/(this.lineClips.end-this.lineClips.start),this.lineClipsArray.length);let h=o.vertexLength++;this.e1>=0&&this.e2>=0&&(this.indexArray.emplaceBack(this.e1,this.e2,h),o.primitiveLength++),s?this.e2=h:this.e1=h}updateScaledDistance(){this.scaledDistance=this.lineClips?this.lineClips.start+(this.lineClips.end-this.lineClips.start)*this.distance/this.totalDistance:this.distance}updateDistance(e,t){this.distance+=e.dist(t),this.updateScaledDistance()}}rt("LineBucket",nc,{omit:["layers","patternFeatures"]});var nd={get paint(){return m=m||new rF({"line-opacity":new rD(eu.paint_line["line-opacity"]),"line-color":new rD(eu.paint_line["line-color"]),"line-translate":new rz(eu.paint_line["line-translate"]),"line-translate-anchor":new rz(eu.paint_line["line-translate-anchor"]),"line-width":new rD(eu.paint_line["line-width"]),"line-gap-width":new rD(eu.paint_line["line-gap-width"]),"line-offset":new rD(eu.paint_line["line-offset"]),"line-blur":new rD(eu.paint_line["line-blur"]),"line-dasharray":new rR(eu.paint_line["line-dasharray"]),"line-pattern":new rL(eu.paint_line["line-pattern"]),"line-gradient":new rB(eu.paint_line["line-gradient"])})},get layout(){return f=f||new rF({"line-cap":new rz(eu.layout_line["line-cap"]),"line-join":new rD(eu.layout_line["line-join"]),"line-miter-limit":new rz(eu.layout_line["line-miter-limit"]),"line-round-limit":new rz(eu.layout_line["line-round-limit"]),"line-sort-key":new rD(eu.layout_line["line-sort-key"])})}};class np extends rD{possiblyEvaluate(e,t){return t=new rS(Math.floor(t.zoom),{now:t.now,fadeDuration:t.fadeDuration,zoomHistory:t.zoomHistory,transition:t.transition}),super.possiblyEvaluate(e,t)}evaluate(e,t,i,r){return t=F({},t,{zoom:Math.floor(t.zoom)}),super.evaluate(e,t,i,r)}}class nf extends rV{constructor(e){super(e,nd),this.gradientVersion=0,_||((_=new np(nd.paint.properties["line-width"].specification)).useIntegerZoom=!0)}_handleSpecialPaintPropertyUpdate(e){if("line-gradient"===e){let e=this.gradientExpression();this.stepInterpolant=void 0!==e._styleExpression&&e._styleExpression.expression instanceof tB,this.gradientVersion=(this.gradientVersion+1)%Number.MAX_SAFE_INTEGER}}gradientExpression(){return this._transitionablePaint._values["line-gradient"].value.expression}recalculate(e,t){super.recalculate(e,t),this.paint._values["line-floorwidth"]=_.possiblyEvaluate(this._transitioningPaint._values["line-width"].value,e)}createBucket(e){return new nc(e)}queryRadius(e){var t,i;return t=ss("line-width",this,e),((i=ss("line-gap-width",this,e))>0?i+2*t:t)/2+Math.abs(ss("line-offset",this,e))+sn(this.paint.get("line-translate"))}queryIntersectsFeature(e,t,i,r,a,s,n){var o,l;let h=so(e,this.paint.get("line-translate"),this.paint.get("line-translate-anchor"),s.angle,n),u=n/2*(o=this.paint.get("line-width").evaluate(t,i),(l=this.paint.get("line-gap-width").evaluate(t,i))>0?l+2*o:o),c=this.paint.get("line-offset").evaluate(t,i);return c&&(r=function(e,t){let i=[];for(let r=0;r=3){for(let t=0;t1){if(se(e,t))return!0;for(let r=0;r":"﹀","?":"︖","@":"@","[":"﹇","\\":"\","]":"﹈","^":"^",_:"︳","`":"`","{":"︷","|":"―","}":"︸","~":"~","\xa2":"¢","\xa3":"£","\xa5":"¥","\xa6":"¦","\xac":"¬","\xaf":" ̄","–":"︲","—":"︱","‘":"﹃","’":"﹄","“":"﹁","”":"﹂","…":"︙","‧":"・","₩":"₩","、":"︑","。":"︒","〈":"︿","〉":"﹀","《":"︽","》":"︾","「":"﹁","」":"﹂","『":"﹃","』":"﹄","【":"︻","】":"︼","〔":"︹","〕":"︺","〖":"︗","〗":"︘","!":"︕","(":"︵",")":"︶",",":"︐","-":"︲",".":"・",":":"︓",";":"︔","<":"︿",">":"﹀","?":"︖","[":"﹇","]":"﹈","_":"︳","{":"︷","|":"―","}":"︸","⦅":"︵","⦆":"︶","。":"︒","「":"﹁","」":"﹂"};var nb=function(e,t,i,r,a){var s,n,o=8*a-r-1,l=(1<>1,u=-7,c=i?a-1:0,d=i?-1:1,p=e[t+c];for(c+=d,s=p&(1<<-u)-1,p>>=-u,u+=o;u>0;s=256*s+e[t+c],c+=d,u-=8);for(n=s&(1<<-u)-1,s>>=-u,u+=r;u>0;n=256*n+e[t+c],c+=d,u-=8);if(0===s)s=1-h;else{if(s===l)return n?NaN:1/0*(p?-1:1);n+=Math.pow(2,r),s-=h}return(p?-1:1)*n*Math.pow(2,s-r)},nw=function(e,t,i,r,a,s){var n,o,l,h=8*s-a-1,u=(1<>1,d=5960464477539062e-23*(23===a),p=r?0:s-1,f=r?1:-1,m=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(o=+!!isNaN(t),n=u):(n=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-n))<1&&(n--,l*=2),(t+=n+c>=1?d/l:d*Math.pow(2,1-c))*l>=2&&(n++,l/=2),n+c>=u?(o=0,n=u):n+c>=1?(o=(t*l-1)*Math.pow(2,a),n+=c):(o=t*Math.pow(2,c-1)*Math.pow(2,a),n=0));a>=8;e[i+p]=255&o,p+=f,o/=256,a-=8);for(n=n<0;e[i+p]=255&n,p+=f,n/=256,h-=8);e[i+p-f]|=128*m};function nS(e){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}nS.Varint=0,nS.Fixed64=1,nS.Bytes=2,nS.Fixed32=5;var nT="undefined"==typeof TextDecoder?null:new TextDecoder("utf8");function nI(e){return e.type===nS.Bytes?e.readVarint()+e.pos:e.pos+1}function nA(e,t,i){var r=t<=16383?1:t<=2097151?2:t<=0xfffffff?3:Math.floor(Math.log(t)/(7*Math.LN2));i.realloc(r);for(var a=i.pos-1;a>=e;a--)i.buf[a+r]=i.buf[a]}function nM(e,t){for(var i=0;i>>8,e[i+2]=t>>>16,e[i+3]=t>>>24}function nO(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}nS.prototype={destroy:function(){this.buf=null},readFields:function(e,t,i){for(i=i||this.length;this.pos>3,s=this.pos;this.type=7&r,e(a,t,this),this.pos===s&&this.skip(r)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=nB(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=nO(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=nB(this.buf,this.pos)+0x100000000*nB(this.buf,this.pos+4);return this.pos+=8,e},readSFixed64:function(){var e=nB(this.buf,this.pos)+0x100000000*nO(this.buf,this.pos+4);return this.pos+=8,e},readFloat:function(){var e=nb(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=nb(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,i,r=this.buf;return t=127&(i=r[this.pos++]),i<128?t:(t|=(127&(i=r[this.pos++]))<<7,i<128?t:(t|=(127&(i=r[this.pos++]))<<14,i<128?t:(t|=(127&(i=r[this.pos++]))<<21,i<128?t:function(e,t,i){var r,a,s,n,o=i.buf;if(s=(112&(n=o[i.pos++]))>>4,n<128||(s|=(127&(n=o[i.pos++]))<<3,n<128)||(s|=(127&(n=o[i.pos++]))<<10,n<128)||(s|=(127&(n=o[i.pos++]))<<17,n<128)||(s|=(127&(n=o[i.pos++]))<<24,n<128)||(s|=(1&(n=o[i.pos++]))<<31,n<128)){return r=e,a=s,t?0x100000000*a+(r>>>0):0x100000000*(a>>>0)+(r>>>0)}throw Error("Expected varint not more than 10 bytes")}(t|=(15&(i=r[this.pos]))<<28,e,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2==1?-((e+1)/2):e/2},readBoolean:function(){return!!this.readVarint()},readString:function(){var e,t=this.readVarint()+this.pos,i=this.pos;return this.pos=t,t-i>=12&&nT?(e=this.buf,nT.decode(e.subarray(i,t))):function(e,t,i){for(var r="",a=t;a239?4:l>223?3:l>191?2:1;if(a+u>i)break;1===u?l<128&&(h=l):2===u?128==(192&(s=e[a+1]))&&(h=(31&l)<<6|63&s)<=127&&(h=null):3===u?(n=e[a+2],128==(192&(s=e[a+1]))&&128==(192&n)&&((h=(15&l)<<12|(63&s)<<6|63&n)<=2047||h>=55296&&h<=57343)&&(h=null)):4===u&&(n=e[a+2],o=e[a+3],128==(192&(s=e[a+1]))&&128==(192&n)&&128==(192&o)&&((h=(15&l)<<18|(63&s)<<12|(63&n)<<6|63&o)<=65535||h>=1114112)&&(h=null)),null===h?(h=65533,u=1):h>65535&&(h-=65536,r+=String.fromCharCode(h>>>10&1023|55296),h=56320|1023&h),r+=String.fromCharCode(h),a+=u}return r}(this.buf,i,t)},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){if(this.type!==nS.Bytes)return e.push(this.readVarint(t));var i=nI(this);for(e=e||[];this.pos127;);else if(t===nS.Bytes)this.pos=this.readVarint()+this.pos;else if(t===nS.Fixed32)this.pos+=4;else{if(t!==nS.Fixed64)throw Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t0xfffffff||e<0?function(e,t){var i,r,a,s,n;if(e>=0?(i=e%0x100000000|0,r=e/0x100000000|0):(r=~(-e/0x100000000),0xffffffff^(i=~(-e%0x100000000))?i=i+1|0:(i=0,r=r+1|0)),e>=0xffffffffffffffff||e<-0xffffffffffffffff)throw Error("Given varint doesn't fit into 10 bytes");t.realloc(10),a=i,t.buf[t.pos++]=127&a|128,a>>>=7,t.buf[t.pos++]=127&a|128,a>>>=7,t.buf[t.pos++]=127&a|128,a>>>=7,t.buf[t.pos++]=127&a|128,t.buf[t.pos]=127&(a>>>=7),n=(7&(s=r))<<4,t.buf[t.pos++]|=n|128*!!(s>>>=3),s&&(t.buf[t.pos++]=127&s|128*!!(s>>>=7),s&&(t.buf[t.pos++]=127&s|128*!!(s>>>=7),s&&(t.buf[t.pos++]=127&s|128*!!(s>>>=7),s&&(t.buf[t.pos++]=127&s|128*!!(s>>>=7),s&&(t.buf[t.pos++]=127&s)))))}(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|128*(e>127),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|128*(e>127),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|128*(e>127),e<=127||(this.buf[this.pos++]=e>>>7&127))))},writeSVarint:function(e){this.writeVarint(e<0?-(2*e)-1:2*e)},writeBoolean:function(e){this.writeVarint(!!e)},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=function(e,t,i){for(var r,a,s=0;s55295&&r<57344){if(!a){r>56319||s+1===t.length?(e[i++]=239,e[i++]=191,e[i++]=189):a=r;continue}if(r<56320){e[i++]=239,e[i++]=191,e[i++]=189,a=r;continue}r=a-55296<<10|r-56320|65536,a=null}else a&&(e[i++]=239,e[i++]=191,e[i++]=189,a=null);r<128?e[i++]=r:(r<2048?e[i++]=r>>6|192:(r<65536?e[i++]=r>>12|224:(e[i++]=r>>18|240,e[i++]=r>>12&63|128),e[i++]=r>>6&63|128),e[i++]=63&r|128)}return i}(this.buf,e,this.pos);var i=this.pos-t;i>=128&&nA(t,i,this),this.pos=t-1,this.writeVarint(i),this.pos+=i},writeFloat:function(e){this.realloc(4),nw(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),nw(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var i=0;i=128&&nA(i,r,this),this.pos=i-1,this.writeVarint(r),this.pos+=r},writeMessage:function(e,t,i){this.writeTag(e,nS.Bytes),this.writeRawMessage(t,i)},writePackedVarint:function(e,t){t.length&&this.writeMessage(e,nM,t)},writePackedSVarint:function(e,t){t.length&&this.writeMessage(e,nE,t)},writePackedBoolean:function(e,t){t.length&&this.writeMessage(e,nP,t)},writePackedFloat:function(e,t){t.length&&this.writeMessage(e,nk,t)},writePackedDouble:function(e,t){t.length&&this.writeMessage(e,nC,t)},writePackedFixed32:function(e,t){t.length&&this.writeMessage(e,nz,t)},writePackedSFixed32:function(e,t){t.length&&this.writeMessage(e,nD,t)},writePackedFixed64:function(e,t){t.length&&this.writeMessage(e,nL,t)},writePackedSFixed64:function(e,t){t.length&&this.writeMessage(e,nR,t)},writeBytesField:function(e,t){this.writeTag(e,nS.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,nS.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,nS.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,nS.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,nS.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,nS.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,nS.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,nS.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,nS.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,nS.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,!!t)}};var nV=w(nS);function nN(e,t,i){1===e&&i.readMessage(nU,t)}function nU(e,t,i){if(3===e){let{id:e,bitmap:r,width:a,height:s,left:n,top:o,advance:l}=i.readMessage(n$,{});t.push({id:e,bitmap:new sv({width:a+6,height:s+6},r),metrics:{width:a,height:s,left:n,top:o,advance:l}})}}function n$(e,t,i){1===e?t.id=i.readVarint():2===e?t.bitmap=i.readBytes():3===e?t.width=i.readVarint():4===e?t.height=i.readVarint():5===e?t.left=i.readSVarint():6===e?t.top=i.readSVarint():7===e&&(t.advance=i.readVarint())}function nj(e){let t=0,i=0;for(let r of e)t+=r.w*r.h,i=Math.max(i,r.w);e.sort((e,t)=>t.h-e.h);let r=[{x:0,y:0,w:Math.max(Math.ceil(Math.sqrt(t/.95)),i),h:1/0}],a=0,s=0;for(let t of e)for(let e=r.length-1;e>=0;e--){let i=r[e];if(!(t.w>i.w||t.h>i.h)){if(t.x=i.x,t.y=i.y,s=Math.max(s,t.y+t.h),a=Math.max(a,t.x+t.w),t.w===i.w&&t.h===i.h){let t=r.pop();e=0&&i>=e&&nH[this.text.charCodeAt(i)];i--)t--;this.text=this.text.substring(e,t),this.sectionIndex=this.sectionIndex.slice(e,t)}substring(e,t){let i=new nX;return i.text=this.text.substring(e,t),i.sectionIndex=this.sectionIndex.slice(e,t),i.sections=this.sections,i}toString(){return this.text}getMaxScale(){return this.sectionIndex.reduce((e,t)=>Math.max(e,this.sections[t].scale),0)}addTextSection(e,t){this.text+=e.text,this.sections.push(nG.forText(e.scale,e.fontStack||t));let i=this.sections.length-1;for(let t=0;t=63743?null:++this.imageSectionID:(this.imageSectionID=57344,this.imageSectionID)}}function nW(t,i,r,a,s,n,o,l,h,u,c,d,p,f,m,_){let g,y=nX.fromFeature(t,s);d===e.ai.vertical&&y.verticalizePunctuation();let{processBidirectionalText:x,processStyledBidirectionalText:v}=rw;if(x&&1===y.sections.length)for(let e of(g=[],x(y.toString(),n0(y,u,n,i,a,f,m)))){let t=new nX;t.text=e,t.sections=y.sections;for(let i=0;i0&&r>b&&(b=r)}else{let e=r[m.fontStack],t=e&&e[g];if(t&&t.rect)w=t.rect,x=t.metrics;else{let e=i[m.fontStack],t=e&&e[g];if(!t)continue;x=t.metrics}y=(s-m.scale)*24}I?(t.verticalizable=!0,v.push({glyph:g,imageName:S,x:p,y:f+y,vertical:I,scale:m.scale,fontStack:m.fontStack,sectionIndex:_,metrics:x,rect:w}),p+=T*m.scale+u):(v.push({glyph:g,imageName:S,x:p,y:f+y,vertical:I,scale:m.scale,fontStack:m.fontStack,sectionIndex:_,metrics:x,rect:w}),p+=x.advance*m.scale+u)}0!==v.length&&(m=Math.max(p-u,m),function(e,t,i,r,a){if(!r&&!a)return;let s=e[i],n=(e[i].x+s.metrics.advance*s.scale)*r;for(let t=0;t<=i;t++)e[t].x-=n,e[t].y+=a}(v,0,v.length-1,g,b)),p=0;let w=n*s+b;x.lineOffset=Math.max(b,l),f+=w,_=Math.max(w,_),++y}let x=f- -17,{horizontalAlign:v,verticalAlign:b}=n1(o);(function(e,t,i,r,a,s,n,o,l){let h=(t-i)*a,u=0;for(let t of(u=s!==n?-o*r- -17:(-r*l+.5)*n,e))for(let e of t.positionedGlyphs)e.x+=h,e.y+=u})(t.positionedLines,g,v,b,m,_,n,x,s.length),t.top+=-b*x,t.bottom=t.top+x,t.left+=-v*m,t.right=t.left+m}(w,i,r,a,g,o,l,h,d,u,p,_),!function(e){for(let t of e)if(0!==t.positionedGlyphs.length)return!1;return!0}(b)&&w}let nH={9:!0,10:!0,11:!0,12:!0,13:!0,32:!0},nK={10:!0,32:!0,38:!0,40:!0,41:!0,43:!0,45:!0,47:!0,173:!0,183:!0,8203:!0,8208:!0,8211:!0,8231:!0};function nY(e,t,i,r,a,s){if(t.imageName){let e=r[t.imageName];return e?e.displaySize[0]*t.scale*24/s+a:0}{let r=i[t.fontStack],s=r&&r[e];return s?s.metrics.advance*t.scale+a:0}}function nJ(e,t,i,r){let a=Math.pow(e-t,2);return r?e=0,u=0;for(let i=0;ie.id),this.index=t.index,this.pixelRatio=t.pixelRatio,this.sourceLayerIndex=t.sourceLayerIndex,this.hasPattern=!1,this.hasRTLText=!1,this.sortKeyRanges=[],this.collisionCircleArray=[],this.placementInvProjMatrix=su([]),this.placementViewportMatrix=su([]);let i=this.layers[0]._unevaluatedLayout._values;this.textSizeData=n5(this.zoom,i["text-size"]),this.iconSizeData=n5(this.zoom,i["icon-size"]);let r=this.layers[0].layout,a=r.get("symbol-sort-key"),s=r.get("symbol-z-order");this.canOverlap="never"!==n3(r,"text-overlap","text-allow-overlap")||"never"!==n3(r,"icon-overlap","icon-allow-overlap")||r.get("text-ignore-placement")||r.get("icon-ignore-placement"),this.sortFeaturesByKey="viewport-y"!==s&&!a.isConstant(),this.sortFeaturesByY=("viewport-y"===s||"auto"===s&&!this.sortFeaturesByKey)&&this.canOverlap,"point"===r.get("symbol-placement")&&(this.writingModes=r.get("text-writing-mode").map(t=>e.ai[t])),this.stateDependentLayerIds=this.layers.filter(e=>e.isStateDependent()).map(e=>e.id),this.sourceID=t.sourceID}createArrays(){this.text=new n7(new a1(this.layers,this.zoom,e=>/^text/.test(e))),this.icon=new n7(new a1(this.layers,this.zoom,e=>/^icon/.test(e))),this.glyphOffsetArray=new au,this.lineVertexArray=new ac,this.symbolInstances=new ah,this.textAnchorOffsets=new ap}calculateGlyphDependencies(e,t,i,r,a){for(let s=0;s0)&&("constant"!==n.value.kind||n.value.value.length>0),u="constant"!==l.value.kind||!!l.value.value||Object.keys(l.parameters).length>0,c=s.get("symbol-sort-key");if(this.features=[],!h&&!u)return;let d=i.iconDependencies,p=i.glyphDependencies,f=i.availableImages,m=new rS(this.zoom);for(let{feature:i,id:o,index:l,sourceLayerIndex:_}of t){let t,g,y=a._featureFilter.needGeometry,x=a4(i,y);if(!a._featureFilter.filter(m,x,r))continue;if(y||(x.geometry=a3(i)),h){let e=a.getValueAndResolveTokens("text-field",x,r,f),i=e7.factory(e);(function(e){for(let t of e.sections)if(function(e){for(let t of e)if(ru(t.charCodeAt(0)))return!0;return!1}(t.text))return!0;return!1})(i)&&(this.hasRTLText=!0),(!this.hasRTLText||"unavailable"===rv()||this.hasRTLText&&rw.isParsed())&&(t=function(e,t,i){return e.sections.forEach(e=>{e.text=function(e,t,i){let r=t.layout.get("text-transform").evaluate(i,{});return"uppercase"===r?e=e.toLocaleUpperCase():"lowercase"===r&&(e=e.toLocaleLowerCase()),rw.applyArabicShaping&&(e=rw.applyArabicShaping(e)),e}(e.text,t,i)}),e}(i,a,x))}if(u){let e=a.getValueAndResolveTokens("icon-image",x,r,f);g=e instanceof tr?e:tr.fromString(e)}if(!t&&!g)continue;let v=this.sortFeaturesByKey?c.evaluate(x,{},r):void 0;if(this.features.push({id:o,text:t,icon:g,index:l,sourceLayerIndex:_,geometry:x.geometry,properties:i.properties,type:n4[i.type],sortKey:v}),g&&(d[g.name]=!0),t){let i=n.evaluate(x,{},r).join(","),a="viewport"!==s.get("text-rotation-alignment")&&"point"!==s.get("symbol-placement");for(let r of(this.allowVerticalPlacement=this.writingModes&&this.writingModes.indexOf(e.ai.vertical)>=0,t.sections))if(r.image)d[r.image.name]=!0;else{let e=ro(t.toString()),s=r.fontStack||i,n=p[s]=p[s]||{};this.calculateGlyphDependencies(r.text,n,a,this.allowVerticalPlacement,e)}}}"line"===s.get("symbol-placement")&&(this.features=function(e){let t={},i={},r=[],a=0;function s(t){r.push(e[t]),a++}function n(e,t,a){let s=i[e];return delete i[e],i[t]=s,r[s].geometry[0].pop(),r[s].geometry[0]=r[s].geometry[0].concat(a[0]),s}function o(e,i,a){let s=t[i];return delete t[i],t[e]=s,r[s].geometry[0].shift(),r[s].geometry[0]=a[0].concat(r[s].geometry[0]),s}function l(e,t,i){let r=i?t[0][t[0].length-1]:t[0][0];return`${e}:${r.x}:${r.y}`}for(let h=0;he.geometry)}(this.features)),this.sortFeaturesByKey&&this.features.sort((e,t)=>e.sortKey-t.sortKey)}update(e,t,i){this.stateDependentLayers.length&&(this.text.programConfigurations.updatePaintArrays(e,t,this.layers,i),this.icon.programConfigurations.updatePaintArrays(e,t,this.layers,i))}isEmpty(){return 0===this.symbolInstances.length&&!this.hasRTLText}uploadPending(){return!this.uploaded||this.text.programConfigurations.needsUpload||this.icon.programConfigurations.needsUpload}upload(e){!this.uploaded&&this.hasDebugData()&&(this.textCollisionBox.upload(e),this.iconCollisionBox.upload(e)),this.text.upload(e,this.sortFeaturesByY,!this.uploaded,this.text.programConfigurations.needsUpload),this.icon.upload(e,this.sortFeaturesByY,!this.uploaded,this.icon.programConfigurations.needsUpload),this.uploaded=!0}destroyDebugData(){this.textCollisionBox.destroy(),this.iconCollisionBox.destroy()}destroy(){this.text.destroy(),this.icon.destroy(),this.hasDebugData()&&this.destroyDebugData()}addToLineVertexArray(e,t){let i=this.lineVertexArray.length;if(void 0!==e.segment){let i=e.dist(t[e.segment+1]),r=e.dist(t[e.segment]),a={};for(let r=e.segment+1;r=0;i--)a[i]={x:t[i].x,y:t[i].y,tileUnitDistanceFromAnchor:r},i>0&&(r+=t[i-1].dist(t[i]));for(let e=0;e0}hasIconData(){return this.icon.segments.get().length>0}hasDebugData(){return this.textCollisionBox&&this.iconCollisionBox}hasTextCollisionBoxData(){return this.hasDebugData()&&this.textCollisionBox.segments.get().length>0}hasIconCollisionBoxData(){return this.hasDebugData()&&this.iconCollisionBox.segments.get().length>0}addIndicesForPlacedSymbol(e,t){let i=e.placedSymbolArray.get(t),r=i.vertexStartIndex+4*i.numGlyphs;for(let t=i.vertexStartIndex;tr[e]-r[t]||a[t]-a[e]),s}addToSortKeyRanges(e,t){let i=this.sortKeyRanges[this.sortKeyRanges.length-1];i&&i.sortKey===t?i.symbolInstanceEnd=e+1:this.sortKeyRanges.push({sortKey:t,symbolInstanceStart:e,symbolInstanceEnd:e+1})}sortFeatures(e){if(this.sortFeaturesByY&&this.sortedAngle!==e&&!(this.text.segments.get().length>1||this.icon.segments.get().length>1)){for(let t of(this.symbolInstanceIndexes=this.getSortedSymbolIndexes(e),this.sortedAngle=e,this.text.indexArray.clear(),this.icon.indexArray.clear(),this.featureSortOrder=[],this.symbolInstanceIndexes)){let e=this.symbolInstances.get(t);this.featureSortOrder.push(e.featureIndex),[e.rightJustifiedTextSymbolIndex,e.centerJustifiedTextSymbolIndex,e.leftJustifiedTextSymbolIndex].forEach((e,t,i)=>{e>=0&&i.indexOf(e)===t&&this.addIndicesForPlacedSymbol(this.text,e)}),e.verticalPlacedTextSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.text,e.verticalPlacedTextSymbolIndex),e.placedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,e.placedIconSymbolIndex),e.verticalPlacedIconSymbolIndex>=0&&this.addIndicesForPlacedSymbol(this.icon,e.verticalPlacedIconSymbolIndex)}this.text.indexBuffer&&this.text.indexBuffer.updateData(this.text.indexArray),this.icon.indexBuffer&&this.icon.indexBuffer.updateData(this.icon.indexArray)}}}rt("SymbolBucket",ot,{omit:["layers","collisionBoxArray","features","compareText"]}),ot.MAX_GLYPHS=65535,ot.addDynamicAttributes=n9;var oi={get paint(){return y=y||new rF({"icon-opacity":new rD(eu.paint_symbol["icon-opacity"]),"icon-color":new rD(eu.paint_symbol["icon-color"]),"icon-halo-color":new rD(eu.paint_symbol["icon-halo-color"]),"icon-halo-width":new rD(eu.paint_symbol["icon-halo-width"]),"icon-halo-blur":new rD(eu.paint_symbol["icon-halo-blur"]),"icon-translate":new rz(eu.paint_symbol["icon-translate"]),"icon-translate-anchor":new rz(eu.paint_symbol["icon-translate-anchor"]),"text-opacity":new rD(eu.paint_symbol["text-opacity"]),"text-color":new rD(eu.paint_symbol["text-color"],{runtimeType:eM,getOverride:e=>e.textColor,hasOverride:e=>!!e.textColor}),"text-halo-color":new rD(eu.paint_symbol["text-halo-color"]),"text-halo-width":new rD(eu.paint_symbol["text-halo-width"]),"text-halo-blur":new rD(eu.paint_symbol["text-halo-blur"]),"text-translate":new rz(eu.paint_symbol["text-translate"]),"text-translate-anchor":new rz(eu.paint_symbol["text-translate-anchor"])})},get layout(){return g=g||new rF({"symbol-placement":new rz(eu.layout_symbol["symbol-placement"]),"symbol-spacing":new rz(eu.layout_symbol["symbol-spacing"]),"symbol-avoid-edges":new rz(eu.layout_symbol["symbol-avoid-edges"]),"symbol-sort-key":new rD(eu.layout_symbol["symbol-sort-key"]),"symbol-z-order":new rz(eu.layout_symbol["symbol-z-order"]),"icon-allow-overlap":new rz(eu.layout_symbol["icon-allow-overlap"]),"icon-overlap":new rz(eu.layout_symbol["icon-overlap"]),"icon-ignore-placement":new rz(eu.layout_symbol["icon-ignore-placement"]),"icon-optional":new rz(eu.layout_symbol["icon-optional"]),"icon-rotation-alignment":new rz(eu.layout_symbol["icon-rotation-alignment"]),"icon-size":new rD(eu.layout_symbol["icon-size"]),"icon-text-fit":new rz(eu.layout_symbol["icon-text-fit"]),"icon-text-fit-padding":new rz(eu.layout_symbol["icon-text-fit-padding"]),"icon-image":new rD(eu.layout_symbol["icon-image"]),"icon-rotate":new rD(eu.layout_symbol["icon-rotate"]),"icon-padding":new rD(eu.layout_symbol["icon-padding"]),"icon-keep-upright":new rz(eu.layout_symbol["icon-keep-upright"]),"icon-offset":new rD(eu.layout_symbol["icon-offset"]),"icon-anchor":new rD(eu.layout_symbol["icon-anchor"]),"icon-pitch-alignment":new rz(eu.layout_symbol["icon-pitch-alignment"]),"text-pitch-alignment":new rz(eu.layout_symbol["text-pitch-alignment"]),"text-rotation-alignment":new rz(eu.layout_symbol["text-rotation-alignment"]),"text-field":new rD(eu.layout_symbol["text-field"]),"text-font":new rD(eu.layout_symbol["text-font"]),"text-size":new rD(eu.layout_symbol["text-size"]),"text-max-width":new rD(eu.layout_symbol["text-max-width"]),"text-line-height":new rz(eu.layout_symbol["text-line-height"]),"text-letter-spacing":new rD(eu.layout_symbol["text-letter-spacing"]),"text-justify":new rD(eu.layout_symbol["text-justify"]),"text-radial-offset":new rD(eu.layout_symbol["text-radial-offset"]),"text-variable-anchor":new rz(eu.layout_symbol["text-variable-anchor"]),"text-variable-anchor-offset":new rD(eu.layout_symbol["text-variable-anchor-offset"]),"text-anchor":new rD(eu.layout_symbol["text-anchor"]),"text-max-angle":new rz(eu.layout_symbol["text-max-angle"]),"text-writing-mode":new rz(eu.layout_symbol["text-writing-mode"]),"text-rotate":new rD(eu.layout_symbol["text-rotate"]),"text-padding":new rz(eu.layout_symbol["text-padding"]),"text-keep-upright":new rz(eu.layout_symbol["text-keep-upright"]),"text-transform":new rD(eu.layout_symbol["text-transform"]),"text-offset":new rD(eu.layout_symbol["text-offset"]),"text-allow-overlap":new rz(eu.layout_symbol["text-allow-overlap"]),"text-overlap":new rz(eu.layout_symbol["text-overlap"]),"text-ignore-placement":new rz(eu.layout_symbol["text-ignore-placement"]),"text-optional":new rz(eu.layout_symbol["text-optional"])})}};class or{constructor(e){if(void 0===e.property.overrides)throw Error("overrides must be provided to instantiate FormatSectionOverride class");this.type=e.property.overrides?e.property.overrides.runtimeType:eS,this.defaultValue=e}evaluate(e){if(e.formattedSection){let t=this.defaultValue.property.overrides;if(t&&t.hasOverride(e.formattedSection))return t.getOverride(e.formattedSection)}return e.feature&&e.featureState?this.defaultValue.evaluate(e.feature,e.featureState):this.defaultValue.property.specification.default}eachChild(e){this.defaultValue.isConstant()||e(this.defaultValue.value._styleExpression.expression)}outputDefined(){return!1}serialize(){return null}}rt("FormatSectionOverride",or,{omit:["defaultValue"]});class oa extends rV{constructor(e){super(e,oi)}recalculate(e,t){if(super.recalculate(e,t),"auto"===this.layout.get("icon-rotation-alignment")&&(this.layout._values["icon-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-rotation-alignment")&&(this.layout._values["text-rotation-alignment"]="point"!==this.layout.get("symbol-placement")?"map":"viewport"),"auto"===this.layout.get("text-pitch-alignment")&&(this.layout._values["text-pitch-alignment"]="map"===this.layout.get("text-rotation-alignment")?"map":"viewport"),"auto"===this.layout.get("icon-pitch-alignment")&&(this.layout._values["icon-pitch-alignment"]=this.layout.get("icon-rotation-alignment")),"point"===this.layout.get("symbol-placement")){let e=this.layout.get("text-writing-mode");if(e){let t=[];for(let i of e)0>t.indexOf(i)&&t.push(i);this.layout._values["text-writing-mode"]=t}else this.layout._values["text-writing-mode"]=["horizontal"]}this._setPaintOverrides()}getValueAndResolveTokens(e,t,i,r){var a;let s=this.layout.get(e).evaluate(t,{},i,r),n=this._unevaluatedLayout._values[e];return n.isDataDriven()||iy(n.value)||!s?s:(a=t.properties,s.replace(/{([^{}]+)}/g,(e,t)=>a&&t in a?String(a[t]):""))}createBucket(e){return new ot(e)}queryRadius(){return 0}queryIntersectsFeature(){throw Error("Should take a different path in FeatureIndex")}_setPaintOverrides(){for(let e of oi.paint.overridableProperties){if(!oa.hasPaintOverride(this.layout,e))continue;let t=this.paint.get(e),i=new ig(new or(t),t.property.specification),r=null;r="constant"===t.value.kind||"source"===t.value.kind?new iv("source",i):new ib("composite",i,t.value.zoomStops),this.paint._values[e]=new rC(t.property,r,t.parameters)}}_handleOverridablePaintPropertyUpdate(e,t,i){return!(!this.layout||t.isDataDriven()||i.isDataDriven())&&oa.hasPaintOverride(this.layout,e)}static hasPaintOverride(e,t){let i=e.get("text-field"),r=oi.paint.properties[t],a=!1,s=e=>{for(let t of e)if(r.overrides&&r.overrides.hasOverride(t))return void(a=!0)};if("constant"===i.value.kind&&i.value.value instanceof e7)s(i.value.value.sections);else if("source"===i.value.kind){let e=t=>{a||(t instanceof tl&&tn(t.value)===eP?s(t.value.sections):t instanceof t4?s(t.sections):t.eachChild(e))},t=i.value;t._styleExpression&&e(t._styleExpression.expression)}return a}}var os={get paint(){return x=x||new rF({"background-color":new rz(eu.paint_background["background-color"]),"background-pattern":new rR(eu.paint_background["background-pattern"]),"background-opacity":new rz(eu.paint_background["background-opacity"])})}};class on extends rV{constructor(e){super(e,os)}}var oo={get paint(){return v=v||new rF({"raster-opacity":new rz(eu.paint_raster["raster-opacity"]),"raster-hue-rotate":new rz(eu.paint_raster["raster-hue-rotate"]),"raster-brightness-min":new rz(eu.paint_raster["raster-brightness-min"]),"raster-brightness-max":new rz(eu.paint_raster["raster-brightness-max"]),"raster-saturation":new rz(eu.paint_raster["raster-saturation"]),"raster-contrast":new rz(eu.paint_raster["raster-contrast"]),"raster-resampling":new rz(eu.paint_raster["raster-resampling"]),"raster-fade-duration":new rz(eu.paint_raster["raster-fade-duration"])})}};class ol extends rV{constructor(e){super(e,oo)}}class oh extends rV{constructor(e){super(e,{}),this.onAdd=e=>{this.implementation.onAdd&&this.implementation.onAdd(e,e.painter.context.gl)},this.onRemove=e=>{this.implementation.onRemove&&this.implementation.onRemove(e,e.painter.context.gl)},this.implementation=e}is3D(){return"3d"===this.implementation.renderingMode}hasOffscreenPass(){return void 0!==this.implementation.prerender}recalculate(){}updateTransitions(){}hasTransition(){return!1}serialize(){throw Error("Custom layers cannot be serialized")}}class ou{constructor(e){this._callback=e,this._triggered=!1,"undefined"!=typeof MessageChannel&&(this._channel=new MessageChannel,this._channel.port2.onmessage=()=>{this._triggered=!1,this._callback()})}trigger(){this._triggered||(this._triggered=!0,this._channel?this._channel.port1.postMessage(!0):setTimeout(()=>{this._triggered=!1,this._callback()},0))}remove(){delete this._channel,this._callback=()=>{}}}class oc{constructor(e,t){if(isNaN(e)||isNaN(t))throw Error(`Invalid LngLat object: (${e}, ${t})`);if(this.lng=+e,this.lat=+t,this.lat>90||this.lat<-90)throw Error("Invalid LngLat latitude value: must be between -90 and 90")}wrap(){return new oc(B(this.lng,-180,180),this.lat)}toArray(){return[this.lng,this.lat]}toString(){return`LngLat(${this.lng}, ${this.lat})`}distanceTo(e){let t=Math.PI/180,i=this.lat*t,r=e.lat*t;return 6371008.8*Math.acos(Math.min(Math.sin(i)*Math.sin(r)+Math.cos(i)*Math.cos(r)*Math.cos((e.lng-this.lng)*t),1))}static convert(e){if(e instanceof oc)return e;if(Array.isArray(e)&&(2===e.length||3===e.length))return new oc(Number(e[0]),Number(e[1]));if(!Array.isArray(e)&&"object"==typeof e&&null!==e)return new oc(Number("lng"in e?e.lng:e.lon),Number(e.lat));throw Error("`LngLatLike` argument must be specified as a LngLat instance, an object {lng: , lat: }, an object {lon: , lat: }, or an array of [, ]")}}let od=2*Math.PI*6371008.8;function op(e){return od*Math.cos(e*Math.PI/180)}function of(e){return(180+e)/360}function om(e){return(180-180/Math.PI*Math.log(Math.tan(Math.PI/4+e*Math.PI/360)))/360}function o_(e){return 360*e-180}function og(e){return 360/Math.PI*Math.atan(Math.exp((180-360*e)*Math.PI/180))-90}class oy{constructor(e,t,i=0){this.x=+e,this.y=+t,this.z=+i}static fromLngLat(e,t=0){let i=oc.convert(e);return new oy(of(i.lng),om(i.lat),t/op(i.lat))}toLngLat(){return new oc(o_(this.x),og(this.y))}toAltitude(){return this.z*op(og(this.y))}meterInMercatorCoordinateUnits(){return 1/od*(1/Math.cos(og(this.y)*Math.PI/180))}}function ox(e,t,i){var r=2*Math.PI*6378137/256/Math.pow(2,i);return[e*r-2*Math.PI*6378137/2,t*r-2*Math.PI*6378137/2]}class ov{constructor(e,t,i){if(e<0||e>25||i<0||i>=Math.pow(2,e)||t<0||t>=Math.pow(2,e))throw Error(`x=${t}, y=${i}, z=${e} outside of bounds. 0<=x<${Math.pow(2,e)}, 0<=y<${Math.pow(2,e)} 0<=z<=25 `);this.z=e,this.x=t,this.y=i,this.key=oS(0,e,e,t,i)}equals(e){return this.z===e.z&&this.x===e.x&&this.y===e.y}url(e,t,i){var r,a,s,n,o;let l=(a=this.y,s=this.z,n=ox(256*(r=this.x),256*(a=Math.pow(2,s)-a-1),s),o=ox(256*(r+1),256*(a+1),s),n[0]+","+n[1]+","+o[0]+","+o[1]),h=function(e,t,i){let r,a="";for(let s=e;s>0;s--)a+=(t&(r=1<1?"@2x":"").replace(/{quadkey}/g,h).replace(/{bbox-epsg-3857}/g,l)}isChildOf(e){let t=this.z-e.z;return t>0&&e.x===this.x>>t&&e.y===this.y>>t}getTilePoint(e){let t=Math.pow(2,this.z);return new E((e.x*t-this.x)*8192,(e.y*t-this.y)*8192)}toString(){return`${this.z}/${this.x}/${this.y}`}}class ob{constructor(e,t){this.wrap=e,this.canonical=t,this.key=oS(e,t.z,t.z,t.x,t.y)}}class ow{constructor(e,t,i,r,a){if(e= z; overscaledZ = ${e}; z = ${i}`);this.overscaledZ=e,this.wrap=t,this.canonical=new ov(i,+r,+a),this.key=oS(t,e,i,r,a)}clone(){return new ow(this.overscaledZ,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)}equals(e){return this.overscaledZ===e.overscaledZ&&this.wrap===e.wrap&&this.canonical.equals(e.canonical)}scaledTo(e){if(e>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);let t=this.canonical.z-e;return e>this.canonical.z?new ow(e,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y):new ow(e,this.wrap,e,this.canonical.x>>t,this.canonical.y>>t)}calculateScaledKey(e,t){if(e>this.overscaledZ)throw Error(`targetZ > this.overscaledZ; targetZ = ${e}; overscaledZ = ${this.overscaledZ}`);let i=this.canonical.z-e;return e>this.canonical.z?oS(this.wrap*t,e,this.canonical.z,this.canonical.x,this.canonical.y):oS(this.wrap*t,e,e,this.canonical.x>>i,this.canonical.y>>i)}isChildOf(e){if(e.wrap!==this.wrap)return!1;let t=this.canonical.z-e.canonical.z;return 0===e.overscaledZ||e.overscaledZ>t&&e.canonical.y===this.canonical.y>>t}children(e){if(this.overscaledZ>=e)return[new ow(this.overscaledZ+1,this.wrap,this.canonical.z,this.canonical.x,this.canonical.y)];let t=this.canonical.z+1,i=2*this.canonical.x,r=2*this.canonical.y;return[new ow(t,this.wrap,t,i,r),new ow(t,this.wrap,t,i+1,r),new ow(t,this.wrap,t,i,r+1),new ow(t,this.wrap,t,i+1,r+1)]}isLessThan(e){return this.wrape.wrap)&&(this.overscaledZe.overscaledZ)&&(this.canonical.xe.canonical.x)&&this.canonical.ythis.max&&(this.max=i),i=this.dim+1||t<-1||t>=this.dim+1)throw RangeError("out of range source coordinates for DEM data");return(t+1)*this.stride+(e+1)}unpack(e,t,i){return e*this.redFactor+t*this.greenFactor+i*this.blueFactor-this.baseShift}getPixels(){return new sb({width:this.stride,height:this.stride},new Uint8Array(this.data.buffer))}backfillBorder(e,t,i){if(this.dim!==e.dim)throw Error("dem dimension mismatch");let r=t*this.dim,a=t*this.dim+this.dim,s=i*this.dim,n=i*this.dim+this.dim;switch(t){case -1:r=a-1;break;case 1:a=r+1}switch(i){case -1:s=n-1;break;case 1:n=s+1}let o=-t*this.dim,l=-i*this.dim;for(let t=s;t=this._numberToString.length)throw Error(`Out of bounds. Index requested n=${e} can't be >= this._numberToString.length ${this._numberToString.length}`);return this._numberToString[e]}}class oA{constructor(e,t,i,r,a){this.type="Feature",this._vectorTileFeature=e,e._z=t,e._x=i,e._y=r,this.properties=e.properties,this.id=a}get geometry(){return void 0===this._geometry&&(this._geometry=this._vectorTileFeature.toGeoJSON(this._vectorTileFeature._x,this._vectorTileFeature._y,this._vectorTileFeature._z).geometry),this._geometry}set geometry(e){this._geometry=e}toJSON(){let e={geometry:this.geometry};for(let t in this)"_geometry"!==t&&"_vectorTileFeature"!==t&&(e[t]=this[t]);return e}}class oM{constructor(e,t){this.tileID=e,this.x=e.canonical.x,this.y=e.canonical.y,this.z=e.canonical.z,this.grid=new i7(8192,16,0),this.grid3D=new i7(8192,16,0),this.featureIndexArray=new am,this.promoteId=t}insert(e,t,i,r,a,s){let n=this.featureIndexArray.length;this.featureIndexArray.emplaceBack(i,r,a);let o=s?this.grid3D:this.grid;for(let e=0;e=0&&r[3]>=0&&o.insert(n,r[0],r[1],r[2],r[3])}}loadVTLayers(){return this.vtLayers||(this.vtLayers=new s3.VectorTile(new nV(this.rawTileData)).layers,this.sourceLayerCoder=new oI(this.vtLayers?Object.keys(this.vtLayers).sort():["_geojsonTileLayer"])),this.vtLayers}query(e,t,i,r){let a;this.loadVTLayers();let s=e.params||{},n=8192/e.tileSize/e.scale,o=iA(s.filter),l=e.queryGeometry,h=e.queryPadding*n,u=ok(l),c=this.grid.query(u.minX-h,u.minY-h,u.maxX+h,u.maxY+h),d=ok(e.cameraQueryGeometry);for(let t of this.grid3D.query(d.minX-h,d.minY-h,d.maxX+h,d.maxY+h,(t,i,r,a)=>(function(e,t,i,r,a){for(let s of e)if(t<=s.x&&i<=s.y&&r>=s.x&&a>=s.y)return!0;let s=[new E(t,i),new E(t,a),new E(r,a),new E(r,i)];if(e.length>2){for(let t of s)if(sa(e,t))return!0}for(let t=0;ta.x&&t.x>a.x||e.ya.y&&t.y>a.y)return!1;let s=q(e,t,i[0]);return s!==q(e,t,i[1])||s!==q(e,t,i[2])||s!==q(e,t,i[3])}(e[t],e[t+1],s))return!0;return!1})(e.cameraQueryGeometry,t-h,i-h,r+h,a+h)))c.push(t);c.sort(oC);let p={};for(let h=0;h(f||(f=a3(t)),i.queryIntersectsFeature(l,t,r,f,this.z,e.transform,n,e.pixelPosMatrix)))}return p}loadMatchingFeature(e,t,i,r,a,s,n,o,l,h,u){let c=this.bucketLayerIDs[t];if(s&&!function(e,t){for(let i=0;i=0)return!0;return!1}(s,c))return;let d=this.sourceLayerCoder.decode(i),p=this.vtLayers[d].feature(r);if(a.needGeometry){let e=a4(p,!0);if(!a.filter(new rS(this.tileID.overscaledZ),e,this.tileID.canonical))return}else if(!a.filter(new rS(this.tileID.overscaledZ),p))return;let f=this.getId(p,d);for(let t=0;ts.indexOf(i))continue;let a=o[i];if(!a)continue;let d={};f&&h&&(d=h.getState(a.sourceLayer||"_geojsonTileLayer",f));let m=F({},l[i]);m.paint=oE(m.paint,a.paint,p,d,n),m.layout=oE(m.layout,a.layout,p,d,n);let _=!u||u(p,a,d);if(!_)continue;let g=new oA(p,this.z,this.x,this.y,f);g.layer=m;let y=e[i];void 0===y&&(y=e[i]=[]),y.push({featureIndex:r,feature:g,intersectionZ:_})}}lookupSymbolFeatures(e,t,i,r,a,s,n,o){let l={};this.loadVTLayers();let h=iA(a);for(let a of e)this.loadMatchingFeature(l,i,r,a,h,s,n,o,t);return l}hasLayer(e){for(let t of this.bucketLayerIDs)for(let i of t)if(e===i)return!0;return!1}getId(e,t){let i=e.id;return this.promoteId&&"boolean"==typeof(i=e.properties["string"==typeof this.promoteId?this.promoteId:this.promoteId[t]])&&(i=Number(i)),i}}function oE(e,t,i,r,a){return V(e,(e,s)=>{let n=t instanceof rP?t.get(s):null;return n&&n.evaluate?n.evaluate(i,r,a):n})}function ok(e){let t=1/0,i=1/0,r=-1/0,a=-1/0;for(let s of e)t=Math.min(t,s.x),i=Math.min(i,s.y),r=Math.max(r,s.x),a=Math.max(a,s.y);return{minX:t,minY:i,maxX:r,maxY:a}}function oC(e,t){return t-e}function oP(e,t,i,r,a){let s=[];for(let n=0;n=r&&h.x>=r||(n.x>=r?n=new E(r,n.y+(r-n.x)/(h.x-n.x)*(h.y-n.y))._round():h.x>=r&&(h=new E(r,n.y+(r-n.x)/(h.x-n.x)*(h.y-n.y))._round()),n.y>=a&&h.y>=a||(n.y>=a?n=new E(n.x+(a-n.y)/(h.y-n.y)*(h.x-n.x),a)._round():h.y>=a&&(h=new E(n.x+(a-n.y)/(h.y-n.y)*(h.x-n.x),a)._round()),o&&n.equals(o[o.length-1])||(o=[n],s.push(o)),o.push(h)))))}}return s}rt("FeatureIndex",oM,{omit:["rawTileData","sourceLayerCoder"]});class oz extends E{constructor(e,t,i,r){super(e,t),this.angle=i,void 0!==r&&(this.segment=r)}clone(){return new oz(this.x,this.y,this.angle,this.segment)}}function oD(e,t,i,r,a){if(void 0===t.segment||0===i)return!0;let s=t,n=t.segment+1,o=0;for(;o>-i/2;){if(--n<0)return!1;o-=e[n].dist(s),s=e[n]}o+=e[n].dist(e[n+1]),n++;let l=[],h=0;for(;or;)h-=l.shift().angleDelta;if(h>a)return!1;n++,o+=t.dist(i)}return!0}function oL(e){let t=0;for(let i=0;ie+t[1]-t[0],f=c.reduce(p,0),m=d.reduce(p,0),_=o-f,g=l-m,y=0,x=f,v=0,b=m,w=0,S=_,T=0,I=g;if(s.content&&r){let e=s.content;y=oF(c,0,e[0]),v=oF(d,0,e[1]),x=oF(c,e[0],e[2]),b=oF(d,e[1],e[3]),w=e[0]-y,T=e[1]-v,S=e[2]-e[0]-x,I=e[3]-e[1]-b}let A=(r,a,o,l)=>{var c,d,p,_,g,A,M,k,C,P,z,D,L,R,B,F;let O=(c=r.stretch-y,c/x*h+e.left),V=(d=r.fixed-w,p=S,_=r.stretch,d-p*_/f),N=(g=a.stretch-v,g/b*u+e.top),U=(A=a.fixed-T,M=I,k=a.stretch,A-M*k/m),$=(C=o.stretch-y,C/x*h+e.left),j=(P=o.fixed-w,z=S,D=o.stretch,P-z*D/f),q=(L=l.stretch-v,L/b*u+e.top),Z=(R=l.fixed-T,B=I,F=l.stretch,R-B*F/m),G=new E(O,N),X=new E($,N),W=new E($,q),H=new E(O,q),K=new E(V/n,U/n),Y=new E(j/n,Z/n),J=t*Math.PI/180;if(J){let e=Math.sin(J),t=Math.cos(J),i=[t,-e,e,t];G._matMult(i),X._matMult(i),H._matMult(i),W._matMult(i)}let Q=r.stretch+r.fixed,ee=a.stretch+a.fixed;return{tl:G,tr:X,bl:H,br:W,tex:{x:s.paddedRect.x+1+Q,y:s.paddedRect.y+1+ee,w:o.stretch+o.fixed-Q,h:l.stretch+l.fixed-ee},writingMode:void 0,glyphOffset:[0,0],sectionIndex:0,pixelOffsetTL:K,pixelOffsetBR:Y,minFontScaleX:S/n/h,minFontScaleY:I/n/u,isSDF:i}};if(r&&(s.stretchX||s.stretchY)){let e=oO(c,_,f),t=oO(d,g,m);for(let i=0;i0&&(r=Math.max(10,r),this.circleDiameter=r)}else{let l=s.top*n-o[0],u=s.bottom*n+o[2],c=s.left*n-o[3],d=s.right*n+o[1],p=s.collisionPadding;if(p&&(c-=p[0]*n,l-=p[1]*n,d+=p[2]*n,u+=p[3]*n),h){let e=new E(c,l),t=new E(d,l),i=new E(c,u),r=new E(d,u),a=h*Math.PI/180;e._rotate(a),t._rotate(a),i._rotate(a),r._rotate(a),c=Math.min(e.x,t.x,i.x,r.x),d=Math.max(e.x,t.x,i.x,r.x),l=Math.min(e.y,t.y,i.y,r.y),u=Math.max(e.y,t.y,i.y,r.y)}e.emplaceBack(t.x,t.y,c,l,d,u,i,r,a)}this.boxEndIndex=e.length}}class oN{constructor(e=[],t=oU){if(this.data=e,this.length=this.data.length,this.compare=t,this.length>0)for(let e=(this.length>>1)-1;e>=0;e--)this._down(e)}push(e){this.data.push(e),this.length++,this._up(this.length-1)}pop(){if(0===this.length)return;let e=this.data[0],t=this.data.pop();return this.length--,this.length>0&&(this.data[0]=t,this._down(0)),e}peek(){return this.data[0]}_up(e){let{data:t,compare:i}=this,r=t[e];for(;e>0;){let a=e-1>>1,s=t[a];if(i(r,s)>=0)break;t[e]=s,e=a}t[e]=r}_down(e){let{data:t,compare:i}=this,r=this.length>>1,a=t[e];for(;ei(t[n],s)&&(r=n,s=t[n]),i(s,a)>=0)break;t[e]=s,e=r}t[e]=a}}function oU(e,t){return et)}function o$(e,t){return t.max-e.max}function oj(e,t,i,r){this.p=new E(e,t),this.h=i,this.d=function(e,t){let i=!1,r=1/0;for(let a=0;ae.y!=o.y>e.y&&e.x<(o.x-a.x)*(e.y-a.y)/(o.y-a.y)+a.x&&(i=!i),r=Math.min(r,si(e,a,o))}}return(i?1:-1)*Math.sqrt(r)}(this.p,r),this.max=this.d+this.h*Math.SQRT2}e.aq=void 0,(I=e.aq||(e.aq={}))[I.center=1]="center",I[I.left=2]="left",I[I.right=3]="right",I[I.top=4]="top",I[I.bottom=5]="bottom",I[I["top-left"]=6]="top-left",I[I["top-right"]=7]="top-right",I[I["bottom-left"]=8]="bottom-left",I[I["bottom-right"]=9]="bottom-right";let oq=1/0;function oZ(e,t){return t[1]!==oq?function(e,t,i){let r=0,a=0;switch(t=Math.abs(t),i=Math.abs(i),e){case"top-right":case"top-left":case"top":a=i-7;break;case"bottom-right":case"bottom-left":case"bottom":a=-i+7}switch(e){case"top-right":case"bottom-right":case"right":r=-t;break;case"top-left":case"bottom-left":case"left":r=t}return[r,a]}(e,t[0],t[1]):function(e,t){let i=0,r=0;t<0&&(t=0);let a=t/Math.SQRT2;switch(e){case"top-right":case"top-left":r=a-7;break;case"bottom-right":case"bottom-left":r=-a+7;break;case"bottom":r=-t+7;break;case"top":r=t-7}switch(e){case"top-right":case"bottom-right":i=-a;break;case"top-left":case"bottom-left":i=a;break;case"left":i=t;break;case"right":i=-t}return[i,r]}(e,t[0])}function oG(e,t,i){var r;let a=e.layout,s=null==(r=a.get("text-variable-anchor-offset"))?void 0:r.evaluate(t,{},i);if(s){let e=s.values,t=[];for(let i=0;i24*e);r.startsWith("top")?a[1]-=7:r.startsWith("bottom")&&(a[1]+=7),t[i+1]=a}return new ti(t)}let n=a.get("text-variable-anchor");if(n){let r;r=void 0!==e._unevaluatedLayout.getValue("text-radial-offset")?[24*a.get("text-radial-offset").evaluate(t,{},i),oq]:a.get("text-offset").evaluate(t,{},i).map(e=>24*e);let s=[];for(let e of n)s.push(e,oZ(e,r));return new ti(s)}return null}function oX(e){switch(e){case"right":case"top-right":case"bottom-right":return"right";case"left":case"top-left":case"bottom-left":return"left"}return"center"}function oW(e,t,i,r,a,s,n,o,l,h,u,c,d,p,f){let m=function(e,t,i,r,a,s,n,o){let l=r.layout.get("text-rotate").evaluate(s,{})*Math.PI/180,h=[];for(let e of t.positionedLines)for(let r of e.positionedGlyphs){if(!r.rect)continue;let s=r.rect||{},u=4,c=!0,d=1,p=0,f=(a||o)&&r.vertical,m=r.metrics.advance*r.scale/2;if(o&&t.verticalizable&&(p=e.lineOffset/2-(r.imageName?-(24-r.metrics.width*r.scale)/2:(r.scale-1)*24)),r.imageName){let e=n[r.imageName];c=e.sdf,u=1/(d=e.pixelRatio)}let _=a?[r.x+m,r.y]:[0,0],g=a?[0,0]:[r.x+m+i[0],r.y+i[1]-p],y=[0,0];f&&(y=g,g=[0,0]);let x=r.metrics.isDoubleResolution?2:1,v=(r.metrics.left-u)*r.scale-m+g[0],b=(-r.metrics.top-u)*r.scale+g[1],w=v+s.w/x*r.scale/d,S=b+s.h/x*r.scale/d,T=new E(v,b),I=new E(w,b),A=new E(v,S),M=new E(w,S);if(f){let e=new E(-m,m- -17),t=-Math.PI/2,i=12-m,a=new E(22-i,-(r.imageName?i:0)),s=new E(...y);T._rotateAround(t,e)._add(a)._add(s),I._rotateAround(t,e)._add(a)._add(s),A._rotateAround(t,e)._add(a)._add(s),M._rotateAround(t,e)._add(a)._add(s)}if(l){let e=Math.sin(l),t=Math.cos(l),i=[t,-e,e,t];T._matMult(i),I._matMult(i),A._matMult(i),M._matMult(i)}let k=new E(0,0),C=new E(0,0);h.push({tl:T,tr:I,bl:A,br:M,tex:s,writingMode:t.writingMode,glyphOffset:_,sectionIndex:r.sectionIndex,isSDF:c,pixelOffsetTL:k,pixelOffsetBR:C,minFontScaleX:0,minFontScaleY:0})}return h}(0,i,o,a,s,n,r,e.allowVerticalPlacement),_=e.textSizeData,g=null;for(let i of("source"===_.kind?(g=[128*a.layout.get("text-size").evaluate(n,{})])[0]>32640&&j(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`):"composite"===_.kind&&((g=[128*p.compositeTextSizes[0].evaluate(n,{},f),128*p.compositeTextSizes[1].evaluate(n,{},f)])[0]>32640||g[1]>32640)&&j(`${e.layerIds[0]}: Value for "text-size" is >= 255. Reduce your "text-size".`),e.addSymbols(e.text,m,g,o,s,n,h,t,l.lineStartIndex,l.lineLength,d,f),u))c[i]=e.text.placedSymbolArray.length-1;return 4*m.length}function oH(e){for(let t in e)return e[t];return null}let oK=[Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array];class oY{static from(e){if(!(e instanceof ArrayBuffer))throw Error("Data must be an instance of ArrayBuffer.");let[t,i]=new Uint8Array(e,0,2);if(219!==t)throw Error("Data does not appear to be in a KDBush format.");let r=i>>4;if(1!==r)throw Error(`Got v${r} data when expected v1.`);let a=oK[15&i];if(!a)throw Error("Unrecognized array type.");let[s]=new Uint16Array(e,2,1),[n]=new Uint32Array(e,4,1);return new oY(n,s,a,e)}constructor(e,t=64,i=Float64Array,r){if(isNaN(e)||e<0)throw Error(`Unpexpected numItems value: ${e}.`);this.numItems=+e,this.nodeSize=Math.min(Math.max(+t,2),65535),this.ArrayType=i,this.IndexArrayType=e<65536?Uint16Array:Uint32Array;let a=oK.indexOf(this.ArrayType),s=2*e*this.ArrayType.BYTES_PER_ELEMENT,n=e*this.IndexArrayType.BYTES_PER_ELEMENT,o=(8-n%8)%8;if(a<0)throw Error(`Unexpected typed array class: ${i}.`);r&&r instanceof ArrayBuffer?(this.data=r,this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+n+o,2*e),this._pos=2*e,this._finished=!0):(this.data=new ArrayBuffer(8+s+n+o),this.ids=new this.IndexArrayType(this.data,8,e),this.coords=new this.ArrayType(this.data,8+n+o,2*e),this._pos=0,this._finished=!1,new Uint8Array(this.data,0,2).set([219,16+a]),new Uint16Array(this.data,2,1)[0]=t,new Uint32Array(this.data,4,1)[0]=e)}add(e,t){let i=this._pos>>1;return this.ids[i]=i,this.coords[this._pos++]=e,this.coords[this._pos++]=t,i}finish(){let e=this._pos>>1;if(e!==this.numItems)throw Error(`Added ${e} items when expected ${this.numItems}.`);return function e(t,i,r,a,s,n){if(s-a<=r)return;let o=a+s>>1;(function e(t,i,r,a,s,n){for(;s>a;){if(s-a>600){let o=s-a+1,l=r-a+1,h=Math.log(o),u=.5*Math.exp(2*h/3),c=.5*Math.sqrt(h*u*(o-u)/o)*(l-o/2<0?-1:1);e(t,i,r,Math.max(a,Math.floor(r-l*u/o+c)),Math.min(s,Math.floor(r+(o-l)*u/o+c)),n)}let o=i[2*r+n],l=a,h=s;for(oJ(t,i,a,r),i[2*s+n]>o&&oJ(t,i,a,s);lo;)h--}i[2*a+n]===o?oJ(t,i,a,h):oJ(t,i,++h,s),h<=r&&(a=h+1),r<=h&&(s=h-1)}})(t,i,o,a,s,n),e(t,i,r,a,o-1,1-n),e(t,i,r,o+1,s,1-n)}(this.ids,this.coords,this.nodeSize,0,this.numItems-1,0),this._finished=!0,this}range(e,t,i,r){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:a,coords:s,nodeSize:n}=this,o=[0,a.length-1,0],l=[];for(;o.length;){let h=o.pop()||0,u=o.pop()||0,c=o.pop()||0;if(u-c<=n){for(let n=c;n<=u;n++){let o=s[2*n],h=s[2*n+1];o>=e&&o<=i&&h>=t&&h<=r&&l.push(a[n])}continue}let d=c+u>>1,p=s[2*d],f=s[2*d+1];p>=e&&p<=i&&f>=t&&f<=r&&l.push(a[d]),(0===h?e<=p:t<=f)&&(o.push(c),o.push(d-1),o.push(1-h)),(0===h?i>=p:r>=f)&&(o.push(d+1),o.push(u),o.push(1-h))}return l}within(e,t,i){if(!this._finished)throw Error("Data not yet indexed - call index.finish().");let{ids:r,coords:a,nodeSize:s}=this,n=[0,r.length-1,0],o=[],l=i*i;for(;n.length;){let h=n.pop()||0,u=n.pop()||0,c=n.pop()||0;if(u-c<=s){for(let i=c;i<=u;i++)o0(a[2*i],a[2*i+1],e,t)<=l&&o.push(r[i]);continue}let d=c+u>>1,p=a[2*d],f=a[2*d+1];o0(p,f,e,t)<=l&&o.push(r[d]),(0===h?e-i<=p:t-i<=f)&&(n.push(c),n.push(d-1),n.push(1-h)),(0===h?e+i>=p:t+i>=f)&&(n.push(d+1),n.push(u),n.push(1-h))}return o}}function oJ(e,t,i,r){oQ(e,i,r),oQ(t,2*i,2*r),oQ(t,2*i+1,2*r+1)}function oQ(e,t,i){let r=e[t];e[t]=e[i],e[i]=r}function o0(e,t,i,r){let a=e-i,s=t-r;return a*a+s*s}e.bh=void 0,(A=e.bh||(e.bh={})).create="create",A.load="load",A.fullLoad="fullLoad";let o1=null,o2=[],o5=1e3/60,o3="loadTime",o4="fullLoadTime";e.$=function(e,t,i){var r,a,s,n,o,l,h,u,c,d,p,f,m=i[0],_=i[1],g=i[2];return t===e?(e[12]=t[0]*m+t[4]*_+t[8]*g+t[12],e[13]=t[1]*m+t[5]*_+t[9]*g+t[13],e[14]=t[2]*m+t[6]*_+t[10]*g+t[14],e[15]=t[3]*m+t[7]*_+t[11]*g+t[15]):(a=t[1],s=t[2],n=t[3],o=t[4],l=t[5],h=t[6],u=t[7],c=t[8],d=t[9],p=t[10],f=t[11],e[0]=r=t[0],e[1]=a,e[2]=s,e[3]=n,e[4]=o,e[5]=l,e[6]=h,e[7]=u,e[8]=c,e[9]=d,e[10]=p,e[11]=f,e[12]=r*m+o*_+c*g+t[12],e[13]=a*m+l*_+d*g+t[13],e[14]=s*m+h*_+p*g+t[14],e[15]=n*m+u*_+f*g+t[15]),e},e.A=sh,e.B=tO,e.C=class{constructor(e,t,i){this.receive=e=>{let t=e.data,i=t.id;if(i&&(!t.targetMapId||this.mapId===t.targetMapId))if(""===t.type){delete this.tasks[i];let e=this.cancelCallbacks[i];delete this.cancelCallbacks[i],e&&e()}else Z()||t.mustQueue?(this.tasks[i]=t,this.taskQueue.push(i),this.invoker.trigger()):this.processTask(i,t)},this.process=()=>{if(!this.taskQueue.length)return;let e=this.taskQueue.shift(),t=this.tasks[e];delete this.tasks[e],this.taskQueue.length&&this.invoker.trigger(),t&&this.processTask(e,t)},this.target=e,this.parent=t,this.mapId=i,this.callbacks={},this.tasks={},this.taskQueue=[],this.cancelCallbacks={},this.invoker=new ou(this.process),this.target.addEventListener("message",this.receive,!1),this.globalScope=Z()?e:window}send(e,t,i,r,a=!1){let s=Math.round(1e18*Math.random()).toString(36).substring(0,10);i&&(this.callbacks[s]=i);let n=[],o={id:s,type:e,hasCallback:!!i,targetMapId:r,mustQueue:a,sourceMapId:this.mapId,data:rr(t,n)};return this.target.postMessage(o,{transfer:n}),{cancel:()=>{i&&delete this.callbacks[s],this.target.postMessage({id:s,type:"",targetMapId:r,sourceMapId:this.mapId})}}}processTask(e,t){if(""===t.type){let i=this.callbacks[e];delete this.callbacks[e],i&&(t.error?i(ra(t.error)):i(null,ra(t.data)))}else{let i=!1,r=[],a=t.hasCallback?(t,a)=>{i=!0,delete this.cancelCallbacks[e];let s={id:e,type:"",sourceMapId:this.mapId,error:t?rr(t):null,data:rr(a,r)};this.target.postMessage(s,{transfer:r})}:e=>{i=!0},s=null,n=ra(t.data);if(this.parent[t.type])s=this.parent[t.type](t.sourceMapId,n,a);else if("getWorkerSource"in this.parent){let e=t.type.split(".");s=this.parent.getWorkerSource(t.sourceMapId,e[0],n.source)[e[1]](n,a)}else a(Error(`Could not find function ${t.type}`));!i&&s&&s.cancel&&(this.cancelCallbacks[e]=s.cancel)}}remove(){this.invoker.remove(),this.target.removeEventListener("message",this.receive,!1)}},e.D=rz,e.E=eh,e.F=function(e,t){let i={};for(let r=0;r{}}},e.Y=ex,e.Z=function(){var e=new sh(16);return sh!=Float32Array&&(e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0),e[0]=1,e[5]=1,e[10]=1,e[15]=1,e},e._=b,e.a=X,e.a$=class extends ai{},e.a0=function(e,t,i){var r=i[0],a=i[1],s=i[2];return e[0]=t[0]*r,e[1]=t[1]*r,e[2]=t[2]*r,e[3]=t[3]*r,e[4]=t[4]*a,e[5]=t[5]*a,e[6]=t[6]*a,e[7]=t[7]*a,e[8]=t[8]*s,e[9]=t[9]*s,e[10]=t[10]*s,e[11]=t[11]*s,e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},e.a1=sc,e.a2=function(){return O++},e.a3=as,e.a4=ot,e.a5=function(){rw.isLoading()||rw.isLoaded()||"deferred"!==rv()||rb()},e.a6=iA,e.a7=a4,e.a8=rS,e.a9=oA,e.aA=rg,e.aB=function(e){e=e.slice();let t=Object.create(null);for(let i=0;i{e in t&&(i[e]=t[e])}),i}(e[i],t[e[i].ref]));return e},e.aC=function(e){if("custom"===e.type)return new oh(e);switch(e.type){case"background":return new on(e);case"circle":return new sp(e);case"fill":return new s0(e);case"fill-extrusion":return new na(e);case"heatmap":return new sS(e);case"hillshade":return new sI(e);case"line":return new nf(e);case"raster":return new ol(e);case"symbol":return new oa(e)}},e.aD=U,e.aE=function(e,t){if(!e)return[{command:ep.setStyle,args:[t]}];let i=[];try{if(!ed(e.version,t.version))return[{command:ep.setStyle,args:[t]}];ed(e.center,t.center)||i.push({command:ep.setCenter,args:[t.center]}),ed(e.zoom,t.zoom)||i.push({command:ep.setZoom,args:[t.zoom]}),ed(e.bearing,t.bearing)||i.push({command:ep.setBearing,args:[t.bearing]}),ed(e.pitch,t.pitch)||i.push({command:ep.setPitch,args:[t.pitch]}),ed(e.sprite,t.sprite)||i.push({command:ep.setSprite,args:[t.sprite]}),ed(e.glyphs,t.glyphs)||i.push({command:ep.setGlyphs,args:[t.glyphs]}),ed(e.transition,t.transition)||i.push({command:ep.setTransition,args:[t.transition]}),ed(e.light,t.light)||i.push({command:ep.setLight,args:[t.light]});let r={},a=[];!function(e,t,i,r){let a;for(a in t=t||{},e=e||{})Object.prototype.hasOwnProperty.call(e,a)&&(Object.prototype.hasOwnProperty.call(t,a)||em(a,i,r));for(a in t){var s;Object.prototype.hasOwnProperty.call(t,a)&&(Object.prototype.hasOwnProperty.call(e,a)?ed(e[a],t[a])||("geojson"===e[a].type&&"geojson"===t[a].type&&function(e,t,i){let r;for(r in e[i])if(Object.prototype.hasOwnProperty.call(e[i],r)&&"data"!==r&&!ed(e[i][r],t[i][r]))return!1;for(r in t[i])if(Object.prototype.hasOwnProperty.call(t[i],r)&&"data"!==r&&!ed(e[i][r],t[i][r]))return!1;return!0}(e,t,a)?i.push({command:ep.setGeoJSONSourceData,args:[a,t[a].data]}):(s=t,em(a,i,r),ef(a,s,i))):ef(a,t,i))}}(e.sources,t.sources,a,r);let s=[];e.layers&&e.layers.forEach(e=>{r[e.source]?i.push({command:ep.removeLayer,args:[e.id]}):s.push(e)}),i=i.concat(a),function(e,t,i){let r,a,s,n,o,l,h;t=t||[];let u=(e=e||[]).map(eg),c=t.map(eg),d=e.reduce(ey,{}),p=t.reduce(ey,{}),f=u.slice(),m=Object.create(null);for(r=0,a=0;r@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)(?:\=(?:([^\x00-\x20\(\)<>@\,;\:\\"\/\[\]\?\=\{\}\x7F]+)|(?:\"((?:[^"\\]|\\.)*)\")))?/g,(e,i,r,a)=>{let s=r||a;return t[i]=!s||s.toLowerCase(),""}),t["max-age"]){let e=parseInt(t["max-age"],10);isNaN(e)?delete t["max-age"]:t["max-age"]=e}return t},e.ab=function(e,t){let i=[];for(let r in e)r in t||i.push(r);return i},e.ac=function(e){if(null==G){let t=e.navigator?e.navigator.userAgent:null;G=!!e.safari||!(!t||!(/\b(iPad|iPhone|iPod)\b/.test(t)||t.match("Safari")&&!t.match("Chrome")))}return G},e.ad=R,e.ae=function(e,t,i){var r=Math.sin(i),a=Math.cos(i),s=t[0],n=t[1],o=t[2],l=t[3],h=t[4],u=t[5],c=t[6],d=t[7];return t!==e&&(e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[0]=s*a+h*r,e[1]=n*a+u*r,e[2]=o*a+c*r,e[3]=l*a+d*r,e[4]=h*a-s*r,e[5]=u*a-n*r,e[6]=c*a-o*r,e[7]=d*a-l*r,e},e.af=function(e){var t=new sh(16);return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t[6]=e[6],t[7]=e[7],t[8]=e[8],t[9]=e[9],t[10]=e[10],t[11]=e[11],t[12]=e[12],t[13]=e[13],t[14]=e[14],t[15]=e[15],t},e.ag=sd,e.ah=function(e,t){let i=0,r=0;if("constant"===e.kind)r=e.layoutSize;else if("source"!==e.kind){let{interpolationType:a,minZoom:s,maxZoom:n}=e,o=a?R(tV.interpolationFactor(a,t,s,n),0,1):0;"camera"===e.kind?r=tO.number(e.minSize,e.maxSize,o):i=o}return{uSizeT:i,uSize:r}},e.aj=function(e,{uSize:t,uSizeT:i},{lowerSize:r,upperSize:a}){return"source"===e.kind?r/128:"composite"===e.kind?tO.number(r/128,a/128,i):t},e.ak=n9,e.al=function(e,t,i,r){let a=t.y-e.y,s=t.x-e.x,n=r.y-i.y,o=r.x-i.x,l=n*s-o*a;if(0===l)return null;let h=(o*(e.y-i.y)-n*(e.x-i.x))/l;return new E(e.x+h*s,e.y+h*a)},e.am=oP,e.an=a9,e.ao=su,e.ap=24,e.ar=n3,e.as=function(e,t){var i=t[0],r=t[1],a=t[2],s=t[3],n=t[4],o=t[5],l=t[6],h=t[7],u=t[8],c=t[9],d=t[10],p=t[11],f=t[12],m=t[13],_=t[14],g=t[15],y=i*o-r*n,x=i*l-a*n,v=i*h-s*n,b=r*l-a*o,w=r*h-s*o,S=a*h-s*l,T=u*m-c*f,I=u*_-d*f,A=u*g-p*f,M=c*_-d*m,E=c*g-p*m,k=d*g-p*_,C=y*k-x*E+v*M+b*A-w*I+S*T;return C?(e[0]=(o*k-l*E+h*M)*(C=1/C),e[1]=(a*E-r*k-s*M)*C,e[2]=(m*S-_*w+g*b)*C,e[3]=(d*w-c*S-p*b)*C,e[4]=(l*A-n*k-h*I)*C,e[5]=(i*k-a*A+s*I)*C,e[6]=(_*v-f*S-g*x)*C,e[7]=(u*S-d*v+p*x)*C,e[8]=(n*E-o*A+h*T)*C,e[9]=(r*A-i*E-s*T)*C,e[10]=(f*w-m*v+g*y)*C,e[11]=(c*v-u*w-p*y)*C,e[12]=(o*I-n*M-l*T)*C,e[13]=(i*M-r*I+a*T)*C,e[14]=(m*x-f*b-_*y)*C,e[15]=(u*b-c*x+d*y)*C,e):null},e.at=oX,e.au=n1,e.av=oY,e.aw=function(){let e={},t=eu.$version;for(let i in eu.$root){let r=eu.$root[i];if(r.required){let a=null;null!=(a="version"===i?t:"array"===r.type?[]:{})&&(e[i]=a)}}return e},e.ax=ep,e.ay=rs,e.az=Q,e.b=function(e,t){createImageBitmap(new Blob([new Uint8Array(e)],{type:"image/png"})).then(e=>{t(null,e)}).catch(e=>{t(Error(`Could not load image because of ${e.message}. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.`))})},e.b0=aE,e.b1=function(e,t){var i=e[0],r=e[1],a=e[2],s=e[3],n=e[4],o=e[5],l=e[6],h=e[7],u=e[8],c=e[9],d=e[10],p=e[11],f=e[12],m=e[13],_=e[14],g=e[15],y=t[0],x=t[1],v=t[2],b=t[3],w=t[4],S=t[5],T=t[6],I=t[7],A=t[8],M=t[9],E=t[10],k=t[11],C=t[12],P=t[13],z=t[14],D=t[15];return Math.abs(i-y)<=1e-6*Math.max(1,Math.abs(i),Math.abs(y))&&Math.abs(r-x)<=1e-6*Math.max(1,Math.abs(r),Math.abs(x))&&Math.abs(a-v)<=1e-6*Math.max(1,Math.abs(a),Math.abs(v))&&Math.abs(s-b)<=1e-6*Math.max(1,Math.abs(s),Math.abs(b))&&Math.abs(n-w)<=1e-6*Math.max(1,Math.abs(n),Math.abs(w))&&Math.abs(o-S)<=1e-6*Math.max(1,Math.abs(o),Math.abs(S))&&Math.abs(l-T)<=1e-6*Math.max(1,Math.abs(l),Math.abs(T))&&Math.abs(h-I)<=1e-6*Math.max(1,Math.abs(h),Math.abs(I))&&Math.abs(u-A)<=1e-6*Math.max(1,Math.abs(u),Math.abs(A))&&Math.abs(c-M)<=1e-6*Math.max(1,Math.abs(c),Math.abs(M))&&Math.abs(d-E)<=1e-6*Math.max(1,Math.abs(d),Math.abs(E))&&Math.abs(p-k)<=1e-6*Math.max(1,Math.abs(p),Math.abs(k))&&Math.abs(f-C)<=1e-6*Math.max(1,Math.abs(f),Math.abs(C))&&Math.abs(m-P)<=1e-6*Math.max(1,Math.abs(m),Math.abs(P))&&Math.abs(_-z)<=1e-6*Math.max(1,Math.abs(_),Math.abs(z))&&Math.abs(g-D)<=1e-6*Math.max(1,Math.abs(g),Math.abs(D))},e.b2=function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],e[9]=t[9],e[10]=t[10],e[11]=t[11],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15],e},e.b3=function(e,t,i){return e[0]=t[0]*i[0],e[1]=t[1]*i[1],e[2]=t[2]*i[2],e[3]=t[3]*i[3],e},e.b4=function(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]+e[3]*t[3]},e.b5=B,e.b6=ob,e.b7=function(e,t){return e/op(t)},e.b8=function(e,t,i,r,a){var s,n=1/Math.tan(t/2);return e[0]=n/i,e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=n,e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[11]=-1,e[12]=0,e[13]=0,e[15]=0,null!=a&&a!==1/0?(e[10]=(a+r)*(s=1/(r-a)),e[14]=2*a*r*s):(e[10]=-1,e[14]=-2*r),e},e.b9=function(e,t,i){var r=Math.sin(i),a=Math.cos(i),s=t[4],n=t[5],o=t[6],l=t[7],h=t[8],u=t[9],c=t[10],d=t[11];return t!==e&&(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[12]=t[12],e[13]=t[13],e[14]=t[14],e[15]=t[15]),e[4]=s*a+h*r,e[5]=n*a+u*r,e[6]=o*a+c*r,e[7]=l*a+d*r,e[8]=h*a-s*r,e[9]=u*a-n*r,e[10]=c*a-o*r,e[11]=d*a-l*r,e},e.bA=S,e.bB=nS,e.bC=ix,e.bD=rw,e.ba=D,e.bb=L,e.bc=function(e,t){return e[0]=t[0],e[1]=0,e[2]=0,e[3]=0,e[4]=0,e[5]=t[1],e[6]=0,e[7]=0,e[8]=0,e[9]=0,e[10]=t[2],e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,e},e.bd=class extends rG{},e.be=6371008.8,e.bf=o_,e.bg={mark(e){performance.mark(e)},frame(e){null!=o1&&o2.push(e-o1),o1=e},clearMetrics(){for(let t in o1=null,o2=[],performance.clearMeasures(o3),performance.clearMeasures(o4),e.bh)performance.clearMarks(e.bh[t])},getPerformanceMetrics(){performance.measure(o3,e.bh.create,e.bh.load),performance.measure(o4,e.bh.create,e.bh.fullLoad);let t=performance.getEntriesByName(o3)[0].duration,i=performance.getEntriesByName(o4)[0].duration,r=o2.length,a=1/(o2.reduce((e,t)=>e+t,0)/r/1e3),s=o2.filter(e=>e>o5).reduce((e,t)=>e+(t-o5)/o5,0);return{loadTime:t,fullLoadTime:i,fps:a,percentDroppedFrames:s/(r+s)*100,totalFrames:r}}},e.bi=J,e.bj=function(e,t,i=!1){if(rm===rc||rm===rd||rm===rp)throw Error("setRTLTextPlugin cannot be called multiple times.");r_=K.resolveURL(e),rm=rc,rf=t,ry(),i||rb()},e.bk=rv,e.bl=function(e,t){let i={};for(let r=0;r24*e)}let x=o?"center":r.get("text-justify").evaluate(a,{},t.canonical),v=r.get("symbol-placement"),b="point"===v?24*r.get("text-max-width").evaluate(a,{},t.canonical):0,w=()=>{t.bucket.allowVerticalPlacement&&ro(s)&&(f.vertical=nW(m,t.glyphMap,t.glyphPositions,t.imagePositions,u,b,n,_,"left",p,g,e.ai.vertical,!0,v,d,c))};if(!o&&y){let i=new Set;if("auto"===x)for(let e=0;e{p.x<0||p.x>=8192||p.y<0||p.y>=8192||function(t,i,r,a,s,n,o,l,h,u,c,d,p,f,m,_,g,y,x,v,b,w,S,T,I){let A=t.addToLineVertexArray(i,r),M,E,k,C,P=0,z=0,D=0,L=0,R=-1,B=-1,F={},O=aV("");if(t.allowVerticalPlacement&&a.vertical){let e=l.layout.get("text-rotate").evaluate(b,{},T)+90;k=new oV(h,i,u,c,d,a.vertical,p,f,m,e),o&&(C=new oV(h,i,u,c,d,o,g,y,m,e))}if(s){let r=l.layout.get("icon-rotate").evaluate(b,{}),a="none"!==l.layout.get("icon-text-fit"),n=oB(s,r,S,a),p=o?oB(o,r,S,a):void 0;E=new oV(h,i,u,c,d,s,g,y,!1,r),P=4*n.length;let f=t.iconSizeData,m=null;"source"===f.kind?(m=[128*l.layout.get("icon-size").evaluate(b,{})])[0]>32640&&j(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`):"composite"===f.kind&&((m=[128*w.compositeIconSizes[0].evaluate(b,{},T),128*w.compositeIconSizes[1].evaluate(b,{},T)])[0]>32640||m[1]>32640)&&j(`${t.layerIds[0]}: Value for "icon-size" is >= 255. Reduce your "icon-size".`),t.addSymbols(t.icon,n,m,v,x,b,e.ai.none,i,A.lineStartIndex,A.lineLength,-1,T),R=t.icon.placedSymbolArray.length-1,p&&(z=4*p.length,t.addSymbols(t.icon,p,m,v,x,b,e.ai.vertical,i,A.lineStartIndex,A.lineLength,-1,T),B=t.icon.placedSymbolArray.length-1)}let V=Object.keys(a.horizontal);for(let r of V){let s=a.horizontal[r];if(!M){O=aV(s.text);M=new oV(h,i,u,c,d,s,p,f,m,l.layout.get("text-rotate").evaluate(b,{},T))}let o=1===s.positionedLines.length;if(D+=oW(t,i,s,n,l,m,b,_,A,a.vertical?e.ai.horizontal:e.ai.horizontalOnly,o?V:[r],F,R,w,T),o)break}a.vertical&&(L+=oW(t,i,a.vertical,n,l,m,b,_,A,e.ai.vertical,["vertical"],F,B,w,T));let N=M?M.boxStartIndex:t.collisionBoxArray.length,U=M?M.boxEndIndex:t.collisionBoxArray.length,$=k?k.boxStartIndex:t.collisionBoxArray.length,q=k?k.boxEndIndex:t.collisionBoxArray.length,Z=E?E.boxStartIndex:t.collisionBoxArray.length,G=E?E.boxEndIndex:t.collisionBoxArray.length,X=C?C.boxStartIndex:t.collisionBoxArray.length,W=C?C.boxEndIndex:t.collisionBoxArray.length,H=-1,K=(e,t)=>e&&e.circleDiameter?Math.max(e.circleDiameter,t):t;H=K(M,-1),H=K(k,H),H=K(E,H);let Y=+((H=K(C,H))>-1);Y&&(H*=I/24),t.glyphOffsetArray.length>=ot.MAX_GLYPHS&&j("Too many glyphs being rendered in a tile. See https://github.com/mapbox/mapbox-gl-js/issues/2907"),void 0!==b.sortKey&&t.addToSortKeyRanges(t.symbolInstances.length,b.sortKey);let J=oG(l,b,T),[Q,ee]=function(t,i){let r=t.length,a=null==i?void 0:i.values;if((null==a?void 0:a.length)>0)for(let i=0;i=0?F.right:-1,F.center>=0?F.center:-1,F.left>=0?F.left:-1,F.vertical||-1,R,B,O,N,U,$,q,Z,G,X,W,u,D,L,P,z,Y,0,p,H,Q,ee)}(t,p,l,r,a,s,d,t.layers[0],t.collisionBoxArray,i.index,i.sourceLayerIndex,t.index,y,[w,w,w,w],I,h,v,S,A,m,i,n,u,c,o)};if("line"===M)for(let e of oP(i.geometry,0,0,8192,8192))for(let i of function(e,t,i,r,a,s,n,o,l){let h=r?.6*24*n:0,u=oR(r,a),c=u*n,d=0===e[0].x||8192===e[0].x||0===e[0].y||8192===e[0].y;return t-c=0&&g=0&&y=0&&p+u<=c){let i=new oz(g,y,m,e);i._round(),a&&!oD(t,i,n,a,s)||f.push(i)}}d+=l}return l||f.length||o||(f=e(t,d/2,r,a,s,n,o,!0,h)),f}(e,d?t/2*o%t:(u/2+48)*n*o%t,t,h,i,c,d,!1,l)}(e,b,T,r.vertical||_,a,24,x,t.overscaling,8192))_&&function(e,t,i,r){let a=e.compareText;if(t in a){let e=a[t];for(let t=e.length-1;t>=0;t--)if(r.dist(e[t])1){let t=function(e,t,i,r,a,s){let n=i?.6*24*s:0,o=oR(i,r)*s,l=0,h=oL(e)/2;for(let i=0;ih){let u=(h-l)/s,c=new oz(tO.number(r.x,a.x,u),tO.number(r.y,a.y,u),a.angleTo(r),i);return c._round(),!n||oD(e,c,o,n,t)?c:void 0}l+=s}}(e,T,r.vertical||_,a,0,x);t&&P(e,t)}}else if("Polygon"===i.type)for(let e of sW(i.geometry,0)){let t=function(e,t=1,i=!1){let r=1/0,a=1/0,s=-1/0,n=-1/0,o=e[0];for(let e=0;es)&&(s=t.x),(!e||t.y>n)&&(n=t.y)}let l=Math.min(s-r,n-a),h=l/2,u=new oN([],o$);if(0===l)return new E(r,a);for(let t=r;tc.d||!c.d)&&(c=r,i&&console.log("found best %d after %d probes",Math.round(1e4*r.d)/1e4,d)),r.max-c.d<=t||(h=r.h/2,u.push(new oj(r.p.x-h,r.p.y-h,h,e)),u.push(new oj(r.p.x+h,r.p.y-h,h,e)),u.push(new oj(r.p.x-h,r.p.y+h,h,e)),u.push(new oj(r.p.x+h,r.p.y+h,h,e)),d+=4)}return i&&(console.log(`num probes: ${d}`),console.log(`best distance: ${c.d}`)),c.p}(e,16);P(e[0],new oz(t.x,t.y,0))}else if("LineString"===i.type)for(let e of i.geometry)P(e,new oz(e[0].x,e[0].y,0));else if("Point"===i.type)for(let e of i.geometry)for(let t of e)P([t],new oz(t.x,t.y,0))}(t.bucket,a,f,_,t.imageMap,s,d,p,g,y,t.canonical)}t.showCollisionBoxes&&t.bucket.generateCollisionDebugBuffers()},e.br=nc,e.bs=sJ,e.bt=ni,e.bu=class{constructor(e){this._marks={start:[e.url,"start"].join("#"),end:[e.url,"end"].join("#"),measure:e.url.toString()},performance.mark(this._marks.start)}finish(){performance.mark(this._marks.end);let e=performance.getEntriesByName(this._marks.measure);return 0===e.length&&(performance.measure(this._marks.measure,this._marks.start,this._marks.end),e=performance.getEntriesByName(this._marks.measure),performance.clearMarks(this._marks.start),performance.clearMarks(this._marks.end),performance.clearMeasures(this._marks.measure)),e}},e.bv=nV,e.bw=s3,e.bx=function(e,t,i,s,n){return b(this,void 0,void 0,function*(){if(z())try{return yield H(e,t,i,s,n)}catch(e){}let o=e.width,l=e.height;r&&a||(a=(r=new OffscreenCanvas(o,l)).getContext("2d",{willReadFrequently:!0})),r.width=o,r.height=l,a.drawImage(e,0,0,o,l);let h=a.getImageData(t,i,s,n);return a.clearRect(0,0,o,l),h.data})},e.by=oT,e.bz=w,e.c=Y,e.d=function(e,t){let i=new Image;i.onload=()=>{t(null,i),URL.revokeObjectURL(i.src),i.onload=null,window.requestAnimationFrame(()=>{i.src=W})},i.onerror=()=>t(Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported."));let r=new Blob([new Uint8Array(e)],{type:"image/png"});i.src=e.byteLength?URL.createObjectURL(r):W},e.e=F,e.f=function(e,t){return ei(F(e,{type:"json"}),t)},e.g=ee,e.h=K,e.i=Z,e.j=el,e.k=eo,e.l=er,e.m=ei,e.n=function(e){return new nV(e).readFields(nN,[])},e.o=function(e,t,i){if(!e.length)return i(null,[]);let r=e.length,a=Array(e.length),s=null;e.forEach((e,n)=>{t(e,(e,t)=>{e&&(s=e),a[n]=t,0==--r&&i(s,a)})})},e.p=nj,e.q=sv,e.r=rF,e.s=ea,e.t=i4,e.u=rn,e.v=eu,e.w=j,e.x=i9,e.y=i1,e.z=function([e,t,i]){return t+=90,{x:e*Math.cos(t*=Math.PI/180)*Math.sin(i*=Math.PI/180),y:e*Math.sin(t)*Math.sin(i),z:e*Math.cos(i)}}}),r(["./shared"],function(e){class t{constructor(e){this.keyCache={},e&&this.replace(e)}replace(e){this._layerConfigs={},this._layers={},this.update(e,[])}update(t,i){for(let i of t){this._layerConfigs[i.id]=i;let t=this._layers[i.id]=e.aC(i);t._featureFilter=e.a6(t.filter),this.keyCache[i.id]&&delete this.keyCache[i.id]}for(let e of i)delete this.keyCache[e],delete this._layerConfigs[e],delete this._layers[e];for(let t of(this.familiesBySource={},e.bl(Object.values(this._layerConfigs),this.keyCache))){let e=t.map(e=>this._layers[e.id]),i=e[0];if("none"===i.visibility)continue;let r=i.source||"",a=this.familiesBySource[r];a||(a=this.familiesBySource[r]={});let s=i.sourceLayer||"_geojsonTileLayer",n=a[s];n||(n=a[s]=[]),n.push(e)}}}class i{constructor(t){let i={},r=[];for(let e in t){let a=t[e],s=i[e]={};for(let e in a){let t=a[+e];if(!t||0===t.bitmap.width||0===t.bitmap.height)continue;let i={x:0,y:0,w:t.bitmap.width+2,h:t.bitmap.height+2};r.push(i),s[e]={rect:i,metrics:t.metrics}}}let{w:a,h:s}=e.p(r),n=new e.q({width:a||1,height:s||1});for(let r in t){let a=t[r];for(let t in a){let s=a[+t];if(!s||0===s.bitmap.width||0===s.bitmap.height)continue;let o=i[r][t].rect;e.q.copy(s.bitmap,n,{x:0,y:0},{x:o.x+1,y:o.y+1},s.bitmap)}}this.image=n,this.positions=i}}e.bm("GlyphAtlas",i);class r{constructor(t){this.tileID=new e.O(t.tileID.overscaledZ,t.tileID.wrap,t.tileID.canonical.z,t.tileID.canonical.x,t.tileID.canonical.y),this.uid=t.uid,this.zoom=t.zoom,this.pixelRatio=t.pixelRatio,this.tileSize=t.tileSize,this.source=t.source,this.overscaling=this.tileID.overscaleFactor(),this.showCollisionBoxes=t.showCollisionBoxes,this.collectResourceTiming=!!t.collectResourceTiming,this.returnDependencies=!!t.returnDependencies,this.promoteId=t.promoteId,this.inFlightDependencies=[],this.dependencySentinel=-1}parse(t,r,s,n,o){let l,h,u,c;this.status="parsing",this.data=t,this.collisionBoxArray=new e.a3;let d=new e.bn(Object.keys(t.layers).sort()),p=new e.bo(this.tileID,this.promoteId);p.bucketLayerIDs=[];let f={},m={featureIndex:p,iconDependencies:{},patternDependencies:{},glyphDependencies:{},availableImages:s},_=r.familiesBySource[this.source];for(let i in _){let r=t.layers[i];if(!r)continue;1===r.version&&e.w(`Vector tile source "${this.source}" layer "${i}" does not use vector tile spec v2 and therefore may have some rendering errors.`);let n=d.encode(i),o=[];for(let e=0;e=i.maxzoom||"none"!==i.visibility&&(a(t,this.zoom,s),(f[i.id]=i.createBucket({index:p.bucketLayerIDs.length,layers:t,zoom:this.zoom,pixelRatio:this.pixelRatio,overscaling:this.overscaling,collisionBoxArray:this.collisionBoxArray,sourceLayerIndex:n,sourceID:this.source})).populate(o,m,this.tileID.canonical),p.bucketLayerIDs.push(t.map(e=>e.id)))}}let g=e.aH(m.glyphDependencies,e=>Object.keys(e).map(Number));this.inFlightDependencies.forEach(e=>null==e?void 0:e.cancel()),this.inFlightDependencies=[];let y=++this.dependencySentinel;Object.keys(g).length?this.inFlightDependencies.push(n.send("getGlyphs",{uid:this.uid,stacks:g,source:this.source,tileID:this.tileID,type:"glyphs"},(e,t)=>{y===this.dependencySentinel&&(l||(l=e,h=t,b.call(this)))})):h={};let x=Object.keys(m.iconDependencies);x.length?this.inFlightDependencies.push(n.send("getImages",{icons:x,source:this.source,tileID:this.tileID,type:"icons"},(e,t)=>{y===this.dependencySentinel&&(l||(l=e,u=t,b.call(this)))})):u={};let v=Object.keys(m.patternDependencies);function b(){if(l)return o(l);if(h&&u&&c){let t=new i(h),r=new e.bp(u,c);for(let i in f){let n=f[i];n instanceof e.a4?(a(n.layers,this.zoom,s),e.bq({bucket:n,glyphMap:h,glyphPositions:t.positions,imageMap:u,imagePositions:r.iconPositions,showCollisionBoxes:this.showCollisionBoxes,canonical:this.tileID.canonical})):n.hasPattern&&(n instanceof e.br||n instanceof e.bs||n instanceof e.bt)&&(a(n.layers,this.zoom,s),n.addFeatures(m,this.tileID.canonical,r.patternPositions))}this.status="done",o(null,{buckets:Object.values(f).filter(e=>!e.isEmpty()),featureIndex:p,collisionBoxArray:this.collisionBoxArray,glyphAtlasImage:t.image,imageAtlas:r,glyphMap:this.returnDependencies?h:null,iconMap:this.returnDependencies?u:null,glyphPositions:this.returnDependencies?t.positions:null})}}v.length?this.inFlightDependencies.push(n.send("getImages",{icons:v,source:this.source,tileID:this.tileID,type:"patterns"},(e,t)=>{y===this.dependencySentinel&&(l||(l=e,c=t,b.call(this)))})):c={},b.call(this)}}function a(t,i,r){let a=new e.a8(i);for(let e of t)e.recalculate(a,r)}function s(t,i){let r=e.l(t.request,(r,a,s,n)=>{if(r)i(r);else if(a)try{let t=new e.bw.VectorTile(new e.bv(a));i(null,{vectorTile:t,rawData:a,cacheControl:s,expires:n})}catch(s){let e=new Uint8Array(a),r=`Unable to parse the tile at ${t.request.url}, `;i(Error(r+=31===e[0]&&139===e[1]?"please make sure the data is not gzipped and that you have configured the relevant header in the server":`got error: ${s.messge}`))}});return()=>{r.cancel(),i()}}class n{constructor(e,t,i,r){this.actor=e,this.layerIndex=t,this.availableImages=i,this.loadVectorData=r||s,this.fetching={},this.loading={},this.loaded={}}loadTile(t,i){let a=t.uid;this.loading||(this.loading={});let s=!!(t&&t.request&&t.request.collectResourceTiming)&&new e.bu(t.request),n=this.loading[a]=new r(t);n.abort=this.loadVectorData(t,(t,r)=>{if(delete this.loading[a],t||!r)return n.status="done",this.loaded[a]=n,i(t);let o=r.rawData,l={};r.expires&&(l.expires=r.expires),r.cacheControl&&(l.cacheControl=r.cacheControl);let h={};if(s){let e=s.finish();e&&(h.resourceTiming=JSON.parse(JSON.stringify(e)))}n.vectorTile=r.vectorTile,n.parse(r.vectorTile,this.layerIndex,this.availableImages,this.actor,(t,r)=>{if(delete this.fetching[a],t||!r)return i(t);i(null,e.e({rawTileData:o.slice(0)},r,l,h))}),this.loaded=this.loaded||{},this.loaded[a]=n,this.fetching[a]={rawTileData:o,cacheControl:l,resourceTiming:h}})}reloadTile(t,i){let r=this.loaded,a=t.uid;if(r&&r[a]){let s=r[a];s.showCollisionBoxes=t.showCollisionBoxes,"parsing"===s.status?s.parse(s.vectorTile,this.layerIndex,this.availableImages,this.actor,(t,r)=>{let s;if(t||!r)return i(t,r);if(this.fetching[a]){let{rawTileData:t,cacheControl:i,resourceTiming:n}=this.fetching[a];delete this.fetching[a],s=e.e({rawTileData:t.slice(0)},r,i,n)}else s=r;i(null,s)}):"done"===s.status&&(s.vectorTile?s.parse(s.vectorTile,this.layerIndex,this.availableImages,this.actor,i):i())}}abortTile(e,t){let i=this.loading,r=e.uid;i&&i[r]&&i[r].abort&&(i[r].abort(),delete i[r]),t()}removeTile(e,t){let i=this.loaded,r=e.uid;i&&i[r]&&delete i[r],t()}}class o{constructor(){this.loaded={}}loadTile(t,i){return e._(this,void 0,void 0,function*(){let{uid:r,encoding:a,rawImageData:s,redFactor:n,greenFactor:o,blueFactor:l,baseShift:h}=t,u=s.width+2,c=s.height+2,d=e.a(s)?new e.R({width:u,height:c},(yield e.bx(s,-1,-1,u,c))):s,p=new e.by(r,d,a,n,o,l,h);this.loaded=this.loaded||{},this.loaded[r]=p,i(null,p)})}removeTile(e){let t=this.loaded,i=e.uid;t&&t[i]&&delete t[i]}}function l(e,t){if(0!==e.length){h(e[0],t);for(var i=1;i=Math.abs(o)?i-l+o:o-l+i,i=l}i+r>=0!=!!t&&e.reverse()}var u,c=e.bz(function e(t,i){var r,a=t&&t.type;if("FeatureCollection"===a)for(r=0;r>31),t.writeVarint(p<<1^p>>31),a+=d,s+=p}3===r&&t.writeVarint(15)}}function T(e,t){var i=typeof e;"string"===i?t.writeStringField(1,e):"boolean"===i?t.writeBooleanField(7,e):"number"===i&&(e%1!=0?t.writeDoubleField(3,e):e<0?t.writeSVarintField(6,e):t.writeVarintField(5,e))}p.exports=x,p.exports.fromVectorTileJs=x,p.exports.fromGeojsonVt=function(e,t){t=t||{};var i={};for(var r in e)i[r]=new _(e[r].features,t),i[r].name=r,i[r].version=t.version,i[r].extent=t.extent;return x({layers:i})},p.exports.GeoJSONWrapper=_;var I=e.bz(p.exports);let A={minZoom:0,maxZoom:16,minPoints:2,radius:40,extent:512,nodeSize:64,log:!1,generateId:!1,reduce:null,map:e=>e},M=Math.fround||(u=new Float32Array(1),e=>(u[0]=+e,u[0]));class E{constructor(e){this.options=Object.assign(Object.create(A),e),this.trees=Array(this.options.maxZoom+1),this.stride=this.options.reduce?7:6,this.clusterProps=[]}load(e){let{log:t,minZoom:i,maxZoom:r}=this.options;t&&console.time("total time");let a=`prepare ${e.length} points`;t&&console.time(a),this.points=e;let s=[];for(let t=0;t=i;e--){let i=+Date.now();n=this.trees[e]=this._createTree(this._cluster(n,e)),t&&console.log("z%d: %d clusters in %dms",e,n.numItems,Date.now()-i)}return t&&console.timeEnd("total time"),this}getClusters(e,t){let i=((e[0]+180)%360+360)%360-180,r=Math.max(-90,Math.min(90,e[1])),a=180===e[2]?180:((e[2]+180)%360+360)%360-180,s=Math.max(-90,Math.min(90,e[3]));if(e[2]-e[0]>=360)i=-180,a=180;else if(i>a){let e=this.getClusters([i,r,180,s],t),n=this.getClusters([-180,r,a,s],t);return e.concat(n)}let n=this.trees[this._limitZoom(t)],o=n.range(P(i),z(s),P(a),z(r)),l=n.data,h=[];for(let e of o){let t=this.stride*e;h.push(l[t+5]>1?k(l,t,this.clusterProps):this.points[l[t+3]])}return h}getChildren(e){let t=this._getOriginId(e),i=this._getOriginZoom(e),r="No cluster with the specified id.",a=this.trees[i];if(!a)throw Error(r);let s=a.data;if(t*this.stride>=s.length)throw Error(r);let n=this.options.radius/(this.options.extent*Math.pow(2,i-1)),o=a.within(s[t*this.stride],s[t*this.stride+1],n),l=[];for(let t of o){let i=t*this.stride;s[i+4]===e&&l.push(s[i+5]>1?k(s,i,this.clusterProps):this.points[s[i+3]])}if(0===l.length)throw Error(r);return l}getLeaves(e,t,i){let r=[];return this._appendLeaves(r,e,t=t||10,i=i||0,0),r}getTile(e,t,i){let r=this.trees[this._limitZoom(e)],a=Math.pow(2,e),{extent:s,radius:n}=this.options,o=n/s,l=(i-o)/a,h=(i+1+o)/a,u={features:[]};return this._addTileFeatures(r.range((t-o)/a,l,(t+1+o)/a,h),r.data,t,i,a,u),0===t&&this._addTileFeatures(r.range(1-o/a,l,1,h),r.data,a,i,a,u),t===a-1&&this._addTileFeatures(r.range(0,l,o/a,h),r.data,-1,i,a,u),u.features.length?u:null}getClusterExpansionZoom(e){let t=this._getOriginZoom(e)-1;for(;t<=this.options.maxZoom;){let i=this.getChildren(e);if(t++,1!==i.length)break;e=i[0].properties.cluster_id}return t}_appendLeaves(e,t,i,r,a){for(let s of this.getChildren(t)){let t=s.properties;if(t&&t.cluster?a+t.point_count<=r?a+=t.point_count:a=this._appendLeaves(e,t.cluster_id,i,r,a):a1;if(c)e=C(t,u,this.clusterProps),o=t[u],l=t[u+1];else{let i=this.points[t[u+3]];e=i.properties;let[r,a]=i.geometry.coordinates;o=P(r),l=z(a)}let d={type:1,geometry:[[Math.round(this.options.extent*(o*a-i)),Math.round(this.options.extent*(l*a-r))]],tags:e};void 0!==(h=c||this.options.generateId?t[u+3]:this.points[t[u+3]].id)&&(d.id=h),s.features.push(d)}}_limitZoom(e){return Math.max(this.options.minZoom,Math.min(Math.floor(+e),this.options.maxZoom+1))}_cluster(e,t){let{radius:i,extent:r,reduce:a,minPoints:s}=this.options,n=i/(r*Math.pow(2,t)),o=e.data,l=[],h=this.stride;for(let i=0;it&&(p+=o[i+5])}if(p>d&&p>=s){let e,s=r*d,n=u*d,f=-1,m=((i/h|0)<<5)+(t+1)+this.points.length;for(let r of c){let l=r*h;if(o[l+2]<=t)continue;o[l+2]=t;let u=o[l+5];s+=o[l]*u,n+=o[l+1]*u,o[l+4]=m,a&&(e||(e=this._map(o,i,!0),f=this.clusterProps.length,this.clusterProps.push(e)),a(e,this._map(o,l)))}o[i+4]=m,l.push(s/p,n/p,1/0,m,-1,p),a&&l.push(f)}else{for(let e=0;e1)for(let e of c){let i=e*h;if(!(o[i+2]<=t)){o[i+2]=t;for(let e=0;e>5}_getOriginZoom(e){return(e-this.points.length)%32}_map(e,t,i){if(e[t+5]>1){let r=this.clusterProps[e[t+6]];return i?Object.assign({},r):r}let r=this.points[e[t+3]].properties,a=this.options.map(r);return i&&a===r?Object.assign({},a):a}}function k(e,t,i){return{type:"Feature",id:e[t+3],properties:C(e,t,i),geometry:{type:"Point",coordinates:[360*(e[t]-.5),360*Math.atan(Math.exp((180-360*e[t+1])*Math.PI/180))/Math.PI-90]}}}function C(e,t,i){let r=e[t+5],a=r>=1e4?`${Math.round(r/1e3)}k`:r>=1e3?Math.round(r/100)/10+"k":r,s=e[t+6];return Object.assign(-1===s?{}:Object.assign({},i[s]),{cluster:!0,cluster_id:e[t+3],point_count:r,point_count_abbreviated:a})}function P(e){return e/360+.5}function z(e){let t=Math.sin(e*Math.PI/180),i=.5-.25*Math.log((1+t)/(1-t))/Math.PI;return i<0?0:i>1?1:i}function D(e,t,i,r){var a={id:void 0===e?null:e,type:t,geometry:i,tags:r,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0};return function(e){var t=e.geometry,i=e.type;if("Point"===i||"MultiPoint"===i||"LineString"===i)L(e,t);else if("Polygon"===i||"MultiLineString"===i)for(var r=0;r0&&(n+=r?(a*h-l*s)/2:Math.sqrt(Math.pow(l-a,2)+Math.pow(h-s,2))),a=l,s=h}var u=t.length-3;t[2]=1,function e(t,i,r,a){for(var s,n=a,o=r-i>>1,l=r-i,h=t[i],u=t[i+1],c=t[r],d=t[r+1],p=i+3;p1?(i=a,r=s):l>0&&(i+=n*l,r+=o*l)}return(n=e-i)*n+(o=t-r)*o}(t[p],t[p+1],h,u,c,d);if(f>n)s=p,n=f;else if(f===n){var m=Math.abs(p-o);ma&&(s-i>3&&e(t,i,s,a),t[s+2]=n,r-s>3&&e(t,s,r,a))}(t,0,u,i),t[u+2]=1,t.size=Math.abs(n),t.start=0,t.end=t.size}function O(e,t,i,r){for(var a=0;a1?1:i}function N(e,t,i,r,a,s,n,o){if(r/=t,s>=(i/=t)&&n=r)return null;for(var l=[],h=0;h=i&&f=r)){var m=[];if("Point"===d||"MultiPoint"===d){for(var _=c,g=m,y=i,x=r,v=a,b=0;b<_.length;b+=3){var w=_[b+v];w>=y&&w<=x&&(g.push(_[b]),g.push(_[b+1]),g.push(_[b+2]))}}else if("LineString"===d)U(c,m,i,r,a,!1,o.lineMetrics);else if("MultiLineString"===d)j(c,m,i,r,a,!1);else if("Polygon"===d)j(c,m,i,r,a,!0);else if("MultiPolygon"===d)for(var S=0;Si&&(l=u(h,p,f,_,g,i),n&&(h.start=c+o*l)):y>r?x=i&&(l=u(h,p,f,_,g,i),v=!0),x>r&&y<=r&&(l=u(h,p,f,_,g,r),v=!0),!s&&v&&(n&&(h.end=c+o*l),t.push(h),h=$(e)),n&&(c+=o)}var b=e.length-3;p=e[b],f=e[b+1],m=e[b+2],(y=0===a?p:f)>=i&&y<=r&&q(h,p,f,m),b=h.length-3,s&&b>=3&&(h[b]!==h[0]||h[b+1]!==h[1])&&q(h,h[0],h[1],h[2]),h.length&&t.push(h)}function $(e){var t=[];return t.size=e.size,t.start=e.start,t.end=e.end,t}function j(e,t,i,r,a,s){for(var n=0;n0&&t.size<(a?n:r))i.numPoints+=t.length/3;else{for(var o=[],l=0;ln)&&(i.numSimplified++,o.push(t[l]),o.push(t[l+1])),i.numPoints++;a&&function(e,t){for(var i=0,r=0,a=e.length,s=a-2;r0===t)for(r=0,a=e.length;r24)throw Error("maxZoom should be in the 0-24 range");if(t.promoteId&&t.generateId)throw Error("promoteId and generateId cannot be used together.");var h=function(e,t){var i=[];if("FeatureCollection"===e.type)for(var r=0;r1&&console.time("creation"),d=this.tiles[c]=function(e,t,i,r,a){for(var s=t===a.maxZoom?0:a.tolerance/((1<n.maxX&&(n.maxX=u),c>n.maxY&&(n.maxY=c)}return n}(e,t,i,r,l),this.tileCoords.push({z:t,x:i,y:r}),h)){h>1&&(console.log("tile z%d-%d-%d (features: %d, points: %d, simplified: %d)",t,i,r,d.numFeatures,d.numPoints,d.numSimplified),console.timeEnd("creation"));var p="z"+t;this.stats[p]=(this.stats[p]||0)+1,this.total++}if(d.source=e,a){if(t===l.maxZoom||t===a)continue;var f=1<1&&console.time("clipping");var m,_,g,y,x,v,b=.5*l.buffer/l.extent,w=.5-b,S=.5+b,T=1+b;m=_=g=y=null,x=N(e,u,i-b,i+S,0,d.minX,d.maxX,l),v=N(e,u,i+w,i+T,0,d.minX,d.maxX,l),e=null,x&&(m=N(x,u,r-b,r+S,1,d.minY,d.maxY,l),_=N(x,u,r+w,r+T,1,d.minY,d.maxY,l),x=null),v&&(g=N(v,u,r-b,r+S,1,d.minY,d.maxY,l),y=N(v,u,r+w,r+T,1,d.minY,d.maxY,l),v=null),h>1&&console.timeEnd("clipping"),o.push(m||[],t+1,2*i,2*r),o.push(_||[],t+1,2*i,2*r+1),o.push(g||[],t+1,2*i+1,2*r),o.push(y||[],t+1,2*i+1,2*r+1)}}},J.prototype.getTile=function(e,t,i){var r=this.options,a=r.extent,s=r.debug;if(e<0||e>24)return null;var n=1<1&&console.log("drilling down to z%d-%d-%d",e,t,i);for(var l,h=e,u=t,c=i;!l&&h>0;)h--,u=Math.floor(u/2),c=Math.floor(c/2),l=this.tiles[Q(h,u,c)];return l&&l.source?(s>1&&console.log("found parent tile z%d-%d-%d",h,u,c),s>1&&console.time("drilling down"),this.splitTile(l.source,h,u,c,e,t,i),s>1&&console.timeEnd("drilling down"),this.tiles[o]?H(this.tiles[o],a):null):null};class er extends n{constructor(t,i,r,a){super(t,i,r),this._dataUpdateable=new Map,this.loadGeoJSON=(t,i)=>{let{promoteId:r}=t;if(t.request)return e.f(t.request,(e,t,a,s)=>{this._dataUpdateable=et(t,r)?ei(t,r):void 0,i(e,t,a,s)});if("string"==typeof t.data)try{let e=JSON.parse(t.data);this._dataUpdateable=et(e,r)?ei(e,r):void 0,i(null,e)}catch(e){i(Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`))}else t.dataDiff?this._dataUpdateable?(function(e,t,i){var r,a,s,n;if(t.removeAll&&e.clear(),t.remove)for(let i of t.remove)e.delete(i);if(t.add)for(let r of t.add){let t=ee(r,i);null!=t&&e.set(t,r)}if(t.update)for(let i of t.update){let t=e.get(i.id);if(null==t)continue;let o=!i.removeAllProperties&&((null==(r=i.removeProperties)?void 0:r.length)>0||(null==(a=i.addOrUpdateProperties)?void 0:a.length)>0);if((i.newGeometry||i.removeAllProperties||o)&&(t=Object.assign({},t),e.set(i.id,t),o&&(t.properties=Object.assign({},t.properties))),i.newGeometry&&(t.geometry=i.newGeometry),i.removeAllProperties)t.properties={};else if((null==(s=i.removeProperties)?void 0:s.length)>0)for(let e of i.removeProperties)Object.prototype.hasOwnProperty.call(t.properties,e)&&delete t.properties[e];if((null==(n=i.addOrUpdateProperties)?void 0:n.length)>0)for(let{key:e,value:r}of i.addOrUpdateProperties)t.properties[e]=r}}(this._dataUpdateable,t.dataDiff,r),i(null,{type:"FeatureCollection",features:Array.from(this._dataUpdateable.values())})):i(Error(`Cannot update existing geojson data in ${t.source}`)):i(Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`));return{cancel:()=>{}}},this.loadVectorData=this.loadGeoJSONTile,a&&(this.loadGeoJSON=a)}loadGeoJSONTile(t,i){let r=t.tileID.canonical;if(!this._geoJSONIndex)return i(null,null);let a=this._geoJSONIndex.getTile(r.z,r.x,r.y);if(!a)return i(null,null);let s=new class{constructor(t){this.layers={_geojsonTileLayer:this},this.name="_geojsonTileLayer",this.extent=e.N,this.length=t.length,this._features=t}feature(t){return new class{constructor(t){this._feature=t,this.extent=e.N,this.type=t.type,this.properties=t.tags,"id"in t&&!isNaN(t.id)&&(this.id=parseInt(t.id,10))}loadGeometry(){if(1===this._feature.type){let t=[];for(let i of this._feature.geometry)t.push([new e.P(i[0],i[1])]);return t}{let t=[];for(let i of this._feature.geometry){let r=[];for(let t of i)r.push(new e.P(t[0],t[1]));t.push(r)}return t}}toGeoJSON(e,t,i){return d.call(this,e,t,i)}}(this._features[t])}}(a.features),n=I(s);0===n.byteOffset&&n.byteLength===n.buffer.byteLength||(n=new Uint8Array(n)),i(null,{vectorTile:s,rawData:n.buffer})}loadData(t,i){var r;null==(r=this._pendingRequest)||r.cancel(),this._pendingCallback&&this._pendingCallback(null,{abandoned:!0});let a=!!(t&&t.request&&t.request.collectResourceTiming)&&new e.bu(t.request);this._pendingCallback=i,this._pendingRequest=this.loadGeoJSON(t,(r,s)=>{if(delete this._pendingCallback,delete this._pendingRequest,r||!s)return i(r);if("object"!=typeof s)return i(Error(`Input data given to '${t.source}' is not a valid GeoJSON object.`));{c(s,!0);try{var n,o;if(t.filter){let i=e.bC(t.filter,{type:"boolean","property-type":"data-driven",overridable:!1,transition:!1});if("error"===i.result)throw Error(i.value.map(e=>`${e.key}: ${e.message}`).join(", "));let r=s.features.filter(e=>i.value.evaluate({zoom:0},e));s={type:"FeatureCollection",features:r}}this._geoJSONIndex=t.cluster?new E(function({superclusterOptions:t,clusterProperties:i}){if(!i||!t)return t;let r={},a={},s={accumulated:null,zoom:0},n={properties:null},o=Object.keys(i);for(let t of o){let[s,n]=i[t],o=e.bC(n),l=e.bC("string"==typeof s?[s,["accumulated"],["get",t]]:s);r[t]=o.value,a[t]=l.value}return t.map=e=>{n.properties=e;let t={};for(let e of o)t[e]=r[e].evaluate(s,n);return t},t.reduce=(e,t)=>{for(let i of(n.properties=t,o))s.accumulated=e[i],e[i]=a[i].evaluate(s,n)},t}(t)).load(s.features):(n=s,o=t.geojsonVtOptions,new J(n,o))}catch(e){return i(e)}this.loaded={};let r={};if(a){let e=a.finish();e&&(r.resourceTiming={},r.resourceTiming[t.source]=JSON.parse(JSON.stringify(e)))}i(null,r)}})}reloadTile(e,t){let i=this.loaded;return i&&i[e.uid]?super.reloadTile(e,t):this.loadTile(e,t)}removeSource(e,t){this._pendingCallback&&this._pendingCallback(null,{abandoned:!0}),t()}getClusterExpansionZoom(e,t){try{t(null,this._geoJSONIndex.getClusterExpansionZoom(e.clusterId))}catch(e){t(e)}}getClusterChildren(e,t){try{t(null,this._geoJSONIndex.getChildren(e.clusterId))}catch(e){t(e)}}getClusterLeaves(e,t){try{t(null,this._geoJSONIndex.getLeaves(e.clusterId,e.limit,e.offset))}catch(e){t(e)}}}class ea{constructor(t){this.self=t,this.actor=new e.C(t,this),this.layerIndexes={},this.availableImages={},this.workerSourceTypes={vector:n,geojson:er},this.workerSources={},this.demWorkerSources={},this.self.registerWorkerSource=(e,t)=>{if(this.workerSourceTypes[e])throw Error(`Worker source with name "${e}" already registered.`);this.workerSourceTypes[e]=t},this.self.registerRTLTextPlugin=t=>{if(e.bD.isParsed())throw Error("RTL text plugin already registered.");e.bD.applyArabicShaping=t.applyArabicShaping,e.bD.processBidirectionalText=t.processBidirectionalText,e.bD.processStyledBidirectionalText=t.processStyledBidirectionalText}}setReferrer(e,t){this.referrer=t}setImages(e,t,i){for(let i in this.availableImages[e]=t,this.workerSources[e]){let r=this.workerSources[e][i];for(let e in r)r[e].availableImages=t}i()}setLayers(e,t,i){this.getLayerIndex(e).replace(t),i()}updateLayers(e,t,i){this.getLayerIndex(e).update(t.layers,t.removedIds),i()}loadTile(e,t,i){this.getWorkerSource(e,t.type,t.source).loadTile(t,i)}loadDEMTile(e,t,i){this.getDEMWorkerSource(e,t.source).loadTile(t,i)}reloadTile(e,t,i){this.getWorkerSource(e,t.type,t.source).reloadTile(t,i)}abortTile(e,t,i){this.getWorkerSource(e,t.type,t.source).abortTile(t,i)}removeTile(e,t,i){this.getWorkerSource(e,t.type,t.source).removeTile(t,i)}removeDEMTile(e,t){this.getDEMWorkerSource(e,t.source).removeTile(t)}removeSource(e,t,i){if(!this.workerSources[e]||!this.workerSources[e][t.type]||!this.workerSources[e][t.type][t.source])return;let r=this.workerSources[e][t.type][t.source];delete this.workerSources[e][t.type][t.source],void 0!==r.removeSource?r.removeSource(t,i):i()}loadWorkerSource(e,t,i){try{this.self.importScripts(t.url),i()}catch(e){i(e.toString())}}syncRTLPluginState(t,i,r){try{e.bD.setState(i);let t=e.bD.getPluginURL();if(e.bD.isLoaded()&&!e.bD.isParsed()&&null!=t){this.self.importScripts(t);let i=e.bD.isParsed();r(i?void 0:Error(`RTL Text Plugin failed to import scripts from ${t}`),i)}}catch(e){r(e.toString())}}getAvailableImages(e){let t=this.availableImages[e];return t||(t=[]),t}getLayerIndex(e){let i=this.layerIndexes[e];return i||(i=this.layerIndexes[e]=new t),i}getWorkerSource(e,t,i){return this.workerSources[e]||(this.workerSources[e]={}),this.workerSources[e][t]||(this.workerSources[e][t]={}),this.workerSources[e][t][i]||(this.workerSources[e][t][i]=new this.workerSourceTypes[t]({send:(t,i,r)=>{this.actor.send(t,i,r,e)}},this.getLayerIndex(e),this.getAvailableImages(e))),this.workerSources[e][t][i]}getDEMWorkerSource(e,t){return this.demWorkerSources[e]||(this.demWorkerSources[e]={}),this.demWorkerSources[e][t]||(this.demWorkerSources[e][t]=new o),this.demWorkerSources[e][t]}}return e.i()&&(self.worker=new ea(self)),ea}),r(["./shared"],function(e){let t,i,r,a;var s,n="3.6.2";class o{static testProp(e){if(!o.docStyle)return e[0];for(let t=0;t{window.removeEventListener("click",o.suppressClickInternal,!0)},0)}static mousePos(t,i){let r=t.getBoundingClientRect();return new e.P(i.clientX-r.left-t.clientLeft,i.clientY-r.top-t.clientTop)}static touchPos(t,i){let r=t.getBoundingClientRect(),a=[];for(let s=0;s{i=[],r=0,a=0,s={}},t.addThrottleControl=e=>{let t=a++;return s[t]=e,t},t.removeThrottleControl=e=>{delete s[e],h()},t.getImage=(e,t,a=!0)=>{l.supported&&(e.headers||(e.headers={}),e.headers.accept="image/webp,*/*");let s={requestParameters:e,supportImageRefresh:a,callback:t,cancelled:!1,completed:!1,cancel:()=>{s.completed||s.cancelled||(s.cancelled=!0,s.innerRequest&&(s.innerRequest.cancel(),r--),h())}};return i.push(s),h(),s};let n=t=>{let{requestParameters:i,supportImageRefresh:r,callback:a}=t;return e.e(i,{type:"image"}),(!1!==r||e.i()||e.g(i.url)||i.headers&&!Object.keys(i.headers).reduce((e,t)=>e&&"accept"===t,!0)?e.m:u)(i,(e,i,r,s)=>{o(t,a,e,i,r,s)})},o=(t,i,a,s,n,o)=>{var l;a?i(a):s instanceof HTMLImageElement||e.a(s)?i(null,s):s&&(l=(e,t)=>{null!=e?i(e):null!=t&&i(null,t,{cacheControl:n,expires:o})},"function"==typeof createImageBitmap?e.b(s,l):e.d(s,l)),t.cancelled||(t.completed=!0,r--,h())},h=()=>{let t=(()=>{let e=Object.keys(s),t=!1;if(e.length>0){for(let i of e)if(t=s[i]())break}return t})()?e.c.MAX_PARALLEL_IMAGE_REQUESTS_PER_FRAME:e.c.MAX_PARALLEL_IMAGE_REQUESTS;for(let e=r;e0;e++){let t=i.shift();if(t.cancelled){e--;continue}let a=n(t);r++,t.innerRequest=a}},u=(t,i)=>{let r=new Image,a=t.url,s=!1,n=t.credentials;return n&&"include"===n?r.crossOrigin="use-credentials":(n&&"same-origin"===n||!e.s(a))&&(r.crossOrigin="anonymous"),r.fetchPriority="high",r.onload=()=>{i(null,r),r.onerror=r.onload=null},r.onerror=()=>{s||i(Error("Could not load image. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported.")),r.onerror=r.onload=null},r.src=a,{cancel:()=>{s=!0,r.src=""}}}}(y||(y={})),y.resetRequestQueue(),(g=x||(x={})).Glyphs="Glyphs",g.Image="Image",g.Source="Source",g.SpriteImage="SpriteImage",g.SpriteJSON="SpriteJSON",g.Style="Style",g.Tile="Tile",g.Unknown="Unknown";class f{constructor(e){this._transformRequestFn=e}transformRequest(e,t){return this._transformRequestFn&&this._transformRequestFn(e,t)||{url:e}}normalizeSpriteURL(e,t,i){let r=function(e){let t=e.match(m);if(!t)throw Error(`Unable to parse URL "${e}"`);return{protocol:t[1],authority:t[2],path:t[3]||"/",params:t[4]?t[4].split("&"):[]}}(e);return r.path+=`${t}${i}`,function(e){let t=e.params.length?`?${e.params.join("&")}`:"";return`${e.protocol}://${e.authority}${e.path}${t}`}(r)}setTransformRequest(e){this._transformRequestFn=e}}let m=/^(\w+):\/\/([^/?]*)(\/[^?]+)?\??(.+)?/;function _(t){var i=new e.A(3);return i[0]=t[0],i[1]=t[1],i[2]=t[2],i}var g,y,x,v,b=function(e,t,i){return e[0]=t[0]-i[0],e[1]=t[1]-i[1],e[2]=t[2]-i[2],e};v=new e.A(3),e.A!=Float32Array&&(v[0]=0,v[1]=0,v[2]=0);var w=function(e){var t=e[0],i=e[1];return t*t+i*i};function S(e){let t=[];if("string"==typeof e)t.push({id:"default",url:e});else if(e&&e.length>0){let i=[];for(let{id:r,url:a}of e){let e=`${r}${a}`;-1===i.indexOf(e)&&(i.push(e),t.push({id:r,url:a}))}}return t}function T(t,i,r,a,s){if(a)return void t(a);if(s!==Object.values(i).length||s!==Object.values(r).length)return;let n={};for(let t in i){n[t]={};let a=e.h.getImageCanvasContext(r[t]),s=i[t];for(let e in s){let{width:i,height:r,x:o,y:l,sdf:h,pixelRatio:u,stretchX:c,stretchY:d,content:p}=s[e];n[t][e]={data:null,pixelRatio:u,sdf:h,stretchX:c,stretchY:d,content:p,spriteData:{width:i,height:r,x:o,y:l,context:a}}}}t(null,n)}s=new e.A(2),e.A!=Float32Array&&(s[0]=0,s[1]=0);class I{constructor(e,t,i,r){this.context=e,this.format=i,this.texture=e.gl.createTexture(),this.update(t,r)}update(t,i,r){let{width:a,height:s}=t,n=!(this.size&&this.size[0]===a&&this.size[1]===s||r),{context:o}=this,{gl:l}=o;if(this.useMipmap=!!(i&&i.useMipmap),l.bindTexture(l.TEXTURE_2D,this.texture),o.pixelStoreUnpackFlipY.set(!1),o.pixelStoreUnpack.set(1),o.pixelStoreUnpackPremultiplyAlpha.set(this.format===l.RGBA&&(!i||!1!==i.premultiply)),n)this.size=[a,s],t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement||t instanceof ImageData||e.a(t)?l.texImage2D(l.TEXTURE_2D,0,this.format,this.format,l.UNSIGNED_BYTE,t):l.texImage2D(l.TEXTURE_2D,0,this.format,a,s,0,this.format,l.UNSIGNED_BYTE,t.data);else{let{x:i,y:n}=r||{x:0,y:0};t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof HTMLVideoElement||t instanceof ImageData||e.a(t)?l.texSubImage2D(l.TEXTURE_2D,0,i,n,l.RGBA,l.UNSIGNED_BYTE,t):l.texSubImage2D(l.TEXTURE_2D,0,i,n,a,s,l.RGBA,l.UNSIGNED_BYTE,t.data)}this.useMipmap&&this.isSizePowerOfTwo()&&l.generateMipmap(l.TEXTURE_2D)}bind(e,t,i){let{context:r}=this,{gl:a}=r;a.bindTexture(a.TEXTURE_2D,this.texture),i!==a.LINEAR_MIPMAP_NEAREST||this.isSizePowerOfTwo()||(i=a.LINEAR),e!==this.filter&&(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,e),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,i||e),this.filter=e),t!==this.wrap&&(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,t),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,t),this.wrap=t)}isSizePowerOfTwo(){return this.size[0]===this.size[1]&&Math.log(this.size[0])/Math.LN2%1==0}destroy(){let{gl:e}=this.context;e.deleteTexture(this.texture),this.texture=null}}class A extends e.E{constructor(){super(),this.images={},this.updatedImages={},this.callbackDispatchedThisFrame={},this.loaded=!1,this.requestors=[],this.patterns={},this.atlasImage=new e.R({width:1,height:1}),this.dirty=!0}isLoaded(){return this.loaded}setLoaded(e){if(this.loaded!==e&&(this.loaded=e,e)){for(let{ids:e,callback:t}of this.requestors)this._notify(e,t);this.requestors=[]}}getImage(t){let i=this.images[t];if(i&&!i.data&&i.spriteData){let t=i.spriteData;i.data=new e.R({width:t.width,height:t.height},t.context.getImageData(t.x,t.y,t.width,t.height).data),i.spriteData=null}return i}addImage(e,t){if(this.images[e])throw Error(`Image id ${e} already exist, use updateImage instead`);this._validate(e,t)&&(this.images[e]=t)}_validate(t,i){let r=!0,a=i.data||i.spriteData;return this._validateStretch(i.stretchX,a&&a.width)||(this.fire(new e.j(Error(`Image "${t}" has invalid "stretchX" value`))),r=!1),this._validateStretch(i.stretchY,a&&a.height)||(this.fire(new e.j(Error(`Image "${t}" has invalid "stretchY" value`))),r=!1),this._validateContent(i.content,i)||(this.fire(new e.j(Error(`Image "${t}" has invalid "content" value`))),r=!1),r}_validateStretch(e,t){if(!e)return!0;let i=0;for(let r of e){if(r[0]-1);s[++l]=o,n[l]=h,n[l+1]=1e20}for(let o=0,l=0;o{let r=this.entries[e];r||(r=this.entries[e]={glyphs:{},requests:{},ranges:{}});let a=r.glyphs[t];if(void 0!==a)return void i(null,{stack:e,id:t,glyph:a});if(a=this._tinySDF(r,e,t))return r.glyphs[t]=a,void i(null,{stack:e,id:t,glyph:a});let s=Math.floor(t/256);if(256*s>65535)return void i(Error("glyphs > 65535 not supported"));if(r.ranges[s])return void i(null,{stack:e,id:t,glyph:a});if(!this.url)return void i(Error("glyphsUrl is not set"));let n=r.requests[s];n||(n=r.requests[s]=[],k.loadGlyphRange(e,s,this.url,this.requestManager,(e,t)=>{if(t){for(let e in t)this._doesCharSupportLocalGlyph(+e)||(r.glyphs[+e]=t[+e]);r.ranges[s]=!0}for(let i of n)i(e,t);delete r.requests[s]})),n.push((r,a)=>{r?i(r):a&&i(null,{stack:e,id:t,glyph:a[t]||null})})},(e,t)=>{if(e)i(e);else if(t){let e={};for(let{stack:i,id:r,glyph:a}of t)(e[i]||(e[i]={}))[r]=a&&{id:a.id,bitmap:a.bitmap.clone(),metrics:a.metrics};i(null,e)}})}_doesCharSupportLocalGlyph(t){return!!this.localIdeographFontFamily&&(e.u["CJK Unified Ideographs"](t)||e.u["Hangul Syllables"](t)||e.u.Hiragana(t)||e.u.Katakana(t))}_tinySDF(t,i,r){let a=this.localIdeographFontFamily;if(!a||!this._doesCharSupportLocalGlyph(r))return;let s=t.tinySDF;if(!s){let e="400";/bold/i.test(i)?e="900":/medium/i.test(i)?e="500":/light/i.test(i)&&(e="200"),s=t.tinySDF=new k.TinySDF({fontSize:48,buffer:6,radius:16,cutoff:.25,fontFamily:a,fontWeight:e})}let n=s.draw(String.fromCharCode(r));return{id:r,bitmap:new e.q({width:n.width||60,height:n.height||60},n.data),metrics:{width:n.glyphWidth/2||24,height:n.glyphHeight/2||24,left:n.glyphLeft/2+.5||0,top:n.glyphTop/2-27.5||-8,advance:n.glyphAdvance/2||24,isDoubleResolution:!0}}}}k.loadGlyphRange=function(t,i,r,a,s){let n=256*i,o=a.transformRequest(r.replace("{fontstack}",t).replace("{range}",`${n}-${n+255}`),x.Glyphs);e.l(o,(t,i)=>{if(t)s(t);else if(i){let t={};for(let r of e.n(i))t[r.id]=r;s(null,t)}})},k.TinySDF=class{constructor({fontSize:e=24,buffer:t=3,radius:i=8,cutoff:r=.25,fontFamily:a="sans-serif",fontWeight:s="normal",fontStyle:n="normal"}={}){this.buffer=t,this.cutoff=r,this.radius=i;let o=this.size=e+4*t,l=this._createCanvas(o),h=this.ctx=l.getContext("2d",{willReadFrequently:!0});h.font=`${n} ${s} ${e}px ${a}`,h.textBaseline="alphabetic",h.textAlign="left",h.fillStyle="black",this.gridOuter=new Float64Array(o*o),this.gridInner=new Float64Array(o*o),this.f=new Float64Array(o),this.z=new Float64Array(o+1),this.v=new Uint16Array(o)}_createCanvas(e){let t=document.createElement("canvas");return t.width=t.height=e,t}draw(e){let{width:t,actualBoundingBoxAscent:i,actualBoundingBoxDescent:r,actualBoundingBoxLeft:a,actualBoundingBoxRight:s}=this.ctx.measureText(e),n=Math.ceil(i),o=Math.max(0,Math.min(this.size-this.buffer,Math.ceil(s-a))),l=Math.min(this.size-this.buffer,n+Math.ceil(r)),h=o+2*this.buffer,u=l+2*this.buffer,c=Math.max(h*u,0),d=new Uint8ClampedArray(c),p={data:d,width:h,height:u,glyphWidth:o,glyphHeight:l,glyphTop:n,glyphLeft:0,glyphAdvance:t};if(0===o||0===l)return p;let{ctx:f,buffer:m,gridInner:_,gridOuter:g}=this;f.clearRect(m,m,o,l),f.fillText(e,m,m+n);let y=f.getImageData(m,m,o,l);g.fill(1e20,0,c),_.fill(0,0,c);for(let e=0;e0?e*e:0,_[r]=e<0?e*e:0}}M(g,0,0,h,u,h,this.f,this.v,this.z),M(_,m,m,o,l,h,this.f,this.v,this.z);for(let e=0;e1&&(n=e[++s]);let h=Math.min(Math.abs(o-n.left),Math.abs(o-n.right)),u=t/i*(r+1);if(n.isDash){let e=r-Math.abs(u);l=Math.sqrt(h*h+e*e)}else l=r-Math.sqrt(h*h+u*u);this.data[a+o]=Math.max(0,Math.min(255,l+128))}}}addRegularDash(e){for(let t=e.length-1;t>=0;--t){let i=e[t],r=e[t+1];i.zeroLength?e.splice(t,1):r&&r.isDash===i.isDash&&(r.left=i.left,e.splice(t,1))}let t=e[0],i=e[e.length-1];t.isDash===i.isDash&&(t.left=i.left-this.width,i.right=t.right+this.width);let r=this.width*this.nextRow,a=0,s=e[0];for(let t=0;t1&&(s=e[++a]);let i=Math.min(Math.abs(t-s.left),Math.abs(t-s.right));this.data[r+t]=Math.max(0,Math.min(255,(s.isDash?i:-i)+128))}}addDash(t,i){let r=7*!!i,a=2*r+1;if(this.nextRow+a>this.height)return e.w("LineAtlas out of space"),null;let s=0;for(let e=0;e{e.send(t,i,r)},r=r||function(){})}getActor(){return this.currentActor=(this.currentActor+1)%this.actors.length,this.actors[this.currentActor]}remove(e=!0){this.actors.forEach(e=>{e.remove()}),this.actors=[],e&&this.workerPool.release(this.id)}}function L(t,i,r){let a=function(i,a){if(i)return r(i);if(a){let i=e.F(e.e(a,t),["tiles","minzoom","maxzoom","attribution","bounds","scheme","tileSize","encoding"]);a.vector_layers&&(i.vectorLayers=a.vector_layers,i.vectorLayerIds=i.vectorLayers.map(e=>e.id)),r(null,i)}};return t.url?e.f(i.transformRequest(t.url,x.Source),a):e.h.frame(()=>a(null,t))}class R{constructor(e,t){e&&(t?this.setSouthWest(e).setNorthEast(t):Array.isArray(e)&&(4===e.length?this.setSouthWest([e[0],e[1]]).setNorthEast([e[2],e[3]]):this.setSouthWest(e[0]).setNorthEast(e[1])))}setNorthEast(t){return this._ne=t instanceof e.L?new e.L(t.lng,t.lat):e.L.convert(t),this}setSouthWest(t){return this._sw=t instanceof e.L?new e.L(t.lng,t.lat):e.L.convert(t),this}extend(t){let i,r,a=this._sw,s=this._ne;if(t instanceof e.L)i=t,r=t;else{if(!(t instanceof R))return Array.isArray(t)?4===t.length||t.every(Array.isArray)?this.extend(R.convert(t)):this.extend(e.L.convert(t)):t&&("lng"in t||"lon"in t)&&"lat"in t?this.extend(e.L.convert(t)):this;if(i=t._sw,r=t._ne,!i||!r)return this}return a||s?(a.lng=Math.min(i.lng,a.lng),a.lat=Math.min(i.lat,a.lat),s.lng=Math.max(r.lng,s.lng),s.lat=Math.max(r.lat,s.lat)):(this._sw=new e.L(i.lng,i.lat),this._ne=new e.L(r.lng,r.lat)),this}getCenter(){return new e.L((this._sw.lng+this._ne.lng)/2,(this._sw.lat+this._ne.lat)/2)}getSouthWest(){return this._sw}getNorthEast(){return this._ne}getNorthWest(){return new e.L(this.getWest(),this.getNorth())}getSouthEast(){return new e.L(this.getEast(),this.getSouth())}getWest(){return this._sw.lng}getSouth(){return this._sw.lat}getEast(){return this._ne.lng}getNorth(){return this._ne.lat}toArray(){return[this._sw.toArray(),this._ne.toArray()]}toString(){return`LngLatBounds(${this._sw.toString()}, ${this._ne.toString()})`}isEmpty(){return!(this._sw&&this._ne)}contains(t){let{lng:i,lat:r}=e.L.convert(t),a=this._sw.lng<=i&&i<=this._ne.lng;return this._sw.lng>this._ne.lng&&(a=this._sw.lng>=i&&i>=this._ne.lng),this._sw.lat<=r&&r<=this._ne.lat&&a}static convert(e){return e instanceof R?e:e?new R(e):e}static fromLngLat(t,i=0){let r=360*i/0x2637f09,a=r/Math.cos(Math.PI/180*t.lat);return new R(new e.L(t.lng-a,t.lat-r),new e.L(t.lng+a,t.lat+r))}}class B{constructor(e,t,i){this.bounds=R.convert(this.validateBounds(e)),this.minzoom=t||0,this.maxzoom=i||24}validateBounds(e){return Array.isArray(e)&&4===e.length?[Math.max(-180,e[0]),Math.max(-90,e[1]),Math.min(180,e[2]),Math.min(90,e[3])]:[-180,-90,180,90]}contains(t){let i=Math.pow(2,t.z),r=Math.floor(e.G(this.bounds.getWest())*i),a=Math.floor(e.H(this.bounds.getNorth())*i),s=Math.ceil(e.G(this.bounds.getEast())*i),n=Math.ceil(e.H(this.bounds.getSouth())*i);return t.x>=r&&t.x=a&&t.y{this._loaded=!1,this.fire(new e.k("dataloading",{dataType:"source"})),this._tileJSONRequest=L(this._options,this.map._requestManager,(t,i)=>{this._tileJSONRequest=null,this._loaded=!0,this.map.style.sourceCaches[this.id].clearTiles(),t?this.fire(new e.j(t)):i&&(e.e(this,i),i.bounds&&(this.tileBounds=new B(i.bounds,this.minzoom,this.maxzoom)),this.fire(new e.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.k("data",{dataType:"source",sourceDataType:"content"})))})},this.serialize=()=>e.e({},this._options),this.id=t,this.dispatcher=r,this.type="vector",this.minzoom=0,this.maxzoom=22,this.scheme="xyz",this.tileSize=512,this.reparseOverscaled=!0,this.isTileClipped=!0,this._loaded=!1,e.e(this,e.F(i,["url","scheme","tileSize","promoteId"])),this._options=e.e({type:"vector"},i),this._collectResourceTiming=i.collectResourceTiming,512!==this.tileSize)throw Error("vector tile sources must have a tileSize of 512");this.setEventedParent(a)}loaded(){return this._loaded}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}onAdd(e){this.map=e,this.load()}setSourceProperty(e){this._tileJSONRequest&&this._tileJSONRequest.cancel(),e(),this.load()}setTiles(e){return this.setSourceProperty(()=>{this._options.tiles=e}),this}setUrl(e){return this.setSourceProperty(()=>{this.url=e,this._options.url=e}),this}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}loadTile(e,t){let i=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),r={request:this.map._requestManager.transformRequest(i,x.Tile),uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,tileSize:this.tileSize*e.tileID.overscaleFactor(),type:this.type,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};function a(i,r){return delete e.request,e.aborted?t(null):i&&404!==i.status?t(i):(r&&r.resourceTiming&&(e.resourceTiming=r.resourceTiming),this.map._refreshExpiredTiles&&r&&e.setExpiryData(r),e.loadVectorData(r,this.map.painter),t(null),void(e.reloadCallback&&(this.loadTile(e,e.reloadCallback),e.reloadCallback=null)))}r.request.collectResourceTiming=this._collectResourceTiming,e.actor&&"expired"!==e.state?"loading"===e.state?e.reloadCallback=t:e.request=e.actor.send("reloadTile",r,a.bind(this)):(e.actor=this.dispatcher.getActor(),e.request=e.actor.send("loadTile",r,a.bind(this)))}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.actor&&e.actor.send("abortTile",{uid:e.uid,type:this.type,source:this.id},void 0)}unloadTile(e){e.unloadVectorData(),e.actor&&e.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id},void 0)}hasTransition(){return!1}}class O extends e.E{constructor(t,i,r,a){super(),this.id=t,this.dispatcher=r,this.setEventedParent(a),this.type="raster",this.minzoom=0,this.maxzoom=22,this.roundZoom=!0,this.scheme="xyz",this.tileSize=512,this._loaded=!1,this._options=e.e({type:"raster"},i),e.e(this,e.F(i,["url","scheme","tileSize"]))}load(){this._loaded=!1,this.fire(new e.k("dataloading",{dataType:"source"})),this._tileJSONRequest=L(this._options,this.map._requestManager,(t,i)=>{this._tileJSONRequest=null,this._loaded=!0,t?this.fire(new e.j(t)):i&&(e.e(this,i),i.bounds&&(this.tileBounds=new B(i.bounds,this.minzoom,this.maxzoom)),this.fire(new e.k("data",{dataType:"source",sourceDataType:"metadata"})),this.fire(new e.k("data",{dataType:"source",sourceDataType:"content"})))})}loaded(){return this._loaded}onAdd(e){this.map=e,this.load()}onRemove(){this._tileJSONRequest&&(this._tileJSONRequest.cancel(),this._tileJSONRequest=null)}setSourceProperty(e){this._tileJSONRequest&&this._tileJSONRequest.cancel(),e(),this.load()}setTiles(e){return this.setSourceProperty(()=>{this._options.tiles=e}),this}serialize(){return e.e({},this._options)}hasTile(e){return!this.tileBounds||this.tileBounds.contains(e.canonical)}loadTile(e,t){let i=e.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme);e.request=y.getImage(this.map._requestManager.transformRequest(i,x.Tile),(i,r,a)=>{if(delete e.request,e.aborted)e.state="unloaded",t(null);else if(i)e.state="errored",t(i);else if(r){this.map._refreshExpiredTiles&&a&&e.setExpiryData(a);let i=this.map.painter.context,s=i.gl;e.texture=this.map.painter.getTileTexture(r.width),e.texture?e.texture.update(r,{useMipmap:!0}):(e.texture=new I(i,r,s.RGBA,{useMipmap:!0}),e.texture.bind(s.LINEAR,s.CLAMP_TO_EDGE,s.LINEAR_MIPMAP_NEAREST),i.extTextureFilterAnisotropic&&s.texParameterf(s.TEXTURE_2D,i.extTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT,i.extTextureFilterAnisotropicMax)),e.state="loaded",t(null)}},this.map._refreshExpiredTiles)}abortTile(e,t){e.request&&(e.request.cancel(),delete e.request),t()}unloadTile(e,t){e.texture&&this.map.painter.saveTileTexture(e.texture),t()}hasTransition(){return!1}}class V extends O{constructor(t,i,r,a){super(t,i,r,a),this.type="raster-dem",this.maxzoom=22,this._options=e.e({type:"raster-dem"},i),this.encoding=i.encoding||"mapbox",this.redFactor=i.redFactor,this.greenFactor=i.greenFactor,this.blueFactor=i.blueFactor,this.baseShift=i.baseShift}loadTile(t,i){let r=t.tileID.canonical.url(this.tiles,this.map.getPixelRatio(),this.scheme),a=this.map._requestManager.transformRequest(r,x.Tile);function s(e,r){e&&(t.state="errored",i(e)),r&&(t.dem=r,t.needsHillshadePrepare=!0,t.needsTerrainPrepare=!0,t.state="loaded",i(null))}t.neighboringTiles=this._getNeighboringTiles(t.tileID),t.request=y.getImage(a,(r,a,n)=>e._(this,void 0,void 0,function*(){if(delete t.request,t.aborted)t.state="unloaded",i(null);else if(r)t.state="errored",i(r);else if(a){this.map._refreshExpiredTiles&&t.setExpiryData(n);let i=e.a(a)&&e.J()?a:yield function(t){return e._(this,void 0,void 0,function*(){if("undefined"!=typeof VideoFrame&&e.K()){let i=t.width+2,r=t.height+2;try{return new e.R({width:i,height:r},(yield e.M(t,-1,-1,i,r)))}catch(e){}}return e.h.getImageData(t,1)})}(a),r={uid:t.uid,coord:t.tileID,source:this.id,rawImageData:i,encoding:this.encoding,redFactor:this.redFactor,greenFactor:this.greenFactor,blueFactor:this.blueFactor,baseShift:this.baseShift};t.actor&&"expired"!==t.state||(t.actor=this.dispatcher.getActor(),t.actor.send("loadDEMTile",r,s))}}),this.map._refreshExpiredTiles)}_getNeighboringTiles(t){let i=t.canonical,r=Math.pow(2,i.z),a=(i.x-1+r)%r,s=0===i.x?t.wrap-1:t.wrap,n=(i.x+1+r)%r,o=i.x+1===r?t.wrap+1:t.wrap,l={};return l[new e.O(t.overscaledZ,s,i.z,a,i.y).key]={backfilled:!1},l[new e.O(t.overscaledZ,o,i.z,n,i.y).key]={backfilled:!1},i.y>0&&(l[new e.O(t.overscaledZ,s,i.z,a,i.y-1).key]={backfilled:!1},l[new e.O(t.overscaledZ,t.wrap,i.z,i.x,i.y-1).key]={backfilled:!1},l[new e.O(t.overscaledZ,o,i.z,n,i.y-1).key]={backfilled:!1}),i.y+1{this._updateWorkerData()},this.serialize=()=>e.e({},this._options,{type:this.type,data:this._data}),this.id=t,this.type="geojson",this.minzoom=0,this.maxzoom=18,this.tileSize=512,this.isTileClipped=!0,this.reparseOverscaled=!0,this._removed=!1,this._pendingLoads=0,this.actor=r.getActor(),this.setEventedParent(a),this._data=i.data,this._options=e.e({},i),this._collectResourceTiming=i.collectResourceTiming,void 0!==i.maxzoom&&(this.maxzoom=i.maxzoom),i.type&&(this.type=i.type),i.attribution&&(this.attribution=i.attribution),this.promoteId=i.promoteId;let s=e.N/this.tileSize;this.workerOptions=e.e({source:this.id,cluster:i.cluster||!1,geojsonVtOptions:{buffer:(void 0!==i.buffer?i.buffer:128)*s,tolerance:(void 0!==i.tolerance?i.tolerance:.375)*s,extent:e.N,maxZoom:this.maxzoom,lineMetrics:i.lineMetrics||!1,generateId:i.generateId||!1},superclusterOptions:{maxZoom:void 0!==i.clusterMaxZoom?i.clusterMaxZoom:this.maxzoom-1,minPoints:Math.max(2,i.clusterMinPoints||2),extent:e.N,radius:(i.clusterRadius||50)*s,log:!1,generateId:i.generateId||!1},clusterProperties:i.clusterProperties,filter:i.filter},i.workerOptions),"string"==typeof this.promoteId&&(this.workerOptions.promoteId=this.promoteId)}onAdd(e){this.map=e,this.load()}setData(e){return this._data=e,this._updateWorkerData(),this}updateData(e){return this._updateWorkerData(e),this}setClusterOptions(e){return this.workerOptions.cluster=e.cluster,e&&(void 0!==e.clusterRadius&&(this.workerOptions.superclusterOptions.radius=e.clusterRadius),void 0!==e.clusterMaxZoom&&(this.workerOptions.superclusterOptions.maxZoom=e.clusterMaxZoom)),this._updateWorkerData(),this}getClusterExpansionZoom(e,t){return this.actor.send("geojson.getClusterExpansionZoom",{clusterId:e,source:this.id},t),this}getClusterChildren(e,t){return this.actor.send("geojson.getClusterChildren",{clusterId:e,source:this.id},t),this}getClusterLeaves(e,t,i,r){return this.actor.send("geojson.getClusterLeaves",{source:this.id,clusterId:e,limit:t,offset:i},r),this}_updateWorkerData(t){let i=e.e({},this.workerOptions);t?i.dataDiff=t:"string"==typeof this._data?(i.request=this.map._requestManager.transformRequest(e.h.resolveURL(this._data),x.Source),i.request.collectResourceTiming=this._collectResourceTiming):i.data=JSON.stringify(this._data),this._pendingLoads++,this.fire(new e.k("dataloading",{dataType:"source"})),this.actor.send(`${this.type}.loadData`,i,(t,i)=>{if(this._pendingLoads--,this._removed||i&&i.abandoned)return void this.fire(new e.k("dataabort",{dataType:"source"}));let r=null;if(i&&i.resourceTiming&&i.resourceTiming[this.id]&&(r=i.resourceTiming[this.id].slice(0)),t)return void this.fire(new e.j(t));let a={dataType:"source"};this._collectResourceTiming&&r&&r.length>0&&e.e(a,{resourceTiming:r}),this.fire(new e.k("data",Object.assign(Object.assign({},a),{sourceDataType:"metadata"}))),this.fire(new e.k("data",Object.assign(Object.assign({},a),{sourceDataType:"content"})))})}loaded(){return 0===this._pendingLoads}loadTile(e,t){let i=e.actor?"reloadTile":"loadTile";e.actor=this.actor;let r={type:this.type,uid:e.uid,tileID:e.tileID,zoom:e.tileID.overscaledZ,maxZoom:this.maxzoom,tileSize:this.tileSize,source:this.id,pixelRatio:this.map.getPixelRatio(),showCollisionBoxes:this.map.showCollisionBoxes,promoteId:this.promoteId};e.request=this.actor.send(i,r,(r,a)=>(delete e.request,e.unloadVectorData(),e.aborted?t(null):r?t(r):(e.loadVectorData(a,this.map.painter,"reloadTile"===i),t(null))))}abortTile(e){e.request&&(e.request.cancel(),delete e.request),e.aborted=!0}unloadTile(e){e.unloadVectorData(),this.actor.send("removeTile",{uid:e.uid,type:this.type,source:this.id})}onRemove(){this._removed=!0,this.actor.send("removeSource",{type:this.type,source:this.id})}hasTransition(){return!1}}var U=e.Q([{name:"a_pos",type:"Int16",components:2},{name:"a_texture_pos",type:"Int16",components:2}]);class $ extends e.E{constructor(t,i,r,a){super(),this.load=(t,i)=>{this._loaded=!1,this.fire(new e.k("dataloading",{dataType:"source"})),this.url=this.options.url,this._request=y.getImage(this.map._requestManager.transformRequest(this.url,x.Image),(r,a)=>{this._request=null,this._loaded=!0,r?this.fire(new e.j(r)):a&&(this.image=a,t&&(this.coordinates=t),i&&i(),this._finishLoading())})},this.prepare=()=>{if(0===Object.keys(this.tiles).length||!this.image)return;let t=this.map.painter.context,i=t.gl;this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,U.members)),this.boundsSegments||(this.boundsSegments=e.S.simpleSegment(0,0,4,2)),this.texture||(this.texture=new I(t,this.image,i.RGBA),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE));let r=!1;for(let e in this.tiles){let t=this.tiles[e];"loaded"!==t.state&&(t.state="loaded",t.texture=this.texture,r=!0)}r&&this.fire(new e.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))},this.serialize=()=>({type:"image",url:this.options.url,coordinates:this.coordinates}),this.id=t,this.dispatcher=r,this.coordinates=i.coordinates,this.type="image",this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.tiles={},this._loaded=!1,this.setEventedParent(a),this.options=i}loaded(){return this._loaded}updateImage(e){return e.url&&(this._request&&(this._request.cancel(),this._request=null),this.options.url=e.url,this.load(e.coordinates,()=>{this.texture=null})),this}_finishLoading(){this.map&&(this.setCoordinates(this.coordinates),this.fire(new e.k("data",{dataType:"source",sourceDataType:"metadata"})))}onAdd(e){this.map=e,this.load()}onRemove(){this._request&&(this._request.cancel(),this._request=null)}setCoordinates(t){this.coordinates=t;let i=t.map(e.U.fromLngLat);this.tileID=function(t){let i=1/0,r=1/0,a=-1/0,s=-1/0;for(let e of t)i=Math.min(i,e.x),r=Math.min(r,e.y),a=Math.max(a,e.x),s=Math.max(s,e.y);let n=Math.max(0,Math.floor(-Math.log(Math.max(a-i,s-r))/Math.LN2)),o=Math.pow(2,n);return new e.W(n,Math.floor((i+a)/2*o),Math.floor((r+s)/2*o))}(i),this.minzoom=this.maxzoom=this.tileID.z;let r=i.map(e=>this.tileID.getTilePoint(e)._round());return this._boundsArray=new e.V,this._boundsArray.emplaceBack(r[0].x,r[0].y,0,0),this._boundsArray.emplaceBack(r[1].x,r[1].y,e.N,0),this._boundsArray.emplaceBack(r[3].x,r[3].y,0,e.N),this._boundsArray.emplaceBack(r[2].x,r[2].y,e.N,e.N),this.boundsBuffer&&(this.boundsBuffer.destroy(),delete this.boundsBuffer),this.fire(new e.k("data",{dataType:"source",sourceDataType:"content"})),this}loadTile(e,t){this.tileID&&this.tileID.equals(e.tileID.canonical)?(this.tiles[String(e.tileID.wrap)]=e,e.buckets={}):e.state="errored",t(null)}hasTransition(){return!1}}class j extends ${constructor(t,i,r,a){super(t,i,r,a),this.load=()=>{this._loaded=!1;let t=this.options;for(let e of(this.urls=[],t.urls))this.urls.push(this.map._requestManager.transformRequest(e,x.Source).url);e.X(this.urls,(t,i)=>{this._loaded=!0,t?this.fire(new e.j(t)):i&&(this.video=i,this.video.loop=!0,this.video.addEventListener("playing",()=>{this.map.triggerRepaint()}),this.map&&this.video.play(),this._finishLoading())})},this.prepare=()=>{if(0===Object.keys(this.tiles).length||this.video.readyState<2)return;let t=this.map.painter.context,i=t.gl;this.boundsBuffer||(this.boundsBuffer=t.createVertexBuffer(this._boundsArray,U.members)),this.boundsSegments||(this.boundsSegments=e.S.simpleSegment(0,0,4,2)),this.texture?this.video.paused||(this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE),i.texSubImage2D(i.TEXTURE_2D,0,0,0,i.RGBA,i.UNSIGNED_BYTE,this.video)):(this.texture=new I(t,this.video,i.RGBA),this.texture.bind(i.LINEAR,i.CLAMP_TO_EDGE));let r=!1;for(let e in this.tiles){let t=this.tiles[e];"loaded"!==t.state&&(t.state="loaded",t.texture=this.texture,r=!0)}r&&this.fire(new e.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))},this.serialize=()=>({type:"video",urls:this.urls,coordinates:this.coordinates}),this.roundZoom=!0,this.type="video",this.options=i}pause(){this.video&&this.video.pause()}play(){this.video&&this.video.play()}seek(t){if(this.video){let i=this.video.seekable;ti.end(0)?this.fire(new e.j(new e.Y(`sources.${this.id}`,null,`Playback for this video can be set only between the ${i.start(0)} and ${i.end(0)}-second mark.`))):this.video.currentTime=t}}getVideo(){return this.video}onAdd(e){this.map||(this.map=e,this.load(),this.video&&(this.video.play(),this.setCoordinates(this.coordinates)))}hasTransition(){return this.video&&!this.video.paused}}class q extends ${constructor(t,i,r,a){super(t,i,r,a),this.load=()=>{this._loaded=!0,this.canvas||(this.canvas=this.options.canvas instanceof HTMLCanvasElement?this.options.canvas:document.getElementById(this.options.canvas)),this.width=this.canvas.width,this.height=this.canvas.height,this._hasInvalidDimensions()?this.fire(new e.j(Error("Canvas dimensions cannot be less than or equal to zero."))):(this.play=function(){this._playing=!0,this.map.triggerRepaint()},this.pause=function(){this._playing&&(this.prepare(),this._playing=!1)},this._finishLoading())},this.prepare=()=>{let t=!1;if(this.canvas.width!==this.width&&(this.width=this.canvas.width,t=!0),this.canvas.height!==this.height&&(this.height=this.canvas.height,t=!0),this._hasInvalidDimensions()||0===Object.keys(this.tiles).length)return;let i=this.map.painter.context,r=i.gl;this.boundsBuffer||(this.boundsBuffer=i.createVertexBuffer(this._boundsArray,U.members)),this.boundsSegments||(this.boundsSegments=e.S.simpleSegment(0,0,4,2)),this.texture?(t||this._playing)&&this.texture.update(this.canvas,{premultiply:!0}):this.texture=new I(i,this.canvas,r.RGBA,{premultiply:!0});let a=!1;for(let e in this.tiles){let t=this.tiles[e];"loaded"!==t.state&&(t.state="loaded",t.texture=this.texture,a=!0)}a&&this.fire(new e.k("data",{dataType:"source",sourceDataType:"idle",sourceId:this.id}))},this.serialize=()=>({type:"canvas",coordinates:this.coordinates}),i.coordinates?Array.isArray(i.coordinates)&&4===i.coordinates.length&&!i.coordinates.some(e=>!Array.isArray(e)||2!==e.length||e.some(e=>"number"!=typeof e))||this.fire(new e.j(new e.Y(`sources.${t}`,null,'"coordinates" property must be an array of 4 longitude/latitude array pairs'))):this.fire(new e.j(new e.Y(`sources.${t}`,null,'missing required property "coordinates"'))),i.animate&&"boolean"!=typeof i.animate&&this.fire(new e.j(new e.Y(`sources.${t}`,null,'optional "animate" property must be a boolean value'))),i.canvas?"string"==typeof i.canvas||i.canvas instanceof HTMLCanvasElement||this.fire(new e.j(new e.Y(`sources.${t}`,null,'"canvas" must be either a string representing the ID of the canvas element from which to read, or an HTMLCanvasElement instance'))):this.fire(new e.j(new e.Y(`sources.${t}`,null,'missing required property "canvas"'))),this.options=i,this.animate=void 0===i.animate||i.animate}getCanvas(){return this.canvas}onAdd(e){this.map=e,this.load(),this.canvas&&this.animate&&this.play()}onRemove(){this.pause()}hasTransition(){return this._playing}_hasInvalidDimensions(){for(let e of[this.canvas.width,this.canvas.height])if(isNaN(e)||e<=0)return!0;return!1}}let Z={},G=e=>{switch(e){case"geojson":return N;case"image":return $;case"raster":return O;case"raster-dem":return V;case"vector":return F;case"video":return j;case"canvas":return q}return Z[e]};function X(e,t){let i=e.tileID,r=t.tileID;return i.overscaledZ-r.overscaledZ||i.canonical.y-r.canonical.y||i.wrap-r.wrap||i.canonical.x-r.canonical.x}class W{constructor(t,i){this.timeAdded=0,this.fadeEndTime=0,this.tileID=t,this.uid=e.a2(),this.uses=0,this.tileSize=i,this.buckets={},this.expirationTime=null,this.queryPadding=0,this.hasSymbolBuckets=!1,this.hasRTLText=!1,this.dependencies={},this.rtt=[],this.rttCoords={},this.expiredRequestCount=0,this.state="loading"}registerFadeDuration(e){let t=e+this.timeAdded;tt.getLayer(e)).filter(Boolean);if(0!==e.length)for(let t of(r.layers=e,r.stateDependentLayerIds&&(r.stateDependentLayers=r.stateDependentLayerIds.map(t=>e.filter(e=>e.id===t)[0])),e))i[t.id]=r}return i}(t.buckets,i.style),this.hasSymbolBuckets=!1,this.buckets){let t=this.buckets[a];if(t instanceof e.a4){if(this.hasSymbolBuckets=!0,!r)break;t.justReloaded=!0}}if(this.hasRTLText=!1,this.hasSymbolBuckets)for(let t in this.buckets){let i=this.buckets[t];if(i instanceof e.a4&&i.hasRTLText){this.hasRTLText=!0,e.a5();break}}for(let e in this.queryPadding=0,this.buckets){let t=this.buckets[e];this.queryPadding=Math.max(this.queryPadding,i.style.getLayer(e).queryRadius(t))}t.imageAtlas&&(this.imageAtlas=t.imageAtlas),t.glyphAtlasImage&&(this.glyphAtlasImage=t.glyphAtlasImage)}else this.collisionBoxArray=new e.a3}unloadVectorData(){for(let e in this.buckets)this.buckets[e].destroy();this.buckets={},this.imageAtlasTexture&&this.imageAtlasTexture.destroy(),this.imageAtlas&&(this.imageAtlas=null),this.glyphAtlasTexture&&this.glyphAtlasTexture.destroy(),this.latestFeatureIndex=null,this.state="unloaded"}getBucket(e){return this.buckets[e.id]}upload(e){for(let t in this.buckets){let i=this.buckets[t];i.uploadPending()&&i.upload(e)}let t=e.gl;this.imageAtlas&&!this.imageAtlas.uploaded&&(this.imageAtlasTexture=new I(e,this.imageAtlas.image,t.RGBA),this.imageAtlas.uploaded=!0),this.glyphAtlasImage&&(this.glyphAtlasTexture=new I(e,this.glyphAtlasImage,t.ALPHA),this.glyphAtlasImage=null)}prepare(e){this.imageAtlas&&this.imageAtlas.patchUpdatedImages(e,this.imageAtlasTexture)}queryRenderedFeatures(e,t,i,r,a,s,n,o,l,h){return this.latestFeatureIndex&&this.latestFeatureIndex.rawTileData?this.latestFeatureIndex.query({queryGeometry:r,cameraQueryGeometry:a,scale:s,tileSize:this.tileSize,pixelPosMatrix:h,transform:o,params:n,queryPadding:this.queryPadding*l},e,t,i):{}}querySourceFeatures(t,i){let r=this.latestFeatureIndex;if(!r||!r.rawTileData)return;let a=r.loadVTLayers(),s=i&&i.sourceLayer?i.sourceLayer:"",n=a._geojsonTileLayer||a[s];if(!n)return;let o=e.a6(i&&i.filter),{z:l,x:h,y:u}=this.tileID.canonical,c={z:l,x:h,y:u};for(let i=0;ie)t=!1;else if(i)if(this.expirationTime{this.remove(e,a)},i)),this.data[r].push(a),this.order.push(r),this.order.length>this.max){let e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}has(e){return e.wrapped().key in this.data}getAndRemove(e){return this.has(e)?this._getAndRemoveByKey(e.wrapped().key):null}_getAndRemoveByKey(e){let t=this.data[e].shift();return t.timeout&&clearTimeout(t.timeout),0===this.data[e].length&&delete this.data[e],this.order.splice(this.order.indexOf(e),1),t.value}getByKey(e){let t=this.data[e];return t?t[0].value:null}get(e){return this.has(e)?this.data[e.wrapped().key][0].value:null}remove(e,t){if(!this.has(e))return this;let i=e.wrapped().key,r=void 0===t?0:this.data[i].indexOf(t),a=this.data[i][r];return this.data[i].splice(r,1),a.timeout&&clearTimeout(a.timeout),0===this.data[i].length&&delete this.data[i],this.onRemove(a.value),this.order.splice(this.order.indexOf(i),1),this}setMaxSize(e){for(this.max=e;this.order.length>this.max;){let e=this._getAndRemoveByKey(this.order[0]);e&&this.onRemove(e)}return this}filter(e){let t=[];for(let i in this.data)for(let r of this.data[i])e(r.value)||t.push(r);for(let e of t)this.remove(e.value.tileID,e)}}class K{constructor(){this.state={},this.stateChanges={},this.deletedStates={}}updateState(t,i,r){let a=String(i);if(this.stateChanges[t]=this.stateChanges[t]||{},this.stateChanges[t][a]=this.stateChanges[t][a]||{},e.e(this.stateChanges[t][a],r),null===this.deletedStates[t])for(let e in this.deletedStates[t]={},this.state[t])e!==a&&(this.deletedStates[t][e]=null);else if(this.deletedStates[t]&&null===this.deletedStates[t][a])for(let e in this.deletedStates[t][a]={},this.state[t][a])r[e]||(this.deletedStates[t][a][e]=null);else for(let e in r)this.deletedStates[t]&&this.deletedStates[t][a]&&null===this.deletedStates[t][a][e]&&delete this.deletedStates[t][a][e]}removeFeatureState(e,t,i){if(null===this.deletedStates[e])return;let r=String(t);if(this.deletedStates[e]=this.deletedStates[e]||{},i&&void 0!==t)null!==this.deletedStates[e][r]&&(this.deletedStates[e][r]=this.deletedStates[e][r]||{},this.deletedStates[e][r][i]=null);else if(void 0!==t)if(this.stateChanges[e]&&this.stateChanges[e][r])for(i in this.deletedStates[e][r]={},this.stateChanges[e][r])this.deletedStates[e][r][i]=null;else this.deletedStates[e][r]=null;else this.deletedStates[e]=null}getState(t,i){let r=String(i),a=e.e({},(this.state[t]||{})[r],(this.stateChanges[t]||{})[r]);if(null===this.deletedStates[t])return{};if(this.deletedStates[t]){let e=this.deletedStates[t][i];if(null===e)return{};for(let t in e)delete a[t]}return a}initializeTileState(e,t){e.setFeatureState(this.state,t)}coalesceChanges(t,i){let r={};for(let t in this.stateChanges){this.state[t]=this.state[t]||{};let i={};for(let r in this.stateChanges[t])this.state[t][r]||(this.state[t][r]={}),e.e(this.state[t][r],this.stateChanges[t][r]),i[r]=this.state[t][r];r[t]=i}for(let t in this.deletedStates){this.state[t]=this.state[t]||{};let i={};if(null===this.deletedStates[t])for(let e in this.state[t])i[e]={},this.state[t][e]={};else for(let e in this.deletedStates[t]){if(null===this.deletedStates[t][e])this.state[t][e]={};else for(let i of Object.keys(this.deletedStates[t][e]))delete this.state[t][e][i];i[e]=this.state[t][e]}r[t]=r[t]||{},e.e(r[t],i)}if(this.stateChanges={},this.deletedStates={},0!==Object.keys(r).length)for(let e in t)t[e].setFeatureState(r,i)}}class Y extends e.E{constructor(e,t,i){super(),this.id=e,this.dispatcher=i,this.on("data",e=>{"source"===e.dataType&&"metadata"===e.sourceDataType&&(this._sourceLoaded=!0),this._sourceLoaded&&!this._paused&&"source"===e.dataType&&"content"===e.sourceDataType&&(this.reload(),this.transform&&this.update(this.transform,this.terrain),this._didEmitContent=!0)}),this.on("dataloading",()=>{this._sourceErrored=!1}),this.on("error",()=>{this._sourceErrored=this._source.loaded()}),this._source=((e,t,i,r)=>{let a=new(G(t.type))(e,t,i,r);if(a.id!==e)throw Error(`Expected Source id to be ${e} instead of ${a.id}`);return a})(e,t,i,this),this._tiles={},this._cache=new H(0,this._unloadTile.bind(this)),this._timers={},this._cacheTimers={},this._maxTileCacheSize=null,this._maxTileCacheZoomLevels=null,this._loadedParentTiles={},this._coveredTiles={},this._state=new K,this._didEmitContent=!1,this._updated=!1}onAdd(e){this.map=e,this._maxTileCacheSize=e?e._maxTileCacheSize:null,this._maxTileCacheZoomLevels=e?e._maxTileCacheZoomLevels:null,this._source&&this._source.onAdd&&this._source.onAdd(e)}onRemove(e){this.clearTiles(),this._source&&this._source.onRemove&&this._source.onRemove(e)}loaded(){if(this._sourceErrored)return!0;if(!this._sourceLoaded||!this._source.loaded())return!1;if(!(void 0===this.used&&void 0===this.usedForTerrain||this.used||this.usedForTerrain))return!0;if(!this._updated)return!1;for(let e in this._tiles){let t=this._tiles[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}return!0}getSource(){return this._source}pause(){this._paused=!0}resume(){if(!this._paused)return;let e=this._shouldReloadOnResume;this._paused=!1,this._shouldReloadOnResume=!1,e&&this.reload(),this.transform&&this.update(this.transform,this.terrain)}_loadTile(e,t){return this._source.loadTile(e,t)}_unloadTile(e){if(this._source.unloadTile)return this._source.unloadTile(e,()=>{})}_abortTile(t){this._source.abortTile&&this._source.abortTile(t,()=>{}),this._source.fire(new e.k("dataabort",{tile:t,coord:t.tileID,dataType:"source"}))}serialize(){return this._source.serialize()}prepare(e){for(let t in this._source.prepare&&this._source.prepare(),this._state.coalesceChanges(this._tiles,this.map?this.map.painter:null),this._tiles){let i=this._tiles[t];i.upload(e),i.prepare(this.map.style.imageManager)}}getIds(){return Object.values(this._tiles).map(e=>e.tileID).sort(J).map(e=>e.key)}getRenderableIds(t){let i=[];for(let e in this._tiles)this._isIdRenderable(e,t)&&i.push(this._tiles[e]);return t?i.sort((t,i)=>{let r=t.tileID,a=i.tileID,s=new e.P(r.canonical.x,r.canonical.y)._rotate(this.transform.angle),n=new e.P(a.canonical.x,a.canonical.y)._rotate(this.transform.angle);return r.overscaledZ-a.overscaledZ||n.y-s.y||n.x-s.x}).map(e=>e.tileID.key):i.map(e=>e.tileID).sort(J).map(e=>e.key)}hasRenderableParent(e){let t=this.findLoadedParent(e,0);return!!t&&this._isIdRenderable(t.tileID.key)}_isIdRenderable(e,t){return this._tiles[e]&&this._tiles[e].hasData()&&!this._coveredTiles[e]&&(t||!this._tiles[e].holdingForFade())}reload(){if(this._paused)this._shouldReloadOnResume=!0;else for(let e in this._cache.reset(),this._tiles)"errored"!==this._tiles[e].state&&this._reloadTile(e,"reloading")}_reloadTile(e,t){let i=this._tiles[e];i&&("loading"!==i.state&&(i.state=t),this._loadTile(i,this._tileLoaded.bind(this,i,e,t)))}_tileLoaded(t,i,r,a){if(a)return t.state="errored",void(404!==a.status?this._source.fire(new e.j(a,{tile:t})):this.update(this.transform,this.terrain));t.timeAdded=e.h.now(),"expired"===r&&(t.refreshedUponExpiration=!0),this._setTileReloadTimer(i,t),"raster-dem"===this.getSource().type&&t.dem&&this._backfillDEM(t),this._state.initializeTileState(t,this.map?this.map.painter:null),t.aborted||this._source.fire(new e.k("data",{dataType:"source",tile:t,coord:t.tileID}))}_backfillDEM(e){let t=this.getRenderableIds();for(let r=0;r1||(Math.abs(i)>1&&(1===Math.abs(i+a)?i+=a:1===Math.abs(i-a)&&(i-=a)),t.dem&&e.dem&&(e.dem.backfillBorder(t.dem,i,r),e.neighboringTiles&&e.neighboringTiles[s]&&(e.neighboringTiles[s].backfilled=!0)))}}getTile(e){return this.getTileByID(e.key)}getTileByID(e){return this._tiles[e]}_retainLoadedChildren(e,t,i,r){for(let a in this._tiles){let s=this._tiles[a];if(r[a]||!s.hasData()||s.tileID.overscaledZ<=t||s.tileID.overscaledZ>i)continue;let n=s.tileID;for(;s&&s.tileID.overscaledZ>t+1;){let e=s.tileID.scaledTo(s.tileID.overscaledZ-1);(s=this._tiles[e.key])&&s.hasData()&&(n=e)}let o=n;for(;o.overscaledZ>t;)if(e[(o=o.scaledTo(o.overscaledZ-1)).key]){r[n.key]=n;break}}}findLoadedParent(e,t){if(e.key in this._loadedParentTiles){let i=this._loadedParentTiles[e.key];return i&&i.tileID.overscaledZ>=t?i:null}for(let i=e.overscaledZ-1;i>=t;i--){let t=e.scaledTo(i),r=this._getLoadedTile(t);if(r)return r}}_getLoadedTile(e){let t=this._tiles[e.key];return t&&t.hasData()?t:this._cache.getByKey(e.wrapped().key)}updateCacheSize(t){let i=Math.floor((Math.ceil(t.width/this._source.tileSize)+1)*(Math.ceil(t.height/this._source.tileSize)+1)*(null===this._maxTileCacheZoomLevels?e.c.MAX_TILE_CACHE_ZOOM_LEVELS:this._maxTileCacheZoomLevels)),r="number"==typeof this._maxTileCacheSize?Math.min(this._maxTileCacheSize,i):i;this._cache.setMaxSize(r)}handleWrapJump(e){let t=Math.round((e-(void 0===this._prevLng?e:this._prevLng))/360);if(this._prevLng=e,t){let e={};for(let i in this._tiles){let r=this._tiles[i];r.tileID=r.tileID.unwrapTo(r.tileID.wrap+t),e[r.tileID.key]=r}for(let t in this._tiles=e,this._timers)clearTimeout(this._timers[t]),delete this._timers[t];for(let e in this._tiles)this._setTileReloadTimer(e,this._tiles[e])}}update(t,i){let r;if(this.transform=t,this.terrain=i,!this._sourceLoaded||this._paused)return;this.updateCacheSize(t),this.handleWrapJump(this.transform.center.lng),this._coveredTiles={},this.used||this.usedForTerrain?this._source.tileID?r=t.getVisibleUnwrappedCoordinates(this._source.tileID).map(t=>new e.O(t.canonical.z,t.wrap,t.canonical.z,t.canonical.x,t.canonical.y)):(r=t.coveringTiles({tileSize:this.usedForTerrain?this.tileSize:this._source.tileSize,minzoom:this._source.minzoom,maxzoom:this._source.maxzoom,roundZoom:!this.usedForTerrain&&this._source.roundZoom,reparseOverscaled:this._source.reparseOverscaled,terrain:i}),this._source.hasTile&&(r=r.filter(e=>this._source.hasTile(e)))):r=[];let a=t.coveringZoomLevel(this._source),s=Math.max(a-Y.maxOverzooming,this._source.minzoom),n=Math.max(a+Y.maxUnderzooming,this._source.minzoom);if(this.usedForTerrain){let e={};for(let t of r)if(t.canonical.z>this._source.minzoom){let i=t.scaledTo(t.canonical.z-1);e[i.key]=i;let r=t.scaledTo(Math.max(this._source.minzoom,Math.min(t.canonical.z,5)));e[r.key]=r}r=r.concat(Object.values(e))}let o=0===r.length&&!this._updated&&this._didEmitContent;this._updated=!0,o&&this.fire(new e.k("data",{sourceDataType:"idle",dataType:"source",sourceId:this.id}));let l=this._updateRetainedTiles(r,a);if(Q(this._source.type)){let t={},o={},h=Object.keys(l),u=e.h.now();for(let e of h){let i=l[e],r=this._tiles[e];if(!r||0!==r.fadeEndTime&&r.fadeEndTime<=u)continue;let a=this.findLoadedParent(i,s);a&&(this._addTile(a.tileID),t[a.tileID.key]=a.tileID),o[e]=i}for(let e in this._retainLoadedChildren(o,a,n,l),t)l[e]||(this._coveredTiles[e]=!0,l[e]=t[e]);if(i){let e={},t={};for(let i of r)this._tiles[i.key].hasData()?e[i.key]=i:t[i.key]=i;for(let i in t){let r=t[i].children(this._source.maxzoom);this._tiles[r[0].key]&&this._tiles[r[1].key]&&this._tiles[r[2].key]&&this._tiles[r[3].key]&&(e[r[0].key]=l[r[0].key]=r[0],e[r[1].key]=l[r[1].key]=r[1],e[r[2].key]=l[r[2].key]=r[2],e[r[3].key]=l[r[3].key]=r[3],delete t[i])}for(let i in t){let r=this.findLoadedParent(t[i],this._source.minzoom);if(r)for(let t in e[r.tileID.key]=l[r.tileID.key]=r.tileID,e)e[t].isChildOf(r.tileID)&&delete e[t]}for(let t in this._tiles)e[t]||(this._coveredTiles[t]=!0)}}for(let e in l)this._tiles[e].clearFadeHold();for(let t of e.ab(this._tiles,l)){let e=this._tiles[t];e.hasSymbolBuckets&&!e.holdingForFade()?e.setHoldDuration(this.map._fadeDuration):e.hasSymbolBuckets&&!e.symbolFadeFinished()||this._removeTile(t)}this._updateLoadedParentTileCache()}releaseSymbolFadeTiles(){for(let e in this._tiles)this._tiles[e].holdingForFade()&&this._removeTile(e)}_updateRetainedTiles(e,t){let i={},r={},a=Math.max(t-Y.maxOverzooming,this._source.minzoom),s=Math.max(t+Y.maxUnderzooming,this._source.minzoom),n={};for(let r of e){let e=this._addTile(r);i[r.key]=r,e.hasData()||tthis._source.maxzoom){let e=o.children(this._source.maxzoom)[0],t=this.getTile(e);if(t&&t.hasData()){i[e.key]=e;continue}}else{let e=o.children(this._source.maxzoom);if(i[e[0].key]&&i[e[1].key]&&i[e[2].key]&&i[e[3].key])continue}let s=e.wasRequested();for(let t=o.overscaledZ-1;t>=a;--t){let a=o.scaledTo(t);if(r[a.key])break;if(r[a.key]=!0,(e=this.getTile(a))||!s||(e=this._addTile(a)),e){let t=e.hasData();if((s||t)&&(i[a.key]=a),s=e.wasRequested(),t)break}}}return i}_updateLoadedParentTileCache(){for(let e in this._loadedParentTiles={},this._tiles){let t=[],i,r=this._tiles[e].tileID;for(;r.overscaledZ>0;){if(r.key in this._loadedParentTiles){i=this._loadedParentTiles[r.key];break}t.push(r.key);let e=r.scaledTo(r.overscaledZ-1);if(i=this._getLoadedTile(e))break;r=e}for(let e of t)this._loadedParentTiles[e]=i}}_addTile(t){let i=this._tiles[t.key];if(i)return i;(i=this._cache.getAndRemove(t))&&(this._setTileReloadTimer(t.key,i),i.tileID=t,this._state.initializeTileState(i,this.map?this.map.painter:null),this._cacheTimers[t.key]&&(clearTimeout(this._cacheTimers[t.key]),delete this._cacheTimers[t.key],this._setTileReloadTimer(t.key,i)));let r=i;return i||(i=new W(t,this._source.tileSize*t.overscaleFactor()),this._loadTile(i,this._tileLoaded.bind(this,i,t.key,i.state))),i.uses++,this._tiles[t.key]=i,r||this._source.fire(new e.k("dataloading",{tile:i,coord:i.tileID,dataType:"source"})),i}_setTileReloadTimer(e,t){e in this._timers&&(clearTimeout(this._timers[e]),delete this._timers[e]);let i=t.getExpiryTimeout();i&&(this._timers[e]=setTimeout(()=>{this._reloadTile(e,"expired"),delete this._timers[e]},i))}_removeTile(e){let t=this._tiles[e];t&&(t.uses--,delete this._tiles[e],this._timers[e]&&(clearTimeout(this._timers[e]),delete this._timers[e]),t.uses>0||(t.hasData()&&"reloading"!==t.state?this._cache.add(t.tileID,t,t.getExpiryTimeout()):(t.aborted=!0,this._abortTile(t),this._unloadTile(t))))}clearTiles(){for(let e in this._shouldReloadOnResume=!1,this._paused=!1,this._tiles)this._removeTile(e);this._cache.reset()}tilesIn(t,i,r){let a=[],s=this.transform;if(!s)return a;let n=r?s.getCameraQueryGeometry(t):t,o=t.map(e=>s.pointCoordinate(e,this.terrain)),l=n.map(e=>s.pointCoordinate(e,this.terrain)),h=this.getIds(),u=1/0,c=1/0,d=-1/0,p=-1/0;for(let e of l)u=Math.min(u,e.x),c=Math.min(c,e.y),d=Math.max(d,e.x),p=Math.max(p,e.y);for(let t=0;t=0&&_[1].y+m>=0){let e=o.map(e=>n.getTilePoint(e)),t=l.map(e=>n.getTilePoint(e));a.push({tile:r,tileID:n,queryGeometry:e,cameraQueryGeometry:t,scale:f})}}return a}getVisibleCoordinates(e){let t=this.getRenderableIds(e).map(e=>this._tiles[e].tileID);for(let e of t)e.posMatrix=this.transform.calculatePosMatrix(e.toUnwrapped());return t}hasTransition(){if(this._source.hasTransition())return!0;if(Q(this._source.type)){let t=e.h.now();for(let e in this._tiles)if(this._tiles[e].fadeEndTime>=t)return!0}return!1}setFeatureState(e,t,i){this._state.updateState(e=e||"_geojsonTileLayer",t,i)}removeFeatureState(e,t,i){this._state.removeFeatureState(e=e||"_geojsonTileLayer",t,i)}getFeatureState(e,t){return this._state.getState(e=e||"_geojsonTileLayer",t)}setDependencies(e,t,i){let r=this._tiles[e];r&&r.setDependencies(t,i)}reloadTilesForDependencies(e,t){for(let i in this._tiles)this._tiles[i].hasDependency(e,t)&&this._reloadTile(i,"reloading");this._cache.filter(i=>!i.hasDependency(e,t))}}function J(e,t){let i=Math.abs(2*e.wrap)-(e.wrap<0),r=Math.abs(2*t.wrap)-(t.wrap<0);return e.overscaledZ-t.overscaledZ||r-i||t.canonical.y-e.canonical.y||t.canonical.x-e.canonical.x}function Q(e){return"raster"===e||"image"===e||"video"===e}Y.maxOverzooming=10,Y.maxUnderzooming=3;let ee="mapboxgl_preloaded_worker_pool";class et{constructor(){this.active={}}acquire(t){if(!this.workers)for(this.workers=[];this.workers.length{e.terminate()}),this.workers=null)}isPreloaded(){return!!this.active[ee]}numActive(){return Object.keys(this.active).length}}let ei=Math.floor(e.h.hardwareConcurrency/2);function er(){return i||(i=new et),i}et.workerCount=e.ac(globalThis)?Math.max(Math.min(ei,3),1):1;class ea{constructor(e,t){this.reset(e,t)}reset(e,t){this.points=e||[],this._distances=[0];for(let e=1;e0?(a-n)/o:0;return this.points[s].mult(1-l).add(this.points[i].mult(l))}}function es(e,t){let i=!0;return"always"===e||"never"!==e&&"never"!==t||(i=!1),i}class en{constructor(e,t,i){let r=this.boxCells=[],a=this.circleCells=[];this.xCellCount=Math.ceil(e/i),this.yCellCount=Math.ceil(t/i);for(let e=0;ethis.width||r<0||t>this.height)return[];let o=[];if(e<=0&&t<=0&&this.width<=i&&this.height<=r){if(a)return[{key:null,x1:e,y1:t,x2:i,y2:r}];for(let e=0;e0}hitTestCircle(e,t,i,r,a){let s=e-i,n=e+i,o=t-i,l=t+i;if(n<0||s>this.width||l<0||o>this.height)return!1;let h=[];return this._forEachCell(s,o,n,l,this._queryCellCircle,h,{hitTest:!0,overlapMode:r,circle:{x:e,y:t,radius:i},seenUids:{box:{},circle:{}}},a),h.length>0}_queryCell(e,t,i,r,a,s,n,o){let{seenUids:l,hitTest:h,overlapMode:u}=n,c=this.boxCells[a];if(null!==c){let a=this.bboxes;for(let n of c)if(!l.box[n]){l.box[n]=!0;let c=4*n,d=this.boxKeys[n];if(e<=a[c+2]&&t<=a[c+3]&&i>=a[c+0]&&r>=a[c+1]&&(!o||o(d))&&(!h||!es(u,d.overlapMode))&&(s.push({key:d,x1:a[c],y1:a[c+1],x2:a[c+2],y2:a[c+3]}),h))return!0}}let d=this.circleCells[a];if(null!==d){let a=this.circles;for(let n of d)if(!l.circle[n]){l.circle[n]=!0;let c=3*n,d=this.circleKeys[n];if(this._circleAndRectCollide(a[c],a[c+1],a[c+2],e,t,i,r)&&(!o||o(d))&&(!h||!es(u,d.overlapMode))){let e=a[c],t=a[c+1],i=a[c+2];if(s.push({key:d,x1:e-i,y1:t-i,x2:e+i,y2:t+i}),h)return!0}}}return!1}_queryCellCircle(e,t,i,r,a,s,n,o){let{circle:l,seenUids:h,overlapMode:u}=n,c=this.boxCells[a];if(null!==c){let e=this.bboxes;for(let t of c)if(!h.box[t]){h.box[t]=!0;let i=4*t,r=this.boxKeys[t];if(this._circleAndRectCollide(l.x,l.y,l.radius,e[i+0],e[i+1],e[i+2],e[i+3])&&(!o||o(r))&&!es(u,r.overlapMode))return s.push(!0),!0}}let d=this.circleCells[a];if(null!==d){let e=this.circles;for(let t of d)if(!h.circle[t]){h.circle[t]=!0;let i=3*t,r=this.circleKeys[t];if(this._circlesCollide(e[i],e[i+1],e[i+2],l.x,l.y,l.radius)&&(!o||o(r))&&!es(u,r.overlapMode))return s.push(!0),!0}}}_forEachCell(e,t,i,r,a,s,n,o){let l=this._convertToXCellCoord(e),h=this._convertToYCellCoord(t),u=this._convertToXCellCoord(i),c=this._convertToYCellCoord(r);for(let d=l;d<=u;d++)for(let l=h;l<=c;l++)if(a.call(this,e,t,i,r,this.xCellCount*l+d,s,n,o))return}_convertToXCellCoord(e){return Math.max(0,Math.min(this.xCellCount-1,Math.floor(e*this.xScale)))}_convertToYCellCoord(e){return Math.max(0,Math.min(this.yCellCount-1,Math.floor(e*this.yScale)))}_circlesCollide(e,t,i,r,a,s){let n=r-e,o=a-t,l=i+s;return l*l>n*n+o*o}_circleAndRectCollide(e,t,i,r,a,s,n){let o=(s-r)/2,l=Math.abs(e-(r+o));if(l>o+i)return!1;let h=(n-a)/2,u=Math.abs(t-(a+h));if(u>h+i)return!1;if(l<=o||u<=h)return!0;let c=l-o,d=u-h;return c*c+d*d<=i*i}}function eo(t,i,r,a,s){let n=e.Z();return i?(e.a0(n,n,[1/s,1/s,1]),r||e.ae(n,n,a.angle)):e.a1(n,a.labelPlaneMatrix,t),n}function el(t,i,r,a,s){if(i){let i=e.af(t);return e.a0(i,i,[s,s,1]),r||e.ae(i,i,-a.angle),i}return a.glCoordMatrix}function eh(t,i,r){let a;r?(a=[t.x,t.y,r(t.x,t.y),1],e.ag(a,a,i)):ev(a=[t.x,t.y,0,1],a,i);let s=a[3];return{point:new e.P(a[0]/s,a[1]/s),signedDistanceFromCamera:s}}function eu(e,t){return .5+e/t*.5}function ec(e,t,i,r,a,s,n,o,l,h,u,c,d){let p=o.glyphStartIndex+o.numGlyphs,f=o.lineStartIndex,m=o.lineStartIndex+o.lineLength,_=t.getoffsetX(o.glyphStartIndex),g=t.getoffsetX(p-1),y=eg(e*_,i,r,a,s,n,o.segment,f,m,l,h,u,c,d);if(!y)return null;let x=eg(e*g,i,r,a,s,n,o.segment,f,m,l,h,u,c,d);return x?{first:y,last:x}:null}function ed(t,i,r,a){return t===e.ai.horizontal&&Math.abs(r.y-i.y)>Math.abs(r.x-i.x)*a?{useVertical:!0}:(t===e.ai.vertical?i.yr.x)?{needsFlipping:!0}:null}function ep(t,i,r,a,s,n,o,l,h,u,c,d,p,f,m,_){let g,y=i/24,x=t.lineOffsetX*y,v=t.lineOffsetY*y;if(t.numGlyphs>1){let e=t.glyphStartIndex+t.numGlyphs,i=t.lineStartIndex,s=t.lineStartIndex+t.lineLength,u=ec(y,l,x,v,r,c,d,t,h,n,p,m,_);if(!u)return{notEnoughRoom:!0};let b=eh(u.first.point,o,_).point,w=eh(u.last.point,o,_).point;if(a&&!r){let e=ed(t.writingMode,b,w,f);if(e)return e}g=[u.first];for(let a=t.glyphStartIndex+1;a0?n.point:ef(d,a,i,1,s,_),l=ed(t.writingMode,i,o,f);if(l)return l}let i=eg(y*l.getoffsetX(t.glyphStartIndex),x,v,r,c,d,t.segment,t.lineStartIndex,t.lineStartIndex+t.lineLength,h,n,p,m,_);if(!i)return{notEnoughRoom:!0};g=[i]}for(let t of g)e.ak(u,t.point,t.angle);return{}}function ef(e,t,i,r,a,s){let n=eh(e.add(e.sub(t)._unit()),a,s).point,o=i.sub(n);return i.add(o._mult(r/o.mag()))}function em(t,i){let{projectionCache:r,lineVertexArray:a,labelPlaneMatrix:s,tileAnchorPoint:n,distanceFromAnchor:o,getElevation:l,previousVertex:h,direction:u,absOffsetX:c}=i;if(r.projections[t])return r.projections[t];let d=new e.P(a.getx(t),a.gety(t)),p=eh(d,s,l);if(p.signedDistanceFromCamera>0)return r.projections[t]=p.point,p.point;let f=t-u;return ef(0===o?n:new e.P(a.getx(f),a.gety(f)),d,h,c-o+1,s,l)}function e_(e,t,i){return e._unit()._perp()._mult(t*i)}function eg(t,i,r,a,s,n,o,l,h,u,c,d,p,f){let m,_=a?t-i:t+i,g=_>0?1:-1,y=0;a&&(g*=-1,y=Math.PI),g<0&&(y+=Math.PI);let x,v,b=g>0?l+o:l+o+1,w=s,S=s,T=0,I=0,A=Math.abs(_),M=[];for(;T+I<=A;){if((b+=g)=h)return null;T+=I,S=w,v=x;let t={projectionCache:d,lineVertexArray:u,labelPlaneMatrix:c,tileAnchorPoint:n,distanceFromAnchor:T,getElevation:f,previousVertex:S,direction:g,absOffsetX:A};if(w=em(b,t),0===r)M.push(S),m=w.sub(S);else{let i,a=w.sub(S);i=0===a.mag()?e_(em(b+g,t).sub(w),r,g):e_(a,r,g),v||(v=S.add(i)),x=function(t,i,r,a,s,n,o,l){let{projectionCache:h,direction:u}=l;if(h.offsets[t])return h.offsets[t];let c=r.add(i);if(t+u=s)return h.offsets[t]=c,c;let d=em(t+u,l),p=e_(d.sub(r),o,u),f=r.add(p),m=d.add(p);return h.offsets[t]=e.al(n,c,f,m)||c,h.offsets[t]}(b,i,w,l,h,v,r,t),M.push(v),m=x.sub(v)}I=m.mag()}let E=m._mult((A-T)/I)._add(v||S),k=y+Math.atan2(w.y-S.y,w.x-S.x);return M.push(E),{point:E,angle:p?k:0,path:M}}let ey=new Float32Array([-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0,-1/0,-1/0,0]);function ex(e,t){for(let i=0;i=1;e--)u.push(n.path[e]);for(let e=1;eeh(e,l,f));u=e.some(e=>e.signedDistanceFromCamera<=0)?[]:e.map(e=>e.point)}let g=[];if(u.length>0){let t=u[0].clone(),i=u[0].clone();for(let e=1;e=r.x&&i.x<=a.x&&t.y>=r.y&&i.y<=a.y?[u]:i.xa.x||i.ya.y?[]:e.am([u],r.x,r.y,a.x,a.y)}for(let e of g){s.reset(e,.25*i);let r=0;r=s.length<=.5*i?1:Math.ceil(s.paddedLength/_)+1;for(let e=0;e=this.screenRightBoundary||r<100||t>this.screenBottomBoundary}isInsideGrid(e,t,i,r){return i>=0&&e=0&&te.collisionGroupID===t}}return this.collisionGroups[e]}}function ek(t,i,r,a,s){let{horizontalAlign:n,verticalAlign:o}=e.au(t);return new e.P(-(n-.5)*i+a[0]*s,-(o-.5)*r+a[1]*s)}function eC(t,i,r,a,s,n){let{x1:o,x2:l,y1:h,y2:u,anchorPointX:c,anchorPointY:d}=t,p=new e.P(i,r);return a&&p._rotate(s?n:-n),{x1:o+p.x,y1:h+p.y,x2:l+p.x,y2:u+p.y,anchorPointX:c,anchorPointY:d}}class eP{constructor(e,t,i,r,a){this.transform=e.clone(),this.terrain=t,this.collisionIndex=new eb(this.transform),this.placements={},this.opacities={},this.variableOffsets={},this.stale=!1,this.commitTime=0,this.fadeDuration=i,this.retainedQueryData={},this.collisionGroups=new eE(r),this.collisionCircleArrays={},this.prevPlacement=a,a&&(a.prevPlacement=void 0),this.placedOrientations={}}getBucketParts(t,i,r,a){let s=r.getBucket(i),n=r.latestFeatureIndex;if(!s||!n||i.id!==s.layerIds[0])return;let o=r.collisionBoxArray,l=s.layers[0].layout,h=Math.pow(2,this.transform.zoom-r.tileID.overscaledZ),u=r.tileSize/e.N,c=this.transform.calculatePosMatrix(r.tileID.toUnwrapped()),d="map"===l.get("text-pitch-alignment"),p="map"===l.get("text-rotation-alignment"),f=ew(r,1,this.transform.zoom),m=eo(c,d,p,this.transform,f),_=null;if(d){let t=el(c,d,p,this.transform,f);_=e.a1([],this.transform.labelPlaneMatrix,t)}this.retainedQueryData[s.bucketInstanceId]=new eM(s.bucketInstanceId,n,s.sourceLayerIndex,s.index,r.tileID);let g={bucket:s,layout:l,posMatrix:c,textLabelPlaneMatrix:m,labelToScreenMatrix:_,scale:h,textPixelRatio:u,holdingForFade:r.holdingForFade(),collisionBoxArray:o,partiallyEvaluatedTextSize:e.ah(s.textSizeData,this.transform.zoom),collisionGroup:this.collisionGroups.get(s.sourceID)};if(a)for(let e of s.sortKeyRanges){let{sortKey:i,symbolInstanceStart:r,symbolInstanceEnd:a}=e;t.push({sortKey:i,symbolInstanceStart:r,symbolInstanceEnd:a,parameters:g})}else t.push({symbolInstanceStart:0,symbolInstanceEnd:s.symbolInstances.length,parameters:g})}attemptAnchorPlacement(t,i,r,a,s,n,o,l,h,u,c,d,p,f,m,_){let g=e.aq[t.textAnchor],y=[t.textOffset0,t.textOffset1],x=ek(g,r,a,y,s),v=this.collisionIndex.placeCollisionBox(eC(i,x.x,x.y,n,o,this.transform.angle),c,l,h,u.predicate,_);if((!m||0!==this.collisionIndex.placeCollisionBox(eC(m,x.x,x.y,n,o,this.transform.angle),c,l,h,u.predicate,_).box.length)&&v.box.length>0){let e;if(this.prevPlacement&&this.prevPlacement.variableOffsets[d.crossTileID]&&this.prevPlacement.placements[d.crossTileID]&&this.prevPlacement.placements[d.crossTileID].text&&(e=this.prevPlacement.variableOffsets[d.crossTileID].anchor),0===d.crossTileID)throw Error("symbolInstance.crossTileID can't be 0");return this.variableOffsets[d.crossTileID]={textOffset:y,width:r,height:a,anchor:g,textBoxScale:s,prevAnchor:e},this.markUsedJustification(p,g,d,f),p.allowVerticalPlacement&&(this.markUsedOrientation(p,f,d),this.placedOrientations[d.crossTileID]=f),{shift:x,placedGlyphBoxes:v}}}placeLayerBucketPart(t,i,r){let{bucket:a,layout:s,posMatrix:n,textLabelPlaneMatrix:o,labelToScreenMatrix:l,textPixelRatio:h,holdingForFade:u,collisionBoxArray:c,partiallyEvaluatedTextSize:d,collisionGroup:p}=t.parameters,f=s.get("text-optional"),m=s.get("icon-optional"),_=e.ar(s,"text-overlap","text-allow-overlap"),g="always"===_,y=e.ar(s,"icon-overlap","icon-allow-overlap"),x="always"===y,v="map"===s.get("text-rotation-alignment"),b="map"===s.get("text-pitch-alignment"),w="none"!==s.get("icon-text-fit"),S="viewport-y"===s.get("symbol-z-order"),T=g&&(x||!a.hasIconData()||m),I=x&&(g||!a.hasTextData()||f);!a.collisionArrays&&c&&a.deserializeCollisionBoxes(c);let A=this.retainedQueryData[a.bucketInstanceId].tileID,M=this.terrain?(e,t)=>this.terrain.getElevation(A,e,t):null,E=(t,c)=>{var x,S;if(i[t.crossTileID])return;if(u)return void(this.placements[t.crossTileID]=new eI(!1,!1,!1));let A=!1,E=!1,k=!0,C=null,P={box:null,offscreen:null},z={box:null,offscreen:null},D=null,L=null,R=null,B=0,F=0,O=0;c.textFeatureIndex?B=c.textFeatureIndex:t.useRuntimeCollisionCircles&&(B=t.featureIndex),c.verticalTextFeatureIndex&&(F=c.verticalTextFeatureIndex);let V=c.textBox;if(V){let i=i=>{let r=e.ai.horizontal;if(a.allowVerticalPlacement&&!i&&this.prevPlacement){let e=this.prevPlacement.placedOrientations[t.crossTileID];e&&(this.placedOrientations[t.crossTileID]=e,r=e,this.markUsedOrientation(a,r,t))}return r},r=(i,r)=>{if(a.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&c.verticalTextBox){for(let t of a.writingModes)if(t===e.ai.vertical?z=P=r():P=i(),P&&P.box&&P.box.length)break}else P=i()},s=t.textAnchorOffsetStartIndex,o=t.textAnchorOffsetEndIndex;if(o===s){let s=(e,i)=>{let r=this.collisionIndex.placeCollisionBox(e,_,h,n,p.predicate,M);return r&&r.box&&r.box.length&&(this.markUsedOrientation(a,i,t),this.placedOrientations[t.crossTileID]=i),r};r(()=>s(V,e.ai.horizontal),()=>{let i=c.verticalTextBox;return a.allowVerticalPlacement&&t.numVerticalGlyphVertices>0&&i?s(i,e.ai.vertical):{box:null,offscreen:null}}),i(P&&P.box&&P.box.length)}else{let l=e.aq[null==(S=null==(x=this.prevPlacement)?void 0:x.variableOffsets[t.crossTileID])?void 0:S.anchor],u=(e,i,r)=>{let u=e.x2-e.x1,c=e.y2-e.y1,d=t.textBoxScale,f=w&&"never"===y?i:null,m={box:[],offscreen:!1},g="never"===_?1:2,x="never";l&&g++;for(let i=0;iu(V,c.iconBox,e.ai.horizontal),()=>{let i=c.verticalTextBox;return a.allowVerticalPlacement&&!(P&&P.box&&P.box.length)&&t.numVerticalGlyphVertices>0&&i?u(i,c.verticalIconBox,e.ai.vertical):{box:null,offscreen:null}}),P&&(A=P.box,k=P.offscreen);let d=i(P&&P.box);if(!A&&this.prevPlacement){let e=this.prevPlacement.variableOffsets[t.crossTileID];e&&(this.variableOffsets[t.crossTileID]=e,this.markUsedJustification(a,e.anchor,t,d))}}}if(A=(D=P)&&D.box&&D.box.length>0,k=D&&D.offscreen,t.useRuntimeCollisionCircles){let i=a.text.placedSymbolArray.get(t.centerJustifiedTextSymbolIndex),h=e.aj(a.textSizeData,d,i),u=s.get("text-padding");(L=this.collisionIndex.placeCollisionCircles(_,i,a.lineVertexArray,a.glyphOffsetArray,h,n,o,l,r,b,p.predicate,t.collisionCircleDiameter,u,M)).circles.length&&L.collisionDetected&&!r&&e.w("Collisions detected, but collision boxes are not shown"),A=g||L.circles.length>0&&!L.collisionDetected,k=k&&L.offscreen}if(c.iconFeatureIndex&&(O=c.iconFeatureIndex),c.iconBox){let e=e=>{let t=w&&C?eC(e,C.x,C.y,v,b,this.transform.angle):e;return this.collisionIndex.placeCollisionBox(t,y,h,n,p.predicate,M)};E=z&&z.box&&z.box.length&&c.verticalIconBox?(R=e(c.verticalIconBox)).box.length>0:(R=e(c.iconBox)).box.length>0,k=k&&R.offscreen}let N=f||0===t.numHorizontalGlyphVertices&&0===t.numVerticalGlyphVertices,U=m||0===t.numIconVertices;if(N||U?U?N||(E=E&&A):A=E&&A:E=A=E&&A,A&&D&&D.box&&this.collisionIndex.insertCollisionBox(D.box,_,s.get("text-ignore-placement"),a.bucketInstanceId,z&&z.box&&F?F:B,p.ID),E&&R&&this.collisionIndex.insertCollisionBox(R.box,y,s.get("icon-ignore-placement"),a.bucketInstanceId,O,p.ID),L&&(A&&this.collisionIndex.insertCollisionCircles(L.circles,_,s.get("text-ignore-placement"),a.bucketInstanceId,B,p.ID),r)){let e=a.bucketInstanceId,t=this.collisionCircleArrays[e];void 0===t&&(t=this.collisionCircleArrays[e]=new eA);for(let e=0;e=0;--t){let i=e[t];E(a.symbolInstances.get(i),a.collisionArrays[i])}}else for(let e=t.symbolInstanceStart;e=0&&(t.text.placedSymbolArray.get(n).crossTileID=s>=0&&n!==s?0:r.crossTileID)}markUsedOrientation(t,i,r){let a=i===e.ai.horizontal||i===e.ai.horizontalOnly?i:0,s=i===e.ai.vertical?i:0;for(let e of[r.leftJustifiedTextSymbolIndex,r.centerJustifiedTextSymbolIndex,r.rightJustifiedTextSymbolIndex])t.text.placedSymbolArray.get(e).placedOrientation=a;r.verticalPlacedTextSymbolIndex&&(t.text.placedSymbolArray.get(r.verticalPlacedTextSymbolIndex).placedOrientation=s)}commit(e){this.commitTime=e,this.zoomAtLastRecencyCheck=this.transform.zoom;let t=this.prevPlacement,i=!1;this.prevZoomAdjustment=t?t.zoomAdjustment(this.transform.zoom):0;let r=t?t.symbolFadeChange(e):1,a=t?t.opacities:{},s=t?t.variableOffsets:{},n=t?t.placedOrientations:{};for(let e in this.placements){let t=this.placements[e],s=a[e];s?(this.opacities[e]=new eT(s,r,t.text,t.icon),i=i||t.text!==s.text.placed||t.icon!==s.icon.placed):(this.opacities[e]=new eT(null,r,t.text,t.icon,t.skipFade),i=i||t.text||t.icon)}for(let e in a){let t=a[e];if(!this.opacities[e]){let a=new eT(t,r,!1,!1);a.isHidden()||(this.opacities[e]=a,i=i||t.text.placed||t.icon.placed)}}for(let e in s)this.variableOffsets[e]||!this.opacities[e]||this.opacities[e].isHidden()||(this.variableOffsets[e]=s[e]);for(let e in n)this.placedOrientations[e]||!this.opacities[e]||this.opacities[e].isHidden()||(this.placedOrientations[e]=n[e]);if(t&&void 0===t.lastPlacementChangeTime)throw Error("Last placement time for previous placement is not defined");i?this.lastPlacementChangeTime=e:"number"!=typeof this.lastPlacementChangeTime&&(this.lastPlacementChangeTime=t?t.lastPlacementChangeTime:e)}updateLayerOpacities(e,t){let i={};for(let r of t){let t=r.getBucket(e);t&&r.latestFeatureIndex&&e.id===t.layerIds[0]&&this.updateBucketOpacities(t,i,r.collisionBoxArray)}}updateBucketOpacities(t,i,r){t.hasTextData()&&(t.text.opacityVertexArray.clear(),t.text.hasVisibleVertices=!1),t.hasIconData()&&(t.icon.opacityVertexArray.clear(),t.icon.hasVisibleVertices=!1),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexArray.clear(),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexArray.clear();let a=t.layers[0],s=a.layout,n=new eT(null,0,!1,!1,!0),o=s.get("text-allow-overlap"),l=s.get("icon-allow-overlap"),h=a._unevaluatedLayout.hasValue("text-variable-anchor")||a._unevaluatedLayout.hasValue("text-variable-anchor-offset"),u="map"===s.get("text-rotation-alignment"),c="map"===s.get("text-pitch-alignment"),d="none"!==s.get("icon-text-fit"),p=new eT(null,0,o&&(l||!t.hasIconData()||s.get("icon-optional")),l&&(o||!t.hasTextData()||s.get("text-optional")),!0);!t.collisionArrays&&r&&(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData())&&t.deserializeCollisionBoxes(r);let f=(e,t,i)=>{for(let r=0;r0,g=this.placedOrientations[a.crossTileID],y=g===e.ai.vertical,x=g===e.ai.horizontal||g===e.ai.horizontalOnly;if(s>0||o>0){let e=eD(m.text);f(t.text,s,y?eL:e),f(t.text,o,x?eL:e);let i=m.text.isHidden();[a.rightJustifiedTextSymbolIndex,a.centerJustifiedTextSymbolIndex,a.leftJustifiedTextSymbolIndex].forEach(e=>{e>=0&&(t.text.placedSymbolArray.get(e).hidden=i||y?1:0)}),a.verticalPlacedTextSymbolIndex>=0&&(t.text.placedSymbolArray.get(a.verticalPlacedTextSymbolIndex).hidden=i||x?1:0);let r=this.variableOffsets[a.crossTileID];r&&this.markUsedJustification(t,r.anchor,a,g);let n=this.placedOrientations[a.crossTileID];n&&(this.markUsedJustification(t,"left",a,n),this.markUsedOrientation(t,n,a))}if(_){let e=eD(m.icon),i=!(d&&a.verticalPlacedIconSymbolIndex&&y);a.placedIconSymbolIndex>=0&&(f(t.icon,a.numIconVertices,i?e:eL),t.icon.placedSymbolArray.get(a.placedIconSymbolIndex).hidden=m.icon.isHidden()),a.verticalPlacedIconSymbolIndex>=0&&(f(t.icon,a.numVerticalIconVertices,i?eL:e),t.icon.placedSymbolArray.get(a.verticalPlacedIconSymbolIndex).hidden=m.icon.isHidden())}if(t.hasIconCollisionBoxData()||t.hasTextCollisionBoxData()){let i=t.collisionArrays[r];if(i){let r=new e.P(0,0);if(i.textBox||i.verticalTextBox){let e=!0;if(h){let t=this.variableOffsets[l];t?(r=ek(t.anchor,t.width,t.height,t.textOffset,t.textBoxScale),u&&r._rotate(c?this.transform.angle:-this.transform.angle)):e=!1}i.textBox&&ez(t.textCollisionBox.collisionVertexArray,m.text.placed,!e||y,r.x,r.y),i.verticalTextBox&&ez(t.textCollisionBox.collisionVertexArray,m.text.placed,!e||x,r.x,r.y)}let a=!!(!x&&i.verticalIconBox);i.iconBox&&ez(t.iconCollisionBox.collisionVertexArray,m.icon.placed,a,d?r.x:0,d?r.y:0),i.verticalIconBox&&ez(t.iconCollisionBox.collisionVertexArray,m.icon.placed,!a,d?r.x:0,d?r.y:0)}}}if(t.sortFeatures(this.transform.angle),this.retainedQueryData[t.bucketInstanceId]&&(this.retainedQueryData[t.bucketInstanceId].featureSortOrder=t.featureSortOrder),t.hasTextData()&&t.text.opacityVertexBuffer&&t.text.opacityVertexBuffer.updateData(t.text.opacityVertexArray),t.hasIconData()&&t.icon.opacityVertexBuffer&&t.icon.opacityVertexBuffer.updateData(t.icon.opacityVertexArray),t.hasIconCollisionBoxData()&&t.iconCollisionBox.collisionVertexBuffer&&t.iconCollisionBox.collisionVertexBuffer.updateData(t.iconCollisionBox.collisionVertexArray),t.hasTextCollisionBoxData()&&t.textCollisionBox.collisionVertexBuffer&&t.textCollisionBox.collisionVertexBuffer.updateData(t.textCollisionBox.collisionVertexArray),t.text.opacityVertexArray.length!==t.text.layoutVertexArray.length/4)throw Error(`bucket.text.opacityVertexArray.length (= ${t.text.opacityVertexArray.length}) !== bucket.text.layoutVertexArray.length (= ${t.text.layoutVertexArray.length}) / 4`);if(t.icon.opacityVertexArray.length!==t.icon.layoutVertexArray.length/4)throw Error(`bucket.icon.opacityVertexArray.length (= ${t.icon.opacityVertexArray.length}) !== bucket.icon.layoutVertexArray.length (= ${t.icon.layoutVertexArray.length}) / 4`);if(t.bucketInstanceId in this.collisionCircleArrays){let e=this.collisionCircleArrays[t.bucketInstanceId];t.placementInvProjMatrix=e.invProjMatrix,t.placementViewportMatrix=e.viewportMatrix,t.collisionCircleArray=e.circles,delete this.collisionCircleArrays[t.bucketInstanceId]}}symbolFadeChange(e){return 0===this.fadeDuration?1:(e-this.commitTime)/this.fadeDuration+this.prevZoomAdjustment}zoomAdjustment(e){return Math.max(0,(this.transform.zoom-e)/1.5)}hasTransitions(e){return this.stale||e-this.lastPlacementChangeTimee}setStale(){this.stale=!0}}function ez(e,t,i,r,a){e.emplaceBack(+!!t,+!!i,r||0,a||0),e.emplaceBack(+!!t,+!!i,r||0,a||0),e.emplaceBack(+!!t,+!!i,r||0,a||0),e.emplaceBack(+!!t,+!!i,r||0,a||0)}function eD(e){if(0===e.opacity&&!e.placed)return 0;if(1===e.opacity&&e.placed)return 0xffffffff;let t=+!!e.placed,i=Math.floor(127*e.opacity);return 0x2000000*i+0x1000000*t+131072*i+65536*t+512*i+256*t+2*i+t}let eL=0;class eR{constructor(e){this._sortAcrossTiles="viewport-y"!==e.layout.get("symbol-z-order")&&!e.layout.get("symbol-sort-key").isConstant(),this._currentTileIndex=0,this._currentPartIndex=0,this._seenCrossTileIDs={},this._bucketParts=[]}continuePlacement(e,t,i,r,a){let s=this._bucketParts;for(;this._currentTileIndexe.sortKey-t.sortKey));this._currentPartIndex!this._forceFullPlacement&&e.h.now()-a>2;for(;this._currentPlacementIndex>=0;){let e=i[t[this._currentPlacementIndex]],a=this.placement.collisionIndex.transform.zoom;if("symbol"===e.type&&(!e.minzoom||e.minzoom<=a)&&(!e.maxzoom||e.maxzoom>a)){if(this._inProgressLayer||(this._inProgressLayer=new eR(e)),this._inProgressLayer.continuePlacement(r[e.source],this.placement,this._showCollisionBoxes,e,s))return;delete this._inProgressLayer}this._currentPlacementIndex--}this._done=!0}commit(e){return this.placement.commit(e),this.placement}}let eF=512/e.N/2;class eO{constructor(t,i,r){this.tileID=t,this.bucketInstanceId=r,this._symbolsByKey={};let a=new Map;for(let e=0;e({x:Math.floor(e.anchorX*eF),y:Math.floor(e.anchorY*eF)})),crossTileIDs:i.map(e=>e.crossTileID)};if(r.positions.length>128){let t=new e.av(r.positions.length,16,Uint16Array);for(let{x:e,y:i}of r.positions)t.add(e,i);t.finish(),delete r.positions,r.index=t}this._symbolsByKey[t]=r}}getScaledCoordinates(t,i){let{x:r,y:a,z:s}=this.tileID.canonical,{x:n,y:o,z:l}=i.canonical,h=eF/Math.pow(2,l-s),u=(o*e.N+t.anchorY)*h,c=a*e.N*eF;return{x:Math.floor((n*e.N+t.anchorX)*h-r*e.N*eF),y:Math.floor(u-c)}}findMatches(e,t,i){let r=this.tileID.canonical.ze)}}class eV{constructor(){this.maxCrossTileID=0}generate(){return++this.maxCrossTileID}}class eN{constructor(){this.indexes={},this.usedCrossTileIDs={},this.lng=0}handleWrapJump(e){let t=Math.round((e-this.lng)/360);if(0!==t)for(let e in this.indexes){let i=this.indexes[e],r={};for(let e in i){let a=i[e];a.tileID=a.tileID.unwrapTo(a.tileID.wrap+t),r[a.tileID.key]=a}this.indexes[e]=r}this.lng=e}addBucket(e,t,i){if(this.indexes[e.overscaledZ]&&this.indexes[e.overscaledZ][e.key]){if(this.indexes[e.overscaledZ][e.key].bucketInstanceId===t.bucketInstanceId)return!1;this.removeBucketCrossTileIDs(e.overscaledZ,this.indexes[e.overscaledZ][e.key])}for(let e=0;ee.overscaledZ)for(let i in a){let s=a[i];s.tileID.isChildOf(e)&&s.findMatches(t.symbolInstances,e,r)}else{let s=a[e.scaledTo(Number(i)).key];s&&s.findMatches(t.symbolInstances,e,r)}}for(let e=0;e{t[e]=!0}),this.layerIndexes)t[i]||delete this.layerIndexes[i]}}let e$=(t,i)=>e.x(t,i&&i.filter(e=>"source.canvas"!==e.identifier)),ej=e.F(e.ax,["addLayer","removeLayer","setPaintProperty","setLayoutProperty","setFilter","addSource","removeSource","setLayerZoomRange","setLight","setTransition","setGeoJSONSourceData","setGlyphs","setSprite"]),eq=e.F(e.ax,["setCenter","setZoom","setBearing","setPitch"]),eZ=e.aw();class eG extends e.E{constructor(t,i={}){super(),this.map=t,this.dispatcher=new D(er(),this,t._getMapId()),this.imageManager=new A,this.imageManager.setEventedParent(this),this.glyphManager=new k(t._requestManager,i.localIdeographFontFamily),this.lineAtlas=new z(256,512),this.crossTileSymbolIndex=new eU,this._spritesImagesIds={},this._layers={},this._order=[],this.sourceCaches={},this.zoomHistory=new e.ay,this._loaded=!1,this._availableImages=[],this._resetUpdates(),this.dispatcher.broadcast("setReferrer",e.az());let r=this;this._rtlTextPluginCallback=eG.registerForPluginStateChange(t=>{r.dispatcher.broadcast("syncRTLPluginState",{pluginStatus:t.pluginStatus,pluginURL:t.pluginURL},(t,i)=>{if(e.aA(t),i&&i.every(e=>e))for(let e in r.sourceCaches){let t=r.sourceCaches[e].getSource().type;"vector"!==t&&"geojson"!==t||r.sourceCaches[e].reload()}})}),this.on("data",e=>{if("source"!==e.dataType||"metadata"!==e.sourceDataType)return;let t=this.sourceCaches[e.sourceId];if(!t)return;let i=t.getSource();if(i&&i.vectorLayerIds)for(let e in this._layers){let t=this._layers[e];t.source===i.id&&this._validateLayer(t)}})}loadURL(t,i={},r){this.fire(new e.k("dataloading",{dataType:"style"})),i.validate="boolean"!=typeof i.validate||i.validate;let a=this.map._requestManager.transformRequest(t,x.Style);this._request=e.f(a,(t,a)=>{this._request=null,t?this.fire(new e.j(t)):a&&this._load(a,i,r)})}loadJSON(t,i={},r){this.fire(new e.k("dataloading",{dataType:"style"})),this._request=e.h.frame(()=>{this._request=null,i.validate=!1!==i.validate,this._load(t,i,r)})}loadEmpty(){this.fire(new e.k("dataloading",{dataType:"style"})),this._load(eZ,{validate:!1})}_load(t,i,r){var a;let s=i.transformStyle?i.transformStyle(r,t):t;if(!i.validate||!e$(this,e.y(s))){for(let e in this._loaded=!0,this.stylesheet=s,s.sources)this.addSource(e,s.sources[e],{validate:!1});s.sprite?this._loadSprite(s.sprite):this.imageManager.setLoaded(!0),this.glyphManager.setURL(s.glyphs),this._createLayers(),this.light=new P(this.stylesheet.light),this.map.setTerrain(null!=(a=this.stylesheet.terrain)?a:null),this.fire(new e.k("data",{dataType:"style"})),this.fire(new e.k("style.load"))}}_createLayers(){let t=e.aB(this.stylesheet.layers);for(let i of(this.dispatcher.broadcast("setLayers",t),this._order=t.map(e=>e.id),this._layers={},this._serializedLayers=null,t)){let t=e.aC(i);t.setEventedParent(this,{layer:{id:i.id}}),this._layers[i.id]=t}}_loadSprite(t,i=!1,r){this.imageManager.setLoaded(!1),this._spriteRequest=function(t,i,r,a){let s=S(t),n=s.length,o=r>1?"@2x":"",l={},h={},u={};for(let{id:t,url:r}of s){let s=i.transformRequest(i.normalizeSpriteURL(r,o,".json"),x.SpriteJSON),c=`${t}_${s.url}`;l[c]=e.f(s,(e,i)=>{delete l[c],h[t]=i,T(a,h,u,e,n)});let d=i.transformRequest(i.normalizeSpriteURL(r,o,".png"),x.SpriteImage),p=`${t}_${d.url}`;l[p]=y.getImage(d,(e,i)=>{delete l[p],u[t]=i,T(a,h,u,e,n)})}return{cancel(){for(let e of Object.values(l))e.cancel()}}}(t,this.map._requestManager,this.map.getPixelRatio(),(t,a)=>{if(this._spriteRequest=null,t)this.fire(new e.j(t));else if(a)for(let e in a){for(let t of(this._spritesImagesIds[e]=[],this._spritesImagesIds[e]?this._spritesImagesIds[e].filter(e=>!(e in a)):[]))this.imageManager.removeImage(t),this._changedImages[t]=!0;for(let t in a[e]){let r="default"===e?t:`${e}:${t}`;this._spritesImagesIds[e].push(r),r in this.imageManager.images?this.imageManager.updateImage(r,a[e][t],!1):this.imageManager.addImage(r,a[e][t]),i&&(this._changedImages[r]=!0)}}this.imageManager.setLoaded(!0),this._availableImages=this.imageManager.listImages(),i&&(this._changed=!0),this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new e.k("data",{dataType:"style"})),r&&r(t)})}_unloadSprite(){for(let e of Object.values(this._spritesImagesIds).flat())this.imageManager.removeImage(e),this._changedImages[e]=!0;this._spritesImagesIds={},this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new e.k("data",{dataType:"style"}))}_validateLayer(t){let i=this.sourceCaches[t.source];if(!i)return;let r=t.sourceLayer;if(!r)return;let a=i.getSource();("geojson"===a.type||a.vectorLayerIds&&-1===a.vectorLayerIds.indexOf(r))&&this.fire(new e.j(Error(`Source layer "${r}" does not exist on source "${a.id}" as specified by style layer "${t.id}".`)))}loaded(){if(!this._loaded||Object.keys(this._updatedSources).length)return!1;for(let e in this.sourceCaches)if(!this.sourceCaches[e].loaded())return!1;return!!this.imageManager.isLoaded()}_serializeByIds(e){let t=this._serializedAllLayers();if(!e||0===e.length)return Object.values(t);let i=[];for(let r of e)t[r]&&i.push(t[r]);return i}_serializedAllLayers(){let e=this._serializedLayers;if(e)return e;for(let t of(e=this._serializedLayers={},Object.keys(this._layers))){let i=this._layers[t];"custom"!==i.type&&(e[t]=i.serialize())}return e}hasTransitions(){if(this.light&&this.light.hasTransition())return!0;for(let e in this.sourceCaches)if(this.sourceCaches[e].hasTransition())return!0;for(let e in this._layers)if(this._layers[e].hasTransition())return!0;return!1}_checkLoaded(){if(!this._loaded)throw Error("Style is not done loading.")}update(t){if(!this._loaded)return;let i=this._changed;if(this._changed){let e=Object.keys(this._updatedLayers),i=Object.keys(this._removedLayers);for(let t in(e.length||i.length)&&this._updateWorkerLayers(e,i),this._updatedSources){let e=this._updatedSources[t];if("reload"===e)this._reloadSource(t);else{if("clear"!==e)throw Error(`Invalid action ${e}`);this._clearSource(t)}}for(let e in this._updateTilesForChangedImages(),this._updateTilesForChangedGlyphs(),this._updatedPaintProps)this._layers[e].updateTransitions(t);this.light.updateTransitions(t),this._resetUpdates()}let r={};for(let e in this.sourceCaches){let t=this.sourceCaches[e];r[e]=t.used,t.used=!1}for(let e of this._order){let i=this._layers[e];i.recalculate(t,this._availableImages),!i.isHidden(t.zoom)&&i.source&&(this.sourceCaches[i.source].used=!0)}for(let t in r){let i=this.sourceCaches[t];r[t]!==i.used&&i.fire(new e.k("data",{sourceDataType:"visibility",dataType:"source",sourceId:t}))}this.light.recalculate(t),this.z=t.zoom,i&&this.fire(new e.k("data",{dataType:"style"}))}_updateTilesForChangedImages(){let e=Object.keys(this._changedImages);if(e.length){for(let t in this.sourceCaches)this.sourceCaches[t].reloadTilesForDependencies(["icons","patterns"],e);this._changedImages={}}}_updateTilesForChangedGlyphs(){if(this._glyphsDidChange){for(let e in this.sourceCaches)this.sourceCaches[e].reloadTilesForDependencies(["glyphs"],[""]);this._glyphsDidChange=!1}}_updateWorkerLayers(e,t){this.dispatcher.broadcast("updateLayers",{layers:this._serializeByIds(e),removedIds:t})}_resetUpdates(){this._changed=!1,this._updatedLayers={},this._removedLayers={},this._updatedSources={},this._updatedPaintProps={},this._changedImages={},this._glyphsDidChange=!1}setState(t,i={}){this._checkLoaded();let r=this.serialize();if(t=i.transformStyle?i.transformStyle(r,t):t,e$(this,e.y(t)))return!1;(t=e.aD(t)).layers=e.aB(t.layers);let a=e.aE(r,t).filter(e=>!(e.command in eq));if(0===a.length)return!1;let s=a.filter(e=>!(e.command in ej));if(s.length>0)throw Error(`Unimplemented: ${s.map(e=>e.command).join(", ")}.`);for(let e of a)"setTransition"!==e.command&&this[e.command].apply(this,e.args);return this.stylesheet=t,this._serializedLayers=null,!0}addImage(t,i){if(this.getImage(t))return this.fire(new e.j(Error(`An image named "${t}" already exists.`)));this.imageManager.addImage(t,i),this._afterImageUpdated(t)}updateImage(e,t){this.imageManager.updateImage(e,t)}getImage(e){return this.imageManager.getImage(e)}removeImage(t){if(!this.getImage(t))return this.fire(new e.j(Error(`An image named "${t}" does not exist.`)));this.imageManager.removeImage(t),this._afterImageUpdated(t)}_afterImageUpdated(t){this._availableImages=this.imageManager.listImages(),this._changedImages[t]=!0,this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new e.k("data",{dataType:"style"}))}listImages(){return this._checkLoaded(),this.imageManager.listImages()}addSource(t,i,r={}){if(this._checkLoaded(),void 0!==this.sourceCaches[t])throw Error(`Source "${t}" already exists.`);if(!i.type)throw Error(`The type property must be defined, but only the following properties were given: ${Object.keys(i).join(", ")}.`);if(["vector","raster","geojson","video","image"].indexOf(i.type)>=0&&this._validate(e.y.source,`sources.${t}`,i,null,r))return;this.map&&this.map._collectResourceTiming&&(i.collectResourceTiming=!0);let a=this.sourceCaches[t]=new Y(t,i,this.dispatcher);a.style=this,a.setEventedParent(this,()=>({isSourceLoaded:a.loaded(),source:a.serialize(),sourceId:t})),a.onAdd(this.map),this._changed=!0}removeSource(t){if(this._checkLoaded(),void 0===this.sourceCaches[t])throw Error("There is no source with this ID");for(let i in this._layers)if(this._layers[i].source===t)return this.fire(new e.j(Error(`Source "${t}" cannot be removed while layer "${i}" is using it.`)));let i=this.sourceCaches[t];delete this.sourceCaches[t],delete this._updatedSources[t],i.fire(new e.k("data",{sourceDataType:"metadata",dataType:"source",sourceId:t})),i.setEventedParent(null),i.onRemove(this.map),this._changed=!0}setGeoJSONSourceData(e,t){if(this._checkLoaded(),void 0===this.sourceCaches[e])throw Error(`There is no source with this ID=${e}`);let i=this.sourceCaches[e].getSource();if("geojson"!==i.type)throw Error(`geojsonSource.type is ${i.type}, which is !== 'geojson`);i.setData(t),this._changed=!0}getSource(e){return this.sourceCaches[e]&&this.sourceCaches[e].getSource()}addLayer(t,i,r={}){let a;this._checkLoaded();let s=t.id;if(this.getLayer(s))return void this.fire(new e.j(Error(`Layer "${s}" already exists on this map.`)));if("custom"===t.type){if(e$(this,e.aF(t)))return;a=e.aC(t)}else{if("source"in t&&"object"==typeof t.source&&(this.addSource(s,t.source),t=e.aD(t),t=e.e(t,{source:s})),this._validate(e.y.layer,`layers.${s}`,t,{arrayIndex:-1},r))return;a=e.aC(t),this._validateLayer(a),a.setEventedParent(this,{layer:{id:s}})}let n=i?this._order.indexOf(i):this._order.length;if(i&&-1===n)this.fire(new e.j(Error(`Cannot add layer "${s}" before non-existing layer "${i}".`)));else{if(this._order.splice(n,0,s),this._layerOrderChanged=!0,this._layers[s]=a,this._removedLayers[s]&&a.source&&"custom"!==a.type){let e=this._removedLayers[s];delete this._removedLayers[s],e.type!==a.type?this._updatedSources[a.source]="clear":(this._updatedSources[a.source]="reload",this.sourceCaches[a.source].pause())}this._updateLayer(a),a.onAdd&&a.onAdd(this.map)}}moveLayer(t,i){if(this._checkLoaded(),this._changed=!0,!this._layers[t])return void this.fire(new e.j(Error(`The layer '${t}' does not exist in the map's style and cannot be moved.`)));if(t===i)return;let r=this._order.indexOf(t);this._order.splice(r,1);let a=i?this._order.indexOf(i):this._order.length;i&&-1===a?this.fire(new e.j(Error(`Cannot move layer "${t}" before non-existing layer "${i}".`))):(this._order.splice(a,0,t),this._layerOrderChanged=!0)}removeLayer(t){this._checkLoaded();let i=this._layers[t];if(!i)return void this.fire(new e.j(Error(`Cannot remove non-existing layer "${t}".`)));i.setEventedParent(null);let r=this._order.indexOf(t);this._order.splice(r,1),this._layerOrderChanged=!0,this._changed=!0,this._removedLayers[t]=i,delete this._layers[t],this._serializedLayers&&delete this._serializedLayers[t],delete this._updatedLayers[t],delete this._updatedPaintProps[t],i.onRemove&&i.onRemove(this.map)}getLayer(e){return this._layers[e]}getLayersOrder(){return[...this._order]}hasLayer(e){return e in this._layers}setLayerZoomRange(t,i,r){this._checkLoaded();let a=this.getLayer(t);a?a.minzoom===i&&a.maxzoom===r||(null!=i&&(a.minzoom=i),null!=r&&(a.maxzoom=r),this._updateLayer(a)):this.fire(new e.j(Error(`Cannot set the zoom range of non-existing layer "${t}".`)))}setFilter(t,i,r={}){this._checkLoaded();let a=this.getLayer(t);if(a){if(!e.aG(a.filter,i))return null==i?(a.filter=void 0,void this._updateLayer(a)):void(this._validate(e.y.filter,`layers.${a.id}.filter`,i,null,r)||(a.filter=e.aD(i),this._updateLayer(a)))}else this.fire(new e.j(Error(`Cannot filter non-existing layer "${t}".`)))}getFilter(t){return e.aD(this.getLayer(t).filter)}setLayoutProperty(t,i,r,a={}){this._checkLoaded();let s=this.getLayer(t);s?e.aG(s.getLayoutProperty(i),r)||(s.setLayoutProperty(i,r,a),this._updateLayer(s)):this.fire(new e.j(Error(`Cannot style non-existing layer "${t}".`)))}getLayoutProperty(t,i){let r=this.getLayer(t);if(r)return r.getLayoutProperty(i);this.fire(new e.j(Error(`Cannot get style of non-existing layer "${t}".`)))}setPaintProperty(t,i,r,a={}){this._checkLoaded();let s=this.getLayer(t);s?e.aG(s.getPaintProperty(i),r)||(s.setPaintProperty(i,r,a)&&this._updateLayer(s),this._changed=!0,this._updatedPaintProps[t]=!0):this.fire(new e.j(Error(`Cannot style non-existing layer "${t}".`)))}getPaintProperty(e,t){return this.getLayer(e).getPaintProperty(t)}setFeatureState(t,i){this._checkLoaded();let r=t.source,a=t.sourceLayer,s=this.sourceCaches[r];if(void 0===s)return void this.fire(new e.j(Error(`The source '${r}' does not exist in the map's style.`)));let n=s.getSource().type;"geojson"===n&&a?this.fire(new e.j(Error("GeoJSON sources cannot have a sourceLayer parameter."))):"vector"!==n||a?(void 0===t.id&&this.fire(new e.j(Error("The feature id parameter must be provided."))),s.setFeatureState(a,t.id,i)):this.fire(new e.j(Error("The sourceLayer parameter must be provided for vector source types.")))}removeFeatureState(t,i){this._checkLoaded();let r=t.source,a=this.sourceCaches[r];if(void 0===a)return void this.fire(new e.j(Error(`The source '${r}' does not exist in the map's style.`)));let s=a.getSource().type,n="vector"===s?t.sourceLayer:void 0;"vector"!==s||n?i&&"string"!=typeof t.id&&"number"!=typeof t.id?this.fire(new e.j(Error("A feature id is required to remove its specific state property."))):a.removeFeatureState(n,t.id,i):this.fire(new e.j(Error("The sourceLayer parameter must be provided for vector source types.")))}getFeatureState(t){this._checkLoaded();let i=t.source,r=t.sourceLayer,a=this.sourceCaches[i];if(void 0!==a)return"vector"!==a.getSource().type||r?(void 0===t.id&&this.fire(new e.j(Error("The feature id parameter must be provided."))),a.getFeatureState(r,t.id)):void this.fire(new e.j(Error("The sourceLayer parameter must be provided for vector source types.")));this.fire(new e.j(Error(`The source '${i}' does not exist in the map's style.`)))}getTransition(){return e.e({duration:300,delay:0},this.stylesheet&&this.stylesheet.transition)}serialize(){if(!this._loaded)return;let t=e.aH(this.sourceCaches,e=>e.serialize()),i=this._serializeByIds(this._order),r=this.map.getTerrain()||void 0,a=this.stylesheet;return e.aI({version:a.version,name:a.name,metadata:a.metadata,light:a.light,center:a.center,zoom:a.zoom,bearing:a.bearing,pitch:a.pitch,sprite:a.sprite,glyphs:a.glyphs,transition:a.transition,sources:t,layers:i,terrain:r},e=>void 0!==e)}_updateLayer(e){this._updatedLayers[e.id]=!0,e.source&&!this._updatedSources[e.source]&&"raster"!==this.sourceCaches[e.source].getSource().type&&(this._updatedSources[e.source]="reload",this.sourceCaches[e.source].pause()),this._serializedLayers=null,this._changed=!0}_flattenAndSortRenderedFeatures(e){let t=e=>"fill-extrusion"===this._layers[e].type,i={},r=[];for(let a=this._order.length-1;a>=0;a--){let s=this._order[a];if(t(s))for(let t of(i[s]=a,e)){let e=t[s];if(e)for(let t of e)r.push(t)}}r.sort((e,t)=>t.intersectionZ-e.intersectionZ);let a=[];for(let s=this._order.length-1;s>=0;s--){let n=this._order[s];if(t(n))for(let e=r.length-1;e>=0;e--){let t=r[e].feature;if(i[t.layer.id]{let i=e.feature,r=t.getFeatureState(i.layer["source-layer"],i.id);i.source=i.layer.source,i.layer["source-layer"]&&(i.sourceLayer=i.layer["source-layer"]),i.state=r});return c}(this.sourceCaches[o],this._layers,n,t,i,r));return this.placement&&s.push(function(e,t,i,r,a,s,n){let o={},l=s.queryRenderedSymbols(r),h=[];for(let e of Object.keys(l).map(Number))h.push(n[e]);for(let i of(h.sort(X),h)){let r=i.featureIndex.lookupSymbolFeatures(l[i.bucketInstanceId],t,i.bucketIndex,i.sourceLayerIndex,a.filter,a.layers,a.availableImages,e);for(let e in r){let t=o[e]=o[e]||[],a=r[e];for(let e of(a.sort((e,t)=>{let r=i.featureSortOrder;if(r){let i=r.indexOf(e.featureIndex);return r.indexOf(t.featureIndex)-i}return t.featureIndex-e.featureIndex}),a))t.push(e)}}for(let t in o)o[t].forEach(r=>{let a=r.feature,s=i[e[t].source].getFeatureState(a.layer["source-layer"],a.id);a.source=a.layer.source,a.layer["source-layer"]&&(a.sourceLayer=a.layer["source-layer"]),a.state=s});return o}(this._layers,n,this.sourceCaches,t,i,this.placement.collisionIndex,this.placement.retainedQueryData)),this._flattenAndSortRenderedFeatures(s)}querySourceFeatures(t,i){i&&i.filter&&this._validate(e.y.filter,"querySourceFeatures.filter",i.filter,null,i);let r=this.sourceCaches[t];return r?function(e,t){let i=e.getRenderableIds().map(t=>e.getTileByID(t)),r=[],a={};for(let e=0;ee.getTileByID(t)).sort((e,t)=>t.tileID.overscaledZ-e.tileID.overscaledZ||(e.tileID.isLessThan(t.tileID)?-1:1))}let r=this.crossTileSymbolIndex.addLayer(i,l[i.source],t.center.lng);n=n||r}if(this.crossTileSymbolIndex.pruneUnusedLayers(this._order),((s=s||this._layerOrderChanged||0===r)||!this.pauseablePlacement||this.pauseablePlacement.isDone()&&!this.placement.stillRecent(e.h.now(),t.zoom))&&(this.pauseablePlacement=new eB(t,this.map.terrain,this._order,s,i,r,a,this.placement),this._layerOrderChanged=!1),this.pauseablePlacement.isDone()?this.placement.setStale():(this.pauseablePlacement.continuePlacement(this._order,this._layers,l),this.pauseablePlacement.isDone()&&(this.placement=this.pauseablePlacement.commit(e.h.now()),o=!0),n&&this.pauseablePlacement.placement.setStale()),o||n)for(let e of this._order){let t=this._layers[e];"symbol"===t.type&&this.placement.updateLayerOpacities(t,l[t.source])}return!this.pauseablePlacement.isDone()||this.placement.hasTransitions(e.h.now())}_releaseSymbolFadeTiles(){for(let e in this.sourceCaches)this.sourceCaches[e].releaseSymbolFadeTiles()}getImages(e,t,i){this.imageManager.getImages(t.icons,i),this._updateTilesForChangedImages();let r=this.sourceCaches[t.source];r&&r.setDependencies(t.tileID.key,t.type,t.icons)}getGlyphs(e,t,i){this.glyphManager.getGlyphs(t.stacks,i);let r=this.sourceCaches[t.source];r&&r.setDependencies(t.tileID.key,t.type,[""])}getResource(t,i,r){return e.m(i,r)}getGlyphsUrl(){return this.stylesheet.glyphs||null}setGlyphs(t,i={}){this._checkLoaded(),t&&this._validate(e.y.glyphs,"glyphs",t,null,i)||(this._glyphsDidChange=!0,this.stylesheet.glyphs=t,this.glyphManager.entries={},this.glyphManager.setURL(t))}addSprite(t,i,r={},a){this._checkLoaded();let s=[{id:t,url:i}],n=[...S(this.stylesheet.sprite),...s];this._validate(e.y.sprite,"sprite",n,null,r)||(this.stylesheet.sprite=n,this._loadSprite(s,!0,a))}removeSprite(t){this._checkLoaded();let i=S(this.stylesheet.sprite);if(i.find(e=>e.id===t)){if(this._spritesImagesIds[t])for(let e of this._spritesImagesIds[t])this.imageManager.removeImage(e),this._changedImages[e]=!0;i.splice(i.findIndex(e=>e.id===t),1),this.stylesheet.sprite=i.length>0?i:void 0,delete this._spritesImagesIds[t],this._availableImages=this.imageManager.listImages(),this._changed=!0,this.dispatcher.broadcast("setImages",this._availableImages),this.fire(new e.k("data",{dataType:"style"}))}else this.fire(new e.j(Error(`Sprite "${t}" doesn't exists on this map.`)))}getSprite(){return S(this.stylesheet.sprite)}setSprite(t,i={},r){this._checkLoaded(),t&&this._validate(e.y.sprite,"sprite",t,null,i)||(this.stylesheet.sprite=t,t?this._loadSprite(t,!0,r):(this._unloadSprite(),r&&r(null)))}}eG.registerForPluginStateChange=e.aK;var eX=e.Q([{name:"a_pos",type:"Int16",components:2}]),eW="attribute vec3 a_pos3d;uniform mat4 u_matrix;uniform float u_ele_delta;varying vec2 v_texture_pos;varying float v_depth;void main() {float extent=8192.0;float ele_delta=a_pos3d.z==1.0 ? u_ele_delta : 0.0;v_texture_pos=a_pos3d.xy/extent;gl_Position=u_matrix*vec4(a_pos3d.xy,get_elevation(a_pos3d.xy)-ele_delta,1.0);v_depth=gl_Position.z/gl_Position.w;}";let eH={prelude:eK("#ifdef GL_ES\nprecision mediump float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\n","#ifdef GL_ES\nprecision highp float;\n#else\n#if !defined(lowp)\n#define lowp\n#endif\n#if !defined(mediump)\n#define mediump\n#endif\n#if !defined(highp)\n#define highp\n#endif\n#endif\nvec2 unpack_float(const float packedValue) {int packedIntValue=int(packedValue);int v0=packedIntValue/256;return vec2(v0,packedIntValue-v0*256);}vec2 unpack_opacity(const float packedOpacity) {int intOpacity=int(packedOpacity)/2;return vec2(float(intOpacity)/127.0,mod(packedOpacity,2.0));}vec4 decode_color(const vec2 encodedColor) {return vec4(unpack_float(encodedColor[0])/255.0,unpack_float(encodedColor[1])/255.0\n);}float unpack_mix_vec2(const vec2 packedValue,const float t) {return mix(packedValue[0],packedValue[1],t);}vec4 unpack_mix_color(const vec4 packedColors,const float t) {vec4 minColor=decode_color(vec2(packedColors[0],packedColors[1]));vec4 maxColor=decode_color(vec2(packedColors[2],packedColors[3]));return mix(minColor,maxColor,t);}vec2 get_pattern_pos(const vec2 pixel_coord_upper,const vec2 pixel_coord_lower,const vec2 pattern_size,const float tile_units_to_pixels,const vec2 pos) {vec2 offset=mod(mod(mod(pixel_coord_upper,pattern_size)*256.0,pattern_size)*256.0+pixel_coord_lower,pattern_size);return (tile_units_to_pixels*pos+offset)/pattern_size;}\n#ifdef TERRAIN3D\nuniform sampler2D u_terrain;uniform float u_terrain_dim;uniform mat4 u_terrain_matrix;uniform vec4 u_terrain_unpack;uniform float u_terrain_exaggeration;uniform highp sampler2D u_depth;\n#endif\nconst highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitShifts=vec4(1.)/bitSh;highp float unpack(highp vec4 color) {return dot(color,bitShifts);}highp float depthOpacity(vec3 frag) {\n#ifdef TERRAIN3D\nhighp float d=unpack(texture2D(u_depth,frag.xy*0.5+0.5))+0.0001-frag.z;return 1.0-max(0.0,min(1.0,-d*500.0));\n#else\nreturn 1.0;\n#endif\n}float calculate_visibility(vec4 pos) {\n#ifdef TERRAIN3D\nvec3 frag=pos.xyz/pos.w;highp float d=depthOpacity(frag);if (d > 0.95) return 1.0;return (d+depthOpacity(frag+vec3(0.0,0.01,0.0)))/2.0;\n#else\nreturn 1.0;\n#endif\n}float ele(vec2 pos) {\n#ifdef TERRAIN3D\nvec4 rgb=(texture2D(u_terrain,pos)*255.0)*u_terrain_unpack;return rgb.r+rgb.g+rgb.b-u_terrain_unpack.a;\n#else\nreturn 0.0;\n#endif\n}float get_elevation(vec2 pos) {\n#ifdef TERRAIN3D\nvec2 coord=(u_terrain_matrix*vec4(pos,0.0,1.0)).xy*u_terrain_dim+1.0;vec2 f=fract(coord);vec2 c=(floor(coord)+0.5)/(u_terrain_dim+2.0);float d=1.0/(u_terrain_dim+2.0);float tl=ele(c);float tr=ele(c+vec2(d,0.0));float bl=ele(c+vec2(0.0,d));float br=ele(c+vec2(d,d));float elevation=mix(mix(tl,tr,f.x),mix(bl,br,f.x),f.y);return elevation*u_terrain_exaggeration;\n#else\nreturn 0.0;\n#endif\n}"),background:eK("uniform vec4 u_color;uniform float u_opacity;void main() {gl_FragColor=u_color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),backgroundPattern:eK("uniform vec2 u_pattern_tl_a;uniform vec2 u_pattern_br_a;uniform vec2 u_pattern_tl_b;uniform vec2 u_pattern_br_b;uniform vec2 u_texsize;uniform float u_mix;uniform float u_opacity;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(u_pattern_tl_a/u_texsize,u_pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(u_pattern_tl_b/u_texsize,u_pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_mix)*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pattern_size_a;uniform vec2 u_pattern_size_b;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_scale_a;uniform float u_scale_b;uniform float u_tile_units_to_pixels;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_a*u_pattern_size_a,u_tile_units_to_pixels,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,u_scale_b*u_pattern_size_b,u_tile_units_to_pixels,a_pos);}"),circle:eK("varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=v_data.xy;float extrude_length=length(extrude);lowp float antialiasblur=v_data.z;float antialiased_blur=-max(blur,antialiasblur);float opacity_t=smoothstep(0.0,antialiased_blur,extrude_length-1.0);float color_t=stroke_width < 0.01 ? 0.0 : smoothstep(antialiased_blur,0.0,extrude_length-radius/(radius+stroke_width));gl_FragColor=v_visibility*opacity_t*mix(color*opacity,stroke_color*stroke_opacity,color_t);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform bool u_scale_with_map;uniform bool u_pitch_with_map;uniform vec2 u_extrude_scale;uniform lowp float u_device_pixel_ratio;uniform highp float u_camera_to_center_distance;attribute vec2 a_pos;varying vec3 v_data;varying float v_visibility;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define mediump float radius\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define highp vec4 stroke_color\n#pragma mapbox: define mediump float stroke_width\n#pragma mapbox: define lowp float stroke_opacity\nvoid main(void) {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize mediump float radius\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize highp vec4 stroke_color\n#pragma mapbox: initialize mediump float stroke_width\n#pragma mapbox: initialize lowp float stroke_opacity\nvec2 extrude=vec2(mod(a_pos,2.0)*2.0-1.0);vec2 circle_center=floor(a_pos*0.5);float ele=get_elevation(circle_center);v_visibility=calculate_visibility(u_matrix*vec4(circle_center,ele,1.0));if (u_pitch_with_map) {vec2 corner_position=circle_center;if (u_scale_with_map) {corner_position+=extrude*(radius+stroke_width)*u_extrude_scale;} else {vec4 projected_center=u_matrix*vec4(circle_center,0,1);corner_position+=extrude*(radius+stroke_width)*u_extrude_scale*(projected_center.w/u_camera_to_center_distance);}gl_Position=u_matrix*vec4(corner_position,ele,1);} else {gl_Position=u_matrix*vec4(circle_center,ele,1);if (u_scale_with_map) {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*u_camera_to_center_distance;} else {gl_Position.xy+=extrude*(radius+stroke_width)*u_extrude_scale*gl_Position.w;}}lowp float antialiasblur=1.0/u_device_pixel_ratio/(radius+stroke_width);v_data=vec3(extrude.x,extrude.y,antialiasblur);}"),clippingMask:eK("void main() {gl_FragColor=vec4(1.0);}","attribute vec2 a_pos;uniform mat4 u_matrix;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);}"),heatmap:eK("uniform highp float u_intensity;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#define GAUSS_COEF 0.3989422804014327\nvoid main() {\n#pragma mapbox: initialize highp float weight\nfloat d=-0.5*3.0*3.0*dot(v_extrude,v_extrude);float val=weight*u_intensity*GAUSS_COEF*exp(d);gl_FragColor=vec4(val,1.0,1.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform float u_extrude_scale;uniform float u_opacity;uniform float u_intensity;attribute vec2 a_pos;varying vec2 v_extrude;\n#pragma mapbox: define highp float weight\n#pragma mapbox: define mediump float radius\nconst highp float ZERO=1.0/255.0/16.0;\n#define GAUSS_COEF 0.3989422804014327\nvoid main(void) {\n#pragma mapbox: initialize highp float weight\n#pragma mapbox: initialize mediump float radius\nvec2 unscaled_extrude=vec2(mod(a_pos,2.0)*2.0-1.0);float S=sqrt(-2.0*log(ZERO/weight/u_intensity/GAUSS_COEF))/3.0;v_extrude=S*unscaled_extrude;vec2 extrude=v_extrude*radius*u_extrude_scale;vec4 pos=vec4(floor(a_pos*0.5)+extrude,0,1);gl_Position=u_matrix*pos;}"),heatmapTexture:eK("uniform sampler2D u_image;uniform sampler2D u_color_ramp;uniform float u_opacity;varying vec2 v_pos;void main() {float t=texture2D(u_image,v_pos).r;vec4 color=texture2D(u_color_ramp,vec2(t,0.5));gl_FragColor=color*u_opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(0.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;attribute vec2 a_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos*u_world,0,1);v_pos.x=a_pos.x;v_pos.y=1.0-a_pos.y;}"),collisionBox:eK("varying float v_placed;varying float v_notUsed;void main() {float alpha=0.5;gl_FragColor=vec4(1.0,0.0,0.0,1.0)*alpha;if (v_placed > 0.5) {gl_FragColor=vec4(0.0,0.0,1.0,0.5)*alpha;}if (v_notUsed > 0.5) {gl_FragColor*=.1;}}","attribute vec2 a_pos;attribute vec2 a_anchor_pos;attribute vec2 a_extrude;attribute vec2 a_placed;attribute vec2 a_shift;uniform mat4 u_matrix;uniform vec2 u_extrude_scale;uniform float u_camera_to_center_distance;varying float v_placed;varying float v_notUsed;void main() {vec4 projectedPoint=u_matrix*vec4(a_anchor_pos,0,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);gl_Position=u_matrix*vec4(a_pos,get_elevation(a_pos),1.0);gl_Position.xy+=(a_extrude+a_shift)*u_extrude_scale*gl_Position.w*collision_perspective_ratio;v_placed=a_placed.x;v_notUsed=a_placed.y;}"),collisionCircle:eK("varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;void main() {float alpha=0.5*min(v_perspective_ratio,1.0);float stroke_radius=0.9*max(v_perspective_ratio,1.0);float distance_to_center=length(v_extrude);float distance_to_edge=abs(distance_to_center-v_radius);float opacity_t=smoothstep(-stroke_radius,0.0,-distance_to_edge);vec4 color=mix(vec4(0.0,0.0,1.0,0.5),vec4(1.0,0.0,0.0,1.0),v_collision);gl_FragColor=color*alpha*opacity_t;}","attribute vec2 a_pos;attribute float a_radius;attribute vec2 a_flags;uniform mat4 u_matrix;uniform mat4 u_inv_matrix;uniform vec2 u_viewport_size;uniform float u_camera_to_center_distance;varying float v_radius;varying vec2 v_extrude;varying float v_perspective_ratio;varying float v_collision;vec3 toTilePosition(vec2 screenPos) {vec4 rayStart=u_inv_matrix*vec4(screenPos,-1.0,1.0);vec4 rayEnd =u_inv_matrix*vec4(screenPos, 1.0,1.0);rayStart.xyz/=rayStart.w;rayEnd.xyz /=rayEnd.w;highp float t=(0.0-rayStart.z)/(rayEnd.z-rayStart.z);return mix(rayStart.xyz,rayEnd.xyz,t);}void main() {vec2 quadCenterPos=a_pos;float radius=a_radius;float collision=a_flags.x;float vertexIdx=a_flags.y;vec2 quadVertexOffset=vec2(mix(-1.0,1.0,float(vertexIdx >=2.0)),mix(-1.0,1.0,float(vertexIdx >=1.0 && vertexIdx <=2.0)));vec2 quadVertexExtent=quadVertexOffset*radius;vec3 tilePos=toTilePosition(quadCenterPos);vec4 clipPos=u_matrix*vec4(tilePos,1.0);highp float camera_to_anchor_distance=clipPos.w;highp float collision_perspective_ratio=clamp(0.5+0.5*(u_camera_to_center_distance/camera_to_anchor_distance),0.0,4.0);float padding_factor=1.2;v_radius=radius;v_extrude=quadVertexExtent*padding_factor;v_perspective_ratio=collision_perspective_ratio;v_collision=collision;gl_Position=vec4(clipPos.xyz/clipPos.w,1.0)+vec4(quadVertexExtent*padding_factor/u_viewport_size*2.0,0.0,0.0);}"),debug:eK("uniform highp vec4 u_color;uniform sampler2D u_overlay;varying vec2 v_uv;void main() {vec4 overlay_color=texture2D(u_overlay,v_uv);gl_FragColor=mix(u_color,overlay_color,overlay_color.a);}","attribute vec2 a_pos;varying vec2 v_uv;uniform mat4 u_matrix;uniform float u_overlay_scale;void main() {v_uv=a_pos/8192.0;gl_Position=u_matrix*vec4(a_pos*u_overlay_scale,get_elevation(a_pos),1);}"),fill:eK("#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_FragColor=color*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);}"),fillOutline:eK("varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=outline_color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","attribute vec2 a_pos;uniform mat4 u_matrix;uniform vec2 u_world;varying vec2 v_pos;\n#pragma mapbox: define highp vec4 outline_color\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 outline_color\n#pragma mapbox: initialize lowp float opacity\ngl_Position=u_matrix*vec4(a_pos,0,1);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),fillOutlinePattern:eK("uniform vec2 u_texsize;uniform sampler2D u_image;uniform float u_fade;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);float dist=length(v_pos-gl_FragCoord.xy);float alpha=1.0-smoothstep(0.0,1.0,dist);gl_FragColor=mix(color1,color2,u_fade)*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_world;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec2 v_pos;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;gl_Position=u_matrix*vec4(a_pos,0,1);vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,a_pos);v_pos=(gl_Position.xy/gl_Position.w+1.0)/2.0*u_world;}"),fillPattern:eK("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);gl_FragColor=mix(color1,color2,u_fade)*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform vec3 u_scale;attribute vec2 a_pos;varying vec2 v_pos_a;varying vec2 v_pos_b;\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;gl_Position=u_matrix*vec4(a_pos,0,1);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileZoomRatio,a_pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileZoomRatio,a_pos);}"),fillExtrusion:eK("varying vec4 v_color;void main() {gl_FragColor=v_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;uniform float u_vertical_gradient;uniform lowp float u_opacity;attribute vec2 a_pos;attribute vec4 a_normal_ed;\n#ifdef TERRAIN3D\nattribute vec2 a_centroid;\n#endif\nvarying vec4 v_color;\n#pragma mapbox: define highp float base\n#pragma mapbox: define highp float height\n#pragma mapbox: define highp vec4 color\nvoid main() {\n#pragma mapbox: initialize highp float base\n#pragma mapbox: initialize highp float height\n#pragma mapbox: initialize highp vec4 color\nvec3 normal=a_normal_ed.xyz;\n#ifdef TERRAIN3D\nfloat height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);\n#else\nfloat height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;\n#endif\nbase=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);gl_Position=u_matrix*vec4(a_pos,t > 0.0 ? height : base,1);float colorvalue=color.r*0.2126+color.g*0.7152+color.b*0.0722;v_color=vec4(0.0,0.0,0.0,1.0);vec4 ambientlight=vec4(0.03,0.03,0.03,1.0);color+=ambientlight;float directional=clamp(dot(normal/16384.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((1.0-colorvalue+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_color.r+=clamp(color.r*directional*u_lightcolor.r,mix(0.0,0.3,1.0-u_lightcolor.r),1.0);v_color.g+=clamp(color.g*directional*u_lightcolor.g,mix(0.0,0.3,1.0-u_lightcolor.g),1.0);v_color.b+=clamp(color.b*directional*u_lightcolor.b,mix(0.0,0.3,1.0-u_lightcolor.b),1.0);v_color*=u_opacity;}"),fillExtrusionPattern:eK("uniform vec2 u_texsize;uniform float u_fade;uniform sampler2D u_image;varying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;vec2 imagecoord=mod(v_pos_a,1.0);vec2 pos=mix(pattern_tl_a/u_texsize,pattern_br_a/u_texsize,imagecoord);vec4 color1=texture2D(u_image,pos);vec2 imagecoord_b=mod(v_pos_b,1.0);vec2 pos2=mix(pattern_tl_b/u_texsize,pattern_br_b/u_texsize,imagecoord_b);vec4 color2=texture2D(u_image,pos2);vec4 mixedColor=mix(color1,color2,u_fade);gl_FragColor=mixedColor*v_lighting;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_pixel_coord_upper;uniform vec2 u_pixel_coord_lower;uniform float u_height_factor;uniform vec3 u_scale;uniform float u_vertical_gradient;uniform lowp float u_opacity;uniform vec3 u_lightcolor;uniform lowp vec3 u_lightpos;uniform lowp float u_lightintensity;attribute vec2 a_pos;attribute vec4 a_normal_ed;\n#ifdef TERRAIN3D\nattribute vec2 a_centroid;\n#endif\nvarying vec2 v_pos_a;varying vec2 v_pos_b;varying vec4 v_lighting;\n#pragma mapbox: define lowp float base\n#pragma mapbox: define lowp float height\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float base\n#pragma mapbox: initialize lowp float height\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec3 normal=a_normal_ed.xyz;float edgedistance=a_normal_ed.w;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;\n#ifdef TERRAIN3D\nfloat height_terrain3d_offset=get_elevation(a_centroid);float base_terrain3d_offset=height_terrain3d_offset-(base > 0.0 ? 0.0 : 10.0);\n#else\nfloat height_terrain3d_offset=0.0;float base_terrain3d_offset=0.0;\n#endif\nbase=max(0.0,base)+base_terrain3d_offset;height=max(0.0,height)+height_terrain3d_offset;float t=mod(normal.x,2.0);float z=t > 0.0 ? height : base;gl_Position=u_matrix*vec4(a_pos,z,1);vec2 pos=normal.x==1.0 && normal.y==0.0 && normal.z==16384.0\n? a_pos\n: vec2(edgedistance,z*u_height_factor);v_pos_a=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,fromScale*display_size_a,tileRatio,pos);v_pos_b=get_pattern_pos(u_pixel_coord_upper,u_pixel_coord_lower,toScale*display_size_b,tileRatio,pos);v_lighting=vec4(0.0,0.0,0.0,1.0);float directional=clamp(dot(normal/16383.0,u_lightpos),0.0,1.0);directional=mix((1.0-u_lightintensity),max((0.5+u_lightintensity),1.0),directional);if (normal.y !=0.0) {directional*=((1.0-u_vertical_gradient)+(u_vertical_gradient*clamp((t+base)*pow(height/150.0,0.5),mix(0.7,0.98,1.0-u_lightintensity),1.0)));}v_lighting.rgb+=clamp(directional*u_lightcolor,mix(vec3(0.0),vec3(0.3),1.0-u_lightcolor),vec3(1.0));v_lighting*=u_opacity;}"),hillshadePrepare:eK("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_dimension;uniform float u_zoom;uniform vec4 u_unpack;float getElevation(vec2 coord,float bias) {vec4 data=texture2D(u_image,coord)*255.0;data.a=-1.0;return dot(data,u_unpack)/4.0;}void main() {vec2 epsilon=1.0/u_dimension;float a=getElevation(v_pos+vec2(-epsilon.x,-epsilon.y),0.0);float b=getElevation(v_pos+vec2(0,-epsilon.y),0.0);float c=getElevation(v_pos+vec2(epsilon.x,-epsilon.y),0.0);float d=getElevation(v_pos+vec2(-epsilon.x,0),0.0);float e=getElevation(v_pos,0.0);float f=getElevation(v_pos+vec2(epsilon.x,0),0.0);float g=getElevation(v_pos+vec2(-epsilon.x,epsilon.y),0.0);float h=getElevation(v_pos+vec2(0,epsilon.y),0.0);float i=getElevation(v_pos+vec2(epsilon.x,epsilon.y),0.0);float exaggerationFactor=u_zoom < 2.0 ? 0.4 : u_zoom < 4.5 ? 0.35 : 0.3;float exaggeration=u_zoom < 15.0 ? (u_zoom-15.0)*exaggerationFactor : 0.0;vec2 deriv=vec2((c+f+f+i)-(a+d+d+g),(g+h+h+i)-(a+b+b+c))/pow(2.0,exaggeration+(19.2562-u_zoom));gl_FragColor=clamp(vec4(deriv.x/2.0+0.5,deriv.y/2.0+0.5,1.0,1.0),0.0,1.0);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_dimension;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);highp vec2 epsilon=1.0/u_dimension;float scale=(u_dimension.x-2.0)/u_dimension.x;v_pos=(a_texture_pos/8192.0)*scale+epsilon;}"),hillshade:eK("uniform sampler2D u_image;varying vec2 v_pos;uniform vec2 u_latrange;uniform vec2 u_light;uniform vec4 u_shadow;uniform vec4 u_highlight;uniform vec4 u_accent;\n#define PI 3.141592653589793\nvoid main() {vec4 pixel=texture2D(u_image,v_pos);vec2 deriv=((pixel.rg*2.0)-1.0);float scaleFactor=cos(radians((u_latrange[0]-u_latrange[1])*(1.0-v_pos.y)+u_latrange[1]));float slope=atan(1.25*length(deriv)/scaleFactor);float aspect=deriv.x !=0.0 ? atan(deriv.y,-deriv.x) : PI/2.0*(deriv.y > 0.0 ? 1.0 :-1.0);float intensity=u_light.x;float azimuth=u_light.y+PI;float base=1.875-intensity*1.75;float maxValue=0.5*PI;float scaledSlope=intensity !=0.5 ? ((pow(base,slope)-1.0)/(pow(base,maxValue)-1.0))*maxValue : slope;float accent=cos(scaledSlope);vec4 accent_color=(1.0-accent)*u_accent*clamp(intensity*2.0,0.0,1.0);float shade=abs(mod((aspect+azimuth)/PI+0.5,2.0)-1.0);vec4 shade_color=mix(u_shadow,u_highlight,shade)*sin(scaledSlope)*clamp(intensity*2.0,0.0,1.0);gl_FragColor=accent_color*(1.0-shade_color.a)+shade_color;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos=a_texture_pos/8192.0;}"),line:eK("uniform lowp float u_device_pixel_ratio;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform vec2 u_units_to_pixels;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp float v_linesofar;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;v_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*2.0;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_width2=vec2(outset,inset);}"),lineGradient:eK("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;varying vec2 v_width2;varying vec2 v_normal;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);vec4 color=texture2D(u_image,v_uv);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\nattribute vec2 a_pos_normal;attribute vec4 a_data;attribute float a_uv_x;attribute float a_split_index;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_units_to_pixels;uniform float u_image_height;varying vec2 v_normal;varying vec2 v_width2;varying float v_gamma_scale;varying highp vec2 v_uv;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;highp float texel_height=1.0/u_image_height;highp float half_texel_height=0.5*texel_height;v_uv=vec2(a_uv_x,a_split_index*texel_height-half_texel_height);vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_width2=vec2(outset,inset);}"),linePattern:eK("#ifdef GL_ES\nprecision highp float;\n#endif\nuniform lowp float u_device_pixel_ratio;uniform vec2 u_texsize;uniform float u_fade;uniform mediump vec3 u_scale;uniform sampler2D u_image;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\nvec2 pattern_tl_a=pattern_from.xy;vec2 pattern_br_a=pattern_from.zw;vec2 pattern_tl_b=pattern_to.xy;vec2 pattern_br_b=pattern_to.zw;float tileZoomRatio=u_scale.x;float fromScale=u_scale.y;float toScale=u_scale.z;vec2 display_size_a=(pattern_br_a-pattern_tl_a)/pixel_ratio_from;vec2 display_size_b=(pattern_br_b-pattern_tl_b)/pixel_ratio_to;vec2 pattern_size_a=vec2(display_size_a.x*fromScale/tileZoomRatio,display_size_a.y);vec2 pattern_size_b=vec2(display_size_b.x*toScale/tileZoomRatio,display_size_b.y);float aspect_a=display_size_a.y/v_width;float aspect_b=display_size_b.y/v_width;float dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float x_a=mod(v_linesofar/pattern_size_a.x*aspect_a,1.0);float x_b=mod(v_linesofar/pattern_size_b.x*aspect_b,1.0);float y=0.5*v_normal.y+0.5;vec2 texel_size=1.0/u_texsize;vec2 pos_a=mix(pattern_tl_a*texel_size-texel_size,pattern_br_a*texel_size+texel_size,vec2(x_a,y));vec2 pos_b=mix(pattern_tl_b*texel_size-texel_size,pattern_br_b*texel_size+texel_size,vec2(x_b,y));vec4 color=mix(texture2D(u_image,pos_a),texture2D(u_image,pos_b),u_fade);gl_FragColor=color*alpha*opacity;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform vec2 u_units_to_pixels;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;varying vec2 v_normal;varying vec2 v_width2;varying float v_linesofar;varying float v_gamma_scale;varying float v_width;\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\n#pragma mapbox: define lowp vec4 pattern_from\n#pragma mapbox: define lowp vec4 pattern_to\n#pragma mapbox: define lowp float pixel_ratio_from\n#pragma mapbox: define lowp float pixel_ratio_to\nvoid main() {\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\n#pragma mapbox: initialize mediump vec4 pattern_from\n#pragma mapbox: initialize mediump vec4 pattern_to\n#pragma mapbox: initialize lowp float pixel_ratio_from\n#pragma mapbox: initialize lowp float pixel_ratio_to\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_linesofar=a_linesofar;v_width2=vec2(outset,inset);v_width=floorwidth;}"),lineSDF:eK("uniform lowp float u_device_pixel_ratio;uniform sampler2D u_image;uniform float u_sdfgamma;uniform float u_mix;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat dist=length(v_normal)*v_width2.s;float blur2=(blur+1.0/u_device_pixel_ratio)*v_gamma_scale;float alpha=clamp(min(dist-(v_width2.t-blur2),v_width2.s-dist)/blur2,0.0,1.0);float sdfdist_a=texture2D(u_image,v_tex_a).a;float sdfdist_b=texture2D(u_image,v_tex_b).a;float sdfdist=mix(sdfdist_a,sdfdist_b,u_mix);alpha*=smoothstep(0.5-u_sdfgamma/floorwidth,0.5+u_sdfgamma/floorwidth,sdfdist);gl_FragColor=color*(alpha*opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","\n#define scale 0.015873016\n#define LINE_DISTANCE_SCALE 2.0\nattribute vec2 a_pos_normal;attribute vec4 a_data;uniform mat4 u_matrix;uniform mediump float u_ratio;uniform lowp float u_device_pixel_ratio;uniform vec2 u_patternscale_a;uniform float u_tex_y_a;uniform vec2 u_patternscale_b;uniform float u_tex_y_b;uniform vec2 u_units_to_pixels;varying vec2 v_normal;varying vec2 v_width2;varying vec2 v_tex_a;varying vec2 v_tex_b;varying float v_gamma_scale;\n#pragma mapbox: define highp vec4 color\n#pragma mapbox: define lowp float blur\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define mediump float gapwidth\n#pragma mapbox: define lowp float offset\n#pragma mapbox: define mediump float width\n#pragma mapbox: define lowp float floorwidth\nvoid main() {\n#pragma mapbox: initialize highp vec4 color\n#pragma mapbox: initialize lowp float blur\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize mediump float gapwidth\n#pragma mapbox: initialize lowp float offset\n#pragma mapbox: initialize mediump float width\n#pragma mapbox: initialize lowp float floorwidth\nfloat ANTIALIASING=1.0/u_device_pixel_ratio/2.0;vec2 a_extrude=a_data.xy-128.0;float a_direction=mod(a_data.z,4.0)-1.0;float a_linesofar=(floor(a_data.z/4.0)+a_data.w*64.0)*LINE_DISTANCE_SCALE;vec2 pos=floor(a_pos_normal*0.5);mediump vec2 normal=a_pos_normal-2.0*pos;normal.y=normal.y*2.0-1.0;v_normal=normal;gapwidth=gapwidth/2.0;float halfwidth=width/2.0;offset=-1.0*offset;float inset=gapwidth+(gapwidth > 0.0 ? ANTIALIASING : 0.0);float outset=gapwidth+halfwidth*(gapwidth > 0.0 ? 2.0 : 1.0)+(halfwidth==0.0 ? 0.0 : ANTIALIASING);mediump vec2 dist=outset*a_extrude*scale;mediump float u=0.5*a_direction;mediump float t=1.0-abs(u);mediump vec2 offset2=offset*a_extrude*scale*normal.y*mat2(t,-u,u,t);vec4 projected_extrude=u_matrix*vec4(dist/u_ratio,0.0,0.0);gl_Position=u_matrix*vec4(pos+offset2/u_ratio,0.0,1.0)+projected_extrude;\n#ifdef TERRAIN3D\nv_gamma_scale=1.0;\n#else\nfloat extrude_length_without_perspective=length(dist);float extrude_length_with_perspective=length(projected_extrude.xy/gl_Position.w*u_units_to_pixels);v_gamma_scale=extrude_length_without_perspective/extrude_length_with_perspective;\n#endif\nv_tex_a=vec2(a_linesofar*u_patternscale_a.x/floorwidth,normal.y*u_patternscale_a.y+u_tex_y_a);v_tex_b=vec2(a_linesofar*u_patternscale_b.x/floorwidth,normal.y*u_patternscale_b.y+u_tex_y_b);v_width2=vec2(outset,inset);}"),raster:eK("uniform float u_fade_t;uniform float u_opacity;uniform sampler2D u_image0;uniform sampler2D u_image1;varying vec2 v_pos0;varying vec2 v_pos1;uniform float u_brightness_low;uniform float u_brightness_high;uniform float u_saturation_factor;uniform float u_contrast_factor;uniform vec3 u_spin_weights;void main() {vec4 color0=texture2D(u_image0,v_pos0);vec4 color1=texture2D(u_image1,v_pos1);if (color0.a > 0.0) {color0.rgb=color0.rgb/color0.a;}if (color1.a > 0.0) {color1.rgb=color1.rgb/color1.a;}vec4 color=mix(color0,color1,u_fade_t);color.a*=u_opacity;vec3 rgb=color.rgb;rgb=vec3(dot(rgb,u_spin_weights.xyz),dot(rgb,u_spin_weights.zxy),dot(rgb,u_spin_weights.yzx));float average=(color.r+color.g+color.b)/3.0;rgb+=(average-rgb)*u_saturation_factor;rgb=(rgb-0.5)*u_contrast_factor+0.5;vec3 u_high_vec=vec3(u_brightness_low,u_brightness_low,u_brightness_low);vec3 u_low_vec=vec3(u_brightness_high,u_brightness_high,u_brightness_high);gl_FragColor=vec4(mix(u_high_vec,u_low_vec,rgb)*color.a,color.a);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","uniform mat4 u_matrix;uniform vec2 u_tl_parent;uniform float u_scale_parent;uniform float u_buffer_scale;attribute vec2 a_pos;attribute vec2 a_texture_pos;varying vec2 v_pos0;varying vec2 v_pos1;void main() {gl_Position=u_matrix*vec4(a_pos,0,1);v_pos0=(((a_texture_pos/8192.0)-0.5)/u_buffer_scale )+0.5;v_pos1=(v_pos0*u_scale_parent)+u_tl_parent;}"),symbolIcon:eK("uniform sampler2D u_texture;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nlowp float alpha=opacity*v_fade_opacity;gl_FragColor=texture2D(u_texture,v_tex)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform highp float u_camera_to_center_distance;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform float u_fade_change;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform vec2 u_texsize;varying vec2 v_tex;varying float v_fade_opacity;\n#pragma mapbox: define lowp float opacity\nvoid main() {\n#pragma mapbox: initialize lowp float opacity\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;vec2 a_minFontScale=a_pixeloffset.zw/256.0;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,ele,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),ele,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,ele,1.0);float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*max(a_minFontScale,fontScale)+a_pxoffset/16.0),z,1.0);v_tex=a_tex/u_texsize;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float visibility=calculate_visibility(projectedPoint);v_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));}"),symbolSDF:eK("#define SDF_PX 8.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;uniform bool u_is_text;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat EDGE_GAMMA=0.105/u_device_pixel_ratio;vec2 tex=v_data0.xy;float gamma_scale=v_data1.x;float size=v_data1.y;float fade_opacity=v_data1[2];float fontScale=u_is_text ? size/24.0 : size;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float inner_edge=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);inner_edge=inner_edge+gamma*gamma_scale;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(inner_edge-gamma_scaled,inner_edge+gamma_scaled,dist);if (u_is_halo) {lowp float halo_edge=(6.0-halo_width/fontScale)/SDF_PX;alpha=min(smoothstep(halo_edge-gamma_scaled,halo_edge+gamma_scaled,dist),1.0-alpha);}gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec4 a_pixeloffset;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;varying vec2 v_data0;varying vec3 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);vec2 a_pxoffset=a_pixeloffset.xy;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,ele,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=u_is_text ? size/24.0 : size;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),ele,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,ele,1.0);float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale+a_pxoffset),z,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0=a_tex/u_texsize;v_data1=vec3(gamma_scale,size,interpolated_fade_opacity);}"),symbolTextAndIcon:eK("#define SDF_PX 8.0\n#define SDF 1.0\n#define ICON 0.0\nuniform bool u_is_halo;uniform sampler2D u_texture;uniform sampler2D u_texture_icon;uniform highp float u_gamma_scale;uniform lowp float u_device_pixel_ratio;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nfloat fade_opacity=v_data1[2];if (v_data1.w==ICON) {vec2 tex_icon=v_data0.zw;lowp float alpha=opacity*fade_opacity;gl_FragColor=texture2D(u_texture_icon,tex_icon)*alpha;\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\nreturn;}vec2 tex=v_data0.xy;float EDGE_GAMMA=0.105/u_device_pixel_ratio;float gamma_scale=v_data1.x;float size=v_data1.y;float fontScale=size/24.0;lowp vec4 color=fill_color;highp float gamma=EDGE_GAMMA/(fontScale*u_gamma_scale);lowp float buff=(256.0-64.0)/256.0;if (u_is_halo) {color=halo_color;gamma=(halo_blur*1.19/SDF_PX+EDGE_GAMMA)/(fontScale*u_gamma_scale);buff=(6.0-halo_width/fontScale)/SDF_PX;}lowp float dist=texture2D(u_texture,tex).a;highp float gamma_scaled=gamma*gamma_scale;highp float alpha=smoothstep(buff-gamma_scaled,buff+gamma_scaled,dist);gl_FragColor=color*(alpha*opacity*fade_opacity);\n#ifdef OVERDRAW_INSPECTOR\ngl_FragColor=vec4(1.0);\n#endif\n}","const float PI=3.141592653589793;attribute vec4 a_pos_offset;attribute vec4 a_data;attribute vec3 a_projected_pos;attribute float a_fade_opacity;uniform bool u_is_size_zoom_constant;uniform bool u_is_size_feature_constant;uniform highp float u_size_t;uniform highp float u_size;uniform mat4 u_matrix;uniform mat4 u_label_plane_matrix;uniform mat4 u_coord_matrix;uniform bool u_is_text;uniform bool u_pitch_with_map;uniform highp float u_pitch;uniform bool u_rotate_symbol;uniform highp float u_aspect_ratio;uniform highp float u_camera_to_center_distance;uniform float u_fade_change;uniform vec2 u_texsize;uniform vec2 u_texsize_icon;varying vec4 v_data0;varying vec4 v_data1;\n#pragma mapbox: define highp vec4 fill_color\n#pragma mapbox: define highp vec4 halo_color\n#pragma mapbox: define lowp float opacity\n#pragma mapbox: define lowp float halo_width\n#pragma mapbox: define lowp float halo_blur\nvoid main() {\n#pragma mapbox: initialize highp vec4 fill_color\n#pragma mapbox: initialize highp vec4 halo_color\n#pragma mapbox: initialize lowp float opacity\n#pragma mapbox: initialize lowp float halo_width\n#pragma mapbox: initialize lowp float halo_blur\nvec2 a_pos=a_pos_offset.xy;vec2 a_offset=a_pos_offset.zw;vec2 a_tex=a_data.xy;vec2 a_size=a_data.zw;float a_size_min=floor(a_size[0]*0.5);float is_sdf=a_size[0]-2.0*a_size_min;float ele=get_elevation(a_pos);highp float segment_angle=-a_projected_pos[2];float size;if (!u_is_size_zoom_constant && !u_is_size_feature_constant) {size=mix(a_size_min,a_size[1],u_size_t)/128.0;} else if (u_is_size_zoom_constant && !u_is_size_feature_constant) {size=a_size_min/128.0;} else {size=u_size;}vec4 projectedPoint=u_matrix*vec4(a_pos,ele,1);highp float camera_to_anchor_distance=projectedPoint.w;highp float distance_ratio=u_pitch_with_map ?\ncamera_to_anchor_distance/u_camera_to_center_distance :\nu_camera_to_center_distance/camera_to_anchor_distance;highp float perspective_ratio=clamp(0.5+0.5*distance_ratio,0.0,4.0);size*=perspective_ratio;float fontScale=size/24.0;highp float symbol_rotation=0.0;if (u_rotate_symbol) {vec4 offsetProjectedPoint=u_matrix*vec4(a_pos+vec2(1,0),ele,1);vec2 a=projectedPoint.xy/projectedPoint.w;vec2 b=offsetProjectedPoint.xy/offsetProjectedPoint.w;symbol_rotation=atan((b.y-a.y)/u_aspect_ratio,b.x-a.x);}highp float angle_sin=sin(segment_angle+symbol_rotation);highp float angle_cos=cos(segment_angle+symbol_rotation);mat2 rotation_matrix=mat2(angle_cos,-1.0*angle_sin,angle_sin,angle_cos);vec4 projected_pos=u_label_plane_matrix*vec4(a_projected_pos.xy,ele,1.0);float z=float(u_pitch_with_map)*projected_pos.z/projected_pos.w;gl_Position=u_coord_matrix*vec4(projected_pos.xy/projected_pos.w+rotation_matrix*(a_offset/32.0*fontScale),z,1.0);float gamma_scale=gl_Position.w;vec2 fade_opacity=unpack_opacity(a_fade_opacity);float visibility=calculate_visibility(projectedPoint);float fade_change=fade_opacity[1] > 0.5 ? u_fade_change :-u_fade_change;float interpolated_fade_opacity=max(0.0,min(visibility,fade_opacity[0]+fade_change));v_data0.xy=a_tex/u_texsize;v_data0.zw=a_tex/u_texsize_icon;v_data1=vec4(gamma_scale,size,interpolated_fade_opacity,is_sdf);}"),terrain:eK("uniform sampler2D u_texture;varying vec2 v_texture_pos;void main() {gl_FragColor=texture2D(u_texture,v_texture_pos);}",eW),terrainDepth:eK("varying float v_depth;const highp vec4 bitSh=vec4(256.*256.*256.,256.*256.,256.,1.);const highp vec4 bitMsk=vec4(0.,vec3(1./256.0));highp vec4 pack(highp float value) {highp vec4 comp=fract(value*bitSh);comp-=comp.xxyz*bitMsk;return comp;}void main() {gl_FragColor=pack(v_depth);}",eW),terrainCoords:eK("precision mediump float;uniform sampler2D u_texture;uniform float u_terrain_coords_id;varying vec2 v_texture_pos;void main() {vec4 rgba=texture2D(u_texture,v_texture_pos);gl_FragColor=vec4(rgba.r,rgba.g,rgba.b,u_terrain_coords_id);}",eW)};function eK(e,t){let i=/#pragma mapbox: ([\w]+) ([\w]+) ([\w]+) ([\w]+)/g,r=t.match(/attribute ([\w]+) ([\w]+)/g),a=e.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),s=t.match(/uniform ([\w]+) ([\w]+)([\s]*)([\w]*)/g),n=s?s.concat(a):a,o={};return{fragmentSource:e=e.replace(i,(e,t,i,r,a)=>(o[a]=!0,"define"===t?` -#ifndef HAS_UNIFORM_u_${a} -varying ${i} ${r} ${a}; -#else -uniform ${i} ${r} u_${a}; -#endif -`:` -#ifdef HAS_UNIFORM_u_${a} - ${i} ${r} ${a} = u_${a}; -#endif -`)),vertexSource:t=t.replace(i,(e,t,i,r,a)=>{let s="float"===r?"vec2":"vec4",n=a.match(/color/)?"color":s;return o[a]?"define"===t?` -#ifndef HAS_UNIFORM_u_${a} -uniform lowp float u_${a}_t; -attribute ${i} ${s} a_${a}; -varying ${i} ${r} ${a}; -#else -uniform ${i} ${r} u_${a}; -#endif -`:"vec4"===n?` -#ifndef HAS_UNIFORM_u_${a} - ${a} = a_${a}; -#else - ${i} ${r} ${a} = u_${a}; -#endif -`:` -#ifndef HAS_UNIFORM_u_${a} - ${a} = unpack_mix_${n}(a_${a}, u_${a}_t); -#else - ${i} ${r} ${a} = u_${a}; -#endif -`:"define"===t?` -#ifndef HAS_UNIFORM_u_${a} -uniform lowp float u_${a}_t; -attribute ${i} ${s} a_${a}; -#else -uniform ${i} ${r} u_${a}; -#endif -`:"vec4"===n?` -#ifndef HAS_UNIFORM_u_${a} - ${i} ${r} ${a} = a_${a}; -#else - ${i} ${r} ${a} = u_${a}; -#endif -`:` -#ifndef HAS_UNIFORM_u_${a} - ${i} ${r} ${a} = unpack_mix_${n}(a_${a}, u_${a}_t); -#else - ${i} ${r} ${a} = u_${a}; -#endif -`}),staticAttributes:r,staticUniforms:n}}class eY{constructor(){this.boundProgram=null,this.boundLayoutVertexBuffer=null,this.boundPaintVertexBuffers=[],this.boundIndexBuffer=null,this.boundVertexOffset=null,this.boundDynamicVertexBuffer=null,this.vao=null}bind(e,t,i,r,a,s,n,o,l){this.context=e;let h=this.boundPaintVertexBuffers.length!==r.length;for(let e=0;!h&&em.indexOf(e)&&m.push(e);let _=r?r.defines():[];s&&_.push("#define OVERDRAW_INSPECTOR;"),n&&_.push("#define TERRAIN3D;");let g=_.concat(eH.prelude.fragmentSource,i.fragmentSource).join("\n"),y=_.concat(eH.prelude.vertexSource,i.vertexSource).join("\n"),x=o.createShader(o.FRAGMENT_SHADER);if(o.isContextLost())return void(this.failedToCreate=!0);if(o.shaderSource(x,g),o.compileShader(x),!o.getShaderParameter(x,o.COMPILE_STATUS))throw Error(`Could not compile fragment shader: ${o.getShaderInfoLog(x)}`);o.attachShader(this.program,x);let v=o.createShader(o.VERTEX_SHADER);if(o.isContextLost())return void(this.failedToCreate=!0);if(o.shaderSource(v,y),o.compileShader(v),!o.getShaderParameter(v,o.COMPILE_STATUS))throw Error(`Could not compile vertex shader: ${o.getShaderInfoLog(v)}`);o.attachShader(this.program,v),this.attributes={};let b={};this.numAttributes=u.length;for(let e=0;e>16,o>>16],u_pixel_coord_lower:[65535&n,65535&o]}}let e1=(t,i,r,a)=>{var s,n,o,l,h,u,c;let d=i.style.light,p=d.properties.get("position"),f=[p.x,p.y,p.z],m=(s=new e.A(9),e.A!=Float32Array&&(s[1]=0,s[2]=0,s[3]=0,s[5]=0,s[6]=0,s[7]=0),s[0]=1,s[4]=1,s[8]=1,s);"viewport"===d.properties.get("anchor")&&(o=Math.sin(n=-i.transform.angle),l=Math.cos(n),m[0]=l,m[1]=o,m[2]=0,m[3]=-o,m[4]=l,m[5]=0,m[6]=0,m[7]=0,m[8]=1),h=f[0],u=f[1],c=f[2],f[0]=h*m[0]+u*m[3]+c*m[6],f[1]=h*m[1]+u*m[4]+c*m[7],f[2]=h*m[2]+u*m[5]+c*m[8];let _=d.properties.get("color");return{u_matrix:t,u_lightpos:f,u_lightintensity:d.properties.get("intensity"),u_lightcolor:[_.r,_.g,_.b],u_vertical_gradient:+r,u_opacity:a}},e2=(t,i,r,a,s,n,o)=>e.e(e1(t,i,r,a),e0(n,i,o),{u_height_factor:-Math.pow(2,s.overscaledZ)/o.tileSize/8}),e5=e=>({u_matrix:e}),e3=(t,i,r,a)=>e.e(e5(t),e0(r,i,a)),e4=(e,t)=>({u_matrix:e,u_world:t}),e6=(t,i,r,a,s)=>e.e(e3(t,i,r,a),{u_world:s}),e8=(e,t,i,r)=>{let a,s,n=e.transform;if("map"===r.paint.get("circle-pitch-alignment")){let e=ew(i,1,n.zoom);a=!0,s=[e,e]}else a=!1,s=n.pixelsToGLUnits;return{u_camera_to_center_distance:n.cameraToCenterDistance,u_scale_with_map:+("map"===r.paint.get("circle-pitch-scale")),u_matrix:e.translatePosMatrix(t.posMatrix,i,r.paint.get("circle-translate"),r.paint.get("circle-translate-anchor")),u_pitch_with_map:+a,u_device_pixel_ratio:e.pixelRatio,u_extrude_scale:s}},e9=(e,t,i)=>{let r=ew(i,1,t.zoom),a=Math.pow(2,t.zoom-i.tileID.overscaledZ),s=i.tileID.overscaleFactor();return{u_matrix:e,u_camera_to_center_distance:t.cameraToCenterDistance,u_pixels_to_tile_units:r,u_extrude_scale:[t.pixelsToGLUnits[0]/(r*a),t.pixelsToGLUnits[1]/(r*a)],u_overscale_factor:s}},e7=(e,t,i=1)=>({u_matrix:e,u_color:t,u_overlay:0,u_overlay_scale:i}),te=e=>({u_matrix:e}),tt=(e,t,i,r)=>({u_matrix:e,u_extrude_scale:ew(t,1,i),u_intensity:r}),ti=(e,t,i,r)=>{let a=e.transform;return{u_matrix:to(e,t,i,r),u_ratio:1/ew(t,1,a.zoom),u_device_pixel_ratio:e.pixelRatio,u_units_to_pixels:[1/a.pixelsToGLUnits[0],1/a.pixelsToGLUnits[1]]}},tr=(t,i,r,a,s)=>e.e(ti(t,i,r,s),{u_image:0,u_image_height:a}),ta=(e,t,i,r,a)=>{let s=e.transform,n=tn(t,s);return{u_matrix:to(e,t,i,a),u_texsize:t.imageAtlasTexture.size,u_ratio:1/ew(t,1,s.zoom),u_device_pixel_ratio:e.pixelRatio,u_image:0,u_scale:[n,r.fromScale,r.toScale],u_fade:r.t,u_units_to_pixels:[1/s.pixelsToGLUnits[0],1/s.pixelsToGLUnits[1]]}},ts=(t,i,r,a,s,n)=>{let o=t.lineAtlas,l=tn(i,t.transform),h="round"===r.layout.get("line-cap"),u=o.getDash(a.from,h),c=o.getDash(a.to,h),d=u.width*s.fromScale,p=c.width*s.toScale;return e.e(ti(t,i,r,n),{u_patternscale_a:[l/d,-u.height/2],u_patternscale_b:[l/p,-c.height/2],u_sdfgamma:o.width/(256*Math.min(d,p)*t.pixelRatio)/2,u_image:0,u_tex_y_a:u.y,u_tex_y_b:c.y,u_mix:s.t})};function tn(e,t){return 1/ew(e,1,t.tileZoom)}function to(e,t,i,r){return e.translatePosMatrix(r?r.posMatrix:t.tileID.posMatrix,t,i.paint.get("line-translate"),i.paint.get("line-translate-anchor"))}let tl=(e,t,i,r,a)=>{var s,n;return{u_matrix:e,u_tl_parent:t,u_scale_parent:i,u_buffer_scale:1,u_fade_t:r.mix,u_opacity:r.opacity*a.paint.get("raster-opacity"),u_image0:0,u_image1:1,u_brightness_low:a.paint.get("raster-brightness-min"),u_brightness_high:a.paint.get("raster-brightness-max"),u_saturation_factor:(n=a.paint.get("raster-saturation"))>0?1-1/(1.001-n):-n,u_contrast_factor:(s=a.paint.get("raster-contrast"))>0?1/(1-s):1+s,u_spin_weights:function(e){let t=Math.sin(e*=Math.PI/180),i=Math.cos(e);return[(2*i+1)/3,(-Math.sqrt(3)*t-i+1)/3,(Math.sqrt(3)*t-i+1)/3]}(a.paint.get("raster-hue-rotate"))}},th=(e,t,i,r,a,s,n,o,l,h)=>{let u=a.transform;return{u_is_size_zoom_constant:+("constant"===e||"source"===e),u_is_size_feature_constant:+("constant"===e||"camera"===e),u_size_t:t?t.uSizeT:0,u_size:t?t.uSize:0,u_camera_to_center_distance:u.cameraToCenterDistance,u_pitch:u.pitch/360*2*Math.PI,u_rotate_symbol:+i,u_aspect_ratio:u.width/u.height,u_fade_change:a.options.fadeDuration?a.symbolFadeChange:1,u_matrix:s,u_label_plane_matrix:n,u_coord_matrix:o,u_is_text:+l,u_pitch_with_map:+r,u_texsize:h,u_texture:0}},tu=(t,i,r,a,s,n,o,l,h,u,c)=>{let d=s.transform;return e.e(th(t,i,r,a,s,n,o,l,h,u),{u_gamma_scale:a?Math.cos(d._pitch)*d.cameraToCenterDistance:1,u_device_pixel_ratio:s.pixelRatio,u_is_halo:+c})},tc=(t,i,r,a,s,n,o,l,h,u)=>e.e(tu(t,i,r,a,s,n,o,l,!0,h,!0),{u_texsize_icon:u,u_texture_icon:1}),td=(e,t,i)=>({u_matrix:e,u_opacity:t,u_color:i}),tp=(t,i,r,a,s,n)=>e.e(function(e,t,i,r){let a=i.imageManager.getPattern(e.from.toString()),s=i.imageManager.getPattern(e.to.toString()),{width:n,height:o}=i.imageManager.getPixelSize(),l=Math.pow(2,r.tileID.overscaledZ),h=r.tileSize*Math.pow(2,i.transform.tileZoom)/l,u=h*(r.tileID.canonical.x+r.tileID.wrap*l),c=h*r.tileID.canonical.y;return{u_image:0,u_pattern_tl_a:a.tl,u_pattern_br_a:a.br,u_pattern_tl_b:s.tl,u_pattern_br_b:s.br,u_texsize:[n,o],u_mix:t.t,u_pattern_size_a:a.displaySize,u_pattern_size_b:s.displaySize,u_scale_a:t.fromScale,u_scale_b:t.toScale,u_tile_units_to_pixels:1/ew(r,1,i.transform.tileZoom),u_pixel_coord_upper:[u>>16,c>>16],u_pixel_coord_lower:[65535&u,65535&c]}}(a,n,r,s),{u_matrix:t,u_opacity:i}),tf={fillExtrusion:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_lightpos:new e.aP(t,i.u_lightpos),u_lightintensity:new e.aM(t,i.u_lightintensity),u_lightcolor:new e.aP(t,i.u_lightcolor),u_vertical_gradient:new e.aM(t,i.u_vertical_gradient),u_opacity:new e.aM(t,i.u_opacity)}),fillExtrusionPattern:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_lightpos:new e.aP(t,i.u_lightpos),u_lightintensity:new e.aM(t,i.u_lightintensity),u_lightcolor:new e.aP(t,i.u_lightcolor),u_vertical_gradient:new e.aM(t,i.u_vertical_gradient),u_height_factor:new e.aM(t,i.u_height_factor),u_image:new e.aL(t,i.u_image),u_texsize:new e.aQ(t,i.u_texsize),u_pixel_coord_upper:new e.aQ(t,i.u_pixel_coord_upper),u_pixel_coord_lower:new e.aQ(t,i.u_pixel_coord_lower),u_scale:new e.aP(t,i.u_scale),u_fade:new e.aM(t,i.u_fade),u_opacity:new e.aM(t,i.u_opacity)}),fill:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix)}),fillPattern:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_image:new e.aL(t,i.u_image),u_texsize:new e.aQ(t,i.u_texsize),u_pixel_coord_upper:new e.aQ(t,i.u_pixel_coord_upper),u_pixel_coord_lower:new e.aQ(t,i.u_pixel_coord_lower),u_scale:new e.aP(t,i.u_scale),u_fade:new e.aM(t,i.u_fade)}),fillOutline:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_world:new e.aQ(t,i.u_world)}),fillOutlinePattern:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_world:new e.aQ(t,i.u_world),u_image:new e.aL(t,i.u_image),u_texsize:new e.aQ(t,i.u_texsize),u_pixel_coord_upper:new e.aQ(t,i.u_pixel_coord_upper),u_pixel_coord_lower:new e.aQ(t,i.u_pixel_coord_lower),u_scale:new e.aP(t,i.u_scale),u_fade:new e.aM(t,i.u_fade)}),circle:(t,i)=>({u_camera_to_center_distance:new e.aM(t,i.u_camera_to_center_distance),u_scale_with_map:new e.aL(t,i.u_scale_with_map),u_pitch_with_map:new e.aL(t,i.u_pitch_with_map),u_extrude_scale:new e.aQ(t,i.u_extrude_scale),u_device_pixel_ratio:new e.aM(t,i.u_device_pixel_ratio),u_matrix:new e.aN(t,i.u_matrix)}),collisionBox:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_camera_to_center_distance:new e.aM(t,i.u_camera_to_center_distance),u_pixels_to_tile_units:new e.aM(t,i.u_pixels_to_tile_units),u_extrude_scale:new e.aQ(t,i.u_extrude_scale),u_overscale_factor:new e.aM(t,i.u_overscale_factor)}),collisionCircle:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_inv_matrix:new e.aN(t,i.u_inv_matrix),u_camera_to_center_distance:new e.aM(t,i.u_camera_to_center_distance),u_viewport_size:new e.aQ(t,i.u_viewport_size)}),debug:(t,i)=>({u_color:new e.aR(t,i.u_color),u_matrix:new e.aN(t,i.u_matrix),u_overlay:new e.aL(t,i.u_overlay),u_overlay_scale:new e.aM(t,i.u_overlay_scale)}),clippingMask:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix)}),heatmap:(t,i)=>({u_extrude_scale:new e.aM(t,i.u_extrude_scale),u_intensity:new e.aM(t,i.u_intensity),u_matrix:new e.aN(t,i.u_matrix)}),heatmapTexture:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_world:new e.aQ(t,i.u_world),u_image:new e.aL(t,i.u_image),u_color_ramp:new e.aL(t,i.u_color_ramp),u_opacity:new e.aM(t,i.u_opacity)}),hillshade:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_image:new e.aL(t,i.u_image),u_latrange:new e.aQ(t,i.u_latrange),u_light:new e.aQ(t,i.u_light),u_shadow:new e.aR(t,i.u_shadow),u_highlight:new e.aR(t,i.u_highlight),u_accent:new e.aR(t,i.u_accent)}),hillshadePrepare:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_image:new e.aL(t,i.u_image),u_dimension:new e.aQ(t,i.u_dimension),u_zoom:new e.aM(t,i.u_zoom),u_unpack:new e.aO(t,i.u_unpack)}),line:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_ratio:new e.aM(t,i.u_ratio),u_device_pixel_ratio:new e.aM(t,i.u_device_pixel_ratio),u_units_to_pixels:new e.aQ(t,i.u_units_to_pixels)}),lineGradient:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_ratio:new e.aM(t,i.u_ratio),u_device_pixel_ratio:new e.aM(t,i.u_device_pixel_ratio),u_units_to_pixels:new e.aQ(t,i.u_units_to_pixels),u_image:new e.aL(t,i.u_image),u_image_height:new e.aM(t,i.u_image_height)}),linePattern:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_texsize:new e.aQ(t,i.u_texsize),u_ratio:new e.aM(t,i.u_ratio),u_device_pixel_ratio:new e.aM(t,i.u_device_pixel_ratio),u_image:new e.aL(t,i.u_image),u_units_to_pixels:new e.aQ(t,i.u_units_to_pixels),u_scale:new e.aP(t,i.u_scale),u_fade:new e.aM(t,i.u_fade)}),lineSDF:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_ratio:new e.aM(t,i.u_ratio),u_device_pixel_ratio:new e.aM(t,i.u_device_pixel_ratio),u_units_to_pixels:new e.aQ(t,i.u_units_to_pixels),u_patternscale_a:new e.aQ(t,i.u_patternscale_a),u_patternscale_b:new e.aQ(t,i.u_patternscale_b),u_sdfgamma:new e.aM(t,i.u_sdfgamma),u_image:new e.aL(t,i.u_image),u_tex_y_a:new e.aM(t,i.u_tex_y_a),u_tex_y_b:new e.aM(t,i.u_tex_y_b),u_mix:new e.aM(t,i.u_mix)}),raster:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_tl_parent:new e.aQ(t,i.u_tl_parent),u_scale_parent:new e.aM(t,i.u_scale_parent),u_buffer_scale:new e.aM(t,i.u_buffer_scale),u_fade_t:new e.aM(t,i.u_fade_t),u_opacity:new e.aM(t,i.u_opacity),u_image0:new e.aL(t,i.u_image0),u_image1:new e.aL(t,i.u_image1),u_brightness_low:new e.aM(t,i.u_brightness_low),u_brightness_high:new e.aM(t,i.u_brightness_high),u_saturation_factor:new e.aM(t,i.u_saturation_factor),u_contrast_factor:new e.aM(t,i.u_contrast_factor),u_spin_weights:new e.aP(t,i.u_spin_weights)}),symbolIcon:(t,i)=>({u_is_size_zoom_constant:new e.aL(t,i.u_is_size_zoom_constant),u_is_size_feature_constant:new e.aL(t,i.u_is_size_feature_constant),u_size_t:new e.aM(t,i.u_size_t),u_size:new e.aM(t,i.u_size),u_camera_to_center_distance:new e.aM(t,i.u_camera_to_center_distance),u_pitch:new e.aM(t,i.u_pitch),u_rotate_symbol:new e.aL(t,i.u_rotate_symbol),u_aspect_ratio:new e.aM(t,i.u_aspect_ratio),u_fade_change:new e.aM(t,i.u_fade_change),u_matrix:new e.aN(t,i.u_matrix),u_label_plane_matrix:new e.aN(t,i.u_label_plane_matrix),u_coord_matrix:new e.aN(t,i.u_coord_matrix),u_is_text:new e.aL(t,i.u_is_text),u_pitch_with_map:new e.aL(t,i.u_pitch_with_map),u_texsize:new e.aQ(t,i.u_texsize),u_texture:new e.aL(t,i.u_texture)}),symbolSDF:(t,i)=>({u_is_size_zoom_constant:new e.aL(t,i.u_is_size_zoom_constant),u_is_size_feature_constant:new e.aL(t,i.u_is_size_feature_constant),u_size_t:new e.aM(t,i.u_size_t),u_size:new e.aM(t,i.u_size),u_camera_to_center_distance:new e.aM(t,i.u_camera_to_center_distance),u_pitch:new e.aM(t,i.u_pitch),u_rotate_symbol:new e.aL(t,i.u_rotate_symbol),u_aspect_ratio:new e.aM(t,i.u_aspect_ratio),u_fade_change:new e.aM(t,i.u_fade_change),u_matrix:new e.aN(t,i.u_matrix),u_label_plane_matrix:new e.aN(t,i.u_label_plane_matrix),u_coord_matrix:new e.aN(t,i.u_coord_matrix),u_is_text:new e.aL(t,i.u_is_text),u_pitch_with_map:new e.aL(t,i.u_pitch_with_map),u_texsize:new e.aQ(t,i.u_texsize),u_texture:new e.aL(t,i.u_texture),u_gamma_scale:new e.aM(t,i.u_gamma_scale),u_device_pixel_ratio:new e.aM(t,i.u_device_pixel_ratio),u_is_halo:new e.aL(t,i.u_is_halo)}),symbolTextAndIcon:(t,i)=>({u_is_size_zoom_constant:new e.aL(t,i.u_is_size_zoom_constant),u_is_size_feature_constant:new e.aL(t,i.u_is_size_feature_constant),u_size_t:new e.aM(t,i.u_size_t),u_size:new e.aM(t,i.u_size),u_camera_to_center_distance:new e.aM(t,i.u_camera_to_center_distance),u_pitch:new e.aM(t,i.u_pitch),u_rotate_symbol:new e.aL(t,i.u_rotate_symbol),u_aspect_ratio:new e.aM(t,i.u_aspect_ratio),u_fade_change:new e.aM(t,i.u_fade_change),u_matrix:new e.aN(t,i.u_matrix),u_label_plane_matrix:new e.aN(t,i.u_label_plane_matrix),u_coord_matrix:new e.aN(t,i.u_coord_matrix),u_is_text:new e.aL(t,i.u_is_text),u_pitch_with_map:new e.aL(t,i.u_pitch_with_map),u_texsize:new e.aQ(t,i.u_texsize),u_texsize_icon:new e.aQ(t,i.u_texsize_icon),u_texture:new e.aL(t,i.u_texture),u_texture_icon:new e.aL(t,i.u_texture_icon),u_gamma_scale:new e.aM(t,i.u_gamma_scale),u_device_pixel_ratio:new e.aM(t,i.u_device_pixel_ratio),u_is_halo:new e.aL(t,i.u_is_halo)}),background:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_opacity:new e.aM(t,i.u_opacity),u_color:new e.aR(t,i.u_color)}),backgroundPattern:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_opacity:new e.aM(t,i.u_opacity),u_image:new e.aL(t,i.u_image),u_pattern_tl_a:new e.aQ(t,i.u_pattern_tl_a),u_pattern_br_a:new e.aQ(t,i.u_pattern_br_a),u_pattern_tl_b:new e.aQ(t,i.u_pattern_tl_b),u_pattern_br_b:new e.aQ(t,i.u_pattern_br_b),u_texsize:new e.aQ(t,i.u_texsize),u_mix:new e.aM(t,i.u_mix),u_pattern_size_a:new e.aQ(t,i.u_pattern_size_a),u_pattern_size_b:new e.aQ(t,i.u_pattern_size_b),u_scale_a:new e.aM(t,i.u_scale_a),u_scale_b:new e.aM(t,i.u_scale_b),u_pixel_coord_upper:new e.aQ(t,i.u_pixel_coord_upper),u_pixel_coord_lower:new e.aQ(t,i.u_pixel_coord_lower),u_tile_units_to_pixels:new e.aM(t,i.u_tile_units_to_pixels)}),terrain:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_texture:new e.aL(t,i.u_texture),u_ele_delta:new e.aM(t,i.u_ele_delta)}),terrainDepth:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_ele_delta:new e.aM(t,i.u_ele_delta)}),terrainCoords:(t,i)=>({u_matrix:new e.aN(t,i.u_matrix),u_texture:new e.aL(t,i.u_texture),u_terrain_coords_id:new e.aM(t,i.u_terrain_coords_id),u_ele_delta:new e.aM(t,i.u_ele_delta)})};class tm{constructor(e,t,i){this.context=e;let r=e.gl;this.buffer=r.createBuffer(),this.dynamicDraw=!!i,this.context.unbindVAO(),e.bindElementBuffer.set(this.buffer),r.bufferData(r.ELEMENT_ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?r.DYNAMIC_DRAW:r.STATIC_DRAW),this.dynamicDraw||delete t.arrayBuffer}bind(){this.context.bindElementBuffer.set(this.buffer)}updateData(e){let t=this.context.gl;if(!this.dynamicDraw)throw Error("Attempted to update data while not in dynamic mode.");this.context.unbindVAO(),this.bind(),t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,0,e.arrayBuffer)}destroy(){this.buffer&&(this.context.gl.deleteBuffer(this.buffer),delete this.buffer)}}let t_={Int8:"BYTE",Uint8:"UNSIGNED_BYTE",Int16:"SHORT",Uint16:"UNSIGNED_SHORT",Int32:"INT",Uint32:"UNSIGNED_INT",Float32:"FLOAT"};class tg{constructor(e,t,i,r){this.length=t.length,this.attributes=i,this.itemSize=t.bytesPerElement,this.dynamicDraw=r,this.context=e;let a=e.gl;this.buffer=a.createBuffer(),e.bindVertexBuffer.set(this.buffer),a.bufferData(a.ARRAY_BUFFER,t.arrayBuffer,this.dynamicDraw?a.DYNAMIC_DRAW:a.STATIC_DRAW),this.dynamicDraw||delete t.arrayBuffer}bind(){this.context.bindVertexBuffer.set(this.buffer)}updateData(e){if(e.length!==this.length)throw Error(`Length of new data is ${e.length}, which doesn't match current length of ${this.length}`);let t=this.context.gl;this.bind(),t.bufferSubData(t.ARRAY_BUFFER,0,e.arrayBuffer)}enableAttributes(e,t){for(let i=0;i0){let i=e.Z(),r=y;e.aU(i,g.placementInvProjMatrix,t.transform.glCoordMatrix),e.aU(i,i,g.placementViewportMatrix),p.push({circleArray:v,circleOffset:m,transform:r,invTransform:i,coord:h}),f+=v.length/4,m=f}x&&d.draw(u,c.LINES,t4.disabled,t6.disabled,t.colorModeForRenderPass(),t8.disabled,e9(y,t.transform,_),t.style.map.terrain&&t.style.map.terrain.getTerrainData(h),a.id,x.layoutVertexBuffer,x.indexBuffer,x.segments,null,t.transform.zoom,null,null,x.collisionVertexBuffer)}if(!l||!p.length)return;let _=t.useProgram("collisionCircle"),g=new e.aV;g.resize(4*f),g._trim();let y=0;for(let e of p)for(let t=0;tt.style.map.terrain.getElevation(l,e,i):null,a="map"===r.layout.get("text-rotation-alignment");!function(t,i,r,a,s,n,o,l,h,u){let c=a?t.textSizeData:t.iconSizeData,d=e.ah(c,r.transform.zoom),p=[256/r.width*2+1,256/r.height*2+1],f=a?t.text.dynamicLayoutVertexArray:t.icon.dynamicLayoutVertexArray;f.clear();let m=t.lineVertexArray,_=a?t.text.placedSymbolArray:t.icon.placedSymbolArray,g=r.transform.width/r.transform.height,y=!1;for(let a=0;a<_.length;a++){let x,v=_.get(a);if(v.hidden||v.writingMode===e.ai.vertical&&!y||(y=!1,u?(x=[v.anchorX,v.anchorY,u(v.anchorX,v.anchorY),1],e.ag(x,x,i)):ev(x=[v.anchorX,v.anchorY,0,1],x,i),!function(e,t){let i=e[0]/e[3],r=e[1]/e[3];return i>=-t[0]&&i<=t[0]&&r>=-t[1]&&r<=t[1]}(x,p))){ex(v.numGlyphs,f);continue}let b=eu(r.transform.cameraToCenterDistance,x[3]),w=e.aj(c,d,v),S=o?w/b:w*b,T=new e.P(v.anchorX,v.anchorY),I=eh(T,s,u).point,A={projections:{},offsets:{}},M=ep(v,S,!1,l,i,s,n,t.glyphOffsetArray,m,f,I,T,A,g,h,u);y=M.useVertical,(M.notEnoughRoom||y||M.needsFlipping&&ep(v,S,!0,l,i,s,n,t.glyphOffsetArray,m,f,I,T,A,g,h,u).notEnoughRoom)&&ex(v.numGlyphs,f)}a?t.text.dynamicLayoutVertexBuffer.updateData(f):t.icon.dynamicLayoutVertexBuffer.updateData(f)}(h,l.posMatrix,t,s,B,F,g,u,a,i)}let N=t.translatePosMatrix(l.posMatrix,a,n,o),U=y||s&&S||V?t7:B,$=t.translatePosMatrix(F,a,n,o,!0),j=p&&0!==r.paint.get(s?"text-halo-width":"icon-halo-width").constantOr(1),q={program:A,buffers:c,uniformValues:p?h.iconsInText?tc(w.kind,M,x,g,t,N,U,$,k,D):tu(w.kind,M,x,g,t,N,U,$,s,k,!0):th(w.kind,M,x,g,t,N,U,$,s,k),atlasTexture:C,atlasTextureIcon:L,atlasInterpolation:P,atlasInterpolationIcon:z,isSDF:p,hasHalo:j};if(v&&h.canOverlap)for(let t of(b=!0,c.segments.get()))T.push({segments:new e.S([t]),sortKey:t.sortKey,state:q,terrainData:E});else T.push({segments:c.segments,sortKey:0,state:q,terrainData:E})}for(let e of(b&&T.sort((e,t)=>e.sortKey-t.sortKey),T)){let i=e.state;if(p.activeTexture.set(f.TEXTURE0),i.atlasTexture.bind(i.atlasInterpolation,f.CLAMP_TO_EDGE),i.atlasTextureIcon&&(p.activeTexture.set(f.TEXTURE1),i.atlasTextureIcon&&i.atlasTextureIcon.bind(i.atlasInterpolationIcon,f.CLAMP_TO_EDGE)),i.isSDF){let a=i.uniformValues;i.hasHalo&&(a.u_is_halo=1,it(i.buffers,e.segments,r,t,i.program,w,c,d,a,e.terrainData)),a.u_is_halo=0}it(i.buffers,e.segments,r,t,i.program,w,c,d,i.uniformValues,e.terrainData)}}function it(e,t,i,r,a,s,n,o,l,h){let u=r.context;a.draw(u,u.gl.TRIANGLES,s,n,o,t8.disabled,l,h,i.id,e.layoutVertexBuffer,e.indexBuffer,t,i.paint,r.transform.zoom,e.programConfigurations.get(i.id),e.dynamicLayoutVertexBuffer,e.opacityVertexBuffer)}function ii(e,t,i,r,a){if(!i||!r||!r.imageAtlas)return;let s=r.imageAtlas.patternPositions,n=s[i.to.toString()],o=s[i.from.toString()];if(!n&&o&&(n=o),!o&&n&&(o=n),!n||!o){let e=a.getPaintProperty(t);n=s[e],o=s[e]}n&&o&&e.setConstantPatternPositions(n,o)}function ir(e,t,i,r,a,s,n){let o,l,h,u,c,d=e.context.gl,p="fill-pattern",f=i.paint.get(p),m=f&&f.constantOr(1),_=i.getCrossfadeParameters();n?(l=m&&!i.getPaintProperty("fill-outline-color")?"fillOutlinePattern":"fillOutline",o=d.LINES):(l=m?"fillPattern":"fill",o=d.TRIANGLES);let g=f.constantOr(null);for(let f of r){let r=t.getTile(f);if(m&&!r.patternsLoaded())continue;let y=r.getBucket(i);if(!y)continue;let x=y.programConfigurations.get(i.id),v=e.useProgram(l,x),b=e.style.map.terrain&&e.style.map.terrain.getTerrainData(f);m&&(e.context.activeTexture.set(d.TEXTURE0),r.imageAtlasTexture.bind(d.LINEAR,d.CLAMP_TO_EDGE),x.updatePaintBuffers(_)),ii(x,p,g,r,i);let w=b?f:null,S=e.translatePosMatrix(w?w.posMatrix:f.posMatrix,r,i.paint.get("fill-translate"),i.paint.get("fill-translate-anchor"));if(n){u=y.indexBuffer2,c=y.segments2;let t=[d.drawingBufferWidth,d.drawingBufferHeight];h="fillOutlinePattern"===l&&m?e6(S,e,_,r,t):e4(S,t)}else u=y.indexBuffer,c=y.segments,h=m?e3(S,e,_,r):e5(S);v.draw(e.context,o,a,e.stencilModeForClipping(f),s,t8.disabled,h,b,i.id,y.layoutVertexBuffer,u,c,i.paint,e.transform.zoom,x)}}function ia(e,t,i,r,a,s,n){let o=e.context,l=o.gl,h="fill-extrusion-pattern",u=i.paint.get(h),c=u.constantOr(1),d=i.getCrossfadeParameters(),p=i.paint.get("fill-extrusion-opacity"),f=u.constantOr(null);for(let u of r){let r=t.getTile(u),m=r.getBucket(i);if(!m)continue;let _=e.style.map.terrain&&e.style.map.terrain.getTerrainData(u),g=m.programConfigurations.get(i.id),y=e.useProgram(c?"fillExtrusionPattern":"fillExtrusion",g);c&&(e.context.activeTexture.set(l.TEXTURE0),r.imageAtlasTexture.bind(l.LINEAR,l.CLAMP_TO_EDGE),g.updatePaintBuffers(d)),ii(g,h,f,r,i);let x=e.translatePosMatrix(u.posMatrix,r,i.paint.get("fill-extrusion-translate"),i.paint.get("fill-extrusion-translate-anchor")),v=i.paint.get("fill-extrusion-vertical-gradient"),b=c?e2(x,e,v,p,u,d,r):e1(x,e,v,p);y.draw(o,o.gl.TRIANGLES,a,s,n,t8.backCCW,b,_,i.id,m.layoutVertexBuffer,m.indexBuffer,m.segments,i.paint,e.transform.zoom,g,e.style.map.terrain&&m.centroidVertexBuffer)}}let is=new e.aT(1,0,0,1),io=new e.aT(0,1,0,1),il=new e.aT(0,0,1,1),ih=new e.aT(1,0,1,1),iu=new e.aT(0,1,1,1);function ic(e,t,i,r){ip(e,0,t+i/2,e.transform.width,i,r)}function id(e,t,i,r){ip(e,t-i/2,0,i,e.transform.height,r)}function ip(e,t,i,r,a,s){let n=e.context,o=n.gl;o.enable(o.SCISSOR_TEST),o.scissor(t*e.pixelRatio,i*e.pixelRatio,r*e.pixelRatio,a*e.pixelRatio),n.clear({color:s}),o.disable(o.SCISSOR_TEST)}function im(e,t,i){let r=e.context,a=r.gl,s=e.colorModeForRenderPass(),n=new t4(a.LEQUAL,t4.ReadWrite,e.depthRangeFor3D),o=e.useProgram("terrain"),l=t.getTerrainMesh();for(let h of(r.bindFramebuffer.set(null),r.viewport.set([0,0,e.width,e.height]),i)){let i=e.renderToTexture.getTexture(h),u=t.getTerrainData(h.tileID);r.activeTexture.set(a.TEXTURE0),a.bindTexture(a.TEXTURE_2D,i.texture);let c={u_matrix:e.transform.calculatePosMatrix(h.tileID.toUnwrapped()),u_texture:0,u_ele_delta:t.getMeshFrameDelta(e.transform.zoom)};o.draw(r,a.TRIANGLES,n,t6.disabled,s,t8.backCCW,c,u,"terrain",l.vertexBuffer,l.indexBuffer,l.segments)}}class i_{constructor(t,i){this.context=new t3(t),this.transform=i,this._tileTextures={},this.terrainFacilitator={dirty:!0,matrix:e.Z(),renderTime:0},this.setup(),this.numSublayers=Y.maxUnderzooming+Y.maxOverzooming+1,this.depthEpsilon=1/65536,this.crossTileSymbolIndex=new eU}resize(e,t,i){if(this.width=Math.floor(e*i),this.height=Math.floor(t*i),this.pixelRatio=i,this.context.viewport.set([0,0,this.width,this.height]),this.style)for(let e of this.style._order)this.style._layers[e].resize()}setup(){let t=this.context,i=new e.a_;i.emplaceBack(0,0),i.emplaceBack(e.N,0),i.emplaceBack(0,e.N),i.emplaceBack(e.N,e.N),this.tileExtentBuffer=t.createVertexBuffer(i,eX.members),this.tileExtentSegments=e.S.simpleSegment(0,0,4,2);let r=new e.a_;r.emplaceBack(0,0),r.emplaceBack(e.N,0),r.emplaceBack(0,e.N),r.emplaceBack(e.N,e.N),this.debugBuffer=t.createVertexBuffer(r,eX.members),this.debugSegments=e.S.simpleSegment(0,0,4,5);let a=new e.V;a.emplaceBack(0,0,0,0),a.emplaceBack(e.N,0,e.N,0),a.emplaceBack(0,e.N,0,e.N),a.emplaceBack(e.N,e.N,e.N,e.N),this.rasterBoundsBuffer=t.createVertexBuffer(a,U.members),this.rasterBoundsSegments=e.S.simpleSegment(0,0,4,2);let s=new e.a_;s.emplaceBack(0,0),s.emplaceBack(1,0),s.emplaceBack(0,1),s.emplaceBack(1,1),this.viewportBuffer=t.createVertexBuffer(s,eX.members),this.viewportSegments=e.S.simpleSegment(0,0,4,2);let n=new e.a$;n.emplaceBack(0),n.emplaceBack(1),n.emplaceBack(3),n.emplaceBack(2),n.emplaceBack(0),this.tileBorderIndexBuffer=t.createIndexBuffer(n);let o=new e.b0;o.emplaceBack(0,1,2),o.emplaceBack(2,1,3),this.quadTriangleIndexBuffer=t.createIndexBuffer(o);let l=this.context.gl;this.stencilClearMode=new t6({func:l.ALWAYS,mask:0},0,255,l.ZERO,l.ZERO,l.ZERO)}clearStencil(){let t=this.context,i=t.gl;this.nextStencilID=1,this.currentStencilSource=void 0;let r=e.Z();e.aS(r,0,this.width,this.height,0,0,1),e.a0(r,r,[i.drawingBufferWidth,i.drawingBufferHeight,0]),this.useProgram("clippingMask").draw(t,i.TRIANGLES,t4.disabled,this.stencilClearMode,t5.disabled,t8.disabled,te(r),null,"$clipping",this.viewportBuffer,this.quadTriangleIndexBuffer,this.viewportSegments)}_renderTileClippingMasks(e,t){if(this.currentStencilSource===e.source||!e.isTileClipped()||!t||!t.length)return;this.currentStencilSource=e.source;let i=this.context,r=i.gl;this.nextStencilID+t.length>256&&this.clearStencil(),i.setColorMode(t5.disabled),i.setDepthMode(t4.disabled);let a=this.useProgram("clippingMask");for(let e of(this._tileClippingMaskIDs={},t)){let t=this._tileClippingMaskIDs[e.key]=this.nextStencilID++,s=this.style.map.terrain&&this.style.map.terrain.getTerrainData(e);a.draw(i,r.TRIANGLES,t4.disabled,new t6({func:r.ALWAYS,mask:0},t,255,r.KEEP,r.KEEP,r.REPLACE),t5.disabled,t8.disabled,te(e.posMatrix),s,"$clipping",this.tileExtentBuffer,this.quadTriangleIndexBuffer,this.tileExtentSegments)}}stencilModeFor3D(){this.currentStencilSource=void 0,this.nextStencilID+1>256&&this.clearStencil();let e=this.nextStencilID++,t=this.context.gl;return new t6({func:t.NOTEQUAL,mask:255},e,255,t.KEEP,t.KEEP,t.REPLACE)}stencilModeForClipping(e){let t=this.context.gl;return new t6({func:t.EQUAL,mask:255},this._tileClippingMaskIDs[e.key],0,t.KEEP,t.KEEP,t.REPLACE)}stencilConfigForOverlap(e){let t=this.context.gl,i=e.sort((e,t)=>t.overscaledZ-e.overscaledZ),r=i[i.length-1].overscaledZ,a=i[0].overscaledZ-r+1;if(a>1){this.currentStencilSource=void 0,this.nextStencilID+a>256&&this.clearStencil();let e={};for(let i=0;i=0;this.currentLayer--){let e=this.style._layers[r[this.currentLayer]],t=a[e.source],i=s[e.source];this._renderTileClippingMasks(e,i),this.renderLayer(this,t,e,i)}for(this.renderPass="translucent",this.currentLayer=0;this.currentLayeri.source&&!i.isHidden(t)?[e.sourceCaches[i.source]]:[]),a=r.filter(e=>"vector"===e.getSource().type),s=r.filter(e=>"vector"!==e.getSource().type),n=e=>{(!i||i.getSource().maxzoomn(e)),i||s.forEach(e=>n(e)),i}(this.style,this.transform.zoom);t&&function(t,i,r){for(let a=0;a ${r.overscaledZ}`),function(e,t){e.initDebugOverlayCanvas();let i=e.debugOverlayCanvas,r=e.context.gl,a=e.debugOverlayCanvas.getContext("2d");a.clearRect(0,0,i.width,i.height),a.shadowColor="white",a.shadowBlur=2,a.lineWidth=1.5,a.strokeStyle="white",a.textBaseline="top",a.font="bold 36px Open Sans, sans-serif",a.fillText(t,5,5),a.strokeText(t,5,5),e.debugOverlayTexture.update(i),e.debugOverlayTexture.bind(r.LINEAR,r.CLAMP_TO_EDGE)}(t,`${_} ${f}kB`),o.draw(a,s.TRIANGLES,l,h,t5.alphaBlended,t8.disabled,e7(n,e.aT.transparent,m),null,c,t.debugBuffer,t.quadTriangleIndexBuffer,t.debugSegments),o.draw(a,s.LINE_STRIP,l,h,u,t8.disabled,e7(n,e.aT.red),d,c,t.debugBuffer,t.tileBorderIndexBuffer,t.debugSegments)}(t,i,r[a])}(this,t,t.getVisibleCoordinates())}this.options.showPadding&&function(e){var t,i;let r=e.transform.padding;ic(e,e.transform.height-(r.top||0),3,is),ic(e,r.bottom||0,3,io),id(e,r.left||0,3,il),id(e,e.transform.width-(r.right||0),3,ih);let a=e.transform.centerPoint;t=a.x,i=e.transform.height-a.y,ip(e,t-1,i-10,2,20,iu),ip(e,t-10,i-1,20,2,iu)}(this),this.context.setDefault()}renderLayer(t,i,r,a){if(!r.isHidden(this.transform.zoom)&&("background"===r.type||"custom"===r.type||(a||[]).length))switch(this.id=r.id,r.type){case"symbol":!function(t,i,r,a,s){if("translucent"!==t.renderPass)return;let n=t6.disabled,o=t.colorModeForRenderPass();(r._unevaluatedLayout.hasValue("text-variable-anchor")||r._unevaluatedLayout.hasValue("text-variable-anchor-offset"))&&function(t,i,r,a,s,n,o){let l=i.transform,h="map"===s,u="map"===n;for(let s of t){let t=a.getTile(s),n=t.getBucket(r);if(!n||!n.text||!n.text.segments.get().length)continue;let c=e.ah(n.textSizeData,l.zoom),d=ew(t,1,i.transform.zoom),p=eo(s.posMatrix,u,h,i.transform,d),f="none"!==r.layout.get("icon-text-fit")&&n.hasIconData();if(c){let r=Math.pow(2,l.zoom-t.tileID.overscaledZ);!function(t,i,r,a,s,n,o,l,h,u,c){let d=t.text.placedSymbolArray,p=t.text.dynamicLayoutVertexArray,f=t.icon.dynamicLayoutVertexArray,m={};p.clear();for(let f=0;f=0&&(m[_.associatedIconIndex]={shiftedAnchor:I,angle:A})}else ex(_.numGlyphs,p)}if(u){f.clear();let i=t.icon.placedSymbolArray;for(let t=0;ti.style.map.terrain.getElevation(s,e,t):null)}}}(a,t,r,i,r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),s),0!==r.paint.get("icon-opacity").constantOr(1)&&ie(t,i,r,a,!1,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),r.layout.get("icon-rotation-alignment"),r.layout.get("icon-pitch-alignment"),r.layout.get("icon-keep-upright"),n,o),0!==r.paint.get("text-opacity").constantOr(1)&&ie(t,i,r,a,!0,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),r.layout.get("text-rotation-alignment"),r.layout.get("text-pitch-alignment"),r.layout.get("text-keep-upright"),n,o),i.map.showCollisionBoxes&&(t9(t,i,r,a,r.paint.get("text-translate"),r.paint.get("text-translate-anchor"),!0),t9(t,i,r,a,r.paint.get("icon-translate"),r.paint.get("icon-translate-anchor"),!1))}(t,i,r,a,this.style.placement.variableOffsets);break;case"circle":!function(t,i,r,a){if("translucent"!==t.renderPass)return;let s=r.paint.get("circle-opacity"),n=r.paint.get("circle-stroke-width"),o=r.paint.get("circle-stroke-opacity"),l=!r.layout.get("circle-sort-key").isConstant();if(0===s.constantOr(1)&&(0===n.constantOr(1)||0===o.constantOr(1)))return;let h=t.context,u=h.gl,c=t.depthModeForSublayer(0,t4.ReadOnly),d=t6.disabled,p=t.colorModeForRenderPass(),f=[];for(let s=0;se.sortKey-t.sortKey),f)){let{programConfiguration:i,program:a,layoutVertexBuffer:s,indexBuffer:n,uniformValues:o,terrainData:l}=e.state;a.draw(h,u.TRIANGLES,c,d,p,t8.disabled,o,l,r.id,s,n,e.segments,r.paint,t.transform.zoom,i)}}(t,i,r,a);break;case"heatmap":!function(t,i,r,a){if(0!==r.paint.get("heatmap-opacity"))if("offscreen"===t.renderPass){let s=t.context,n=s.gl,o=t6.disabled,l=new t5([n.ONE,n.ONE],e.aT.transparent,[!0,!0,!0,!0]);!function(e,t,i){let r=e.gl;e.activeTexture.set(r.TEXTURE1),e.viewport.set([0,0,t.width/4,t.height/4]);let a=i.heatmapFbo;if(a)r.bindTexture(r.TEXTURE_2D,a.colorAttachment.get()),e.bindFramebuffer.set(a.framebuffer);else{let s=r.createTexture();r.bindTexture(r.TEXTURE_2D,s),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MIN_FILTER,r.LINEAR),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_MAG_FILTER,r.LINEAR),a=i.heatmapFbo=e.createFramebuffer(t.width/4,t.height/4,!1,!1),function(e,t,i,r){var a,s;let n=e.gl,o=null!=(a=e.HALF_FLOAT)?a:n.UNSIGNED_BYTE,l=null!=(s=e.RGBA16F)?s:n.RGBA;n.texImage2D(n.TEXTURE_2D,0,l,t.width/4,t.height/4,0,n.RGBA,o,null),r.colorAttachment.set(i)}(e,t,s,a)}}(s,t,r),s.clear({color:e.aT.transparent});for(let e=0;e{let s=e.Z();e.aS(s,0,t.width,t.height,0,0,1);let n=t.context.gl;return{u_matrix:s,u_world:[n.drawingBufferWidth,n.drawingBufferHeight],u_image:0,u_color_ramp:1,u_opacity:i.paint.get("heatmap-opacity")}})(t,i),null,i.id,t.viewportBuffer,t.quadTriangleIndexBuffer,t.viewportSegments,i.paint,t.transform.zoom)}(t,r))}(t,i,r,a);break;case"line":!function(t,i,r,a){if("translucent"!==t.renderPass)return;let s=r.paint.get("line-opacity"),n=r.paint.get("line-width");if(0===s.constantOr(1)||0===n.constantOr(1))return;let o=t.depthModeForSublayer(0,t4.ReadOnly),l=t.colorModeForRenderPass(),h=r.paint.get("line-dasharray"),u=r.paint.get("line-pattern"),c=u.constantOr(1),d=r.paint.get("line-gradient"),p=r.getCrossfadeParameters(),f=c?"linePattern":h?"lineSDF":d?"lineGradient":"line",m=t.context,_=m.gl,g=!0;for(let s of a){let a=i.getTile(s);if(c&&!a.patternsLoaded())continue;let n=a.getBucket(r);if(!n)continue;let y=n.programConfigurations.get(r.id),x=t.context.program.get(),v=t.useProgram(f,y),b=g||v.program!==x,w=t.style.map.terrain&&t.style.map.terrain.getTerrainData(s),S=u.constantOr(null);if(S&&a.imageAtlas){let e=a.imageAtlas,t=e.patternPositions[S.to.toString()],i=e.patternPositions[S.from.toString()];t&&i&&y.setConstantPatternPositions(t,i)}let T=w?s:null,A=c?ta(t,a,r,p,T):h?ts(t,a,r,h,p,T):d?tr(t,a,r,n.lineClipsArray.length,T):ti(t,a,r,T);if(c)m.activeTexture.set(_.TEXTURE0),a.imageAtlasTexture.bind(_.LINEAR,_.CLAMP_TO_EDGE),y.updatePaintBuffers(p);else if(h&&(b||t.lineAtlas.dirty))m.activeTexture.set(_.TEXTURE0),t.lineAtlas.bind(m);else if(d){let a=n.gradients[r.id],o=a.texture;if(r.gradientVersion!==a.version){let l=256;if(r.stepInterpolant){let r=i.getSource().maxzoom,a=s.canonical.z===r?Math.ceil(1<{let r=i.stride,a=e.Z();return e.aS(a,0,e.N,-e.N,0,0,1),e.$(a,a,[0,-e.N,0]),{u_matrix:a,u_image:1,u_dimension:[r,r],u_zoom:t.overscaledZ,u_unpack:i.getUnpackVector()}})(i.tileID,h),null,r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments),i.needsHillshadePrepare=!1}}(t,s,r,n,t6.disabled,o):"translucent"===t.renderPass&&function(t,i,r,a,s,n,o){let l=t.context,h=l.gl,u=r.fbo;if(!u)return;let c=t.useProgram("hillshade"),d=t.style.map.terrain&&t.style.map.terrain.getTerrainData(i);l.activeTexture.set(h.TEXTURE0),h.bindTexture(h.TEXTURE_2D,u.colorAttachment.get()),c.draw(l,h.TRIANGLES,s,n,o,t8.disabled,((t,i,r,a)=>{let s=r.paint.get("hillshade-shadow-color"),n=r.paint.get("hillshade-highlight-color"),o=r.paint.get("hillshade-accent-color"),l=r.paint.get("hillshade-illumination-direction")*(Math.PI/180);"viewport"===r.paint.get("hillshade-illumination-anchor")&&(l-=t.transform.angle);let h=!t.options.moving;return{u_matrix:a?a.posMatrix:t.transform.calculatePosMatrix(i.tileID.toUnwrapped(),h),u_image:0,u_latrange:function(t,i){let r=Math.pow(2,i.canonical.z),a=i.canonical.y;return[new e.U(0,a/r).toLngLat().lat,new e.U(0,(a+1)/r).toLngLat().lat]}(0,i.tileID),u_light:[r.paint.get("hillshade-exaggeration"),l],u_shadow:s,u_highlight:n,u_accent:o}})(t,r,a,d?i:null),d,a.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}(t,a,s,r,n,l[a.overscaledZ],o)}s.viewport.set([0,0,t.width,t.height])}(t,i,r,a);break;case"raster":!function(t,i,r,a){if("translucent"!==t.renderPass||0===r.paint.get("raster-opacity")||!a.length)return;let s=t.context,n=s.gl,o=i.getSource(),l=t.useProgram("raster"),h=t.colorModeForRenderPass(),[u,c]=o instanceof $?[{},a]:t.stencilConfigForOverlap(a),d=c[c.length-1].overscaledZ,p=!t.options.moving;for(let a of c){let c,f,m=t.depthModeForSublayer(a.overscaledZ-d,1===r.paint.get("raster-opacity")?t4.ReadWrite:t4.ReadOnly,n.LESS),_=i.getTile(a);_.registerFadeDuration(r.paint.get("raster-fade-duration"));let g=i.findLoadedParent(a,0),y=function(t,i,r,a,s,n){let o=a.paint.get("raster-fade-duration");if(!n&&o>0){let a=e.h.now(),n=(a-t.timeAdded)/o,l=i?(a-i.timeAdded)/o:-1,h=r.getSource(),u=s.coveringZoomLevel({tileSize:h.tileSize,roundZoom:h.roundZoom}),c=!i||Math.abs(i.tileID.overscaledZ-u)>Math.abs(t.tileID.overscaledZ-u),d=c&&t.refreshedUponExpiration?1:e.ad(c?n:1-l,0,1);return t.refreshedUponExpiration&&n>=1&&(t.refreshedUponExpiration=!1),i?{opacity:1,mix:1-d}:{opacity:d,mix:0}}return{opacity:1,mix:0}}(_,g,i,r,t.transform,t.style.map.terrain),x="nearest"===r.paint.get("raster-resampling")?n.NEAREST:n.LINEAR;s.activeTexture.set(n.TEXTURE0),_.texture.bind(x,n.CLAMP_TO_EDGE,n.LINEAR_MIPMAP_NEAREST),s.activeTexture.set(n.TEXTURE1),g?(g.texture.bind(x,n.CLAMP_TO_EDGE,n.LINEAR_MIPMAP_NEAREST),c=Math.pow(2,g.tileID.overscaledZ-_.tileID.overscaledZ),f=[_.tileID.canonical.x*c%1,_.tileID.canonical.y*c%1]):_.texture.bind(x,n.CLAMP_TO_EDGE,n.LINEAR_MIPMAP_NEAREST);let v=t.style.map.terrain&&t.style.map.terrain.getTerrainData(a),b=v?a:null,w=tl(b?b.posMatrix:t.transform.calculatePosMatrix(a.toUnwrapped(),p),f||[0,0],c||1,y,r);o instanceof $?l.draw(s,n.TRIANGLES,m,t6.disabled,h,t8.disabled,w,v,r.id,o.boundsBuffer,t.quadTriangleIndexBuffer,o.boundsSegments):l.draw(s,n.TRIANGLES,m,u[a.overscaledZ],h,t8.disabled,w,v,r.id,t.rasterBoundsBuffer,t.quadTriangleIndexBuffer,t.rasterBoundsSegments)}}(t,i,r,a);break;case"background":!function(e,t,i,r){let a=i.paint.get("background-color"),s=i.paint.get("background-opacity");if(0===s)return;let n=e.context,o=n.gl,l=e.transform,h=l.tileSize,u=i.paint.get("background-pattern");if(e.isPatternMissing(u))return;let c=!u&&1===a.a&&1===s&&e.opaquePassEnabledForLayer()?"opaque":"translucent";if(e.renderPass!==c)return;let d=t6.disabled,p=e.depthModeForSublayer(0,"opaque"===c?t4.ReadWrite:t4.ReadOnly),f=e.colorModeForRenderPass(),m=e.useProgram(u?"backgroundPattern":"background"),_=r||l.coveringTiles({tileSize:h,terrain:e.style.map.terrain});u&&(n.activeTexture.set(o.TEXTURE0),e.imageManager.bind(e.context));let g=i.getCrossfadeParameters();for(let t of _){let l=r?t.posMatrix:e.transform.calculatePosMatrix(t.toUnwrapped()),c=u?tp(l,s,e,u,{tileID:t,tileSize:h},g):td(l,s,a),_=e.style.map.terrain&&e.style.map.terrain.getTerrainData(t);m.draw(n,o.TRIANGLES,p,d,f,t8.disabled,c,_,i.id,e.tileExtentBuffer,e.quadTriangleIndexBuffer,e.tileExtentSegments)}}(t,0,r,a);break;case"custom":let n=t.context,o=r.implementation;if("offscreen"===t.renderPass){let e=o.prerender;e&&(t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),e.call(o,n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState())}else if("translucent"===t.renderPass){t.setCustomLayerDefaults(),n.setColorMode(t.colorModeForRenderPass()),n.setStencilMode(t6.disabled);let e="3d"===o.renderingMode?new t4(t.context.gl.LEQUAL,t4.ReadWrite,t.depthRangeFor3D):t.depthModeForSublayer(0,t4.ReadOnly);n.setDepthMode(e),o.render(n.gl,t.transform.customLayerMatrix()),n.setDirty(),t.setBaseState(),n.bindFramebuffer.set(null)}}}translatePosMatrix(t,i,r,a,s){if(!r[0]&&!r[1])return t;let n=s?"map"===a?this.transform.angle:0:"viewport"===a?-this.transform.angle:0;if(n){let e=Math.sin(n),t=Math.cos(n);r=[r[0]*t-r[1]*e,r[0]*e+r[1]*t]}let o=[s?r[0]:ew(i,r[0],this.transform.zoom),s?r[1]:ew(i,r[1],this.transform.zoom),0],l=new Float32Array(16);return e.$(l,t,o),l}saveTileTexture(e){let t=this._tileTextures[e.size[0]];t?t.push(e):this._tileTextures[e.size[0]]=[e]}getTileTexture(e){let t=this._tileTextures[e];return t&&t.length>0?t.pop():null}isPatternMissing(e){if(!e)return!1;if(!e.from||!e.to)return!0;let t=this.imageManager.getPattern(e.from.toString()),i=this.imageManager.getPattern(e.to.toString());return!t||!i}useProgram(e,t){this.cache=this.cache||{};let i=e+(t?t.cacheKey:"")+(this._showOverdrawInspector?"/overdraw":"")+(this.style.map.terrain?"/terrain":"");return this.cache[i]||(this.cache[i]=new eQ(this.context,eH[e],t,tf[e],this._showOverdrawInspector,this.style.map.terrain)),this.cache[i]}setCustomLayerDefaults(){this.context.unbindVAO(),this.context.cullFace.setDefault(),this.context.activeTexture.setDefault(),this.context.pixelStoreUnpack.setDefault(),this.context.pixelStoreUnpackPremultiplyAlpha.setDefault(),this.context.pixelStoreUnpackFlipY.setDefault()}setBaseState(){let e=this.context.gl;this.context.cullFace.set(!1),this.context.viewport.set([0,0,this.width,this.height]),this.context.blendEquation.set(e.FUNC_ADD)}initDebugOverlayCanvas(){null==this.debugOverlayCanvas&&(this.debugOverlayCanvas=document.createElement("canvas"),this.debugOverlayCanvas.width=512,this.debugOverlayCanvas.height=512,this.debugOverlayTexture=new I(this.context,this.debugOverlayCanvas,this.context.gl.RGBA))}destroy(){this.debugOverlayTexture&&this.debugOverlayTexture.destroy()}overLimit(){let{drawingBufferWidth:e,drawingBufferHeight:t}=this.context.gl;return this.width!==e||this.height!==t}}class ig{constructor(e,t){this.points=e,this.planes=t}static fromInvProjectionMatrix(t,i,r){let a=Math.pow(2,r),s=[[-1,1,-1,1],[1,1,-1,1],[1,-1,-1,1],[-1,-1,-1,1],[-1,1,1,1],[1,1,1,1],[1,-1,1,1],[-1,-1,1,1]].map(r=>{let s=1/(r=e.ag([],r,t))[3]/i*a;return e.b3(r,r,[s,s,1/r[3],s])}),n=[[0,1,2],[6,5,4],[0,3,7],[2,1,5],[3,2,6],[0,4,5]].map(e=>{var t,i,r,a,n,o,l,h,u,c,d,p,f,m,_,g;let y=(d=[],f=(i=[],r=b([],s[e[0]],s[e[1]]),a=b([],s[e[2]],s[e[1]]),n=r[0],o=r[1],l=r[2],h=a[0],u=a[1],c=a[2],i[0]=o*c-l*u,i[1]=l*h-n*c,i[2]=n*u-o*h,p=i)[0],(g=f*f+(m=p[1])*m+(_=p[2])*_)>0&&(g=1/Math.sqrt(g)),d[0]=p[0]*g,d[1]=p[1]*g,d[2]=p[2]*g,d),x=-(y[0]*(t=s[e[1]])[0]+y[1]*t[1]+y[2]*t[2]);return y.concat(x)});return new ig(s,n)}}class iy{constructor(e,t){var i,r,a,s,n;this.min=e,this.max=t,this.center=(s=[],i=[],r=this.min,a=this.max,i[0]=r[0]+a[0],i[1]=r[1]+a[1],i[2]=r[2]+a[2],n=i,s[0]=.5*n[0],s[1]=.5*n[1],s[2]=.5*n[2],s)}quadrant(e){let t=[e%2==0,e<2],i=_(this.min),r=_(this.max);for(let e=0;e=0&&n++;if(0===n)return 0;n!==i.length&&(r=!1)}if(r)return 2;for(let e=0;e<3;e++){let i=Number.MAX_VALUE,r=-Number.MAX_VALUE;for(let a=0;athis.max[e]-this.min[e])return 0}return 1}}class ix{constructor(e=0,t=0,i=0,r=0){if(isNaN(e)||e<0||isNaN(t)||t<0||isNaN(i)||i<0||isNaN(r)||r<0)throw Error("Invalid value for edge-insets, top, bottom, left and right must all be numbers");this.top=e,this.bottom=t,this.left=i,this.right=r}interpolate(t,i,r){return null!=i.top&&null!=t.top&&(this.top=e.B.number(t.top,i.top,r)),null!=i.bottom&&null!=t.bottom&&(this.bottom=e.B.number(t.bottom,i.bottom,r)),null!=i.left&&null!=t.left&&(this.left=e.B.number(t.left,i.left,r)),null!=i.right&&null!=t.right&&(this.right=e.B.number(t.right,i.right,r)),this}getCenter(t,i){let r=e.ad((this.left+t-this.right)/2,0,t),a=e.ad((this.top+i-this.bottom)/2,0,i);return new e.P(r,a)}equals(e){return this.top===e.top&&this.bottom===e.bottom&&this.left===e.left&&this.right===e.right}clone(){return new ix(this.top,this.bottom,this.left,this.right)}toJSON(){return{top:this.top,bottom:this.bottom,left:this.left,right:this.right}}}class iv{constructor(t,i,r,a,s){this.tileSize=512,this.maxValidLatitude=85.051129,this._renderWorldCopies=void 0===s||!!s,this._minZoom=t||0,this._maxZoom=i||22,this._minPitch=null==r?0:r,this._maxPitch=null==a?60:a,this.setMaxBounds(),this.width=0,this.height=0,this._center=new e.L(0,0),this._elevation=0,this.zoom=0,this.angle=0,this._fov=.6435011087932844,this._pitch=0,this._unmodified=!0,this._edgeInsets=new ix,this._posMatrixCache={},this._alignedPosMatrixCache={},this._minEleveationForCurrentTile=0}clone(){let e=new iv(this._minZoom,this._maxZoom,this._minPitch,this.maxPitch,this._renderWorldCopies);return e.apply(this),e}apply(e){this.tileSize=e.tileSize,this.latRange=e.latRange,this.width=e.width,this.height=e.height,this._center=e._center,this._elevation=e._elevation,this._minEleveationForCurrentTile=e._minEleveationForCurrentTile,this.zoom=e.zoom,this.angle=e.angle,this._fov=e._fov,this._pitch=e._pitch,this._unmodified=e._unmodified,this._edgeInsets=e._edgeInsets.clone(),this._calcMatrices()}get minZoom(){return this._minZoom}set minZoom(e){this._minZoom!==e&&(this._minZoom=e,this.zoom=Math.max(this.zoom,e))}get maxZoom(){return this._maxZoom}set maxZoom(e){this._maxZoom!==e&&(this._maxZoom=e,this.zoom=Math.min(this.zoom,e))}get minPitch(){return this._minPitch}set minPitch(e){this._minPitch!==e&&(this._minPitch=e,this.pitch=Math.max(this.pitch,e))}get maxPitch(){return this._maxPitch}set maxPitch(e){this._maxPitch!==e&&(this._maxPitch=e,this.pitch=Math.min(this.pitch,e))}get renderWorldCopies(){return this._renderWorldCopies}set renderWorldCopies(e){void 0===e?e=!0:null===e&&(e=!1),this._renderWorldCopies=e}get worldSize(){return this.tileSize*this.scale}get centerOffset(){return this.centerPoint._sub(this.size._div(2))}get size(){return new e.P(this.width,this.height)}get bearing(){return-this.angle/Math.PI*180}set bearing(t){var i,r,a,s,n,o,l,h,u,c;let d=-e.b5(t,-180,180)*Math.PI/180;this.angle!==d&&(this._unmodified=!1,this.angle=d,this._calcMatrices(),this.rotationMatrix=(i=new e.A(4),e.A!=Float32Array&&(i[1]=0,i[2]=0),i[0]=1,i[3]=1,i),r=this.rotationMatrix,a=this.rotationMatrix,s=this.angle,n=a[0],o=a[1],l=a[2],h=a[3],u=Math.sin(s),c=Math.cos(s),r[0]=n*c+l*u,r[1]=o*c+h*u,r[2]=-(n*u)+l*c,r[3]=-(o*u)+h*c)}get pitch(){return this._pitch/Math.PI*180}set pitch(t){let i=e.ad(t,this.minPitch,this.maxPitch)/180*Math.PI;this._pitch!==i&&(this._unmodified=!1,this._pitch=i,this._calcMatrices())}get fov(){return this._fov/Math.PI*180}set fov(e){e=Math.max(.01,Math.min(60,e)),this._fov!==e&&(this._unmodified=!1,this._fov=e/180*Math.PI,this._calcMatrices())}get zoom(){return this._zoom}set zoom(e){let t=Math.min(Math.max(e,this.minZoom),this.maxZoom);this._zoom!==t&&(this._unmodified=!1,this._zoom=t,this.tileZoom=Math.max(0,Math.floor(t)),this.scale=this.zoomScale(t),this._constrain(),this._calcMatrices())}get center(){return this._center}set center(e){e.lat===this._center.lat&&e.lng===this._center.lng||(this._unmodified=!1,this._center=e,this._constrain(),this._calcMatrices())}get elevation(){return this._elevation}set elevation(e){e!==this._elevation&&(this._elevation=e,this._constrain(),this._calcMatrices())}get padding(){return this._edgeInsets.toJSON()}set padding(e){this._edgeInsets.equals(e)||(this._unmodified=!1,this._edgeInsets.interpolate(this._edgeInsets,e,1),this._calcMatrices())}get centerPoint(){return this._edgeInsets.getCenter(this.width,this.height)}isPaddingEqual(e){return this._edgeInsets.equals(e)}interpolatePadding(e,t,i){this._unmodified=!1,this._edgeInsets.interpolate(e,t,i),this._constrain(),this._calcMatrices()}coveringZoomLevel(e){return Math.max(0,(e.roundZoom?Math.round:Math.floor)(this.zoom+this.scaleZoom(this.tileSize/e.tileSize)))}getVisibleUnwrappedCoordinates(t){let i=[new e.b6(0,t)];if(this._renderWorldCopies){let r=this.pointCoordinate(new e.P(0,0)),a=this.pointCoordinate(new e.P(this.width,0)),s=this.pointCoordinate(new e.P(this.width,this.height)),n=this.pointCoordinate(new e.P(0,this.height)),o=Math.floor(Math.min(r.x,a.x,s.x,n.x)),l=Math.floor(Math.max(r.x,a.x,s.x,n.x));for(let r=o-1;r<=l+1;r++)0!==r&&i.push(new e.b6(r,t))}return i}coveringTiles(t){var i,r;let a=this.coveringZoomLevel(t),s=a;if(void 0!==t.minzoom&&at.maxzoom&&(a=t.maxzoom);let n=this.pointCoordinate(this.getCameraPoint()),o=e.U.fromLngLat(this.center),l=Math.pow(2,a),h=[l*n.x,l*n.y,0],u=[l*o.x,l*o.y,0],c=ig.fromInvProjectionMatrix(this.invProjMatrix,this.worldSize,a),d=t.minzoom||0;!t.terrain&&this.pitch<=60&&this._edgeInsets.top<.1&&(d=a);let p=t.terrain?2/Math.min(this.tileSize,t.tileSize)*this.tileSize:3,f=e=>({aabb:new iy([e*l,0,0],[(e+1)*l,l,0]),zoom:0,x:0,y:0,wrap:e,fullyVisible:!1}),m=[],_=[],g=a,y=t.reparseOverscaled?s:a;if(this._renderWorldCopies)for(let e=1;e<=3;e++)m.push(f(-e)),m.push(f(e));for(m.push(f(0));m.length>0;){let a=m.pop(),s=a.x,n=a.y,o=a.fullyVisible;if(!o){let e=a.aabb.intersects(c);if(0===e)continue;o=2===e}let l=t.terrain?h:u,f=Math.max(Math.abs(a.aabb.distanceX(l)),Math.abs(a.aabb.distanceY(l)));if(a.zoom===g||f>p+(1<=d){let t=g-a.zoom,i=h[0]-.5-(s<>1),c=a.zoom+1,d=a.aabb.quadrant(l);if(t.terrain){let s=new e.O(c,a.wrap,c,h,u),n=t.terrain.getMinMaxElevation(s),o=null!=(i=n.minElevation)?i:this.elevation,l=null!=(r=n.maxElevation)?r:this.elevation;d=new iy([d.min[0],d.min[1],o],[d.max[0],d.max[1],l])}m.push({aabb:d,zoom:c,x:h,y:u,wrap:a.wrap,fullyVisible:o})}}return _.sort((e,t)=>e.distanceSq-t.distanceSq).map(e=>e.tileID)}resize(e,t){this.width=e,this.height=t,this.pixelsToGLUnits=[2/e,-2/t],this._constrain(),this._calcMatrices()}get unmodified(){return this._unmodified}zoomScale(e){return Math.pow(2,e)}scaleZoom(e){return Math.log(e)/Math.LN2}project(t){let i=e.ad(t.lat,-this.maxValidLatitude,this.maxValidLatitude);return new e.P(e.G(t.lng)*this.worldSize,e.H(i)*this.worldSize)}unproject(t){return new e.U(t.x/this.worldSize,t.y/this.worldSize).toLngLat()}get point(){return this.project(this.center)}getCameraPosition(){return{lngLat:this.pointLocation(this.getCameraPoint()),altitude:Math.cos(this._pitch)*this.cameraToCenterDistance/this._pixelPerMeter+this.elevation}}recalculateZoom(t){let i=this.pointLocation(this.centerPoint,t),r=t.getElevationForLngLatZoom(i,this.tileZoom);if(!(this.elevation-r))return;let a=this.getCameraPosition(),s=e.U.fromLngLat(a.lngLat,a.altitude),n=e.U.fromLngLat(i,r),o=s.x-n.x,l=s.y-n.y,h=s.z-n.z,u=Math.sqrt(o*o+l*l+h*h),c=this.scaleZoom(this.cameraToCenterDistance/u/this.tileSize);this._elevation=r,this._center=i,this.zoom=c}setLocationAtPoint(t,i){let r=this.pointCoordinate(i),a=this.pointCoordinate(this.centerPoint),s=this.locationCoordinate(t),n=new e.U(s.x-(r.x-a.x),s.y-(r.y-a.y));this.center=this.coordinateLocation(n),this._renderWorldCopies&&(this.center=this.center.wrap())}locationPoint(e,t){return t?this.coordinatePoint(this.locationCoordinate(e),t.getElevationForLngLatZoom(e,this.tileZoom),this.pixelMatrix3D):this.coordinatePoint(this.locationCoordinate(e))}pointLocation(e,t){return this.coordinateLocation(this.pointCoordinate(e,t))}locationCoordinate(t){return e.U.fromLngLat(t)}coordinateLocation(e){return e&&e.toLngLat()}pointCoordinate(t,i){if(i){let e=i.pointCoordinate(t);if(null!=e)return e}let r=[t.x,t.y,0,1],a=[t.x,t.y,1,1];e.ag(r,r,this.pixelMatrixInverse),e.ag(a,a,this.pixelMatrixInverse);let s=r[3],n=a[3],o=r[1]/s,l=a[1]/n,h=r[2]/s,u=a[2]/n,c=h===u?0:(0-h)/(u-h);return new e.U(e.B.number(r[0]/s,a[0]/n,c)/this.worldSize,e.B.number(o,l,c)/this.worldSize)}coordinatePoint(t,i=0,r=this.pixelMatrix){let a=[t.x*this.worldSize,t.y*this.worldSize,i,1];return e.ag(a,a,r),new e.P(a[0]/a[3],a[1]/a[3])}getBounds(){let t=Math.max(0,this.height/2-this.getHorizon());return(new R).extend(this.pointLocation(new e.P(0,t))).extend(this.pointLocation(new e.P(this.width,t))).extend(this.pointLocation(new e.P(this.width,this.height))).extend(this.pointLocation(new e.P(0,this.height)))}getMaxBounds(){return this.latRange&&2===this.latRange.length&&this.lngRange&&2===this.lngRange.length?new R([this.lngRange[0],this.latRange[0]],[this.lngRange[1],this.latRange[1]]):null}getHorizon(){return Math.tan(Math.PI/2-this._pitch)*this.cameraToCenterDistance*.85}setMaxBounds(e){e?(this.lngRange=[e.getWest(),e.getEast()],this.latRange=[e.getSouth(),e.getNorth()],this._constrain()):(this.lngRange=null,this.latRange=[-this.maxValidLatitude,this.maxValidLatitude])}calculatePosMatrix(t,i=!1){let r=t.key,a=i?this._alignedPosMatrixCache:this._posMatrixCache;if(a[r])return a[r];let s=t.canonical,n=this.worldSize/this.zoomScale(s.z),o=s.x+Math.pow(2,s.z)*t.wrap,l=e.ao(new Float64Array(16));return e.$(l,l,[o*n,s.y*n,0]),e.a0(l,l,[n/e.N,n/e.N,1]),e.a1(l,i?this.alignedProjMatrix:this.projMatrix,l),a[r]=new Float32Array(l),a[r]}customLayerMatrix(){return this.mercatorMatrix.slice()}_constrain(){if(!this.center||!this.width||!this.height||this._constraining)return;this._constraining=!0;let t,i,r,a,s=-90,n=90,o=-180,l=180,h=this.size,u=this._unmodified;if(this.latRange){let i=this.latRange;s=e.H(i[1])*this.worldSize,t=(n=e.H(i[0])*this.worldSize)-sn&&(a=n-t)}if(this.lngRange){let t=(o+l)/2,i=e.b5(c.x,t-this.worldSize/2,t+this.worldSize/2),a=h.x/2;i-al&&(r=l-a)}void 0===r&&void 0===a||(this.center=this.unproject(new e.P(void 0!==r?r:c.x,void 0!==a?a:c.y)).wrap()),this._unmodified=u,this._constraining=!1}_calcMatrices(){if(!this.height)return;let t=this.centerOffset,i=this.point.x,r=this.point.y;this.cameraToCenterDistance=.5/Math.tan(this._fov/2)*this.height,this._pixelPerMeter=e.b7(1,this.center.lat)*this.worldSize;let a=e.ao(new Float64Array(16));e.a0(a,a,[this.width/2,-this.height/2,1]),e.$(a,a,[1,-1,0]),this.labelPlaneMatrix=a,a=e.ao(new Float64Array(16)),e.a0(a,a,[1,-1,1]),e.$(a,a,[-1,-1,0]),e.a0(a,a,[2/this.width,2/this.height,1]),this.glCoordMatrix=a;let s=this.cameraToCenterDistance+this._elevation*this._pixelPerMeter/Math.cos(this._pitch),n=Math.min(this.elevation,this._minEleveationForCurrentTile),o=s-n*this._pixelPerMeter/Math.cos(this._pitch),l=n<0?o:s,h=Math.PI/2+this._pitch,u=this._fov*(.5+t.y/this.height),c=Math.sin(u)*l/Math.sin(e.ad(Math.PI-h-u,.01,Math.PI-.01)),d=this.getHorizon(),p=2*Math.atan(d/this.cameraToCenterDistance)*(.5+t.y/(2*d)),f=Math.min(c,Math.sin(p)*l/Math.sin(e.ad(Math.PI-h-p,.01,Math.PI-.01))),m=1.01*(Math.cos(Math.PI/2-this._pitch)*f+l),_=this.height/50;a=new Float64Array(16),e.b8(a,this._fov,this.width/this.height,_,m),a[8]=-(2*t.x)/this.width,a[9]=2*t.y/this.height,e.a0(a,a,[1,-1,1]),e.$(a,a,[0,0,-this.cameraToCenterDistance]),e.b9(a,a,this._pitch),e.ae(a,a,this.angle),e.$(a,a,[-i,-r,0]),this.mercatorMatrix=e.a0([],a,[this.worldSize,this.worldSize,this.worldSize]),e.a0(a,a,[1,1,this._pixelPerMeter]),this.pixelMatrix=e.a1(new Float64Array(16),this.labelPlaneMatrix,a),e.$(a,a,[0,0,-this.elevation]),this.projMatrix=a,this.invProjMatrix=e.as([],a),this.pixelMatrix3D=e.a1(new Float64Array(16),this.labelPlaneMatrix,a);let g=this.width%2/2,y=this.height%2/2,x=Math.cos(this.angle),v=Math.sin(this.angle),b=i-Math.round(i)+x*g+v*y,w=r-Math.round(r)+x*y+v*g,S=new Float64Array(a);if(e.$(S,S,[b>.5?b-1:b,w>.5?w-1:w,0]),this.alignedProjMatrix=S,!(a=e.as(new Float64Array(16),this.pixelMatrix)))throw Error("failed to invert matrix");this.pixelMatrixInverse=a,this._posMatrixCache={},this._alignedPosMatrixCache={}}maxPitchScaleFactor(){if(!this.pixelMatrixInverse)return 1;let t=this.pointCoordinate(new e.P(0,0)),i=[t.x*this.worldSize,t.y*this.worldSize,0,1];return e.ag(i,i,this.pixelMatrix)[3]/this.cameraToCenterDistance}getCameraPoint(){let t=Math.tan(this._pitch)*(this.cameraToCenterDistance||1);return this.centerPoint.add(new e.P(0,t))}getCameraQueryGeometry(t){let i=this.getCameraPoint();if(1===t.length)return[t[0],i];{let r=i.x,a=i.y,s=i.x,n=i.y;for(let e of t)r=Math.min(r,e.x),a=Math.min(a,e.y),s=Math.max(s,e.x),n=Math.max(n,e.y);return[new e.P(r,a),new e.P(s,a),new e.P(s,n),new e.P(r,n),new e.P(r,a)]}}}function ib(e,t){let i,r=!1,a=null,s=null,n=()=>{a=null,r&&(e.apply(s,i),a=setTimeout(n,t),r=!1)};return(...e)=>(r=!0,s=this,i=e,a||n(),a)}class iw{constructor(e){this._getCurrentHash=()=>{let e=window.location.hash.replace("#","");if(this._hashName){let t;return e.split("&").map(e=>e.split("=")).forEach(e=>{e[0]===this._hashName&&(t=e)}),(t&&t[1]||"").split("/")}return e.split("/")},this._onHashChange=()=>{let e=this._getCurrentHash();if(e.length>=3&&!e.some(e=>isNaN(e))){let t=this._map.dragRotate.isEnabled()&&this._map.touchZoomRotate.isEnabled()?+(e[3]||0):this._map.getBearing();return this._map.jumpTo({center:[+e[2],+e[1]],zoom:+e[0],bearing:t,pitch:+(e[4]||0)}),!0}return!1},this._updateHashUnthrottled=()=>{let e=window.location.href.replace(/(#.+)?$/,this.getHashString());try{window.history.replaceState(window.history.state,null,e)}catch(e){}},this._updateHash=ib(this._updateHashUnthrottled,300),this._hashName=e&&encodeURIComponent(e)}addTo(e){return this._map=e,addEventListener("hashchange",this._onHashChange,!1),this._map.on("moveend",this._updateHash),this}remove(){return removeEventListener("hashchange",this._onHashChange,!1),this._map.off("moveend",this._updateHash),clearTimeout(this._updateHash()),delete this._map,this}getHashString(e){let t=this._map.getCenter(),i=Math.round(100*this._map.getZoom())/100,r=Math.pow(10,Math.ceil((i*Math.LN2+Math.log(512/360/.5))/Math.LN10)),a=Math.round(t.lng*r)/r,s=Math.round(t.lat*r)/r,n=this._map.getBearing(),o=this._map.getPitch(),l="";if(l+=e?`/${a}/${s}/${i}`:`${i}/${s}/${a}`,(n||o)&&(l+="/"+Math.round(10*n)/10),o&&(l+=`/${Math.round(o)}`),this._hashName){let e=this._hashName,t=!1,i=window.location.hash.slice(1).split("&").map(i=>{let r=i.split("=")[0];return r===e?(t=!0,`${r}=${l}`):i}).filter(e=>e);return t||i.push(`${e}=${l}`),`#${i.join("&")}`}return`#${l}`}}let iS={linearity:.3,easing:e.ba(0,0,.3,1)},iT=e.e({deceleration:2500,maxSpeed:1400},iS),iI=e.e({deceleration:20,maxSpeed:1400},iS),iA=e.e({deceleration:1e3,maxSpeed:360},iS),iM=e.e({deceleration:1e3,maxSpeed:90},iS);class iE{constructor(e){this._map=e,this.clear()}clear(){this._inertiaBuffer=[]}record(t){this._drainInertiaBuffer(),this._inertiaBuffer.push({time:e.h.now(),settings:t})}_drainInertiaBuffer(){let t=this._inertiaBuffer,i=e.h.now();for(;t.length>0&&i-t[0].time>160;)t.shift()}_onMoveEnd(t){if(this._drainInertiaBuffer(),this._inertiaBuffer.length<2)return;let i={zoom:0,bearing:0,pitch:0,pan:new e.P(0,0),pinchAround:void 0,around:void 0};for(let{settings:e}of this._inertiaBuffer)i.zoom+=e.zoomDelta||0,i.bearing+=e.bearingDelta||0,i.pitch+=e.pitchDelta||0,e.panDelta&&i.pan._add(e.panDelta),e.around&&(i.around=e.around),e.pinchAround&&(i.pinchAround=e.pinchAround);let r=this._inertiaBuffer[this._inertiaBuffer.length-1].time-this._inertiaBuffer[0].time,a={};if(i.pan.mag()){let s=iC(i.pan.mag(),r,e.e({},iT,t||{}));a.offset=i.pan.mult(s.amount/i.pan.mag()),a.center=this._map.transform.center,ik(a,s)}if(i.zoom){let e=iC(i.zoom,r,iI);a.zoom=this._map.transform.zoom+e.amount,ik(a,e)}if(i.bearing){let t=iC(i.bearing,r,iA);a.bearing=this._map.transform.bearing+e.ad(t.amount,-179,179),ik(a,t)}if(i.pitch){let e=iC(i.pitch,r,iM);a.pitch=this._map.transform.pitch+e.amount,ik(a,e)}if(a.zoom||a.bearing){let e=void 0===i.pinchAround?i.around:i.pinchAround;a.around=e?this._map.unproject(e):this._map.getCenter()}return this.clear(),e.e(a,{noMoveStart:!0})}}function ik(e,t){(!e.duration||e.durationi.unproject(e)),l=s.reduce((e,t,i,r)=>e.add(t.div(r.length)),new e.P(0,0));super(t,{points:s,point:l,lngLats:n,lngLat:i.unproject(l),originalEvent:r}),this._defaultPrevented=!1}}class iD extends e.k{preventDefault(){this._defaultPrevented=!0}get defaultPrevented(){return this._defaultPrevented}constructor(e,t,i){super(e,{originalEvent:i}),this._defaultPrevented=!1}}class iL{constructor(e,t){this._map=e,this._clickTolerance=t.clickTolerance}reset(){delete this._mousedownPos}wheel(e){return this._firePreventable(new iD(e.type,this._map,e))}mousedown(e,t){return this._mousedownPos=t,this._firePreventable(new iP(e.type,this._map,e))}mouseup(e){this._map.fire(new iP(e.type,this._map,e))}click(e,t){this._mousedownPos&&this._mousedownPos.dist(t)>=this._clickTolerance||this._map.fire(new iP(e.type,this._map,e))}dblclick(e){return this._firePreventable(new iP(e.type,this._map,e))}mouseover(e){this._map.fire(new iP(e.type,this._map,e))}mouseout(e){this._map.fire(new iP(e.type,this._map,e))}touchstart(e){return this._firePreventable(new iz(e.type,this._map,e))}touchmove(e){this._map.fire(new iz(e.type,this._map,e))}touchend(e){this._map.fire(new iz(e.type,this._map,e))}touchcancel(e){this._map.fire(new iz(e.type,this._map,e))}_firePreventable(e){if(this._map.fire(e),e.defaultPrevented)return{}}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class iR{constructor(e){this._map=e}reset(){this._delayContextMenu=!1,this._ignoreContextMenu=!0,delete this._contextMenuEvent}mousemove(e){this._map.fire(new iP(e.type,this._map,e))}mousedown(){this._delayContextMenu=!0,this._ignoreContextMenu=!1}mouseup(){this._delayContextMenu=!1,this._contextMenuEvent&&(this._map.fire(new iP("contextmenu",this._map,this._contextMenuEvent)),delete this._contextMenuEvent)}contextmenu(e){this._delayContextMenu?this._contextMenuEvent=e:this._ignoreContextMenu||this._map.fire(new iP(e.type,this._map,e)),this._map.listens("contextmenu")&&e.preventDefault()}isEnabled(){return!0}isActive(){return!1}enable(){}disable(){}}class iB{constructor(e){this._map=e}get transform(){return this._map._requestedCameraState||this._map.transform}get center(){return{lng:this.transform.center.lng,lat:this.transform.center.lat}}get zoom(){return this.transform.zoom}get pitch(){return this.transform.pitch}get bearing(){return this.transform.bearing}unproject(t){return this.transform.pointLocation(e.P.convert(t),this._map.terrain)}}class iF{constructor(e,t){this._map=e,this._tr=new iB(e),this._el=e.getCanvasContainer(),this._container=e.getContainer(),this._clickTolerance=t.clickTolerance||1}isEnabled(){return!!this._enabled}isActive(){return!!this._active}enable(){this.isEnabled()||(this._enabled=!0)}disable(){this.isEnabled()&&(this._enabled=!1)}mousedown(e,t){this.isEnabled()&&e.shiftKey&&0===e.button&&(o.disableDrag(),this._startPos=this._lastPos=t,this._active=!0)}mousemoveWindow(e,t){if(!this._active||this._lastPos.equals(t)||!this._box&&t.dist(this._startPos)e.fitScreenCoordinates(r,i,this._tr.bearing,{linear:!0})};this._fireEvent("boxzoomcancel",t)}keydown(e){this._active&&27===e.keyCode&&(this.reset(),this._fireEvent("boxzoomcancel",e))}reset(){this._active=!1,this._container.classList.remove("maplibregl-crosshair"),this._box&&(o.remove(this._box),this._box=null),o.enableDrag(),delete this._startPos,delete this._lastPos}_fireEvent(t,i){return this._map.fire(new e.k(t,{originalEvent:i}))}}function iO(e,t){if(e.length!==t.length)throw Error(`The number of touches and points are not equal - touches ${e.length}, points ${t.length}`);let i={};for(let r=0;rthis.numTouches)&&(this.aborted=!0),this.aborted||(void 0===this.startTime&&(this.startTime=t.timeStamp),r.length===this.numTouches&&(this.centroid=function(t){let i=new e.P(0,0);for(let e of t)i._add(e);return i.div(t.length)}(i),this.touches=iO(r,i)))}touchmove(e,t,i){if(this.aborted||!this.centroid)return;let r=iO(i,t);for(let e in this.touches){let t=r[e];(!t||t.dist(this.touches[e])>30)&&(this.aborted=!0)}}touchend(e,t,i){if((!this.centroid||e.timeStamp-this.startTime>500)&&(this.aborted=!0),0===i.length){let e=!this.aborted&&this.centroid;if(this.reset(),e)return e}}}class iN{constructor(e){this.singleTap=new iV(e),this.numTaps=e.numTaps,this.reset()}reset(){this.lastTime=1/0,delete this.lastTap,this.count=0,this.singleTap.reset()}touchstart(e,t,i){this.singleTap.touchstart(e,t,i)}touchmove(e,t,i){this.singleTap.touchmove(e,t,i)}touchend(e,t,i){let r=this.singleTap.touchend(e,t,i);if(r){let t=e.timeStamp-this.lastTime<500,i=!this.lastTap||30>this.lastTap.dist(r);if(t&&i||this.reset(),this.count++,this.lastTime=e.timeStamp,this.lastTap=r,this.count===this.numTaps)return this.reset(),r}}}class iU{constructor(e){this._tr=new iB(e),this._zoomIn=new iN({numTouches:1,numTaps:2}),this._zoomOut=new iN({numTouches:2,numTaps:1}),this.reset()}reset(){this._active=!1,this._zoomIn.reset(),this._zoomOut.reset()}touchstart(e,t,i){this._zoomIn.touchstart(e,t,i),this._zoomOut.touchstart(e,t,i)}touchmove(e,t,i){this._zoomIn.touchmove(e,t,i),this._zoomOut.touchmove(e,t,i)}touchend(e,t,i){let r=this._zoomIn.touchend(e,t,i),a=this._zoomOut.touchend(e,t,i),s=this._tr;return r?(this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:s.zoom+1,around:s.unproject(r)},{originalEvent:e})}):a?(this._active=!0,e.preventDefault(),setTimeout(()=>this.reset(),0),{cameraAnimation:t=>t.easeTo({duration:300,zoom:s.zoom-1,around:s.unproject(a)},{originalEvent:e})}):void 0}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class i${constructor(e){this._enabled=!!e.enable,this._moveStateManager=e.moveStateManager,this._clickTolerance=e.clickTolerance||1,this._moveFunction=e.move,this._activateOnStart=!!e.activateOnStart,e.assignEvents(this),this.reset()}reset(e){this._active=!1,this._moved=!1,delete this._lastPoint,this._moveStateManager.endMove(e)}_move(...e){let t=this._moveFunction(...e);if(t.bearingDelta||t.pitchDelta||t.around||t.panDelta)return this._active=!0,t}dragStart(e,t){this.isEnabled()&&!this._lastPoint&&this._moveStateManager.isValidStartEvent(e)&&(this._moveStateManager.startMove(e),this._lastPoint=t.length?t[0]:t,this._activateOnStart&&this._lastPoint&&(this._active=!0))}dragMove(e,t){if(!this.isEnabled())return;let i=this._lastPoint;if(!i)return;if(e.preventDefault(),!this._moveStateManager.isValidMoveEvent(e))return void this.reset(e);let r=t.length?t[0]:t;return!this._moved&&r.dist(i){e.mousedown=e.dragStart,e.mousemoveWindow=e.dragMove,e.mouseup=e.dragEnd,e.contextmenu=function(e){e.preventDefault()}},iX=({enable:e,clickTolerance:t,bearingDegreesPerPixelMoved:i=.8})=>new i$({clickTolerance:t,move:(e,t)=>({bearingDelta:(t.x-e.x)*i}),moveStateManager:new iq({checkCorrectEvent:e=>0===o.mouseButton(e)&&e.ctrlKey||2===o.mouseButton(e)}),enable:e,assignEvents:iG}),iW=({enable:e,clickTolerance:t,pitchDegreesPerPixelMoved:i=-.5})=>new i$({clickTolerance:t,move:(e,t)=>({pitchDelta:(t.y-e.y)*i}),moveStateManager:new iq({checkCorrectEvent:e=>0===o.mouseButton(e)&&e.ctrlKey||2===o.mouseButton(e)}),enable:e,assignEvents:iG});class iH{constructor(e,t){this._minTouches=e.cooperativeGestures?2:1,this._clickTolerance=e.clickTolerance||1,this._map=t,this.reset()}reset(){this._active=!1,this._touches={},this._sum=new e.P(0,0),setTimeout(()=>{this._cancelCooperativeMessage=!1},200)}touchstart(e,t,i){return this._calculateTransform(e,t,i)}touchmove(e,t,i){if(this._map._cooperativeGestures&&(2===this._minTouches&&i.length<2&&!this._cancelCooperativeMessage?this._map._onCooperativeGesture(e,!1,i.length):this._cancelCooperativeMessage||(this._cancelCooperativeMessage=!0)),this._active&&!(i.length0&&(this._active=!0);let a=iO(r,i),s=new e.P(0,0),n=new e.P(0,0),o=0;for(let e in a){let t=a[e],i=this._touches[e];i&&(s._add(t),n._add(t.sub(i)),o++,a[e]=t)}if(this._touches=a,oMath.abs(iJ(this._distance,this._startDistance))))return this._active=!0,{zoomDelta:iJ(this._distance,i),pinchAround:t}}}function i0(e,t){return 180*e.angleWith(t)/Math.PI}class i1 extends iK{reset(){super.reset(),delete this._minDiameter,delete this._startVector,delete this._vector}_start(e){this._startVector=this._vector=e[0].sub(e[1]),this._minDiameter=e[0].dist(e[1])}_move(e,t){let i=this._vector;if(this._vector=e[0].sub(e[1]),this._active||!this._isBelowThreshold(this._vector))return this._active=!0,{bearingDelta:i0(this._vector,i),pinchAround:t}}_isBelowThreshold(e){this._minDiameter=Math.min(this._minDiameter,e.mag());let t=25/(Math.PI*this._minDiameter)*360;return Math.abs(i0(e,this._startVector))Math.abs(e.x)}class i5 extends iK{constructor(e){super(),this._map=e}reset(){super.reset(),this._valid=void 0,delete this._firstMove,delete this._lastPoints}touchstart(e,t,i){super.touchstart(e,t,i),this._currentTouchCount=i.length}_start(e){this._lastPoints=e,i2(e[0].sub(e[1]))&&(this._valid=!1)}_move(e,t,i){if(this._map._cooperativeGestures&&this._currentTouchCount<3)return;let r=e[0].sub(this._lastPoints[0]),a=e[1].sub(this._lastPoints[1]);return this._valid=this.gestureBeginsVertically(r,a,i.timeStamp),this._valid?(this._lastPoints=e,this._active=!0,{pitchDelta:-((r.y+a.y)/2*.5)}):void 0}gestureBeginsVertically(e,t,i){if(void 0!==this._valid)return this._valid;let r=e.mag()>=2,a=t.mag()>=2;if(!r&&!a)return;if(!r||!a)return void 0===this._firstMove&&(this._firstMove=i),i-this._firstMove<100&&void 0;let s=e.y>0==t.y>0;return i2(e)&&i2(t)&&s}}let i3=100,i4=15,i6=10;class i8{constructor(e){this._tr=new iB(e),this._panStep=i3,this._bearingStep=i4,this._pitchStep=i6,this._rotationDisabled=!1}reset(){this._active=!1}keydown(e){if(e.altKey||e.ctrlKey||e.metaKey)return;let t=0,i=0,r=0,a=0,s=0;switch(e.keyCode){case 61:case 107:case 171:case 187:t=1;break;case 189:case 109:case 173:t=-1;break;case 37:e.shiftKey?i=-1:(e.preventDefault(),a=-1);break;case 39:e.shiftKey?i=1:(e.preventDefault(),a=1);break;case 38:e.shiftKey?r=1:(e.preventDefault(),s=-1);break;case 40:e.shiftKey?r=-1:(e.preventDefault(),s=1);break;default:return}return this._rotationDisabled&&(i=0,r=0),{cameraAnimation:n=>{let o=this._tr;n.easeTo({duration:300,easeId:"keyboardHandler",easing:i9,zoom:t?Math.round(o.zoom)+t*(e.shiftKey?2:1):o.zoom,bearing:o.bearing+i*this._bearingStep,pitch:o.pitch+r*this._pitchStep,offset:[-a*this._panStep,-s*this._panStep],center:o.center},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}disableRotation(){this._rotationDisabled=!0}enableRotation(){this._rotationDisabled=!1}}function i9(e){return e*(2-e)}class i7{constructor(e,t){this._onTimeout=e=>{this._type="wheel",this._delta-=this._lastValue,this._active||this._start(e)},this._map=e,this._tr=new iB(e),this._el=e.getCanvasContainer(),this._triggerRenderFrame=t,this._delta=0,this._defaultZoomRate=.01,this._wheelZoomRate=.0022222222222222222}setZoomRate(e){this._defaultZoomRate=e}setWheelZoomRate(e){this._wheelZoomRate=e}isEnabled(){return!!this._enabled}isActive(){return!!this._active||void 0!==this._finishTimeout}isZooming(){return!!this._zooming}enable(e){this.isEnabled()||(this._enabled=!0,this._aroundCenter=!!e&&"center"===e.around)}disable(){this.isEnabled()&&(this._enabled=!1)}wheel(t){if(!this.isEnabled())return;if(this._map._cooperativeGestures){if(!t[this._map._metaKey])return;t.preventDefault()}let i=t.deltaMode===WheelEvent.DOM_DELTA_LINE?40*t.deltaY:t.deltaY,r=e.h.now(),a=r-(this._lastWheelEventTime||0);this._lastWheelEventTime=r,0!==i&&i%4.000244140625==0?this._type="wheel":0!==i&&4>Math.abs(i)?this._type="trackpad":a>400?(this._type=null,this._lastValue=i,this._timeout=setTimeout(this._onTimeout,40,t)):this._type||(this._type=200>Math.abs(a*i)?"trackpad":"wheel",this._timeout&&(clearTimeout(this._timeout),this._timeout=null,i+=this._lastValue)),t.shiftKey&&i&&(i/=4),this._type&&(this._lastWheelEvent=t,this._delta-=i,this._active||this._start(t)),t.preventDefault()}_start(t){if(!this._delta)return;this._frameId&&(this._frameId=null),this._active=!0,this.isZooming()||(this._zooming=!0),this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout);let i=o.mousePos(this._el,t),r=this._tr;this._around=e.L.convert(this._aroundCenter?r.center:r.unproject(i)),this._aroundPoint=r.transform.locationPoint(this._around),this._frameId||(this._frameId=!0,this._triggerRenderFrame())}renderFrame(){if(!this._frameId||(this._frameId=null,!this.isActive()))return;let t=this._tr.transform;if(0!==this._delta){let e="wheel"===this._type&&Math.abs(this._delta)>4.000244140625?this._wheelZoomRate:this._defaultZoomRate,i=2/(1+Math.exp(-Math.abs(this._delta*e)));this._delta<0&&0!==i&&(i=1/i);let r="number"==typeof this._targetZoom?t.zoomScale(this._targetZoom):t.scale;this._targetZoom=Math.min(t.maxZoom,Math.max(t.minZoom,t.scaleZoom(r*i))),"wheel"===this._type&&(this._startZoom=t.zoom,this._easing=this._smoothOutEasing(200)),this._delta=0}let i="number"==typeof this._targetZoom?this._targetZoom:t.zoom,r=this._startZoom,a=this._easing,s,n=!1;if("wheel"===this._type&&r&&a){let t=Math.min((e.h.now()-this._lastWheelEventTime)/200,1),o=a(t);s=e.B.number(r,i,o),t<1?this._frameId||(this._frameId=!0):n=!0}else s=i,n=!0;return this._active=!0,n&&(this._active=!1,this._finishTimeout=setTimeout(()=>{this._zooming=!1,this._triggerRenderFrame(),delete this._targetZoom,delete this._finishTimeout},200)),{noInertia:!0,needsRenderFrame:!n,zoomDelta:s-t.zoom,around:this._aroundPoint,originalEvent:this._lastWheelEvent}}_smoothOutEasing(t){let i=e.bb;if(this._prevEase){let t=this._prevEase,r=(e.h.now()-t.start)/t.duration,a=t.easing(r+.01)-t.easing(r),s=.27/Math.sqrt(a*a+1e-4)*.01,n=Math.sqrt(.0729-s*s);i=e.ba(s,n,.25,1)}return this._prevEase={start:e.h.now(),duration:t,easing:i},i}reset(){this._active=!1,this._zooming=!1,delete this._targetZoom,this._finishTimeout&&(clearTimeout(this._finishTimeout),delete this._finishTimeout)}}class re{constructor(e,t){this._clickZoom=e,this._tapZoom=t}enable(){this._clickZoom.enable(),this._tapZoom.enable()}disable(){this._clickZoom.disable(),this._tapZoom.disable()}isEnabled(){return this._clickZoom.isEnabled()&&this._tapZoom.isEnabled()}isActive(){return this._clickZoom.isActive()||this._tapZoom.isActive()}}class rt{constructor(e){this._tr=new iB(e),this.reset()}reset(){this._active=!1}dblclick(e,t){return e.preventDefault(),{cameraAnimation:i=>{i.easeTo({duration:300,zoom:this._tr.zoom+(e.shiftKey?-1:1),around:this._tr.unproject(t)},{originalEvent:e})}}}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class ri{constructor(){this._tap=new iN({numTouches:1,numTaps:1}),this.reset()}reset(){this._active=!1,delete this._swipePoint,delete this._swipeTouch,delete this._tapTime,delete this._tapPoint,this._tap.reset()}touchstart(e,t,i){if(!this._swipePoint)if(this._tapTime){let r=t[0],a=e.timeStamp-this._tapTime<500,s=30>this._tapPoint.dist(r);a&&s?i.length>0&&(this._swipePoint=r,this._swipeTouch=i[0].identifier):this.reset()}else this._tap.touchstart(e,t,i)}touchmove(e,t,i){if(this._tapTime){if(this._swipePoint){if(i[0].identifier!==this._swipeTouch)return;let r=t[0],a=r.y-this._swipePoint.y;return this._swipePoint=r,e.preventDefault(),this._active=!0,{zoomDelta:a/128}}}else this._tap.touchmove(e,t,i)}touchend(e,t,i){if(this._tapTime)this._swipePoint&&0===i.length&&this.reset();else{let r=this._tap.touchend(e,t,i);r&&(this._tapTime=e.timeStamp,this._tapPoint=r)}}touchcancel(){this.reset()}enable(){this._enabled=!0}disable(){this._enabled=!1,this.reset()}isEnabled(){return this._enabled}isActive(){return this._active}}class rr{constructor(e,t,i){this._el=e,this._mousePan=t,this._touchPan=i}enable(e){this._inertiaOptions=e||{},this._mousePan.enable(),this._touchPan.enable(),this._el.classList.add("maplibregl-touch-drag-pan")}disable(){this._mousePan.disable(),this._touchPan.disable(),this._el.classList.remove("maplibregl-touch-drag-pan")}isEnabled(){return this._mousePan.isEnabled()&&this._touchPan.isEnabled()}isActive(){return this._mousePan.isActive()||this._touchPan.isActive()}}class ra{constructor(e,t,i){this._pitchWithRotate=e.pitchWithRotate,this._mouseRotate=t,this._mousePitch=i}enable(){this._mouseRotate.enable(),this._pitchWithRotate&&this._mousePitch.enable()}disable(){this._mouseRotate.disable(),this._mousePitch.disable()}isEnabled(){return this._mouseRotate.isEnabled()&&(!this._pitchWithRotate||this._mousePitch.isEnabled())}isActive(){return this._mouseRotate.isActive()||this._mousePitch.isActive()}}class rs{constructor(e,t,i,r){this._el=e,this._touchZoom=t,this._touchRotate=i,this._tapDragZoom=r,this._rotationDisabled=!1,this._enabled=!0}enable(e){this._touchZoom.enable(e),this._rotationDisabled||this._touchRotate.enable(e),this._tapDragZoom.enable(),this._el.classList.add("maplibregl-touch-zoom-rotate")}disable(){this._touchZoom.disable(),this._touchRotate.disable(),this._tapDragZoom.disable(),this._el.classList.remove("maplibregl-touch-zoom-rotate")}isEnabled(){return this._touchZoom.isEnabled()&&(this._rotationDisabled||this._touchRotate.isEnabled())&&this._tapDragZoom.isEnabled()}isActive(){return this._touchZoom.isActive()||this._touchRotate.isActive()||this._tapDragZoom.isActive()}disableRotation(){this._rotationDisabled=!0,this._touchRotate.disable()}enableRotation(){this._rotationDisabled=!1,this._touchZoom.isEnabled()&&this._touchRotate.enable()}}let rn=e=>e.zoom||e.drag||e.pitch||e.rotate;class ro extends e.k{}function rl(e){return e.panDelta&&e.panDelta.mag()||e.zoomDelta||e.bearingDelta||e.pitchDelta}class rh{constructor(e,t){this.handleWindowEvent=e=>{this.handleEvent(e,`${e.type}Window`)},this.handleEvent=(e,t)=>{if("blur"===e.type)return void this.stop(!0);this._updatingCamera=!0;let i="renderFrame"===e.type?void 0:e,r={needsRenderFrame:!1},a={},s={},n=e.touches,l=n?this._getMapTouches(n):void 0,h=l?o.touchPos(this._el,l):o.mousePos(this._el,e);for(let{handlerName:n,handler:o,allowed:u}of this._handlers){let c;o.isEnabled()&&(this._blockedByActive(s,u,n)?o.reset():o[t||e.type]&&(c=o[t||e.type](e,h,l),this.mergeHandlerResult(r,a,c,n,i),c&&c.needsRenderFrame&&this._triggerRenderFrame()),(c||o.isActive())&&(s[n]=o))}let u={};for(let e in this._previousActiveHandlers)s[e]||(u[e]=i);this._previousActiveHandlers=s,(Object.keys(u).length||rl(r))&&(this._changes.push([r,a,u]),this._triggerRenderFrame()),(Object.keys(s).length||rl(r))&&this._map._stop(!0),this._updatingCamera=!1;let{cameraAnimation:c}=r;c&&(this._inertia.clear(),this._fireEvents({},{},!0),this._changes=[],c(this._map))},this._map=e,this._el=this._map.getCanvasContainer(),this._handlers=[],this._handlersById={},this._changes=[],this._inertia=new iE(e),this._bearingSnap=t.bearingSnap,this._previousActiveHandlers={},this._eventsInProgress={},this._addDefaultHandlers(t);let i=this._el;for(let[e,t,r]of(this._listeners=[[i,"touchstart",{passive:!0}],[i,"touchmove",{passive:!1}],[i,"touchend",void 0],[i,"touchcancel",void 0],[i,"mousedown",void 0],[i,"mousemove",void 0],[i,"mouseup",void 0],[document,"mousemove",{capture:!0}],[document,"mouseup",void 0],[i,"mouseover",void 0],[i,"mouseout",void 0],[i,"dblclick",void 0],[i,"click",void 0],[i,"keydown",{capture:!1}],[i,"keyup",void 0],[i,"wheel",{passive:!1}],[i,"contextmenu",void 0],[window,"blur",void 0]],this._listeners))o.addEventListener(e,t,e===document?this.handleWindowEvent:this.handleEvent,r)}destroy(){for(let[e,t,i]of this._listeners)o.removeEventListener(e,t,e===document?this.handleWindowEvent:this.handleEvent,i)}_addDefaultHandlers(e){let t=this._map,i=t.getCanvasContainer();this._add("mapEvent",new iL(t,e));let r=t.boxZoom=new iF(t,e);this._add("boxZoom",r),e.interactive&&e.boxZoom&&r.enable();let a=new iU(t),s=new rt(t);t.doubleClickZoom=new re(s,a),this._add("tapZoom",a),this._add("clickZoom",s),e.interactive&&e.doubleClickZoom&&t.doubleClickZoom.enable();let n=new ri;this._add("tapDragZoom",n);let l=t.touchPitch=new i5(t);this._add("touchPitch",l),e.interactive&&e.touchPitch&&t.touchPitch.enable(e.touchPitch);let h=iX(e),u=iW(e);t.dragRotate=new ra(e,h,u),this._add("mouseRotate",h,["mousePitch"]),this._add("mousePitch",u,["mouseRotate"]),e.interactive&&e.dragRotate&&t.dragRotate.enable();let c=(({enable:e,clickTolerance:t})=>new i$({clickTolerance:t,move:(e,t)=>({around:t,panDelta:t.sub(e)}),activateOnStart:!0,moveStateManager:new iq({checkCorrectEvent:e=>0===o.mouseButton(e)&&!e.ctrlKey}),enable:e,assignEvents:iG}))(e),d=new iH(e,t);t.dragPan=new rr(i,c,d),this._add("mousePan",c),this._add("touchPan",d,["touchZoom","touchRotate"]),e.interactive&&e.dragPan&&t.dragPan.enable(e.dragPan);let p=new i1,f=new iQ;t.touchZoomRotate=new rs(i,f,p,n),this._add("touchRotate",p,["touchPan","touchZoom"]),this._add("touchZoom",f,["touchPan","touchRotate"]),e.interactive&&e.touchZoomRotate&&t.touchZoomRotate.enable(e.touchZoomRotate);let m=t.scrollZoom=new i7(t,()=>this._triggerRenderFrame());this._add("scrollZoom",m,["mousePan"]),e.interactive&&e.scrollZoom&&t.scrollZoom.enable(e.scrollZoom);let _=t.keyboard=new i8(t);this._add("keyboard",_),e.interactive&&e.keyboard&&t.keyboard.enable(),this._add("blockableMapEvent",new iR(t))}_add(e,t,i){this._handlers.push({handlerName:e,handler:t,allowed:i}),this._handlersById[e]=t}stop(e){if(!this._updatingCamera){for(let{handler:e}of this._handlers)e.reset();this._inertia.clear(),this._fireEvents({},{},e),this._changes=[]}}isActive(){for(let{handler:e}of this._handlers)if(e.isActive())return!0;return!1}isZooming(){return!!this._eventsInProgress.zoom||this._map.scrollZoom.isZooming()}isRotating(){return!!this._eventsInProgress.rotate}isMoving(){return!!rn(this._eventsInProgress)||this.isZooming()}_blockedByActive(e,t,i){for(let r in e)if(r!==i&&(!t||0>t.indexOf(r)))return!0;return!1}_getMapTouches(e){let t=[];for(let i of e)this._el.contains(i.target)&&t.push(i);return t}mergeHandlerResult(t,i,r,a,s){if(!r)return;e.e(t,r);let n={handlerName:a,originalEvent:r.originalEvent||s};void 0!==r.zoomDelta&&(i.zoom=n),void 0!==r.panDelta&&(i.drag=n),void 0!==r.pitchDelta&&(i.pitch=n),void 0!==r.bearingDelta&&(i.rotate=n)}_applyChanges(){let t={},i={},r={};for(let[a,s,n]of this._changes)a.panDelta&&(t.panDelta=(t.panDelta||new e.P(0,0))._add(a.panDelta)),a.zoomDelta&&(t.zoomDelta=(t.zoomDelta||0)+a.zoomDelta),a.bearingDelta&&(t.bearingDelta=(t.bearingDelta||0)+a.bearingDelta),a.pitchDelta&&(t.pitchDelta=(t.pitchDelta||0)+a.pitchDelta),void 0!==a.around&&(t.around=a.around),void 0!==a.pinchAround&&(t.pinchAround=a.pinchAround),a.noInertia&&(t.noInertia=a.noInertia),e.e(i,s),e.e(r,n);this._updateMapTransform(t,i,r),this._changes=[]}_updateMapTransform(e,t,i){let r=this._map,a=r._getTransformForUpdate(),s=r.terrain;if(!(rl(e)||s&&this._terrainMovement))return this._fireEvents(t,i,!0);let{panDelta:n,zoomDelta:o,bearingDelta:l,pitchDelta:h,around:u,pinchAround:c}=e;void 0!==c&&(u=c),r._stop(!0),u=u||r.transform.centerPoint;let d=a.pointLocation(n?u.sub(n):u);l&&(a.bearing+=l),h&&(a.pitch+=h),o&&(a.zoom+=o),s?!this._terrainMovement&&(t.drag||t.zoom)?(this._terrainMovement=!0,this._map._elevationFreeze=!0,a.setLocationAtPoint(d,u),this._map.once("moveend",()=>{this._map._elevationFreeze=!1,this._terrainMovement=!1,a.recalculateZoom(r.terrain)})):t.drag&&this._terrainMovement?a.center=a.pointLocation(a.centerPoint.sub(n)):a.setLocationAtPoint(d,u):a.setLocationAtPoint(d,u),r._applyUpdatedTransform(a),this._map._update(),e.noInertia||this._inertia.record(e),this._fireEvents(t,i,!0)}_fireEvents(t,i,r){let a,s=rn(this._eventsInProgress),n=rn(t),o={};for(let e in t){let{originalEvent:i}=t[e];this._eventsInProgress[e]||(o[`${e}start`]=i),this._eventsInProgress[e]=t[e]}for(let e in!s&&n&&this._fireEvent("movestart",n.originalEvent),o)this._fireEvent(e,o[e]);for(let e in n&&this._fireEvent("move",n.originalEvent),t){let{originalEvent:i}=t[e];this._fireEvent(e,i)}let l={};for(let e in this._eventsInProgress){let{handlerName:t,originalEvent:r}=this._eventsInProgress[e];this._handlersById[t].isActive()||(delete this._eventsInProgress[e],a=i[t]||r,l[`${e}end`]=a)}for(let e in l)this._fireEvent(e,l[e]);let h=rn(this._eventsInProgress);if(r&&(s||n)&&!h){this._updatingCamera=!0;let t=this._inertia._onMoveEnd(this._map.dragPan._inertiaOptions),i=e=>0!==e&&-this._bearingSnap{delete this._frameId,this.handleEvent(new ro("renderFrame",{timeStamp:e})),this._applyChanges()})}_triggerRenderFrame(){void 0===this._frameId&&(this._frameId=this._requestFrame())}}class ru extends e.E{constructor(t,i){super(),this._renderFrameCallback=()=>{let t=Math.min((e.h.now()-this._easeStart)/this._easeOptions.duration,1);this._onEaseFrame(this._easeOptions.easing(t)),t<1&&this._easeFrameId?this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback):this.stop()},this._moving=!1,this._zooming=!1,this.transform=t,this._bearingSnap=i.bearingSnap,this.on("moveend",()=>{delete this._requestedCameraState})}getCenter(){return new e.L(this.transform.center.lng,this.transform.center.lat)}setCenter(e,t){return this.jumpTo({center:e},t)}panBy(t,i,r){return t=e.P.convert(t).mult(-1),this.panTo(this.transform.center,e.e({offset:t},i),r)}panTo(t,i,r){return this.easeTo(e.e({center:t},i),r)}getZoom(){return this.transform.zoom}setZoom(e,t){return this.jumpTo({zoom:e},t),this}zoomTo(t,i,r){return this.easeTo(e.e({zoom:t},i),r)}zoomIn(e,t){return this.zoomTo(this.getZoom()+1,e,t),this}zoomOut(e,t){return this.zoomTo(this.getZoom()-1,e,t),this}getBearing(){return this.transform.bearing}setBearing(e,t){return this.jumpTo({bearing:e},t),this}getPadding(){return this.transform.padding}setPadding(e,t){return this.jumpTo({padding:e},t),this}rotateTo(t,i,r){return this.easeTo(e.e({bearing:t},i),r)}resetNorth(t,i){return this.rotateTo(0,e.e({duration:1e3},t),i),this}resetNorthPitch(t,i){return this.easeTo(e.e({bearing:0,pitch:0,duration:1e3},t),i),this}snapToNorth(e,t){return Math.abs(this.getBearing()){if(this._zooming&&(s.zoom=e.B.number(n,u,_)),this._rotating&&(s.bearing=e.B.number(o,c,_)),this._pitching&&(s.pitch=e.B.number(l,d,_)),this._padding&&(s.interpolatePadding(h,p,_),m=s.centerPoint.add(f)),this.terrain&&!t.freezeElevation&&this._updateElevation(_),r)s.setLocationAtPoint(r,a);else{let e=s.zoomScale(s.zoom-n),t=Math.pow(u>n?Math.min(2,v):Math.max(.5,v),1-_),i=s.unproject(y.add(x.mult(_*t)).mult(e));s.setLocationAtPoint(s.renderWorldCopies?i.wrap():i,m)}this._applyUpdatedTransform(s),this._fireMoveEvents(i)},e=>{this.terrain&&this._finalizeElevation(),this._afterEase(i,e)},t),this}_prepareEase(t,i,r={}){this._moving=!0,i||r.moving||this.fire(new e.k("movestart",t)),this._zooming&&!r.zooming&&this.fire(new e.k("zoomstart",t)),this._rotating&&!r.rotating&&this.fire(new e.k("rotatestart",t)),this._pitching&&!r.pitching&&this.fire(new e.k("pitchstart",t))}_prepareElevation(e){this._elevationCenter=e,this._elevationStart=this.transform.elevation,this._elevationTarget=this.terrain.getElevationForLngLatZoom(e,this.transform.tileZoom),this._elevationFreeze=!0}_updateElevation(t){this.transform._minEleveationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);let i=this.terrain.getElevationForLngLatZoom(this._elevationCenter,this.transform.tileZoom);if(t<1&&i!==this._elevationTarget){let e=this._elevationTarget-this._elevationStart;this._elevationStart+=t*(e-(i-(e*t+this._elevationStart))/(1-t)),this._elevationTarget=i}this.transform.elevation=e.B.number(this._elevationStart,this._elevationTarget,t)}_finalizeElevation(){this._elevationFreeze=!1,this.transform.recalculateZoom(this.terrain)}_getTransformForUpdate(){return this.transformCameraUpdate?(this._requestedCameraState||(this._requestedCameraState=this.transform.clone()),this._requestedCameraState):this.transform}_applyUpdatedTransform(e){if(!this.transformCameraUpdate)return;let t=e.clone(),{center:i,zoom:r,pitch:a,bearing:s,elevation:n}=this.transformCameraUpdate(t);i&&(t.center=i),void 0!==r&&(t.zoom=r),void 0!==a&&(t.pitch=a),void 0!==s&&(t.bearing=s),void 0!==n&&(t.elevation=n),this.transform.apply(t)}_fireMoveEvents(t){this.fire(new e.k("move",t)),this._zooming&&this.fire(new e.k("zoom",t)),this._rotating&&this.fire(new e.k("rotate",t)),this._pitching&&this.fire(new e.k("pitch",t))}_afterEase(t,i){if(this._easeId&&i&&this._easeId===i)return;delete this._easeId;let r=this._zooming,a=this._rotating,s=this._pitching;this._moving=!1,this._zooming=!1,this._rotating=!1,this._pitching=!1,this._padding=!1,r&&this.fire(new e.k("zoomend",t)),a&&this.fire(new e.k("rotateend",t)),s&&this.fire(new e.k("pitchend",t)),this.fire(new e.k("moveend",t))}flyTo(t,i){if(!t.essential&&e.h.prefersReducedMotion){let r=e.F(t,["center","zoom","bearing","pitch","around"]);return this.jumpTo(r,i)}this.stop(),t=e.e({offset:[0,0],speed:1.2,curve:1.42,easing:e.bb},t);let r=this._getTransformForUpdate(),a=this.getZoom(),s=this.getBearing(),n=this.getPitch(),o=this.getPadding(),l="zoom"in t?e.ad(+t.zoom,r.minZoom,r.maxZoom):a,h="bearing"in t?this._normalizeBearing(t.bearing,s):s,u="pitch"in t?+t.pitch:n,c="padding"in t?t.padding:r.padding,d=r.zoomScale(l-a),p=e.P.convert(t.offset),f=r.centerPoint.add(p),m=r.pointLocation(f),_=e.L.convert(t.center||m);this._normalizeCenter(_);let g=r.project(m),y=r.project(_).sub(g),x=t.curve,v=Math.max(r.width,r.height),b=v/d,w=y.mag();if("minZoom"in t){let i=e.ad(Math.min(t.minZoom,a,l),r.minZoom,r.maxZoom);x=Math.sqrt(v/r.zoomScale(i-a)/w*2)}let S=x*x;function T(e){let t=(b*b-v*v+(e?-1:1)*S*S*w*w)/(2*(e?b:v)*S*w);return Math.log(Math.sqrt(t*t+1)-t)}function I(e){return(Math.exp(e)-Math.exp(-e))/2}function A(e){return(Math.exp(e)+Math.exp(-e))/2}let M=T(!1),E=function(e){return A(M)/A(M+x*e)},k=function(e){var t;return v*((A(M)*(I(t=M+x*e)/A(t))-I(M))/S)/w},C=(T(!0)-M)/x;if(1e-6>Math.abs(w)||!isFinite(C)){if(1e-6>Math.abs(v-b))return this.easeTo(t,i);let e=bt.maxDuration&&(t.duration=0),this._zooming=!0,this._rotating=s!==h,this._pitching=u!==n,this._padding=!r.isPaddingEqual(c),this._prepareEase(i,!1),this.terrain&&this._prepareElevation(_),this._ease(d=>{let m=d*C,x=1/E(m);r.zoom=1===d?l:a+r.scaleZoom(x),this._rotating&&(r.bearing=e.B.number(s,h,d)),this._pitching&&(r.pitch=e.B.number(n,u,d)),this._padding&&(r.interpolatePadding(o,c,d),f=r.centerPoint.add(p)),this.terrain&&!t.freezeElevation&&this._updateElevation(d);let v=1===d?_:r.unproject(g.add(y.mult(k(m))).mult(x));r.setLocationAtPoint(r.renderWorldCopies?v.wrap():v,f),this._applyUpdatedTransform(r),this._fireMoveEvents(i)},()=>{this.terrain&&this._finalizeElevation(),this._afterEase(i)},t),this}isEasing(){return!!this._easeFrameId}stop(){return this._stop()}_stop(e,t){if(this._easeFrameId&&(this._cancelRenderFrame(this._easeFrameId),delete this._easeFrameId,delete this._onEaseFrame),this._onEaseEnd){let e=this._onEaseEnd;delete this._onEaseEnd,e.call(this,t)}if(!e){let e=this.handlers;e&&e.stop(!1)}return this}_ease(t,i,r){!1===r.animate||0===r.duration?(t(1),i()):(this._easeStart=e.h.now(),this._easeOptions=r,this._onEaseFrame=t,this._onEaseEnd=i,this._easeFrameId=this._requestRenderFrame(this._renderFrameCallback))}_normalizeBearing(t,i){let r=Math.abs((t=e.b5(t,-180,180))-i);return Math.abs(t-360-i)180?-360:360*(i<-180)}queryTerrainElevation(t){return this.terrain?this.terrain.getElevationForLngLatZoom(e.L.convert(t),this.transform.tileZoom)-this.transform.elevation:null}}class rc{constructor(e={}){this._toggleAttribution=()=>{this._container.classList.contains("maplibregl-compact")&&(this._container.classList.contains("maplibregl-compact-show")?(this._container.setAttribute("open",""),this._container.classList.remove("maplibregl-compact-show")):(this._container.classList.add("maplibregl-compact-show"),this._container.removeAttribute("open")))},this._updateData=e=>{e&&("metadata"===e.sourceDataType||"visibility"===e.sourceDataType||"style"===e.dataType||"terrain"===e.type)&&this._updateAttributions()},this._updateCompact=()=>{this._map.getCanvasContainer().offsetWidth<=640||this._compact?!1===this._compact?this._container.setAttribute("open",""):this._container.classList.contains("maplibregl-compact")||this._container.classList.contains("maplibregl-attrib-empty")||(this._container.setAttribute("open",""),this._container.classList.add("maplibregl-compact","maplibregl-compact-show")):(this._container.setAttribute("open",""),this._container.classList.contains("maplibregl-compact")&&this._container.classList.remove("maplibregl-compact","maplibregl-compact-show"))},this._updateCompactMinimize=()=>{this._container.classList.contains("maplibregl-compact")&&this._container.classList.contains("maplibregl-compact-show")&&this._container.classList.remove("maplibregl-compact-show")},this.options=e}getDefaultPosition(){return"bottom-right"}onAdd(e){return this._map=e,this._compact=this.options&&this.options.compact,this._container=o.create("details","maplibregl-ctrl maplibregl-ctrl-attrib"),this._compactButton=o.create("summary","maplibregl-ctrl-attrib-button",this._container),this._compactButton.addEventListener("click",this._toggleAttribution),this._setElementTitle(this._compactButton,"ToggleAttribution"),this._innerContainer=o.create("div","maplibregl-ctrl-attrib-inner",this._container),this._updateAttributions(),this._updateCompact(),this._map.on("styledata",this._updateData),this._map.on("sourcedata",this._updateData),this._map.on("terrain",this._updateData),this._map.on("resize",this._updateCompact),this._map.on("drag",this._updateCompactMinimize),this._container}onRemove(){o.remove(this._container),this._map.off("styledata",this._updateData),this._map.off("sourcedata",this._updateData),this._map.off("terrain",this._updateData),this._map.off("resize",this._updateCompact),this._map.off("drag",this._updateCompactMinimize),this._map=void 0,this._compact=void 0,this._attribHTML=void 0}_setElementTitle(e,t){let i=this._map._getUIString(`AttributionControl.${t}`);e.title=i,e.setAttribute("aria-label",i)}_updateAttributions(){if(!this._map.style)return;let e=[];if(this.options.customAttribution&&(Array.isArray(this.options.customAttribution)?e=e.concat(this.options.customAttribution.map(e=>"string"!=typeof e?"":e)):"string"==typeof this.options.customAttribution&&e.push(this.options.customAttribution)),this._map.style.stylesheet){let e=this._map.style.stylesheet;this.styleOwner=e.owner,this.styleId=e.id}let t=this._map.style.sourceCaches;for(let i in t){let r=t[i];if(r.used||r.usedForTerrain){let t=r.getSource();t.attribution&&0>e.indexOf(t.attribution)&&e.push(t.attribution)}}(e=e.filter(e=>String(e).trim())).sort((e,t)=>e.length-t.length);let i=(e=e.filter((t,i)=>{for(let r=i+1;r=0)return!1;return!0})).join(" | ");i!==this._attribHTML&&(this._attribHTML=i,e.length?(this._innerContainer.innerHTML=i,this._container.classList.remove("maplibregl-attrib-empty")):this._container.classList.add("maplibregl-attrib-empty"),this._updateCompact(),this._editLink=null)}}class rd{constructor(e={}){this._updateCompact=()=>{let e=this._container.children;if(e.length){let t=e[0];this._map.getCanvasContainer().offsetWidth<=640||this._compact?!1!==this._compact&&t.classList.add("maplibregl-compact"):t.classList.remove("maplibregl-compact")}},this.options=e}getDefaultPosition(){return"bottom-left"}onAdd(e){this._map=e,this._compact=this.options&&this.options.compact,this._container=o.create("div","maplibregl-ctrl");let t=o.create("a","maplibregl-ctrl-logo");return t.target="_blank",t.rel="noopener nofollow",t.href="https://maplibre.org/",t.setAttribute("aria-label",this._map._getUIString("LogoControl.Title")),t.setAttribute("rel","noopener nofollow"),this._container.appendChild(t),this._container.style.display="block",this._map.on("resize",this._updateCompact),this._updateCompact(),this._container}onRemove(){o.remove(this._container),this._map.off("resize",this._updateCompact),this._map=void 0,this._compact=void 0}}class rp{constructor(){this._queue=[],this._id=0,this._cleared=!1,this._currentlyRunning=!1}add(e){let t=++this._id;return this._queue.push({callback:e,id:t,cancelled:!1}),t}remove(e){let t=this._currentlyRunning;for(let i of t?this._queue.concat(t):this._queue)if(i.id===e)return void(i.cancelled=!0)}run(e=0){if(this._currentlyRunning)throw Error("Attempting to run(), but is already running.");let t=this._currentlyRunning=this._queue;for(let i of(this._queue=[],t))if(!i.cancelled&&(i.callback(e),this._cleared))break;this._cleared=!1,this._currentlyRunning=!1}clear(){this._currentlyRunning&&(this._cleared=!0),this._queue=[]}}let rf={"AttributionControl.ToggleAttribution":"Toggle attribution","AttributionControl.MapFeedback":"Map feedback","FullscreenControl.Enter":"Enter fullscreen","FullscreenControl.Exit":"Exit fullscreen","GeolocateControl.FindMyLocation":"Find my location","GeolocateControl.LocationNotAvailable":"Location not available","LogoControl.Title":"Mapbox logo","NavigationControl.ResetBearing":"Reset bearing to north","NavigationControl.ZoomIn":"Zoom in","NavigationControl.ZoomOut":"Zoom out","ScaleControl.Feet":"ft","ScaleControl.Meters":"m","ScaleControl.Kilometers":"km","ScaleControl.Miles":"mi","ScaleControl.NauticalMiles":"nm","TerrainControl.enableTerrain":"Enable terrain","TerrainControl.disableTerrain":"Disable terrain"};var rm=e.Q([{name:"a_pos3d",type:"Int16",components:3}]);class r_ extends e.E{constructor(e){super(),this.sourceCache=e,this._tiles={},this._renderableTilesKeys=[],this._sourceTileCache={},this.minzoom=0,this.maxzoom=22,this.tileSize=512,this.deltaZoom=1,e.usedForTerrain=!0,e.tileSize=this.tileSize*2**this.deltaZoom}destruct(){this.sourceCache.usedForTerrain=!1,this.sourceCache.tileSize=null}update(t,i){this.sourceCache.update(t,i),this._renderableTilesKeys=[];let r={};for(let a of t.coveringTiles({tileSize:this.tileSize,minzoom:this.minzoom,maxzoom:this.maxzoom,reparseOverscaled:!1,terrain:i}))r[a.key]=!0,this._renderableTilesKeys.push(a.key),this._tiles[a.key]||(a.posMatrix=new Float64Array(16),e.aS(a.posMatrix,0,e.N,0,e.N,0,1),this._tiles[a.key]=new W(a,this.tileSize));for(let e in this._tiles)r[e]||delete this._tiles[e]}freeRtt(e){for(let t in this._tiles){let i=this._tiles[t];(!e||i.tileID.equals(e)||i.tileID.isChildOf(e)||e.isChildOf(i.tileID))&&(i.rtt=[])}}getRenderableTiles(){return this._renderableTilesKeys.map(e=>this.getTileByID(e))}getTileByID(e){return this._tiles[e]}getTerrainCoords(t){let i={};for(let r of this._renderableTilesKeys){let a=this._tiles[r].tileID;if(a.canonical.equals(t.canonical)){let a=t.clone();a.posMatrix=new Float64Array(16),e.aS(a.posMatrix,0,e.N,0,e.N,0,1),i[r]=a}else if(a.canonical.isChildOf(t.canonical)){let s=t.clone();s.posMatrix=new Float64Array(16);let n=a.canonical.z-t.canonical.z,o=a.canonical.x-(a.canonical.x>>n<>n<>n;e.aS(s.posMatrix,0,h,0,h,0,1),e.$(s.posMatrix,s.posMatrix,[-o*h,-l*h,0]),i[r]=s}else if(t.canonical.isChildOf(a.canonical)){let s=t.clone();s.posMatrix=new Float64Array(16);let n=t.canonical.z-a.canonical.z,o=t.canonical.x-(t.canonical.x>>n<>n<>n;e.aS(s.posMatrix,0,e.N,0,e.N,0,1),e.$(s.posMatrix,s.posMatrix,[o*h,l*h,0]),e.a0(s.posMatrix,s.posMatrix,[1/2**n,1/2**n,0]),i[r]=s}}return i}getSourceTile(e,t){let i=this.sourceCache._source,r=e.overscaledZ-this.deltaZoom;if(r>i.maxzoom&&(r=i.maxzoom),r=i.minzoom&&(!a||!a.dem);)a=this.sourceCache.getTileByID(e.scaledTo(r--).key);return a}tilesAfterTime(e=Date.now()){return Object.values(this._tiles).filter(t=>t.timeAdded>=e)}}class rg{constructor(e,t,i){this.painter=e,this.sourceCache=new r_(t),this.options=i,this.exaggeration="number"==typeof i.exaggeration?i.exaggeration:1,this.qualityFactor=2,this.meshSize=128,this._demMatrixCache={},this.coordsIndex=[],this._coordsTextureSize=1024}getDEMElevation(t,i,r,a=e.N){var s,n,o,l,h,u;if(!(i>=0&&i=0&&rt.canonical.z&&(t.canonical.z>=r?a=t.canonical.z-r:e.w("cannot calculate elevation if elevation maxzoom > source.maxzoom"));let s=t.canonical.x-(t.canonical.x>>a<>a<>8<<4|e>>8,i[t+3]=0;let r=new I(t,new e.R({width:this._coordsTextureSize,height:this._coordsTextureSize},new Uint8Array(i.buffer)),t.gl.RGBA,{premultiply:!1});return r.bind(t.gl.NEAREST,t.gl.CLAMP_TO_EDGE),this._coordsTexture=r,r}pointCoordinate(t){let i=new Uint8Array(4),r=this.painter.context,a=r.gl;r.bindFramebuffer.set(this.getFramebuffer("coords").framebuffer),a.readPixels(t.x,this.painter.height/devicePixelRatio-t.y-1,1,1,a.RGBA,a.UNSIGNED_BYTE,i),r.bindFramebuffer.set(null);let s=i[0]+(i[2]>>4<<8),n=i[1]+((15&i[2])<<8),o=this.coordsIndex[255-i[3]],l=o&&this.sourceCache.getTileByID(o);if(!l)return null;let h=this._coordsTextureSize,u=(1<0&&0>Math.sign(s)||!r&&0>Math.sign(a)&&Math.sign(s)>0?(a=360*Math.sign(s)+a,e.G(a)):i}}class ry{constructor(e,t,i){this._context=e,this._size=t,this._tileSize=i,this._objects=[],this._recentlyUsed=[],this._stamp=0}destruct(){for(let e of this._objects)e.texture.destroy(),e.fbo.destroy()}_createObject(e){let t=this._context.createFramebuffer(this._tileSize,this._tileSize,!0,!0),i=new I(this._context,{width:this._tileSize,height:this._tileSize,data:null},this._context.gl.RGBA);return i.bind(this._context.gl.LINEAR,this._context.gl.CLAMP_TO_EDGE),t.depthAttachment.set(this._context.createRenderbuffer(this._context.gl.DEPTH_STENCIL,this._tileSize,this._tileSize)),t.colorAttachment.set(i.texture),{id:e,fbo:t,texture:i,stamp:-1,inUse:!1}}getObjectForId(e){return this._objects[e]}useObject(e){e.inUse=!0,this._recentlyUsed=this._recentlyUsed.filter(t=>e.id!==t),this._recentlyUsed.push(e.id)}stampObject(e){e.stamp=++this._stamp}getOrCreateFreeObject(){for(let e of this._recentlyUsed)if(!this._objects[e].inUse)return this._objects[e];if(this._objects.length>=this._size)throw Error("No free RenderPool available, call freeAllObjects() required!");let e=this._createObject(this._objects.length);return this._objects.push(e),e}freeObject(e){e.inUse=!1}freeAllObjects(){for(let e of this._objects)this.freeObject(e)}isFull(){return!(this._objects.length!e.inUse)}}let rx={background:!0,fill:!0,line:!0,raster:!0,hillshade:!0};class rv{constructor(e,t){this.painter=e,this.terrain=t,this.pool=new ry(e.context,30,t.sourceCache.tileSize*t.qualityFactor)}destruct(){this.pool.destruct()}getTexture(e){return this.pool.getObjectForId(e.rtt[this._stacks.length-1].id).texture}prepareForRender(e,t){for(let i in this._stacks=[],this._prevType=null,this._rttTiles=[],this._renderableTiles=this.terrain.sourceCache.getRenderableTiles(),this._renderableLayerIds=e._order.filter(i=>!e._layers[i].isHidden(t)),this._coordsDescendingInv={},e.sourceCaches)for(let t of(this._coordsDescendingInv[i]={},e.sourceCaches[i].getVisibleCoordinates())){let e=this.terrain.sourceCache.getTerrainCoords(t);for(let t in e)this._coordsDescendingInv[i][t]||(this._coordsDescendingInv[i][t]=[]),this._coordsDescendingInv[i][t].push(e[t])}for(let t of(this._coordsDescendingInvStr={},e._order)){let i=e._layers[t],r=i.source;if(rx[i.type]&&!this._coordsDescendingInvStr[r])for(let e in this._coordsDescendingInvStr[r]={},this._coordsDescendingInv[r])this._coordsDescendingInvStr[r][e]=this._coordsDescendingInv[r][e].map(e=>e.key).sort().join()}for(let e of this._renderableTiles)for(let t in this._coordsDescendingInvStr){let i=this._coordsDescendingInvStr[t][e.tileID.key];i&&i!==e.rttCoords[t]&&(e.rtt=[])}}renderLayer(t){if(t.isHidden(this.painter.transform.zoom))return!1;let i=t.type,r=this.painter,a=this._renderableLayerIds[this._renderableLayerIds.length-1]===t.id;if(rx[i]&&(this._prevType&&rx[this._prevType]||this._stacks.push([]),this._prevType=i,this._stacks[this._stacks.length-1].push(t.id),!a))return!0;if(rx[this._prevType]||rx[i]&&a){this._prevType=i;let t=this._stacks.length-1,a=this._stacks[t]||[];for(let i of this._renderableTiles){if(this.pool.isFull()&&(im(this.painter,this.terrain,this._rttTiles),this._rttTiles=[],this.pool.freeAllObjects()),this._rttTiles.push(i),i.rtt[t]){let e=this.pool.getObjectForId(i.rtt[t].id);if(e.stamp===i.rtt[t].stamp){this.pool.useObject(e);continue}}let s=this.pool.getOrCreateFreeObject();this.pool.useObject(s),this.pool.stampObject(s),i.rtt[t]={id:s.id,stamp:s.stamp},r.context.bindFramebuffer.set(s.fbo.framebuffer),r.context.clear({color:e.aT.transparent,stencil:0}),r.currentStencilSource=void 0;for(let e=0;e{e.touchstart=e.dragStart,e.touchmoveWindow=e.dragMove,e.touchend=e.dragEnd},rS={showCompass:!0,showZoom:!0,visualizePitch:!1};class rT{constructor(t,i,r=!1){this.mousedown=t=>{this.startMouse(e.e({},t,{ctrlKey:!0,preventDefault:()=>t.preventDefault()}),o.mousePos(this.element,t)),o.addEventListener(window,"mousemove",this.mousemove),o.addEventListener(window,"mouseup",this.mouseup)},this.mousemove=e=>{this.moveMouse(e,o.mousePos(this.element,e))},this.mouseup=e=>{this.mouseRotate.dragEnd(e),this.mousePitch&&this.mousePitch.dragEnd(e),this.offTemp()},this.touchstart=e=>{1!==e.targetTouches.length?this.reset():(this._startPos=this._lastPos=o.touchPos(this.element,e.targetTouches)[0],this.startTouch(e,this._startPos),o.addEventListener(window,"touchmove",this.touchmove,{passive:!1}),o.addEventListener(window,"touchend",this.touchend))},this.touchmove=e=>{1!==e.targetTouches.length?this.reset():(this._lastPos=o.touchPos(this.element,e.targetTouches)[0],this.moveTouch(e,this._lastPos))},this.touchend=e=>{0===e.targetTouches.length&&this._startPos&&this._lastPos&&this._startPos.dist(this._lastPos){this.mouseRotate.reset(),this.mousePitch&&this.mousePitch.reset(),this.touchRotate.reset(),this.touchPitch&&this.touchPitch.reset(),delete this._startPos,delete this._lastPos,this.offTemp()},this._clickTolerance=10;let a=t.dragRotate._mouseRotate.getClickTolerance(),s=t.dragRotate._mousePitch.getClickTolerance();this.element=i,this.mouseRotate=iX({clickTolerance:a,enable:!0}),this.touchRotate=(({enable:e,clickTolerance:t,bearingDegreesPerPixelMoved:i=.8})=>new i$({clickTolerance:t,move:(e,t)=>({bearingDelta:(t.x-e.x)*i}),moveStateManager:new iZ,enable:e,assignEvents:rw}))({clickTolerance:a,enable:!0}),this.map=t,r&&(this.mousePitch=iW({clickTolerance:s,enable:!0}),this.touchPitch=(({enable:e,clickTolerance:t,pitchDegreesPerPixelMoved:i=-.5})=>new i$({clickTolerance:t,move:(e,t)=>({pitchDelta:(t.y-e.y)*i}),moveStateManager:new iZ,enable:e,assignEvents:rw}))({clickTolerance:s,enable:!0})),o.addEventListener(i,"mousedown",this.mousedown),o.addEventListener(i,"touchstart",this.touchstart,{passive:!1}),o.addEventListener(i,"touchcancel",this.reset)}startMouse(e,t){this.mouseRotate.dragStart(e,t),this.mousePitch&&this.mousePitch.dragStart(e,t),o.disableDrag()}startTouch(e,t){this.touchRotate.dragStart(e,t),this.touchPitch&&this.touchPitch.dragStart(e,t),o.disableDrag()}moveMouse(e,t){let i=this.map,{bearingDelta:r}=this.mouseRotate.dragMove(e,t)||{};if(r&&i.setBearing(i.getBearing()+r),this.mousePitch){let{pitchDelta:r}=this.mousePitch.dragMove(e,t)||{};r&&i.setPitch(i.getPitch()+r)}}moveTouch(e,t){let i=this.map,{bearingDelta:r}=this.touchRotate.dragMove(e,t)||{};if(r&&i.setBearing(i.getBearing()+r),this.touchPitch){let{pitchDelta:r}=this.touchPitch.dragMove(e,t)||{};r&&i.setPitch(i.getPitch()+r)}}off(){let e=this.element;o.removeEventListener(e,"mousedown",this.mousedown),o.removeEventListener(e,"touchstart",this.touchstart,{passive:!1}),o.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),o.removeEventListener(window,"touchend",this.touchend),o.removeEventListener(e,"touchcancel",this.reset),this.offTemp()}offTemp(){o.enableDrag(),o.removeEventListener(window,"mousemove",this.mousemove),o.removeEventListener(window,"mouseup",this.mouseup),o.removeEventListener(window,"touchmove",this.touchmove,{passive:!1}),o.removeEventListener(window,"touchend",this.touchend)}}function rI(t,i,r){if(t=new e.L(t.lng,t.lat),i){let a=new e.L(t.lng-360,t.lat),s=new e.L(t.lng+360,t.lat),n=r.locationPoint(t).distSqr(i);r.locationPoint(a).distSqr(i)180;){let e=r.locationPoint(t);if(e.x>=0&&e.y>=0&&e.x<=r.width&&e.y<=r.height)break;t.lng>r.center.lng?t.lng-=360:t.lng+=360}return t}let rA={center:"translate(-50%,-50%)",top:"translate(-50%,0)","top-left":"translate(0,0)","top-right":"translate(-100%,0)",bottom:"translate(-50%,-100%)","bottom-left":"translate(0,-100%)","bottom-right":"translate(-100%,-100%)",left:"translate(0,-50%)",right:"translate(-100%,-50%)"};function rM(e,t,i){let r=e.classList;for(let e in rA)r.remove(`maplibregl-${i}-anchor-${e}`);r.add(`maplibregl-${i}-anchor-${t}`)}class rE extends e.E{constructor(t){if(super(),this._onKeyPress=e=>{let t=e.code,i=e.charCode||e.keyCode;"Space"!==t&&"Enter"!==t&&32!==i&&13!==i||this.togglePopup()},this._onMapClick=e=>{let t=e.originalEvent.target,i=this._element;this._popup&&(t===i||i.contains(t))&&this.togglePopup()},this._update=e=>{if(!this._map)return;let t=this._map.loaded()&&!this._map.isMoving();"terrain"!==(null==e?void 0:e.type)&&("render"!==(null==e?void 0:e.type)||t)||this._map.once("render",this._update),this._map.transform.renderWorldCopies&&(this._lngLat=rI(this._lngLat,this._pos,this._map.transform)),this._pos=this._map.project(this._lngLat)._add(this._offset);let i="";"viewport"===this._rotationAlignment||"auto"===this._rotationAlignment?i=`rotateZ(${this._rotation}deg)`:"map"===this._rotationAlignment&&(i=`rotateZ(${this._rotation-this._map.getBearing()}deg)`);let r="";"viewport"===this._pitchAlignment||"auto"===this._pitchAlignment?r="rotateX(0deg)":"map"===this._pitchAlignment&&(r=`rotateX(${this._map.getPitch()}deg)`),e&&"moveend"!==e.type||(this._pos=this._pos.round()),o.setTransform(this._element,`${rA[this._anchor]} translate(${this._pos.x}px, ${this._pos.y}px) ${r} ${i}`),this._map.terrain&&!this._opacityTimeout&&(this._opacityTimeout=setTimeout(()=>{let e=this._map.unproject(this._pos),t=40075016.686*Math.abs(Math.cos(this._lngLat.lat*Math.PI/180))/Math.pow(2,this._map.transform.tileZoom+8);this._element.style.opacity=e.distanceTo(this._lngLat)>20*t?"0.2":"1.0",this._opacityTimeout=null},100))},this._onMove=t=>{if(!this._isDragging){let e=this._clickTolerance||this._map._clickTolerance;this._isDragging=t.point.dist(this._pointerdownPos)>=e}this._isDragging&&(this._pos=t.point.sub(this._positionDelta),this._lngLat=this._map.unproject(this._pos),this.setLngLat(this._lngLat),this._element.style.pointerEvents="none","pending"===this._state&&(this._state="active",this.fire(new e.k("dragstart"))),this.fire(new e.k("drag")))},this._onUp=()=>{this._element.style.pointerEvents="auto",this._positionDelta=null,this._pointerdownPos=null,this._isDragging=!1,this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),"active"===this._state&&this.fire(new e.k("dragend")),this._state="inactive"},this._addDragHandler=e=>{this._element.contains(e.originalEvent.target)&&(e.preventDefault(),this._positionDelta=e.point.sub(this._pos).add(this._offset),this._pointerdownPos=e.point,this._state="pending",this._map.on("mousemove",this._onMove),this._map.on("touchmove",this._onMove),this._map.once("mouseup",this._onUp),this._map.once("touchend",this._onUp))},this._anchor=t&&t.anchor||"center",this._color=t&&t.color||"#3FB1CE",this._scale=t&&t.scale||1,this._draggable=t&&t.draggable||!1,this._clickTolerance=t&&t.clickTolerance||0,this._isDragging=!1,this._state="inactive",this._rotation=t&&t.rotation||0,this._rotationAlignment=t&&t.rotationAlignment||"auto",this._pitchAlignment=t&&t.pitchAlignment&&"auto"!==t.pitchAlignment?t.pitchAlignment:this._rotationAlignment,t&&t.element)this._element=t.element,this._offset=e.P.convert(t&&t.offset||[0,0]);else{this._defaultMarker=!0,this._element=o.create("div"),this._element.setAttribute("aria-label","Map marker");let i=o.createNS("http://www.w3.org/2000/svg","svg");i.setAttributeNS(null,"display","block"),i.setAttributeNS(null,"height","41px"),i.setAttributeNS(null,"width","27px"),i.setAttributeNS(null,"viewBox","0 0 27 41");let r=o.createNS("http://www.w3.org/2000/svg","g");r.setAttributeNS(null,"stroke","none"),r.setAttributeNS(null,"stroke-width","1"),r.setAttributeNS(null,"fill","none"),r.setAttributeNS(null,"fill-rule","evenodd");let a=o.createNS("http://www.w3.org/2000/svg","g");a.setAttributeNS(null,"fill-rule","nonzero");let s=o.createNS("http://www.w3.org/2000/svg","g");for(let e of(s.setAttributeNS(null,"transform","translate(3.0, 29.0)"),s.setAttributeNS(null,"fill","#000000"),[{rx:"10.5",ry:"5.25002273"},{rx:"10.5",ry:"5.25002273"},{rx:"9.5",ry:"4.77275007"},{rx:"8.5",ry:"4.29549936"},{rx:"7.5",ry:"3.81822308"},{rx:"6.5",ry:"3.34094679"},{rx:"5.5",ry:"2.86367051"},{rx:"4.5",ry:"2.38636864"}])){let t=o.createNS("http://www.w3.org/2000/svg","ellipse");t.setAttributeNS(null,"opacity","0.04"),t.setAttributeNS(null,"cx","10.5"),t.setAttributeNS(null,"cy","5.80029008"),t.setAttributeNS(null,"rx",e.rx),t.setAttributeNS(null,"ry",e.ry),s.appendChild(t)}let n=o.createNS("http://www.w3.org/2000/svg","g");n.setAttributeNS(null,"fill",this._color);let l=o.createNS("http://www.w3.org/2000/svg","path");l.setAttributeNS(null,"d","M27,13.5 C27,19.074644 20.250001,27.000002 14.75,34.500002 C14.016665,35.500004 12.983335,35.500004 12.25,34.500002 C6.7499993,27.000002 0,19.222562 0,13.5 C0,6.0441559 6.0441559,0 13.5,0 C20.955844,0 27,6.0441559 27,13.5 Z"),n.appendChild(l);let h=o.createNS("http://www.w3.org/2000/svg","g");h.setAttributeNS(null,"opacity","0.25"),h.setAttributeNS(null,"fill","#000000");let u=o.createNS("http://www.w3.org/2000/svg","path");u.setAttributeNS(null,"d","M13.5,0 C6.0441559,0 0,6.0441559 0,13.5 C0,19.222562 6.7499993,27 12.25,34.5 C13,35.522727 14.016664,35.500004 14.75,34.5 C20.250001,27 27,19.074644 27,13.5 C27,6.0441559 20.955844,0 13.5,0 Z M13.5,1 C20.415404,1 26,6.584596 26,13.5 C26,15.898657 24.495584,19.181431 22.220703,22.738281 C19.945823,26.295132 16.705119,30.142167 13.943359,33.908203 C13.743445,34.180814 13.612715,34.322738 13.5,34.441406 C13.387285,34.322738 13.256555,34.180814 13.056641,33.908203 C10.284481,30.127985 7.4148684,26.314159 5.015625,22.773438 C2.6163816,19.232715 1,15.953538 1,13.5 C1,6.584596 6.584596,1 13.5,1 Z"),h.appendChild(u);let c=o.createNS("http://www.w3.org/2000/svg","g");c.setAttributeNS(null,"transform","translate(6.0, 7.0)"),c.setAttributeNS(null,"fill","#FFFFFF");let d=o.createNS("http://www.w3.org/2000/svg","g");d.setAttributeNS(null,"transform","translate(8.0, 8.0)");let p=o.createNS("http://www.w3.org/2000/svg","circle");p.setAttributeNS(null,"fill","#000000"),p.setAttributeNS(null,"opacity","0.25"),p.setAttributeNS(null,"cx","5.5"),p.setAttributeNS(null,"cy","5.5"),p.setAttributeNS(null,"r","5.4999962");let f=o.createNS("http://www.w3.org/2000/svg","circle");f.setAttributeNS(null,"fill","#FFFFFF"),f.setAttributeNS(null,"cx","5.5"),f.setAttributeNS(null,"cy","5.5"),f.setAttributeNS(null,"r","5.4999962"),d.appendChild(p),d.appendChild(f),a.appendChild(s),a.appendChild(n),a.appendChild(h),a.appendChild(c),a.appendChild(d),i.appendChild(a),i.setAttributeNS(null,"height",41*this._scale+"px"),i.setAttributeNS(null,"width",27*this._scale+"px"),this._element.appendChild(i),this._offset=e.P.convert(t&&t.offset||[0,-14])}if(this._element.classList.add("maplibregl-marker"),this._element.addEventListener("dragstart",e=>{e.preventDefault()}),this._element.addEventListener("mousedown",e=>{e.preventDefault()}),rM(this._element,this._anchor,"marker"),t&&t.className)for(let e of t.className.split(" "))this._element.classList.add(e);this._popup=null}addTo(e){return this.remove(),this._map=e,e.getCanvasContainer().appendChild(this._element),e.on("move",this._update),e.on("moveend",this._update),e.on("terrain",this._update),this.setDraggable(this._draggable),this._update(),this._map.on("click",this._onMapClick),this}remove(){return this._opacityTimeout&&(clearTimeout(this._opacityTimeout),delete this._opacityTimeout),this._map&&(this._map.off("click",this._onMapClick),this._map.off("move",this._update),this._map.off("moveend",this._update),this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler),this._map.off("mouseup",this._onUp),this._map.off("touchend",this._onUp),this._map.off("mousemove",this._onMove),this._map.off("touchmove",this._onMove),delete this._map),o.remove(this._element),this._popup&&this._popup.remove(),this}getLngLat(){return this._lngLat}setLngLat(t){return this._lngLat=e.L.convert(t),this._pos=null,this._popup&&this._popup.setLngLat(this._lngLat),this._update(),this}getElement(){return this._element}setPopup(e){if(this._popup&&(this._popup.remove(),this._popup=null,this._element.removeEventListener("keypress",this._onKeyPress),this._originalTabIndex||this._element.removeAttribute("tabindex")),e){if(!("offset"in e.options)){let t=Math.abs(13.5)/Math.SQRT2;e.options.offset=this._defaultMarker?{top:[0,0],"top-left":[0,0],"top-right":[0,0],bottom:[0,-38.1],"bottom-left":[t,-1*(24.6+t)],"bottom-right":[-t,-1*(24.6+t)],left:[13.5,-24.6],right:[-13.5,-24.6]}:this._offset}this._popup=e,this._lngLat&&this._popup.setLngLat(this._lngLat),this._originalTabIndex=this._element.getAttribute("tabindex"),this._originalTabIndex||this._element.setAttribute("tabindex","0"),this._element.addEventListener("keypress",this._onKeyPress)}return this}getPopup(){return this._popup}togglePopup(){let e=this._popup;return e&&(e.isOpen()?e.remove():e.addTo(this._map)),this}getOffset(){return this._offset}setOffset(t){return this._offset=e.P.convert(t),this._update(),this}addClassName(e){this._element.classList.add(e)}removeClassName(e){this._element.classList.remove(e)}toggleClassName(e){return this._element.classList.toggle(e)}setDraggable(e){return this._draggable=!!e,this._map&&(e?(this._map.on("mousedown",this._addDragHandler),this._map.on("touchstart",this._addDragHandler)):(this._map.off("mousedown",this._addDragHandler),this._map.off("touchstart",this._addDragHandler))),this}isDraggable(){return this._draggable}setRotation(e){return this._rotation=e||0,this._update(),this}getRotation(){return this._rotation}setRotationAlignment(e){return this._rotationAlignment=e||"auto",this._update(),this}getRotationAlignment(){return this._rotationAlignment}setPitchAlignment(e){return this._pitchAlignment=e&&"auto"!==e?e:this._rotationAlignment,this._update(),this}getPitchAlignment(){return this._pitchAlignment}}let rk={positionOptions:{enableHighAccuracy:!1,maximumAge:0,timeout:6e3},fitBoundsOptions:{maxZoom:15},trackUserLocation:!1,showAccuracyCircle:!0,showUserLocation:!0},rC=0,rP=!1,rz={maxWidth:100,unit:"metric"};function rD(e,t,i){let r=i&&i.maxWidth||100,a=e._container.clientHeight/2,s=e.unproject([0,a]),n=e.unproject([r,a]),o=s.distanceTo(n);if(i&&"imperial"===i.unit){let i=3.2808*o;i>5280?rL(t,r,i/5280,e._getUIString("ScaleControl.Miles")):rL(t,r,i,e._getUIString("ScaleControl.Feet"))}else i&&"nautical"===i.unit?rL(t,r,o/1852,e._getUIString("ScaleControl.NauticalMiles")):o>=1e3?rL(t,r,o/1e3,e._getUIString("ScaleControl.Kilometers")):rL(t,r,o,e._getUIString("ScaleControl.Meters"))}function rL(e,t,i,r){let a=function(e){let t=Math.pow(10,`${Math.floor(e)}`.length-1),i=e/t;return t*(i=i>=10?10:i>=5?5:i>=3?3:i>=2?2:i>=1?1:function(e){let t=Math.pow(10,Math.ceil(-Math.log(e)/Math.LN10));return Math.round(e*t)/t}(i))}(i);e.style.width=a/i*t+"px",e.innerHTML=`${a} ${r}`}let rR={closeButton:!0,closeOnClick:!0,focusAfterOpen:!0,className:"",maxWidth:"240px"};class rB{static get version(){return n}static get workerCount(){return et.workerCount}static set workerCount(e){et.workerCount=e}static get maxParallelImageRequests(){return e.c.MAX_PARALLEL_IMAGE_REQUESTS}static set maxParallelImageRequests(t){e.c.MAX_PARALLEL_IMAGE_REQUESTS=t}static get workerUrl(){return e.c.WORKER_URL}static set workerUrl(t){e.c.WORKER_URL=t}static addProtocol(t,i){e.c.REGISTERED_PROTOCOLS[t]=i}static removeProtocol(t){delete e.c.REGISTERED_PROTOCOLS[t]}}return rB.Map=class extends ru{constructor(t){if(e.bg.mark(e.bh.create),null!=(t=e.e({},rb,t)).minZoom&&null!=t.maxZoom&&t.minZoom>t.maxZoom)throw Error("maxZoom must be greater than or equal to minZoom");if(null!=t.minPitch&&null!=t.maxPitch&&t.minPitch>t.maxPitch)throw Error("maxPitch must be greater than or equal to minPitch");if(null!=t.minPitch&&t.minPitch<0)throw Error("minPitch must be greater than or equal to 0");if(null!=t.maxPitch&&t.maxPitch>85)throw Error("maxPitch must be less than or equal to 85");if(super(new iv(t.minZoom,t.maxZoom,t.minPitch,t.maxPitch,t.renderWorldCopies),{bearingSnap:t.bearingSnap}),this._cooperativeGesturesOnWheel=e=>{this._onCooperativeGesture(e,e[this._metaKey],1)},this._contextLost=t=>{t.preventDefault(),this._frame&&(this._frame.cancel(),this._frame=null),this.fire(new e.k("webglcontextlost",{originalEvent:t}))},this._contextRestored=t=>{this._setupPainter(),this.resize(),this._update(),this.fire(new e.k("webglcontextrestored",{originalEvent:t}))},this._onMapScroll=e=>{if(e.target===this._container)return this._container.scrollTop=0,this._container.scrollLeft=0,!1},this._onWindowOnline=()=>{this._update()},this._interactive=t.interactive,this._cooperativeGestures=t.cooperativeGestures,this._metaKey=0===navigator.platform.indexOf("Mac")?"metaKey":"ctrlKey",this._maxTileCacheSize=t.maxTileCacheSize,this._maxTileCacheZoomLevels=t.maxTileCacheZoomLevels,this._failIfMajorPerformanceCaveat=t.failIfMajorPerformanceCaveat,this._preserveDrawingBuffer=t.preserveDrawingBuffer,this._antialias=t.antialias,this._trackResize=t.trackResize,this._bearingSnap=t.bearingSnap,this._refreshExpiredTiles=t.refreshExpiredTiles,this._fadeDuration=t.fadeDuration,this._crossSourceCollisions=t.crossSourceCollisions,this._crossFadingFactor=1,this._collectResourceTiming=t.collectResourceTiming,this._renderTaskQueue=new rp,this._controls=[],this._mapId=e.a2(),this._locale=e.e({},rf,t.locale),this._clickTolerance=t.clickTolerance,this._overridePixelRatio=t.pixelRatio,this._maxCanvasSize=t.maxCanvasSize,this.transformCameraUpdate=t.transformCameraUpdate,this._imageQueueHandle=y.addThrottleControl(()=>this.isMoving()),this._requestManager=new f(t.transformRequest),"string"==typeof t.container){if(this._container=document.getElementById(t.container),!this._container)throw Error(`Container '${t.container}' not found.`)}else{if(!(t.container instanceof HTMLElement))throw Error("Invalid type: 'container' must be a String or HTMLElement.");this._container=t.container}if(t.maxBounds&&this.setMaxBounds(t.maxBounds),this._setupContainer(),this._setupPainter(),this.on("move",()=>this._update(!1)),this.on("moveend",()=>this._update(!1)),this.on("zoom",()=>this._update(!0)),this.on("terrain",()=>{this.painter.terrainFacilitator.dirty=!0,this._update(!0)}),this.once("idle",()=>{this._idleTriggered=!0}),"undefined"!=typeof window){addEventListener("online",this._onWindowOnline,!1);let e=!1,t=ib(e=>{this._trackResize&&!this._removed&&this.resize(e)._update()},50);this._resizeObserver=new ResizeObserver(i=>{e?t(i):e=!0}),this._resizeObserver.observe(this._container)}this.handlers=new rh(this,t),this._cooperativeGestures&&this._setupCooperativeGestures(),this._hash=t.hash&&new iw("string"==typeof t.hash&&t.hash||void 0).addTo(this),this._hash&&this._hash._onHashChange()||(this.jumpTo({center:t.center,zoom:t.zoom,bearing:t.bearing,pitch:t.pitch}),t.bounds&&(this.resize(),this.fitBounds(t.bounds,e.e({},t.fitBoundsOptions,{duration:0})))),this.resize(),this._localIdeographFontFamily=t.localIdeographFontFamily,this._validateStyle=t.validateStyle,t.style&&this.setStyle(t.style,{localIdeographFontFamily:t.localIdeographFontFamily}),t.attributionControl&&this.addControl(new rc({customAttribution:t.customAttribution})),t.maplibreLogo&&this.addControl(new rd,t.logoPosition),this.on("style.load",()=>{this.transform.unmodified&&this.jumpTo(this.style.stylesheet)}),this.on("data",t=>{this._update("style"===t.dataType),this.fire(new e.k(`${t.dataType}data`,t))}),this.on("dataloading",t=>{this.fire(new e.k(`${t.dataType}dataloading`,t))}),this.on("dataabort",t=>{this.fire(new e.k("sourcedataabort",t))})}_getMapId(){return this._mapId}addControl(t,i){if(void 0===i&&(i=t.getDefaultPosition?t.getDefaultPosition():"top-right"),!t||!t.onAdd)return this.fire(new e.j(Error("Invalid argument to map.addControl(). Argument must be a control with onAdd and onRemove methods.")));let r=t.onAdd(this);this._controls.push(t);let a=this._controlPositions[i];return -1!==i.indexOf("bottom")?a.insertBefore(r,a.firstChild):a.appendChild(r),this}removeControl(t){if(!t||!t.onRemove)return this.fire(new e.j(Error("Invalid argument to map.removeControl(). Argument must be a control with onAdd and onRemove methods.")));let i=this._controls.indexOf(t);return i>-1&&this._controls.splice(i,1),t.onRemove(this),this}hasControl(e){return this._controls.indexOf(e)>-1}calculateCameraOptionsFromTo(e,t,i,r){return null==r&&this.terrain&&(r=this.terrain.getElevationForLngLatZoom(i,this.transform.tileZoom)),super.calculateCameraOptionsFromTo(e,t,i,r)}resize(t){var i;let r=this._containerDimensions(),a=r[0],s=r[1],n=this._getClampedPixelRatio(a,s);if(this._resizeCanvas(a,s,n),this.painter.resize(a,s,n),this.painter.overLimit()){let e=this.painter.context.gl;this._maxCanvasSize=[e.drawingBufferWidth,e.drawingBufferHeight];let t=this._getClampedPixelRatio(a,s);this._resizeCanvas(a,s,t),this.painter.resize(a,s,t)}this.transform.resize(a,s),null==(i=this._requestedCameraState)||i.resize(a,s);let o=!this._moving;return o&&(this.stop(),this.fire(new e.k("movestart",t)).fire(new e.k("move",t))),this.fire(new e.k("resize",t)),o&&this.fire(new e.k("moveend",t)),this}_getClampedPixelRatio(e,t){let{0:i,1:r}=this._maxCanvasSize,a=this.getPixelRatio(),s=e*a,n=t*a;return Math.min(s>i?i/s:1,n>r?r/n:1)*a}getPixelRatio(){var e;return null!=(e=this._overridePixelRatio)?e:devicePixelRatio}setPixelRatio(e){this._overridePixelRatio=e,this.resize()}getBounds(){return this.transform.getBounds()}getMaxBounds(){return this.transform.getMaxBounds()}setMaxBounds(e){return this.transform.setMaxBounds(R.convert(e)),this._update()}setMinZoom(e){if((e=null==e?-2:e)>=-2&&e<=this.transform.maxZoom)return this.transform.minZoom=e,this._update(),this.getZoom()=this.transform.minZoom)return this.transform.maxZoom=e,this._update(),this.getZoom()>e&&this.setZoom(e),this;throw Error("maxZoom must be greater than the current minZoom")}getMaxZoom(){return this.transform.maxZoom}setMinPitch(e){if((e=null==e?0:e)<0)throw Error("minPitch must be greater than or equal to 0");if(e>=0&&e<=this.transform.maxPitch)return this.transform.minPitch=e,this._update(),this.getPitch()85)throw Error("maxPitch must be less than or equal to 85");if(e>=this.transform.minPitch)return this.transform.maxPitch=e,this._update(),this.getPitch()>e&&this.setPitch(e),this;throw Error("maxPitch must be greater than the current minPitch")}getMaxPitch(){return this.transform.maxPitch}getRenderWorldCopies(){return this.transform.renderWorldCopies}setRenderWorldCopies(e){return this.transform.renderWorldCopies=e,this._update()}getCooperativeGestures(){return this._cooperativeGestures}setCooperativeGestures(e){return this._cooperativeGestures=e,this._cooperativeGestures?this._setupCooperativeGestures():this._destroyCooperativeGestures(),this}project(t){return this.transform.locationPoint(e.L.convert(t),this.style&&this.terrain)}unproject(t){return this.transform.pointLocation(e.P.convert(t),this.terrain)}isMoving(){var e;return this._moving||(null==(e=this.handlers)?void 0:e.isMoving())}isZooming(){var e;return this._zooming||(null==(e=this.handlers)?void 0:e.isZooming())}isRotating(){var e;return this._rotating||(null==(e=this.handlers)?void 0:e.isRotating())}_createDelegatedListener(e,t,i){if("mouseenter"===e||"mouseover"===e){let r=!1;return{layer:t,listener:i,delegates:{mousemove:a=>{let s=this.getLayer(t)?this.queryRenderedFeatures(a.point,{layers:[t]}):[];s.length?r||(r=!0,i.call(this,new iP(e,this,a.originalEvent,{features:s}))):r=!1},mouseout:()=>{r=!1}}}}if("mouseleave"===e||"mouseout"===e){let r=!1;return{layer:t,listener:i,delegates:{mousemove:a=>{(this.getLayer(t)?this.queryRenderedFeatures(a.point,{layers:[t]}):[]).length?r=!0:r&&(r=!1,i.call(this,new iP(e,this,a.originalEvent)))},mouseout:t=>{r&&(r=!1,i.call(this,new iP(e,this,t.originalEvent)))}}}}return{layer:t,listener:i,delegates:{[e]:e=>{let r=this.getLayer(t)?this.queryRenderedFeatures(e.point,{layers:[t]}):[];r.length&&(e.features=r,i.call(this,e),delete e.features)}}}}on(e,t,i){if(void 0===i)return super.on(e,t);let r=this._createDelegatedListener(e,t,i);for(let t in this._delegatedListeners=this._delegatedListeners||{},this._delegatedListeners[e]=this._delegatedListeners[e]||[],this._delegatedListeners[e].push(r),r.delegates)this.on(t,r.delegates[t]);return this}once(e,t,i){if(void 0===i)return super.once(e,t);let r=this._createDelegatedListener(e,t,i);for(let e in r.delegates)this.once(e,r.delegates[e]);return this}off(e,t,i){return void 0===i?super.off(e,t):(this._delegatedListeners&&this._delegatedListeners[e]&&(r=>{let a=this._delegatedListeners[e];for(let e=0;ethis._updateStyle(e,t));let i=this.style&&t.transformStyle?this.style.serialize():void 0;return this.style&&(this.style.setEventedParent(null),this.style._remove(!e)),e?(this.style=new eG(this,t||{}),this.style.setEventedParent(this,{style:this.style}),"string"==typeof e?this.style.loadURL(e,t,i):this.style.loadJSON(e,t,i)):delete this.style,this}_lazyInitEmptyStyle(){this.style||(this.style=new eG(this,{}),this.style.setEventedParent(this,{style:this.style}),this.style.loadEmpty())}_diffStyle(t,i){if("string"==typeof t){let r=this._requestManager.transformRequest(t,x.Style);e.f(r,(t,r)=>{t?this.fire(new e.j(t)):r&&this._updateDiff(r,i)})}else"object"==typeof t&&this._updateDiff(t,i)}_updateDiff(t,i){try{this.style.setState(t,i)&&this._update(!0)}catch(r){e.w(`Unable to perform style diff: ${r.message||r.error||r}. Rebuilding the style from scratch.`),this._updateStyle(t,i)}}getStyle(){if(this.style)return this.style.serialize()}isStyleLoaded(){return this.style?this.style.loaded():e.w("There is no style added to the map.")}addSource(e,t){return this._lazyInitEmptyStyle(),this.style.addSource(e,t),this._update(!0)}isSourceLoaded(t){let i=this.style&&this.style.sourceCaches[t];if(void 0!==i)return i.loaded();this.fire(new e.j(Error(`There is no source with ID '${t}'`)))}setTerrain(t){if(this.style._checkLoaded(),this._terrainDataCallback&&this.style.off("data",this._terrainDataCallback),t){let i=this.style.sourceCaches[t.source];if(!i)throw Error(`cannot load terrain, because there exists no source with ID: ${t.source}`);for(let i in this.style._layers){let r=this.style._layers[i];"hillshade"===r.type&&r.source===t.source&&e.w("You are using the same source for a hillshade layer and for 3D terrain. Please consider using two separate sources to improve rendering quality.")}this.terrain=new rg(this.painter,i,t),this.painter.renderToTexture=new rv(this.painter,this.terrain),this.transform._minEleveationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._terrainDataCallback=e=>{"style"===e.dataType?this.terrain.sourceCache.freeRtt():"source"===e.dataType&&e.tile&&(e.sourceId!==t.source||this._elevationFreeze||(this.transform._minEleveationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom)),this.terrain.sourceCache.freeRtt(e.tile.tileID))},this.style.on("data",this._terrainDataCallback)}else this.terrain&&this.terrain.sourceCache.destruct(),this.terrain=null,this.painter.renderToTexture&&this.painter.renderToTexture.destruct(),this.painter.renderToTexture=null,this.transform._minEleveationForCurrentTile=0,this.transform.elevation=0;return this.fire(new e.k("terrain",{terrain:t})),this}getTerrain(){var e,t;return null!=(t=null==(e=this.terrain)?void 0:e.options)?t:null}areTilesLoaded(){let e=this.style&&this.style.sourceCaches;for(let t in e){let i=e[t]._tiles;for(let e in i){let t=i[e];if("loaded"!==t.state&&"errored"!==t.state)return!1}}return!0}addSourceType(e,t,i){return this._lazyInitEmptyStyle(),this.style.addSourceType(e,t,i)}removeSource(e){return this.style.removeSource(e),this._update(!0)}getSource(e){return this.style.getSource(e)}addImage(t,i,r={}){let{pixelRatio:a=1,sdf:s=!1,stretchX:n,stretchY:o,content:l}=r;if(this._lazyInitEmptyStyle(),!(i instanceof HTMLImageElement||e.a(i))){if(void 0===i.width||void 0===i.height)return this.fire(new e.j(Error("Invalid arguments to map.addImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));{let{width:r,height:h,data:u}=i;return this.style.addImage(t,{data:new e.R({width:r,height:h},new Uint8Array(u)),pixelRatio:a,stretchX:n,stretchY:o,content:l,sdf:s,version:0,userImage:i}),i.onAdd&&i.onAdd(this,t),this}}{let{width:r,height:h,data:u}=e.h.getImageData(i);this.style.addImage(t,{data:new e.R({width:r,height:h},u),pixelRatio:a,stretchX:n,stretchY:o,content:l,sdf:s,version:0})}}updateImage(t,i){let r=this.style.getImage(t);if(!r)return this.fire(new e.j(Error("The map has no image with that id. If you are adding a new image use `map.addImage(...)` instead.")));let{width:a,height:s,data:n}=i instanceof HTMLImageElement||e.a(i)?e.h.getImageData(i):i;if(void 0===a||void 0===s)return this.fire(new e.j(Error("Invalid arguments to map.updateImage(). The second argument must be an `HTMLImageElement`, `ImageData`, `ImageBitmap`, or object with `width`, `height`, and `data` properties with the same format as `ImageData`")));if(a!==r.data.width||s!==r.data.height)return this.fire(new e.j(Error("The width and height of the updated image must be that same as the previous version of the image")));let o=!(i instanceof HTMLImageElement||e.a(i));return r.data.replace(n,o),this.style.updateImage(t,r),this}getImage(e){return this.style.getImage(e)}hasImage(t){return t?!!this.style.getImage(t):(this.fire(new e.j(Error("Missing required image id"))),!1)}removeImage(e){this.style.removeImage(e)}loadImage(e,t){y.getImage(this._requestManager.transformRequest(e,x.Image),t)}listImages(){return this.style.listImages()}addLayer(e,t){return this._lazyInitEmptyStyle(),this.style.addLayer(e,t),this._update(!0)}moveLayer(e,t){return this.style.moveLayer(e,t),this._update(!0)}removeLayer(e){return this.style.removeLayer(e),this._update(!0)}getLayer(e){return this.style.getLayer(e)}getLayersOrder(){return this.style.getLayersOrder()}setLayerZoomRange(e,t,i){return this.style.setLayerZoomRange(e,t,i),this._update(!0)}setFilter(e,t,i={}){return this.style.setFilter(e,t,i),this._update(!0)}getFilter(e){return this.style.getFilter(e)}setPaintProperty(e,t,i,r={}){return this.style.setPaintProperty(e,t,i,r),this._update(!0)}getPaintProperty(e,t){return this.style.getPaintProperty(e,t)}setLayoutProperty(e,t,i,r={}){return this.style.setLayoutProperty(e,t,i,r),this._update(!0)}getLayoutProperty(e,t){return this.style.getLayoutProperty(e,t)}setGlyphs(e,t={}){return this._lazyInitEmptyStyle(),this.style.setGlyphs(e,t),this._update(!0)}getGlyphs(){return this.style.getGlyphsUrl()}addSprite(e,t,i={}){return this._lazyInitEmptyStyle(),this.style.addSprite(e,t,i,e=>{e||this._update(!0)}),this}removeSprite(e){return this._lazyInitEmptyStyle(),this.style.removeSprite(e),this._update(!0)}getSprite(){return this.style.getSprite()}setSprite(e,t={}){return this._lazyInitEmptyStyle(),this.style.setSprite(e,t,e=>{e||this._update(!0)}),this}setLight(e,t={}){return this._lazyInitEmptyStyle(),this.style.setLight(e,t),this._update(!0)}getLight(){return this.style.getLight()}setFeatureState(e,t){return this.style.setFeatureState(e,t),this._update()}removeFeatureState(e,t){return this.style.removeFeatureState(e,t),this._update()}getFeatureState(e){return this.style.getFeatureState(e)}getContainer(){return this._container}getCanvasContainer(){return this._canvasContainer}getCanvas(){return this._canvas}_containerDimensions(){let e=0,t=0;return this._container&&(e=this._container.clientWidth||400,t=this._container.clientHeight||300),[e,t]}_setupContainer(){let e=this._container;e.classList.add("maplibregl-map");let t=this._canvasContainer=o.create("div","maplibregl-canvas-container",e);this._interactive&&t.classList.add("maplibregl-interactive"),this._canvas=o.create("canvas","maplibregl-canvas",t),this._canvas.addEventListener("webglcontextlost",this._contextLost,!1),this._canvas.addEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.setAttribute("tabindex","0"),this._canvas.setAttribute("aria-label","Map"),this._canvas.setAttribute("role","region");let i=this._containerDimensions(),r=this._getClampedPixelRatio(i[0],i[1]);this._resizeCanvas(i[0],i[1],r);let a=this._controlContainer=o.create("div","maplibregl-control-container",e),s=this._controlPositions={};["top-left","top-right","bottom-left","bottom-right"].forEach(e=>{s[e]=o.create("div",`maplibregl-ctrl-${e} `,a)}),this._container.addEventListener("scroll",this._onMapScroll,!1)}_setupCooperativeGestures(){this._cooperativeGesturesScreen=o.create("div","maplibregl-cooperative-gesture-screen",this._container);let e="boolean"!=typeof this._cooperativeGestures&&this._cooperativeGestures.windowsHelpText?this._cooperativeGestures.windowsHelpText:"Use Ctrl + scroll to zoom the map";0===navigator.platform.indexOf("Mac")&&(e="boolean"!=typeof this._cooperativeGestures&&this._cooperativeGestures.macHelpText?this._cooperativeGestures.macHelpText:"Use ⌘ + scroll to zoom the map"),this._cooperativeGesturesScreen.innerHTML=` -
${e}
-
${"boolean"!=typeof this._cooperativeGestures&&this._cooperativeGestures.mobileHelpText?this._cooperativeGestures.mobileHelpText:"Use two fingers to move the map"}
- `,this._cooperativeGesturesScreen.setAttribute("aria-hidden","true"),this._canvasContainer.addEventListener("wheel",this._cooperativeGesturesOnWheel,!1),this._canvasContainer.classList.add("maplibregl-cooperative-gestures")}_destroyCooperativeGestures(){o.remove(this._cooperativeGesturesScreen),this._canvasContainer.removeEventListener("wheel",this._cooperativeGesturesOnWheel,!1),this._canvasContainer.classList.remove("maplibregl-cooperative-gestures")}_resizeCanvas(e,t,i){this._canvas.width=Math.floor(i*e),this._canvas.height=Math.floor(i*t),this._canvas.style.width=`${e}px`,this._canvas.style.height=`${t}px`}_setupPainter(){let e={alpha:!0,stencil:!0,depth:!0,failIfMajorPerformanceCaveat:this._failIfMajorPerformanceCaveat,preserveDrawingBuffer:this._preserveDrawingBuffer,antialias:this._antialias||!1},t=null;this._canvas.addEventListener("webglcontextcreationerror",i=>{t={requestedAttributes:e},i&&(t.statusMessage=i.statusMessage,t.type=i.type)},{once:!0});let i=this._canvas.getContext("webgl2",e)||this._canvas.getContext("webgl",e);if(!i){let e="Failed to initialize WebGL";throw t?(t.message=e,Error(JSON.stringify(t))):Error(e)}this.painter=new i_(i,this.transform),l.testSupport(i)}_onCooperativeGesture(e,t,i){return!t&&i<2&&(this._cooperativeGesturesScreen.classList.add("maplibregl-show"),setTimeout(()=>{this._cooperativeGesturesScreen.classList.remove("maplibregl-show")},100)),!1}loaded(){return!this._styleDirty&&!this._sourcesDirty&&!!this.style&&this.style.loaded()}_update(e){return this.style&&this.style._loaded&&(this._styleDirty=this._styleDirty||e,this._sourcesDirty=!0,this.triggerRepaint()),this}_requestRenderFrame(e){return this._update(),this._renderTaskQueue.add(e)}_cancelRenderFrame(e){this._renderTaskQueue.remove(e)}_render(t){let i=this._idleTriggered?this._fadeDuration:0;if(this.painter.context.setDirty(),this.painter.setBaseState(),this._renderTaskQueue.run(t),this._removed)return;let r=!1;if(this.style&&this._styleDirty){this._styleDirty=!1;let t=this.transform.zoom,a=e.h.now();this.style.zoomHistory.update(t,a);let s=new e.a8(t,{now:a,fadeDuration:i,zoomHistory:this.style.zoomHistory,transition:this.style.getTransition()}),n=s.crossFadingFactor();1===n&&n===this._crossFadingFactor||(r=!0,this._crossFadingFactor=n),this.style.update(s)}this.style&&this._sourcesDirty&&(this._sourcesDirty=!1,this.style._updateSources(this.transform)),this.terrain?(this.terrain.sourceCache.update(this.transform,this.terrain),this.transform._minEleveationForCurrentTile=this.terrain.getMinTileElevationForLngLatZoom(this.transform.center,this.transform.tileZoom),this._elevationFreeze||(this.transform.elevation=this.terrain.getElevationForLngLatZoom(this.transform.center,this.transform.tileZoom))):(this.transform._minEleveationForCurrentTile=0,this.transform.elevation=0),this._placementDirty=this.style&&this.style._updatePlacement(this.painter.transform,this.showCollisionBoxes,i,this._crossSourceCollisions),this.painter.render(this.style,{showTileBoundaries:this.showTileBoundaries,showOverdrawInspector:this._showOverdrawInspector,rotating:this.isRotating(),zooming:this.isZooming(),moving:this.isMoving(),fadeDuration:i,showPadding:this.showPadding}),this.fire(new e.k("render")),this.loaded()&&!this._loaded&&(this._loaded=!0,e.bg.mark(e.bh.load),this.fire(new e.k("load"))),this.style&&(this.style.hasTransitions()||r)&&(this._styleDirty=!0),this.style&&!this._placementDirty&&this.style._releaseSymbolFadeTiles();let a=this._sourcesDirty||this._styleDirty||this._placementDirty;return a||this._repaint?this.triggerRepaint():!this.isMoving()&&this.loaded()&&this.fire(new e.k("idle")),!this._loaded||this._fullyLoaded||a||(this._fullyLoaded=!0,e.bg.mark(e.bh.fullLoad)),this}redraw(){return this.style&&(this._frame&&(this._frame.cancel(),this._frame=null),this._render(0)),this}remove(){var t;for(let e of(this._hash&&this._hash.remove(),this._controls))e.onRemove(this);this._controls=[],this._frame&&(this._frame.cancel(),this._frame=null),this._renderTaskQueue.clear(),this.painter.destroy(),this.handlers.destroy(),delete this.handlers,this.setStyle(null),"undefined"!=typeof window&&removeEventListener("online",this._onWindowOnline,!1),y.removeThrottleControl(this._imageQueueHandle),null==(t=this._resizeObserver)||t.disconnect();let i=this.painter.context.gl.getExtension("WEBGL_lose_context");i&&i.loseContext(),this._canvas.removeEventListener("webglcontextrestored",this._contextRestored,!1),this._canvas.removeEventListener("webglcontextlost",this._contextLost,!1),o.remove(this._canvasContainer),o.remove(this._controlContainer),this._cooperativeGestures&&this._destroyCooperativeGestures(),this._container.classList.remove("maplibregl-map"),e.bg.clearMetrics(),this._removed=!0,this.fire(new e.k("remove"))}triggerRepaint(){this.style&&!this._frame&&(this._frame=e.h.frame(t=>{e.bg.frame(t),this._frame=null,this._render(t)}))}get showTileBoundaries(){return!!this._showTileBoundaries}set showTileBoundaries(e){this._showTileBoundaries!==e&&(this._showTileBoundaries=e,this._update())}get showPadding(){return!!this._showPadding}set showPadding(e){this._showPadding!==e&&(this._showPadding=e,this._update())}get showCollisionBoxes(){return!!this._showCollisionBoxes}set showCollisionBoxes(e){this._showCollisionBoxes!==e&&(this._showCollisionBoxes=e,e?this.style._generateCollisionBoxes():this._update())}get showOverdrawInspector(){return!!this._showOverdrawInspector}set showOverdrawInspector(e){this._showOverdrawInspector!==e&&(this._showOverdrawInspector=e,this._update())}get repaint(){return!!this._repaint}set repaint(e){this._repaint!==e&&(this._repaint=e,this.triggerRepaint())}get vertices(){return!!this._vertices}set vertices(e){this._vertices=e,this._update()}get version(){return n}getCameraTargetElevation(){return this.transform.elevation}},rB.NavigationControl=class{constructor(t){this._updateZoomButtons=()=>{let e=this._map.getZoom(),t=e===this._map.getMaxZoom(),i=e===this._map.getMinZoom();this._zoomInButton.disabled=t,this._zoomOutButton.disabled=i,this._zoomInButton.setAttribute("aria-disabled",t.toString()),this._zoomOutButton.setAttribute("aria-disabled",i.toString())},this._rotateCompassArrow=()=>{let e=this.options.visualizePitch?`scale(${1/Math.pow(Math.cos(this._map.transform.pitch*(Math.PI/180)),.5)}) rotateX(${this._map.transform.pitch}deg) rotateZ(${this._map.transform.angle*(180/Math.PI)}deg)`:`rotate(${this._map.transform.angle*(180/Math.PI)}deg)`;this._compassIcon.style.transform=e},this._setButtonTitle=(e,t)=>{let i=this._map._getUIString(`NavigationControl.${t}`);e.title=i,e.setAttribute("aria-label",i)},this.options=e.e({},rS,t),this._container=o.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._container.addEventListener("contextmenu",e=>e.preventDefault()),this.options.showZoom&&(this._zoomInButton=this._createButton("maplibregl-ctrl-zoom-in",e=>this._map.zoomIn({},{originalEvent:e})),o.create("span","maplibregl-ctrl-icon",this._zoomInButton).setAttribute("aria-hidden","true"),this._zoomOutButton=this._createButton("maplibregl-ctrl-zoom-out",e=>this._map.zoomOut({},{originalEvent:e})),o.create("span","maplibregl-ctrl-icon",this._zoomOutButton).setAttribute("aria-hidden","true")),this.options.showCompass&&(this._compass=this._createButton("maplibregl-ctrl-compass",e=>{this.options.visualizePitch?this._map.resetNorthPitch({},{originalEvent:e}):this._map.resetNorth({},{originalEvent:e})}),this._compassIcon=o.create("span","maplibregl-ctrl-icon",this._compass),this._compassIcon.setAttribute("aria-hidden","true"))}onAdd(e){return this._map=e,this.options.showZoom&&(this._setButtonTitle(this._zoomInButton,"ZoomIn"),this._setButtonTitle(this._zoomOutButton,"ZoomOut"),this._map.on("zoom",this._updateZoomButtons),this._updateZoomButtons()),this.options.showCompass&&(this._setButtonTitle(this._compass,"ResetBearing"),this.options.visualizePitch&&this._map.on("pitch",this._rotateCompassArrow),this._map.on("rotate",this._rotateCompassArrow),this._rotateCompassArrow(),this._handler=new rT(this._map,this._compass,this.options.visualizePitch)),this._container}onRemove(){o.remove(this._container),this.options.showZoom&&this._map.off("zoom",this._updateZoomButtons),this.options.showCompass&&(this.options.visualizePitch&&this._map.off("pitch",this._rotateCompassArrow),this._map.off("rotate",this._rotateCompassArrow),this._handler.off(),delete this._handler),delete this._map}_createButton(e,t){let i=o.create("button",e,this._container);return i.type="button",i.addEventListener("click",t),i}},rB.GeolocateControl=class extends e.E{constructor(t){super(),this._onSuccess=t=>{if(this._map){if(this._isOutOfMapMaxBounds(t))return this._setErrorState(),this.fire(new e.k("outofmaxbounds",t)),this._updateMarker(),void this._finish();if(this.options.trackUserLocation)switch(this._lastKnownPosition=t,this._watchState){case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"BACKGROUND":case"BACKGROUND_ERROR":this._watchState="BACKGROUND",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background");break;default:throw Error(`Unexpected watchState ${this._watchState}`)}this.options.showUserLocation&&"OFF"!==this._watchState&&this._updateMarker(t),this.options.trackUserLocation&&"ACTIVE_LOCK"!==this._watchState||this._updateCamera(t),this.options.showUserLocation&&this._dotElement.classList.remove("maplibregl-user-location-dot-stale"),this.fire(new e.k("geolocate",t)),this._finish()}},this._updateCamera=t=>{let i=new e.L(t.coords.longitude,t.coords.latitude),r=t.coords.accuracy,a=this._map.getBearing(),s=e.e({bearing:a},this.options.fitBoundsOptions),n=R.fromLngLat(i,r);this._map.fitBounds(n,s,{geolocateSource:!0})},this._updateMarker=t=>{if(t){let i=new e.L(t.coords.longitude,t.coords.latitude);this._accuracyCircleMarker.setLngLat(i).addTo(this._map),this._userLocationDotMarker.setLngLat(i).addTo(this._map),this._accuracy=t.coords.accuracy,this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()}else this._userLocationDotMarker.remove(),this._accuracyCircleMarker.remove()},this._onZoom=()=>{this.options.showUserLocation&&this.options.showAccuracyCircle&&this._updateCircleRadius()},this._onError=t=>{if(this._map){if(this.options.trackUserLocation)if(1===t.code){this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.disabled=!0;let e=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.title=e,this._geolocateButton.setAttribute("aria-label",e),void 0!==this._geolocationWatchID&&this._clearWatch()}else{if(3===t.code&&rP)return;this._setErrorState()}"OFF"!==this._watchState&&this.options.showUserLocation&&this._dotElement.classList.add("maplibregl-user-location-dot-stale"),this.fire(new e.k("error",t)),this._finish()}},this._finish=()=>{this._timeoutId&&clearTimeout(this._timeoutId),this._timeoutId=void 0},this._setupUI=t=>{if(this._map){if(this._container.addEventListener("contextmenu",e=>e.preventDefault()),this._geolocateButton=o.create("button","maplibregl-ctrl-geolocate",this._container),o.create("span","maplibregl-ctrl-icon",this._geolocateButton).setAttribute("aria-hidden","true"),this._geolocateButton.type="button",!1===t){e.w("Geolocation support is not available so the GeolocateControl will be disabled.");let t=this._map._getUIString("GeolocateControl.LocationNotAvailable");this._geolocateButton.disabled=!0,this._geolocateButton.title=t,this._geolocateButton.setAttribute("aria-label",t)}else{let e=this._map._getUIString("GeolocateControl.FindMyLocation");this._geolocateButton.title=e,this._geolocateButton.setAttribute("aria-label",e)}this.options.trackUserLocation&&(this._geolocateButton.setAttribute("aria-pressed","false"),this._watchState="OFF"),this.options.showUserLocation&&(this._dotElement=o.create("div","maplibregl-user-location-dot"),this._userLocationDotMarker=new rE({element:this._dotElement}),this._circleElement=o.create("div","maplibregl-user-location-accuracy-circle"),this._accuracyCircleMarker=new rE({element:this._circleElement,pitchAlignment:"map"}),this.options.trackUserLocation&&(this._watchState="OFF"),this._map.on("zoom",this._onZoom)),this._geolocateButton.addEventListener("click",this.trigger.bind(this)),this._setup=!0,this.options.trackUserLocation&&this._map.on("movestart",t=>{t.geolocateSource||"ACTIVE_LOCK"!==this._watchState||t.originalEvent&&"resize"===t.originalEvent.type||(this._watchState="BACKGROUND",this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this.fire(new e.k("trackuserlocationend")))})}},this.options=e.e({},rk,t)}onAdd(e){return this._map=e,this._container=o.create("div","maplibregl-ctrl maplibregl-ctrl-group"),function(e,t=!1){void 0===a||t?void 0!==window.navigator.permissions?window.navigator.permissions.query({name:"geolocation"}).then(t=>{e(a="denied"!==t.state)}).catch(()=>{e(a=!!window.navigator.geolocation)}):e(a=!!window.navigator.geolocation):e(a)}(this._setupUI),this._container}onRemove(){void 0!==this._geolocationWatchID&&(window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0),this.options.showUserLocation&&this._userLocationDotMarker&&this._userLocationDotMarker.remove(),this.options.showAccuracyCircle&&this._accuracyCircleMarker&&this._accuracyCircleMarker.remove(),o.remove(this._container),this._map.off("zoom",this._onZoom),this._map=void 0,rC=0,rP=!1}_isOutOfMapMaxBounds(e){let t=this._map.getMaxBounds(),i=e.coords;return t&&(i.longitudet.getEast()||i.latitudet.getNorth())}_setErrorState(){switch(this._watchState){case"WAITING_ACTIVE":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error");break;case"ACTIVE_LOCK":this._watchState="ACTIVE_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"BACKGROUND":this._watchState="BACKGROUND_ERROR",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-background-error"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting");break;case"ACTIVE_ERROR":break;default:throw Error(`Unexpected watchState ${this._watchState}`)}}_updateCircleRadius(){let e=this._map.getBounds(),t=e.getSouthEast(),i=e.getNorthEast(),r=t.distanceTo(i),a=Math.ceil(this._accuracy/(r/this._map._container.clientHeight)*2);this._circleElement.style.width=`${a}px`,this._circleElement.style.height=`${a}px`}trigger(){if(!this._setup)return e.w("Geolocate control triggered before added to a map"),!1;if(this.options.trackUserLocation){switch(this._watchState){case"OFF":this._watchState="WAITING_ACTIVE",this.fire(new e.k("trackuserlocationstart"));break;case"WAITING_ACTIVE":case"ACTIVE_LOCK":case"ACTIVE_ERROR":case"BACKGROUND_ERROR":rC--,rP=!1,this._watchState="OFF",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-active-error"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background-error"),this.fire(new e.k("trackuserlocationend"));break;case"BACKGROUND":this._watchState="ACTIVE_LOCK",this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-background"),this._lastKnownPosition&&this._updateCamera(this._lastKnownPosition),this.fire(new e.k("trackuserlocationstart"));break;default:throw Error(`Unexpected watchState ${this._watchState}`)}switch(this._watchState){case"WAITING_ACTIVE":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"ACTIVE_LOCK":this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-active");break;case"OFF":break;default:throw Error(`Unexpected watchState ${this._watchState}`)}if("OFF"===this._watchState&&void 0!==this._geolocationWatchID)this._clearWatch();else if(void 0===this._geolocationWatchID){let e;this._geolocateButton.classList.add("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","true"),++rC>1?(e={maximumAge:6e5,timeout:0},rP=!0):(e=this.options.positionOptions,rP=!1),this._geolocationWatchID=window.navigator.geolocation.watchPosition(this._onSuccess,this._onError,e)}}else window.navigator.geolocation.getCurrentPosition(this._onSuccess,this._onError,this.options.positionOptions),this._timeoutId=setTimeout(this._finish,1e4);return!0}_clearWatch(){window.navigator.geolocation.clearWatch(this._geolocationWatchID),this._geolocationWatchID=void 0,this._geolocateButton.classList.remove("maplibregl-ctrl-geolocate-waiting"),this._geolocateButton.setAttribute("aria-pressed","false"),this.options.showUserLocation&&this._updateMarker(null)}},rB.AttributionControl=rc,rB.LogoControl=rd,rB.ScaleControl=class{constructor(t){this._onMove=()=>{rD(this._map,this._container,this.options)},this.setUnit=e=>{this.options.unit=e,rD(this._map,this._container,this.options)},this.options=e.e({},rz,t)}getDefaultPosition(){return"bottom-left"}onAdd(e){return this._map=e,this._container=o.create("div","maplibregl-ctrl maplibregl-ctrl-scale",e.getContainer()),this._map.on("move",this._onMove),this._onMove(),this._container}onRemove(){o.remove(this._container),this._map.off("move",this._onMove),this._map=void 0}},rB.FullscreenControl=class extends e.E{constructor(t={}){super(),this._onFullscreenChange=()=>{(window.document.fullscreenElement||window.document.mozFullScreenElement||window.document.webkitFullscreenElement||window.document.msFullscreenElement)===this._container!==this._fullscreen&&this._handleFullscreenChange()},this._onClickFullscreen=()=>{this._isFullscreen()?this._exitFullscreen():this._requestFullscreen()},this._fullscreen=!1,t&&t.container&&(t.container instanceof HTMLElement?this._container=t.container:e.w("Full screen control 'container' must be a DOM element.")),"onfullscreenchange"in document?this._fullscreenchange="fullscreenchange":"onmozfullscreenchange"in document?this._fullscreenchange="mozfullscreenchange":"onwebkitfullscreenchange"in document?this._fullscreenchange="webkitfullscreenchange":"onmsfullscreenchange"in document&&(this._fullscreenchange="MSFullscreenChange")}onAdd(e){return this._map=e,this._container||(this._container=this._map.getContainer()),this._controlContainer=o.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._setupUI(),this._controlContainer}onRemove(){o.remove(this._controlContainer),this._map=null,window.document.removeEventListener(this._fullscreenchange,this._onFullscreenChange)}_setupUI(){let e=this._fullscreenButton=o.create("button","maplibregl-ctrl-fullscreen",this._controlContainer);o.create("span","maplibregl-ctrl-icon",e).setAttribute("aria-hidden","true"),e.type="button",this._updateTitle(),this._fullscreenButton.addEventListener("click",this._onClickFullscreen),window.document.addEventListener(this._fullscreenchange,this._onFullscreenChange)}_updateTitle(){let e=this._getTitle();this._fullscreenButton.setAttribute("aria-label",e),this._fullscreenButton.title=e}_getTitle(){return this._map._getUIString(this._isFullscreen()?"FullscreenControl.Exit":"FullscreenControl.Enter")}_isFullscreen(){return this._fullscreen}_handleFullscreenChange(){this._fullscreen=!this._fullscreen,this._fullscreenButton.classList.toggle("maplibregl-ctrl-shrink"),this._fullscreenButton.classList.toggle("maplibregl-ctrl-fullscreen"),this._updateTitle(),this._fullscreen?(this.fire(new e.k("fullscreenstart")),this._map._cooperativeGestures&&(this._prevCooperativeGestures=this._map._cooperativeGestures,this._map.setCooperativeGestures())):(this.fire(new e.k("fullscreenend")),this._prevCooperativeGestures&&(this._map.setCooperativeGestures(this._prevCooperativeGestures),delete this._prevCooperativeGestures))}_exitFullscreen(){window.document.exitFullscreen?window.document.exitFullscreen():window.document.mozCancelFullScreen?window.document.mozCancelFullScreen():window.document.msExitFullscreen?window.document.msExitFullscreen():window.document.webkitCancelFullScreen?window.document.webkitCancelFullScreen():this._togglePseudoFullScreen()}_requestFullscreen(){this._container.requestFullscreen?this._container.requestFullscreen():this._container.mozRequestFullScreen?this._container.mozRequestFullScreen():this._container.msRequestFullscreen?this._container.msRequestFullscreen():this._container.webkitRequestFullscreen?this._container.webkitRequestFullscreen():this._togglePseudoFullScreen()}_togglePseudoFullScreen(){this._container.classList.toggle("maplibregl-pseudo-fullscreen"),this._handleFullscreenChange(),this._map.resize()}},rB.TerrainControl=class{constructor(e){this._toggleTerrain=()=>{this._map.getTerrain()?this._map.setTerrain(null):this._map.setTerrain(this.options),this._updateTerrainIcon()},this._updateTerrainIcon=()=>{this._terrainButton.classList.remove("maplibregl-ctrl-terrain"),this._terrainButton.classList.remove("maplibregl-ctrl-terrain-enabled"),this._map.terrain?(this._terrainButton.classList.add("maplibregl-ctrl-terrain-enabled"),this._terrainButton.title=this._map._getUIString("TerrainControl.disableTerrain")):(this._terrainButton.classList.add("maplibregl-ctrl-terrain"),this._terrainButton.title=this._map._getUIString("TerrainControl.enableTerrain"))},this.options=e}onAdd(e){return this._map=e,this._container=o.create("div","maplibregl-ctrl maplibregl-ctrl-group"),this._terrainButton=o.create("button","maplibregl-ctrl-terrain",this._container),o.create("span","maplibregl-ctrl-icon",this._terrainButton).setAttribute("aria-hidden","true"),this._terrainButton.type="button",this._terrainButton.addEventListener("click",this._toggleTerrain),this._updateTerrainIcon(),this._map.on("terrain",this._updateTerrainIcon),this._container}onRemove(){o.remove(this._container),this._map.off("terrain",this._updateTerrainIcon),this._map=void 0}},rB.Popup=class extends e.E{constructor(t){super(),this.remove=()=>(this._content&&o.remove(this._content),this._container&&(o.remove(this._container),delete this._container),this._map&&(this._map.off("move",this._update),this._map.off("move",this._onClose),this._map.off("click",this._onClose),this._map.off("remove",this.remove),this._map.off("mousemove",this._onMouseMove),this._map.off("mouseup",this._onMouseUp),this._map.off("drag",this._onDrag),delete this._map),this.fire(new e.k("close")),this),this._onMouseUp=e=>{this._update(e.point)},this._onMouseMove=e=>{this._update(e.point)},this._onDrag=e=>{this._update(e.point)},this._update=t=>{if(!this._map||!this._lngLat&&!this._trackPointer||!this._content)return;if(!this._container){if(this._container=o.create("div","maplibregl-popup",this._map.getContainer()),this._tip=o.create("div","maplibregl-popup-tip",this._container),this._container.appendChild(this._content),this.options.className)for(let e of this.options.className.split(" "))this._container.classList.add(e);this._trackPointer&&this._container.classList.add("maplibregl-popup-track-pointer")}if(this.options.maxWidth&&this._container.style.maxWidth!==this.options.maxWidth&&(this._container.style.maxWidth=this.options.maxWidth),this._map.transform.renderWorldCopies&&!this._trackPointer&&(this._lngLat=rI(this._lngLat,this._pos,this._map.transform)),this._trackPointer&&!t)return;let i=this._pos=this._trackPointer&&t?t:this._map.project(this._lngLat),r=this.options.anchor,a=function t(i){if(i){if("number"==typeof i){let t=Math.round(Math.abs(i)/Math.SQRT2);return{center:new e.P(0,0),top:new e.P(0,i),"top-left":new e.P(t,t),"top-right":new e.P(-t,t),bottom:new e.P(0,-i),"bottom-left":new e.P(t,-t),"bottom-right":new e.P(-t,-t),left:new e.P(i,0),right:new e.P(-i,0)}}if(i instanceof e.P||Array.isArray(i)){let t=e.P.convert(i);return{center:t,top:t,"top-left":t,"top-right":t,bottom:t,"bottom-left":t,"bottom-right":t,left:t,right:t}}return{center:e.P.convert(i.center||[0,0]),top:e.P.convert(i.top||[0,0]),"top-left":e.P.convert(i["top-left"]||[0,0]),"top-right":e.P.convert(i["top-right"]||[0,0]),bottom:e.P.convert(i.bottom||[0,0]),"bottom-left":e.P.convert(i["bottom-left"]||[0,0]),"bottom-right":e.P.convert(i["bottom-right"]||[0,0]),left:e.P.convert(i.left||[0,0]),right:e.P.convert(i.right||[0,0])}}return t(new e.P(0,0))}(this.options.offset);if(!r){let e,t=this._container.offsetWidth,s=this._container.offsetHeight;e=i.y+a.bottom.ythis._map.transform.height-s?["bottom"]:[],i.xthis._map.transform.width-t/2&&e.push("right"),r=0===e.length?"bottom":e.join("-")}let s=i.add(a[r]).round();o.setTransform(this._container,`${rA[r]} translate(${s.x}px,${s.y}px)`),rM(this._container,r,"popup")},this._onClose=()=>{this.remove()},this.options=e.e(Object.create(rR),t)}addTo(t){return this._map&&this.remove(),this._map=t,this.options.closeOnClick&&this._map.on("click",this._onClose),this.options.closeOnMove&&this._map.on("move",this._onClose),this._map.on("remove",this.remove),this._update(),this._focusFirstElement(),this._trackPointer?(this._map.on("mousemove",this._onMouseMove),this._map.on("mouseup",this._onMouseUp),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")):this._map.on("move",this._update),this.fire(new e.k("open")),this}isOpen(){return!!this._map}getLngLat(){return this._lngLat}setLngLat(t){return this._lngLat=e.L.convert(t),this._pos=null,this._trackPointer=!1,this._update(),this._map&&(this._map.on("move",this._update),this._map.off("mousemove",this._onMouseMove),this._container&&this._container.classList.remove("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.remove("maplibregl-track-pointer")),this}trackPointer(){return this._trackPointer=!0,this._pos=null,this._update(),this._map&&(this._map.off("move",this._update),this._map.on("mousemove",this._onMouseMove),this._map.on("drag",this._onDrag),this._container&&this._container.classList.add("maplibregl-popup-track-pointer"),this._map._canvasContainer.classList.add("maplibregl-track-pointer")),this}getElement(){return this._container}setText(e){return this.setDOMContent(document.createTextNode(e))}setHTML(e){let t,i=document.createDocumentFragment(),r=document.createElement("body");for(r.innerHTML=e;t=r.firstChild;)i.appendChild(t);return this.setDOMContent(i)}getMaxWidth(){var e;return null==(e=this._container)?void 0:e.style.maxWidth}setMaxWidth(e){return this.options.maxWidth=e,this._update(),this}setDOMContent(e){if(this._content)for(;this._content.hasChildNodes();)this._content.firstChild&&this._content.removeChild(this._content.firstChild);else this._content=o.create("div","maplibregl-popup-content",this._container);return this._content.appendChild(e),this._createCloseButton(),this._update(),this._focusFirstElement(),this}addClassName(e){this._container&&this._container.classList.add(e)}removeClassName(e){this._container&&this._container.classList.remove(e)}setOffset(e){return this.options.offset=e,this._update(),this}toggleClassName(e){if(this._container)return this._container.classList.toggle(e)}_createCloseButton(){this.options.closeButton&&(this._closeButton=o.create("button","maplibregl-popup-close-button",this._content),this._closeButton.type="button",this._closeButton.setAttribute("aria-label","Close popup"),this._closeButton.innerHTML="×",this._closeButton.addEventListener("click",this._onClose))}_focusFirstElement(){if(!this.options.focusAfterOpen||!this._container)return;let e=this._container.querySelector("a[href], [tabindex]:not([tabindex='-1']), [contenteditable]:not([contenteditable='false']), button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled])");e&&e.focus()}},rB.Marker=rE,rB.Style=eG,rB.LngLat=e.L,rB.LngLatBounds=R,rB.Point=e.P,rB.MercatorCoordinate=e.U,rB.Evented=e.E,rB.AJAXError=e.bi,rB.config=e.c,rB.CanvasSource=q,rB.GeoJSONSource=N,rB.ImageSource=$,rB.RasterDEMTileSource=V,rB.RasterTileSource=O,rB.VectorTileSource=F,rB.VideoSource=j,rB.setRTLTextPlugin=e.bj,rB.getRTLTextPluginStatus=e.bk,rB.prewarm=function(){er().acquire(ee)},rB.clearPrewarmedResources=function(){let e=i;e&&(e.isPreloaded()&&1===e.numActive()?(e.release(ee),i=null):console.warn("Could not clear WebWorkers since there are active Map instances that still reference it. The pre-warmed WebWorker pool can only be cleared when all map instances have been removed with map.remove()"))},({extend:(t,...i)=>e.e(t,...i),run(e){e()},logToElement(e,t=!1,i="log"){let r=window.document.getElementById(i);r&&(t&&(r.innerHTML=""),r.innerHTML+=`
${e}`)}}).extend(rB,{isSafari:e.ac,getPerformanceMetrics:e.bg.getPerformanceMetrics}),rB}),i}()}}]); \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1026-0d948f937ff99179.js b/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1026-0d948f937ff99179.js deleted file mode 100644 index 49ad4b22..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1026-0d948f937ff99179.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1026],{13993:(e,t,n)=>{n.d(t,{A:()=>c});var o=n(12115),r=n(11250),a=n(75659);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement(a.A,l({},e,{ref:t,icon:r.A})))},18610:(e,t,n)=>{n.d(t,{A:()=>c});var o=n(12115),r=n(50585),a=n(75659);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement(a.A,l({},e,{ref:t,icon:r.A})))},27212:(e,t,n)=>{n.d(t,{A:()=>x});var o=n(12115),r=n(63583),a=n(29300),l=n.n(a),c=n(48804),s=n(17980),i=n(15982),p=n(56200),d=n(25374),u=n(44186),f=n(98696),g=n(37120),b=n(8530),m=n(16025),v=n(79092);let h=(0,n(45431).OF)("Popconfirm",e=>(e=>{let{componentCls:t,iconCls:n,antCls:o,zIndexPopup:r,colorText:a,colorWarning:l,marginXXS:c,marginXS:s,fontSize:i,fontWeightStrong:p,colorTextHeading:d}=e;return{[t]:{zIndex:r,["&".concat(o,"-popover")]:{fontSize:i},["".concat(t,"-message")]:{marginBottom:s,display:"flex",flexWrap:"nowrap",alignItems:"start",["> ".concat(t,"-message-icon ").concat(n)]:{color:l,fontSize:i,lineHeight:1,marginInlineEnd:s},["".concat(t,"-title")]:{fontWeight:p,color:d,"&:only-child":{fontWeight:"normal"}},["".concat(t,"-description")]:{marginTop:c,color:a}},["".concat(t,"-buttons")]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:s}}}}})(e),e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1});var y=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);rt.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};let O=e=>{let{prefixCls:t,okButtonProps:n,cancelButtonProps:a,title:l,description:c,cancelText:s,okText:p,okType:v="primary",icon:h=o.createElement(r.A,null),showCancel:y=!0,close:O,onConfirm:C,onCancel:j,onPopupClick:x}=e,{getPrefixCls:w}=o.useContext(i.QO),[E]=(0,b.A)("Popconfirm",m.A.Popconfirm),k=(0,u.b)(l),A=(0,u.b)(c);return o.createElement("div",{className:"".concat(t,"-inner-content"),onClick:x},o.createElement("div",{className:"".concat(t,"-message")},h&&o.createElement("span",{className:"".concat(t,"-message-icon")},h),o.createElement("div",{className:"".concat(t,"-message-text")},k&&o.createElement("div",{className:"".concat(t,"-title")},k),A&&o.createElement("div",{className:"".concat(t,"-description")},A))),o.createElement("div",{className:"".concat(t,"-buttons")},y&&o.createElement(f.Ay,Object.assign({onClick:j,size:"small"},a),s||(null==E?void 0:E.cancelText)),o.createElement(d.A,{buttonProps:Object.assign(Object.assign({size:"small"},(0,g.DU)(v)),n),actionFn:C,close:O,prefixCls:w("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},p||(null==E?void 0:E.okText))))};var C=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);rt.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};let j=o.forwardRef((e,t)=>{var n,a;let{prefixCls:d,placement:u="top",trigger:f="click",okType:g="primary",icon:b=o.createElement(r.A,null),children:m,overlayClassName:v,onOpenChange:y,onVisibleChange:j,overlayStyle:x,styles:w,classNames:E}=e,k=C(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:A,className:z,style:P,classNames:S,styles:N}=(0,i.TP)("popconfirm"),[L,B]=(0,c.A)(!1,{value:null!=(n=e.open)?n:e.visible,defaultValue:null!=(a=e.defaultOpen)?a:e.defaultVisible}),I=(e,t)=>{B(e,!0),null==j||j(e),null==y||y(e,t)},M=A("popconfirm",d),T=l()(M,z,v,S.root,null==E?void 0:E.root),H=l()(S.body,null==E?void 0:E.body),[R]=h(M);return R(o.createElement(p.A,Object.assign({},(0,s.A)(k,["title"]),{trigger:f,placement:u,onOpenChange:(t,n)=>{let{disabled:o=!1}=e;o||I(t,n)},open:L,ref:t,classNames:{root:T,body:H},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},N.root),P),x),null==w?void 0:w.root),body:Object.assign(Object.assign({},N.body),null==w?void 0:w.body)},content:o.createElement(O,Object.assign({okType:g,icon:b},e,{prefixCls:M,close:e=>{I(!1,e)},onConfirm:t=>{var n;return null==(n=e.onConfirm)?void 0:n.call(void 0,t)},onCancel:t=>{var n;I(!1,t),null==(n=e.onCancel)||n.call(void 0,t)}})),"data-popover-inject":!0}),m))});j._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,placement:n,className:r,style:a}=e,c=y(e,["prefixCls","placement","className","style"]),{getPrefixCls:s}=o.useContext(i.QO),p=s("popconfirm",t),[d]=h(p);return d(o.createElement(v.Ay,{placement:n,className:l()(p,r),style:a,content:o.createElement(O,Object.assign({prefixCls:p},c))}))};let x=j},31511:(e,t,n)=>{n.d(t,{A:()=>c});var o=n(12115);let r={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};var a=n(75659);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement(a.A,l({},e,{ref:t,icon:r})))},34140:(e,t,n)=>{n.d(t,{A:()=>c});var o=n(12115);let r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};var a=n(75659);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement(a.A,l({},e,{ref:t,icon:r})))},37974:(e,t,n)=>{n.d(t,{A:()=>z});var o=n(12115),r=n(29300),a=n.n(r),l=n(17980),c=n(77696),s=n(50497),i=n(80163),p=n(47195),d=n(15982),u=n(99841),f=n(60872),g=n(18184),b=n(61388),m=n(45431);let v=e=>{let{lineWidth:t,fontSizeIcon:n,calc:o}=e,r=e.fontSizeSM;return(0,b.oX)(e,{tagFontSize:r,tagLineHeight:(0,u.zA)(o(e.lineHeightSM).mul(r).equal()),tagIconSize:o(n).sub(o(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},h=e=>({defaultBg:new f.Y(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),y=(0,m.OF)("Tag",e=>(e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:r,calc:a}=e,l=a(o).sub(n).equal(),c=a(t).sub(n).equal();return{[r]:Object.assign(Object.assign({},(0,g.dF)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:l,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:"".concat((0,u.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderRadius:e.borderRadiusSM,opacity:1,transition:"all ".concat(e.motionDurationMid),textAlign:"start",position:"relative",["&".concat(r,"-rtl")]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},["".concat(r,"-close-icon")]:{marginInlineStart:c,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:"all ".concat(e.motionDurationMid),"&:hover":{color:e.colorTextHeading}},["&".concat(r,"-has-color")]:{borderColor:"transparent",["&, a, a:hover, ".concat(e.iconCls,"-close, ").concat(e.iconCls,"-close:hover")]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",["&:not(".concat(r,"-checkable-checked):hover")]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},["> ".concat(e.iconCls," + span, > span + ").concat(e.iconCls)]:{marginInlineStart:l}}),["".concat(r,"-borderless")]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(v(e)),h);var O=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);rt.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};let C=o.forwardRef((e,t)=>{let{prefixCls:n,style:r,className:l,checked:c,children:s,icon:i,onChange:p,onClick:u}=e,f=O(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:g,tag:b}=o.useContext(d.QO),m=g("tag",n),[v,h,C]=y(m),j=a()(m,"".concat(m,"-checkable"),{["".concat(m,"-checkable-checked")]:c},null==b?void 0:b.className,l,h,C);return v(o.createElement("span",Object.assign({},f,{ref:t,style:Object.assign(Object.assign({},r),null==b?void 0:b.style),className:j,onClick:e=>{null==p||p(!c),null==u||u(e)}}),i,o.createElement("span",null,s)))});var j=n(18741);let x=(0,m.bf)(["Tag","preset"],e=>(e=>(0,j.A)(e,(t,n)=>{let{textColor:o,lightBorderColor:r,lightColor:a,darkColor:l}=n;return{["".concat(e.componentCls).concat(e.componentCls,"-").concat(t)]:{color:o,background:a,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:l,borderColor:l},["&".concat(e.componentCls,"-borderless")]:{borderColor:"transparent"}}}}))(v(e)),h),w=(e,t,n)=>{let o=function(e){return"string"!=typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}(n);return{["".concat(e.componentCls).concat(e.componentCls,"-").concat(t)]:{color:e["color".concat(n)],background:e["color".concat(o,"Bg")],borderColor:e["color".concat(o,"Border")],["&".concat(e.componentCls,"-borderless")]:{borderColor:"transparent"}}}},E=(0,m.bf)(["Tag","status"],e=>{let t=v(e);return[w(t,"success","Success"),w(t,"processing","Info"),w(t,"error","Error"),w(t,"warning","Warning")]},h);var k=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);rt.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};let A=o.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:u,style:f,children:g,icon:b,color:m,onClose:v,bordered:h=!0,visible:O}=e,C=k(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:j,direction:w,tag:A}=o.useContext(d.QO),[z,P]=o.useState(!0),S=(0,l.A)(C,["closeIcon","closable"]);o.useEffect(()=>{void 0!==O&&P(O)},[O]);let N=(0,c.nP)(m),L=(0,c.ZZ)(m),B=N||L,I=Object.assign(Object.assign({backgroundColor:m&&!B?m:void 0},null==A?void 0:A.style),f),M=j("tag",n),[T,H,R]=y(M),F=a()(M,null==A?void 0:A.className,{["".concat(M,"-").concat(m)]:B,["".concat(M,"-has-color")]:m&&!B,["".concat(M,"-hidden")]:!z,["".concat(M,"-rtl")]:"rtl"===w,["".concat(M,"-borderless")]:!h},r,u,H,R),W=e=>{e.stopPropagation(),null==v||v(e),e.defaultPrevented||P(!1)},[,q]=(0,s.$)((0,s.d)(e),(0,s.d)(A),{closable:!1,closeIconRender:e=>{let t=o.createElement("span",{className:"".concat(M,"-close-icon"),onClick:W},e);return(0,i.fx)(e,t,e=>({onClick:t=>{var n;null==(n=null==e?void 0:e.onClick)||n.call(e,t),W(t)},className:a()(null==e?void 0:e.className,"".concat(M,"-close-icon"))}))}}),Q="function"==typeof C.onClick||g&&"a"===g.type,V=b||null,_=V?o.createElement(o.Fragment,null,V,g&&o.createElement("span",null,g)):g,D=o.createElement("span",Object.assign({},S,{ref:t,className:F,style:I}),_,q,N&&o.createElement(x,{key:"preset",prefixCls:M}),L&&o.createElement(E,{key:"status",prefixCls:M}));return T(Q?o.createElement(p.A,{component:"Tag"},D):D)});A.CheckableTag=C;let z=A},50585:(e,t,n)=>{n.d(t,{A:()=>o});let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"}},50747:(e,t,n)=>{n.d(t,{A:()=>c});var o=n(12115);let r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"};var a=n(75659);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement(a.A,l({},e,{ref:t,icon:r})))},56509:(e,t,n)=>{n.d(t,{A:()=>c});var o=n(12115);let r={icon:function(e,t){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M148.2 674.6zm106.7-92.3c-25 25-38.7 58.1-38.7 93.4s13.8 68.5 38.7 93.4c25 25 58.1 38.7 93.4 38.7 35.3 0 68.5-13.8 93.4-38.7l59.4-59.4-186.8-186.8-59.4 59.4zm420.8-366.1c-35.3 0-68.5 13.8-93.4 38.7l-59.4 59.4 186.8 186.8 59.4-59.4c24.9-25 38.7-58.1 38.7-93.4s-13.8-68.5-38.7-93.4c-25-25-58.1-38.7-93.4-38.7z",fill:t}},{tag:"path",attrs:{d:"M578.9 546.7a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2a199.45 199.45 0 00-58.6 140.4c-.2 39.5 11.2 79.1 34.3 113.1l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7-24.9-24.9-38.7-58.1-38.7-93.4s13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4zm476-620.3l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7s68.4 13.7 93.4 38.7c24.9 24.9 38.7 58.1 38.7 93.4s-13.8 68.4-38.7 93.4z",fill:e}}]}},name:"api",theme:"twotone"};var a=n(75659);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement(a.A,l({},e,{ref:t,icon:r})))},71494:(e,t,n)=>{n.d(t,{A:()=>o});function o(e){if(null==e)throw TypeError("Cannot destructure "+e)}},90765:(e,t,n)=>{n.d(t,{A:()=>c});var o=n(12115);let r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};var a=n(75659);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement(a.A,l({},e,{ref:t,icon:r})))},98527:(e,t,n)=>{n.d(t,{A:()=>o});let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"}}}]); \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1033-cf61f497fa86355d.js b/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1033-cf61f497fa86355d.js deleted file mode 100644 index 88b0b308..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1033-cf61f497fa86355d.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1033],{19361:(e,t,n)=>{n.d(t,{A:()=>r});let r=n(90510).A},23405:(e,t,n)=>{n.d(t,{Pq:()=>s});var r=n(10650),a=n(78520);let o=(0,a.pn)({String:a._A.string,Number:a._A.number,"True False":a._A.bool,PropertyName:a._A.propertyName,Null:a._A.null,", :":a._A.separator,"[ ]":a._A.squareBracket,"{ }":a._A.brace}),c=r.U1.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[o],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});var l=n(60802);let i=l.bj.define({name:"json",parser:c.configure({props:[l.Oh.add({Object:(0,l.mz)({except:/^\s*\}/}),Array:(0,l.mz)({except:/^\s*\]/})}),l.b_.add({"Object Array":l.yd})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function s(){return new l.Yy(i)}},32191:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(12115),a=n(69332),o=n(75659);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement(o.A,c({},e,{ref:t,icon:a.A})))},34140:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(12115);let a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};var o=n(75659);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement(o.A,c({},e,{ref:t,icon:a})))},46774:(e,t,n)=>{n.d(t,{A:()=>r});let r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"}},50585:(e,t,n)=>{n.d(t,{A:()=>r});let r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"}},68287:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(12115);let a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"};var o=n(75659);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement(o.A,c({},e,{ref:t,icon:a})))},74947:(e,t,n)=>{n.d(t,{A:()=>r});let r=n(62623).A},87473:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(12115),a=n(46774),o=n(75659);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement(o.A,c({},e,{ref:t,icon:a.A})))},94326:(e,t,n)=>{n.d(t,{Ay:()=>P});var r=n(85757),a=n(12115),o=n(99209),c=n(15982),l=n(57845),i=n(25856),s=n(16622),d=n(24848),O=n(31390);let f=null,u=e=>e(),h=[],g={};function p(){let{getContainer:e,duration:t,rtl:n,maxCount:r,top:a}=g,o=(null==e?void 0:e())||document.body;return{getContainer:()=>o,duration:t,rtl:n,maxCount:r,top:a}}let b=a.forwardRef((e,t)=>{let{messageConfig:n,sync:r}=e,{getPrefixCls:l}=(0,a.useContext)(c.QO),i=g.prefixCls||l("message"),s=(0,a.useContext)(o.B),[O,f]=(0,d.y)(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),s.message));return a.useImperativeHandle(t,()=>{let e=Object.assign({},O);return Object.keys(e).forEach(t=>{e[t]=function(){for(var e=arguments.length,n=Array(e),a=0;a{let[n,r]=a.useState(p),o=()=>{r(p)};a.useEffect(o,[]);let c=(0,l.cr)(),i=c.getRootPrefixCls(),s=c.getIconPrefixCls(),d=c.getTheme(),O=a.createElement(b,{ref:t,sync:o,messageConfig:n});return a.createElement(l.Ay,{prefixCls:i,iconPrefixCls:s,theme:d},c.holderRender?c.holderRender(O):O)}),y=()=>{if(!f){let e=document.createDocumentFragment(),t={fragment:e};f=t,u(()=>{(0,i.L)()(a.createElement(m,{ref:e=>{let{instance:n,sync:r}=e||{};Promise.resolve().then(()=>{!t.instance&&n&&(t.instance=n,t.sync=r,y())})}}),e)});return}f.instance&&(h.forEach(e=>{let{type:t,skipped:n}=e;if(!n)switch(t){case"open":u(()=>{let t=f.instance.open(Object.assign(Object.assign({},g),e.config));null==t||t.then(e.resolve),e.setCloseFn(t)});break;case"destroy":u(()=>{null==f||f.instance.destroy(e.key)});break;default:u(()=>{var n;let a=(n=f.instance)[t].apply(n,(0,r.A)(e.args));null==a||a.then(e.resolve),e.setCloseFn(a)})}}),h=[])},v={open:function(e){let t=(0,O.E)(t=>{let n,r={type:"open",config:e,resolve:t,setCloseFn:e=>{n=e}};return h.push(r),()=>{n?u(()=>{n()}):r.skipped=!0}});return y(),t},destroy:e=>{h.push({type:"destroy",key:e}),y()},config:function(e){g=Object.assign(Object.assign({},g),e),u(()=>{var e;null==(e=null==f?void 0:f.sync)||e.call(f)})},useMessage:d.A,_InternalPanelDoNotUseOrYouWillBeFired:s.Ay};["success","info","warning","error","loading"].forEach(e=>{v[e]=function(){for(var t=arguments.length,n=Array(t),r=0;r{let r,a={type:e,args:n,resolve:t,setCloseFn:e=>{r=e}};return h.push(a),()=>{r?u(()=>{r()}):a.skipped=!0}});return y(),a}});let P=v},94600:(e,t,n)=>{n.d(t,{A:()=>g});var r=n(12115),a=n(29300),o=n.n(a),c=n(15982),l=n(9836),i=n(99841),s=n(18184),d=n(45431),O=n(61388);let f=(0,d.OF)("Divider",e=>{let t=(0,O.oX)(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[(e=>{let{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:a,textPaddingInline:o,orientationMargin:c,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},(0,s.dF)(e)),{borderBlockStart:"".concat((0,i.zA)(a)," solid ").concat(r),"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:"".concat((0,i.zA)(a)," solid ").concat(r)},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:"".concat((0,i.zA)(e.marginLG)," 0")},["&-horizontal".concat(t,"-with-text")]:{display:"flex",alignItems:"center",margin:"".concat((0,i.zA)(e.dividerHorizontalWithTextGutterMargin)," 0"),color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:"0 ".concat(r),"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:"".concat((0,i.zA)(a)," solid transparent"),borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},["&-horizontal".concat(t,"-with-text-start")]:{"&::before":{width:"calc(".concat(c," * 100%)")},"&::after":{width:"calc(100% - ".concat(c," * 100%)")}},["&-horizontal".concat(t,"-with-text-end")]:{"&::before":{width:"calc(100% - ".concat(c," * 100%)")},"&::after":{width:"calc(".concat(c," * 100%)")}},["".concat(t,"-inner-text")]:{display:"inline-block",paddingBlock:0,paddingInline:o},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:"".concat((0,i.zA)(a)," 0 0")},["&-horizontal".concat(t,"-with-text").concat(t,"-dashed")]:{"&::before, &::after":{borderStyle:"dashed none none"}},["&-vertical".concat(t,"-dashed")]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:"".concat((0,i.zA)(a)," 0 0")},["&-horizontal".concat(t,"-with-text").concat(t,"-dotted")]:{"&::before, &::after":{borderStyle:"dotted none none"}},["&-vertical".concat(t,"-dotted")]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},["&-plain".concat(t,"-with-text")]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},["&-horizontal".concat(t,"-with-text-start").concat(t,"-no-default-orientation-margin-start")]:{"&::before":{width:0},"&::after":{width:"100%"},["".concat(t,"-inner-text")]:{paddingInlineStart:n}},["&-horizontal".concat(t,"-with-text-end").concat(t,"-no-default-orientation-margin-end")]:{"&::before":{width:"100%"},"&::after":{width:0},["".concat(t,"-inner-text")]:{paddingInlineEnd:n}}})}})(t),(e=>{let{componentCls:t}=e;return{[t]:{"&-horizontal":{["&".concat(t)]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}})(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),{unitless:{orientationMargin:!0}});var u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let h={small:"sm",middle:"md"},g=e=>{let{getPrefixCls:t,direction:n,className:a,style:i}=(0,c.TP)("divider"),{prefixCls:s,type:d="horizontal",orientation:O="center",orientationMargin:g,className:p,rootClassName:b,children:m,dashed:y,variant:v="solid",plain:P,style:A,size:w}=e,z=u(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),Q=t("divider",s),[x,j,C]=f(Q),k=h[(0,l.A)(w)],S=!!m,R=r.useMemo(()=>"left"===O?"rtl"===n?"end":"start":"right"===O?"rtl"===n?"start":"end":O,[n,O]),E="start"===R&&null!=g,T="end"===R&&null!=g,B=o()(Q,a,j,C,"".concat(Q,"-").concat(d),{["".concat(Q,"-with-text")]:S,["".concat(Q,"-with-text-").concat(R)]:S,["".concat(Q,"-dashed")]:!!y,["".concat(Q,"-").concat(v)]:"solid"!==v,["".concat(Q,"-plain")]:!!P,["".concat(Q,"-rtl")]:"rtl"===n,["".concat(Q,"-no-default-orientation-margin-start")]:E,["".concat(Q,"-no-default-orientation-margin-end")]:T,["".concat(Q,"-").concat(k)]:!!k},p,b),M=r.useMemo(()=>"number"==typeof g?g:/^\d+$/.test(g)?Number(g):g,[g]);return x(r.createElement("div",Object.assign({className:B,style:Object.assign(Object.assign({},i),A)},z,{role:"separator"}),m&&"vertical"!==d&&r.createElement("span",{className:"".concat(Q,"-inner-text"),style:{marginInlineStart:E?M:void 0,marginInlineEnd:T?M:void 0}},m)))}},96097:(e,t,n)=>{n.d(t,{A:()=>l});var r=n(12115);let a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M824.2 699.9a301.55 301.55 0 00-86.4-60.4C783.1 602.8 812 546.8 812 484c0-110.8-92.4-201.7-203.2-200-109.1 1.7-197 90.6-197 200 0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C345 754.6 314 826.8 312 903.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5A226.62 226.62 0 01612 684c60.9 0 118.2 23.7 161.3 66.8C814.5 792 838 846.3 840 904.3c.1 4.3 3.7 7.7 8 7.7h56a8 8 0 008-8.2c-2-77-33-149.2-87.8-203.9zM612 612c-34.2 0-66.4-13.3-90.5-37.5a126.86 126.86 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4 0 34.2-13.3 66.3-37.5 90.5A127.3 127.3 0 01612 612zM361.5 510.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.9-1.7-203.3 89.2-203.3 199.9 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.9-1 6.5-4.7 6-8.7z"}}]},name:"team",theme:"outlined"};var o=n(75659);function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;tr.createElement(o.A,c({},e,{ref:t,icon:a})))},96194:(e,t,n)=>{n.d(t,{A:()=>P});var r=n(61216),a=n(32655),o=n(30041),c=n(12115),l=n(29300),i=n.n(l),s=n(55121),d=n(31776),O=n(15982),f=n(68151),u=n(85051),h=n(94480),g=n(41222),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,r=Object.getOwnPropertySymbols(e);at.indexOf(r[a])&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(n[r[a]]=e[r[a]]);return n};let b=(0,d.U)(e=>{let{prefixCls:t,className:n,closeIcon:r,closable:a,type:o,title:l,children:d,footer:b}=e,m=p(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:y}=c.useContext(O.QO),v=y(),P=t||y("modal"),A=(0,f.A)(v),[w,z,Q]=(0,g.Ay)(P,A),x="".concat(P,"-confirm"),j={};return j=o?{closable:null!=a&&a,title:"",footer:"",children:c.createElement(u.k,Object.assign({},e,{prefixCls:P,confirmPrefixCls:x,rootPrefixCls:v,content:d}))}:{closable:null==a||a,title:l,footer:null!==b&&c.createElement(h.w,Object.assign({},e)),children:d},w(c.createElement(s.Z,Object.assign({prefixCls:P,className:i()(z,"".concat(P,"-pure-panel"),o&&x,o&&"".concat(x,"-").concat(o),n,Q,A)},m,{closeIcon:(0,h.O)(P,r),closable:a},j)))});var m=n(35149);function y(e){return(0,r.Ay)((0,r.fp)(e))}let v=o.A;v.useModal=m.A,v.info=function(e){return(0,r.Ay)((0,r.$D)(e))},v.success=function(e){return(0,r.Ay)((0,r.Ej)(e))},v.error=function(e){return(0,r.Ay)((0,r.jT)(e))},v.warning=y,v.warn=y,v.confirm=function(e){return(0,r.Ay)((0,r.lr)(e))},v.destroyAll=function(){for(;a.A.length;){let e=a.A.pop();e&&e()}},v.config=r.FB,v._InternalPanelDoNotUseOrYouWillBeFired=b;let P=v}}]); \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1081-6591d8b32eeed670.js b/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1081-6591d8b32eeed670.js deleted file mode 100644 index 304995c9..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1081-6591d8b32eeed670.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1081],{5006:(e,t,n)=>{n.d(t,{A:()=>o});let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"}},47210:(e,t,n)=>{n.d(t,{A:()=>b});var o=n(79630),r=n(40419),a=n(27061),i=n(21858),d=n(20235),c=n(12115),l=n(29300),s=n.n(l),u=n(40032),f=n(61969);let p=c.memo(function(e){for(var t=e.prefixCls,n=e.level,o=e.isStart,a=e.isEnd,i="".concat(t,"-indent-unit"),d=[],l=0;l{n.d(t,{$s:()=>c,BA:()=>d,BE:()=>f,LI:()=>l,Oh:()=>u,hr:()=>h,kG:()=>s,tg:()=>p});var o=n(85757),r=n(86608),a=n(9587);n(12115),n(47210);var i=n(71954);function d(e,t){if(!e)return[];var n=e.slice(),o=n.indexOf(t);return o>=0&&n.splice(o,1),n}function c(e,t){var n=(e||[]).slice();return -1===n.indexOf(t)&&n.push(t),n}function l(e){return e.split("-")}function s(e,t){var n=[];return!function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];t.forEach(function(t){var o=t.key,r=t.children;n.push(o),e(r)})}((0,i.A)(t,e).children),n}function u(e,t,n,o,r,a,d,c,s,u){var f,p,h=e.clientX,v=e.clientY,g=e.target.getBoundingClientRect(),y=g.top,k=g.height,A=(("rtl"===u?-1:1)*(((null==r?void 0:r.x)||0)-h)-12)/o,b=s.filter(function(e){var t;return null==(t=c[e])||null==(t=t.children)?void 0:t.length}),m=(0,i.A)(c,n.eventKey);if(v-1.5?a({dragNode:D,dropNode:P,dropPosition:1})?w=1:M=!1:a({dragNode:D,dropNode:P,dropPosition:0})?w=0:a({dragNode:D,dropNode:P,dropPosition:1})?w=1:M=!1:a({dragNode:D,dropNode:P,dropPosition:1})?w=1:M=!1,{dropPosition:w,dropLevelOffset:S,dropTargetKey:m.key,dropTargetPos:m.pos,dragOverNodeKey:C,dropContainerKey:0===w?null:(null==(p=m.parent)?void 0:p.key)||null,dropAllowed:M}}function f(e,t){if(e)return t.multiple?e.slice():e.length?[e[0]]:e}function p(e){var t;if(!e)return null;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else{if("object"!==(0,r.A)(e))return(0,a.Ay)(!1,"`checkedKeys` is not an array or an object"),null;t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0}}return t}function h(e,t){var n=new Set;return(e||[]).forEach(function(e){!function e(o){if(!n.has(o)){var r=(0,i.A)(t,o);if(r){n.add(o);var a=r.parent;!r.node.disabled&&a&&e(a.key)}}}(e)}),(0,o.A)(n)}n(94879)},61969:(e,t,n)=>{n.d(t,{Q:()=>a,U:()=>r});var o=n(12115),r=o.createContext(null),a=o.createContext({})},69332:(e,t,n)=>{n.d(t,{A:()=>o});let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"}},71081:(e,t,n)=>{n.d(t,{A:()=>eD});var o=n(79630),r=n(86608),a=n(27061),i=n(85757),d=n(30857),c=n(28383),l=n(55227),s=n(38289),u=n(9424),f=n(40419),p=n(29300),h=n.n(p),v=n(17233),g=n(40032),y=n(9587),k=n(12115),A=n(61969),b=n(71494),m=n(21858),K=n(20235),N=n(49172),x=n(66846),E=n(82870),C=n(47210);let w=function(e,t){var n=k.useState(!1),o=(0,m.A)(n,2),r=o[0],a=o[1];(0,N.A)(function(){if(r)return e(),function(){t()}},[r]),(0,N.A)(function(){return a(!0),function(){a(!1)}},[])};var S=n(94879),O=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],D=k.forwardRef(function(e,t){var n=e.className,r=e.style,a=e.motion,i=e.motionNodes,d=e.motionType,c=e.onMotionStart,l=e.onMotionEnd,s=e.active,u=e.treeNodeRequiredProps,f=(0,K.A)(e,O),p=k.useState(!0),v=(0,m.A)(p,2),g=v[0],y=v[1],x=k.useContext(A.U).prefixCls,D=i&&"hide"!==d;(0,N.A)(function(){i&&D!==g&&y(D)},[i]);var P=k.useRef(!1),M=function(){i&&!P.current&&(P.current=!0,l())};return(w(function(){i&&c()},M),i)?k.createElement(E.Ay,(0,o.A)({ref:t,visible:g},a,{motionAppear:"show"===d,onVisibleChanged:function(e){D===e&&M()}}),function(e,t){var n=e.className,r=e.style;return k.createElement("div",{ref:t,className:h()("".concat(x,"-treenode-motion"),n),style:r},i.map(function(e){var t=Object.assign({},((0,b.A)(e.data),e.data)),n=e.title,r=e.key,a=e.isStart,i=e.isEnd;delete t.children;var d=(0,S.N5)(r,u);return k.createElement(C.A,(0,o.A)({},t,d,{title:n,active:s,data:e.data,key:r,isStart:a,isEnd:i}))}))}):k.createElement(C.A,(0,o.A)({domRef:t,className:n,style:r},f,{active:s}))});function P(e,t,n){var o=e.findIndex(function(e){return e.key===n}),r=e[o+1],a=t.findIndex(function(e){return e.key===n});if(r){var i=t.findIndex(function(e){return e.key===r.key});return t.slice(a+1,i)}return t.slice(a+1)}var M=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],T={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},L=function(){},I="RC_TREE_MOTION_".concat(Math.random()),R={key:I},H={key:I,level:0,index:0,pos:"0",node:R,nodes:[R]},j={parent:null,children:[],pos:H.pos,data:R,title:null,key:I,isStart:[],isEnd:[]};function B(e,t,n,o){return!1!==t&&n?e.slice(0,Math.ceil(n/o)+1):e}function z(e){var t=e.key,n=e.pos;return(0,S.i7)(t,n)}var G=k.forwardRef(function(e,t){var n=e.prefixCls,r=e.data,a=(e.selectable,e.checkable,e.expandedKeys),i=e.selectedKeys,d=e.checkedKeys,c=e.loadedKeys,l=e.loadingKeys,s=e.halfCheckedKeys,u=e.keyEntities,f=e.disabled,p=e.dragging,h=e.dragOverNodeKey,v=e.dropPosition,g=e.motion,y=e.height,A=e.itemHeight,E=e.virtual,C=e.scrollWidth,w=e.focusable,O=e.activeItem,R=e.focused,H=e.tabIndex,G=e.onKeyDown,_=e.onFocus,q=e.onBlur,U=e.onActiveChange,V=e.onListChangeStart,W=e.onListChangeEnd,F=(0,K.A)(e,M),$=k.useRef(null),X=k.useRef(null);k.useImperativeHandle(t,function(){return{scrollTo:function(e){$.current.scrollTo(e)},getIndentWidth:function(){return X.current.offsetWidth}}});var Z=k.useState(a),Q=(0,m.A)(Z,2),Y=Q[0],J=Q[1],ee=k.useState(r),et=(0,m.A)(ee,2),en=et[0],eo=et[1],er=k.useState(r),ea=(0,m.A)(er,2),ei=ea[0],ed=ea[1],ec=k.useState([]),el=(0,m.A)(ec,2),es=el[0],eu=el[1],ef=k.useState(null),ep=(0,m.A)(ef,2),eh=ep[0],ev=ep[1],eg=k.useRef(r);function ey(){var e=eg.current;eo(e),ed(e),eu([]),ev(null),W()}eg.current=r,(0,N.A)(function(){J(a);var e=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=e.length,o=t.length;if(1!==Math.abs(n-o))return{add:!1,key:null};function r(e,t){var n=new Map;e.forEach(function(e){n.set(e,!0)});var o=t.filter(function(e){return!n.has(e)});return 1===o.length?o[0]:null}return n ").concat(t);return t}(O)),k.createElement("div",null,k.createElement("input",{style:T,disabled:!1===w||f,tabIndex:!1!==w?H:null,onKeyDown:G,onFocus:_,onBlur:q,value:"",onChange:L,"aria-label":"for screen reader"})),k.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},k.createElement("div",{className:"".concat(n,"-indent")},k.createElement("div",{ref:X,className:"".concat(n,"-indent-unit")}))),k.createElement(x.A,(0,o.A)({},F,{data:ek,itemKey:z,height:y,fullHeight:!1,virtual:E,itemHeight:A,scrollWidth:C,prefixCls:"".concat(n,"-list"),ref:$,role:"tree",onVisibleChange:function(e){e.every(function(e){return z(e)!==I})&&ey()}}),function(e){var t=e.pos,n=Object.assign({},((0,b.A)(e.data),e.data)),r=e.title,a=e.key,i=e.isStart,d=e.isEnd,c=(0,S.i7)(a,t);delete n.key,delete n.children;var l=(0,S.N5)(c,eA);return k.createElement(D,(0,o.A)({},n,l,{title:r,active:!!O&&a===O.key,pos:t,data:e.data,isStart:i,isEnd:d,motion:g,motionNodes:a===I?es:null,motionType:eh,onMotionStart:V,onMotionEnd:ey,treeNodeRequiredProps:eA,onMouseMove:function(){U(null)}}))}))}),_=n(51685),q=n(92629),U=n(71954),V=function(e){(0,s.A)(n,e);var t=(0,u.A)(n);function n(){var e;(0,d.A)(this,n);for(var o=arguments.length,r=Array(o),c=0;c2&&void 0!==arguments[2]&&arguments[2],i=e.state,d=i.dragChildrenKeys,c=i.dropPosition,l=i.dropTargetKey,s=i.dropTargetPos;if(i.dropAllowed){var u=e.props.onDrop;if(e.setState({dragOverNodeKey:null}),e.cleanDragState(),null!==l){var f=(0,a.A)((0,a.A)({},(0,S.N5)(l,e.getTreeNodeRequiredProps())),{},{active:(null==(o=e.getActiveItem())?void 0:o.key)===l,data:(0,U.A)(e.state.keyEntities,l).node}),p=d.includes(l);(0,y.Ay)(!p,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var h=(0,_.LI)(s),v={event:t,node:(0,S.Hj)(f),dragNode:e.dragNodeProps?(0,S.Hj)(e.dragNodeProps):null,dragNodesKeys:[e.dragNodeProps.eventKey].concat(d),dropToGap:0!==c,dropPosition:c+Number(h[h.length-1])};r||null==u||u(v),e.dragNodeProps=null}}}),(0,f.A)((0,l.A)(e),"cleanDragState",function(){null!==e.state.draggingNodeKey&&e.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),e.dragStartMousePosition=null,e.currentMouseOverDroppableNodeKey=null}),(0,f.A)((0,l.A)(e),"triggerExpandActionExpand",function(t,n){var o=e.state,r=o.expandedKeys,i=o.flattenNodes,d=n.expanded,c=n.key;if(!n.isLeaf&&!t.shiftKey&&!t.metaKey&&!t.ctrlKey){var l=i.filter(function(e){return e.key===c})[0],s=(0,S.Hj)((0,a.A)((0,a.A)({},(0,S.N5)(c,e.getTreeNodeRequiredProps())),{},{data:l.data}));e.setExpandedKeys(d?(0,_.BA)(r,c):(0,_.$s)(r,c)),e.onNodeExpand(t,s)}}),(0,f.A)((0,l.A)(e),"onNodeClick",function(t,n){var o=e.props,r=o.onClick;"click"===o.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)}),(0,f.A)((0,l.A)(e),"onNodeDoubleClick",function(t,n){var o=e.props,r=o.onDoubleClick;"doubleClick"===o.expandAction&&e.triggerExpandActionExpand(t,n),null==r||r(t,n)}),(0,f.A)((0,l.A)(e),"onNodeSelect",function(t,n){var o=e.state.selectedKeys,r=e.state,a=r.keyEntities,i=r.fieldNames,d=e.props,c=d.onSelect,l=d.multiple,s=n.selected,u=n[i.key],f=!s,p=(o=f?l?(0,_.$s)(o,u):[u]:(0,_.BA)(o,u)).map(function(e){var t=(0,U.A)(a,e);return t?t.node:null}).filter(Boolean);e.setUncontrolledState({selectedKeys:o}),null==c||c(o,{event:"select",selected:f,node:n,selectedNodes:p,nativeEvent:t.nativeEvent})}),(0,f.A)((0,l.A)(e),"onNodeCheck",function(t,n,o){var r,a=e.state,d=a.keyEntities,c=a.checkedKeys,l=a.halfCheckedKeys,s=e.props,u=s.checkStrictly,f=s.onCheck,p=n.key,h={event:"check",node:n,checked:o,nativeEvent:t.nativeEvent};if(u){var v=o?(0,_.$s)(c,p):(0,_.BA)(c,p);r={checked:v,halfChecked:(0,_.BA)(l,p)},h.checkedNodes=v.map(function(e){return(0,U.A)(d,e)}).filter(Boolean).map(function(e){return e.node}),e.setUncontrolledState({checkedKeys:v})}else{var g=(0,q.p)([].concat((0,i.A)(c),[p]),!0,d),y=g.checkedKeys,k=g.halfCheckedKeys;if(!o){var A=new Set(y);A.delete(p);var b=(0,q.p)(Array.from(A),{checked:!1,halfCheckedKeys:k},d);y=b.checkedKeys,k=b.halfCheckedKeys}r=y,h.checkedNodes=[],h.checkedNodesPositions=[],h.halfCheckedKeys=k,y.forEach(function(e){var t=(0,U.A)(d,e);if(t){var n=t.node,o=t.pos;h.checkedNodes.push(n),h.checkedNodesPositions.push({node:n,pos:o})}}),e.setUncontrolledState({checkedKeys:y},!1,{halfCheckedKeys:k})}null==f||f(r,h)}),(0,f.A)((0,l.A)(e),"onNodeLoad",function(t){var n,o=t.key,r=e.state.keyEntities,a=(0,U.A)(r,o);if(null==a||null==(n=a.children)||!n.length){var i=new Promise(function(n,r){e.setState(function(a){var i=a.loadedKeys,d=a.loadingKeys,c=void 0===d?[]:d,l=e.props,s=l.loadData,u=l.onLoad;return!s||(void 0===i?[]:i).includes(o)||c.includes(o)?null:(s(t).then(function(){var r=e.state.loadedKeys,a=(0,_.$s)(r,o);null==u||u(a,{event:"load",node:t}),e.setUncontrolledState({loadedKeys:a}),e.setState(function(e){return{loadingKeys:(0,_.BA)(e.loadingKeys,o)}}),n()}).catch(function(t){if(e.setState(function(e){return{loadingKeys:(0,_.BA)(e.loadingKeys,o)}}),e.loadingRetryTimes[o]=(e.loadingRetryTimes[o]||0)+1,e.loadingRetryTimes[o]>=10){var a=e.state.loadedKeys;(0,y.Ay)(!1,"Retry for `loadData` many times but still failed. No more retry."),e.setUncontrolledState({loadedKeys:(0,_.$s)(a,o)}),n()}r(t)}),{loadingKeys:(0,_.$s)(c,o)})})});return i.catch(function(){}),i}}),(0,f.A)((0,l.A)(e),"onNodeMouseEnter",function(t,n){var o=e.props.onMouseEnter;null==o||o({event:t,node:n})}),(0,f.A)((0,l.A)(e),"onNodeMouseLeave",function(t,n){var o=e.props.onMouseLeave;null==o||o({event:t,node:n})}),(0,f.A)((0,l.A)(e),"onNodeContextMenu",function(t,n){var o=e.props.onRightClick;o&&(t.preventDefault(),o({event:t,node:n}))}),(0,f.A)((0,l.A)(e),"onFocus",function(){var t=e.props.onFocus;e.setState({focused:!0});for(var n=arguments.length,o=Array(n),r=0;r1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(!e.destroyed){var r=!1,i=!0,d={};Object.keys(t).forEach(function(n){if(e.props.hasOwnProperty(n)){i=!1;return}r=!0,d[n]=t[n]}),r&&(!n||i)&&e.setState((0,a.A)((0,a.A)({},d),o))}}),(0,f.A)((0,l.A)(e),"scrollTo",function(t){e.listRef.current.scrollTo(t)}),e}return(0,c.A)(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var e=this.props,t=e.activeKey,n=e.itemScrollOffset;void 0!==t&&t!==this.state.activeKey&&(this.setState({activeKey:t}),null!==t&&this.scrollTo({key:t,offset:void 0===n?0:n}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var e,t=this.state,n=t.focused,a=t.flattenNodes,i=t.keyEntities,d=t.draggingNodeKey,c=t.activeKey,l=t.dropLevelOffset,s=t.dropContainerKey,u=t.dropTargetKey,p=t.dropPosition,v=t.dragOverNodeKey,y=t.indent,b=this.props,m=b.prefixCls,K=b.className,N=b.style,x=b.showLine,E=b.focusable,C=b.tabIndex,w=b.selectable,S=b.showIcon,O=b.icon,D=b.switcherIcon,P=b.draggable,M=b.checkable,T=b.checkStrictly,L=b.disabled,I=b.motion,R=b.loadData,H=b.filterTreeNode,j=b.height,B=b.itemHeight,z=b.scrollWidth,_=b.virtual,q=b.titleRender,U=b.dropIndicatorRender,V=b.onContextMenu,W=b.onScroll,F=b.direction,$=b.rootClassName,X=b.rootStyle,Z=(0,g.A)(this.props,{aria:!0,data:!0});P&&(e="object"===(0,r.A)(P)?P:"function"==typeof P?{nodeDraggable:P}:{});var Q={prefixCls:m,selectable:w,showIcon:S,icon:O,switcherIcon:D,draggable:e,draggingNodeKey:d,checkable:M,checkStrictly:T,disabled:L,keyEntities:i,dropLevelOffset:l,dropContainerKey:s,dropTargetKey:u,dropPosition:p,dragOverNodeKey:v,indent:y,direction:F,dropIndicatorRender:U,loadData:R,filterTreeNode:H,titleRender:q,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return k.createElement(A.U.Provider,{value:Q},k.createElement("div",{className:h()(m,K,$,(0,f.A)((0,f.A)((0,f.A)({},"".concat(m,"-show-line"),x),"".concat(m,"-focused"),n),"".concat(m,"-active-focused"),null!==c)),style:X},k.createElement(G,(0,o.A)({ref:this.listRef,prefixCls:m,style:N,data:a,disabled:L,selectable:w,checkable:!!M,motion:I,dragging:null!==d,height:j,itemHeight:B,virtual:_,focusable:E,focused:n,tabIndex:void 0===C?0:C,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:V,onScroll:W,scrollWidth:z},this.getTreeNodeRequiredProps(),Z))))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n,o,r=t.prevProps,i={prevProps:e};function d(t){return!r&&e.hasOwnProperty(t)||r&&r[t]!==e[t]}var c=t.fieldNames;if(d("fieldNames")&&(i.fieldNames=c=(0,S.AZ)(e.fieldNames)),d("treeData")?n=e.treeData:d("children")&&((0,y.Ay)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),n=(0,S.vH)(e.children)),n){i.treeData=n;var l=(0,S.cG)(n,{fieldNames:c});i.keyEntities=(0,a.A)((0,f.A)({},I,H),l.keyEntities)}var s=i.keyEntities||t.keyEntities;if(d("expandedKeys")||r&&d("autoExpandParent"))i.expandedKeys=e.autoExpandParent||!r&&e.defaultExpandParent?(0,_.hr)(e.expandedKeys,s):e.expandedKeys;else if(!r&&e.defaultExpandAll){var u=(0,a.A)({},s);delete u[I];var p=[];Object.keys(u).forEach(function(e){var t=u[e];t.children&&t.children.length&&p.push(t.key)}),i.expandedKeys=p}else!r&&e.defaultExpandedKeys&&(i.expandedKeys=e.autoExpandParent||e.defaultExpandParent?(0,_.hr)(e.defaultExpandedKeys,s):e.defaultExpandedKeys);if(i.expandedKeys||delete i.expandedKeys,n||i.expandedKeys){var h=(0,S.$9)(n||t.treeData,i.expandedKeys||t.expandedKeys,c);i.flattenNodes=h}if(e.selectable&&(d("selectedKeys")?i.selectedKeys=(0,_.BE)(e.selectedKeys,e):!r&&e.defaultSelectedKeys&&(i.selectedKeys=(0,_.BE)(e.defaultSelectedKeys,e))),e.checkable&&(d("checkedKeys")?o=(0,_.tg)(e.checkedKeys)||{}:!r&&e.defaultCheckedKeys?o=(0,_.tg)(e.defaultCheckedKeys)||{}:n&&(o=(0,_.tg)(e.checkedKeys)||{checkedKeys:t.checkedKeys,halfCheckedKeys:t.halfCheckedKeys}),o)){var v=o,g=v.checkedKeys,k=void 0===g?[]:g,A=v.halfCheckedKeys,b=void 0===A?[]:A;if(!e.checkStrictly){var m=(0,q.p)(k,!0,s);k=m.checkedKeys,b=m.halfCheckedKeys}i.checkedKeys=k,i.halfCheckedKeys=b}return d("loadedKeys")&&(i.loadedKeys=e.loadedKeys),i}}]),n}(k.Component);(0,f.A)(V,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:function(e){var t=e.dropPosition,n=e.dropLevelOffset,o=e.indent,r={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(t){case -1:r.top=0,r.left=-n*o;break;case 1:r.bottom=0,r.left=-n*o;break;case 0:r.bottom=0,r.left=o}return k.createElement("div",{style:r})},allowDrop:function(){return!0},expandAction:!1}),(0,f.A)(V,"TreeNode",C.A);var W=n(69332),F=n(35030),$=k.forwardRef(function(e,t){return k.createElement(F.A,(0,o.A)({},e,{ref:t,icon:W.A}))});let X={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"};var Z=k.forwardRef(function(e,t){return k.createElement(F.A,(0,o.A)({},e,{ref:t,icon:X}))}),Q=n(5006),Y=k.forwardRef(function(e,t){return k.createElement(F.A,(0,o.A)({},e,{ref:t,icon:Q.A}))}),J=n(15982);let ee={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"};var et=k.forwardRef(function(e,t){return k.createElement(F.A,(0,o.A)({},e,{ref:t,icon:ee}))}),en=n(93666),eo=n(44494),er=n(70042),ea=n(99841),ei=n(15542),ed=n(18184),ec=n(35376),el=n(61388),es=n(45431);let eu=new ea.Mo("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),ef=function(e,t){let n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],o=".".concat(e),r=t.calc(t.paddingXS).div(2).equal(),a=(0,el.oX)(t,{treeCls:o,treeNodeCls:"".concat(o,"-treenode"),treeNodePadding:r});return[((e,t)=>{let n,o,{treeCls:r,treeNodeCls:a,treeNodePadding:i,titleHeight:d,indentSize:c,nodeSelectedBg:l,nodeHoverBg:s,colorTextQuaternary:u,controlItemBgActiveDisabled:f}=t;return{[r]:Object.assign(Object.assign({},(0,ed.dF)(t)),{"--rc-virtual-list-scrollbar-bg":t.colorSplit,background:t.colorBgContainer,borderRadius:t.borderRadius,transition:"background-color ".concat(t.motionDurationSlow),"&-rtl":{direction:"rtl"},["&".concat(r,"-rtl ").concat(r,"-switcher_close ").concat(r,"-switcher-icon svg")]:{transform:"rotate(90deg)"},["&-focused:not(:hover):not(".concat(r,"-active-focused)")]:(0,ed.jk)(t),["".concat(r,"-list-holder-inner")]:{alignItems:"flex-start"},["&".concat(r,"-block-node")]:{["".concat(r,"-list-holder-inner")]:{alignItems:"stretch",["".concat(r,"-node-content-wrapper")]:{flex:"auto"},["".concat(a,".dragging:after")]:{position:"absolute",inset:0,border:"1px solid ".concat(t.colorPrimary),opacity:0,animationName:eu,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[a]:{display:"flex",alignItems:"flex-start",marginBottom:i,lineHeight:(0,ea.zA)(d),position:"relative","&:before":{content:'""',position:"absolute",zIndex:1,insetInlineStart:0,width:"100%",top:"100%",height:i},["&-disabled ".concat(r,"-node-content-wrapper")]:{color:t.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}},["".concat(r,"-checkbox-disabled + ").concat(r,"-node-selected,&").concat(a,"-disabled").concat(a,"-selected ").concat(r,"-node-content-wrapper")]:{backgroundColor:f},["".concat(r,"-checkbox-disabled")]:{pointerEvents:"unset"},["&:not(".concat(a,"-disabled)")]:{["".concat(r,"-node-content-wrapper")]:{"&:hover":{color:t.nodeHoverColor}}},["&-active ".concat(r,"-node-content-wrapper")]:{background:t.controlItemBgHover},["&:not(".concat(a,"-disabled).filter-node ").concat(r,"-title")]:{color:t.colorPrimary,fontWeight:t.fontWeightStrong},"&-draggable":{cursor:"grab",["".concat(r,"-draggable-icon")]:{flexShrink:0,width:d,textAlign:"center",visibility:"visible",color:u},["&".concat(a,"-disabled ").concat(r,"-draggable-icon")]:{visibility:"hidden"}}},["".concat(r,"-indent")]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:c}},["".concat(r,"-draggable-icon")]:{visibility:"hidden"},["".concat(r,"-switcher, ").concat(r,"-checkbox")]:{marginInlineEnd:t.calc(t.calc(d).sub(t.controlInteractiveSize)).div(2).equal()},["".concat(r,"-switcher")]:Object.assign(Object.assign({},{[".".concat(e,"-switcher-icon")]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:"transform ".concat(t.motionDurationSlow)}}}),{position:"relative",flex:"none",alignSelf:"stretch",width:d,textAlign:"center",cursor:"pointer",userSelect:"none",transition:"all ".concat(t.motionDurationSlow),"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:d,height:d,position:"absolute",left:{_skip_check_:!0,value:0},top:0,borderRadius:t.borderRadius,transition:"all ".concat(t.motionDurationSlow)},["&:not(".concat(r,"-switcher-noop):hover:before")]:{backgroundColor:t.colorBgTextHover},["&_close ".concat(r,"-switcher-icon svg")]:{transform:"rotate(-90deg)"},"&-loading-icon":{color:t.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(d).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),marginInlineStart:-1,borderInlineEnd:"1px solid ".concat(t.colorBorder),content:'""'},"&:after":{position:"absolute",width:t.calc(t.calc(d).div(2).equal()).mul(.8).equal(),height:t.calc(d).div(2).equal(),borderBottom:"1px solid ".concat(t.colorBorder),content:'""'}}}),["".concat(r,"-node-content-wrapper")]:Object.assign(Object.assign({position:"relative",minHeight:d,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:"all ".concat(t.motionDurationMid,", border 0s, line-height 0s, box-shadow 0s")},(n=e,o=t,{[".".concat(n,"-drop-indicator")]:{position:"absolute",zIndex:1,height:2,backgroundColor:o.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:"".concat((0,ea.zA)(o.lineWidthBold)," solid ").concat(o.colorPrimary),borderRadius:"50%",content:'""'}}})),{"&:hover":{backgroundColor:s},["&".concat(r,"-node-selected")]:{color:t.nodeSelectedColor,backgroundColor:l},["".concat(r,"-iconEle")]:{display:"inline-block",width:d,height:d,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}}),["".concat(r,"-unselectable ").concat(r,"-node-content-wrapper:hover")]:{backgroundColor:"transparent"},["".concat(a,".drop-container > [draggable]")]:{boxShadow:"0 0 0 2px ".concat(t.colorPrimary)},"&-show-line":{["".concat(r,"-indent-unit")]:{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:t.calc(d).div(2).equal(),bottom:t.calc(i).mul(-1).equal(),borderInlineEnd:"1px solid ".concat(t.colorBorder),content:'""'},"&-end:before":{display:"none"}},["".concat(r,"-switcher")]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},["".concat(a,"-leaf-last ").concat(r,"-switcher-leaf-line:before")]:{top:"auto !important",bottom:"auto !important",height:"".concat((0,ea.zA)(t.calc(d).div(2).equal())," !important")}})}})(e,a),n&&(e=>{let{treeCls:t,treeNodeCls:n,directoryNodeSelectedBg:o,directoryNodeSelectedColor:r,motionDurationMid:a,borderRadius:i,controlItemBgHover:d}=e;return{["".concat(t).concat(t,"-directory ").concat(n)]:{["".concat(t,"-node-content-wrapper")]:{position:"static",["&:has(".concat(t,"-drop-indicator)")]:{position:"relative"},["> *:not(".concat(t,"-drop-indicator)")]:{position:"relative"},"&:hover":{background:"transparent"},"&:before":{position:"absolute",inset:0,transition:"background-color ".concat(a),content:'""',borderRadius:i},"&:hover:before":{background:d}},["".concat(t,"-switcher, ").concat(t,"-checkbox, ").concat(t,"-draggable-icon")]:{zIndex:1},"&-selected":{background:o,borderRadius:i,["".concat(t,"-switcher, ").concat(t,"-draggable-icon")]:{color:r},["".concat(t,"-node-content-wrapper")]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:o}}}}}})(a)].filter(Boolean)},ep=(0,es.OF)("Tree",(e,t)=>{let{prefixCls:n}=t;return[{[e.componentCls]:(0,ei.gd)("".concat(n,"-checkbox"),e)},ef(n,e),(0,ec.A)(e)]},e=>{let{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},(e=>{let{controlHeightSM:t,controlItemBgHover:n,controlItemBgActive:o}=e;return{titleHeight:t,indentSize:t,nodeHoverBg:n,nodeHoverColor:e.colorText,nodeSelectedBg:o,nodeSelectedColor:e.colorText}})(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})}),eh=function(e){let{dropPosition:t,dropLevelOffset:n,prefixCls:o,indent:r,direction:a="ltr"}=e,i="ltr"===a?"left":"right",d={[i]:-n*r+4,["ltr"===a?"right":"left"]:0};switch(t){case -1:d.top=-3;break;case 1:d.bottom=-3;break;default:d.bottom=-3,d[i]=r+4}return k.createElement("div",{style:d,className:"".concat(o,"-drop-indicator")})},ev={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"};var eg=k.forwardRef(function(e,t){return k.createElement(F.A,(0,o.A)({},e,{ref:t,icon:ev}))}),ey=n(51280);let ek={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"};var eA=k.forwardRef(function(e,t){return k.createElement(F.A,(0,o.A)({},e,{ref:t,icon:ek}))});let eb={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"};var em=k.forwardRef(function(e,t){return k.createElement(F.A,(0,o.A)({},e,{ref:t,icon:eb}))}),eK=n(80163);let eN=e=>{var t,n;let o,{prefixCls:r,switcherIcon:a,treeNodeProps:i,showLine:d,switcherLoadingIcon:c}=e,{isLeaf:l,expanded:s,loading:u}=i;if(u)return k.isValidElement(c)?c:k.createElement(ey.A,{className:"".concat(r,"-switcher-loading-icon")});if(d&&"object"==typeof d&&(o=d.showLeafIcon),l){if(!d)return null;if("boolean"!=typeof o&&o){let e="function"==typeof o?o(i):o,n="".concat(r,"-switcher-line-custom-icon");return k.isValidElement(e)?(0,eK.Ob)(e,{className:h()(null==(t=e.props)?void 0:t.className,n)}):e}return o?k.createElement($,{className:"".concat(r,"-switcher-line-icon")}):k.createElement("span",{className:"".concat(r,"-switcher-leaf-line")})}let f="".concat(r,"-switcher-icon"),p="function"==typeof a?a(i):a;return k.isValidElement(p)?(0,eK.Ob)(p,{className:h()(null==(n=p.props)?void 0:n.className,f)}):void 0!==p?p:d?s?k.createElement(eA,{className:"".concat(r,"-switcher-line-icon")}):k.createElement(em,{className:"".concat(r,"-switcher-line-icon")}):k.createElement(eg,{className:f})},ex=k.forwardRef((e,t)=>{var n;let{getPrefixCls:o,direction:r,virtual:a,tree:i}=k.useContext(J.QO),{prefixCls:d,className:c,showIcon:l=!1,showLine:s,switcherIcon:u,switcherLoadingIcon:f,blockNode:p=!1,children:v,checkable:g=!1,selectable:y=!0,draggable:A,disabled:b,motion:m,style:K}=e,N=o("tree",d),x=o(),E=k.useContext(eo.A),C=null!=b?b:E,w=null!=m?m:Object.assign(Object.assign({},(0,en.A)(x)),{motionAppear:!1}),S=Object.assign(Object.assign({},e),{checkable:g,selectable:y,showIcon:l,motion:w,blockNode:p,disabled:C,showLine:!!s,dropIndicatorRender:eh}),[O,D,P]=ep(N),[,M]=(0,er.Ay)(),T=M.paddingXS/2+((null==(n=M.Tree)?void 0:n.titleHeight)||M.controlHeightSM),L=k.useMemo(()=>{if(!A)return!1;let e={};switch(typeof A){case"function":e.nodeDraggable=A;break;case"object":e=Object.assign({},A)}return!1!==e.icon&&(e.icon=e.icon||k.createElement(et,null)),e},[A]);return O(k.createElement(V,Object.assign({itemHeight:T,ref:t,virtual:a},S,{style:Object.assign(Object.assign({},null==i?void 0:i.style),K),prefixCls:N,className:h()({["".concat(N,"-icon-hide")]:!l,["".concat(N,"-block-node")]:p,["".concat(N,"-unselectable")]:!y,["".concat(N,"-rtl")]:"rtl"===r,["".concat(N,"-disabled")]:C},null==i?void 0:i.className,c,D,P),direction:r,checkable:g?k.createElement("span",{className:"".concat(N,"-checkbox-inner")}):g,selectable:y,switcherIcon:e=>k.createElement(eN,{prefixCls:N,switcherIcon:u,switcherLoadingIcon:f,treeNodeProps:e,showLine:s}),draggable:L}),v))});function eE(e,t,n){let{key:o,children:r}=n;e.forEach(function(e){let a=e[o],i=e[r];!1!==t(a,e)&&eE(i||[],t,n)})}var eC=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);rt.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};function ew(e){let{isLeaf:t,expanded:n}=e;return t?k.createElement($,null):n?k.createElement(Z,null):k.createElement(Y,null)}function eS(e){let{treeData:t,children:n}=e;return t||(0,S.vH)(n)}let eO=k.forwardRef((e,t)=>{var{defaultExpandAll:n,defaultExpandParent:o,defaultExpandedKeys:r}=e,a=eC(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);let d=k.useRef(null),c=k.useRef(null),[l,s]=k.useState(a.selectedKeys||a.defaultSelectedKeys||[]),[u,f]=k.useState(()=>(()=>{let{keyEntities:e}=(0,S.cG)(eS(a),{fieldNames:a.fieldNames});return n?Object.keys(e):o?(0,_.hr)(a.expandedKeys||r||[],e):a.expandedKeys||r||[]})());k.useEffect(()=>{"selectedKeys"in a&&s(a.selectedKeys)},[a.selectedKeys]),k.useEffect(()=>{"expandedKeys"in a&&f(a.expandedKeys)},[a.expandedKeys]);let{getPrefixCls:p,direction:v}=k.useContext(J.QO),{prefixCls:g,className:y,showIcon:A=!0,expandAction:b="click"}=a,m=eC(a,["prefixCls","className","showIcon","expandAction"]),K=p("tree",g),N=h()("".concat(K,"-directory"),{["".concat(K,"-directory-rtl")]:"rtl"===v},y);return k.createElement(ex,Object.assign({icon:ew,ref:t,blockNode:!0},m,{showIcon:A,expandAction:b,prefixCls:K,className:N,expandedKeys:u,selectedKeys:l,onSelect:(e,t)=>{var n;let o,{multiple:r,fieldNames:l}=a,{node:f,nativeEvent:p}=t,{key:h=""}=f,v=eS(a),g=Object.assign(Object.assign({},t),{selected:!0}),y=(null==p?void 0:p.ctrlKey)||(null==p?void 0:p.metaKey),k=null==p?void 0:p.shiftKey;r&&y?(o=e,d.current=h,c.current=o):r&&k?o=Array.from(new Set([].concat((0,i.A)(c.current||[]),(0,i.A)(function(e){let{treeData:t,expandedKeys:n,startKey:o,endKey:r,fieldNames:a}=e,i=[],d=0;return o&&o===r?[o]:o&&r?(eE(t,e=>{if(2===d)return!1;if(e===o||e===r){if(i.push(e),0===d)d=1;else if(1===d)return d=2,!1}else 1===d&&i.push(e);return n.includes(e)},(0,S.AZ)(a)),i):[]}({treeData:v,expandedKeys:u,startKey:h,endKey:d.current,fieldNames:l}))))):(o=[h],d.current=h,c.current=o),g.selectedNodes=function(e,t,n){let o=(0,i.A)(t),r=[];return eE(e,(e,t)=>{let n=o.indexOf(e);return -1!==n&&(r.push(t),o.splice(n,1)),!!o.length},(0,S.AZ)(n)),r}(v,o,l),null==(n=a.onSelect)||n.call(a,o,g),"selectedKeys"in a||s(o)},onExpand:(e,t)=>{var n;return"expandedKeys"in a||f(e),null==(n=a.onExpand)?void 0:n.call(a,e,t)}}))});ex.DirectoryTree=eO,ex.TreeNode=C.A;let eD=ex},71954:(e,t,n)=>{n.d(t,{A:()=>o});function o(e,t){return e[t]}},92629:(e,t,n)=>{n.d(t,{p:()=>d});var o=n(9587),r=n(71954);function a(e,t){var n=new Set;return e.forEach(function(e){t.has(e)||n.add(e)}),n}function i(e){var t=e||{},n=t.disabled,o=t.disableCheckbox,r=t.checkable;return!!(n||o)||!1===r}function d(e,t,n,d){var c,l=[];c=d||i;var s=new Set(e.filter(function(e){var t=!!(0,r.A)(n,e);return t||l.push(e),t})),u=new Map,f=0;return Object.keys(n).forEach(function(e){var t=n[e],o=t.level,r=u.get(o);r||(r=new Set,u.set(o,r)),r.add(t),f=Math.max(f,o)}),(0,o.Ay)(!l.length,"Tree missing follow keys: ".concat(l.slice(0,100).map(function(e){return"'".concat(e,"'")}).join(", "))),!0===t?function(e,t,n,o){for(var r=new Set(e),i=new Set,d=0;d<=n;d+=1)(t.get(d)||new Set).forEach(function(e){var t=e.key,n=e.node,a=e.children,i=void 0===a?[]:a;r.has(t)&&!o(n)&&i.filter(function(e){return!o(e.node)}).forEach(function(e){r.add(e.key)})});for(var c=new Set,l=n;l>=0;l-=1)(t.get(l)||new Set).forEach(function(e){var t=e.parent;if(!(o(e.node)||!e.parent||c.has(e.parent.key))){if(o(e.parent.node))return void c.add(t.key);var n=!0,a=!1;(t.children||[]).filter(function(e){return!o(e.node)}).forEach(function(e){var t=e.key,o=r.has(t);n&&!o&&(n=!1),!a&&(o||i.has(t))&&(a=!0)}),n&&r.add(t.key),a&&i.add(t.key),c.add(t.key)}});return{checkedKeys:Array.from(r),halfCheckedKeys:Array.from(a(i,r))}}(s,u,f,c):function(e,t,n,o,r){for(var i=new Set(e),d=new Set(t),c=0;c<=o;c+=1)(n.get(c)||new Set).forEach(function(e){var t=e.key,n=e.node,o=e.children,a=void 0===o?[]:o;i.has(t)||d.has(t)||r(n)||a.filter(function(e){return!r(e.node)}).forEach(function(e){i.delete(e.key)})});d=new Set;for(var l=new Set,s=o;s>=0;s-=1)(n.get(s)||new Set).forEach(function(e){var t=e.parent;if(!(r(e.node)||!e.parent||l.has(e.parent.key))){if(r(e.parent.node))return void l.add(t.key);var n=!0,o=!1;(t.children||[]).filter(function(e){return!r(e.node)}).forEach(function(e){var t=e.key,r=i.has(t);n&&!r&&(n=!1),!o&&(r||d.has(t))&&(o=!0)}),n||i.delete(t.key),o&&d.add(t.key),l.add(t.key)}});return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(a(d,i))}}(s,t.halfCheckedKeys,u,f,c)}},94879:(e,t,n)=>{n.d(t,{$9:()=>g,AZ:()=>h,Hj:()=>A,N5:()=>k,cG:()=>y,i7:()=>p,vH:()=>v});var o=n(86608),r=n(85757),a=n(27061),i=n(20235),d=n(63715),c=n(17980),l=n(9587),s=n(71954),u=["children"];function f(e,t){return"".concat(e,"-").concat(t)}function p(e,t){return null!=e?e:t}function h(e){var t=e||{},n=t.title,o=t._title,r=t.key,a=t.children,i=n||"title";return{title:i,_title:o||[i],key:r||"key",children:a||"children"}}function v(e){return function e(t){return(0,d.A)(t).map(function(t){if(!(t&&t.type&&t.type.isTreeNode))return(0,l.Ay)(!t,"Tree/TreeNode can only accept TreeNode as children."),null;var n=t.key,o=t.props,r=o.children,d=(0,i.A)(o,u),c=(0,a.A)({key:n},d),s=e(r);return s.length&&(c.children=s),c}).filter(function(e){return e})}(e)}function g(e,t,n){var o=h(n),a=o._title,i=o.key,d=o.children,l=new Set(!0===t?[]:t),s=[];return!function e(n){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return n.map(function(u,h){for(var v,g=f(o?o.pos:"0",h),y=p(u[i],g),k=0;k1&&void 0!==arguments[1]?arguments[1]:{},y=g.initWrapper,k=g.processEntity,A=g.onProcessFinished,b=g.externalGetKey,m=g.childrenPropName,K=g.fieldNames,N=arguments.length>2?arguments[2]:void 0,x={},E={},C={posEntities:x,keyEntities:E};return y&&(C=y(C)||C),t=function(e){var t=e.node,n=e.index,o=e.pos,r=e.key,a=e.parentPos,i=e.level,d={node:t,nodes:e.nodes,index:n,key:r,pos:o,level:i},c=p(r,o);x[o]=d,E[c]=d,d.parent=x[a],d.parent&&(d.parent.children=d.parent.children||[],d.parent.children.push(d)),k&&k(d,C)},n={externalGetKey:b||N,childrenPropName:m,fieldNames:K},d=(i=("object"===(0,o.A)(n)?n:{externalGetKey:n})||{}).childrenPropName,c=i.externalGetKey,s=(l=h(i.fieldNames)).key,u=l.children,v=d||u,c?"string"==typeof c?a=function(e){return e[c]}:"function"==typeof c&&(a=function(e){return c(e)}):a=function(e,t){return p(e[s],t)},function n(o,i,d,c){var l=o?o[v]:e,s=o?f(d.pos,i):"0",u=o?[].concat((0,r.A)(c),[o]):[];if(o){var p=a(o,s);t({node:o,index:i,pos:s,key:p,parentPos:d.node?d.pos:null,level:d.level+1,nodes:u})}l&&l.forEach(function(e,t){n(e,t,{node:o,pos:s,level:d?d.level+1:-1},u)})}(null),A&&A(C),C}function k(e,t){var n=t.expandedKeys,o=t.selectedKeys,r=t.loadedKeys,a=t.loadingKeys,i=t.checkedKeys,d=t.halfCheckedKeys,c=t.dragOverNodeKey,l=t.dropPosition,u=t.keyEntities,f=(0,s.A)(u,e);return{eventKey:e,expanded:-1!==n.indexOf(e),selected:-1!==o.indexOf(e),loaded:-1!==r.indexOf(e),loading:-1!==a.indexOf(e),checked:-1!==i.indexOf(e),halfChecked:-1!==d.indexOf(e),pos:String(f?f.pos:""),dragOver:c===e&&0===l,dragOverGapTop:c===e&&-1===l,dragOverGapBottom:c===e&&1===l}}function A(e){var t=e.data,n=e.expanded,o=e.selected,r=e.checked,i=e.loaded,d=e.loading,c=e.halfChecked,s=e.dragOver,u=e.dragOverGapTop,f=e.dragOverGapBottom,p=e.pos,h=e.active,v=e.eventKey,g=(0,a.A)((0,a.A)({},t),{},{expanded:n,selected:o,checked:r,loaded:i,loading:d,halfChecked:c,dragOver:s,dragOverGapTop:u,dragOverGapBottom:f,pos:p,active:h,key:v});return"props"in g||Object.defineProperty(g,"props",{get:function(){return(0,l.Ay)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),g}}}]); \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1156-5bd54c6ebcd30da7.js b/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1156-5bd54c6ebcd30da7.js deleted file mode 100644 index 21a77bd1..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1156-5bd54c6ebcd30da7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1156],{3377:(t,n,e)=>{e.d(n,{A:()=>r});var c=e(12115),i=e(32110),a=e(75659);function o(){return(o=Object.assign?Object.assign.bind():function(t){for(var n=1;nc.createElement(a.A,o({},t,{ref:n,icon:i.A})))},18610:(t,n,e)=>{e.d(n,{A:()=>r});var c=e(12115),i=e(50585),a=e(75659);function o(){return(o=Object.assign?Object.assign.bind():function(t){for(var n=1;nc.createElement(a.A,o({},t,{ref:n,icon:i.A})))},25953:(t,n,e)=>{e.d(n,{A:()=>r});var c=e(12115);let i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"}}]},name:"book",theme:"outlined"};var a=e(75659);function o(){return(o=Object.assign?Object.assign.bind():function(t){for(var n=1;nc.createElement(a.A,o({},t,{ref:n,icon:i})))},32430:(t,n,e)=>{e.d(n,{A:()=>r});var c=e(12115);let i={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42zm101.3 129.3c1.3-5.4 6.1-9.3 11.7-9.3h35.6a12.04 12.04 0 0111.6 15.1l-74.4 276c-1.4 5.3-6.2 8.9-11.6 8.9h-31.8c-5.4 0-10.2-3.7-11.6-8.9l-52.8-197-52.8 197c-1.4 5.3-6.2 8.9-11.6 8.9h-32c-5.4 0-10.2-3.7-11.6-8.9l-74.2-276a12.02 12.02 0 0111.6-15.1h35.4c5.6 0 10.4 3.9 11.7 9.3L434.6 680l49.7-198.9c1.3-5.4 6.1-9.1 11.6-9.1h32.2c5.5 0 10.3 3.7 11.6 9.1l49.8 199.3 45.8-199.1z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}},{tag:"path",attrs:{d:"M528.1 472h-32.2c-5.5 0-10.3 3.7-11.6 9.1L434.6 680l-46.1-198.7c-1.3-5.4-6.1-9.3-11.7-9.3h-35.4a12.02 12.02 0 00-11.6 15.1l74.2 276c1.4 5.2 6.2 8.9 11.6 8.9h32c5.4 0 10.2-3.6 11.6-8.9l52.8-197 52.8 197c1.4 5.2 6.2 8.9 11.6 8.9h31.8c5.4 0 10.2-3.6 11.6-8.9l74.4-276a12.04 12.04 0 00-11.6-15.1H647c-5.6 0-10.4 3.9-11.7 9.3l-45.8 199.1-49.8-199.3c-1.3-5.4-6.1-9.1-11.6-9.1z",fill:t}}]}},name:"file-word",theme:"twotone"};var a=e(75659);function o(){return(o=Object.assign?Object.assign.bind():function(t){for(var n=1;nc.createElement(a.A,o({},t,{ref:n,icon:i})))},44641:(t,n,e)=>{e.d(n,{A:()=>r});var c=e(12115);let i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888.3 693.2c-42.5-24.6-94.3-18-129.2 12.8l-53-30.7V523.6c0-15.7-8.4-30.3-22-38.1l-136-78.3v-67.1c44.2-15 76-56.8 76-106.1 0-61.9-50.1-112-112-112s-112 50.1-112 112c0 49.3 31.8 91.1 76 106.1v67.1l-136 78.3c-13.6 7.8-22 22.4-22 38.1v151.6l-53 30.7c-34.9-30.8-86.8-37.4-129.2-12.8-53.5 31-71.7 99.4-41 152.9 30.8 53.5 98.9 71.9 152.2 41 42.5-24.6 62.7-73 53.6-118.8l48.7-28.3 140.6 81c6.8 3.9 14.4 5.9 22 5.9s15.2-2 22-5.9L674.5 740l48.7 28.3c-9.1 45.7 11.2 94.2 53.6 118.8 53.3 30.9 121.5 12.6 152.2-41 30.8-53.6 12.6-122-40.7-152.9zm-673 138.4a47.6 47.6 0 01-65.2-17.6c-13.2-22.9-5.4-52.3 17.5-65.5a47.6 47.6 0 0165.2 17.6c13.2 22.9 5.4 52.3-17.5 65.5zM522 463.8zM464 234a48.01 48.01 0 0196 0 48.01 48.01 0 01-96 0zm170 446.2l-122 70.3-122-70.3V539.8l122-70.3 122 70.3v140.4zm239.9 133.9c-13.2 22.9-42.4 30.8-65.2 17.6-22.8-13.2-30.7-42.6-17.5-65.5s42.4-30.8 65.2-17.6c22.9 13.2 30.7 42.5 17.5 65.5z"}}]},name:"deployment-unit",theme:"outlined"};var a=e(75659);function o(){return(o=Object.assign?Object.assign.bind():function(t){for(var n=1;nc.createElement(a.A,o({},t,{ref:n,icon:i})))},49636:(t,n,e)=>{e.d(n,{A:()=>r});var c=e(12115);let i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M865.3 244.7c-.3-.3-61.1 59.8-182.1 180.6l-84.9-84.9 180.9-180.9c-95.2-57.3-217.5-42.6-296.8 36.7A244.42 244.42 0 00419 432l1.8 6.7-283.5 283.4c-6.2 6.2-6.2 16.4 0 22.6l141.4 141.4c6.2 6.2 16.4 6.2 22.6 0l283.3-283.3 6.7 1.8c83.7 22.3 173.6-.9 236-63.3 79.4-79.3 94.1-201.6 38-296.6z"}}]},name:"tool",theme:"filled"};var a=e(75659);function o(){return(o=Object.assign?Object.assign.bind():function(t){for(var n=1;nc.createElement(a.A,o({},t,{ref:n,icon:i})))},50573:(t,n,e)=>{e.d(n,{A:()=>r});var c=e(12115);let i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM320 482a8 8 0 00-8 8v48a8 8 0 008 8h384a8 8 0 008-8v-48a8 8 0 00-8-8H320zm0 136a8 8 0 00-8 8v48a8 8 0 008 8h184a8 8 0 008-8v-48a8 8 0 00-8-8H320z"}}]},name:"file-text",theme:"filled"};var a=e(75659);function o(){return(o=Object.assign?Object.assign.bind():function(t){for(var n=1;nc.createElement(a.A,o({},t,{ref:n,icon:i})))},52917:(t,n,e)=>{e.d(n,{A:()=>r});var c=e(12115);let i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 244c176.18 0 319 142.82 319 319v233a32 32 0 01-32 32H225a32 32 0 01-32-32V563c0-176.18 142.82-319 319-319zM484 68h56a8 8 0 018 8v96a8 8 0 01-8 8h-56a8 8 0 01-8-8V76a8 8 0 018-8zM177.25 191.66a8 8 0 0111.32 0l67.88 67.88a8 8 0 010 11.31l-39.6 39.6a8 8 0 01-11.31 0l-67.88-67.88a8 8 0 010-11.31l39.6-39.6zm669.6 0l39.6 39.6a8 8 0 010 11.3l-67.88 67.9a8 8 0 01-11.32 0l-39.6-39.6a8 8 0 010-11.32l67.89-67.88a8 8 0 0111.31 0zM192 892h640a32 32 0 0132 32v24a8 8 0 01-8 8H168a8 8 0 01-8-8v-24a32 32 0 0132-32zm148-317v253h64V575h-64z"}}]},name:"alert",theme:"filled"};var a=e(75659);function o(){return(o=Object.assign?Object.assign.bind():function(t){for(var n=1;nc.createElement(a.A,o({},t,{ref:n,icon:i})))},58206:(t,n,e)=>{e.d(n,{A:()=>r});var c=e(12115);let i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M696 480H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"minus-circle",theme:"outlined"};var a=e(75659);function o(){return(o=Object.assign?Object.assign.bind():function(t){for(var n=1;nc.createElement(a.A,o({},t,{ref:n,icon:i})))},59540:(t,n,e)=>{e.d(n,{A:()=>r});var c=e(12115);let i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 370.6c-9.9-39.4 9.9-102.2 73.4-124.4l-67.9-3.6s-25.7-90-143.6-98c-117.9-8.1-195-3-195-3s87.4 55.6 52.4 154.7c-25.6 52.5-65.8 95.6-108.8 144.7-1.3 1.3-2.5 2.6-3.5 3.7C319.4 605 96 860 96 860c245.9 64.4 410.7-6.3 508.2-91.1 20.5-.2 35.9-.3 46.3-.3 135.8 0 250.6-117.6 245.9-248.4-3.2-89.9-31.9-110.2-41.8-149.6z"}}]},name:"yuque",theme:"filled"};var a=e(75659);function o(){return(o=Object.assign?Object.assign.bind():function(t){for(var n=1;nc.createElement(a.A,o({},t,{ref:n,icon:i})))},75606:(t,n,e)=>{e.d(n,{A:()=>r});var c=e(12115);let i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M693.6 284.4c-24 0-51.1 11.7-72.6 22 46.3 18 86 57.3 112.3 99.6 7.1-18.9 14.6-47.9 14.6-67.9 0-32-22.8-53.7-54.3-53.7zM512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm253.9 492.9H437.1c0 100.4 144.3 136 196.8 47.4h120.8c-32.6 91.7-119.7 146-216.8 146-35.1 0-70.3-.1-101.7-15.6-87.4 44.5-180.3 56.6-180.3-42 0-45.8 23.2-107.1 44-145C335 484 381.3 422.8 435.6 374.5c-43.7 18.9-91.1 66.3-122 101.2 25.9-112.8 129.5-193.6 237.1-186.5 130-59.8 209.7-34.1 209.7 38.6 0 27.4-10.6 63.3-21.4 87.9 25.2 45.5 33.3 97.6 26.9 141.2zM540.5 399.1c-53.7 0-102 39.7-104 94.9h208c-2-55.1-50.6-94.9-104-94.9zM320.6 602.9c-73 152.4 11.5 172.2 100.3 123.3-46.6-27.5-82.6-72.2-100.3-123.3z"}}]},name:"ie-circle",theme:"filled"};var a=e(75659);function o(){return(o=Object.assign?Object.assign.bind():function(t){for(var n=1;nc.createElement(a.A,o({},t,{ref:n,icon:i})))},77517:(t,n,e)=>{e.d(n,{A:()=>k});var c=e(12115),i=e(93084),a=e(48776),o=e(29300),r=e.n(o),l=e(79630),s=e(27061),d=e(40419),m=e(20235),p=e(17233),g=["className","prefixCls","style","active","status","iconPrefix","icon","wrapperStyle","stepNumber","disabled","description","title","subTitle","progressDot","stepIcon","tailContent","icons","stepIndex","onStepClick","onClick","render"];function h(t){return"string"==typeof t}let u=function(t){var n,e,i,a,o,u=t.className,f=t.prefixCls,v=t.style,b=t.active,S=t.status,z=t.iconPrefix,y=t.icon,w=(t.wrapperStyle,t.stepNumber),A=t.disabled,O=t.description,I=t.title,C=t.subTitle,j=t.progressDot,x=t.stepIcon,H=t.tailContent,q=t.icons,E=t.stepIndex,k=t.onStepClick,M=t.onClick,T=t.render,B=(0,m.A)(t,g),N={};k&&!A&&(N.role="button",N.tabIndex=0,N.onClick=function(t){null==M||M(t),k(E)},N.onKeyDown=function(t){var n=t.which;(n===p.A.ENTER||n===p.A.SPACE)&&k(E)});var P=S||"wait",W=r()("".concat(f,"-item"),"".concat(f,"-item-").concat(P),u,(o={},(0,d.A)(o,"".concat(f,"-item-custom"),y),(0,d.A)(o,"".concat(f,"-item-active"),b),(0,d.A)(o,"".concat(f,"-item-disabled"),!0===A),o)),X=(0,s.A)({},v),L=c.createElement("div",(0,l.A)({},B,{className:W,style:X}),c.createElement("div",(0,l.A)({onClick:M},N,{className:"".concat(f,"-item-container")}),c.createElement("div",{className:"".concat(f,"-item-tail")},H),c.createElement("div",{className:"".concat(f,"-item-icon")},(i=r()("".concat(f,"-icon"),"".concat(z,"icon"),(n={},(0,d.A)(n,"".concat(z,"icon-").concat(y),y&&h(y)),(0,d.A)(n,"".concat(z,"icon-check"),!y&&"finish"===S&&(q&&!q.finish||!q)),(0,d.A)(n,"".concat(z,"icon-cross"),!y&&"error"===S&&(q&&!q.error||!q)),n)),a=c.createElement("span",{className:"".concat(f,"-icon-dot")}),e=j?"function"==typeof j?c.createElement("span",{className:"".concat(f,"-icon")},j(a,{index:w-1,status:S,title:I,description:O})):c.createElement("span",{className:"".concat(f,"-icon")},a):y&&!h(y)?c.createElement("span",{className:"".concat(f,"-icon")},y):q&&q.finish&&"finish"===S?c.createElement("span",{className:"".concat(f,"-icon")},q.finish):q&&q.error&&"error"===S?c.createElement("span",{className:"".concat(f,"-icon")},q.error):y||"finish"===S||"error"===S?c.createElement("span",{className:i}):c.createElement("span",{className:"".concat(f,"-icon")},w),x&&(e=x({index:w-1,status:S,title:I,description:O,node:e})),e)),c.createElement("div",{className:"".concat(f,"-item-content")},c.createElement("div",{className:"".concat(f,"-item-title")},I,C&&c.createElement("div",{title:"string"==typeof C?C:void 0,className:"".concat(f,"-item-subtitle")},C)),O&&c.createElement("div",{className:"".concat(f,"-item-description")},O))));return T&&(L=T(L)||null),L};var f=["prefixCls","style","className","children","direction","type","labelPlacement","iconPrefix","status","size","current","progressDot","stepIcon","initial","icons","onChange","itemRender","items"];function v(t){var n,e=t.prefixCls,i=void 0===e?"rc-steps":e,a=t.style,o=void 0===a?{}:a,p=t.className,g=(t.children,t.direction),h=t.type,v=void 0===h?"default":h,b=t.labelPlacement,S=t.iconPrefix,z=void 0===S?"rc":S,y=t.status,w=void 0===y?"process":y,A=t.size,O=t.current,I=void 0===O?0:O,C=t.progressDot,j=t.stepIcon,x=t.initial,H=void 0===x?0:x,q=t.icons,E=t.onChange,k=t.itemRender,M=t.items,T=(0,m.A)(t,f),B="inline"===v,N=B||void 0!==C&&C,P=B||void 0===g?"horizontal":g,W=B?void 0:A,X=r()(i,"".concat(i,"-").concat(P),p,(n={},(0,d.A)(n,"".concat(i,"-").concat(W),W),(0,d.A)(n,"".concat(i,"-label-").concat(N?"vertical":void 0===b?"horizontal":b),"horizontal"===P),(0,d.A)(n,"".concat(i,"-dot"),!!N),(0,d.A)(n,"".concat(i,"-navigation"),"navigation"===v),(0,d.A)(n,"".concat(i,"-inline"),B),n)),L=function(t){E&&I!==t&&E(t)};return c.createElement("div",(0,l.A)({className:X,style:o},T),(void 0===M?[]:M).filter(function(t){return t}).map(function(t,n){var e=(0,s.A)({},t),a=H+n;return"error"===w&&n===I-1&&(e.className="".concat(i,"-next-error")),e.status||(a===I?e.status=w:a{let e="".concat(n.componentCls,"-item"),c="".concat(t,"IconColor"),i="".concat(t,"TitleColor"),a="".concat(t,"DescriptionColor"),o="".concat(t,"TailColor"),r="".concat(t,"IconBgColor"),l="".concat(t,"IconBorderColor"),s="".concat(t,"DotColor");return{["".concat(e,"-").concat(t," ").concat(e,"-icon")]:{backgroundColor:n[r],borderColor:n[l],["> ".concat(n.componentCls,"-icon")]:{color:n[c],["".concat(n.componentCls,"-icon-dot")]:{background:n[s]}}},["".concat(e,"-").concat(t).concat(e,"-custom ").concat(e,"-icon")]:{["> ".concat(n.componentCls,"-icon")]:{color:n[s]}},["".concat(e,"-").concat(t," > ").concat(e,"-container > ").concat(e,"-content > ").concat(e,"-title")]:{color:n[i],"&::after":{backgroundColor:n[o]}},["".concat(e,"-").concat(t," > ").concat(e,"-container > ").concat(e,"-content > ").concat(e,"-description")]:{color:n[a]},["".concat(e,"-").concat(t," > ").concat(e,"-container > ").concat(e,"-tail::after")]:{backgroundColor:n[o]}}},x=(0,I.OF)("Steps",t=>{let{colorTextDisabled:n,controlHeightLG:e,colorTextLightSolid:c,colorText:i,colorPrimary:a,colorTextDescription:o,colorTextQuaternary:r,colorError:l,colorBorderSecondary:s,colorSplit:d}=t;return(t=>{let{componentCls:n}=t;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,O.dF)(t)),{display:"flex",width:"100%",fontSize:0,textAlign:"initial"}),(t=>{let{componentCls:n,motionDurationSlow:e}=t,c="".concat(n,"-item"),i="".concat(c,"-icon");return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[c]:{position:"relative",display:"inline-block",flex:1,overflow:"hidden",verticalAlign:"top","&:last-child":{flex:"none",["> ".concat(c,"-container > ").concat(c,"-tail, > ").concat(c,"-container > ").concat(c,"-content > ").concat(c,"-title::after")]:{display:"none"}}},["".concat(c,"-container")]:{outline:"none",["&:focus-visible ".concat(i)]:(0,O.jk)(t)},["".concat(i,", ").concat(c,"-content")]:{display:"inline-block",verticalAlign:"top"},[i]:{width:t.iconSize,height:t.iconSize,marginTop:0,marginBottom:0,marginInlineStart:0,marginInlineEnd:t.marginXS,fontSize:t.iconFontSize,fontFamily:t.fontFamily,lineHeight:(0,A.zA)(t.iconSize),textAlign:"center",borderRadius:t.iconSize,border:"".concat((0,A.zA)(t.lineWidth)," ").concat(t.lineType," transparent"),transition:"background-color ".concat(e,", border-color ").concat(e),["".concat(n,"-icon")]:{position:"relative",top:t.iconTop,color:t.colorPrimary,lineHeight:1}},["".concat(c,"-tail")]:{position:"absolute",top:t.calc(t.iconSize).div(2).equal(),insetInlineStart:0,width:"100%","&::after":{display:"inline-block",width:"100%",height:t.lineWidth,background:t.colorSplit,borderRadius:t.lineWidth,transition:"background ".concat(e),content:'""'}},["".concat(c,"-title")]:{position:"relative",display:"inline-block",paddingInlineEnd:t.padding,color:t.colorText,fontSize:t.fontSizeLG,lineHeight:(0,A.zA)(t.titleLineHeight),"&::after":{position:"absolute",top:t.calc(t.titleLineHeight).div(2).equal(),insetInlineStart:"100%",display:"block",width:9999,height:t.lineWidth,background:t.processTailColor,content:'""'}},["".concat(c,"-subtitle")]:{display:"inline",marginInlineStart:t.marginXS,color:t.colorTextDescription,fontWeight:"normal",fontSize:t.fontSize},["".concat(c,"-description")]:{color:t.colorTextDescription,fontSize:t.fontSize}},j("wait",t)),j("process",t)),{["".concat(c,"-process > ").concat(c,"-container > ").concat(c,"-title")]:{fontWeight:t.fontWeightStrong}}),j("finish",t)),j("error",t)),{["".concat(c).concat(n,"-next-error > ").concat(n,"-item-title::after")]:{background:t.colorError},["".concat(c,"-disabled")]:{cursor:"not-allowed"}})})(t)),(t=>{let{componentCls:n,motionDurationSlow:e}=t;return{["& ".concat(n,"-item")]:{["&:not(".concat(n,"-item-active)")]:{["& > ".concat(n,"-item-container[role='button']")]:{cursor:"pointer",["".concat(n,"-item")]:{["&-title, &-subtitle, &-description, &-icon ".concat(n,"-icon")]:{transition:"color ".concat(e)}},"&:hover":{["".concat(n,"-item")]:{"&-title, &-subtitle, &-description":{color:t.colorPrimary}}}},["&:not(".concat(n,"-item-process)")]:{["& > ".concat(n,"-item-container[role='button']:hover")]:{["".concat(n,"-item")]:{"&-icon":{borderColor:t.colorPrimary,["".concat(n,"-icon")]:{color:t.colorPrimary}}}}}}},["&".concat(n,"-horizontal:not(").concat(n,"-label-vertical)")]:{["".concat(n,"-item")]:{paddingInlineStart:t.padding,whiteSpace:"nowrap","&:first-child":{paddingInlineStart:0},["&:last-child ".concat(n,"-item-title")]:{paddingInlineEnd:0},"&-tail":{display:"none"},"&-description":{maxWidth:t.descriptionMaxWidth,whiteSpace:"normal"}}}}})(t)),(t=>{let{componentCls:n,customIconTop:e,customIconSize:c,customIconFontSize:i}=t;return{["".concat(n,"-item-custom")]:{["> ".concat(n,"-item-container > ").concat(n,"-item-icon")]:{height:"auto",background:"none",border:0,["> ".concat(n,"-icon")]:{top:e,width:c,height:c,fontSize:i,lineHeight:(0,A.zA)(c)}}},["&:not(".concat(n,"-vertical)")]:{["".concat(n,"-item-custom")]:{["".concat(n,"-item-icon")]:{width:"auto",background:"none"}}}}})(t)),(t=>{let{componentCls:n,iconSizeSM:e,fontSizeSM:c,fontSize:i,colorTextDescription:a}=t;return{["&".concat(n,"-small")]:{["&".concat(n,"-horizontal:not(").concat(n,"-label-vertical) ").concat(n,"-item")]:{paddingInlineStart:t.paddingSM,"&:first-child":{paddingInlineStart:0}},["".concat(n,"-item-icon")]:{width:e,height:e,marginTop:0,marginBottom:0,marginInline:"0 ".concat((0,A.zA)(t.marginXS)),fontSize:c,lineHeight:(0,A.zA)(e),textAlign:"center",borderRadius:e},["".concat(n,"-item-title")]:{paddingInlineEnd:t.paddingSM,fontSize:i,lineHeight:(0,A.zA)(e),"&::after":{top:t.calc(e).div(2).equal()}},["".concat(n,"-item-description")]:{color:a,fontSize:i},["".concat(n,"-item-tail")]:{top:t.calc(e).div(2).sub(t.paddingXXS).equal()},["".concat(n,"-item-custom ").concat(n,"-item-icon")]:{width:"inherit",height:"inherit",lineHeight:"inherit",background:"none",border:0,borderRadius:0,["> ".concat(n,"-icon")]:{fontSize:e,lineHeight:(0,A.zA)(e),transform:"none"}}}}})(t)),(t=>{let{componentCls:n,iconSizeSM:e,iconSize:c}=t;return{["&".concat(n,"-vertical")]:{display:"flex",flexDirection:"column",["> ".concat(n,"-item")]:{display:"block",flex:"1 0 auto",paddingInlineStart:0,overflow:"visible",["".concat(n,"-item-icon")]:{float:"left",marginInlineEnd:t.margin},["".concat(n,"-item-content")]:{display:"block",minHeight:t.calc(t.controlHeight).mul(1.5).equal(),overflow:"hidden"},["".concat(n,"-item-title")]:{lineHeight:(0,A.zA)(c)},["".concat(n,"-item-description")]:{paddingBottom:t.paddingSM}},["> ".concat(n,"-item > ").concat(n,"-item-container > ").concat(n,"-item-tail")]:{position:"absolute",top:0,insetInlineStart:t.calc(c).div(2).sub(t.lineWidth).equal(),width:t.lineWidth,height:"100%",padding:"".concat((0,A.zA)(t.calc(t.marginXXS).mul(1.5).add(c).equal())," 0 ").concat((0,A.zA)(t.calc(t.marginXXS).mul(1.5).equal())),"&::after":{width:t.lineWidth,height:"100%"}},["> ".concat(n,"-item:not(:last-child) > ").concat(n,"-item-container > ").concat(n,"-item-tail")]:{display:"block"},[" > ".concat(n,"-item > ").concat(n,"-item-container > ").concat(n,"-item-content > ").concat(n,"-item-title")]:{"&::after":{display:"none"}},["&".concat(n,"-small ").concat(n,"-item-container")]:{["".concat(n,"-item-tail")]:{position:"absolute",top:0,insetInlineStart:t.calc(e).div(2).sub(t.lineWidth).equal(),padding:"".concat((0,A.zA)(t.calc(t.marginXXS).mul(1.5).add(e).equal())," 0 ").concat((0,A.zA)(t.calc(t.marginXXS).mul(1.5).equal()))},["".concat(n,"-item-title")]:{lineHeight:(0,A.zA)(e)}}}}})(t)),(t=>{let{componentCls:n}=t;return{["".concat(n,"-horizontal")]:{["".concat("".concat(n,"-item"),"-tail")]:{transform:"translateY(-50%)"}}}})(t)),(t=>{let{componentCls:n,iconSize:e,lineHeight:c,iconSizeSM:i}=t;return{["&".concat(n,"-label-vertical")]:{["".concat(n,"-item")]:{overflow:"visible","&-tail":{marginInlineStart:t.calc(e).div(2).add(t.controlHeightLG).equal(),padding:"0 ".concat((0,A.zA)(t.paddingLG))},"&-content":{display:"block",width:t.calc(e).div(2).add(t.controlHeightLG).mul(2).equal(),marginTop:t.marginSM,textAlign:"center"},"&-icon":{display:"inline-block",marginInlineStart:t.controlHeightLG},"&-title":{paddingInlineEnd:0,paddingInlineStart:0,"&::after":{display:"none"}},"&-subtitle":{display:"block",marginBottom:t.marginXXS,marginInlineStart:0,lineHeight:c}},["&".concat(n,"-small:not(").concat(n,"-dot)")]:{["".concat(n,"-item")]:{"&-icon":{marginInlineStart:t.calc(e).sub(i).div(2).add(t.controlHeightLG).equal()}}}}}})(t)),(t=>{let{componentCls:n,descriptionMaxWidth:e,lineHeight:c,dotCurrentSize:i,dotSize:a,motionDurationSlow:o}=t;return{["&".concat(n,"-dot, &").concat(n,"-dot").concat(n,"-small")]:{["".concat(n,"-item")]:{"&-title":{lineHeight:c},"&-tail":{top:t.calc(t.dotSize).sub(t.calc(t.lineWidth).mul(3).equal()).div(2).equal(),width:"100%",marginTop:0,marginBottom:0,marginInline:"".concat((0,A.zA)(t.calc(e).div(2).equal())," 0"),padding:0,"&::after":{width:"calc(100% - ".concat((0,A.zA)(t.calc(t.marginSM).mul(2).equal()),")"),height:t.calc(t.lineWidth).mul(3).equal(),marginInlineStart:t.marginSM}},"&-icon":{width:a,height:a,marginInlineStart:t.calc(t.descriptionMaxWidth).sub(a).div(2).equal(),paddingInlineEnd:0,lineHeight:(0,A.zA)(a),background:"transparent",border:0,["".concat(n,"-icon-dot")]:{position:"relative",float:"left",width:"100%",height:"100%",borderRadius:100,transition:"all ".concat(o),"&::after":{position:"absolute",top:t.calc(t.marginSM).mul(-1).equal(),insetInlineStart:t.calc(a).sub(t.calc(t.controlHeightLG).mul(1.5).equal()).div(2).equal(),width:t.calc(t.controlHeightLG).mul(1.5).equal(),height:t.controlHeight,background:"transparent",content:'""'}}},"&-content":{width:e},["&-process ".concat(n,"-item-icon")]:{position:"relative",top:t.calc(a).sub(i).div(2).equal(),width:i,height:i,lineHeight:(0,A.zA)(i),background:"none",marginInlineStart:t.calc(t.descriptionMaxWidth).sub(i).div(2).equal()},["&-process ".concat(n,"-icon")]:{["&:first-child ".concat(n,"-icon-dot")]:{insetInlineStart:0}}}},["&".concat(n,"-vertical").concat(n,"-dot")]:{["".concat(n,"-item-icon")]:{marginTop:t.calc(t.controlHeight).sub(a).div(2).equal(),marginInlineStart:0,background:"none"},["".concat(n,"-item-process ").concat(n,"-item-icon")]:{marginTop:t.calc(t.controlHeight).sub(i).div(2).equal(),top:0,insetInlineStart:t.calc(a).sub(i).div(2).equal(),marginInlineStart:0},["".concat(n,"-item > ").concat(n,"-item-container > ").concat(n,"-item-tail")]:{top:t.calc(t.controlHeight).sub(a).div(2).equal(),insetInlineStart:0,margin:0,padding:"".concat((0,A.zA)(t.calc(a).add(t.paddingXS).equal())," 0 ").concat((0,A.zA)(t.paddingXS)),"&::after":{marginInlineStart:t.calc(a).sub(t.lineWidth).div(2).equal()}},["&".concat(n,"-small")]:{["".concat(n,"-item-icon")]:{marginTop:t.calc(t.controlHeightSM).sub(a).div(2).equal()},["".concat(n,"-item-process ").concat(n,"-item-icon")]:{marginTop:t.calc(t.controlHeightSM).sub(i).div(2).equal()},["".concat(n,"-item > ").concat(n,"-item-container > ").concat(n,"-item-tail")]:{top:t.calc(t.controlHeightSM).sub(a).div(2).equal()}},["".concat(n,"-item:first-child ").concat(n,"-icon-dot")]:{insetInlineStart:0},["".concat(n,"-item-content")]:{width:"inherit"}}}})(t)),(t=>{let{componentCls:n,navContentMaxWidth:e,navArrowColor:c,stepsNavActiveColor:i,motionDurationSlow:a}=t;return{["&".concat(n,"-navigation")]:{paddingTop:t.paddingSM,["&".concat(n,"-small")]:{["".concat(n,"-item")]:{"&-container":{marginInlineStart:t.calc(t.marginSM).mul(-1).equal()}}},["".concat(n,"-item")]:{overflow:"visible",textAlign:"center","&-container":{display:"inline-block",height:"100%",marginInlineStart:t.calc(t.margin).mul(-1).equal(),paddingBottom:t.paddingSM,textAlign:"start",transition:"opacity ".concat(a),["".concat(n,"-item-content")]:{maxWidth:e},["".concat(n,"-item-title")]:Object.assign(Object.assign({maxWidth:"100%",paddingInlineEnd:0},O.L9),{"&::after":{display:"none"}})},["&:not(".concat(n,"-item-active)")]:{["".concat(n,"-item-container[role='button']")]:{cursor:"pointer","&:hover":{opacity:.85}}},"&:last-child":{flex:1,"&::after":{display:"none"}},"&::after":{position:"absolute",top:"calc(50% - ".concat((0,A.zA)(t.calc(t.paddingSM).div(2).equal()),")"),insetInlineStart:"100%",display:"inline-block",width:t.fontSizeIcon,height:t.fontSizeIcon,borderTop:"".concat((0,A.zA)(t.lineWidth)," ").concat(t.lineType," ").concat(c),borderBottom:"none",borderInlineStart:"none",borderInlineEnd:"".concat((0,A.zA)(t.lineWidth)," ").concat(t.lineType," ").concat(c),transform:"translateY(-50%) translateX(-50%) rotate(45deg)",content:'""'},"&::before":{position:"absolute",bottom:0,insetInlineStart:"50%",display:"inline-block",width:0,height:t.lineWidthBold,backgroundColor:i,transition:"width ".concat(a,", inset-inline-start ").concat(a),transitionTimingFunction:"ease-out",content:'""'}},["".concat(n,"-item").concat(n,"-item-active::before")]:{insetInlineStart:0,width:"100%"}},["&".concat(n,"-navigation").concat(n,"-vertical")]:{["> ".concat(n,"-item")]:{marginInlineEnd:0,"&::before":{display:"none"},["&".concat(n,"-item-active::before")]:{top:0,insetInlineEnd:0,insetInlineStart:"unset",display:"block",width:t.calc(t.lineWidth).mul(3).equal(),height:"calc(100% - ".concat((0,A.zA)(t.marginLG),")")},"&::after":{position:"relative",insetInlineStart:"50%",display:"block",width:t.calc(t.controlHeight).mul(.25).equal(),height:t.calc(t.controlHeight).mul(.25).equal(),marginBottom:t.marginXS,textAlign:"center",transform:"translateY(-50%) translateX(-50%) rotate(135deg)"},"&:last-child":{"&::after":{display:"none"}},["> ".concat(n,"-item-container > ").concat(n,"-item-tail")]:{visibility:"hidden"}}},["&".concat(n,"-navigation").concat(n,"-horizontal")]:{["> ".concat(n,"-item > ").concat(n,"-item-container > ").concat(n,"-item-tail")]:{visibility:"hidden"}}}})(t)),(t=>{let{componentCls:n}=t;return{["&".concat(n,"-rtl")]:{direction:"rtl",["".concat(n,"-item")]:{"&-subtitle":{float:"left"}},["&".concat(n,"-navigation")]:{["".concat(n,"-item::after")]:{transform:"rotate(-45deg)"}},["&".concat(n,"-vertical")]:{["> ".concat(n,"-item")]:{"&::after":{transform:"rotate(225deg)"},["".concat(n,"-item-icon")]:{float:"right"}}},["&".concat(n,"-dot")]:{["".concat(n,"-item-icon ").concat(n,"-icon-dot, &").concat(n,"-small ").concat(n,"-item-icon ").concat(n,"-icon-dot")]:{float:"right"}}}}})(t)),(t=>{let{antCls:n,componentCls:e,iconSize:c,iconSizeSM:i,processIconColor:a,marginXXS:o,lineWidthBold:r,lineWidth:l,paddingXXS:s}=t,d=t.calc(c).add(t.calc(r).mul(4).equal()).equal(),m=t.calc(i).add(t.calc(t.lineWidth).mul(4).equal()).equal();return{["&".concat(e,"-with-progress")]:{["".concat(e,"-item")]:{paddingTop:s,["&-process ".concat(e,"-item-container ").concat(e,"-item-icon ").concat(e,"-icon")]:{color:a}},["&".concat(e,"-vertical > ").concat(e,"-item ")]:{paddingInlineStart:s,["> ".concat(e,"-item-container > ").concat(e,"-item-tail")]:{top:o,insetInlineStart:t.calc(c).div(2).sub(l).add(s).equal()}},["&, &".concat(e,"-small")]:{["&".concat(e,"-horizontal ").concat(e,"-item:first-child")]:{paddingBottom:s,paddingInlineStart:s}},["&".concat(e,"-small").concat(e,"-vertical > ").concat(e,"-item > ").concat(e,"-item-container > ").concat(e,"-item-tail")]:{insetInlineStart:t.calc(i).div(2).sub(l).add(s).equal()},["&".concat(e,"-label-vertical ").concat(e,"-item ").concat(e,"-item-tail")]:{top:t.calc(c).div(2).add(s).equal()},["".concat(e,"-item-icon")]:{position:"relative",["".concat(n,"-progress")]:{position:"absolute",insetInlineStart:"50%",top:"50%",transform:"translate(-50%, -50%)","&-inner":{width:"".concat((0,A.zA)(d)," !important"),height:"".concat((0,A.zA)(d)," !important")}}},["&".concat(e,"-small")]:{["&".concat(e,"-label-vertical ").concat(e,"-item ").concat(e,"-item-tail")]:{top:t.calc(i).div(2).add(s).equal()},["".concat(e,"-item-icon ").concat(n,"-progress-inner")]:{width:"".concat((0,A.zA)(m)," !important"),height:"".concat((0,A.zA)(m)," !important")}}}}})(t)),(t=>{let{componentCls:n,inlineDotSize:e,inlineTitleColor:c,inlineTailColor:i}=t,a=t.calc(t.paddingXS).add(t.lineWidth).equal(),o={["".concat(n,"-item-container ").concat(n,"-item-content ").concat(n,"-item-title")]:{color:c}};return{["&".concat(n,"-inline")]:{width:"auto",display:"inline-flex",["".concat(n,"-item")]:{flex:"none","&-container":{padding:"".concat((0,A.zA)(a)," ").concat((0,A.zA)(t.paddingXXS)," 0"),margin:"0 ".concat((0,A.zA)(t.calc(t.marginXXS).div(2).equal())),borderRadius:t.borderRadiusSM,cursor:"pointer",transition:"background-color ".concat(t.motionDurationMid),"&:hover":{background:t.controlItemBgHover},"&[role='button']:hover":{opacity:1}},"&-icon":{width:e,height:e,marginInlineStart:"calc(50% - ".concat((0,A.zA)(t.calc(e).div(2).equal()),")"),["> ".concat(n,"-icon")]:{top:0},["".concat(n,"-icon-dot")]:{borderRadius:t.calc(t.fontSizeSM).div(4).equal(),"&::after":{display:"none"}}},"&-content":{width:"auto",marginTop:t.calc(t.marginXS).sub(t.lineWidth).equal()},"&-title":{color:c,fontSize:t.fontSizeSM,lineHeight:t.lineHeightSM,fontWeight:"normal",marginBottom:t.calc(t.marginXXS).div(2).equal()},"&-description":{display:"none"},"&-tail":{marginInlineStart:0,top:t.calc(e).div(2).add(a).equal(),transform:"translateY(-50%)","&:after":{width:"100%",height:t.lineWidth,borderRadius:0,marginInlineStart:0,background:i}},["&:first-child ".concat(n,"-item-tail")]:{width:"50%",marginInlineStart:"50%"},["&:last-child ".concat(n,"-item-tail")]:{display:"block",width:"50%"},"&-wait":Object.assign({["".concat(n,"-item-icon ").concat(n,"-icon ").concat(n,"-icon-dot")]:{backgroundColor:t.colorBorderBg,border:"".concat((0,A.zA)(t.lineWidth)," ").concat(t.lineType," ").concat(i)}},o),"&-finish":Object.assign({["".concat(n,"-item-tail::after")]:{backgroundColor:i},["".concat(n,"-item-icon ").concat(n,"-icon ").concat(n,"-icon-dot")]:{backgroundColor:i,border:"".concat((0,A.zA)(t.lineWidth)," ").concat(t.lineType," ").concat(i)}},o),"&-error":o,"&-active, &-process":Object.assign({["".concat(n,"-item-icon")]:{width:e,height:e,marginInlineStart:"calc(50% - ".concat((0,A.zA)(t.calc(e).div(2).equal()),")"),top:0}},o),["&:not(".concat(n,"-item-active) > ").concat(n,"-item-container[role='button']:hover")]:{["".concat(n,"-item-title")]:{color:c}}}}}})(t))}})((0,C.oX)(t,{processIconColor:c,processTitleColor:i,processDescriptionColor:i,processIconBgColor:a,processIconBorderColor:a,processDotColor:a,processTailColor:d,waitTitleColor:o,waitDescriptionColor:o,waitTailColor:d,waitDotColor:n,finishIconColor:a,finishTitleColor:i,finishDescriptionColor:o,finishTailColor:a,finishDotColor:a,errorIconColor:c,errorTitleColor:l,errorDescriptionColor:l,errorTailColor:d,errorIconBgColor:l,errorIconBorderColor:l,errorDotColor:l,stepsNavActiveColor:a,stepsProgressSize:e,inlineDotSize:6,inlineTitleColor:r,inlineTailColor:s}))},t=>({titleLineHeight:t.controlHeight,customIconSize:t.controlHeight,customIconTop:0,customIconFontSize:t.controlHeightSM,iconSize:t.controlHeight,iconTop:-.5,iconFontSize:t.fontSize,iconSizeSM:t.fontSizeHeading3,dotSize:t.controlHeight/4,dotCurrentSize:t.controlHeightLG/4,navArrowColor:t.colorTextDisabled,navContentMaxWidth:"unset",descriptionMaxWidth:140,waitIconColor:t.wireframe?t.colorTextDisabled:t.colorTextLabel,waitIconBgColor:t.wireframe?t.colorBgContainer:t.colorFillContent,waitIconBorderColor:t.wireframe?t.colorTextDisabled:"transparent",finishIconBgColor:t.wireframe?t.colorBgContainer:t.controlItemBgActive,finishIconBorderColor:t.wireframe?t.colorPrimary:t.controlItemBgActive}));var H=e(63715),q=function(t,n){var e={};for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&0>n.indexOf(c)&&(e[c]=t[c]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,c=Object.getOwnPropertySymbols(t);in.indexOf(c[i])&&Object.prototype.propertyIsEnumerable.call(t,c[i])&&(e[c[i]]=t[c[i]]);return e};let E=t=>{let{percent:n,size:e,className:o,rootClassName:l,direction:s,items:d,responsive:m=!0,current:p=0,children:g,style:h}=t,u=q(t,["percent","size","className","rootClassName","direction","items","responsive","current","children","style"]),{xs:f}=(0,z.A)(m),{getPrefixCls:A,direction:O,className:I,style:C}=(0,b.TP)("steps"),j=c.useMemo(()=>m&&f?"vertical":s,[m,f,s]),E=(0,S.A)(e),k=A("steps",t.prefixCls),[M,T,B]=x(k),N="inline"===t.type,P=A("",t.iconPrefix),W=function(t,n){return t?t:(0,H.A)(n).map(t=>{if(c.isValidElement(t)){let{props:n}=t;return Object.assign({},n)}return null}).filter(t=>t)}(d,g),X=N?void 0:n,L=Object.assign(Object.assign({},C),h),R=r()(I,{["".concat(k,"-rtl")]:"rtl"===O,["".concat(k,"-with-progress")]:void 0!==X},o,l,T,B),D={finish:c.createElement(i.A,{className:"".concat(k,"-finish-icon")}),error:c.createElement(a.A,{className:"".concat(k,"-error-icon")})};return M(c.createElement(v,Object.assign({icons:D},u,{style:L,current:p,size:E,items:W,itemRender:N?(t,n)=>t.description?c.createElement(w.A,{title:t.description},n):n:void 0,stepIcon:t=>{let{node:n,status:e}=t;return"process"===e&&void 0!==X?c.createElement("div",{className:"".concat(k,"-progress-icon")},c.createElement(y.A,{type:"circle",percent:X,size:"small"===E?32:40,strokeWidth:4,format:()=>null}),n):n},direction:j,prefixCls:k,iconPrefix:P,className:R})))};E.Step=v.Step;let k=E},81106:(t,n,e)=>{e.d(n,{A:()=>r});var c=e(12115),i=e(89593),a=e(75659);function o(){return(o=Object.assign?Object.assign.bind():function(t){for(var n=1;nc.createElement(a.A,o({},t,{ref:n,icon:i.A})))},83387:(t,n,e)=>{e.d(n,{A:()=>r});var c=e(12115);let i={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.2 446.3l-.2-.8-112.2-285.1c-5-16.1-19.9-27.2-36.8-27.2H281.2c-17 0-32.1 11.3-36.9 27.6L139.4 443l-.3.7-.2.8c-1.3 4.9-1.7 9.9-1 14.8-.1 1.6-.2 3.2-.2 4.8V830a60.9 60.9 0 0060.8 60.8h627.2c33.5 0 60.8-27.3 60.9-60.8V464.1c0-1.3 0-2.6-.1-3.7.4-4.9 0-9.6-1.3-14.1zm-295.8-43l-.3 15.7c-.8 44.9-31.8 75.1-77.1 75.1-22.1 0-41.1-7.1-54.8-20.6S436 441.2 435.6 419l-.3-15.7H229.5L309 210h399.2l81.7 193.3H589.4zm-375 76.8h157.3c24.3 57.1 76 90.8 140.4 90.8 33.7 0 65-9.4 90.3-27.2 22.2-15.6 39.5-37.4 50.7-63.6h156.5V814H214.4V480.1z"}}]},name:"inbox",theme:"outlined"};var a=e(75659);function o(){return(o=Object.assign?Object.assign.bind():function(t){for(var n=1;nc.createElement(a.A,o({},t,{ref:n,icon:i})))},92611:(t,n,e)=>{e.d(n,{A:()=>r});var c=e(12115);let i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 009.3-35.2l-.9-2.6a443.74 443.74 0 00-79.7-137.9l-1.8-2.1a32.12 32.12 0 00-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 00-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 00-25.8 25.7l-15.8 85.4a351.86 351.86 0 00-99 57.4l-81.9-29.1a32 32 0 00-35.1 9.5l-1.8 2.1a446.02 446.02 0 00-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 00-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0035.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0025.8 25.7l2.7.5a449.4 449.4 0 00159 0l2.7-.5a32.05 32.05 0 0025.8-25.7l15.7-85a350 350 0 0099.7-57.6l81.3 28.9a32 32 0 0035.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 01-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 01-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 01512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 01400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 01624 502c0 29.9-11.7 58-32.8 79.2z"}}]},name:"setting",theme:"outlined"};var a=e(75659);function o(){return(o=Object.assign?Object.assign.bind():function(t){for(var n=1;nc.createElement(a.A,o({},t,{ref:n,icon:i})))}}]); \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1168-538df61e8b543b50.js b/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1168-538df61e8b543b50.js deleted file mode 100644 index 46b96c29..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1168-538df61e8b543b50.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1168],{916:(e,t,n)=>{"use strict";function r(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{A:()=>r})},2419:(e,t,n)=>{"use strict";n.d(t,{$T:()=>v,ph:()=>b,hN:()=>j});var r=n(85757),o=n(21858),i=n(20235),a=n(12115),c=n(27061),s=n(47650),l=n(79630),u=n(40419),f=n(29300),d=n.n(f),h=n(82870),g=n(86608),p=n(17233),m=n(40032);let v=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,i=e.className,c=e.duration,s=void 0===c?4.5:c,f=e.showProgress,h=e.pauseOnHover,v=void 0===h||h,y=e.eventKey,b=e.content,A=e.closable,x=e.closeIcon,E=void 0===x?"x":x,w=e.props,C=e.onClick,S=e.onNoticeClose,O=e.times,k=e.hovering,j=a.useState(!1),T=(0,o.A)(j,2),P=T[0],F=T[1],M=a.useState(0),R=(0,o.A)(M,2),N=R[0],_=R[1],I=a.useState(0),B=(0,o.A)(I,2),L=B[0],H=B[1],z=k||P,D=s>0&&f,U=function(){S(y)};a.useEffect(function(){if(!z&&s>0){var e=Date.now()-L,t=setTimeout(function(){U()},1e3*s-L);return function(){v&&clearTimeout(t),H(Date.now()-e)}}},[s,z,O]),a.useEffect(function(){if(!z&&D&&(v||0===L)){var e,t=performance.now();return!function n(){cancelAnimationFrame(e),e=requestAnimationFrame(function(e){var r=Math.min((e+L-t)/(1e3*s),1);_(100*r),r<1&&n()})}(),function(){v&&cancelAnimationFrame(e)}}},[s,L,z,D,O]);var V=a.useMemo(function(){return"object"===(0,g.A)(A)&&null!==A?A:A?{closeIcon:E}:{}},[A,E]),q=(0,m.A)(V,!0),W=100-(!N||N<0?0:N>100?100:N),$="".concat(n,"-notice");return a.createElement("div",(0,l.A)({},w,{ref:t,className:d()($,i,(0,u.A)({},"".concat($,"-closable"),A)),style:r,onMouseEnter:function(e){var t;F(!0),null==w||null==(t=w.onMouseEnter)||t.call(w,e)},onMouseLeave:function(e){var t;F(!1),null==w||null==(t=w.onMouseLeave)||t.call(w,e)},onClick:C}),a.createElement("div",{className:"".concat($,"-content")},b),A&&a.createElement("a",(0,l.A)({tabIndex:0,className:"".concat($,"-close"),onKeyDown:function(e){("Enter"===e.key||"Enter"===e.code||e.keyCode===p.A.ENTER)&&U()},"aria-label":"Close"},q,{onClick:function(e){e.preventDefault(),e.stopPropagation(),U()}}),V.closeIcon),D&&a.createElement("progress",{className:"".concat($,"-progress"),max:"100",value:W},W+"%"))});var y=a.createContext({});let b=function(e){var t=e.children,n=e.classNames;return a.createElement(y.Provider,{value:{classNames:n}},t)},A=function(e){var t,n,r,o={offset:8,threshold:3,gap:16};return e&&"object"===(0,g.A)(e)&&(o.offset=null!=(t=e.offset)?t:8,o.threshold=null!=(n=e.threshold)?n:3,o.gap=null!=(r=e.gap)?r:16),[!!e,o]};var x=["className","style","classNames","styles"];let E=function(e){var t=e.configList,n=e.placement,s=e.prefixCls,f=e.className,g=e.style,p=e.motion,m=e.onAllNoticeRemoved,b=e.onNoticeClose,E=e.stack,w=(0,a.useContext)(y).classNames,C=(0,a.useRef)({}),S=(0,a.useState)(null),O=(0,o.A)(S,2),k=O[0],j=O[1],T=(0,a.useState)([]),P=(0,o.A)(T,2),F=P[0],M=P[1],R=t.map(function(e){return{config:e,key:String(e.key)}}),N=A(E),_=(0,o.A)(N,2),I=_[0],B=_[1],L=B.offset,H=B.threshold,z=B.gap,D=I&&(F.length>0||R.length<=H),U="function"==typeof p?p(n):p;return(0,a.useEffect)(function(){I&&F.length>1&&M(function(e){return e.filter(function(e){return R.some(function(t){return e===t.key})})})},[F,R,I]),(0,a.useEffect)(function(){var e,t;I&&C.current[null==(e=R[R.length-1])?void 0:e.key]&&j(C.current[null==(t=R[R.length-1])?void 0:t.key])},[R,I]),a.createElement(h.aF,(0,l.A)({key:n,className:d()(s,"".concat(s,"-").concat(n),null==w?void 0:w.list,f,(0,u.A)((0,u.A)({},"".concat(s,"-stack"),!!I),"".concat(s,"-stack-expanded"),D)),style:g,keys:R,motionAppear:!0},U,{onAllRemoved:function(){m(n)}}),function(e,t){var o=e.config,u=e.className,f=e.style,h=e.index,g=o.key,p=o.times,m=String(g),y=o.className,A=o.style,E=o.classNames,S=o.styles,O=(0,i.A)(o,x),j=R.findIndex(function(e){return e.key===m}),T={};if(I){var P=R.length-1-(j>-1?j:h-1),N="top"===n||"bottom"===n?"-50%":"0";if(P>0){T.height=D?null==(_=C.current[m])?void 0:_.offsetHeight:null==k?void 0:k.offsetHeight;for(var _,B,H,U,V=0,q=0;q-1?C.current[m]=e:delete C.current[m]},prefixCls:s,classNames:E,styles:S,className:d()(y,null==w?void 0:w.notice),style:A,times:p,key:g,eventKey:g,onNoticeClose:b,hovering:I&&F.length>0})))})};var w=a.forwardRef(function(e,t){var n=e.prefixCls,i=void 0===n?"rc-notification":n,l=e.container,u=e.motion,f=e.maxCount,d=e.className,h=e.style,g=e.onAllRemoved,p=e.stack,m=e.renderNotifications,v=a.useState([]),y=(0,o.A)(v,2),b=y[0],A=y[1],x=function(e){var t,n=b.find(function(t){return t.key===e});null==n||null==(t=n.onClose)||t.call(n),A(function(t){return t.filter(function(t){return t.key!==e})})};a.useImperativeHandle(t,function(){return{open:function(e){A(function(t){var n,o=(0,r.A)(t),i=o.findIndex(function(t){return t.key===e.key}),a=(0,c.A)({},e);return i>=0?(a.times=((null==(n=t[i])?void 0:n.times)||0)+1,o[i]=a):(a.times=0,o.push(a)),f>0&&o.length>f&&(o=o.slice(-f)),o})},close:function(e){x(e)},destroy:function(){A([])}}});var w=a.useState({}),C=(0,o.A)(w,2),S=C[0],O=C[1];a.useEffect(function(){var e={};b.forEach(function(t){var n=t.placement,r=void 0===n?"topRight":n;r&&(e[r]=e[r]||[],e[r].push(t))}),Object.keys(S).forEach(function(t){e[t]=e[t]||[]}),O(e)},[b]);var k=function(e){O(function(t){var n=(0,c.A)({},t);return(n[e]||[]).length||delete n[e],n})},j=a.useRef(!1);if(a.useEffect(function(){Object.keys(S).length>0?j.current=!0:j.current&&(null==g||g(),j.current=!1)},[S]),!l)return null;var T=Object.keys(S);return(0,s.createPortal)(a.createElement(a.Fragment,null,T.map(function(e){var t=S[e],n=a.createElement(E,{key:e,configList:t,placement:e,prefixCls:i,className:null==d?void 0:d(e),style:null==h?void 0:h(e),motion:u,onNoticeClose:x,onAllNoticeRemoved:k,stack:p});return m?m(n,{prefixCls:i,key:e}):n})),l)}),C=n(11719),S=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],O=function(){return document.body},k=0;function j(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getContainer,n=void 0===t?O:t,c=e.motion,s=e.prefixCls,l=e.maxCount,u=e.className,f=e.style,d=e.onAllRemoved,h=e.stack,g=e.renderNotifications,p=(0,i.A)(e,S),m=a.useState(),v=(0,o.A)(m,2),y=v[0],b=v[1],A=a.useRef(),x=a.createElement(w,{container:y,ref:A,prefixCls:s,motion:c,maxCount:l,className:u,style:f,onAllRemoved:d,stack:h,renderNotifications:g}),E=a.useState([]),j=(0,o.A)(E,2),T=j[0],P=j[1],F=(0,C._q)(function(e){var t=function(){for(var e={},t=arguments.length,n=Array(t),r=0;r{"use strict";n.d(t,{f:()=>c});var r=n(12115),o=n(18885);function i(){}let a=r.createContext({add:i,remove:i});function c(e){let t=r.useContext(a),n=r.useRef(null);return(0,o.A)(r=>{if(r){let o=e?r.querySelector(e):r;o&&(t.add(o),n.current=o)}else t.remove(n.current)})}},3201:(e,t,n)=>{"use strict";function r(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,{A:()=>r})},3338:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,V:()=>c});var r,o=n(85440);function i(e){var t,n,r="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),i=document.createElement("div");i.id=r;var a=i.style;if(a.position="absolute",a.left="0",a.top="0",a.width="100px",a.height="100px",a.overflow="scroll",e){var c=getComputedStyle(e);a.scrollbarColor=c.scrollbarColor,a.scrollbarWidth=c.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),u=parseInt(s.height,10);try{var f=l?"width: ".concat(s.width,";"):"",d=u?"height: ".concat(s.height,";"):"";(0,o.BD)("\n#".concat(r,"::-webkit-scrollbar {\n").concat(f,"\n").concat(d,"\n}"),r)}catch(e){console.error(e),t=l,n=u}}document.body.appendChild(i);var h=e&&t&&!isNaN(t)?t:i.offsetWidth-i.clientWidth,g=e&&n&&!isNaN(n)?n:i.offsetHeight-i.clientHeight;return document.body.removeChild(i),(0,o.m6)(r),{width:h,height:g}}function a(e){return"undefined"==typeof document?0:((e||void 0===r)&&(r=i()),r.width)}function c(e){return"undefined"!=typeof document&&e&&e instanceof Element?i(e):{width:0,height:0}}},3617:(e,t,n)=>{"use strict";n.d(t,{D:()=>o});var r=n(15982);let o="".concat(r.yH,"-wave-target")},4697:(e,t,n)=>{"use strict";n.d(t,{BC:()=>p,Bq:()=>c,FK:()=>g,HC:()=>l,HT:()=>o,K5:()=>u,YW:()=>s,b2:()=>h,c1:()=>d,kg:()=>m,kp:()=>i,pb:()=>v,tW:()=>a,tn:()=>r,wN:()=>f});var r=Math.abs,o=String.fromCharCode,i=Object.assign;function a(e,t){return 45^f(e,0)?(((t<<2^f(e,0))<<2^f(e,1))<<2^f(e,2))<<2^f(e,3):0}function c(e){return e.trim()}function s(e,t){return(e=t.exec(e))?e[0]:e}function l(e,t,n){return e.replace(t,n)}function u(e,t,n){return e.indexOf(t,n)}function f(e,t){return 0|e.charCodeAt(t)}function d(e,t,n){return e.slice(t,n)}function h(e){return e.length}function g(e){return e.length}function p(e,t){return t.push(e),e}function m(e,t){return e.map(t).join("")}function v(e,t){return e.filter(function(e){return!s(e,t)})}},5892:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(86608),o=n(55227);function i(e,t){if(t&&("object"==(0,r.A)(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return(0,o.A)(e)}},6212:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(12115).createContext)(void 0)},6504:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(99841),o=n(9130),i=n(18184),a=n(45431),c=n(61388);let s=(0,a.OF)("Message",e=>(e=>{let{componentCls:t,iconCls:n,boxShadow:o,colorText:a,colorSuccess:c,colorError:s,colorWarning:l,colorInfo:u,fontSizeLG:f,motionEaseInOutCirc:d,motionDurationSlow:h,marginXS:g,paddingXS:p,borderRadiusLG:m,zIndexPopup:v,contentPadding:y,contentBg:b}=e,A="".concat(t,"-notice"),x=new r.Mo("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),E=new r.Mo("MessageMoveOut",{"0%":{maxHeight:e.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),w={padding:p,textAlign:"center",["".concat(t,"-custom-content")]:{display:"flex",alignItems:"center"},["".concat(t,"-custom-content > ").concat(n)]:{marginInlineEnd:g,fontSize:f},["".concat(A,"-content")]:{display:"inline-block",padding:y,background:b,borderRadius:m,boxShadow:o,pointerEvents:"all"},["".concat(t,"-success > ").concat(n)]:{color:c},["".concat(t,"-error > ").concat(n)]:{color:s},["".concat(t,"-warning > ").concat(n)]:{color:l},["".concat(t,"-info > ").concat(n,",\n ").concat(t,"-loading > ").concat(n)]:{color:u}};return[{[t]:Object.assign(Object.assign({},(0,i.dF)(e)),{color:a,position:"fixed",top:g,width:"100%",pointerEvents:"none",zIndex:v,["".concat(t,"-move-up")]:{animationFillMode:"forwards"},["\n ".concat(t,"-move-up-appear,\n ").concat(t,"-move-up-enter\n ")]:{animationName:x,animationDuration:h,animationPlayState:"paused",animationTimingFunction:d},["\n ".concat(t,"-move-up-appear").concat(t,"-move-up-appear-active,\n ").concat(t,"-move-up-enter").concat(t,"-move-up-enter-active\n ")]:{animationPlayState:"running"},["".concat(t,"-move-up-leave")]:{animationName:E,animationDuration:h,animationPlayState:"paused",animationTimingFunction:d},["".concat(t,"-move-up-leave").concat(t,"-move-up-leave-active")]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{["".concat(A,"-wrapper")]:Object.assign({},w)}},{["".concat(t,"-notice-pure-panel")]:Object.assign(Object.assign({},w),{padding:0,textAlign:"start"})}]})((0,c.oX)(e,{height:150})),e=>({zIndexPopup:e.zIndexPopupBase+o.jH+10,contentBg:e.colorBgElevated,contentPadding:"".concat((e.controlHeightLG-e.fontSize*e.lineHeight)/2,"px ").concat(e.paddingSM,"px")}))},6833:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=n(12115).createContext(void 0)},7884:(e,t,n)=>{"use strict";function r(e){return(e+8)/e}function o(e){let t=Array.from({length:10}).map((t,n)=>{let r=e*Math.pow(Math.E,(n-1)/5);return 2*Math.floor((n>1?Math.floor(r):Math.ceil(r))/2)});return t[1]=e,t.map(e=>({size:e,lineHeight:r(e)}))}n.d(t,{A:()=>o,k:()=>r})},8357:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);nr})},8396:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(12115).createContext)({})},8530:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(12115),o=n(6212),i=n(16025);let a=(e,t)=>{let n=r.useContext(o.A);return[r.useMemo(()=>{var r;let o=t||i.A[e],a=null!=(r=null==n?void 0:n[e])?r:{};return Object.assign(Object.assign({},"function"==typeof o?o():o),a||{})},[e,t,n]),r.useMemo(()=>{let e=null==n?void 0:n.locale;return(null==n?void 0:n.exist)&&!e?i.A.locale:e},[n])]}},9130:(e,t,n)=>{"use strict";n.d(t,{YK:()=>l,jH:()=>a});var r=n(12115),o=n(70042),i=n(6833);let a=1e3,c={Modal:100,Drawer:100,Popover:100,Popconfirm:100,Tooltip:100,Tour:100,FloatButton:100},s={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1},l=(e,t)=>{let n,[,a]=(0,o.Ay)(),l=r.useContext(i.A),u=e in c;if(void 0!==t)n=[t,t];else{let r=null!=l?l:0;u?r+=(l?0:a.zIndexPopupBase)+c[e]:r+=s[e],n=[void 0===l?t:r,r]}return n}},9184:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(12115),o=n(63568),i=n(96936);let a=e=>{let{space:t,form:n,children:a}=e;if(null==a)return null;let c=a;return n&&(c=r.createElement(o.XB,{override:!0,status:!0},c)),t&&(c=r.createElement(i.K6,null,c)),c}},9424:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(85522),o=n(45144),i=n(5892);function a(e){var t=(0,o.A)();return function(){var n,o=(0,r.A)(e);return n=t?Reflect.construct(o,arguments,(0,r.A)(this).constructor):o.apply(this,arguments),(0,i.A)(this,n)}}},9587:(e,t,n)=>{"use strict";n.d(t,{$e:()=>i,Ay:()=>l});var r={},o=[];function i(e,t){}function a(e,t){}function c(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function s(e,t){c(i,e,t)}s.preMessage=function(e){o.push(e)},s.resetWarned=function(){r={}},s.noteOnce=function(e,t){c(a,e,t)};let l=s},9836:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(12115),o=n(39985);let i=e=>{let t=r.useContext(o.A);return r.useMemo(()=>e?"string"==typeof e?null!=e?e:t:"function"==typeof e?e(t):t:t,[e,t])}},10337:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(86608),o=Symbol.for("react.element"),i=Symbol.for("react.transitional.element"),a=Symbol.for("react.fragment");function c(e){return e&&"object"===(0,r.A)(e)&&(e.$$typeof===o||e.$$typeof===i)&&e.type===a}},11719:(e,t,n)=>{"use strict";n.d(t,{Jt:()=>o.A,_q:()=>r.A,hZ:()=>i.A});var r=n(18885);n(48804),n(74686);var o=n(21349),i=n(74121);n(9587)},11823:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(86608);function o(e){var t=function(e,t){if("object"!=(0,r.A)(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=(0,r.A)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,r.A)(t)?t:t+""}},13418:(e,t,n)=>{"use strict";n.d(t,{A:()=>o,r:()=>r});let r={blue:"#1677FF",purple:"#722ED1",cyan:"#13C2C2",green:"#52C41A",magenta:"#EB2F96",pink:"#EB2F96",red:"#F5222D",orange:"#FA8C16",yellow:"#FADB14",volcano:"#FA541C",geekblue:"#2F54EB",gold:"#FAAD14",lime:"#A0D911"},o=Object.assign(Object.assign({},r),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,\n'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',\n'Noto Color Emoji'",fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0})},15549:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(7884);let o=e=>{let t=(0,r.A)(e),n=t.map(e=>e.size),o=t.map(e=>e.lineHeight),i=n[1],a=n[0],c=n[2],s=o[1],l=o[0],u=o[2];return{fontSizeSM:a,fontSize:i,fontSizeLG:c,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:u,lineHeightSM:l,fontHeight:Math.round(s*i),fontHeightLG:Math.round(u*c),fontHeightSM:Math.round(l*a),lineHeightHeading1:o[6],lineHeightHeading2:o[5],lineHeightHeading3:o[4],lineHeightHeading4:o[3],lineHeightHeading5:o[2]}}},15982:(e,t,n)=>{"use strict";n.d(t,{QO:()=>c,TP:()=>u,lJ:()=>a,pM:()=>i,yH:()=>o});var r=n(12115);let o="ant",i="anticon",a=["outlined","borderless","filled","underlined"],c=r.createContext({getPrefixCls:(e,t)=>t||(e?"".concat(o,"-").concat(e):o),iconPrefixCls:i}),{Consumer:s}=c,l={};function u(e){let t=r.useContext(c),{getPrefixCls:n,direction:o,getPopupContainer:i}=t;return Object.assign(Object.assign({classNames:l,styles:l},t[e]),{getPrefixCls:n,direction:o,getPopupContainer:i})}},16025:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r=n(86500),o=n(27061),i=(0,o.A)((0,o.A)({},{yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),{},{locale:"en_US",today:"Today",now:"Now",backToToday:"Back to today",ok:"OK",clear:"Clear",week:"Week",month:"Month",year:"Year",timeSelect:"select time",dateSelect:"select date",weekSelect:"Choose a week",monthSelect:"Choose a month",yearSelect:"Choose a year",decadeSelect:"Choose a decade",dateFormat:"M/D/YYYY",dateTimeFormat:"M/D/YYYY HH:mm:ss",previousMonth:"Previous month (PageUp)",nextMonth:"Next month (PageDown)",previousYear:"Last year (Control + left)",nextYear:"Next year (Control + right)",previousDecade:"Last decade",nextDecade:"Next decade",previousCentury:"Last century",nextCentury:"Next century"});let a={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},c={lang:Object.assign({placeholder:"Select date",yearPlaceholder:"Select year",quarterPlaceholder:"Select quarter",monthPlaceholder:"Select month",weekPlaceholder:"Select week",rangePlaceholder:["Start date","End date"],rangeYearPlaceholder:["Start year","End year"],rangeQuarterPlaceholder:["Start quarter","End quarter"],rangeMonthPlaceholder:["Start month","End month"],rangeWeekPlaceholder:["Start week","End week"]},i),timePickerLocale:Object.assign({},a)},s="${label} is not a valid ${type}",l={locale:"en",Pagination:r.A,DatePicker:c,TimePicker:a,Calendar:c,global:{placeholder:"Please select",close:"Close"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",filterEmptyText:"No filters",filterCheckAll:"Select all items",filterSearchPlaceholder:"Search in filters",emptyText:"No data",selectAll:"Select current page",selectInvert:"Invert current page",selectNone:"Clear all data",selectionAll:"Select all data",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row",triggerDesc:"Click to sort descending",triggerAsc:"Click to sort ascending",cancelSort:"Click to cancel sorting"},Tour:{Next:"Next",Previous:"Previous",Finish:"Finish"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items",remove:"Remove",selectCurrent:"Select current page",removeCurrent:"Remove current page",selectAll:"Select all data",deselectAll:"Deselect all data",removeAll:"Remove all data",selectInvert:"Invert current page"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand",collapse:"Collapse"},Form:{optional:"(optional)",defaultValidateMessages:{default:"Field validation error for ${label}",required:"Please enter ${label}",enum:"${label} must be one of [${enum}]",whitespace:"${label} cannot be a blank character",date:{format:"${label} date format is invalid",parse:"${label} cannot be converted to a date",invalid:"${label} is an invalid date"},types:{string:s,method:s,array:s,object:s,number:s,date:s,boolean:s,integer:s,float:s,regexp:s,email:s,url:s,hex:s},string:{len:"${label} must be ${len} characters",min:"${label} must be at least ${min} characters",max:"${label} must be up to ${max} characters",range:"${label} must be between ${min}-${max} characters"},number:{len:"${label} must be equal to ${len}",min:"${label} must be minimum ${min}",max:"${label} must be maximum ${max}",range:"${label} must be between ${min}-${max}"},array:{len:"Must be ${len} ${label}",min:"At least ${min} ${label}",max:"At most ${max} ${label}",range:"The amount of ${label} must be between ${min}-${max}"},pattern:{mismatch:"${label} does not match the pattern ${pattern}"}}},Image:{preview:"Preview"},QRCode:{expired:"QR code expired",refresh:"Refresh",scanned:"Scanned"},ColorPicker:{presetEmpty:"Empty",transparent:"Transparent",singleColor:"Single",gradientColor:"Gradient"}}},16622:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>y,Mb:()=>v});var r=n(12115),o=n(84630),i=n(51754),a=n(63583),c=n(66383),s=n(51280),l=n(29300),u=n.n(l),f=n(2419),d=n(15982),h=n(68151),g=n(6504),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let m={info:r.createElement(c.A,null),success:r.createElement(o.A,null),error:r.createElement(i.A,null),warning:r.createElement(a.A,null),loading:r.createElement(s.A,null)},v=e=>{let{prefixCls:t,type:n,icon:o,children:i}=e;return r.createElement("div",{className:u()("".concat(t,"-custom-content"),"".concat(t,"-").concat(n))},o||m[n],r.createElement("span",null,i))},y=e=>{let{prefixCls:t,className:n,type:o,icon:i,content:a}=e,c=p(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=r.useContext(d.QO),l=t||s("message"),m=(0,h.A)(l),[y,b,A]=(0,g.A)(l,m);return y(r.createElement(f.$T,Object.assign({},c,{prefixCls:l,className:u()(n,b,"".concat(l,"-notice-pure-panel"),A,m),eventKey:"pure",duration:null,content:r.createElement(v,{prefixCls:l,type:o,icon:i},a)})))}},16962:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=function(e){return+setTimeout(e,16)},o=function(e){return clearTimeout(e)};"undefined"!=typeof window&&"requestAnimationFrame"in window&&(r=function(e){return window.requestAnimationFrame(e)},o=function(e){return window.cancelAnimationFrame(e)});var i=0,a=new Map,c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=i+=1;return!function t(o){if(0===o)a.delete(n),e();else{var i=r(function(){t(o-1)});a.set(n,i)}}(t),n};c.cancel=function(e){var t=a.get(e);return a.delete(e),o(t)};let s=c},17233:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r={MAC_ENTER:3,BACKSPACE:8,TAB:9,NUM_CENTER:12,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:44,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,QUESTION_MARK:63,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,META:91,WIN_KEY_RIGHT:92,CONTEXT_MENU:93,NUM_ZERO:96,NUM_ONE:97,NUM_TWO:98,NUM_THREE:99,NUM_FOUR:100,NUM_FIVE:101,NUM_SIX:102,NUM_SEVEN:103,NUM_EIGHT:104,NUM_NINE:105,NUM_MULTIPLY:106,NUM_PLUS:107,NUM_MINUS:109,NUM_PERIOD:110,NUM_DIVISION:111,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,NUMLOCK:144,SEMICOLON:186,DASH:189,EQUALS:187,COMMA:188,PERIOD:190,SLASH:191,APOSTROPHE:192,SINGLE_QUOTE:222,OPEN_SQUARE_BRACKET:219,BACKSLASH:220,CLOSE_SQUARE_BRACKET:221,WIN_KEY:224,MAC_FF_META:224,WIN_IME:229,isTextModifyingKeyEvent:function(e){var t=e.keyCode;if(e.altKey&&!e.ctrlKey||e.metaKey||t>=r.F1&&t<=r.F12)return!1;switch(t){case r.ALT:case r.CAPS_LOCK:case r.CONTEXT_MENU:case r.CTRL:case r.DOWN:case r.END:case r.ESC:case r.HOME:case r.INSERT:case r.LEFT:case r.MAC_FF_META:case r.META:case r.NUMLOCK:case r.NUM_CENTER:case r.PAGE_DOWN:case r.PAGE_UP:case r.PAUSE:case r.PRINT_SCREEN:case r.RIGHT:case r.SHIFT:case r.UP:case r.WIN_KEY:case r.WIN_KEY_RIGHT:return!1;default:return!0}},isCharacterKey:function(e){if(e>=r.ZERO&&e<=r.NINE||e>=r.NUM_ZERO&&e<=r.NUM_MULTIPLY||e>=r.A&&e<=r.Z||-1!==window.navigator.userAgent.indexOf("WebKit")&&0===e)return!0;switch(e){case r.SPACE:case r.QUESTION_MARK:case r.NUM_PLUS:case r.NUM_MINUS:case r.NUM_PERIOD:case r.NUM_DIVISION:case r.SEMICOLON:case r.DASH:case r.EQUALS:case r.COMMA:case r.PERIOD:case r.SLASH:case r.APOSTROPHE:case r.SINGLE_QUOTE:case r.OPEN_SQUARE_BRACKET:case r.BACKSLASH:case r.CLOSE_SQUARE_BRACKET:return!0;default:return!1}}};let o=r},17980:(e,t,n)=>{"use strict";function r(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(e){delete n[e]}),n}n.d(t,{A:()=>r})},18184:(e,t,n)=>{"use strict";n.d(t,{K8:()=>f,L9:()=>o,Nk:()=>a,Y1:()=>h,av:()=>s,dF:()=>i,jk:()=>u,jz:()=>d,t6:()=>c,vj:()=>l});var r=n(99841);let o={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},i=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return{boxSizing:"border-box",margin:0,padding:0,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,listStyle:"none",fontFamily:t?"inherit":e.fontFamily}},a=()=>({display:"inline-flex",alignItems:"center",color:"inherit",fontStyle:"normal",lineHeight:0,textAlign:"center",textTransform:"none",verticalAlign:"-0.125em",textRendering:"optimizeLegibility","-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale","> *":{lineHeight:1},svg:{display:"inline-block"}}),c=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),s=e=>({a:{color:e.colorLink,textDecoration:e.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:"color ".concat(e.motionDurationSlow),"-webkit-text-decoration-skip":"objects","&:hover":{color:e.colorLinkHover},"&:active":{color:e.colorLinkActive},"&:active, &:hover":{textDecoration:e.linkHoverDecoration,outline:0},"&:focus":{textDecoration:e.linkFocusDecoration,outline:0},"&[disabled]":{color:e.colorTextDisabled,cursor:"not-allowed"}}}),l=(e,t,n,r)=>{let o='[class^="'.concat(t,'"], [class*=" ').concat(t,'"]'),i=n?".".concat(n):o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}},c={};return!1!==r&&(c={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},c),a),{[o]:a})}},u=(e,t)=>({outline:"".concat((0,r.zA)(e.lineWidthFocus)," solid ").concat(e.colorPrimaryBorder),outlineOffset:null!=t?t:1,transition:"outline-offset 0s, outline 0s"}),f=(e,t)=>({"&:focus-visible":u(e,t)}),d=e=>({[".".concat(e)]:Object.assign(Object.assign({},a()),{[".".concat(e," .").concat(e,"-icon")]:{display:"block"}})}),h=e=>Object.assign(Object.assign({color:e.colorLink,textDecoration:e.linkDecoration,outline:"none",cursor:"pointer",transition:"all ".concat(e.motionDurationSlow),border:0,padding:0,background:"none",userSelect:"none"},f(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}})},18885:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(12115);function o(e){var t=r.useRef();return t.current=e,r.useCallback(function(){for(var e,n=arguments.length,r=Array(n),o=0;o{"use strict";n.d(t,{A:()=>r});let r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"}},20235:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(93495);function o(e,t){if(null==e)return{};var n,o,i=(0,r.A)(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o{"use strict";function r(e,t){for(var n=e,r=0;rr})},21858:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(35145),o=n(73632),i=n(916);function a(e,t){return(0,r.A)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,c=[],s=!0,l=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||(0,o.A)(e,t)||(0,i.A)()}},22801:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(12115);function o(e,t,n){var o=r.useRef({});return(!("value"in o.current)||n(o.current.condition,t))&&(o.current.value=e(),o.current.condition=t),o.current.value}},23464:(e,t,n)=>{"use strict";n.d(t,{A:()=>tr});var r,o,i={};function a(e,t){return function(){return e.apply(t,arguments)}}n.r(i),n.d(i,{hasBrowserEnv:()=>eu,hasStandardBrowserEnv:()=>ed,hasStandardBrowserWebWorkerEnv:()=>eh,navigator:()=>ef,origin:()=>eg});var c=n(49509);let{toString:s}=Object.prototype,{getPrototypeOf:l}=Object,{iterator:u,toStringTag:f}=Symbol,d=(e=>t=>{let n=s.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),h=e=>(e=e.toLowerCase(),t=>d(t)===e),g=e=>t=>typeof t===e,{isArray:p}=Array,m=g("undefined");function v(e){return null!==e&&!m(e)&&null!==e.constructor&&!m(e.constructor)&&A(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let y=h("ArrayBuffer"),b=g("string"),A=g("function"),x=g("number"),E=e=>null!==e&&"object"==typeof e,w=e=>{if("object"!==d(e))return!1;let t=l(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(f in e)&&!(u in e)},C=h("Date"),S=h("File"),O=h("Blob"),k=h("FileList"),j=h("URLSearchParams"),[T,P,F,M]=["ReadableStream","Request","Response","Headers"].map(h);function R(e,t,{allOwnKeys:n=!1}={}){let r,o;if(null!=e)if("object"!=typeof e&&(e=[e]),p(e))for(r=0,o=e.length;r0;)if(t===(n=r[o]).toLowerCase())return n;return null}let _="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,I=e=>!m(e)&&e!==_,B=(e=>t=>e&&t instanceof e)("undefined"!=typeof Uint8Array&&l(Uint8Array)),L=h("HTMLFormElement"),H=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),z=h("RegExp"),D=(e,t)=>{let n=Object.getOwnPropertyDescriptors(e),r={};R(n,(n,o)=>{let i;!1!==(i=t(n,o,e))&&(r[o]=i||n)}),Object.defineProperties(e,r)},U=h("AsyncFunction"),V=(r="function"==typeof setImmediate,o=A(_.postMessage),r?setImmediate:o?((e,t)=>(_.addEventListener("message",({source:n,data:r})=>{n===_&&r===e&&t.length&&t.shift()()},!1),n=>{t.push(n),_.postMessage(e,"*")}))(`axios@${Math.random()}`,[]):e=>setTimeout(e)),q="undefined"!=typeof queueMicrotask?queueMicrotask.bind(_):void 0!==c&&c.nextTick||V,W={isArray:p,isArrayBuffer:y,isBuffer:v,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||A(e.append)&&("formdata"===(t=d(e))||"object"===t&&A(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&y(e.buffer)},isString:b,isNumber:x,isBoolean:e=>!0===e||!1===e,isObject:E,isPlainObject:w,isEmptyObject:e=>{if(!E(e)||v(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:T,isRequest:P,isResponse:F,isHeaders:M,isUndefined:m,isDate:C,isFile:S,isBlob:O,isRegExp:z,isFunction:A,isStream:e=>E(e)&&A(e.pipe),isURLSearchParams:j,isTypedArray:B,isFileList:k,forEach:R,merge:function e(){let{caseless:t,skipUndefined:n}=I(this)&&this||{},r={},o=(o,i)=>{let a=t&&N(r,i)||i;w(r[a])&&w(o)?r[a]=e(r[a],o):w(o)?r[a]=e({},o):p(o)?r[a]=o.slice():n&&m(o)||(r[a]=o)};for(let e=0,t=arguments.length;e(R(t,(t,r)=>{n&&A(t)?Object.defineProperty(e,r,{value:a(t,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,r,{value:t,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,i,a,c={};if(t=t||{},null==e)return t;do{for(i=(o=Object.getOwnPropertyNames(e)).length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!c[a]&&(t[a]=e[a],c[a]=!0);e=!1!==n&&l(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:d,kindOfTest:h,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;let r=e.indexOf(t,n);return -1!==r&&r===n},toArray:e=>{if(!e)return null;if(p(e))return e;let t=e.length;if(!x(t))return null;let n=Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{let n,r=(e&&e[u]).call(e);for(;(n=r.next())&&!n.done;){let r=n.value;t.call(e,r[0],r[1])}},matchAll:(e,t)=>{let n,r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:L,hasOwnProperty:H,hasOwnProp:H,reduceDescriptors:D,freezeMethods:e=>{D(e,(t,n)=>{if(A(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;if(A(e[n])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},toObjectSet:(e,t)=>{let n={};return(p(e)?e:String(e).split(t)).forEach(e=>{n[e]=!0}),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e*=1)?e:t,findKey:N,global:_,isContextDefined:I,isSpecCompliantForm:function(e){return!!(e&&A(e.append)&&"FormData"===e[f]&&e[u])},toJSONObject:e=>{let t=Array(10),n=(e,r)=>{if(E(e)){if(t.indexOf(e)>=0)return;if(v(e))return e;if(!("toJSON"in e)){t[r]=e;let o=p(e)?[]:{};return R(e,(e,t)=>{let i=n(e,r+1);m(i)||(o[t]=i)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:U,isThenable:e=>e&&(E(e)||A(e))&&A(e.then)&&A(e.catch),setImmediate:V,asap:q,isIterable:e=>null!=e&&A(e[u])};class $ extends Error{static from(e,t,n,r,o,i){let a=new $(e.message,t||e.code,n,r,o);return a.cause=e,a.name=e.name,i&&Object.assign(a,i),a}constructor(e,t,n,r,o){super(e),this.name="AxiosError",this.isAxiosError=!0,t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:W.toJSONObject(this.config),code:this.code,status:this.status}}}$.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",$.ERR_BAD_OPTION="ERR_BAD_OPTION",$.ECONNABORTED="ECONNABORTED",$.ETIMEDOUT="ETIMEDOUT",$.ERR_NETWORK="ERR_NETWORK",$.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",$.ERR_DEPRECATED="ERR_DEPRECATED",$.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",$.ERR_BAD_REQUEST="ERR_BAD_REQUEST",$.ERR_CANCELED="ERR_CANCELED",$.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",$.ERR_INVALID_URL="ERR_INVALID_URL";let G=$;var K=n(49641).Buffer;function X(e){return W.isPlainObject(e)||W.isArray(e)}function Y(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function Q(e,t,n){return e?e.concat(t).map(function(e,t){return e=Y(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}let J=W.toFlatObject(W,{},null,function(e){return/^is[A-Z]/.test(e)}),Z=function(e,t,n){if(!W.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let r=(n=W.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!W.isUndefined(t[e])})).metaTokens,o=n.visitor||l,i=n.dots,a=n.indexes,c=(n.Blob||"undefined"!=typeof Blob&&Blob)&&W.isSpecCompliantForm(t);if(!W.isFunction(o))throw TypeError("visitor must be a function");function s(e){if(null===e)return"";if(W.isDate(e))return e.toISOString();if(W.isBoolean(e))return e.toString();if(!c&&W.isBlob(e))throw new G("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(e)||W.isTypedArray(e)?c&&"function"==typeof Blob?new Blob([e]):K.from(e):e}function l(e,n,o){let c=e;if(e&&!o&&"object"==typeof e)if(W.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else{var l;if(W.isArray(e)&&(l=e,W.isArray(l)&&!l.some(X))||(W.isFileList(e)||W.endsWith(n,"[]"))&&(c=W.toArray(e)))return n=Y(n),c.forEach(function(e,r){W.isUndefined(e)||null===e||t.append(!0===a?Q([n],r,i):null===a?n:n+"[]",s(e))}),!1}return!!X(e)||(t.append(Q(o,n,i),s(e)),!1)}let u=[],f=Object.assign(J,{defaultVisitor:l,convertValue:s,isVisitable:X});if(!W.isObject(e))throw TypeError("data must be an object");return!function e(n,r){if(!W.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),W.forEach(n,function(n,i){!0===(!(W.isUndefined(n)||null===n)&&o.call(t,n,W.isString(i)?i.trim():i,r,f))&&e(n,r?r.concat(i):[i])}),u.pop()}}(e),t};function ee(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function et(e,t){this._pairs=[],e&&Z(e,this,t)}let en=et.prototype;function er(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function eo(e,t,n){let r;if(!t)return e;let o=n&&n.encode||er,i=W.isFunction(n)?{serialize:n}:n,a=i&&i.serialize;if(r=a?a(t,i):W.isURLSearchParams(t)?t.toString():new et(t,i).toString(o)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}en.append=function(e,t){this._pairs.push([e,t])},en.toString=function(e){let t=e?function(t){return e.call(this,t,ee)}:ee;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class ei{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){W.forEach(this.handlers,function(t){null!==t&&e(t)})}}let ea={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ec="undefined"!=typeof URLSearchParams?URLSearchParams:et,es="undefined"!=typeof FormData?FormData:null,el="undefined"!=typeof Blob?Blob:null,eu="undefined"!=typeof window&&"undefined"!=typeof document,ef="object"==typeof navigator&&navigator||void 0,ed=eu&&(!ef||0>["ReactNative","NativeScript","NS"].indexOf(ef.product)),eh="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,eg=eu&&window.location.href||"http://localhost",ep={...i,isBrowser:!0,classes:{URLSearchParams:ec,FormData:es,Blob:el},protocols:["http","https","file","blob","url","data"]},em=function(e){if(W.isFormData(e)&&W.isFunction(e.entries)){let t={};return W.forEachEntry(e,(e,n)=>{!function e(t,n,r,o){let i=t[o++];if("__proto__"===i)return!0;let a=Number.isFinite(+i),c=o>=t.length;return(i=!i&&W.isArray(r)?r.length:i,c)?W.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n:(r[i]&&W.isObject(r[i])||(r[i]=[]),e(t,n,r[i],o)&&W.isArray(r[i])&&(r[i]=function(e){let t,n,r={},o=Object.keys(e),i=o.length;for(t=0;t"[]"===e[0]?"":e[1]||e[0]),n,t,0)}),t}return null},ev={transitional:ea,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let n,r=t.getContentType()||"",o=r.indexOf("application/json")>-1,i=W.isObject(e);if(i&&W.isHTMLForm(e)&&(e=new FormData(e)),W.isFormData(e))return o?JSON.stringify(em(e)):e;if(W.isArrayBuffer(e)||W.isBuffer(e)||W.isStream(e)||W.isFile(e)||W.isBlob(e)||W.isReadableStream(e))return e;if(W.isArrayBufferView(e))return e.buffer;if(W.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1){var a,c;return(a=e,c=this.formSerializer,Z(a,new ep.classes.URLSearchParams,{visitor:function(e,t,n,r){return ep.isNode&&W.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...c})).toString()}if((n=W.isFileList(e))||r.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return Z(n?{"files[]":e}:e,t&&new t,this.formSerializer)}}if(i||o){t.setContentType("application/json",!1);var s=e;if(W.isString(s))try{return(0,JSON.parse)(s),W.trim(s)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(s)}return e}],transformResponse:[function(e){let t=this.transitional||ev.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(W.isResponse(e)||W.isReadableStream(e))return e;if(e&&W.isString(e)&&(n&&!this.responseType||r)){let n=t&&t.silentJSONParsing;try{return JSON.parse(e,this.parseReviver)}catch(e){if(!n&&r){if("SyntaxError"===e.name)throw G.from(e,G.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ep.classes.FormData,Blob:ep.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],e=>{ev.headers[e]={}});let ey=W.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),eb=Symbol("internals");function eA(e){return e&&String(e).trim().toLowerCase()}function ex(e){return!1===e||null==e?e:W.isArray(e)?e.map(ex):String(e)}function eE(e,t,n,r,o){if(W.isFunction(r))return r.call(this,t,n);if(o&&(t=n),W.isString(t)){if(W.isString(r))return -1!==t.indexOf(r);if(W.isRegExp(r))return r.test(t)}}class ew{constructor(e){e&&this.set(e)}set(e,t,n){let r=this;function o(e,t,n){let o=eA(t);if(!o)throw Error("header name must be a non-empty string");let i=W.findKey(r,o);i&&void 0!==r[i]&&!0!==n&&(void 0!==n||!1===r[i])||(r[i||t]=ex(e))}let i=(e,t)=>W.forEach(e,(e,n)=>o(e,n,t));if(W.isPlainObject(e)||e instanceof this.constructor)i(e,t);else{let r;if(W.isString(e)&&(e=e.trim())&&(r=e,!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim())))i((e=>{let t,n,r,o={};return e&&e.split("\n").forEach(function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||o[t]&&ey[t]||("set-cookie"===t?o[t]?o[t].push(n):o[t]=[n]:o[t]=o[t]?o[t]+", "+n:n)}),o})(e),t);else if(W.isObject(e)&&W.isIterable(e)){let n={},r,o;for(let t of e){if(!W.isArray(t))throw TypeError("Object iterator must return a key-value pair");n[o=t[0]]=(r=n[o])?W.isArray(r)?[...r,t[1]]:[r,t[1]]:t[1]}i(n,t)}else null!=e&&o(t,e,n)}return this}get(e,t){if(e=eA(e)){let n=W.findKey(this,e);if(n){let e=this[n];if(!t)return e;if(!0===t){let t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=r.exec(e);)n[t[1]]=t[2];return n}if(W.isFunction(t))return t.call(this,e,n);if(W.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eA(e)){let n=W.findKey(this,e);return!!(n&&void 0!==this[n]&&(!t||eE(this,this[n],n,t)))}return!1}delete(e,t){let n=this,r=!1;function o(e){if(e=eA(e)){let o=W.findKey(n,e);o&&(!t||eE(n,n[o],o,t))&&(delete n[o],r=!0)}}return W.isArray(e)?e.forEach(o):o(e),r}clear(e){let t=Object.keys(this),n=t.length,r=!1;for(;n--;){let o=t[n];(!e||eE(this,this[o],o,e,!0))&&(delete this[o],r=!0)}return r}normalize(e){let t=this,n={};return W.forEach(this,(r,o)=>{let i=W.findKey(n,o);if(i){t[i]=ex(r),delete t[o];return}let a=e?o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n):String(o).trim();a!==o&&delete t[o],t[a]=ex(r),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return W.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&W.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){let t=(this[eb]=this[eb]={accessors:{}}).accessors,n=this.prototype;function r(e){let r=eA(e);if(!t[r]){let o=W.toCamelCase(" "+e);["get","set","has"].forEach(t=>{Object.defineProperty(n,t+o,{value:function(n,r,o){return this[t].call(this,e,n,r,o)},configurable:!0})}),t[r]=!0}}return W.isArray(e)?e.forEach(r):r(e),this}}function eC(e,t){let n=this||ev,r=t||n,o=ew.from(r.headers),i=r.data;return W.forEach(e,function(e){i=e.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function eS(e){return!!(e&&e.__CANCEL__)}ew.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(ew.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),W.freezeMethods(ew);class eO extends G{constructor(e,t,n){super(null==e?"canceled":e,G.ERR_CANCELED,t,n),this.name="CanceledError",this.__CANCEL__=!0}}function ek(e,t,n){let r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new G("Request failed with status code "+n.status,[G.ERR_BAD_REQUEST,G.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}let ej=function(e,t){let n,r=Array(e=e||10),o=Array(e),i=0,a=0;return t=void 0!==t?t:1e3,function(c){let s=Date.now(),l=o[a];n||(n=s),r[i]=c,o[i]=s;let u=a,f=0;for(;u!==i;)f+=r[u++],u%=e;if((i=(i+1)%e)===a&&(a=(a+1)%e),s-n{o=i,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{let t=Date.now(),c=t-o;c>=i?a(e,t):(n=e,r||(r=setTimeout(()=>{r=null,a(n)},i-c)))},()=>n&&a(n)]},eP=(e,t,n=3)=>{let r=0,o=ej(50,250);return eT(n=>{let i=n.loaded,a=n.lengthComputable?n.total:void 0,c=i-r,s=o(c);r=i,e({loaded:i,total:a,progress:a?i/a:void 0,bytes:c,rate:s||void 0,estimated:s&&a&&i<=a?(a-i)/s:void 0,event:n,lengthComputable:null!=a,[t?"download":"upload"]:!0})},n)},eF=(e,t)=>{let n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},eM=e=>(...t)=>W.asap(()=>e(...t)),eR=ep.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ep.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ep.origin),ep.navigator&&/(msie|trident)/i.test(ep.navigator.userAgent)):()=>!0,eN=ep.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if("undefined"==typeof document)return;let c=[`${e}=${encodeURIComponent(t)}`];W.isNumber(n)&&c.push(`expires=${new Date(n).toUTCString()}`),W.isString(r)&&c.push(`path=${r}`),W.isString(o)&&c.push(`domain=${o}`),!0===i&&c.push("secure"),W.isString(a)&&c.push(`SameSite=${a}`),document.cookie=c.join("; ")},read(e){if("undefined"==typeof document)return null;let t=document.cookie.match(RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function e_(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||!1==n)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let eI=e=>e instanceof ew?{...e}:e;function eB(e,t){t=t||{};let n={};function r(e,t,n,r){return W.isPlainObject(e)&&W.isPlainObject(t)?W.merge.call({caseless:r},e,t):W.isPlainObject(t)?W.merge({},t):W.isArray(t)?t.slice():t}function o(e,t,n,o){return W.isUndefined(t)?W.isUndefined(e)?void 0:r(void 0,e,n,o):r(e,t,n,o)}function i(e,t){if(!W.isUndefined(t))return r(void 0,t)}function a(e,t){return W.isUndefined(t)?W.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function c(n,o,i){return i in t?r(n,o):i in e?r(void 0,n):void 0}let s={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:c,headers:(e,t,n)=>o(eI(e),eI(t),n,!0)};return W.forEach(Object.keys({...e,...t}),function(r){let i=s[r]||o,a=i(e[r],t[r],r);W.isUndefined(a)&&i!==c||(n[r]=a)}),n}let eL=e=>{let t=eB({},e),{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:c}=t;if(t.headers=a=ew.from(a),t.url=eo(e_(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&a.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):""))),W.isFormData(n)){if(ep.hasStandardBrowserEnv||ep.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(W.isFunction(n.getHeaders)){let e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&a.set(e,n)})}}if(ep.hasStandardBrowserEnv&&(r&&W.isFunction(r)&&(r=r(t)),r||!1!==r&&eR(t.url))){let e=o&&i&&eN.read(i);e&&a.set(o,e)}return t},eH="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){let r,o,i,a,c,s=eL(e),l=s.data,u=ew.from(s.headers).normalize(),{responseType:f,onUploadProgress:d,onDownloadProgress:h}=s;function g(){a&&a(),c&&c(),s.cancelToken&&s.cancelToken.unsubscribe(r),s.signal&&s.signal.removeEventListener("abort",r)}let p=new XMLHttpRequest;function m(){if(!p)return;let r=ew.from("getAllResponseHeaders"in p&&p.getAllResponseHeaders());ek(function(e){t(e),g()},function(e){n(e),g()},{data:f&&"text"!==f&&"json"!==f?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:r,config:e,request:p}),p=null}p.open(s.method.toUpperCase(),s.url,!0),p.timeout=s.timeout,"onloadend"in p?p.onloadend=m:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(m)},p.onabort=function(){p&&(n(new G("Request aborted",G.ECONNABORTED,e,p)),p=null)},p.onerror=function(t){let r=new G(t&&t.message?t.message:"Network Error",G.ERR_NETWORK,e,p);r.event=t||null,n(r),p=null},p.ontimeout=function(){let t=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded",r=s.transitional||ea;s.timeoutErrorMessage&&(t=s.timeoutErrorMessage),n(new G(t,r.clarifyTimeoutError?G.ETIMEDOUT:G.ECONNABORTED,e,p)),p=null},void 0===l&&u.setContentType(null),"setRequestHeader"in p&&W.forEach(u.toJSON(),function(e,t){p.setRequestHeader(t,e)}),W.isUndefined(s.withCredentials)||(p.withCredentials=!!s.withCredentials),f&&"json"!==f&&(p.responseType=s.responseType),h&&([i,c]=eP(h,!0),p.addEventListener("progress",i)),d&&p.upload&&([o,a]=eP(d),p.upload.addEventListener("progress",o),p.upload.addEventListener("loadend",a)),(s.cancelToken||s.signal)&&(r=t=>{p&&(n(!t||t.type?new eO(null,e,p):t),p.abort(),p=null)},s.cancelToken&&s.cancelToken.subscribe(r),s.signal&&(s.signal.aborted?r():s.signal.addEventListener("abort",r)));let v=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(s.url);if(v&&-1===ep.protocols.indexOf(v))return void n(new G("Unsupported protocol "+v+":",G.ERR_BAD_REQUEST,e));p.send(l||null)})},ez=function*(e,t){let n,r=e.byteLength;if(!t||r{let o,i=eD(e,t),a=0,c=e=>{!o&&(o=!0,r&&r(e))};return new ReadableStream({async pull(e){try{let{done:t,value:r}=await i.next();if(t){c(),e.close();return}let o=r.byteLength;if(n){let e=a+=o;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw c(e),e}},cancel:e=>(c(e),i.return())},{highWaterMark:2})},{isFunction:eq}=W,eW=(({Request:e,Response:t})=>({Request:e,Response:t}))(W.global),{ReadableStream:e$,TextEncoder:eG}=W.global,eK=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},eX=e=>{let t,{fetch:n,Request:r,Response:o}=e=W.merge.call({skipUndefined:!0},eW,e),i=n?eq(n):"function"==typeof fetch,a=eq(r),c=eq(o);if(!i)return!1;let s=i&&eq(e$),l=i&&("function"==typeof eG?(t=new eG,e=>t.encode(e)):async e=>new Uint8Array(await new r(e).arrayBuffer())),u=a&&s&&eK(()=>{let e=!1,t=new r(ep.origin,{body:new e$,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),f=c&&s&&eK(()=>W.isReadableStream(new o("").body)),d={stream:f&&(e=>e.body)};i&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{d[e]||(d[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new G(`Response type '${e}' is not supported`,G.ERR_NOT_SUPPORT,n)})});let h=async e=>{if(null==e)return 0;if(W.isBlob(e))return e.size;if(W.isSpecCompliantForm(e)){let t=new r(ep.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return W.isArrayBufferView(e)||W.isArrayBuffer(e)?e.byteLength:(W.isURLSearchParams(e)&&(e+=""),W.isString(e))?(await l(e)).byteLength:void 0},g=async(e,t)=>{let n=W.toFiniteNumber(e.getContentLength());return null==n?h(t):n};return async e=>{let t,{url:i,method:c,data:s,signal:l,cancelToken:h,timeout:p,onDownloadProgress:m,onUploadProgress:v,responseType:y,headers:b,withCredentials:A="same-origin",fetchOptions:x}=eL(e),E=n||fetch;y=y?(y+"").toLowerCase():"text";let w=((e,t)=>{let{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController,o=function(e){if(!n){n=!0,a();let t=e instanceof Error?e:this.reason;r.abort(t instanceof G?t:new eO(t instanceof Error?t.message:t))}},i=t&&setTimeout(()=>{i=null,o(new G(`timeout of ${t}ms exceeded`,G.ETIMEDOUT))},t),a=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));let{signal:c}=r;return c.unsubscribe=()=>W.asap(a),c}})([l,h&&h.toAbortSignal()],p),C=null,S=w&&w.unsubscribe&&(()=>{w.unsubscribe()});try{if(v&&u&&"get"!==c&&"head"!==c&&0!==(t=await g(b,s))){let e,n=new r(i,{method:"POST",body:s,duplex:"half"});if(W.isFormData(s)&&(e=n.headers.get("content-type"))&&b.setContentType(e),n.body){let[e,r]=eF(t,eP(eM(v)));s=eV(n.body,65536,e,r)}}W.isString(A)||(A=A?"include":"omit");let n=a&&"credentials"in r.prototype,l={...x,signal:w,method:c.toUpperCase(),headers:b.normalize().toJSON(),body:s,duplex:"half",credentials:n?A:void 0};C=a&&new r(i,l);let h=await (a?E(C,x):E(i,l)),p=f&&("stream"===y||"response"===y);if(f&&(m||p&&S)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=h[t]});let t=W.toFiniteNumber(h.headers.get("content-length")),[n,r]=m&&eF(t,eP(eM(m),!0))||[];h=new o(eV(h.body,65536,n,()=>{r&&r(),S&&S()}),e)}y=y||"text";let O=await d[W.findKey(d,y)||"text"](h,e);return!p&&S&&S(),await new Promise((t,n)=>{ek(t,n,{data:O,headers:ew.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:C})})}catch(t){if(S&&S(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new G("Network Error",G.ERR_NETWORK,e,C),{cause:t.cause||t});throw G.from(t,t&&t.code,e,C)}}},eY=new Map,eQ=e=>{let t=e&&e.env||{},{fetch:n,Request:r,Response:o}=t,i=[r,o,n],a=i.length,c,s,l=eY;for(;a--;)c=i[a],void 0===(s=l.get(c))&&l.set(c,s=a?new Map:eX(t)),l=s;return s};eQ();let eJ={http:null,xhr:eH,fetch:{get:eQ}};W.forEach(eJ,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let eZ=e=>`- ${e}`,e0=e=>W.isFunction(e)||null===e||!1===e,e1={getAdapter:function(e,t){let n,r,{length:o}=e=W.isArray(e)?e:[e],i={};for(let a=0;a`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new G("There is no suitable adapter to dispatch the request "+(o?e.length>1?"since :\n"+e.map(eZ).join("\n"):" "+eZ(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return r}};function e2(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eO(null,e)}function e5(e){return e2(e),e.headers=ew.from(e.headers),e.data=eC.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),e1.getAdapter(e.adapter||ev.adapter,e)(e).then(function(t){return e2(e),t.data=eC.call(e,e.transformResponse,t),t.headers=ew.from(t.headers),t},function(t){return!eS(t)&&(e2(e),t&&t.response&&(t.response.data=eC.call(e,e.transformResponse,t.response),t.response.headers=ew.from(t.response.headers))),Promise.reject(t)})}let e8="1.13.4",e4={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{e4[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});let e6={};e4.transitional=function(e,t,n){function r(e,t){return"[Axios v"+e8+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return(n,o,i)=>{if(!1===e)throw new G(r(o," has been removed"+(t?" in "+t:"")),G.ERR_DEPRECATED);return t&&!e6[o]&&(e6[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,i)}},e4.spelling=function(e){return(t,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};let e3={assertOptions:function(e,t,n){if("object"!=typeof e)throw new G("options must be an object",G.ERR_BAD_OPTION_VALUE);let r=Object.keys(e),o=r.length;for(;o-- >0;){let i=r[o],a=t[i];if(a){let t=e[i],n=void 0===t||a(t,i,e);if(!0!==n)throw new G("option "+i+" must be "+n,G.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new G("Unknown option "+i,G.ERR_BAD_OPTION)}},validators:e4},e9=e3.validators;class e7{constructor(e){this.defaults=e||{},this.interceptors={request:new ei,response:new ei}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){let n,r;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:o,paramsSerializer:i,headers:a}=t=eB(this.defaults,t);void 0!==o&&e3.assertOptions(o,{silentJSONParsing:e9.transitional(e9.boolean),forcedJSONParsing:e9.transitional(e9.boolean),clarifyTimeoutError:e9.transitional(e9.boolean)},!1),null!=i&&(W.isFunction(i)?t.paramsSerializer={serialize:i}:e3.assertOptions(i,{encode:e9.function,serialize:e9.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),e3.assertOptions(t,{baseUrl:e9.spelling("baseURL"),withXsrfToken:e9.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let c=a&&W.merge(a.common,a[t.method]);a&&W.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=ew.concat(c,a);let s=[],l=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(l=l&&e.synchronous,s.unshift(e.fulfilled,e.rejected))});let u=[];this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let f=0;if(!l){let e=[e5.bind(this),void 0];for(e.unshift(...s),e.push(...u),r=e.length,n=Promise.resolve(t);f{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t,r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new eO(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason)return void e(this.reason);this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new te(function(t){e=t}),cancel:e}}}let tt={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(tt).forEach(([e,t])=>{tt[t]=e});let tn=function e(t){let n=new e7(t),r=a(e7.prototype.request,n);return W.extend(r,e7.prototype,n,{allOwnKeys:!0}),W.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(eB(t,n))},r}(ev);tn.Axios=e7,tn.CanceledError=eO,tn.CancelToken=te,tn.isCancel=eS,tn.VERSION=e8,tn.toFormData=Z,tn.AxiosError=G,tn.Cancel=tn.CanceledError,tn.all=function(e){return Promise.all(e)},tn.spread=function(e){return function(t){return e.apply(null,t)}},tn.isAxiosError=function(e){return W.isObject(e)&&!0===e.isAxiosError},tn.mergeConfig=eB,tn.AxiosHeaders=ew,tn.formToJSON=e=>em(W.isHTMLForm(e)?new FormData(e):e),tn.getAdapter=e1.getAdapter,tn.HttpStatusCode=tt,tn.default=tn;let tr=tn},24756:(e,t,n)=>{"use strict";n.d(t,{A:()=>v});var r=n(21858),o=n(12115),i=n(47650),a=n(71367);n(9587);var c=n(74686),s=o.createContext(null),l=n(85757),u=n(49172),f=[],d=n(85440),h=n(3338),g="rc-util-locker-".concat(Date.now()),p=0,m=function(e){return!1!==e&&((0,a.A)()&&e?"string"==typeof e?document.querySelector(e):"function"==typeof e?e():e:null)};let v=o.forwardRef(function(e,t){var n,v,y,b=e.open,A=e.autoLock,x=e.getContainer,E=(e.debug,e.autoDestroy),w=void 0===E||E,C=e.children,S=o.useState(b),O=(0,r.A)(S,2),k=O[0],j=O[1],T=k||b;o.useEffect(function(){(w||b)&&j(b)},[b,w]);var P=o.useState(function(){return m(x)}),F=(0,r.A)(P,2),M=F[0],R=F[1];o.useEffect(function(){var e=m(x);R(null!=e?e:null)});var N=function(e,t){var n=o.useState(function(){return(0,a.A)()?document.createElement("div"):null}),i=(0,r.A)(n,1)[0],c=o.useRef(!1),d=o.useContext(s),h=o.useState(f),g=(0,r.A)(h,2),p=g[0],m=g[1],v=d||(c.current?void 0:function(e){m(function(t){return[e].concat((0,l.A)(t))})});function y(){i.parentElement||document.body.appendChild(i),c.current=!0}function b(){var e;null==(e=i.parentElement)||e.removeChild(i),c.current=!1}return(0,u.A)(function(){return e?d?d(y):y():b(),b},[e]),(0,u.A)(function(){p.length&&(p.forEach(function(e){return e()}),m(f))},[p]),[i,v]}(T&&!M,0),_=(0,r.A)(N,2),I=_[0],B=_[1],L=null!=M?M:I;n=!!(A&&b&&(0,a.A)()&&(L===I||L===document.body)),v=o.useState(function(){return p+=1,"".concat(g,"_").concat(p)}),y=(0,r.A)(v,1)[0],(0,u.A)(function(){if(n){var e=(0,h.V)(document.body).width,t=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth;(0,d.BD)("\nhtml body {\n overflow-y: hidden;\n ".concat(t?"width: calc(100% - ".concat(e,"px);"):"","\n}"),y)}else(0,d.m6)(y);return function(){(0,d.m6)(y)}},[n,y]);var H=null;C&&(0,c.f3)(C)&&t&&(H=C.ref);var z=(0,c.xK)(H,t);if(!T||!(0,a.A)()||void 0===M)return null;var D=!1===L,U=C;return t&&(U=o.cloneElement(C,{ref:z})),o.createElement(s.Provider,{value:B},D?U:(0,i.createPortal)(U,L))})},24848:(e,t,n)=>{"use strict";n.d(t,{A:()=>A,y:()=>b});var r=n(12115),o=n(48776),i=n(29300),a=n.n(i),c=n(2419),s=n(26791),l=n(15982),u=n(68151),f=n(16622),d=n(6504),h=n(31390),g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let p=e=>{let{children:t,prefixCls:n}=e,o=(0,u.A)(n),[i,s,l]=(0,d.A)(n,o);return i(r.createElement(c.ph,{classNames:{list:a()(s,l,o)}},t))},m=(e,t)=>{let{prefixCls:n,key:o}=t;return r.createElement(p,{prefixCls:n,key:o},e)},v=r.forwardRef((e,t)=>{let{top:n,prefixCls:i,getContainer:s,maxCount:u,duration:f=3,rtl:d,transitionName:g,onAllRemoved:p}=e,{getPrefixCls:v,getPopupContainer:y,message:b,direction:A}=r.useContext(l.QO),x=i||v("message"),E=r.createElement("span",{className:"".concat(x,"-close-x")},r.createElement(o.A,{className:"".concat(x,"-close-icon")})),[w,C]=(0,c.hN)({prefixCls:x,style:()=>({left:"50%",transform:"translateX(-50%)",top:null!=n?n:8}),className:()=>a()({["".concat(x,"-rtl")]:null!=d?d:"rtl"===A}),motion:()=>(0,h.V)(x,g),closable:!1,closeIcon:E,duration:f,getContainer:()=>(null==s?void 0:s())||(null==y?void 0:y())||document.body,maxCount:u,onAllRemoved:p,renderNotifications:m});return r.useImperativeHandle(t,()=>Object.assign(Object.assign({},w),{prefixCls:x,message:b})),C}),y=0;function b(e){let t=r.useRef(null);return(0,s.rJ)("Message"),[r.useMemo(()=>{let e=e=>{var n;null==(n=t.current)||n.close(e)},n=n=>{if(!t.current){let e=()=>{};return e.then=()=>{},e}let{open:o,prefixCls:i,message:c}=t.current,s="".concat(i,"-notice"),{content:l,icon:u,type:d,key:p,className:m,style:v,onClose:b}=n,A=g(n,["content","icon","type","key","className","style","onClose"]),x=p;return null==x&&(y+=1,x="antd-message-".concat(y)),(0,h.E)(t=>(o(Object.assign(Object.assign({},A),{key:x,content:r.createElement(f.Mb,{prefixCls:i,type:d,icon:u},l),placement:"top",className:a()(d&&"".concat(s,"-").concat(d),m,null==c?void 0:c.className),style:Object.assign(Object.assign({},null==c?void 0:c.style),v),onClose:()=>{null==b||b(),t()}})),()=>{e(x)}))},o={open:n,destroy:n=>{var r;void 0!==n?e(n):null==(r=t.current)||r.destroy()}};return["info","success","warning","error","loading"].forEach(e=>{o[e]=(t,r,o)=>{let i,a,c;return i=t&&"object"==typeof t&&"content"in t?t:{content:t},"function"==typeof r?c=r:(a=r,c=o),n(Object.assign(Object.assign({onClose:c,duration:a},i),{type:e}))}}),o},[]),r.createElement(v,Object.assign({key:"message-holder"},e,{ref:t}))]}function A(e){return b(e)}},25374:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(12115),o=n(28248),i=n(98696),a=n(37120);let c=e=>"function"==typeof(null==e?void 0:e.then),s=e=>{let{type:t,children:n,prefixCls:s,buttonProps:l,close:u,autoFocus:f,emitEvent:d,isSilent:h,quitOnNullishReturnValue:g,actionFn:p}=e,m=r.useRef(!1),v=r.useRef(null),[y,b]=(0,o.A)(!1),A=function(){for(var e=arguments.length,t=Array(e),n=0;n{let e=null;return f&&(e=setTimeout(()=>{var e;null==(e=v.current)||e.focus({preventScroll:!0})})),()=>{e&&clearTimeout(e)}},[f]),r.createElement(i.Ay,Object.assign({},(0,a.DU)(t),{onClick:e=>{let t;if(!m.current){if(m.current=!0,!p)return void A();if(d){if(t=p(e),g&&!c(t)){m.current=!1,A(e);return}}else if(p.length)t=p(u),m.current=!1;else if(!c(t=p()))return void A();(e=>{c(e)&&(b(!0),e.then(function(){for(var e=arguments.length,t=Array(e),n=0;n{if(b(!1,!0),m.current=!1,null==h||!h())return Promise.reject(e)}))})(t)}},loading:y,prefixCls:s},l,{ref:v}),n)}},25856:(e,t,n)=>{"use strict";n.d(t,{L:()=>y}),n(12115);var r,o=n(47650),i=n.t(o,2),a=n(42115),c=n(94251),s=n(86608),l=(0,n(27061).A)({},i),u=l.version,f=l.render,d=l.unmountComponentAtNode;try{Number((u||"").split(".")[0])>=18&&(r=l.createRoot)}catch(e){}function h(e){var t=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&"object"===(0,s.A)(t)&&(t.usingClientEntryPoint=e)}var g="__rc_react_root__";function p(){return(p=(0,c.A)((0,a.A)().mark(function e(t){return(0,a.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.resolve().then(function(){var e;null==(e=t[g])||e.unmount(),delete t[g]}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function m(){return(m=(0,c.A)((0,a.A)().mark(function e(t){return(0,a.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(void 0===r){e.next=2;break}return e.abrupt("return",function(e){return p.apply(this,arguments)}(t));case 2:d(t);case 3:case"end":return e.stop()}},e)}))).apply(this,arguments)}let v=(e,t)=>(!function(e,t){var n;if(r)return h(!0),n=t[g]||r(t),h(!1),n.render(e),t[g]=n;null==f||f(e,t)}(e,t),()=>(function(e){return m.apply(this,arguments)})(t));function y(e){return e&&(v=e),v}},26791:(e,t,n)=>{"use strict";n.d(t,{_n:()=>i,rJ:()=>a});var r=n(12115);function o(){}n(9587);let i=r.createContext({}),a=()=>{let e=()=>{};return e.deprecated=o,e}},27061:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(40419);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t{"use strict";n.d(t,{A:()=>i});var r=n(21858),o=n(12115);function i(e){var t=o.useRef(!1),n=o.useState(e),i=(0,r.A)(n,2),a=i[0],c=i[1];return o.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]),[a,function(e,n){n&&t.current||c(e)}]}},28296:(e,t,n)=>{"use strict";n.d(t,{wE:()=>a});var r=n(38194),o=n(4697),i=n(68448);function a(e){return(0,i.VF)(function e(t,n,a,l,u,f,d,h,g){for(var p,m,v,y,b=0,A=0,x=d,E=0,w=0,C=0,S=1,O=1,k=1,j=0,T="",P=u,F=f,M=l,R=T;O;)switch(C=j,j=(0,i.K2)()){case 40:if(108!=C&&58==(0,o.wN)(R,x-1)){-1!=(0,o.K5)(R+=(0,o.HC)((0,i.Tb)(j),"&","&\f"),"&\f",(0,o.tn)(b?h[b-1]:0))&&(k=-1);break}case 34:case 39:case 91:R+=(0,i.Tb)(j);break;case 9:case 10:case 13:case 32:R+=(0,i.mw)(C);break;case 92:R+=(0,i.Nc)((0,i.OW)()-1,7);continue;case 47:switch((0,i.se)()){case 42:case 47:(0,o.BC)((p=(0,i.nf)((0,i.K2)(),(0,i.OW)()),m=n,v=a,y=g,(0,i.rH)(p,m,v,r.YK,(0,o.HT)((0,i.Tp)()),(0,o.c1)(p,2,-2),0,y)),g),(5==(0,i.Sh)(C||1)||5==(0,i.Sh)((0,i.se)()||1))&&(0,o.b2)(R)&&" "!==(0,o.c1)(R,-1,void 0)&&(R+=" ");break;default:R+="/"}break;case 123*S:h[b++]=(0,o.b2)(R)*k;case 125*S:case 59:case 0:switch(j){case 0:case 125:O=0;case 59+A:-1==k&&(R=(0,o.HC)(R,/\f/g,"")),w>0&&((0,o.b2)(R)-x||0===S&&47===C)&&(0,o.BC)(w>32?s(R+";",l,a,x-1,g):s((0,o.HC)(R," ","")+";",l,a,x-2,g),g);break;case 59:R+=";";default:if((0,o.BC)(M=c(R,n,a,b,A,u,h,T,P=[],F=[],x,f),f),123===j)if(0===A)e(R,n,M,M,P,f,x,h,F);else{switch(E){case 99:if(110===(0,o.wN)(R,3))break;case 108:if(97===(0,o.wN)(R,2))break;default:A=0;case 100:case 109:case 115:}A?e(t,M,M,l&&(0,o.BC)(c(t,M,M,0,0,u,h,T,u,P=[],x,F),F),u,F,x,h,l?P:F):e(R,M,M,M,[""],F,0,h,F)}}b=A=w=0,S=k=1,T=R="",x=d;break;case 58:x=1+(0,o.b2)(R),w=C;default:if(S<1){if(123==j)--S;else if(125==j&&0==S++&&125==(0,i.YL)())continue}switch(R+=(0,o.HT)(j),j*S){case 38:k=A>0?1:(R+="\f",-1);break;case 44:h[b++]=((0,o.b2)(R)-1)*k,k=1;break;case 64:45===(0,i.se)()&&(R+=(0,i.Tb)((0,i.K2)())),E=(0,i.se)(),A=x=(0,o.b2)(T=R+=(0,i.Cv)((0,i.OW)())),j++;break;case 45:45===C&&2==(0,o.b2)(R)&&(S=0)}}return f}("",null,null,null,[""],e=(0,i.c4)(e),0,[0],e))}function c(e,t,n,a,c,s,l,u,f,d,h,g){for(var p=c-1,m=0===c?s:[""],v=(0,o.FK)(m),y=0,b=0,A=0;y0?m[x]+" "+E:(0,o.HC)(E,/&\f/g,m[x])))&&(f[A++]=w);return(0,i.rH)(e,t,n,0===c?r.XZ:u,f,d,h,g)}function s(e,t,n,a,c){return(0,i.rH)(e,t,n,r.LU,(0,o.c1)(e,0,a),(0,o.c1)(e,a+1,-1),a,c)}},28383:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(11823);function o(e,t){for(var n=0;n{var n;!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e="",t=0;t{"use strict";let r;n.d(t,{A:()=>w});var o=n(12115),i=n(48776),a=n(29300),c=n.n(a),s=n(55121),l=n(74686),u=n(9184),f=n(50497),d=n(9130),h=n(93666),g=n(71367),p=n(6833),m=n(15982),v=n(68151),y=n(70802),b=n(2732),A=n(94480),x=n(41222),E=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};(0,g.A)()&&window.document.documentElement&&document.documentElement.addEventListener("click",e=>{r={x:e.pageX,y:e.pageY},setTimeout(()=>{r=null},100)},!0);let w=e=>{let{prefixCls:t,className:n,rootClassName:a,open:g,wrapClassName:w,centered:C,getContainer:S,focusTriggerAfterClose:O=!0,style:k,visible:j,width:T=520,footer:P,classNames:F,styles:M,children:R,loading:N,confirmLoading:_,zIndex:I,mousePosition:B,onOk:L,onCancel:H,destroyOnHidden:z,destroyOnClose:D,panelRef:U=null,modalRender:V}=e,q=E(e,["prefixCls","className","rootClassName","open","wrapClassName","centered","getContainer","focusTriggerAfterClose","style","visible","width","footer","classNames","styles","children","loading","confirmLoading","zIndex","mousePosition","onOk","onCancel","destroyOnHidden","destroyOnClose","panelRef","modalRender"]),{getPopupContainer:W,getPrefixCls:$,direction:G,modal:K}=o.useContext(m.QO),X=e=>{_||null==H||H(e)},Y=$("modal",t),Q=$(),J=(0,v.A)(Y),[Z,ee,et]=(0,x.Ay)(Y,J),en=c()(w,{["".concat(Y,"-centered")]:null!=C?C:null==K?void 0:K.centered,["".concat(Y,"-wrap-rtl")]:"rtl"===G}),er=null===P||N?null:o.createElement(A.w,Object.assign({},e,{onOk:e=>{null==L||L(e)},onCancel:X})),[eo,ei,ea,ec]=(0,f.$)((0,f.d)(e),(0,f.d)(K),{closable:!0,closeIcon:o.createElement(i.A,{className:"".concat(Y,"-close-icon")}),closeIconRender:e=>(0,A.O)(Y,e)}),es=V?e=>o.createElement("div",{className:"".concat(Y,"-render")},V(e)):void 0,el=".".concat(Y,"-").concat(V?"render":"content"),eu=(0,b.f)(el),ef=(0,l.K4)(U,eu),[ed,eh]=(0,d.YK)("Modal",I),[eg,ep]=o.useMemo(()=>T&&"object"==typeof T?[void 0,T]:[T,void 0],[T]),em=o.useMemo(()=>{let e={};return ep&&Object.keys(ep).forEach(t=>{let n=ep[t];void 0!==n&&(e["--".concat(Y,"-").concat(t,"-width")]="number"==typeof n?"".concat(n,"px"):n)}),e},[Y,ep]);return Z(o.createElement(u.A,{form:!0,space:!0},o.createElement(p.A.Provider,{value:eh},o.createElement(s.A,Object.assign({width:eg},q,{zIndex:ed,getContainer:void 0===S?W:S,prefixCls:Y,rootClassName:c()(ee,a,et,J),footer:er,visible:null!=g?g:j,mousePosition:null!=B?B:r,onClose:X,closable:eo?Object.assign({disabled:ea,closeIcon:ei},ec):eo,closeIcon:ei,focusTriggerAfterClose:O,transitionName:(0,h.b)(Q,"zoom",e.transitionName),maskTransitionName:(0,h.b)(Q,"fade",e.maskTransitionName),className:c()(ee,n,null==K?void 0:K.className),style:Object.assign(Object.assign(Object.assign({},null==K?void 0:K.style),k),em),classNames:Object.assign(Object.assign(Object.assign({},null==K?void 0:K.classNames),F),{wrapper:c()(en,null==F?void 0:F.wrapper)}),styles:Object.assign(Object.assign({},null==K?void 0:K.styles),M),panelRef:ef,destroyOnClose:null!=z?z:D,modalRender:es}),N?o.createElement(y.A,{active:!0,title:!1,paragraph:{rows:4},className:"".concat(Y,"-body-skeleton")}):R))))}},30857:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}n.d(t,{A:()=>r})},31390:(e,t,n)=>{"use strict";function r(e,t){return{motionName:null!=t?t:"".concat(e,"-move-up")}}function o(e){let t,n=new Promise(n=>{t=e(()=>{n(!0)})}),r=()=>{null==t||t()};return r.then=(e,t)=>n.then(e,t),r.promise=n,r}n.d(t,{E:()=>o,V:()=>r})},31474:(e,t,n)=>{"use strict";n.d(t,{Q1:()=>A}),n(12115);var r=n(30857),o=n(28383),i=n(38289),a=n(9424),c=n(27061),s=n(20235),l=n(86608),u=n(40419);let f=Math.round;function d(e,t){let n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}let h=(e,t,n)=>0===n?e:e/100;function g(e,t){let n=t||255;return e>n?n:e<0?0:e}class p{constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,u.A)(this,"isValid",!0),(0,u.A)(this,"r",0),(0,u.A)(this,"g",0),(0,u.A)(this,"b",0),(0,u.A)(this,"a",1),(0,u.A)(this,"_h",void 0),(0,u.A)(this,"_s",void 0),(0,u.A)(this,"_l",void 0),(0,u.A)(this,"_v",void 0),(0,u.A)(this,"_max",void 0),(0,u.A)(this,"_min",void 0),(0,u.A)(this,"_brightness",void 0),e)if("string"==typeof e){let t=e.trim();function n(e){return t.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(t)?this.fromHexString(t):n("rgb")?this.fromRgbString(t):n("hsl")?this.fromHslString(t):(n("hsv")||n("hsb"))&&this.fromHsvString(t)}else if(e instanceof p)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=g(e.r),this.g=g(e.g),this.b=g(e.b),this.a="number"==typeof e.a?g(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else if(t("hsv"))this.fromHsv(e);else throw Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){let t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}let t=e(this.r);return .2126*t+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){let e=this.getMax()-this.getMin();0===e?this._h=0:this._h=f(60*(this.r===this.getMax()?(this.g-this.b)/e+6*(this.g1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e,t=50){let n=this._c(e),r=t/100,o=e=>(n[e]-this[e])*r+this[e],i={r:f(o("r")),g:f(o("g")),b:f(o("b")),a:f(100*o("a"))/100};return this._c(i)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){let t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>f((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return 128>this.getBrightness()}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#",t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;let n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;let r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){let t=f(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let e=this.getHue(),t=f(100*this.getSaturation()),n=f(100*this.getLightness());return 1!==this.a?`hsla(${e},${t}%,${n}%,${this.a})`:`hsl(${e},${t}%,${n}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(e,t,n){let r=this.clone();return r[e]=g(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl({h:e,s:t,l:n,a:r}){if(this._h=e%360,this._s=t,this._l=n,this.a="number"==typeof r?r:1,t<=0){let e=f(255*n);this.r=e,this.g=e,this.b=e}let o=0,i=0,a=0,c=e/60,s=(1-Math.abs(2*n-1))*t,l=s*(1-Math.abs(c%2-1));c>=0&&c<1?(o=s,i=l):c>=1&&c<2?(o=l,i=s):c>=2&&c<3?(i=s,a=l):c>=3&&c<4?(i=l,a=s):c>=4&&c<5?(o=l,a=s):c>=5&&c<6&&(o=s,a=l);let u=n-s/2;this.r=f((o+u)*255),this.g=f((i+u)*255),this.b=f((a+u)*255)}fromHsv({h:e,s:t,v:n,a:r}){this._h=e%360,this._s=t,this._v=n,this.a="number"==typeof r?r:1;let o=f(255*n);if(this.r=o,this.g=o,this.b=o,t<=0)return;let i=e/60,a=Math.floor(i),c=i-a,s=f(n*(1-t)*255),l=f(n*(1-t*c)*255),u=f(n*(1-t*(1-c))*255);switch(a){case 0:this.g=u,this.b=s;break;case 1:this.r=l,this.b=s;break;case 2:this.r=s,this.b=u;break;case 3:this.r=s,this.g=l;break;case 4:this.r=u,this.g=s;break;default:this.g=s,this.b=l}}fromHsvString(e){let t=d(e,h);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=d(e,h);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=d(e,(e,t)=>t.includes("%")?f(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var m=["b"],v=["v"],y=function(e){return Math.round(Number(e||0))},b=function(e){if(e instanceof p)return e;if(e&&"object"===(0,l.A)(e)&&"h"in e&&"b"in e){var t=e.b,n=(0,s.A)(e,m);return(0,c.A)((0,c.A)({},n),{},{v:t})}return"string"==typeof e&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e},A=function(e){(0,i.A)(n,e);var t=(0,a.A)(n);function n(e){return(0,r.A)(this,n),t.call(this,b(e))}return(0,o.A)(n,[{key:"toHsbString",value:function(){var e=this.toHsb(),t=y(100*e.s),n=y(100*e.b),r=y(e.h),o=e.a,i="hsb(".concat(r,", ").concat(t,"%, ").concat(n,"%)"),a="hsba(".concat(r,", ").concat(t,"%, ").concat(n,"%, ").concat(o.toFixed(2*(0!==o)),")");return 1===o?i:a}},{key:"toHsb",value:function(){var e=this.toHsv(),t=e.v,n=(0,s.A)(e,v);return(0,c.A)((0,c.A)({},n),{},{b:t,a:this.a})}}]),n}(p);!function(e){e instanceof A||new A(e)}("#1677ff"),n(29300),n(11719)},32110:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"}},32655:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=[]},32934:(e,t,n)=>{"use strict";n.d(t,{A:()=>l});var r,o=n(21858),i=n(27061),a=n(12115),c=0,s=(0,i.A)({},r||(r=n.t(a,2))).useId;let l=s?function(e){var t=s();return e||t}:function(e){var t=a.useState("ssr-id"),n=(0,o.A)(t,2),r=n[0],i=n[1];return(a.useEffect(function(){var e=c;c+=1,i("rc_unique_".concat(e))},[]),e)?e:r}},35030:(e,t,n)=>{"use strict";n.d(t,{A:()=>j});var r=n(79630),o=n(21858),i=n(40419),a=n(20235),c=n(12115),s=n(29300),l=n.n(s),u=n(68057),f=n(97089),d=n(27061),h=n(86608),g=n(85440),p=n(48680),m=n(9587);function v(e){return"object"===(0,h.A)(e)&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"===(0,h.A)(e.icon)||"function"==typeof e.icon)}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,n){var r=e[n];return"class"===n?(t.className=r,delete t.class):(delete t[n],t[n.replace(/-(.)/g,function(e,t){return t.toUpperCase()})]=r),t},{})}function b(e){return(0,u.cM)(e)[0]}function A(e){return e?Array.isArray(e)?e:[e]:[]}var x=function(e){var t=(0,c.useContext)(f.A),n=t.csp,r=t.prefixCls,o=t.layer,i="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";r&&(i=i.replace(/anticon/g,r)),o&&(i="@layer ".concat(o," {\n").concat(i,"\n}")),(0,c.useEffect)(function(){var t=e.current,r=(0,p.j)(t);(0,g.BD)(i,"@ant-design-icons",{prepend:!o,csp:n,attachTo:r})},[])},E=["icon","className","onClick","style","primaryColor","secondaryColor"],w={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},C=function(e){var t,n,r=e.icon,o=e.className,i=e.onClick,s=e.style,l=e.primaryColor,u=e.secondaryColor,f=(0,a.A)(e,E),h=c.useRef(),g=w;if(l&&(g={primaryColor:l,secondaryColor:u||b(l)}),x(h),t=v(r),n="icon should be icon definiton, but got ".concat(r),(0,m.Ay)(t,"[@ant-design/icons] ".concat(n)),!v(r))return null;var p=r;return p&&"function"==typeof p.icon&&(p=(0,d.A)((0,d.A)({},p),{},{icon:p.icon(g.primaryColor,g.secondaryColor)})),function e(t,n,r){return r?c.createElement(t.tag,(0,d.A)((0,d.A)({key:n},y(t.attrs)),r),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))})):c.createElement(t.tag,(0,d.A)({key:n},y(t.attrs)),(t.children||[]).map(function(r,o){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))}))}(p.icon,"svg-".concat(p.name),(0,d.A)((0,d.A)({className:o,onClick:i,style:s,"data-icon":p.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f),{},{ref:h}))};function S(e){var t=A(e),n=(0,o.A)(t,2),r=n[0],i=n[1];return C.setTwoToneColors({primaryColor:r,secondaryColor:i})}C.displayName="IconReact",C.getTwoToneColors=function(){return(0,d.A)({},w)},C.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;w.primaryColor=t,w.secondaryColor=n||b(t),w.calculated=!!n};var O=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];S(u.z1.primary);var k=c.forwardRef(function(e,t){var n=e.className,s=e.icon,u=e.spin,d=e.rotate,h=e.tabIndex,g=e.onClick,p=e.twoToneColor,m=(0,a.A)(e,O),v=c.useContext(f.A),y=v.prefixCls,b=void 0===y?"anticon":y,x=v.rootClassName,E=l()(x,b,(0,i.A)((0,i.A)({},"".concat(b,"-").concat(s.name),!!s.name),"".concat(b,"-spin"),!!u||"loading"===s.name),n),w=h;void 0===w&&g&&(w=-1);var S=A(p),k=(0,o.A)(S,2),j=k[0],T=k[1];return c.createElement("span",(0,r.A)({role:"img","aria-label":s.name},m,{ref:t,tabIndex:w,onClick:g,className:E}),c.createElement(C,{icon:s,primaryColor:j,secondaryColor:T,style:d?{msTransform:"rotate(".concat(d,"deg)"),transform:"rotate(".concat(d,"deg)")}:void 0}))});k.displayName="AntdIcon",k.getTwoToneColor=function(){var e=C.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},k.setTwoToneColor=S;let j=k},35145:(e,t,n)=>{"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{A:()=>r})},35149:(e,t,n)=>{"use strict";n.d(t,{A:()=>p});var r=n(85757),o=n(12115),i=n(61216),a=n(32655),c=n(15982),s=n(16025),l=n(8530),u=n(85051),f=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let d=o.forwardRef((e,t)=>{var n,{afterClose:i,config:a}=e,d=f(e,["afterClose","config"]);let[h,g]=o.useState(!0),[p,m]=o.useState(a),{direction:v,getPrefixCls:y}=o.useContext(c.QO),b=y("modal"),A=y(),x=function(){for(var e,t=arguments.length,n=Array(t),o=0;onull==e?void 0:e.triggerCancel)&&(null==(e=p.onCancel)||e.call.apply(e,[p,()=>{}].concat((0,r.A)(n.slice(1)))))};o.useImperativeHandle(t,()=>({destroy:x,update:e=>{m(t=>{let n="function"==typeof e?e(t):e;return Object.assign(Object.assign({},t),n)})}}));let E=null!=(n=p.okCancel)?n:"confirm"===p.type,[w]=(0,l.A)("Modal",s.A.Modal);return o.createElement(u.A,Object.assign({prefixCls:b,rootPrefixCls:A},p,{close:x,open:h,afterClose:()=>{var e;i(),null==(e=p.afterClose)||e.call(p)},okText:p.okText||(E?null==w?void 0:w.okText:null==w?void 0:w.justOkText),direction:p.direction||v,cancelText:p.cancelText||(null==w?void 0:w.cancelText)},d))}),h=0,g=o.memo(o.forwardRef((e,t)=>{let[n,i]=(()=>{let[e,t]=o.useState([]);return[e,o.useCallback(e=>(t(t=>[].concat((0,r.A)(t),[e])),()=>{t(t=>t.filter(t=>t!==e))}),[])]})();return o.useImperativeHandle(t,()=>({patchElement:i}),[i]),o.createElement(o.Fragment,null,n)})),p=function(){let e=o.useRef(null),[t,n]=o.useState([]);o.useEffect(()=>{t.length&&((0,r.A)(t).forEach(e=>{e()}),n([]))},[t]);let c=o.useCallback(t=>function(i){var c;let s,l;h+=1;let u=o.createRef(),f=new Promise(e=>{s=e}),g=!1,p=o.createElement(d,{key:"modal-".concat(h),config:t(i),ref:u,afterClose:()=>{null==l||l()},isSilent:()=>g,onConfirm:e=>{s(e)}});return(l=null==(c=e.current)?void 0:c.patchElement(p))&&a.A.push(l),{destroy:()=>{function e(){var e;null==(e=u.current)||e.destroy()}u.current?e():n(t=>[].concat((0,r.A)(t),[e]))},update:e=>{function t(){var t;null==(t=u.current)||t.update(e)}u.current?t():n(e=>[].concat((0,r.A)(e),[t]))},then:e=>(g=!0,f.then(e))}},[]);return[o.useMemo(()=>({info:c(i.$D),success:c(i.Ej),error:c(i.jT),warning:c(i.fp),confirm:c(i.lr)}),[c]),o.createElement(g,{key:"modal-holder",ref:e})]}},35519:(e,t,n)=>{"use strict";n.d(t,{sb:()=>i,vG:()=>a});var r=n(12115),o=n(13418);let i={token:o.A,override:{override:o.A},hashed:!0},a=r.createContext(i)},37120:(e,t,n)=>{"use strict";n.d(t,{Ap:()=>s,DU:()=>l,u1:()=>f,uR:()=>d});var r=n(85757),o=n(12115),i=n(80163),a=n(68495);let c=/^[\u4E00-\u9FA5]{2}$/,s=c.test.bind(c);function l(e){return"danger"===e?{danger:!0}:{type:e}}function u(e){return"string"==typeof e}function f(e){return"text"===e||"link"===e}function d(e,t){let n=!1,r=[];return o.Children.forEach(e,e=>{let t=typeof e,o="string"===t||"number"===t;if(n&&o){let t=r.length-1,n=r[t];r[t]="".concat(n).concat(e)}else r.push(e);n=o}),o.Children.map(r,e=>(function(e,t){if(null==e)return;let n=t?" ":"";return"string"!=typeof e&&"number"!=typeof e&&u(e.type)&&s(e.props.children)?(0,i.Ob)(e,{children:e.props.children.split("").join(n)}):u(e)?s(e)?o.createElement("span",null,e.split("").join(n)):o.createElement("span",null,e):(0,i.zv)(e)?o.createElement("span",null,e):e})(e,t))}["default","primary","danger"].concat((0,r.A)(a.s))},37930:(e,t,n)=>{"use strict";n.d(t,{cM:()=>function e(t,n,r){return r?y.createElement(t.tag,{key:n,...E(t.attrs),...r},(t.children||[]).map((r,o)=>e(r,"".concat(n,"-").concat(t.tag,"-").concat(o)))):y.createElement(t.tag,{key:n,...E(t.attrs)},(t.children||[]).map((r,o)=>e(r,"".concat(n,"-").concat(t.tag,"-").concat(o))))},Em:()=>w,P3:()=>x,al:()=>C,yf:()=>S,lf:()=>O,$e:()=>A});var r=n(61706);let o="data-rc-order",i="data-rc-priority",a=new Map;function c({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:"rc-util-key"}function s(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function l(e){return Array.from((a.get(e)||e).children).filter(e=>"STYLE"===e.tagName)}function u(e,t={}){if(!("undefined"!=typeof window&&window.document&&window.document.createElement))return null;let{csp:n,prepend:r,priority:a=0}=t,c="queue"===r?"prependQueue":r?"prepend":"append",f="prependQueue"===c,d=document.createElement("style");d.setAttribute(o,c),f&&a&&d.setAttribute(i,`${a}`),n?.nonce&&(d.nonce=n?.nonce),d.innerHTML=e;let h=s(t),{firstChild:g}=h;if(r){if(f){let e=(t.styles||l(h)).filter(e=>!!["prepend","prependQueue"].includes(e.getAttribute(o))&&a>=Number(e.getAttribute(i)||0));if(e.length)return h.insertBefore(d,e[e.length-1].nextSibling),d}h.insertBefore(d,g)}else h.appendChild(d);return d}function f(e){return e?.getRootNode?.()}let d={},h=[];function g(e,t){}function p(e,t){}function m(e,t,n){t||d[n]||(e(!1,n),d[n]=!0)}function v(e,t){m(g,e,t)}v.preMessage=e=>{h.push(e)},v.resetWarned=function(){d={}},v.noteOnce=function(e,t){m(p,e,t)};var y=n(12115),b=n(8396);function A(e,t){v(e,"[@ant-design/icons] ".concat(t))}function x(e){return"object"==typeof e&&"string"==typeof e.name&&"string"==typeof e.theme&&("object"==typeof e.icon||"function"==typeof e.icon)}function E(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((t,n)=>{let r=e[n];return"class"===n?(t.className=r,delete t.class):(delete t[n],t[n.replace(/-(.)/g,(e,t)=>t.toUpperCase())]=r),t},{})}function w(e){return(0,r.cM)(e)[0]}function C(e){return e?Array.isArray(e)?e:[e]:[]}let S={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"},O=e=>{let{csp:t,prefixCls:n,layer:r}=(0,y.useContext)(b.A),o="\n.anticon {\n display: inline-flex;\n align-items: center;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n vertical-align: inherit;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";n&&(o=o.replace(/anticon/g,n)),r&&(o="@layer ".concat(r," {\n").concat(o,"\n}")),(0,y.useEffect)(()=>{let n=function(e){return f(e)instanceof ShadowRoot?f(e):null}(e.current);!function(e,t,n={}){let r=s(n),o=l(r),i={...n,styles:o},f=a.get(r);if(!f||!function(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}(document,f)){let e=u("",i),{parentNode:t}=e;a.set(r,t),r.removeChild(e)}let d=function(e,t={}){let{styles:n}=t;return(n||=l(s(t))).find(n=>n.getAttribute(c(t))===e)}(t,i);if(d)return i.csp?.nonce&&d.nonce!==i.csp?.nonce&&(d.nonce=i.csp?.nonce),d.innerHTML!==e&&(d.innerHTML=e);u(e,i).setAttribute(c(i),t)}(o,"@ant-design-icons",{prepend:!r,csp:t,attachTo:n})},[])}},38194:(e,t,n)=>{"use strict";n.d(t,{CU:()=>u,IO:()=>d,LU:()=>s,MS:()=>r,Sv:()=>f,XZ:()=>c,YK:()=>a,j:()=>i,vd:()=>o,yE:()=>l});var r="-ms-",o="-moz-",i="-webkit-",a="comm",c="rule",s="decl",l="@import",u="@namespace",f="@keyframes",d="@layer"},38289:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(42222);function o(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.A)(e,t)}},39985:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,c:()=>i});var r=n(12115);let o=r.createContext(void 0),i=e=>{let{children:t,size:n}=e,i=r.useContext(o);return r.createElement(o.Provider,{value:n||i},t)},a=o},40032:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(27061),o="".concat("accept acceptCharset accessKey action allowFullScreen allowTransparency\n alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge\n charSet checked classID className colSpan cols content contentEditable contextMenu\n controls coords crossOrigin data dateTime default defer dir disabled download draggable\n encType form formAction formEncType formMethod formNoValidate formTarget frameBorder\n headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity\n is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media\n mediaGroup method min minLength multiple muted name noValidate nonce open\n optimum pattern placeholder poster preload radioGroup readOnly rel required\n reversed role rowSpan rows sandbox scope scoped scrolling seamless selected\n shape size sizes span spellCheck src srcDoc srcLang srcSet start step style\n summary tabIndex target title type useMap value width wmode wrap"," ").concat("onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown\n onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick\n onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown\n onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel\n onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough\n onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata\n onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError").split(/[\s\n]+/);function i(e,t){return 0===e.indexOf(t)}function a(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=!1===n?{aria:!0,data:!0,attr:!0}:!0===n?{aria:!0}:(0,r.A)({},n);var a={};return Object.keys(e).forEach(function(n){(t.aria&&("role"===n||i(n,"aria-"))||t.data&&i(n,"data-")||t.attr&&o.includes(n))&&(a[n]=e[n])}),a}},40419:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(11823);function o(e,t,n){return(t=(0,r.A)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},40578:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"}},41197:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>s,fk:()=>a,rb:()=>c});var r=n(86608),o=n(12115),i=n(47650);function a(e){return e instanceof HTMLElement||e instanceof SVGElement}function c(e){return e&&"object"===(0,r.A)(e)&&a(e.nativeElement)?e.nativeElement:a(e)?e:null}function s(e){var t,n=c(e);return n||(e instanceof o.Component?null==(t=i.findDOMNode)?void 0:t.call(i,e):null)}},41222:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>p,Dk:()=>d,FY:()=>h,cH:()=>g});var r=n(85757),o=n(99841),i=n(50199),a=n(18184),c=n(85665),s=n(47212),l=n(61388),u=n(45431);function f(e){return{position:e,inset:0}}let d=e=>{let{componentCls:t,antCls:n}=e;return[{["".concat(t,"-root")]:{["".concat(t).concat(n,"-zoom-enter, ").concat(t).concat(n,"-zoom-appear")]:{transform:"none",opacity:0,animationDuration:e.motionDurationSlow,userSelect:"none"},["".concat(t).concat(n,"-zoom-leave ").concat(t,"-content")]:{pointerEvents:"none"},["".concat(t,"-mask")]:Object.assign(Object.assign({},f("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",["".concat(t,"-hidden")]:{display:"none"}}),["".concat(t,"-wrap")]:Object.assign(Object.assign({},f("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{["".concat(t,"-root")]:(0,c.p9)(e)}]},h=e=>{let t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return(0,l.oX)(e,{modalHeaderHeight:e.calc(e.calc(r).mul(n).equal()).add(e.calc(t).mul(2).equal()).equal(),modalFooterBorderColorSplit:e.colorSplit,modalFooterBorderStyle:e.lineType,modalFooterBorderWidth:e.lineWidth,modalCloseIconColor:e.colorIcon,modalCloseIconHoverColor:e.colorIconHover,modalCloseBtnSize:e.controlHeight,modalConfirmIconSize:e.fontHeight,modalTitleHeight:e.calc(e.titleFontSize).mul(e.titleLineHeight).equal()})},g=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:"".concat((0,o.zA)(e.paddingMD)," ").concat((0,o.zA)(e.paddingContentHorizontalLG)),headerPadding:e.wireframe?"".concat((0,o.zA)(e.padding)," ").concat((0,o.zA)(e.paddingLG)):0,headerBorderBottom:e.wireframe?"".concat((0,o.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit):"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?"".concat((0,o.zA)(e.paddingXS)," ").concat((0,o.zA)(e.padding)):0,footerBorderTop:e.wireframe?"".concat((0,o.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit):"none",footerBorderRadius:e.wireframe?"0 0 ".concat((0,o.zA)(e.borderRadiusLG)," ").concat((0,o.zA)(e.borderRadiusLG)):0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?"".concat((0,o.zA)(2*e.padding)," ").concat((0,o.zA)(2*e.padding)," ").concat((0,o.zA)(e.paddingLG)):0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),p=(0,u.OF)("Modal",e=>{let t=h(e);return[(e=>{let{componentCls:t}=e;return[{["".concat(t,"-root")]:{["".concat(t,"-wrap-rtl")]:{direction:"rtl"},["".concat(t,"-centered")]:{textAlign:"center","&::before":{display:"inline-block",width:0,height:"100%",verticalAlign:"middle",content:'""'},[t]:{top:0,display:"inline-block",paddingBottom:0,textAlign:"start",verticalAlign:"middle"}},["@media (max-width: ".concat(e.screenSMMax,"px)")]:{[t]:{maxWidth:"calc(100vw - 16px)",margin:"".concat((0,o.zA)(e.marginXS)," auto")},["".concat(t,"-centered")]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},(0,a.dF)(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:"calc(100vw - ".concat((0,o.zA)(e.calc(e.margin).mul(2).equal()),")"),margin:"0 auto",paddingBottom:e.paddingLG,["".concat(t,"-title")]:{margin:0,color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.titleFontSize,lineHeight:e.titleLineHeight,wordWrap:"break-word"},["".concat(t,"-content")]:{position:"relative",backgroundColor:e.contentBg,backgroundClip:"padding-box",border:0,borderRadius:e.borderRadiusLG,boxShadow:e.boxShadow,pointerEvents:"auto",padding:e.contentPadding},["".concat(t,"-close")]:Object.assign({position:"absolute",top:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),insetInlineEnd:e.calc(e.modalHeaderHeight).sub(e.modalCloseBtnSize).div(2).equal(),zIndex:e.calc(e.zIndexPopupBase).add(10).equal(),padding:0,color:e.modalCloseIconColor,fontWeight:e.fontWeightStrong,lineHeight:1,textDecoration:"none",background:"transparent",borderRadius:e.borderRadiusSM,width:e.modalCloseBtnSize,height:e.modalCloseBtnSize,border:0,outline:0,cursor:"pointer",transition:"color ".concat(e.motionDurationMid,", background-color ").concat(e.motionDurationMid),"&-x":{display:"flex",fontSize:e.fontSizeLG,fontStyle:"normal",lineHeight:(0,o.zA)(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},(0,a.K8)(e)),["".concat(t,"-header")]:{color:e.colorText,background:e.headerBg,borderRadius:"".concat((0,o.zA)(e.borderRadiusLG)," ").concat((0,o.zA)(e.borderRadiusLG)," 0 0"),marginBottom:e.headerMarginBottom,padding:e.headerPadding,borderBottom:e.headerBorderBottom},["".concat(t,"-body")]:{fontSize:e.fontSize,lineHeight:e.lineHeight,wordWrap:"break-word",padding:e.bodyPadding,["".concat(t,"-body-skeleton")]:{width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",margin:"".concat((0,o.zA)(e.margin)," auto")}},["".concat(t,"-footer")]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,["> ".concat(e.antCls,"-btn + ").concat(e.antCls,"-btn")]:{marginInlineStart:e.marginXS}},["".concat(t,"-open")]:{overflow:"hidden"}})},{["".concat(t,"-pure-panel")]:{top:"auto",padding:0,display:"flex",flexDirection:"column",["".concat(t,"-content,\n ").concat(t,"-body,\n ").concat(t,"-confirm-body-wrapper")]:{display:"flex",flexDirection:"column",flex:"auto"},["".concat(t,"-confirm-body")]:{marginBottom:"auto"}}}]})(t),(e=>{let{componentCls:t}=e;return{["".concat(t,"-root")]:{["".concat(t,"-wrap-rtl")]:{direction:"rtl",["".concat(t,"-confirm-body")]:{direction:"rtl"}}}}})(t),d(t),(0,s.aB)(t,"zoom"),(e=>{let{componentCls:t}=e,n=(0,i.i4)(e),a=Object.assign({},n);delete a.xs;let c="--".concat(t.replace(".",""),"-"),s=Object.keys(a).map(e=>({["@media (min-width: ".concat((0,o.zA)(a[e]),")")]:{width:"var(".concat(c).concat(e,"-width)")}}));return{["".concat(t,"-root")]:{[t]:[].concat((0,r.A)(Object.keys(n).map((e,t)=>{let r=Object.keys(n)[t-1];return r?{["".concat(c).concat(e,"-width")]:"var(".concat(c).concat(r,"-width)")}:null})),[{width:"var(".concat(c,"xs-width)")}],(0,r.A)(s))}}})(t)]},g,{unitless:{titleLineHeight:!0}})},41401:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"}},42115:(e,t,n)=>{"use strict";function r(e,t){this.v=e,this.k=t}function o(e,t,n,r){var i=Object.defineProperty;try{i({},"",{})}catch(e){i=0}(o=function(e,t,n,r){function a(t,n){o(e,t,function(e){return this._invoke(t,n,e)})}t?i?i(e,t,{value:n,enumerable:!r,configurable:!r,writable:!r}):e[t]=n:(a("next",0),a("throw",1),a("return",2))})(e,t,n,r)}function i(){var e,t,n="function"==typeof Symbol?Symbol:{},r=n.iterator||"@@iterator",a=n.toStringTag||"@@toStringTag";function c(n,r,i,a){var c=Object.create((r&&r.prototype instanceof l?r:l).prototype);return o(c,"_invoke",function(n,r,o){var i,a,c,l=0,u=o||[],f=!1,d={p:0,n:0,v:e,a:h,f:h.bind(e,4),d:function(t,n){return i=t,a=0,c=e,d.n=n,s}};function h(n,r){for(a=n,c=r,t=0;!f&&l&&!o&&t3?(o=g===r)&&(c=i[(a=i[4])?5:(a=3,3)],i[4]=i[5]=e):i[0]<=h&&((o=n<2&&hr||r>g)&&(i[4]=n,i[5]=r,d.n=g,a=0))}if(o||n>1)return s;throw f=!0,r}return function(o,u,g){if(l>1)throw TypeError("Generator is already running");for(f&&1===u&&h(u,g),a=u,c=g;(t=a<2?e:c)||!f;){i||(a?a<3?(a>1&&(d.n=-1),h(a,c)):d.n=c:d.v=c);try{if(l=2,i){if(a||(o="next"),t=i[o]){if(!(t=t.call(i,c)))throw TypeError("iterator result is not an object");if(!t.done)return t;c=t.value,a<2&&(a=0)}else 1===a&&(t=i.return)&&t.call(i),a<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),a=1);i=e}else if((t=(f=d.n<0)?c:n.call(r,d))!==s)break}catch(t){i=e,a=1,c=t}finally{l=1}}return{value:t,done:f}}}(n,i,a),!0),c}var s={};function l(){}function u(){}function f(){}t=Object.getPrototypeOf;var d=f.prototype=l.prototype=Object.create([][r]?t(t([][r]())):(o(t={},r,function(){return this}),t));function h(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,f):(e.__proto__=f,o(e,a,"GeneratorFunction")),e.prototype=Object.create(d),e}return u.prototype=f,o(d,"constructor",f),o(f,"constructor",u),u.displayName="GeneratorFunction",o(f,a,"GeneratorFunction"),o(d),o(d,a,"Generator"),o(d,r,function(){return this}),o(d,"toString",function(){return"[object Generator]"}),(i=function(){return{w:c,m:h}})()}function a(e,t){var n;this.next||(o(a.prototype),o(a.prototype,"function"==typeof Symbol&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),o(this,"_invoke",function(o,i,a){function c(){return new t(function(n,i){!function n(o,i,a,c){try{var s=e[o](i),l=s.value;return l instanceof r?t.resolve(l.v).then(function(e){n("next",e,a,c)},function(e){n("throw",e,a,c)}):t.resolve(l).then(function(e){s.value=e,a(s)},function(e){return n("throw",e,a,c)})}catch(e){c(e)}}(o,a,n,i)})}return n=n?n.then(c,c):c()},!0)}function c(e,t,n,r,o){return new a(i().w(e,t,n,r),o||Promise)}function s(e){var t=Object(e),n=[];for(var r in t)n.unshift(r);return function e(){for(;n.length;)if((r=n.pop())in t)return e.value=r,e.done=!1,e;return e.done=!0,e}}n.d(t,{A:()=>f});var l=n(86608);function u(e){if(null!=e){var t=e["function"==typeof Symbol&&Symbol.iterator||"@@iterator"],n=0;if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length))return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}throw TypeError((0,l.A)(e)+" is not iterable")}function f(){var e=i(),t=e.m(f),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function o(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===n||"GeneratorFunction"===(t.displayName||t.name))}var l={throw:1,return:2,break:3,continue:3};function d(e){var t,n;return function(r){t||(t={stop:function(){return n(r.a,2)},catch:function(){return r.v},abrupt:function(e,t){return n(r.a,l[e],t)},delegateYield:function(e,o,i){return t.resultName=o,n(r.d,u(e),i)},finish:function(e){return n(r.f,e)}},n=function(e,n,o){r.p=t.prev,r.n=t.next;try{return e(n,o)}finally{t.next=r.n}}),t.resultName&&(t[t.resultName]=r.v,t.resultName=void 0),t.sent=r.v,t.next=r.n;try{return e.call(this,t)}finally{r.p=t.prev,r.n=t.next}}}return(f=function(){return{wrap:function(t,n,r,o){return e.w(d(t),n,r,o&&o.reverse())},isGeneratorFunction:o,mark:e.m,awrap:function(e,t){return new r(e,t)},AsyncIterator:a,async:function(e,t,n,r,i){return(o(t)?c:function(e,t,n,r,o){var i=c(e,t,n,r,o);return i.next().then(function(e){return e.done?e.value:i.next()})})(d(e),t,n,r,i)},keys:s,values:u}})()}},42222:(e,t,n)=>{"use strict";function r(e,t){return(r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}n.d(t,{A:()=>r})},44494:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,X:()=>i});var r=n(12115);let o=r.createContext(!1),i=e=>{let{children:t,disabled:n}=e,i=r.useContext(o);return r.createElement(o.Provider,{value:null!=n?n:i},t)},a=o},45144:(e,t,n)=>{"use strict";function r(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(r=function(){return!!e})()}n.d(t,{A:()=>r})},45431:(e,t,n)=>{"use strict";n.d(t,{OF:()=>s,Or:()=>l,bf:()=>u});var r=n(12115),o=n(61388),i=n(15982),a=n(18184),c=n(70042);let{genStyleHooks:s,genComponentStyleHook:l,genSubStyleComponent:u}=(0,o.L_)({usePrefix:()=>{let{getPrefixCls:e,iconPrefixCls:t}=(0,r.useContext)(i.QO);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{let[e,t,n,r,o]=(0,c.Ay)();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{let{csp:e}=(0,r.useContext)(i.QO);return null!=e?e:{}},getResetStyles:(e,t)=>{var n;let r=(0,a.av)(e);return[r,{"&":r},(0,a.jz)(null!=(n=null==t?void 0:t.prefix.iconPrefixCls)?n:i.pM)]},getCommonStyle:a.vj,getCompUnitless:()=>c.Is})},47195:(e,t,n)=>{"use strict";n.d(t,{A:()=>A});var r=n(12115),o=n(29300),i=n.n(o),a=n(53930),c=n(74686),s=n(15982),l=n(80163);let u=(0,n(45431).Or)("Wave",e=>{let{componentCls:t,colorPrimary:n}=e;return{[t]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:"var(--wave-color, ".concat(n,")"),boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:["box-shadow 0.4s ".concat(e.motionEaseOutCirc),"opacity 2s ".concat(e.motionEaseOutCirc)].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:["box-shadow ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut),"opacity ".concat(e.motionDurationSlow," ").concat(e.motionEaseInOut)].join(",")}}}}});var f=n(18885),d=n(16962),h=n(70042),g=n(3617),p=n(82870),m=n(25856);function v(e){return e&&"#fff"!==e&&"#ffffff"!==e&&"rgb(255, 255, 255)"!==e&&"rgba(255, 255, 255, 1)"!==e&&!/rgba\((?:\d*, ){3}0\)/.test(e)&&"transparent"!==e&&"canvastext"!==e}function y(e){return Number.isNaN(e)?0:e}let b=e=>{let{className:t,target:n,component:o,registerUnmount:a}=e,s=r.useRef(null),l=r.useRef(null);r.useEffect(()=>{l.current=a()},[]);let[u,f]=r.useState(null),[h,m]=r.useState([]),[b,A]=r.useState(0),[x,E]=r.useState(0),[w,C]=r.useState(0),[S,O]=r.useState(0),[k,j]=r.useState(!1),T={left:b,top:x,width:w,height:S,borderRadius:h.map(e=>"".concat(e,"px")).join(" ")};function P(){let e=getComputedStyle(n);f(function(e){var t;let{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return null!=(t=[n,r,o].find(v))?t:null}(n));let t="static"===e.position,{borderLeftWidth:r,borderTopWidth:o}=e;A(t?n.offsetLeft:y(-Number.parseFloat(r))),E(t?n.offsetTop:y(-Number.parseFloat(o))),C(n.offsetWidth),O(n.offsetHeight);let{borderTopLeftRadius:i,borderTopRightRadius:a,borderBottomLeftRadius:c,borderBottomRightRadius:s}=e;m([i,a,s,c].map(e=>y(Number.parseFloat(e))))}if(u&&(T["--wave-color"]=u),r.useEffect(()=>{if(n){let e,t=(0,d.A)(()=>{P(),j(!0)});return"undefined"!=typeof ResizeObserver&&(e=new ResizeObserver(P)).observe(n),()=>{d.A.cancel(t),null==e||e.disconnect()}}},[n]),!k)return null;let F=("Checkbox"===o||"Radio"===o)&&(null==n?void 0:n.classList.contains(g.D));return r.createElement(p.Ay,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(e,t)=>{var n,r;if(t.deadline||"opacity"===t.propertyName){let e=null==(n=s.current)?void 0:n.parentElement;null==(r=l.current)||r.call(l).then(()=>{null==e||e.remove()})}return!1}},(e,n)=>{let{className:o}=e;return r.createElement("div",{ref:(0,c.K4)(s,n),className:i()(t,o,{"wave-quick":F}),style:T})})},A=e=>{let{children:t,disabled:n,component:o}=e,{getPrefixCls:p}=(0,r.useContext)(s.QO),v=(0,r.useRef)(null),y=p("wave"),[,A]=u(y),x=((e,t,n)=>{let{wave:o}=r.useContext(s.QO),[,i,a]=(0,h.Ay)(),c=(0,f.A)(c=>{let s=e.current;if((null==o?void 0:o.disabled)||!s)return;let l=s.querySelector(".".concat(g.D))||s,{showEffect:u}=o||{};(u||((e,t)=>{var n;let{component:o}=t;if("Checkbox"===o&&!(null==(n=e.querySelector("input"))?void 0:n.checked))return;let i=document.createElement("div");i.style.position="absolute",i.style.left="0px",i.style.top="0px",null==e||e.insertBefore(i,null==e?void 0:e.firstChild);let a=(0,m.L)(),c=null;c=a(r.createElement(b,Object.assign({},t,{target:e,registerUnmount:function(){return c}})),i)}))(l,{className:t,token:i,component:n,event:c,hashId:a})}),l=r.useRef(null);return e=>{d.A.cancel(l.current),l.current=(0,d.A)(()=>{c(e)})}})(v,i()(y,A),o);if(r.useEffect(()=>{let e=v.current;if(!e||e.nodeType!==window.Node.ELEMENT_NODE||n)return;let t=t=>{!(0,a.A)(t.target)||!e.getAttribute||e.getAttribute("disabled")||e.disabled||e.className.includes("disabled")&&!e.className.includes("disabled:")||"true"===e.getAttribute("aria-disabled")||e.className.includes("-leave")||x(t)};return e.addEventListener("click",t,!0),()=>{e.removeEventListener("click",t,!0)}},[n]),!r.isValidElement(t))return null!=t?t:null;let E=(0,c.f3)(t)?(0,c.K4)((0,c.A9)(t),v):v;return(0,l.Ob)(t,{ref:E})}},47212:(e,t,n)=>{"use strict";n.d(t,{aB:()=>m,nF:()=>i});var r=n(99841),o=n(64717);let i=new r.Mo("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),a=new r.Mo("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),c=new r.Mo("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),s=new r.Mo("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),l=new r.Mo("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),u=new r.Mo("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),f=new r.Mo("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),d=new r.Mo("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),h=new r.Mo("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),g=new r.Mo("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),p={zoom:{inKeyframes:i,outKeyframes:a},"zoom-big":{inKeyframes:c,outKeyframes:s},"zoom-big-fast":{inKeyframes:c,outKeyframes:s},"zoom-left":{inKeyframes:f,outKeyframes:d},"zoom-right":{inKeyframes:h,outKeyframes:g},"zoom-up":{inKeyframes:l,outKeyframes:u},"zoom-down":{inKeyframes:new r.Mo("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),outKeyframes:new r.Mo("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}})}},m=(e,t)=>{let{antCls:n}=e,r="".concat(n,"-").concat(t),{inKeyframes:i,outKeyframes:a}=p[t];return[(0,o.b)(r,i,a,"zoom-big-fast"===t?e.motionDurationFast:e.motionDurationMid),{["\n ".concat(r,"-enter,\n ").concat(r,"-appear\n ")]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},["".concat(r,"-leave")]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},48680:(e,t,n)=>{"use strict";function r(e){var t;return null==e||null==(t=e.getRootNode)?void 0:t.call(e)}function o(e){return r(e)instanceof ShadowRoot?r(e):null}n.d(t,{j:()=>o})},48776:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(79630),o=n(12115),i=n(40578),a=n(35030);let c=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i.A}))})},48804:(e,t,n)=>{"use strict";n.d(t,{A:()=>s});var r=n(21858),o=n(18885),i=n(49172),a=n(28248);function c(e){return void 0!==e}function s(e,t){var n=t||{},s=n.defaultValue,l=n.value,u=n.onChange,f=n.postState,d=(0,a.A)(function(){return c(l)?l:c(s)?"function"==typeof s?s():s:"function"==typeof e?e():e}),h=(0,r.A)(d,2),g=h[0],p=h[1],m=void 0!==l?l:g,v=f?f(m):m,y=(0,o.A)(u),b=(0,a.A)([m]),A=(0,r.A)(b,2),x=A[0],E=A[1];return(0,i.o)(function(){var e=x[0];g!==e&&y(g,e)},[x]),(0,i.o)(function(){c(l)||p(l)},[l]),[v,(0,o.A)(function(e,t){p(e,t),E([m],t)})]}},49172:(e,t,n)=>{"use strict";n.d(t,{A:()=>c,o:()=>a});var r=n(12115),o=(0,n(71367).A)()?r.useLayoutEffect:r.useEffect,i=function(e,t){var n=r.useRef(!0);o(function(){return e(n.current)},t),o(function(){return n.current=!1,function(){n.current=!0}},[])},a=function(e,t){i(function(t){if(!t)return e()},t)};let c=i},49641:e=>{!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r},t.toByteArray=function(e){var t,n,i=s(e),a=i[0],c=i[1],l=new o((a+c)*3/4-c),u=0,f=c>0?a-4:a;for(n=0;n>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],a=0,c=r-o;a>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return i.join("")}(e,a,a+16383>c?c:a+16383));return 1===o?i.push(n[(t=e[r-1])>>2]+n[t<<4&63]+"=="):2===o&&i.push(n[(t=(e[r-2]<<8)+e[r-1])>>10]+n[t>>4&63]+n[t<<2&63]+"="),i.join("")};for(var n=[],r=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=i.length;a0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}r[45]=62,r[95]=63},72:function(e,t,n){"use strict";var r=n(675),o=n(783),i="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>0x7fffffff)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return s(e,t,n)}function s(e,t,n){if("string"==typeof e){var r=e,o=t;if(("string"!=typeof o||""===o)&&(o="utf8"),!c.isEncoding(o))throw TypeError("Unknown encoding: "+o);var i=0|h(r,o),s=a(i),l=s.write(r,o);return l!==i&&(s=s.slice(0,l)),s}if(ArrayBuffer.isView(e))return f(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(T(e,ArrayBuffer)||e&&T(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(T(e,SharedArrayBuffer)||e&&T(e.buffer,SharedArrayBuffer)))return function(e,t,n){var r;if(t<0||e.byteLength=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||T(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var o=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return S(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return k(e).length;default:if(o)return r?-1:S(e).length;t=(""+t).toLowerCase(),o=!0}}function g(e,t,n){var o,i,a,c=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i0x7fffffff?n=0x7fffffff:n<-0x80000000&&(n=-0x80000000),(i=n*=1)!=i&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length)if(o)return -1;else n=e.length-1;else if(n<0)if(!o)return -1;else n=0;if("string"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:v(e,t,n,r,o);if("number"==typeof t){if(t&=255,"function"==typeof Uint8Array.prototype.indexOf)if(o)return Uint8Array.prototype.indexOf.call(e,t,n);else return Uint8Array.prototype.lastIndexOf.call(e,t,n);return v(e,[t],n,r,o)}throw TypeError("val must be string, number or Buffer")}function v(e,t,n,r,o){var i,a=1,c=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return -1;a=2,c/=2,s/=2,n/=2}function l(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var u=-1;for(i=n;ic&&(n=c-s),i=n;i>=0;i--){for(var f=!0,d=0;dn&&(e+=" ... "),""},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,o){if(T(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return -1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,o>>>=0,this===e)return 0;for(var i=o-r,a=n-t,s=Math.min(i,a),l=this.slice(r,o),u=e.slice(t,n),f=0;f239?4:l>223?3:l>191?2:1;if(o+f<=n)switch(f){case 1:l<128&&(u=l);break;case 2:(192&(i=e[o+1]))==128&&(s=(31&l)<<6|63&i)>127&&(u=s);break;case 3:i=e[o+1],a=e[o+2],(192&i)==128&&(192&a)==128&&(s=(15&l)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(u=s);break;case 4:i=e[o+1],a=e[o+2],c=e[o+3],(192&i)==128&&(192&a)==128&&(192&c)==128&&(s=(15&l)<<18|(63&i)<<12|(63&a)<<6|63&c)>65535&&s<1114112&&(u=s)}null===u?(u=65533,f=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),o+=f}var d=r,h=d.length;if(h<=4096)return String.fromCharCode.apply(String,d);for(var g="",p=0;pn)throw RangeError("Trying to access beyond buffer length")}function A(e,t,n,r,o,i){if(!c.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw RangeError("Index out of range")}function x(e,t,n,r,o,i){if(n+r>e.length||n<0)throw RangeError("Index out of range")}function E(e,t,n,r,i){return t*=1,n>>>=0,i||x(e,t,n,4,34028234663852886e22,-34028234663852886e22),o.write(e,t,n,r,23,4),n+4}function w(e,t,n,r,i){return t*=1,n>>>=0,i||x(e,t,n,8,17976931348623157e292,-17976931348623157e292),o.write(e,t,n,r,52,8),n+8}c.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var o,i,a,c,s,l,u,f,d=this.length-t;if((void 0===n||n>d)&&(n=d),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var h=!1;;)switch(r){case"hex":return function(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;r>i/2&&(r=i/2);for(var a=0;a>8,o.push(n%256),o.push(r);return o}(e,this.length-u),this,u,f);default:if(h)throw TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),h=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},c.prototype.slice=function(e,t){var n=this.length;e=~~e,t=void 0===t?n:~~t,e<0?(e+=n)<0&&(e=0):e>n&&(e=n),t<0?(t+=n)<0&&(t=0):t>n&&(t=n),t>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],o=1,i=0;++i>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},c.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+0x1000000*this[e+3]},c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),0x1000000*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||b(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?0xffff0000|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?0xffff0000|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){if(e*=1,t>>>=0,n>>>=0,!r){var o=Math.pow(2,8*n)-1;A(this,e,t,n,o,0)}var i=1,a=0;for(this[t]=255&e;++a>>=0,n>>>=0,!r){var o=Math.pow(2,8*n)-1;A(this,e,t,n,o,0)}var i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e*=1,t>>>=0,n||A(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e*=1,t>>>=0,n||A(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUInt16BE=function(e,t,n){return e*=1,t>>>=0,n||A(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUInt32LE=function(e,t,n){return e*=1,t>>>=0,n||A(this,e,t,4,0xffffffff,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUInt32BE=function(e,t,n){return e*=1,t>>>=0,n||A(this,e,t,4,0xffffffff,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e*=1,t>>>=0,!r){var o=Math.pow(2,8*n-1);A(this,e,t,n,o-1,-o)}var i=0,a=1,c=0;for(this[t]=255&e;++i>>=0,!r){var o=Math.pow(2,8*n-1);A(this,e,t,n,o-1,-o)}var i=n-1,a=1,c=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===c&&0!==this[t+i+1]&&(c=1),this[t+i]=(e/a|0)-c&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e*=1,t>>>=0,n||A(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e*=1,t>>>=0,n||A(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e*=1,t>>>=0,n||A(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e*=1,t>>>=0,n||A(this,e,t,4,0x7fffffff,-0x80000000),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e*=1,t>>>=0,n||A(this,e,t,4,0x7fffffff,-0x80000000),e<0&&(e=0xffffffff+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeFloatLE=function(e,t,n){return E(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return E(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return w(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return w(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw RangeError("Index out of range");if(r<0)throw RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else Uint8Array.prototype.set.call(e,this.subarray(n,r),t);return o},c.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),void 0!==r&&"string"!=typeof r)throw TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw TypeError("Unknown encoding: "+r);if(1===e.length){var o,i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=t;o55295&&n<57344){if(!o){if(n>56319||a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else if(n<1114112){if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}else throw Error("Invalid code point")}return i}function O(e){for(var t=[],n=0;n=t.length)&&!(o>=e.length);++o)t[o+n]=e[o];return o}function T(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var P=function(){for(var e="0123456789abcdef",t=Array(256),n=0;n<16;++n)for(var r=16*n,o=0;o<16;++o)t[r+o]=e[n]+e[o];return t}()},783:function(e,t){t.read=function(e,t,n,r,o){var i,a,c=8*o-r-1,s=(1<>1,u=-7,f=n?o-1:0,d=n?-1:1,h=e[t+f];for(f+=d,i=h&(1<<-u)-1,h>>=-u,u+=c;u>0;i=256*i+e[t+f],f+=d,u-=8);for(a=i&(1<<-u)-1,i>>=-u,u+=r;u>0;a=256*a+e[t+f],f+=d,u-=8);if(0===i)i=1-l;else{if(i===s)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=l}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,c,s,l=8*i-o-1,u=(1<>1,d=5960464477539062e-23*(23===o),h=r?0:i-1,g=r?1:-1,p=+(t<0||0===t&&1/t<0);for(isNaN(t=Math.abs(t))||t===1/0?(c=+!!isNaN(t),a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),a+f>=1?t+=d/s:t+=d*Math.pow(2,1-f),t*s>=2&&(a++,s/=2),a+f>=u?(c=0,a=u):a+f>=1?(c=(t*s-1)*Math.pow(2,o),a+=f):(c=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&c,h+=g,c/=256,o-=8);for(a=a<0;e[n+h]=255&a,h+=g,a/=256,l-=8);e[n+h-g]|=128*p}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}},a=!0;try{t[e](i,i.exports,r),a=!1}finally{a&&delete n[e]}return i.exports}r.ab="//",e.exports=r(72)}()},50199:(e,t,n)=>{"use strict";n.d(t,{L3:()=>c,i4:()=>s,xV:()=>l});var r=n(99841),o=n(45431),i=n(61388);let a=(e,t)=>((e,t)=>{let{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let e=o;e>=0;e--)0===e?(i["".concat(r).concat(t,"-").concat(e)]={display:"none"},i["".concat(r,"-push-").concat(e)]={insetInlineStart:"auto"},i["".concat(r,"-pull-").concat(e)]={insetInlineEnd:"auto"},i["".concat(r).concat(t,"-push-").concat(e)]={insetInlineStart:"auto"},i["".concat(r).concat(t,"-pull-").concat(e)]={insetInlineEnd:"auto"},i["".concat(r).concat(t,"-offset-").concat(e)]={marginInlineStart:0},i["".concat(r).concat(t,"-order-").concat(e)]={order:0}):(i["".concat(r).concat(t,"-").concat(e)]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:"0 0 ".concat(e/o*100,"%"),maxWidth:"".concat(e/o*100,"%")}],i["".concat(r).concat(t,"-push-").concat(e)]={insetInlineStart:"".concat(e/o*100,"%")},i["".concat(r).concat(t,"-pull-").concat(e)]={insetInlineEnd:"".concat(e/o*100,"%")},i["".concat(r).concat(t,"-offset-").concat(e)]={marginInlineStart:"".concat(e/o*100,"%")},i["".concat(r).concat(t,"-order-").concat(e)]={order:e});return i["".concat(r).concat(t,"-flex")]={flex:"var(--".concat(n).concat(t,"-flex)")},i})(e,t),c=(0,o.OF)("Grid",e=>{let{componentCls:t}=e;return{[t]:{display:"flex",flexFlow:"row wrap",minWidth:0,"&::before, &::after":{display:"flex"},"&-no-wrap":{flexWrap:"nowrap"},"&-start":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"flex-end"},"&-space-between":{justifyContent:"space-between"},"&-space-around":{justifyContent:"space-around"},"&-space-evenly":{justifyContent:"space-evenly"},"&-top":{alignItems:"flex-start"},"&-middle":{alignItems:"center"},"&-bottom":{alignItems:"flex-end"}}}},()=>({})),s=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),l=(0,o.OF)("Grid",e=>{let t=(0,i.oX)(e,{gridColumns:24}),n=s(t);return delete n.xs,[(e=>{let{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}})(t),a(t,""),a(t,"-xs"),Object.keys(n).map(e=>{let o,i;return o=n[e],i="-".concat(e),{["@media (min-width: ".concat((0,r.zA)(o),")")]:Object.assign({},a(t,i))}}).reduce((e,t)=>Object.assign(Object.assign({},e),t),{})]},()=>({}))},50497:(e,t,n)=>{"use strict";n.d(t,{$:()=>d,d:()=>l});var r=n(12115),o=n(48776),i=n(40032),a=n(8530),c=n(16025),s=n(85382);function l(e){if(!e)return;let{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function u(e){let{closable:t,closeIcon:n}=e||{};return r.useMemo(()=>{if(!t&&(!1===t||!1===n||null===n))return!1;if(void 0===t&&void 0===n)return null;let e={closeIcon:"boolean"!=typeof n&&null!==n?n:void 0};return t&&"object"==typeof t&&(e=Object.assign(Object.assign({},e),t)),e},[t,n])}let f={},d=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f,l=u(e),d=u(t),[h]=(0,a.A)("global",c.A.global),g="boolean"!=typeof l&&!!(null==l?void 0:l.disabled),p=r.useMemo(()=>Object.assign({closeIcon:r.createElement(o.A,null)},n),[n]),m=r.useMemo(()=>!1!==l&&(l?(0,s.A)(p,d,l):!1!==d&&(d?(0,s.A)(p,d):!!p.closable&&p)),[l,d,p]);return r.useMemo(()=>{var e,t;if(!1===m)return[!1,null,g,{}];let{closeIconRender:n}=p,{closeIcon:o}=m,a=o,c=(0,i.A)(m,!0);return null!=a&&(n&&(a=n(o)),a=r.isValidElement(a)?r.cloneElement(a,Object.assign(Object.assign(Object.assign({},a.props),{"aria-label":null!=(t=null==(e=a.props)?void 0:e["aria-label"])?t:h.close}),c)):r.createElement("span",Object.assign({"aria-label":h.close},c),a)),[!0,a,g,c]},[g,h.close,m,p])}},50907:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=e=>{let{controlHeight:t}=e;return{controlHeightSM:.75*t,controlHeightXS:.5*t,controlHeightLG:1.25*t}}},51280:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(79630),o=n(12115),i=n(89450),a=n(35030);let c=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i.A}))})},51754:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(79630),o=n(12115);let i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var a=n(35030);let c=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},52270:(e,t,n)=>{"use strict";e.exports=n(97314)},52596:(e,t,n)=>{"use strict";function r(){for(var e,t,n=0,r="",o=arguments.length;nr,A:()=>o});let o=r},53930:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1}},55121:(e,t,n)=>{"use strict";n.d(t,{Z:()=>w,A:()=>j});var r=n(79630),o=n(21858),i=n(24756),a=n(12115),c=a.createContext({}),s=n(27061),l=n(29300),u=n.n(l),f=n(3201),d=n(32934),h=n(17233),g=n(40032);function p(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function m(e,t){var n=e["page".concat(t?"Y":"X","Offset")],r="scroll".concat(t?"Top":"Left");if("number"!=typeof n){var o=e.document;"number"!=typeof(n=o.documentElement[r])&&(n=o.body[r])}return n}var v=n(82870),y=n(86608),b=n(74686);let A=a.memo(function(e){return e.children},function(e,t){return!t.shouldUpdate});var x={width:0,height:0,overflow:"hidden",outline:"none"},E={outline:"none"};let w=a.forwardRef(function(e,t){var n=e.prefixCls,o=e.className,i=e.style,l=e.title,f=e.ariaId,d=e.footer,h=e.closable,p=e.closeIcon,m=e.onClose,v=e.children,w=e.bodyStyle,C=e.bodyProps,S=e.modalRender,O=e.onMouseDown,k=e.onMouseUp,j=e.holderRef,T=e.visible,P=e.forceRender,F=e.width,M=e.height,R=e.classNames,N=e.styles,_=a.useContext(c).panel,I=(0,b.xK)(j,_),B=(0,a.useRef)(),L=(0,a.useRef)();a.useImperativeHandle(t,function(){return{focus:function(){var e;null==(e=B.current)||e.focus({preventScroll:!0})},changeActive:function(e){var t=document.activeElement;e&&t===L.current?B.current.focus({preventScroll:!0}):e||t!==B.current||L.current.focus({preventScroll:!0})}}});var H={};void 0!==F&&(H.width=F),void 0!==M&&(H.height=M);var z=d?a.createElement("div",{className:u()("".concat(n,"-footer"),null==R?void 0:R.footer),style:(0,s.A)({},null==N?void 0:N.footer)},d):null,D=l?a.createElement("div",{className:u()("".concat(n,"-header"),null==R?void 0:R.header),style:(0,s.A)({},null==N?void 0:N.header)},a.createElement("div",{className:"".concat(n,"-title"),id:f},l)):null,U=(0,a.useMemo)(function(){return"object"===(0,y.A)(h)&&null!==h?h:h?{closeIcon:null!=p?p:a.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[h,p,n]),V=(0,g.A)(U,!0),q="object"===(0,y.A)(h)&&h.disabled,W=h?a.createElement("button",(0,r.A)({type:"button",onClick:m,"aria-label":"Close"},V,{className:"".concat(n,"-close"),disabled:q}),U.closeIcon):null,$=a.createElement("div",{className:u()("".concat(n,"-content"),null==R?void 0:R.content),style:null==N?void 0:N.content},W,D,a.createElement("div",(0,r.A)({className:u()("".concat(n,"-body"),null==R?void 0:R.body),style:(0,s.A)((0,s.A)({},w),null==N?void 0:N.body)},C),v),z);return a.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":l?f:null,"aria-modal":"true",ref:I,style:(0,s.A)((0,s.A)({},i),H),className:u()(n,o),onMouseDown:O,onMouseUp:k},a.createElement("div",{ref:B,tabIndex:0,style:E},a.createElement(A,{shouldUpdate:T||P},S?S($):$)),a.createElement("div",{tabIndex:0,ref:L,style:x}))});var C=a.forwardRef(function(e,t){var n=e.prefixCls,i=e.title,c=e.style,l=e.className,f=e.visible,d=e.forceRender,h=e.destroyOnClose,g=e.motionName,p=e.ariaId,y=e.onVisibleChanged,b=e.mousePosition,A=(0,a.useRef)(),x=a.useState(),E=(0,o.A)(x,2),C=E[0],S=E[1],O={};function k(){var e,t,n,r,o,i=(n={left:(t=(e=A.current).getBoundingClientRect()).left,top:t.top},o=(r=e.ownerDocument).defaultView||r.parentWindow,n.left+=m(o),n.top+=m(o,!0),n);S(b&&(b.x||b.y)?"".concat(b.x-i.left,"px ").concat(b.y-i.top,"px"):"")}return C&&(O.transformOrigin=C),a.createElement(v.Ay,{visible:f,onVisibleChanged:y,onAppearPrepare:k,onEnterPrepare:k,forceRender:d,motionName:g,removeOnLeave:h,ref:A},function(o,f){var d=o.className,h=o.style;return a.createElement(w,(0,r.A)({},e,{ref:t,title:i,ariaId:p,prefixCls:n,holderRef:f,style:(0,s.A)((0,s.A)((0,s.A)({},h),c),O),className:u()(l,d)}))})});C.displayName="Content";let S=function(e){var t=e.prefixCls,n=e.style,o=e.visible,i=e.maskProps,c=e.motionName,l=e.className;return a.createElement(v.Ay,{key:"mask",visible:o,motionName:c,leavedClassName:"".concat(t,"-mask-hidden")},function(e,o){var c=e.className,f=e.style;return a.createElement("div",(0,r.A)({ref:o,style:(0,s.A)((0,s.A)({},f),n),className:u()("".concat(t,"-mask"),c,l)},i))})};n(9587);let O=function(e){var t=e.prefixCls,n=void 0===t?"rc-dialog":t,i=e.zIndex,c=e.visible,l=void 0!==c&&c,m=e.keyboard,v=void 0===m||m,y=e.focusTriggerAfterClose,b=void 0===y||y,A=e.wrapStyle,x=e.wrapClassName,E=e.wrapProps,w=e.onClose,O=e.afterOpenChange,k=e.afterClose,j=e.transitionName,T=e.animation,P=e.closable,F=e.mask,M=void 0===F||F,R=e.maskTransitionName,N=e.maskAnimation,_=e.maskClosable,I=e.maskStyle,B=e.maskProps,L=e.rootClassName,H=e.classNames,z=e.styles,D=(0,a.useRef)(),U=(0,a.useRef)(),V=(0,a.useRef)(),q=a.useState(l),W=(0,o.A)(q,2),$=W[0],G=W[1],K=(0,d.A)();function X(e){null==w||w(e)}var Y=(0,a.useRef)(!1),Q=(0,a.useRef)(),J=null;(void 0===_||_)&&(J=function(e){Y.current?Y.current=!1:U.current===e.target&&X(e)}),(0,a.useEffect)(function(){l&&(G(!0),(0,f.A)(U.current,document.activeElement)||(D.current=document.activeElement))},[l]),(0,a.useEffect)(function(){return function(){clearTimeout(Q.current)}},[]);var Z=(0,s.A)((0,s.A)((0,s.A)({zIndex:i},A),null==z?void 0:z.wrapper),{},{display:$?null:"none"});return a.createElement("div",(0,r.A)({className:u()("".concat(n,"-root"),L)},(0,g.A)(e,{data:!0})),a.createElement(S,{prefixCls:n,visible:M&&l,motionName:p(n,R,N),style:(0,s.A)((0,s.A)({zIndex:i},I),null==z?void 0:z.mask),maskProps:B,className:null==H?void 0:H.mask}),a.createElement("div",(0,r.A)({tabIndex:-1,onKeyDown:function(e){if(v&&e.keyCode===h.A.ESC){e.stopPropagation(),X(e);return}l&&e.keyCode===h.A.TAB&&V.current.changeActive(!e.shiftKey)},className:u()("".concat(n,"-wrap"),x,null==H?void 0:H.wrapper),ref:U,onClick:J,style:Z},E),a.createElement(C,(0,r.A)({},e,{onMouseDown:function(){clearTimeout(Q.current),Y.current=!0},onMouseUp:function(){Q.current=setTimeout(function(){Y.current=!1})},ref:V,closable:void 0===P||P,ariaId:K,prefixCls:n,visible:l&&$,onClose:X,onVisibleChanged:function(e){if(e){if(!(0,f.A)(U.current,document.activeElement)){var t;null==(t=V.current)||t.focus()}}else{if(G(!1),M&&D.current&&b){try{D.current.focus({preventScroll:!0})}catch(e){}D.current=null}$&&(null==k||k())}null==O||O(e)},motionName:p(n,j,T)}))))};var k=function(e){var t=e.visible,n=e.getContainer,s=e.forceRender,l=e.destroyOnClose,u=void 0!==l&&l,f=e.afterClose,d=e.panelRef,h=a.useState(t),g=(0,o.A)(h,2),p=g[0],m=g[1],v=a.useMemo(function(){return{panel:d}},[d]);return(a.useEffect(function(){t&&m(!0)},[t]),s||!u||p)?a.createElement(c.Provider,{value:v},a.createElement(i.A,{open:t||s||p,autoDestroy:!1,getContainer:n,autoLock:t||p},a.createElement(O,(0,r.A)({},e,{destroyOnClose:u,afterClose:function(){null==f||f(),m(!1)}})))):null};k.displayName="Dialog";let j=k},55227:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{A:()=>r})},57845:(e,t,n)=>{"use strict";let r,o,i,a;n.d(t,{Ay:()=>$,cr:()=>V});var c=n(12115),s=n.t(c,2),l=n(99841),u=n(97089),f=n(22801),d=n(74121),h=n(26791),g=n(61958),p=n(94134),m=n(6212);let v=e=>{let{locale:t={},children:n,_ANT_MARK__:r}=e;c.useEffect(()=>(0,p.L)(null==t?void 0:t.Modal),[t]);let o=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(m.A.Provider,{value:o},n)};var y=n(16025),b=n(66154),A=n(35519),x=n(13418),E=n(15982),w=n(68057),C=n(60872),S=n(71367),O=n(85440);let k="-ant-".concat(Date.now(),"-").concat(Math.random());var j=n(44494),T=n(39985),P=n(80227);let{useId:F}=Object.assign({},s),M=void 0===F?()=>"":F;var R=n(82870),N=n(70042);let _=c.createContext(!0);function I(e){let t=c.useContext(_),{children:n}=e,[,r]=(0,N.Ay)(),{motion:o}=r,i=c.useRef(!1);return(i.current||(i.current=t!==o),i.current)?c.createElement(_.Provider,{value:o},c.createElement(R.Kq,{motion:o},n)):n}let B=()=>null;var L=n(18184),H=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let z=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];function D(){return r||E.yH}function U(){return o||E.pM}let V=()=>({getPrefixCls:(e,t)=>t||(e?"".concat(D(),"-").concat(e):D()),getIconPrefixCls:U,getRootPrefixCls:()=>r||D(),getTheme:()=>i,holderRender:a}),q=e=>{let{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:p,direction:m,space:w,splitter:C,virtual:S,dropdownMatchSelectWidth:O,popupMatchSelectWidth:k,popupOverflow:F,legacyLocale:R,parentContext:_,iconPrefixCls:D,theme:U,componentDisabled:V,segmented:q,statistic:W,spin:$,calendar:G,carousel:K,cascader:X,collapse:Y,typography:Q,checkbox:J,descriptions:Z,divider:ee,drawer:et,skeleton:en,steps:er,image:eo,layout:ei,list:ea,mentions:ec,modal:es,progress:el,result:eu,slider:ef,breadcrumb:ed,menu:eh,pagination:eg,input:ep,textArea:em,empty:ev,badge:ey,radio:eb,rate:eA,switch:ex,transfer:eE,avatar:ew,message:eC,tag:eS,table:eO,card:ek,tabs:ej,timeline:eT,timePicker:eP,upload:eF,notification:eM,tree:eR,colorPicker:eN,datePicker:e_,rangePicker:eI,flex:eB,wave:eL,dropdown:eH,warning:ez,tour:eD,tooltip:eU,popover:eV,popconfirm:eq,floatButton:eW,floatButtonGroup:e$,variant:eG,inputNumber:eK,treeSelect:eX}=e,eY=c.useCallback((t,n)=>{let{prefixCls:r}=e;if(n)return n;let o=r||_.getPrefixCls("");return t?"".concat(o,"-").concat(t):o},[_.getPrefixCls,e.prefixCls]),eQ=D||_.iconPrefixCls||E.pM,eJ=n||_.csp;((e,t)=>{let[n,r]=(0,N.Ay)();return(0,l.IV)({theme:n,token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>null==t?void 0:t.nonce,layer:{name:"antd"}},()=>(0,L.jz)(e))})(eQ,eJ);let eZ=function(e,t,n){var r;(0,h.rJ)("ConfigProvider");let o=e||{},i=!1!==o.inherit&&t?t:Object.assign(Object.assign({},A.sb),{hashed:null!=(r=null==t?void 0:t.hashed)?r:A.sb.hashed,cssVar:null==t?void 0:t.cssVar}),a=M();return(0,f.A)(()=>{var r,c;if(!e)return t;let s=Object.assign({},i.components);Object.keys(e.components||{}).forEach(t=>{s[t]=Object.assign(Object.assign({},s[t]),e.components[t])});let l="css-var-".concat(a.replace(/:/g,"")),u=(null!=(r=o.cssVar)?r:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:null==n?void 0:n.prefixCls},"object"==typeof i.cssVar?i.cssVar:{}),"object"==typeof o.cssVar?o.cssVar:{}),{key:"object"==typeof o.cssVar&&(null==(c=o.cssVar)?void 0:c.key)||l});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:s,cssVar:u})},[o,i],(e,t)=>e.some((e,n)=>{let r=t[n];return!(0,P.A)(e,r,!0)}))}(U,_.theme,{prefixCls:eY("")}),e0={csp:eJ,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||R,direction:m,space:w,splitter:C,virtual:S,popupMatchSelectWidth:null!=k?k:O,popupOverflow:F,getPrefixCls:eY,iconPrefixCls:eQ,theme:eZ,segmented:q,statistic:W,spin:$,calendar:G,carousel:K,cascader:X,collapse:Y,typography:Q,checkbox:J,descriptions:Z,divider:ee,drawer:et,skeleton:en,steps:er,image:eo,input:ep,textArea:em,layout:ei,list:ea,mentions:ec,modal:es,progress:el,result:eu,slider:ef,breadcrumb:ed,menu:eh,pagination:eg,empty:ev,badge:ey,radio:eb,rate:eA,switch:ex,transfer:eE,avatar:ew,message:eC,tag:eS,table:eO,card:ek,tabs:ej,timeline:eT,timePicker:eP,upload:eF,notification:eM,tree:eR,colorPicker:eN,datePicker:e_,rangePicker:eI,flex:eB,wave:eL,dropdown:eH,warning:ez,tour:eD,tooltip:eU,popover:eV,popconfirm:eq,floatButton:eW,floatButtonGroup:e$,variant:eG,inputNumber:eK,treeSelect:eX},e1=Object.assign({},_);Object.keys(e0).forEach(e=>{void 0!==e0[e]&&(e1[e]=e0[e])}),z.forEach(t=>{let n=e[t];n&&(e1[t]=n)}),void 0!==r&&(e1.button=Object.assign({autoInsertSpace:r},e1.button));let e2=(0,f.A)(()=>e1,e1,(e,t)=>{let n=Object.keys(e),r=Object.keys(t);return n.length!==r.length||n.some(n=>e[n]!==t[n])}),{layer:e5}=c.useContext(l.J),e8=c.useMemo(()=>({prefixCls:eQ,csp:eJ,layer:e5?"antd":void 0}),[eQ,eJ,e5]),e4=c.createElement(c.Fragment,null,c.createElement(B,{dropdownMatchSelectWidth:O}),t),e6=c.useMemo(()=>{var e,t,n,r;return(0,d.h)((null==(e=y.A.Form)?void 0:e.defaultValidateMessages)||{},(null==(n=null==(t=e2.locale)?void 0:t.Form)?void 0:n.defaultValidateMessages)||{},(null==(r=e2.form)?void 0:r.validateMessages)||{},(null==a?void 0:a.validateMessages)||{})},[e2,null==a?void 0:a.validateMessages]);Object.keys(e6).length>0&&(e4=c.createElement(g.A.Provider,{value:e6},e4)),s&&(e4=c.createElement(v,{locale:s,_ANT_MARK__:"internalMark"},e4)),(eQ||eJ)&&(e4=c.createElement(u.A.Provider,{value:e8},e4)),p&&(e4=c.createElement(T.c,{size:p},e4)),e4=c.createElement(I,null,e4);let e3=c.useMemo(()=>{let e=eZ||{},{algorithm:t,token:n,components:r,cssVar:o}=e,i=H(e,["algorithm","token","components","cssVar"]),a=t&&(!Array.isArray(t)||t.length>0)?(0,l.an)(t):b.A,c={};Object.entries(r||{}).forEach(e=>{let[t,n]=e,r=Object.assign({},n);"algorithm"in r&&(!0===r.algorithm?r.theme=a:(Array.isArray(r.algorithm)||"function"==typeof r.algorithm)&&(r.theme=(0,l.an)(r.algorithm)),delete r.algorithm),c[t]=r});let s=Object.assign(Object.assign({},x.A),n);return Object.assign(Object.assign({},i),{theme:a,token:s,components:c,override:Object.assign({override:s},c),cssVar:o})},[eZ]);return U&&(e4=c.createElement(A.vG.Provider,{value:e3},e4)),e2.warning&&(e4=c.createElement(h._n.Provider,{value:e2.warning},e4)),void 0!==V&&(e4=c.createElement(j.X,{disabled:V},e4)),c.createElement(E.QO.Provider,{value:e2},e4)},W=e=>{let t=c.useContext(E.QO),n=c.useContext(m.A);return c.createElement(q,Object.assign({parentContext:t,legacyLocale:n},e))};W.ConfigContext=E.QO,W.SizeContext=T.A,W.config=e=>{let{prefixCls:t,iconPrefixCls:n,theme:c,holderRender:s}=e;void 0!==t&&(r=t),void 0!==n&&(o=n),"holderRender"in e&&(a=s),c&&(Object.keys(c).some(e=>e.endsWith("Color"))?!function(e,t){let n=function(e,t){let n={},r=(e,t)=>{let n=e.clone();return(n=(null==t?void 0:t(n))||n).toRgbString()},o=(e,t)=>{let o=new C.Y(e),i=(0,w.cM)(o.toRgbString());n["".concat(t,"-color")]=r(o),n["".concat(t,"-color-disabled")]=i[1],n["".concat(t,"-color-hover")]=i[4],n["".concat(t,"-color-active")]=i[6],n["".concat(t,"-color-outline")]=o.clone().setA(.2).toRgbString(),n["".concat(t,"-color-deprecated-bg")]=i[0],n["".concat(t,"-color-deprecated-border")]=i[2]};if(t.primaryColor){o(t.primaryColor,"primary");let e=new C.Y(t.primaryColor),i=(0,w.cM)(e.toRgbString());i.forEach((e,t)=>{n["primary-".concat(t+1)]=e}),n["primary-color-deprecated-l-35"]=r(e,e=>e.lighten(35)),n["primary-color-deprecated-l-20"]=r(e,e=>e.lighten(20)),n["primary-color-deprecated-t-20"]=r(e,e=>e.tint(20)),n["primary-color-deprecated-t-50"]=r(e,e=>e.tint(50)),n["primary-color-deprecated-f-12"]=r(e,e=>e.setA(.12*e.a));let a=new C.Y(i[0]);n["primary-color-active-deprecated-f-30"]=r(a,e=>e.setA(.3*e.a)),n["primary-color-active-deprecated-d-02"]=r(a,e=>e.darken(2))}t.successColor&&o(t.successColor,"success"),t.warningColor&&o(t.warningColor,"warning"),t.errorColor&&o(t.errorColor,"error"),t.infoColor&&o(t.infoColor,"info");let i=Object.keys(n).map(t=>"--".concat(e,"-").concat(t,": ").concat(n[t],";"));return"\n :root {\n ".concat(i.join("\n"),"\n }\n ").trim()}(e,t);(0,S.A)()&&(0,O.BD)(n,"".concat(k,"-dynamic-theme"))}(D(),c):i=c)},W.useConfig=function(){return{componentDisabled:(0,c.useContext)(j.A),componentSize:(0,c.useContext)(T.A)}},Object.defineProperty(W,"SizeContext",{get:()=>T.A});let $=W},60872:(e,t,n)=>{"use strict";n.d(t,{Y:()=>s});var r=n(40419);let o=Math.round;function i(e,t){let n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}let a=(e,t,n)=>0===n?e:e/100;function c(e,t){let n=t||255;return e>n?n:e<0?0:e}class s{setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){let t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}let t=e(this.r);return .2126*t+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){let e=this.getMax()-this.getMin();0===e?this._h=0:this._h=o(60*(this.r===this.getMax()?(this.g-this.b)/e+6*(this.g0&&void 0!==arguments[0]?arguments[0]:10,t=this.getHue(),n=this.getSaturation(),r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=this.getHue(),n=this.getSaturation(),r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,n=this._c(e),r=t/100,i=e=>(n[e]-this[e])*r+this[e],a={r:o(i("r")),g:o(i("g")),b:o(i("b")),a:o(100*i("a"))/100};return this._c(a)}tint(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:255,g:255,b:255,a:1},e)}shade(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){let t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>o((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return 128>this.getBrightness()}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#",t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;let n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;let r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){let t=o(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let e=this.getHue(),t=o(100*this.getSaturation()),n=o(100*this.getLightness());return 1!==this.a?"hsla(".concat(e,",").concat(t,"%,").concat(n,"%,").concat(this.a,")"):"hsl(".concat(e,",").concat(t,"%,").concat(n,"%)")}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?"rgba(".concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.a,")"):"rgb(".concat(this.r,",").concat(this.g,",").concat(this.b,")")}toString(){return this.toRgbString()}_sc(e,t,n){let r=this.clone();return r[e]=c(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl(e){let{h:t,s:n,l:r,a:i}=e;if(this._h=t%360,this._s=n,this._l=r,this.a="number"==typeof i?i:1,n<=0){let e=o(255*r);this.r=e,this.g=e,this.b=e}let a=0,c=0,s=0,l=t/60,u=(1-Math.abs(2*r-1))*n,f=u*(1-Math.abs(l%2-1));l>=0&&l<1?(a=u,c=f):l>=1&&l<2?(a=f,c=u):l>=2&&l<3?(c=u,s=f):l>=3&&l<4?(c=f,s=u):l>=4&&l<5?(a=f,s=u):l>=5&&l<6&&(a=u,s=f);let d=r-u/2;this.r=o((a+d)*255),this.g=o((c+d)*255),this.b=o((s+d)*255)}fromHsv(e){let{h:t,s:n,v:r,a:i}=e;this._h=t%360,this._s=n,this._v=r,this.a="number"==typeof i?i:1;let a=o(255*r);if(this.r=a,this.g=a,this.b=a,n<=0)return;let c=t/60,s=Math.floor(c),l=c-s,u=o(r*(1-n)*255),f=o(r*(1-n*l)*255),d=o(r*(1-n*(1-l))*255);switch(s){case 0:this.g=d,this.b=u;break;case 1:this.r=f,this.b=u;break;case 2:this.r=u,this.b=d;break;case 3:this.r=u,this.g=f;break;case 4:this.r=d,this.g=u;break;default:this.g=u,this.b=f}}fromHsvString(e){let t=i(e,a);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=i(e,a);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=i(e,(e,t)=>t.includes("%")?o(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if((0,r.A)(this,"isValid",!0),(0,r.A)(this,"r",0),(0,r.A)(this,"g",0),(0,r.A)(this,"b",0),(0,r.A)(this,"a",1),(0,r.A)(this,"_h",void 0),(0,r.A)(this,"_s",void 0),(0,r.A)(this,"_l",void 0),(0,r.A)(this,"_v",void 0),(0,r.A)(this,"_max",void 0),(0,r.A)(this,"_min",void 0),(0,r.A)(this,"_brightness",void 0),e)if("string"==typeof e){let t=e.trim();function n(e){return t.startsWith(e)}/^#?[A-F\d]{3,8}$/i.test(t)?this.fromHexString(t):n("rgb")?this.fromRgbString(t):n("hsl")?this.fromHslString(t):(n("hsv")||n("hsb"))&&this.fromHsvString(t)}else if(e instanceof s)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=c(e.r),this.g=c(e.g),this.b=c(e.b),this.a="number"==typeof e.a?c(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else if(t("hsv"))this.fromHsv(e);else throw Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}}},61051:(e,t,n)=>{"use strict";n.d(t,{V:()=>r,i:()=>o});let r=n(12115).createContext({}),{Provider:o}=r},61216:(e,t,n)=>{"use strict";n.d(t,{$D:()=>p,Ay:()=>h,Ej:()=>m,FB:()=>b,fp:()=>g,jT:()=>v,lr:()=>y});var r=n(85757),o=n(12115),i=n(15982),a=n(57845),c=n(25856),s=n(85051),l=n(32655),u=n(94134);let f="",d=e=>{var t,n;let{prefixCls:r,getContainer:a,direction:c}=e,l=(0,u.l)(),d=(0,o.useContext)(i.QO),h=f||d.getPrefixCls(),g=r||"".concat(h,"-modal"),p=a;return!1===p&&(p=void 0),o.createElement(s.A,Object.assign({},e,{rootPrefixCls:h,prefixCls:g,iconPrefixCls:d.iconPrefixCls,theme:d.theme,direction:null!=c?c:d.direction,locale:null!=(n=null==(t=d.locale)?void 0:t.Modal)?n:l,getContainer:p}))};function h(e){let t,n,i=(0,a.cr)(),s=document.createDocumentFragment(),u=Object.assign(Object.assign({},e),{close:p,open:!0});function h(){for(var t,o=arguments.length,i=Array(o),a=0;anull==e?void 0:e.triggerCancel)&&(null==(t=e.onCancel)||t.call.apply(t,[e,()=>{}].concat((0,r.A)(i.slice(1)))));for(let e=0;e{clearTimeout(t),t=setTimeout(()=>{let t=i.getPrefixCls(void 0,f),r=i.getIconPrefixCls(),l=i.getTheme(),u=o.createElement(d,Object.assign({},e));n=(0,c.L)()(o.createElement(a.Ay,{prefixCls:t,iconPrefixCls:r,theme:l},"function"==typeof i.holderRender?i.holderRender(u):u),s)})};function p(){for(var t=arguments.length,n=Array(t),r=0;r{"function"==typeof e.afterClose&&e.afterClose(),h.apply(this,n)}})).visible&&delete u.visible,g(u)}return g(u),l.A.push(p),{destroy:p,update:function(e){g(u="function"==typeof e?e(u):Object.assign(Object.assign({},u),e))}}}function g(e){return Object.assign(Object.assign({},e),{type:"warning"})}function p(e){return Object.assign(Object.assign({},e),{type:"info"})}function m(e){return Object.assign(Object.assign({},e),{type:"success"})}function v(e){return Object.assign(Object.assign({},e),{type:"error"})}function y(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function b(e){let{rootPrefixCls:t}=e;f=t}},61388:(e,t,n)=>{"use strict";n.d(t,{L_:()=>M,oX:()=>S});var r=n(86608),o=n(21858),i=n(40419),a=n(27061),c=n(12115),s=n(99841),l=n(30857),u=n(28383),f=n(55227),d=n(38289),h=n(9424),g=(0,u.A)(function e(){(0,l.A)(this,e)}),p="CALC_UNIT",m=RegExp(p,"g");function v(e){return"number"==typeof e?"".concat(e).concat(p):e}var y=function(e){(0,d.A)(n,e);var t=(0,h.A)(n);function n(e,o){(0,l.A)(this,n),a=t.call(this),(0,i.A)((0,f.A)(a),"result",""),(0,i.A)((0,f.A)(a),"unitlessCssVar",void 0),(0,i.A)((0,f.A)(a),"lowPriority",void 0);var a,c=(0,r.A)(e);return a.unitlessCssVar=o,e instanceof n?a.result="(".concat(e.result,")"):"number"===c?a.result=v(e):"string"===c&&(a.result=e),a}return(0,u.A)(n,[{key:"add",value:function(e){return e instanceof n?this.result="".concat(this.result," + ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," + ").concat(v(e))),this.lowPriority=!0,this}},{key:"sub",value:function(e){return e instanceof n?this.result="".concat(this.result," - ").concat(e.getResult()):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," - ").concat(v(e))),this.lowPriority=!0,this}},{key:"mul",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," * ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," * ").concat(e)),this.lowPriority=!1,this}},{key:"div",value:function(e){return this.lowPriority&&(this.result="(".concat(this.result,")")),e instanceof n?this.result="".concat(this.result," / ").concat(e.getResult(!0)):("number"==typeof e||"string"==typeof e)&&(this.result="".concat(this.result," / ").concat(e)),this.lowPriority=!1,this}},{key:"getResult",value:function(e){return this.lowPriority||e?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(e){var t=this,n=(e||{}).unit,r=!0;return("boolean"==typeof n?r=n:Array.from(this.unitlessCssVar).some(function(e){return t.result.includes(e)})&&(r=!1),this.result=this.result.replace(m,r?"px":""),void 0!==this.lowPriority)?"calc(".concat(this.result,")"):this.result}}]),n}(g),b=function(e){(0,d.A)(n,e);var t=(0,h.A)(n);function n(e){var r;return(0,l.A)(this,n),r=t.call(this),(0,i.A)((0,f.A)(r),"result",0),e instanceof n?r.result=e.result:"number"==typeof e&&(r.result=e),r}return(0,u.A)(n,[{key:"add",value:function(e){return e instanceof n?this.result+=e.result:"number"==typeof e&&(this.result+=e),this}},{key:"sub",value:function(e){return e instanceof n?this.result-=e.result:"number"==typeof e&&(this.result-=e),this}},{key:"mul",value:function(e){return e instanceof n?this.result*=e.result:"number"==typeof e&&(this.result*=e),this}},{key:"div",value:function(e){return e instanceof n?this.result/=e.result:"number"==typeof e&&(this.result/=e),this}},{key:"equal",value:function(){return this.result}}]),n}(g);let A=function(e,t){var n="css"===e?y:b;return function(e){return new n(e,t)}},x=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};n(11719);let E=function(e,t,n,r){var i=(0,a.A)({},t[e]);null!=r&&r.deprecatedTokens&&r.deprecatedTokens.forEach(function(e){var t=(0,o.A)(e,2),n=t[0],r=t[1];(null!=i&&i[n]||null!=i&&i[r])&&(null!=i[r]||(i[r]=null==i?void 0:i[n]))});var c=(0,a.A)((0,a.A)({},n),i);return Object.keys(c).forEach(function(e){c[e]===t[e]&&delete c[e]}),c};var w="undefined"!=typeof CSSINJS_STATISTIC,C=!0;function S(){for(var e=arguments.length,t=Array(e),n=0;n1e4){var t=Date.now();this.lastAccessBeat.forEach(function(n,r){t-n>6e5&&(e.map.delete(r),e.lastAccessBeat.delete(r))}),this.accessBeat=0}}}]),e}());let F=function(){return{}},M=function(e){var t=e.useCSP,n=void 0===t?F:t,l=e.useToken,u=e.usePrefix,f=e.getResetStyles,d=e.getCommonStyle,h=e.getCompUnitless;function g(t,i,h){var g=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},p=Array.isArray(t)?t:[t,t],m=(0,o.A)(p,1)[0],v=p.join("-"),y=e.layer||{name:"antd"};return function(e){var t,o,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,b=l(),w=b.theme,C=b.realToken,O=b.hashId,k=b.token,F=b.cssVar,M=u(),R=M.rootPrefixCls,N=M.iconPrefixCls,_=n(),I=F?"css":"js",B=(t=function(){var e=new Set;return F&&Object.keys(g.unitless||{}).forEach(function(t){e.add((0,s.Ki)(t,F.prefix)),e.add((0,s.Ki)(t,x(m,F.prefix)))}),A(I,e)},o=[I,m,null==F?void 0:F.prefix],c.useMemo(function(){var e=P.get(o);if(e)return e;var n=t();return P.set(o,n),n},o)),L="js"===I?{max:Math.max,min:Math.min}:{max:function(){for(var e=arguments.length,t=Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:e,n=j(e,t),r=(0,o.A)(n,2)[1],i=P(t),a=(0,o.A)(i,2);return[a[0],r,a[1]]}},genSubStyleComponent:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=g(e,t,n,(0,a.A)({resetStyle:!1,order:-998},r));return function(e){var t=e.prefixCls,n=e.rootCls,r=void 0===n?t:n;return o(t,r),null}},genComponentStyleHook:g}}},61706:(e,t,n)=>{"use strict";n.d(t,{z1:()=>E,cM:()=>h});let r={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},o=Math.round;function i(e,t){let n=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=n.map(e=>parseFloat(e));for(let e=0;e<3;e+=1)r[e]=t(r[e]||0,n[e]||"",e);return n[3]?r[3]=n[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}let a=(e,t,n)=>0===n?e:e/100;function c(e,t){let n=t||255;return e>n?n:e<0?0:e}class s{setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){let t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(e){let t=e/255;return t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)}let t=e(this.r);return .2126*t+.7152*e(this.g)+.0722*e(this.b)}getHue(){if(void 0===this._h){let e=this.getMax()-this.getMin();0===e?this._h=0:this._h=o(60*(this.r===this.getMax()?(this.g-this.b)/e+6*(this.g0&&void 0!==arguments[0]?arguments[0]:10,t=this.getHue(),n=this.getSaturation(),r=this.getLightness()-e/100;return r<0&&(r=0),this._c({h:t,s:n,l:r,a:this.a})}lighten(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=this.getHue(),n=this.getSaturation(),r=this.getLightness()+e/100;return r>1&&(r=1),this._c({h:t,s:n,l:r,a:this.a})}mix(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,n=this._c(e),r=t/100,i=e=>(n[e]-this[e])*r+this[e],a={r:o(i("r")),g:o(i("g")),b:o(i("b")),a:o(100*i("a"))/100};return this._c(a)}tint(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:255,g:255,b:255,a:1},e)}shade(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){let t=this._c(e),n=this.a+t.a*(1-this.a),r=e=>o((this[e]*this.a+t[e]*t.a*(1-this.a))/n);return this._c({r:r("r"),g:r("g"),b:r("b"),a:n})}isDark(){return 128>this.getBrightness()}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#",t=(this.r||0).toString(16);e+=2===t.length?t:"0"+t;let n=(this.g||0).toString(16);e+=2===n.length?n:"0"+n;let r=(this.b||0).toString(16);if(e+=2===r.length?r:"0"+r,"number"==typeof this.a&&this.a>=0&&this.a<1){let t=o(255*this.a).toString(16);e+=2===t.length?t:"0"+t}return e}toHsl(){return{h:this.getHue(),s:this.getHSLSaturation(),l:this.getLightness(),a:this.a}}toHslString(){let e=this.getHue(),t=o(100*this.getHSLSaturation()),n=o(100*this.getLightness());return 1!==this.a?"hsla(".concat(e,",").concat(t,"%,").concat(n,"%,").concat(this.a,")"):"hsl(".concat(e,",").concat(t,"%,").concat(n,"%)")}toHsv(){return{h:this.getHue(),s:this.getHSVSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return 1!==this.a?"rgba(".concat(this.r,",").concat(this.g,",").concat(this.b,",").concat(this.a,")"):"rgb(".concat(this.r,",").concat(this.g,",").concat(this.b,")")}toString(){return this.toRgbString()}_sc(e,t,n){let r=this.clone();return r[e]=c(t,n),r}_c(e){return new this.constructor(e)}getMax(){return void 0===this._max&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return void 0===this._min&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(e){let t=e.replace("#","");function n(e,n){return parseInt(t[e]+t[n||e],16)}t.length<6?(this.r=n(0),this.g=n(1),this.b=n(2),this.a=t[3]?n(3)/255:1):(this.r=n(0,1),this.g=n(2,3),this.b=n(4,5),this.a=t[6]?n(6,7)/255:1)}fromHsl(e){let{h:t,s:n,l:r,a:i}=e,a=(t%360+360)%360;if(this._h=a,this._hsl_s=n,this._l=r,this.a="number"==typeof i?i:1,n<=0){let e=o(255*r);this.r=e,this.g=e,this.b=e;return}let c=0,s=0,l=0,u=a/60,f=(1-Math.abs(2*r-1))*n,d=f*(1-Math.abs(u%2-1));u>=0&&u<1?(c=f,s=d):u>=1&&u<2?(c=d,s=f):u>=2&&u<3?(s=f,l=d):u>=3&&u<4?(s=d,l=f):u>=4&&u<5?(c=d,l=f):u>=5&&u<6&&(c=f,l=d);let h=r-f/2;this.r=o((c+h)*255),this.g=o((s+h)*255),this.b=o((l+h)*255)}fromHsv(e){let{h:t,s:n,v:r,a:i}=e,a=(t%360+360)%360;this._h=a,this._hsv_s=n,this._v=r,this.a="number"==typeof i?i:1;let c=o(255*r);if(this.r=c,this.g=c,this.b=c,n<=0)return;let s=a/60,l=Math.floor(s),u=s-l,f=o(r*(1-n)*255),d=o(r*(1-n*u)*255),h=o(r*(1-n*(1-u))*255);switch(l){case 0:this.g=h,this.b=f;break;case 1:this.r=d,this.b=f;break;case 2:this.r=f,this.b=h;break;case 3:this.r=f,this.g=d;break;case 4:this.r=h,this.g=f;break;default:this.g=f,this.b=d}}fromHsvString(e){let t=i(e,a);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){let t=i(e,a);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){let t=i(e,(e,t)=>t.includes("%")?o(e/100*255):e);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}constructor(e){function t(t){return t[0]in e&&t[1]in e&&t[2]in e}if(this.isValid=!0,this.r=0,this.g=0,this.b=0,this.a=1,e)if("string"==typeof e){let t=e.trim();function n(e){return t.startsWith(e)}if(/^#?[A-F\d]{3,8}$/i.test(t))this.fromHexString(t);else if(n("rgb"))this.fromRgbString(t);else if(n("hsl"))this.fromHslString(t);else if(n("hsv")||n("hsb"))this.fromHsvString(t);else{let e=r[t.toLowerCase()];e&&this.fromHexString(parseInt(e,36).toString(16).padStart(6,"0"))}}else if(e instanceof s)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._hsl_s=e._hsl_s,this._hsv_s=e._hsv_s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=c(e.r),this.g=c(e.g),this.b=c(e.b),this.a="number"==typeof e.a?c(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else if(t("hsv"))this.fromHsv(e);else throw Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}}let l=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function u(e,t,n){let r;return(r=Math.round(e.h)>=60&&240>=Math.round(e.h)?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function f(e,t,n){let r;return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100)}function d(e,t,n){return Math.round(100*Math.max(0,Math.min(1,n?e.v+.05*t:e.v-.15*t)))/100}function h(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=new s(e),o=r.toHsv();for(let e=5;e>0;e-=1){let t=new s({h:u(o,e,!0),s:f(o,e,!0),v:d(o,e,!0)});n.push(t)}n.push(r);for(let e=1;e<=4;e+=1){let t=new s({h:u(o,e),s:f(o,e),v:d(o,e)});n.push(t)}return"dark"===t.theme?l.map(e=>{let{index:r,amount:o}=e;return new s(t.backgroundColor||"#141414").mix(n[r],o).toHexString()}):n.map(e=>e.toHexString())}let g=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];g.primary=g[5];let p=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];p.primary=p[5];let m=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];m.primary=m[5];let v=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];v.primary=v[5];let y=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];y.primary=y[5];let b=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];b.primary=b[5];let A=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];A.primary=A[5];let x=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];x.primary=x[5];let E=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];E.primary=E[5];let w=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];w.primary=w[5];let C=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];C.primary=C[5];let S=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];S.primary=S[5];let O=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];O.primary=O[5];let k=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];k.primary=k[5];let j=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];j.primary=j[5];let T=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];T.primary=T[5];let P=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];P.primary=P[5];let F=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];F.primary=F[5];let M=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];M.primary=M[5];let R=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];R.primary=R[5];let N=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];N.primary=N[5];let _=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];_.primary=_[5];let I=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];I.primary=I[5];let B=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];B.primary=B[5];let L=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];L.primary=L[5];let H=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];H.primary=H[5]},61958:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(12115).createContext)(void 0)},63568:(e,t,n)=>{"use strict";n.d(t,{$W:()=>u,Op:()=>s,Pp:()=>d,XB:()=>f,cK:()=>a,hb:()=>l,jC:()=>c});var r=n(12115),o=n(74251),i=n(17980);let a=r.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),c=r.createContext(null),s=e=>{let t=(0,i.A)(e,["prefixCls"]);return r.createElement(o.Op,Object.assign({},t))},l=r.createContext({prefixCls:""}),u=r.createContext({}),f=e=>{let{children:t,status:n,override:o}=e,i=r.useContext(u),a=r.useMemo(()=>{let e=Object.assign({},i);return o&&delete e.isFormItemInput,n&&(delete e.status,delete e.hasFeedback,delete e.feedbackIcon),e},[n,o,i]);return r.createElement(u.Provider,{value:a},t)},d=r.createContext(void 0)},63583:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(79630),o=n(12115),i=n(41401),a=n(35030);let c=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i.A}))})},63715:(e,t,n)=>{"use strict";n.d(t,{A:()=>function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=[];return o.Children.forEach(t,function(t){(null!=t||n.keepEmpty)&&(Array.isArray(t)?i=i.concat(e(t)):(0,r.A)(t)&&t.props?i=i.concat(e(t.props.children,n)):i.push(t))}),i}});var r=n(10337),o=n(12115)},64717:(e,t,n)=>{"use strict";n.d(t,{b:()=>r});let r=function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],i=o?"&":"";return{["\n ".concat(i).concat(e,"-enter,\n ").concat(i).concat(e,"-appear\n ")]:Object.assign(Object.assign({},{animationDuration:r,animationFillMode:"both"}),{animationPlayState:"paused"}),["".concat(i).concat(e,"-leave")]:Object.assign(Object.assign({},{animationDuration:r,animationFillMode:"both"}),{animationPlayState:"paused"}),["\n ".concat(i).concat(e,"-enter").concat(e,"-enter-active,\n ").concat(i).concat(e,"-appear").concat(e,"-appear-active\n ")]:{animationName:t,animationPlayState:"running"},["".concat(i).concat(e,"-leave").concat(e,"-leave-active")]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}}},66154:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(99841),o=n(79453);let i=(0,r.an)(o.A)},66383:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(79630),o=n(12115);let i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"};var a=n(35030);let c=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i}))})},67302:(e,t,n)=>{"use strict";n.d(t,{kf:()=>a});var r=n(30857),o=n(28383),i=n(31474);let a=(0,o.A)(function e(t){var n;if((0,r.A)(this,e),this.cleared=!1,t instanceof e){this.metaColor=t.metaColor.clone(),this.colors=null==(n=t.colors)?void 0:n.map(t=>({color:new e(t.color),percent:t.percent})),this.cleared=t.cleared;return}let o=Array.isArray(t);o&&t.length?(this.colors=t.map(t=>{let{color:n,percent:r}=t;return{color:new e(n),percent:r}}),this.metaColor=new i.Q1(this.colors[0].color.metaColor)):this.metaColor=new i.Q1(o?"":t),t&&(!o||this.colors)||(this.metaColor=this.metaColor.setA(0),this.cleared=!0)},[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){let e,t;return e=this.toHexString(),t=this.metaColor.a<1,e&&(null==e?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||""}},{key:"toHexString",value:function(){return this.metaColor.toHexString()}},{key:"toRgb",value:function(){return this.metaColor.toRgb()}},{key:"toRgbString",value:function(){return this.metaColor.toRgbString()}},{key:"isGradient",value:function(){return!!this.colors&&!this.cleared}},{key:"getColors",value:function(){return this.colors||[{color:this,percent:0}]}},{key:"toCssString",value:function(){let{colors:e}=this;if(e){let t=e.map(e=>"".concat(e.color.toRgbString()," ").concat(e.percent,"%")).join(", ");return"linear-gradient(90deg, ".concat(t,")")}return this.metaColor.toRgbString()}},{key:"equals",value:function(e){return!!e&&this.isGradient()===e.isGradient()&&(this.isGradient()?this.colors.length===e.colors.length&&this.colors.every((t,n)=>{let r=e.colors[n];return t.percent===r.percent&&t.color.equals(r.color)}):this.toHexString()===e.toHexString())}}])},67831:(e,t,n)=>{"use strict";function r(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0},{componentCls:n}=e,{componentCls:r}=t,o=r||n,i="".concat(o,"-compact");return{[i]:Object.assign(Object.assign({},function(e,t,n,r){let{focusElCls:o,focus:i,borderElCls:a}=n,c=a?"> *":"",s=["hover",i?"focus":null,"active"].filter(Boolean).map(e=>"&:".concat(e," ").concat(c)).join(",");return{["&-item:not(".concat(t,"-last-item)")]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},["&-item:not(".concat(r,"-status-success)")]:{zIndex:2},"&-item":Object.assign(Object.assign({[s]:{zIndex:3}},o?{["&".concat(o)]:{zIndex:3}}:{}),{["&[disabled] ".concat(c)]:{zIndex:0}})}}(e,i,t,o)),function(e,t,n){let{borderElCls:r}=n,o=r?"> ".concat(r):"";return{["&-item:not(".concat(t,"-first-item):not(").concat(t,"-last-item) ").concat(o)]:{borderRadius:0},["&-item:not(".concat(t,"-last-item)").concat(t,"-first-item")]:{["& ".concat(o,", &").concat(e,"-sm ").concat(o,", &").concat(e,"-lg ").concat(o)]:{borderStartEndRadius:0,borderEndEndRadius:0}},["&-item:not(".concat(t,"-first-item)").concat(t,"-last-item")]:{["& ".concat(o,", &").concat(e,"-sm ").concat(o,", &").concat(e,"-lg ").concat(o)]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}(o,i,t))}}n.d(t,{G:()=>r})},68057:(e,t,n)=>{"use strict";n.d(t,{z1:()=>y,cM:()=>s,bK:()=>h,UA:()=>w,uy:()=>l});var r=n(60872),o=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function i(e,t,n){var r;return(r=Math.round(e.h)>=60&&240>=Math.round(e.h)?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function a(e,t,n){var r;return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(100*r)/100)}function c(e,t,n){return Math.round(100*Math.max(0,Math.min(1,n?e.v+.05*t:e.v-.15*t)))/100}function s(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],s=new r.Y(e),l=s.toHsv(),u=5;u>0;u-=1){var f=new r.Y({h:i(l,u,!0),s:a(l,u,!0),v:c(l,u,!0)});n.push(f)}n.push(s);for(var d=1;d<=4;d+=1){var h=new r.Y({h:i(l,d),s:a(l,d),v:c(l,d)});n.push(h)}return"dark"===t.theme?o.map(function(e){var o=e.index,i=e.amount;return new r.Y(t.backgroundColor||"#141414").mix(n[o],i).toHexString()}):n.map(function(e){return e.toHexString()})}var l={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1677FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},u=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];u.primary=u[5];var f=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];f.primary=f[5];var d=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];d.primary=d[5];var h=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];h.primary=h[5];var g=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];g.primary=g[5];var p=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];p.primary=p[5];var m=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];m.primary=m[5];var v=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];v.primary=v[5];var y=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];y.primary=y[5];var b=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];b.primary=b[5];var A=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];A.primary=A[5];var x=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];x.primary=x[5];var E=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];E.primary=E[5];var w={red:u,volcano:f,orange:d,gold:h,yellow:g,lime:p,green:m,cyan:v,blue:y,geekblue:b,purple:A,magenta:x,grey:E},C=["#2a1215","#431418","#58181c","#791a1f","#a61d24","#d32029","#e84749","#f37370","#f89f9a","#fac8c3"];C.primary=C[5];var S=["#2b1611","#441d12","#592716","#7c3118","#aa3e19","#d84a1b","#e87040","#f3956a","#f8b692","#fad4bc"];S.primary=S[5];var O=["#2b1d11","#442a11","#593815","#7c4a15","#aa6215","#d87a16","#e89a3c","#f3b765","#f8cf8d","#fae3b7"];O.primary=O[5];var k=["#2b2111","#443111","#594214","#7c5914","#aa7714","#d89614","#e8b339","#f3cc62","#f8df8b","#faedb5"];k.primary=k[5];var j=["#2b2611","#443b11","#595014","#7c6e14","#aa9514","#d8bd14","#e8d639","#f3ea62","#f8f48b","#fafab5"];j.primary=j[5];var T=["#1f2611","#2e3c10","#3e4f13","#536d13","#6f9412","#8bbb11","#a9d134","#c9e75d","#e4f88b","#f0fab5"];T.primary=T[5];var P=["#162312","#1d3712","#274916","#306317","#3c8618","#49aa19","#6abe39","#8fd460","#b2e58b","#d5f2bb"];P.primary=P[5];var F=["#112123","#113536","#144848","#146262","#138585","#13a8a8","#33bcb7","#58d1c9","#84e2d8","#b2f1e8"];F.primary=F[5];var M=["#111a2c","#112545","#15325b","#15417e","#1554ad","#1668dc","#3c89e8","#65a9f3","#8dc5f8","#b7dcfa"];M.primary=M[5];var R=["#131629","#161d40","#1c2755","#203175","#263ea0","#2b4acb","#5273e0","#7f9ef3","#a8c1f8","#d2e0fa"];R.primary=R[5];var N=["#1a1325","#24163a","#301c4d","#3e2069","#51258f","#642ab5","#854eca","#ab7ae0","#cda8f0","#ebd7fa"];N.primary=N[5];var _=["#291321","#40162f","#551c3b","#75204f","#a02669","#cb2b83","#e0529c","#f37fb7","#f8a8cc","#fad2e3"];_.primary=_[5];var I=["#151515","#1f1f1f","#2d2d2d","#393939","#494949","#5a5a5a","#6a6a6a","#7b7b7b","#888888","#969696"];I.primary=I[5]},68151:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(70042);let o=e=>{let[,,,,t]=(0,r.Ay)();return t?"".concat(e,"-css-var"):""}},68448:(e,t,n)=>{"use strict";n.d(t,{C:()=>f,Cv:()=>O,K2:()=>p,Nc:()=>C,OW:()=>v,Sh:()=>b,Tb:()=>E,Tp:()=>h,VF:()=>x,YL:()=>g,c4:()=>A,mw:()=>w,nf:()=>S,rH:()=>u,se:()=>m,yY:()=>d});var r=n(4697),o=1,i=1,a=0,c=0,s=0,l="";function u(e,t,n,r,a,c,s,l){return{value:e,root:t,parent:n,type:r,props:a,children:c,line:o,column:i,length:s,return:"",siblings:l}}function f(e,t){return(0,r.kp)(u("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function d(e){for(;e.root;)e=f(e.root,{children:[e]});(0,r.BC)(e,e.siblings)}function h(){return s}function g(){return s=c>0?(0,r.wN)(l,--c):0,i--,10===s&&(i=1,o--),s}function p(){return s=c2||b(s)>3?"":" "}function C(e,t){for(;--t&&p()&&!(s<48)&&!(s>102)&&(!(s>57)||!(s<65))&&(!(s>70)||!(s<97)););return y(e,c+(t<6&&32==m()&&32==p()))}function S(e,t){for(;p();)if(e+s===57)break;else if(e+s===84&&47===m())break;return"/*"+y(t,c-1)+"*"+(0,r.HT)(47===e?e:p())}function O(e){for(;!b(m());)p();return y(e,c)}},68495:(e,t,n)=>{"use strict";n.d(t,{s:()=>r});let r=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"]},70042:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>g,Xe:()=>f,Is:()=>u});var r=n(12115),o=n(99841),i=n(35519),a=n(66154),c=n(13418),s=n(73383),l=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let u={lineHeight:!0,lineHeightSM:!0,lineHeightLG:!0,lineHeightHeading1:!0,lineHeightHeading2:!0,lineHeightHeading3:!0,lineHeightHeading4:!0,lineHeightHeading5:!0,opacityLoading:!0,fontWeightStrong:!0,zIndexPopupBase:!0,zIndexBase:!0,opacityImage:!0},f={motionBase:!0,motionUnit:!0},d={screenXS:!0,screenXSMin:!0,screenXSMax:!0,screenSM:!0,screenSMMin:!0,screenSMMax:!0,screenMD:!0,screenMDMin:!0,screenMDMax:!0,screenLG:!0,screenLGMin:!0,screenLGMax:!0,screenXL:!0,screenXLMin:!0,screenXLMax:!0,screenXXL:!0,screenXXLMin:!0},h=(e,t,n)=>{let r=n.getDerivativeToken(e),{override:o}=t,i=l(t,["override"]),a=Object.assign(Object.assign({},r),{override:o});return a=(0,s.A)(a),i&&Object.entries(i).forEach(e=>{let[t,n]=e,{theme:r}=n,o=l(n,["theme"]),i=o;r&&(i=h(Object.assign(Object.assign({},a),o),{override:o},r)),a[t]=i}),a};function g(){let{token:e,hashed:t,theme:n,override:l,cssVar:g}=r.useContext(i.vG),p="".concat("5.29.3","-").concat(t||""),m=n||a.A,[v,y,b]=(0,o.hV)(m,[c.A,e],{salt:p,override:l,getComputedToken:h,formatToken:s.A,cssVar:g&&{prefix:g.prefix,key:g.key,unitless:u,ignore:f,preserve:d}});return[m,b,t?y:"",v,g]}},70802:(e,t,n)=>{"use strict";n.d(t,{A:()=>C});var r=n(12115),o=n(29300),i=n.n(o),a=n(15982),c=n(17980);let s=e=>{let{prefixCls:t,className:n,style:o,size:a,shape:c}=e,s=i()({["".concat(t,"-lg")]:"large"===a,["".concat(t,"-sm")]:"small"===a}),l=i()({["".concat(t,"-circle")]:"circle"===c,["".concat(t,"-square")]:"square"===c,["".concat(t,"-round")]:"round"===c}),u=r.useMemo(()=>"number"==typeof a?{width:a,height:a,lineHeight:"".concat(a,"px")}:{},[a]);return r.createElement("span",{className:i()(t,s,l,n),style:Object.assign(Object.assign({},u),o)})};var l=n(99841),u=n(45431),f=n(61388);let d=new l.Mo("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),h=e=>({height:e,lineHeight:(0,l.zA)(e)}),g=e=>Object.assign({width:e},h(e)),p=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},h(e)),m=e=>Object.assign({width:e},h(e)),v=(e,t,n)=>{let{skeletonButtonCls:r}=e;return{["".concat(n).concat(r,"-circle")]:{width:t,minWidth:t,borderRadius:"50%"},["".concat(n).concat(r,"-round")]:{borderRadius:t}}},y=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},h(e)),b=(0,u.OF)("Skeleton",e=>{let{componentCls:t,calc:n}=e;return(e=>{let{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:c,controlHeight:s,controlHeightLG:l,controlHeightSM:u,gradientFromColor:f,padding:h,marginSM:b,borderRadius:A,titleHeight:x,blockRadius:E,paragraphLiHeight:w,controlHeightXS:C,paragraphMarginTop:S}=e;return{[t]:{display:"table",width:"100%",["".concat(t,"-header")]:{display:"table-cell",paddingInlineEnd:h,verticalAlign:"top",[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:f},g(s)),["".concat(n,"-circle")]:{borderRadius:"50%"},["".concat(n,"-lg")]:Object.assign({},g(l)),["".concat(n,"-sm")]:Object.assign({},g(u))},["".concat(t,"-content")]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:x,background:f,borderRadius:E,["+ ".concat(o)]:{marginBlockStart:u}},[o]:{padding:0,"> li":{width:"100%",height:w,listStyle:"none",background:f,borderRadius:E,"+ li":{marginBlockStart:C}}},["".concat(o,"> li:last-child:not(:first-child):not(:nth-child(2))")]:{width:"61%"}},["&-round ".concat(t,"-content")]:{["".concat(r,", ").concat(o," > li")]:{borderRadius:A}}},["".concat(t,"-with-avatar ").concat(t,"-content")]:{[r]:{marginBlockStart:b,["+ ".concat(o)]:{marginBlockStart:S}}},["".concat(t).concat(t,"-element")]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},(e=>{let{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:c}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:c(r).mul(2).equal(),minWidth:c(r).mul(2).equal()},y(r,c))},v(e,r,n)),{["".concat(n,"-lg")]:Object.assign({},y(o,c))}),v(e,o,"".concat(n,"-lg"))),{["".concat(n,"-sm")]:Object.assign({},y(i,c))}),v(e,i,"".concat(n,"-sm")))})(e)),(e=>{let{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},g(r)),["".concat(t).concat(t,"-circle")]:{borderRadius:"50%"},["".concat(t).concat(t,"-lg")]:Object.assign({},g(o)),["".concat(t).concat(t,"-sm")]:Object.assign({},g(i))}})(e)),(e=>{let{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:c}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},p(t,c)),["".concat(r,"-lg")]:Object.assign({},p(o,c)),["".concat(r,"-sm")]:Object.assign({},p(i,c))}})(e)),(e=>{let{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},m(i(n).mul(2).equal())),{["".concat(t,"-path")]:{fill:"#bfbfbf"},["".concat(t,"-svg")]:Object.assign(Object.assign({},m(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),["".concat(t,"-svg").concat(t,"-svg-circle")]:{borderRadius:"50%"}}),["".concat(t).concat(t,"-circle")]:{borderRadius:"50%"}}})(e)),["".concat(t).concat(t,"-block")]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},["".concat(t).concat(t,"-active")]:{["\n ".concat(r,",\n ").concat(o," > li,\n ").concat(n,",\n ").concat(i,",\n ").concat(a,",\n ").concat(c,"\n ")]:Object.assign({},(e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:d,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}))(e))}}})((0,f.oX)(e,{skeletonAvatarCls:"".concat(t,"-avatar"),skeletonTitleCls:"".concat(t,"-title"),skeletonParagraphCls:"".concat(t,"-paragraph"),skeletonButtonCls:"".concat(t,"-button"),skeletonInputCls:"".concat(t,"-input"),skeletonImageCls:"".concat(t,"-image"),imageSizeBase:n(e.controlHeight).mul(1.5).equal(),borderRadius:100,skeletonLoadingBackground:"linear-gradient(90deg, ".concat(e.gradientFromColor," 25%, ").concat(e.gradientToColor," 37%, ").concat(e.gradientFromColor," 63%)"),skeletonLoadingMotionDuration:"1.4s"}))},e=>{let{colorFillContent:t,colorFill:n}=e;return{color:t,colorGradientEnd:n,gradientFromColor:t,gradientToColor:n,titleHeight:e.controlHeight/2,blockRadius:e.borderRadiusSM,paragraphMarginTop:e.marginLG+e.marginXXS,paragraphLiHeight:e.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),A=e=>{let{prefixCls:t,className:n,style:o,rows:a=0}=e,c=Array.from({length:a}).map((t,n)=>r.createElement("li",{key:n,style:{width:((e,t)=>{let{width:n,rows:r=2}=t;return Array.isArray(n)?n[e]:r-1===e?n:void 0})(n,e)}}));return r.createElement("ul",{className:i()(t,n),style:o},c)},x=e=>{let{prefixCls:t,className:n,width:o,style:a}=e;return r.createElement("h3",{className:i()(t,n),style:Object.assign({width:o},a)})};function E(e){return e&&"object"==typeof e?e:{}}let w=e=>{let{prefixCls:t,loading:n,className:o,rootClassName:c,style:l,children:u,avatar:f=!1,title:d=!0,paragraph:h=!0,active:g,round:p}=e,{getPrefixCls:m,direction:v,className:y,style:w}=(0,a.TP)("skeleton"),C=m("skeleton",t),[S,O,k]=b(C);if(n||!("loading"in e)){let e,t,n=!!f,a=!!d,u=!!h;if(n){let t=Object.assign(Object.assign({prefixCls:"".concat(C,"-avatar")},a&&!u?{size:"large",shape:"square"}:{size:"large",shape:"circle"}),E(f));e=r.createElement("div",{className:"".concat(C,"-header")},r.createElement(s,Object.assign({},t)))}if(a||u){let e,o;if(a){let t=Object.assign(Object.assign({prefixCls:"".concat(C,"-title")},function(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}(n,u)),E(d));e=r.createElement(x,Object.assign({},t))}if(u){let e=Object.assign(Object.assign({prefixCls:"".concat(C,"-paragraph")},function(e,t){let n={};return e&&t||(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}(n,a)),E(h));o=r.createElement(A,Object.assign({},e))}t=r.createElement("div",{className:"".concat(C,"-content")},e,o)}let m=i()(C,{["".concat(C,"-with-avatar")]:n,["".concat(C,"-active")]:g,["".concat(C,"-rtl")]:"rtl"===v,["".concat(C,"-round")]:p},y,o,c,O,k);return S(r.createElement("div",{className:m,style:Object.assign(Object.assign({},w),l)},e,t))}return null!=u?u:null};w.Button=e=>{let{prefixCls:t,className:n,rootClassName:o,active:l,block:u=!1,size:f="default"}=e,{getPrefixCls:d}=r.useContext(a.QO),h=d("skeleton",t),[g,p,m]=b(h),v=(0,c.A)(e,["prefixCls"]),y=i()(h,"".concat(h,"-element"),{["".concat(h,"-active")]:l,["".concat(h,"-block")]:u},n,o,p,m);return g(r.createElement("div",{className:y},r.createElement(s,Object.assign({prefixCls:"".concat(h,"-button"),size:f},v))))},w.Avatar=e=>{let{prefixCls:t,className:n,rootClassName:o,active:l,shape:u="circle",size:f="default"}=e,{getPrefixCls:d}=r.useContext(a.QO),h=d("skeleton",t),[g,p,m]=b(h),v=(0,c.A)(e,["prefixCls","className"]),y=i()(h,"".concat(h,"-element"),{["".concat(h,"-active")]:l},n,o,p,m);return g(r.createElement("div",{className:y},r.createElement(s,Object.assign({prefixCls:"".concat(h,"-avatar"),shape:u,size:f},v))))},w.Input=e=>{let{prefixCls:t,className:n,rootClassName:o,active:l,block:u,size:f="default"}=e,{getPrefixCls:d}=r.useContext(a.QO),h=d("skeleton",t),[g,p,m]=b(h),v=(0,c.A)(e,["prefixCls"]),y=i()(h,"".concat(h,"-element"),{["".concat(h,"-active")]:l,["".concat(h,"-block")]:u},n,o,p,m);return g(r.createElement("div",{className:y},r.createElement(s,Object.assign({prefixCls:"".concat(h,"-input"),size:f},v))))},w.Image=e=>{let{prefixCls:t,className:n,rootClassName:o,style:c,active:s}=e,{getPrefixCls:l}=r.useContext(a.QO),u=l("skeleton",t),[f,d,h]=b(u),g=i()(u,"".concat(u,"-element"),{["".concat(u,"-active")]:s},n,o,d,h);return f(r.createElement("div",{className:g},r.createElement("div",{className:i()("".concat(u,"-image"),n),style:c},r.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:"".concat(u,"-image-svg")},r.createElement("title",null,"Image placeholder"),r.createElement("path",{d:"M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z",className:"".concat(u,"-image-path")})))))},w.Node=e=>{let{prefixCls:t,className:n,rootClassName:o,style:c,active:s,children:l}=e,{getPrefixCls:u}=r.useContext(a.QO),f=u("skeleton",t),[d,h,g]=b(f),p=i()(f,"".concat(f,"-element"),{["".concat(f,"-active")]:s},h,n,o,g);return d(r.createElement("div",{className:p},r.createElement("div",{className:i()("".concat(f,"-image"),n),style:c},l)))};let C=w},71367:(e,t,n)=>{"use strict";function r(){return!!("undefined"!=typeof window&&window.document&&window.document.createElement)}n.d(t,{A:()=>r})},73383:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(60872),o=n(13418),i=n(88860),a=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function c(e){let{override:t}=e,n=a(e,["override"]),c=Object.assign({},t);Object.keys(o.A).forEach(e=>{delete c[e]});let s=Object.assign(Object.assign({},n),c);return!1===s.motion&&(s.motionDurationFast="0s",s.motionDurationMid="0s",s.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},s),{colorFillContent:s.colorFillSecondary,colorFillContentHover:s.colorFill,colorFillAlter:s.colorFillQuaternary,colorBgContainerDisabled:s.colorFillTertiary,colorBorderBg:s.colorBgContainer,colorSplit:(0,i.A)(s.colorBorderSecondary,s.colorBgContainer),colorTextPlaceholder:s.colorTextQuaternary,colorTextDisabled:s.colorTextQuaternary,colorTextHeading:s.colorText,colorTextLabel:s.colorTextSecondary,colorTextDescription:s.colorTextTertiary,colorTextLightSolid:s.colorWhite,colorHighlight:s.colorError,colorBgTextHover:s.colorFillSecondary,colorBgTextActive:s.colorFill,colorIcon:s.colorTextTertiary,colorIconHover:s.colorText,colorErrorOutline:(0,i.A)(s.colorErrorBg,s.colorBgContainer),colorWarningOutline:(0,i.A)(s.colorWarningBg,s.colorBgContainer),fontSizeIcon:s.fontSizeSM,lineWidthFocus:3*s.lineWidth,lineWidth:s.lineWidth,controlOutlineWidth:2*s.lineWidth,controlInteractiveSize:s.controlHeight/2,controlItemBgHover:s.colorFillTertiary,controlItemBgActive:s.colorPrimaryBg,controlItemBgActiveHover:s.colorPrimaryBgHover,controlItemBgActiveDisabled:s.colorFill,controlTmpOutline:s.colorFillQuaternary,controlOutline:(0,i.A)(s.colorPrimaryBg,s.colorBgContainer),lineType:s.lineType,borderRadius:s.borderRadius,borderRadiusXS:s.borderRadiusXS,borderRadiusSM:s.borderRadiusSM,borderRadiusLG:s.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:s.sizeXXS,paddingXS:s.sizeXS,paddingSM:s.sizeSM,padding:s.size,paddingMD:s.sizeMD,paddingLG:s.sizeLG,paddingXL:s.sizeXL,paddingContentHorizontalLG:s.sizeLG,paddingContentVerticalLG:s.sizeMS,paddingContentHorizontal:s.sizeMS,paddingContentVertical:s.sizeSM,paddingContentHorizontalSM:s.size,paddingContentVerticalSM:s.sizeXS,marginXXS:s.sizeXXS,marginXS:s.sizeXS,marginSM:s.sizeSM,margin:s.size,marginMD:s.sizeMD,marginLG:s.sizeLG,marginXL:s.sizeXL,marginXXL:s.sizeXXL,boxShadow:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowSecondary:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTertiary:"\n 0 1px 2px 0 rgba(0, 0, 0, 0.03),\n 0 1px 6px -1px rgba(0, 0, 0, 0.02),\n 0 2px 4px 0 rgba(0, 0, 0, 0.02)\n ",screenXS:480,screenXSMin:480,screenXSMax:575,screenSM:576,screenSMMin:576,screenSMMax:767,screenMD:768,screenMDMin:768,screenMDMax:991,screenLG:992,screenLGMin:992,screenLGMax:1199,screenXL:1200,screenXLMin:1200,screenXLMax:1599,screenXXL:1600,screenXXLMin:1600,boxShadowPopoverArrow:"2px 2px 5px rgba(0, 0, 0, 0.05)",boxShadowCard:"\n 0 1px 2px -2px ".concat(new r.Y("rgba(0, 0, 0, 0.16)").toRgbString(),",\n 0 3px 6px 0 ").concat(new r.Y("rgba(0, 0, 0, 0.12)").toRgbString(),",\n 0 5px 12px 4px ").concat(new r.Y("rgba(0, 0, 0, 0.09)").toRgbString(),"\n "),boxShadowDrawerRight:"\n -6px 0 16px 0 rgba(0, 0, 0, 0.08),\n -3px 0 6px -4px rgba(0, 0, 0, 0.12),\n -9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerLeft:"\n 6px 0 16px 0 rgba(0, 0, 0, 0.08),\n 3px 0 6px -4px rgba(0, 0, 0, 0.12),\n 9px 0 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerUp:"\n 0 6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowDrawerDown:"\n 0 -6px 16px 0 rgba(0, 0, 0, 0.08),\n 0 -3px 6px -4px rgba(0, 0, 0, 0.12),\n 0 -9px 28px 8px rgba(0, 0, 0, 0.05)\n ",boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),c)}},73632:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(8357);function o(e,t){if(e){if("string"==typeof e)return(0,r.A)(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.A)(e,t):void 0}}},74121:(e,t,n)=>{"use strict";n.d(t,{A:()=>s,h:()=>f});var r=n(86608),o=n(27061),i=n(85757),a=n(93821),c=n(21349);function s(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return t.length&&r&&void 0===n&&!(0,c.A)(e,t.slice(0,-1))?e:function e(t,n,r,c){if(!n.length)return r;var s,l=(0,a.A)(n),u=l[0],f=l.slice(1);return s=t||"number"!=typeof u?Array.isArray(t)?(0,i.A)(t):(0,o.A)({},t):[],c&&void 0===r&&1===f.length?delete s[u][f[0]]:s[u]=e(s[u],f,r,c),s}(e,t,n,r)}function l(e){return Array.isArray(e)?[]:{}}var u="undefined"==typeof Reflect?Object.keys:Reflect.ownKeys;function f(){for(var e=arguments.length,t=Array(e),n=0;n{"use strict";n.d(t,{D0:()=>ep,_z:()=>E,Op:()=>eS,B8:()=>em,EF:()=>w,Ay:()=>eF,mN:()=>ew,FH:()=>eT});var r,o=n(12115),i=n(79630),a=n(20235),c=n(42115),s=n(94251),l=n(27061),u=n(85757),f=n(30857),d=n(28383),h=n(55227),g=n(38289),p=n(9424),m=n(40419),v=n(63715),y=n(80227),b=n(9587),A="RC_FORM_INTERNAL_HOOKS",x=function(){(0,b.Ay)(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")};let E=o.createContext({getFieldValue:x,getFieldsValue:x,getFieldError:x,getFieldWarning:x,getFieldsError:x,isFieldsTouched:x,isFieldTouched:x,isFieldValidating:x,isFieldsValidating:x,resetFields:x,setFields:x,setFieldValue:x,setFieldsValue:x,validateFields:x,submit:x,getInternalHooks:function(){return x(),{dispatch:x,initEntityValue:x,registerField:x,useSubscribe:x,setInitialValues:x,destroyForm:x,setCallbacks:x,registerWatch:x,getFields:x,setValidateMessages:x,setPreserve:x,getInitialValue:x}}}),w=o.createContext(null);function C(e){return null==e?[]:Array.isArray(e)?e:[e]}var S=n(86608);function O(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var k=O(),j=n(85522),T=n(42222),P=n(45144);function F(e){var t="function"==typeof Map?new Map:void 0;return(F=function(e){if(null===e||!function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if((0,P.A)())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&(0,T.A)(o,n.prototype),o}(e,arguments,(0,j.A)(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),(0,T.A)(n,e)})(e)}var M=n(49509),R=/%[sdj%]/g;function N(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function _(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r=i)return e;switch(e){case"%s":return String(n[o++]);case"%d":return Number(n[o++]);case"%j":try{return JSON.stringify(n[o++])}catch(e){return"[Circular]"}default:return e}}):e}function I(e,t){return!!(null==e||"array"===t&&Array.isArray(e)&&!e.length)||("string"===t||"url"===t||"hex"===t||"email"===t||"date"===t||"pattern"===t)&&"string"==typeof e&&!e||!1}function B(e,t,n){var r=0,o=e.length;!function i(a){if(a&&a.length)return void n(a);var c=r;r+=1,c()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},W={integer:function(e){return W.number(e)&&parseInt(e,10)===e},float:function(e){return W.number(e)&&!W.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return new RegExp(e),!0}catch(e){return!1}},date:function(e){return"function"==typeof e.getTime&&"function"==typeof e.getMonth&&"function"==typeof e.getYear&&!isNaN(e.getTime())},number:function(e){return!isNaN(e)&&"number"==typeof e},object:function(e){return"object"===(0,S.A)(e)&&!W.array(e)},method:function(e){return"function"==typeof e},email:function(e){return"string"==typeof e&&e.length<=320&&!!e.match(q.email)},url:function(e){return"string"==typeof e&&e.length<=2048&&!!e.match(V())},hex:function(e){return"string"==typeof e&&!!e.match(q.hex)}};let $={required:U,whitespace:function(e,t,n,r,o){(/^\s+$/.test(t)||""===t)&&r.push(_(o.messages.whitespace,e.fullField))},type:function(e,t,n,r,o){if(e.required&&void 0===t)return void U(e,t,n,r,o);var i=e.type;["integer","float","array","regexp","object","method","email","number","date","url","hex"].indexOf(i)>-1?W[i](t)||r.push(_(o.messages.types[i],e.fullField,e.type)):i&&(0,S.A)(t)!==e.type&&r.push(_(o.messages.types[i],e.fullField,e.type))},range:function(e,t,n,r,o){var i="number"==typeof e.len,a="number"==typeof e.min,c="number"==typeof e.max,s=t,l=null,u="number"==typeof t,f="string"==typeof t,d=Array.isArray(t);if(u?l="number":f?l="string":d&&(l="array"),!l)return!1;d&&(s=t.length),f&&(s=t.replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"_").length),i?s!==e.len&&r.push(_(o.messages[l].len,e.fullField,e.len)):a&&!c&&se.max?r.push(_(o.messages[l].max,e.fullField,e.max)):a&&c&&(se.max)&&r.push(_(o.messages[l].range,e.fullField,e.min,e.max))},enum:function(e,t,n,r,o){e[D]=Array.isArray(e[D])?e[D]:[],-1===e[D].indexOf(t)&&r.push(_(o.messages[D],e.fullField,e[D].join(", ")))},pattern:function(e,t,n,r,o){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(_(o.messages.pattern.mismatch,e.fullField,t,e.pattern))):"string"==typeof e.pattern&&(new RegExp(e.pattern).test(t)||r.push(_(o.messages.pattern.mismatch,e.fullField,t,e.pattern))))}},G=function(e,t,n,r,o){var i=e.type,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t,i)&&!e.required)return n();$.required(e,t,r,a,o,i),I(t,i)||$.type(e,t,r,a,o)}n(a)},K={string:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t,"string")&&!e.required)return n();$.required(e,t,r,i,o,"string"),I(t,"string")||($.type(e,t,r,i,o),$.range(e,t,r,i,o),$.pattern(e,t,r,i,o),!0===e.whitespace&&$.whitespace(e,t,r,i,o))}n(i)},method:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t)&&!e.required)return n();$.required(e,t,r,i,o),void 0!==t&&$.type(e,t,r,i,o)}n(i)},number:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(""===t&&(t=void 0),I(t)&&!e.required)return n();$.required(e,t,r,i,o),void 0!==t&&($.type(e,t,r,i,o),$.range(e,t,r,i,o))}n(i)},boolean:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t)&&!e.required)return n();$.required(e,t,r,i,o),void 0!==t&&$.type(e,t,r,i,o)}n(i)},regexp:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t)&&!e.required)return n();$.required(e,t,r,i,o),I(t)||$.type(e,t,r,i,o)}n(i)},integer:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t)&&!e.required)return n();$.required(e,t,r,i,o),void 0!==t&&($.type(e,t,r,i,o),$.range(e,t,r,i,o))}n(i)},float:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t)&&!e.required)return n();$.required(e,t,r,i,o),void 0!==t&&($.type(e,t,r,i,o),$.range(e,t,r,i,o))}n(i)},array:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(null==t&&!e.required)return n();$.required(e,t,r,i,o,"array"),null!=t&&($.type(e,t,r,i,o),$.range(e,t,r,i,o))}n(i)},object:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t)&&!e.required)return n();$.required(e,t,r,i,o),void 0!==t&&$.type(e,t,r,i,o)}n(i)},enum:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t)&&!e.required)return n();$.required(e,t,r,i,o),void 0!==t&&$.enum(e,t,r,i,o)}n(i)},pattern:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t,"string")&&!e.required)return n();$.required(e,t,r,i,o),I(t,"string")||$.pattern(e,t,r,i,o)}n(i)},date:function(e,t,n,r,o){var i,a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t,"date")&&!e.required)return n();$.required(e,t,r,a,o),!I(t,"date")&&(i=t instanceof Date?t:new Date(t),$.type(e,i,r,a,o),i&&$.range(e,i.getTime(),r,a,o))}n(a)},url:G,hex:G,email:G,required:function(e,t,n,r,o){var i=[],a=Array.isArray(t)?"array":(0,S.A)(t);$.required(e,t,r,i,o,a),n(i)},any:function(e,t,n,r,o){var i=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(I(t)&&!e.required)return n();$.required(e,t,r,i,o)}n(i)}};var X=function(){function e(t){(0,f.A)(this,e),(0,m.A)(this,"rules",null),(0,m.A)(this,"_messages",k),this.define(t)}return(0,d.A)(e,[{key:"define",value:function(e){var t=this;if(!e)throw Error("Cannot configure a schema with no rules");if("object"!==(0,S.A)(e)||Array.isArray(e))throw Error("Rules must be an object");this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})}},{key:"messages",value:function(e){return e&&(this._messages=z(O(),e)),this._messages}},{key:"validate",value:function(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},i=t,a=r,c=o;if("function"==typeof a&&(c=a,a={}),!this.rules||0===Object.keys(this.rules).length)return c&&c(null,i),Promise.resolve(i);if(a.messages){var s=this.messages();s===k&&(s=O()),z(s,a.messages),a.messages=s}else a.messages=this.messages();var f={};(a.keys||Object.keys(this.rules)).forEach(function(e){var r=n.rules[e],o=i[e];r.forEach(function(r){var a=r;"function"==typeof a.transform&&(i===t&&(i=(0,l.A)({},i)),null!=(o=i[e]=a.transform(o))&&(a.type=a.type||(Array.isArray(o)?"array":(0,S.A)(o)))),(a="function"==typeof a?{validator:a}:(0,l.A)({},a)).validator=n.getValidationMethod(a),a.validator&&(a.field=e,a.fullField=a.fullField||e,a.type=n.getType(a),f[e]=f[e]||[],f[e].push({rule:a,value:o,source:i,field:e}))})});var d={};return function(e,t,n,r,o){if(t.first){var i=new Promise(function(t,i){var a;B((a=[],Object.keys(e).forEach(function(t){a.push.apply(a,(0,u.A)(e[t]||[]))}),a),n,function(e){return r(e),e.length?i(new L(e,N(e))):t(o)})});return i.catch(function(e){return e}),i}var a=!0===t.firstFields?Object.keys(e):t.firstFields||[],c=Object.keys(e),s=c.length,l=0,f=[],d=new Promise(function(t,i){var d=function(e){if(f.push.apply(f,e),++l===s)return r(f),f.length?i(new L(f,N(f))):t(o)};c.length||(r(f),t(o)),c.forEach(function(t){var r=e[t];if(-1!==a.indexOf(t))B(r,n,d);else{var o=[],i=0,c=r.length;function s(e){o.push.apply(o,(0,u.A)(e||[])),++i===c&&d(o)}r.forEach(function(e){n(e,s)})}})});return d.catch(function(e){return e}),d}(f,a,function(t,n){var r,o,c,s=t.rule,f=("object"===s.type||"array"===s.type)&&("object"===(0,S.A)(s.fields)||"object"===(0,S.A)(s.defaultField));function h(e,t){return(0,l.A)((0,l.A)({},t),{},{fullField:"".concat(s.fullField,".").concat(e),fullFields:s.fullFields?[].concat((0,u.A)(s.fullFields),[e]):[e]})}function g(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Array.isArray(r)?r:[r];!a.suppressWarning&&o.length&&e.warning("async-validator:",o),o.length&&void 0!==s.message&&(o=[].concat(s.message));var c=o.map(H(s,i));if(a.first&&c.length)return d[s.field]=1,n(c);if(f){if(s.required&&!t.value)return void 0!==s.message?c=[].concat(s.message).map(H(s,i)):a.error&&(c=[a.error(s,_(a.messages.required,s.field))]),n(c);var g={};s.defaultField&&Object.keys(t.value).map(function(e){g[e]=s.defaultField});var p={};Object.keys(g=(0,l.A)((0,l.A)({},g),t.rule.fields)).forEach(function(e){var t=g[e],n=Array.isArray(t)?t:[t];p[e]=n.map(h.bind(null,e))});var m=new e(p);m.messages(a.messages),t.rule.options&&(t.rule.options.messages=a.messages,t.rule.options.error=a.error),m.validate(t.value,t.rule.options||a,function(e){var t=[];c&&c.length&&t.push.apply(t,(0,u.A)(c)),e&&e.length&&t.push.apply(t,(0,u.A)(e)),n(t.length?t:null)})}else n(c)}if(f=f&&(s.required||!s.required&&t.value),s.field=t.field,s.asyncValidator)r=s.asyncValidator(s,t.value,g,t.source,a);else if(s.validator){try{r=s.validator(s,t.value,g,t.source,a)}catch(e){null==(o=(c=console).error)||o.call(c,e),a.suppressValidatorError||setTimeout(function(){throw e},0),g(e.message)}!0===r?g():!1===r?g("function"==typeof s.message?s.message(s.fullField||s.field):s.message||"".concat(s.fullField||s.field," fails")):r instanceof Array?g(r):r instanceof Error&&g(r.message)}r&&r.then&&r.then(function(){return g()},function(e){return g(e)})},function(e){!function(e){for(var t=[],n={},r=0;r0)){e.next=23;break}return e.next=21,Promise.all(n.map(function(e,n){return ee("".concat(t,".").concat(n),e,d,i,a)}));case 21:return v=e.sent,e.abrupt("return",v.reduce(function(e,t){return[].concat((0,u.A)(e),(0,u.A)(t))},[]));case 23:return y=(0,l.A)((0,l.A)({},r),{},{name:t,enum:(r.enum||[]).join(", ")},a),b=p.map(function(e){return"string"==typeof e?function(e,t){return e.replace(/\\?\$\{\w+\}/g,function(e){return e.startsWith("\\")?e.slice(1):t[e.slice(2,-1)]})}(e,y):e}),e.abrupt("return",b);case 26:case"end":return e.stop()}},e,null,[[10,15]])}))).apply(this,arguments)}function en(){return(en=(0,s.A)((0,c.A)().mark(function e(t){return(0,c.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Promise.all(t).then(function(e){var t;return(t=[]).concat.apply(t,(0,u.A)(e))}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)}function er(){return(er=(0,s.A)((0,c.A)().mark(function e(t){var n;return(0,c.A)().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=0,e.abrupt("return",new Promise(function(e){t.forEach(function(r){r.then(function(r){r.errors.length&&e([r]),(n+=1)===t.length&&e([])})})}));case 2:case"end":return e.stop()}},e)}))).apply(this,arguments)}var eo=n(21349);function ei(e){return C(e)}function ea(e,t){var n={};return t.forEach(function(t){var r=(0,eo.A)(e,t);n=(0,J.A)(n,t,r)}),n}function ec(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&e.some(function(e){return es(t,e,n)})}function es(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!e&&!!t&&(!!n||e.length===t.length)&&t.every(function(t,n){return e[n]===t})}function el(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&"object"===(0,S.A)(t.target)&&e in t.target?t.target[e]:t}function eu(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat((0,u.A)(e.slice(0,n)),[o],(0,u.A)(e.slice(n,t)),(0,u.A)(e.slice(t+1,r))):i<0?[].concat((0,u.A)(e.slice(0,t)),(0,u.A)(e.slice(t+1,n+1)),[o],(0,u.A)(e.slice(n+1,r))):e}var ef=["name"],ed=[];function eh(e,t,n,r,o,i){return"function"==typeof e?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var eg=function(e){(0,g.A)(n,e);var t=(0,p.A)(n);function n(e){var r;return(0,f.A)(this,n),r=t.call(this,e),(0,m.A)((0,h.A)(r),"state",{resetCount:0}),(0,m.A)((0,h.A)(r),"cancelRegisterFunc",null),(0,m.A)((0,h.A)(r),"mounted",!1),(0,m.A)((0,h.A)(r),"touched",!1),(0,m.A)((0,h.A)(r),"dirty",!1),(0,m.A)((0,h.A)(r),"validatePromise",void 0),(0,m.A)((0,h.A)(r),"prevValidating",void 0),(0,m.A)((0,h.A)(r),"errors",ed),(0,m.A)((0,h.A)(r),"warnings",ed),(0,m.A)((0,h.A)(r),"cancelRegister",function(){var e=r.props,t=e.preserve,n=e.isListField,o=e.name;r.cancelRegisterFunc&&r.cancelRegisterFunc(n,t,ei(o)),r.cancelRegisterFunc=null}),(0,m.A)((0,h.A)(r),"getNamePath",function(){var e=r.props,t=e.name,n=e.fieldContext.prefixName;return void 0!==t?[].concat((0,u.A)(void 0===n?[]:n),(0,u.A)(t)):[]}),(0,m.A)((0,h.A)(r),"getRules",function(){var e=r.props,t=e.rules,n=e.fieldContext;return(void 0===t?[]:t).map(function(e){return"function"==typeof e?e(n):e})}),(0,m.A)((0,h.A)(r),"refresh",function(){r.mounted&&r.setState(function(e){return{resetCount:e.resetCount+1}})}),(0,m.A)((0,h.A)(r),"metaCache",null),(0,m.A)((0,h.A)(r),"triggerMetaEvent",function(e){var t=r.props.onMetaChange;if(t){var n=(0,l.A)((0,l.A)({},r.getMeta()),{},{destroy:e});(0,y.A)(r.metaCache,n)||t(n),r.metaCache=n}else r.metaCache=null}),(0,m.A)((0,h.A)(r),"onStoreChange",function(e,t,n){var o=r.props,i=o.shouldUpdate,a=o.dependencies,c=void 0===a?[]:a,s=o.onReset,l=n.store,u=r.getNamePath(),f=r.getValue(e),d=r.getValue(l),h=t&&ec(t,u);switch("valueUpdate"===n.type&&"external"===n.source&&!(0,y.A)(f,d)&&(r.touched=!0,r.dirty=!0,r.validatePromise=null,r.errors=ed,r.warnings=ed,r.triggerMetaEvent()),n.type){case"reset":if(!t||h){r.touched=!1,r.dirty=!1,r.validatePromise=void 0,r.errors=ed,r.warnings=ed,r.triggerMetaEvent(),null==s||s(),r.refresh();return}break;case"remove":if(i&&eh(i,e,l,f,d,n))return void r.reRender();break;case"setField":var g=n.data;if(h){"touched"in g&&(r.touched=g.touched),"validating"in g&&!("originRCField"in g)&&(r.validatePromise=g.validating?Promise.resolve([]):null),"errors"in g&&(r.errors=g.errors||ed),"warnings"in g&&(r.warnings=g.warnings||ed),r.dirty=!0,r.triggerMetaEvent(),r.reRender();return}if("value"in g&&ec(t,u,!0)||i&&!u.length&&eh(i,e,l,f,d,n))return void r.reRender();break;case"dependenciesUpdate":if(c.map(ei).some(function(e){return ec(n.relatedFields,e)}))return void r.reRender();break;default:if(h||(!c.length||u.length||i)&&eh(i,e,l,f,d,n))return void r.reRender()}!0===i&&r.reRender()}),(0,m.A)((0,h.A)(r),"validateRules",function(e){var t=r.getNamePath(),n=r.getValue(),o=e||{},i=o.triggerName,a=o.validateOnly,f=Promise.resolve().then((0,s.A)((0,c.A)().mark(function o(){var a,d,h,g,p,m,v;return(0,c.A)().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:if(r.mounted){o.next=2;break}return o.abrupt("return",[]);case 2:if(h=void 0!==(d=(a=r.props).validateFirst)&&d,g=a.messageVariables,p=a.validateDebounce,m=r.getRules(),i&&(m=m.filter(function(e){return e}).filter(function(e){var t=e.validateTrigger;return!t||C(t).includes(i)})),!(p&&i)){o.next=10;break}return o.next=8,new Promise(function(e){setTimeout(e,p)});case 8:if(r.validatePromise===f){o.next=10;break}return o.abrupt("return",[]);case 10:return(v=function(e,t,n,r,o,i){var a,u,f=e.join("."),d=n.map(function(e,t){var n=e.validator,r=(0,l.A)((0,l.A)({},e),{},{ruleIndex:t});return n&&(r.validator=function(e,t,r){var o=!1,i=n(e,t,function(){for(var e=arguments.length,t=Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:ed;if(r.validatePromise===f){r.validatePromise=null;var t,n=[],o=[];null==(t=e.forEach)||t.call(e,function(e){var t=e.rule.warningOnly,r=e.errors,i=void 0===r?ed:r;t?o.push.apply(o,(0,u.A)(i)):n.push.apply(n,(0,u.A)(i))}),r.errors=n,r.warnings=o,r.triggerMetaEvent(),r.reRender()}}),o.abrupt("return",v);case 13:case"end":return o.stop()}},o)})));return void 0!==a&&a||(r.validatePromise=f,r.dirty=!0,r.errors=ed,r.warnings=ed,r.triggerMetaEvent(),r.reRender()),f}),(0,m.A)((0,h.A)(r),"isFieldValidating",function(){return!!r.validatePromise}),(0,m.A)((0,h.A)(r),"isFieldTouched",function(){return r.touched}),(0,m.A)((0,h.A)(r),"isFieldDirty",function(){return!!r.dirty||void 0!==r.props.initialValue||void 0!==(0,r.props.fieldContext.getInternalHooks(A).getInitialValue)(r.getNamePath())}),(0,m.A)((0,h.A)(r),"getErrors",function(){return r.errors}),(0,m.A)((0,h.A)(r),"getWarnings",function(){return r.warnings}),(0,m.A)((0,h.A)(r),"isListField",function(){return r.props.isListField}),(0,m.A)((0,h.A)(r),"isList",function(){return r.props.isList}),(0,m.A)((0,h.A)(r),"isPreserve",function(){return r.props.preserve}),(0,m.A)((0,h.A)(r),"getMeta",function(){return r.prevValidating=r.isFieldValidating(),{touched:r.isFieldTouched(),validating:r.prevValidating,errors:r.errors,warnings:r.warnings,name:r.getNamePath(),validated:null===r.validatePromise}}),(0,m.A)((0,h.A)(r),"getOnlyChild",function(e){if("function"==typeof e){var t=r.getMeta();return(0,l.A)((0,l.A)({},r.getOnlyChild(e(r.getControlled(),t,r.props.fieldContext))),{},{isFunction:!0})}var n=(0,v.A)(e);return 1===n.length&&o.isValidElement(n[0])?{child:n[0],isFunction:!1}:{child:n,isFunction:!1}}),(0,m.A)((0,h.A)(r),"getValue",function(e){var t=r.props.fieldContext.getFieldsValue,n=r.getNamePath();return(0,eo.A)(e||t(!0),n)}),(0,m.A)((0,h.A)(r),"getControlled",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.props,n=t.name,o=t.trigger,i=t.validateTrigger,a=t.getValueFromEvent,c=t.normalize,s=t.valuePropName,u=t.getValueProps,f=t.fieldContext,d=void 0!==i?i:f.validateTrigger,h=r.getNamePath(),g=f.getInternalHooks,p=f.getFieldsValue,v=g(A).dispatch,y=r.getValue(),b=u||function(e){return(0,m.A)({},s,e)},x=e[o],E=void 0!==n?b(y):{},w=(0,l.A)((0,l.A)({},e),E);return w[o]=function(){r.touched=!0,r.dirty=!0,r.triggerMetaEvent();for(var e,t=arguments.length,n=Array(t),o=0;o=0&&t<=n.length?(d.keys=[].concat((0,u.A)(d.keys.slice(0,t)),[d.id],(0,u.A)(d.keys.slice(t))),o([].concat((0,u.A)(n.slice(0,t)),[e],(0,u.A)(n.slice(t))))):(d.keys=[].concat((0,u.A)(d.keys),[d.id]),o([].concat((0,u.A)(n),[e]))),d.id+=1},remove:function(e){var t=a(),n=new Set(Array.isArray(e)?e:[e]);n.size<=0||(d.keys=d.keys.filter(function(e,t){return!n.has(t)}),o(t.filter(function(e,t){return!n.has(t)})))},move:function(e,t){if(e!==t){var n=a();e<0||e>=n.length||t<0||t>=n.length||(d.keys=eu(d.keys,e,t),o(eu(n,e,t)))}}},t)})))};var ev=n(21858),ey="__@field_split__";function eb(e){return e.map(function(e){return"".concat((0,S.A)(e),":").concat(e)}).join(ey)}var eA=function(){function e(){(0,f.A)(this,e),(0,m.A)(this,"kvs",new Map)}return(0,d.A)(e,[{key:"set",value:function(e,t){this.kvs.set(eb(e),t)}},{key:"get",value:function(e){return this.kvs.get(eb(e))}},{key:"update",value:function(e,t){var n=t(this.get(e));n?this.set(e,n):this.delete(e)}},{key:"delete",value:function(e){this.kvs.delete(eb(e))}},{key:"map",value:function(e){return(0,u.A)(this.kvs.entries()).map(function(t){var n=(0,ev.A)(t,2),r=n[0],o=n[1];return e({key:r.split(ey).map(function(e){var t=e.match(/^([^:]*):(.*)$/),n=(0,ev.A)(t,3),r=n[1],o=n[2];return"number"===r?Number(o):o}),value:o})})}},{key:"toJSON",value:function(){var e={};return this.map(function(t){var n=t.key,r=t.value;return e[n.join(".")]=r,null}),e}}]),e}(),ex=["name"],eE=(0,d.A)(function e(t){var n=this;(0,f.A)(this,e),(0,m.A)(this,"formHooked",!1),(0,m.A)(this,"forceRootUpdate",void 0),(0,m.A)(this,"subscribable",!0),(0,m.A)(this,"store",{}),(0,m.A)(this,"fieldEntities",[]),(0,m.A)(this,"initialValues",{}),(0,m.A)(this,"callbacks",{}),(0,m.A)(this,"validateMessages",null),(0,m.A)(this,"preserve",null),(0,m.A)(this,"lastValidatePromise",null),(0,m.A)(this,"getForm",function(){return{getFieldValue:n.getFieldValue,getFieldsValue:n.getFieldsValue,getFieldError:n.getFieldError,getFieldWarning:n.getFieldWarning,getFieldsError:n.getFieldsError,isFieldsTouched:n.isFieldsTouched,isFieldTouched:n.isFieldTouched,isFieldValidating:n.isFieldValidating,isFieldsValidating:n.isFieldsValidating,resetFields:n.resetFields,setFields:n.setFields,setFieldValue:n.setFieldValue,setFieldsValue:n.setFieldsValue,validateFields:n.validateFields,submit:n.submit,_init:!0,getInternalHooks:n.getInternalHooks}}),(0,m.A)(this,"getInternalHooks",function(e){return e===A?(n.formHooked=!0,{dispatch:n.dispatch,initEntityValue:n.initEntityValue,registerField:n.registerField,useSubscribe:n.useSubscribe,setInitialValues:n.setInitialValues,destroyForm:n.destroyForm,setCallbacks:n.setCallbacks,setValidateMessages:n.setValidateMessages,getFields:n.getFields,setPreserve:n.setPreserve,getInitialValue:n.getInitialValue,registerWatch:n.registerWatch}):((0,b.Ay)(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),(0,m.A)(this,"useSubscribe",function(e){n.subscribable=e}),(0,m.A)(this,"prevWithoutPreserves",null),(0,m.A)(this,"setInitialValues",function(e,t){if(n.initialValues=e||{},t){var r,o=(0,J.h)(e,n.store);null==(r=n.prevWithoutPreserves)||r.map(function(t){var n=t.key;o=(0,J.A)(o,n,(0,eo.A)(e,n))}),n.prevWithoutPreserves=null,n.updateStore(o)}}),(0,m.A)(this,"destroyForm",function(e){if(e)n.updateStore({});else{var t=new eA;n.getFieldEntities(!0).forEach(function(e){n.isMergedPreserve(e.isPreserve())||t.set(e.getNamePath(),!0)}),n.prevWithoutPreserves=t}}),(0,m.A)(this,"getInitialValue",function(e){var t=(0,eo.A)(n.initialValues,e);return e.length?(0,J.h)(t):t}),(0,m.A)(this,"setCallbacks",function(e){n.callbacks=e}),(0,m.A)(this,"setValidateMessages",function(e){n.validateMessages=e}),(0,m.A)(this,"setPreserve",function(e){n.preserve=e}),(0,m.A)(this,"watchList",[]),(0,m.A)(this,"registerWatch",function(e){return n.watchList.push(e),function(){n.watchList=n.watchList.filter(function(t){return t!==e})}}),(0,m.A)(this,"notifyWatch",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];if(n.watchList.length){var t=n.getFieldsValue(),r=n.getFieldsValue(!0);n.watchList.forEach(function(n){n(t,r,e)})}}),(0,m.A)(this,"timeoutId",null),(0,m.A)(this,"warningUnhooked",function(){}),(0,m.A)(this,"updateStore",function(e){n.store=e}),(0,m.A)(this,"getFieldEntities",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e?n.fieldEntities.filter(function(e){return e.getNamePath().length}):n.fieldEntities}),(0,m.A)(this,"getFieldsMap",function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=new eA;return n.getFieldEntities(e).forEach(function(e){var n=e.getNamePath();t.set(n,e)}),t}),(0,m.A)(this,"getFieldEntitiesForNamePathList",function(e){if(!e)return n.getFieldEntities(!0);var t=n.getFieldsMap(!0);return e.map(function(e){var n=ei(e);return t.get(n)||{INVALIDATE_NAME_PATH:ei(e)}})}),(0,m.A)(this,"getFieldsValue",function(e,t){if(n.warningUnhooked(),!0===e||Array.isArray(e)?(r=e,o=t):e&&"object"===(0,S.A)(e)&&(i=e.strict,o=e.filter),!0===r&&!o)return n.store;var r,o,i,a=n.getFieldEntitiesForNamePathList(Array.isArray(r)?r:null),c=[];return a.forEach(function(e){var t,n,a,s="INVALIDATE_NAME_PATH"in e?e.INVALIDATE_NAME_PATH:e.getNamePath();if(i){if(null!=(a=e.isList)&&a.call(e))return}else if(!r&&null!=(t=(n=e).isListField)&&t.call(n))return;if(o){var l="getMeta"in e?e.getMeta():null;o(l)&&c.push(s)}else c.push(s)}),ea(n.store,c.map(ei))}),(0,m.A)(this,"getFieldValue",function(e){n.warningUnhooked();var t=ei(e);return(0,eo.A)(n.store,t)}),(0,m.A)(this,"getFieldsError",function(e){return n.warningUnhooked(),n.getFieldEntitiesForNamePathList(e).map(function(t,n){return!t||"INVALIDATE_NAME_PATH"in t?{name:ei(e[n]),errors:[],warnings:[]}:{name:t.getNamePath(),errors:t.getErrors(),warnings:t.getWarnings()}})}),(0,m.A)(this,"getFieldError",function(e){n.warningUnhooked();var t=ei(e);return n.getFieldsError([t])[0].errors}),(0,m.A)(this,"getFieldWarning",function(e){n.warningUnhooked();var t=ei(e);return n.getFieldsError([t])[0].warnings}),(0,m.A)(this,"isFieldsTouched",function(){n.warningUnhooked();for(var e,t=arguments.length,r=Array(t),o=0;o0&&void 0!==arguments[0]?arguments[0]:{},r=new eA,o=n.getFieldEntities(!0);o.forEach(function(e){var t=e.props.initialValue,n=e.getNamePath();if(void 0!==t){var o=r.get(n)||new Set;o.add({entity:e,value:t}),r.set(n,o)}}),t.entities?e=t.entities:t.namePathList?(e=[],t.namePathList.forEach(function(t){var n,o=r.get(t);o&&(n=e).push.apply(n,(0,u.A)((0,u.A)(o).map(function(e){return e.entity})))})):e=o,e.forEach(function(e){if(void 0!==e.props.initialValue){var o=e.getNamePath();if(void 0!==n.getInitialValue(o))(0,b.Ay)(!1,"Form already set 'initialValues' with path '".concat(o.join("."),"'. Field can not overwrite it."));else{var i=r.get(o);if(i&&i.size>1)(0,b.Ay)(!1,"Multiple Field with path '".concat(o.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(i){var a=n.getFieldValue(o);e.isListField()||t.skipExist&&void 0!==a||n.updateStore((0,J.A)(n.store,o,(0,u.A)(i)[0].value))}}}})}),(0,m.A)(this,"resetFields",function(e){n.warningUnhooked();var t=n.store;if(!e){n.updateStore((0,J.h)(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(t,null,{type:"reset"}),n.notifyWatch();return}var r=e.map(ei);r.forEach(function(e){var t=n.getInitialValue(e);n.updateStore((0,J.A)(n.store,e,t))}),n.resetWithFieldInitialValue({namePathList:r}),n.notifyObservers(t,r,{type:"reset"}),n.notifyWatch(r)}),(0,m.A)(this,"setFields",function(e){n.warningUnhooked();var t=n.store,r=[];e.forEach(function(e){var o=e.name,i=(0,a.A)(e,ex),c=ei(o);r.push(c),"value"in i&&n.updateStore((0,J.A)(n.store,c,i.value)),n.notifyObservers(t,[c],{type:"setField",data:e})}),n.notifyWatch(r)}),(0,m.A)(this,"getFields",function(){return n.getFieldEntities(!0).map(function(e){var t=e.getNamePath(),r=e.getMeta(),o=(0,l.A)((0,l.A)({},r),{},{name:t,value:n.getFieldValue(t)});return Object.defineProperty(o,"originRCField",{value:!0}),o})}),(0,m.A)(this,"initEntityValue",function(e){var t=e.props.initialValue;if(void 0!==t){var r=e.getNamePath();void 0===(0,eo.A)(n.store,r)&&n.updateStore((0,J.A)(n.store,r,t))}}),(0,m.A)(this,"isMergedPreserve",function(e){var t=void 0!==e?e:n.preserve;return null==t||t}),(0,m.A)(this,"registerField",function(e){n.fieldEntities.push(e);var t=e.getNamePath();if(n.notifyWatch([t]),void 0!==e.props.initialValue){var r=n.store;n.resetWithFieldInitialValue({entities:[e],skipExist:!0}),n.notifyObservers(r,[e.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(r,o){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(t){return t!==e}),!n.isMergedPreserve(o)&&(!r||i.length>1)){var a=r?void 0:n.getInitialValue(t);if(t.length&&n.getFieldValue(t)!==a&&n.fieldEntities.every(function(e){return!es(e.getNamePath(),t)})){var c=n.store;n.updateStore((0,J.A)(c,t,a,!0)),n.notifyObservers(c,[t],{type:"remove"}),n.triggerDependenciesUpdate(c,t)}}n.notifyWatch([t])}}),(0,m.A)(this,"dispatch",function(e){switch(e.type){case"updateValue":var t=e.namePath,r=e.value;n.updateValue(t,r);break;case"validateField":var o=e.namePath,i=e.triggerName;n.validateFields([o],{triggerName:i})}}),(0,m.A)(this,"notifyObservers",function(e,t,r){if(n.subscribable){var o=(0,l.A)((0,l.A)({},r),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(n){(0,n.onStoreChange)(e,t,o)})}else n.forceRootUpdate()}),(0,m.A)(this,"triggerDependenciesUpdate",function(e,t){var r=n.getDependencyChildrenFields(t);return r.length&&n.validateFields(r),n.notifyObservers(e,r,{type:"dependenciesUpdate",relatedFields:[t].concat((0,u.A)(r))}),r}),(0,m.A)(this,"updateValue",function(e,t){var r=ei(e),o=n.store;n.updateStore((0,J.A)(n.store,r,t)),n.notifyObservers(o,[r],{type:"valueUpdate",source:"internal"}),n.notifyWatch([r]);var i=n.triggerDependenciesUpdate(o,r),a=n.callbacks.onValuesChange;a&&a(ea(n.store,[r]),n.getFieldsValue()),n.triggerOnFieldsChange([r].concat((0,u.A)(i)))}),(0,m.A)(this,"setFieldsValue",function(e){n.warningUnhooked();var t=n.store;if(e){var r=(0,J.h)(n.store,e);n.updateStore(r)}n.notifyObservers(t,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),(0,m.A)(this,"setFieldValue",function(e,t){n.setFields([{name:e,value:t,errors:[],warnings:[]}])}),(0,m.A)(this,"getDependencyChildrenFields",function(e){var t=new Set,r=[],o=new eA;return n.getFieldEntities().forEach(function(e){(e.props.dependencies||[]).forEach(function(t){var n=ei(t);o.update(n,function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Set;return t.add(e),t})})}),!function e(n){(o.get(n)||new Set).forEach(function(n){if(!t.has(n)){t.add(n);var o=n.getNamePath();n.isFieldDirty()&&o.length&&(r.push(o),e(o))}})}(e),r}),(0,m.A)(this,"triggerOnFieldsChange",function(e,t){var r=n.callbacks.onFieldsChange;if(r){var o=n.getFields();if(t){var i=new eA;t.forEach(function(e){var t=e.name,n=e.errors;i.set(t,n)}),o.forEach(function(e){e.errors=i.get(e.name)||e.errors})}var a=o.filter(function(t){return ec(e,t.name)});a.length&&r(a,o)}}),(0,m.A)(this,"validateFields",function(e,t){n.warningUnhooked(),Array.isArray(e)||"string"==typeof e||"string"==typeof t?(a=e,c=t):c=e;var r,o,i,a,c,s=!!a,f=s?a.map(ei):[],d=[],h=String(Date.now()),g=new Set,p=c||{},m=p.recursive,v=p.dirty;n.getFieldEntities(!0).forEach(function(e){if((s||f.push(e.getNamePath()),e.props.rules&&e.props.rules.length)&&(!v||e.isFieldDirty())){var t=e.getNamePath();if(g.add(t.join(h)),!s||ec(f,t,m)){var r=e.validateRules((0,l.A)({validateMessages:(0,l.A)((0,l.A)({},Q),n.validateMessages)},c));d.push(r.then(function(){return{name:t,errors:[],warnings:[]}}).catch(function(e){var n,r=[],o=[];return(null==(n=e.forEach)||n.call(e,function(e){var t=e.rule.warningOnly,n=e.errors;t?o.push.apply(o,(0,u.A)(n)):r.push.apply(r,(0,u.A)(n))}),r.length)?Promise.reject({name:t,errors:r,warnings:o}):{name:t,errors:r,warnings:o}}))}}});var y=(r=!1,o=d.length,i=[],d.length?new Promise(function(e,t){d.forEach(function(n,a){n.catch(function(e){return r=!0,e}).then(function(n){o-=1,i[a]=n,o>0||(r&&t(i),e(i))})})}):Promise.resolve([]));n.lastValidatePromise=y,y.catch(function(e){return e}).then(function(e){var t=e.map(function(e){return e.name});n.notifyObservers(n.store,t,{type:"validateFinish"}),n.triggerOnFieldsChange(t,e)});var b=y.then(function(){return n.lastValidatePromise===y?Promise.resolve(n.getFieldsValue(f)):Promise.reject([])}).catch(function(e){var t=e.filter(function(e){return e&&e.errors.length});return Promise.reject({values:n.getFieldsValue(f),errorFields:t,outOfDate:n.lastValidatePromise!==y})});b.catch(function(e){return e});var A=f.filter(function(e){return g.has(e.join(h))});return n.triggerOnFieldsChange(A),b}),(0,m.A)(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(e){var t=n.callbacks.onFinish;if(t)try{t(e)}catch(e){console.error(e)}}).catch(function(e){var t=n.callbacks.onFinishFailed;t&&t(e)})}),this.forceRootUpdate=t});let ew=function(e){var t=o.useRef(),n=o.useState({}),r=(0,ev.A)(n,2)[1];return t.current||(e?t.current=e:t.current=new eE(function(){r({})}).getForm()),[t.current]};var eC=o.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),eS=function(e){var t=e.validateMessages,n=e.onFormChange,r=e.onFormFinish,i=e.children,a=o.useContext(eC),c=o.useRef({});return o.createElement(eC.Provider,{value:(0,l.A)((0,l.A)({},a),{},{validateMessages:(0,l.A)((0,l.A)({},a.validateMessages),t),triggerFormChange:function(e,t){n&&n(e,{changedFields:t,forms:c.current}),a.triggerFormChange(e,t)},triggerFormFinish:function(e,t){r&&r(e,{values:t,forms:c.current}),a.triggerFormFinish(e,t)},registerForm:function(e,t){e&&(c.current=(0,l.A)((0,l.A)({},c.current),{},(0,m.A)({},e,t))),a.registerForm(e,t)},unregisterForm:function(e){var t=(0,l.A)({},c.current);delete t[e],c.current=t,a.unregisterForm(e)}})},i)},eO=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"];function ek(e){try{return JSON.stringify(e)}catch(e){return Math.random()}}var ej=function(){};let eT=function(){for(var e=arguments.length,t=Array(e),n=0;n1?t-1:0),o=1;o{"use strict";n.d(t,{A9:()=>p,H3:()=>g,K4:()=>u,Xf:()=>l,f3:()=>d,xK:()=>f});var r=n(86608),o=n(12115),i=n(52270),a=n(22801),c=n(10337),s=Number(o.version.split(".")[0]),l=function(e,t){"function"==typeof e?e(t):"object"===(0,r.A)(e)&&e&&"current"in e&&(e.current=t)},u=function(){for(var e=arguments.length,t=Array(e),n=0;n=19)return!0;var t,n,r=(0,i.isMemo)(e)?e.type.type:e.type;return("function"!=typeof r||!!(null!=(t=r.prototype)&&t.render)||r.$$typeof===i.ForwardRef)&&("function"!=typeof e||!!(null!=(n=e.prototype)&&n.render)||e.$$typeof===i.ForwardRef)};function h(e){return(0,o.isValidElement)(e)&&!(0,c.A)(e)}var g=function(e){return h(e)&&d(e)},p=function(e){return e&&h(e)?e.props.propertyIsEnumerable("ref")?e.props.ref:e.ref:null}},75659:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(12115),o=n(52596),i=n(61706),a=n(8396),c=n(37930);let s={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1},l=e=>{let{icon:t,className:n,onClick:o,style:i,primaryColor:a,secondaryColor:l,...u}=e,f=r.useRef(null),d=s;if(a&&(d={primaryColor:a,secondaryColor:l||(0,c.Em)(a)}),(0,c.lf)(f),(0,c.$e)((0,c.P3)(t),"icon should be icon definiton, but got ".concat(t)),!(0,c.P3)(t))return null;let h=t;return h&&"function"==typeof h.icon&&(h={...h,icon:h.icon(d.primaryColor,d.secondaryColor)}),(0,c.cM)(h.icon,"svg-".concat(h.name),{className:n,onClick:o,style:i,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...u,ref:f})};function u(e){let[t,n]=(0,c.al)(e);return l.setTwoToneColors({primaryColor:t,secondaryColor:n})}function f(){return(f=Object.assign?Object.assign.bind():function(e){for(var t=1;t{let{className:n,icon:i,spin:s,rotate:u,tabIndex:d,onClick:h,twoToneColor:g,...p}=e,{prefixCls:m="anticon",rootClassName:v}=r.useContext(a.A),y=(0,o.$)(v,m,{["".concat(m,"-").concat(i.name)]:!!i.name,["".concat(m,"-spin")]:!!s||"loading"===i.name},n),b=d;void 0===b&&h&&(b=-1);let[A,x]=(0,c.al)(g);return r.createElement("span",f({role:"img","aria-label":i.name},p,{ref:t,tabIndex:b,onClick:h,className:y}),r.createElement(l,{icon:i,primaryColor:A,secondaryColor:x,style:u?{msTransform:"rotate(".concat(u,"deg)"),transform:"rotate(".concat(u,"deg)")}:void 0}))});d.getTwoToneColor=function(){let e=l.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor},d.setTwoToneColor=u;let h=d},79453:(e,t,n)=>{"use strict";n.d(t,{A:()=>h});var r=n(68057),o=n(13418),i=n(83829),a=n(50907),c=n(15549),s=n(60872);let l=(e,t)=>new s.Y(e).setA(t).toRgbString(),u=(e,t)=>new s.Y(e).darken(t).toHexString(),f=e=>{let t=(0,r.cM)(e);return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[4],6:t[5],7:t[6],8:t[4],9:t[5],10:t[6]}},d=(e,t)=>{let n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:l(r,.88),colorTextSecondary:l(r,.65),colorTextTertiary:l(r,.45),colorTextQuaternary:l(r,.25),colorFill:l(r,.15),colorFillSecondary:l(r,.06),colorFillTertiary:l(r,.04),colorFillQuaternary:l(r,.02),colorBgSolid:l(r,1),colorBgSolidHover:l(r,.75),colorBgSolidActive:l(r,.95),colorBgLayout:u(n,4),colorBgContainer:u(n,0),colorBgElevated:u(n,0),colorBgSpotlight:l(r,.85),colorBgBlur:"transparent",colorBorder:u(n,15),colorBorderSecondary:u(n,6)}};function h(e){r.uy.pink=r.uy.magenta,r.UA.pink=r.UA.magenta;let t=Object.keys(o.r).map(t=>{let n=e[t]===r.uy[t]?r.UA[t]:(0,r.cM)(e[t]);return Array.from({length:10},()=>1).reduce((e,r,o)=>(e["".concat(t,"-").concat(o+1)]=n[o],e["".concat(t).concat(o+1)]=n[o],e),{})}).reduce((e,t)=>e=Object.assign(Object.assign({},e),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e),t),(0,i.A)(e,{generateColorPalettes:f,generateNeutralColorPalettes:d})),(0,c.A)(e.fontSize)),function(e){let{sizeUnit:t,sizeStep:n}=e;return{sizeXXL:t*(n+8),sizeXL:t*(n+4),sizeLG:t*(n+2),sizeMD:t*(n+1),sizeMS:t*n,size:t*n,sizeSM:t*(n-1),sizeXS:t*(n-2),sizeXXS:t*(n-3)}}(e)),(0,a.A)(e)),function(e){let t,n,r,o,{motionUnit:i,motionBase:a,borderRadius:c,lineWidth:s}=e;return Object.assign({motionDurationFast:"".concat((a+i).toFixed(1),"s"),motionDurationMid:"".concat((a+2*i).toFixed(1),"s"),motionDurationSlow:"".concat((a+3*i).toFixed(1),"s"),lineWidthBold:s+1},(t=c,n=c,r=c,o=c,c<6&&c>=5?t=c+1:c<16&&c>=6?t=c+2:c>=16&&(t=16),c<7&&c>=5?n=4:c<8&&c>=7?n=5:c<14&&c>=8?n=6:c<16&&c>=14?n=7:c>=16&&(n=8),c<6&&c>=2?r=1:c>=6&&(r=2),c>4&&c<8?o=4:c>=8&&(o=6),{borderRadius:c,borderRadiusXS:r,borderRadiusSM:n,borderRadiusLG:t,borderRadiusOuter:o}))}(e))}},79630:(e,t,n)=>{"use strict";function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;tr})},80163:(e,t,n)=>{"use strict";n.d(t,{Ob:()=>a,fx:()=>i,zv:()=>o});var r=n(12115);function o(e){return e&&r.isValidElement(e)&&e.type===r.Fragment}let i=(e,t,n)=>r.isValidElement(e)?r.cloneElement(e,"function"==typeof n?n(e.props||{}):n):t;function a(e,t){return i(e,e,t)}},80227:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(86608),o=n(9587);let i=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=new Set;return function e(t,a){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,s=i.has(t);if((0,o.Ay)(!s,"Warning: There may be circular references"),s)return!1;if(t===a)return!0;if(n&&c>1)return!1;i.add(t);var l=c+1;if(Array.isArray(t)){if(!Array.isArray(a)||t.length!==a.length)return!1;for(var u=0;u{"use strict";n.d(t,{aF:()=>eu,Kq:()=>p,Ay:()=>ef});var r=n(40419),o=n(27061),i=n(21858),a=n(86608),c=n(29300),s=n.n(c),l=n(41197),u=n(74686),f=n(12115),d=n(20235),h=["children"],g=f.createContext({});function p(e){var t=e.children,n=(0,d.A)(e,h);return f.createElement(g.Provider,{value:n},t)}var m=n(30857),v=n(28383),y=n(38289),b=n(9424),A=function(e){(0,y.A)(n,e);var t=(0,b.A)(n);function n(){return(0,m.A)(this,n),t.apply(this,arguments)}return(0,v.A)(n,[{key:"render",value:function(){return this.props.children}}]),n}(f.Component),x=n(11719),E=n(28248),w=n(18885),C="none",S="appear",O="enter",k="leave",j="none",T="prepare",P="start",F="active",M="prepared",R=n(71367);function N(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}var _=function(e,t){var n={animationend:N("Animation","AnimationEnd"),transitionend:N("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}((0,R.A)(),"undefined"!=typeof window?window:{}),I={};(0,R.A)()&&(I=document.createElement("div").style);var B={};function L(e){if(B[e])return B[e];var t=_[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o1&&void 0!==arguments[1]?arguments[1]:2;t();var i=(0,G.A)(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i},t]};var X=[T,P,F,"end"],Y=[T,M];function Q(e){return e===F||"end"===e}let J=function(e,t,n){var r=(0,E.A)(j),o=(0,i.A)(r,2),a=o[0],c=o[1],s=K(),l=(0,i.A)(s,2),u=l[0],d=l[1],h=t?Y:X;return $(function(){if(a!==j&&"end"!==a){var e=h.indexOf(a),t=h[e+1],r=n(a);!1===r?c(t,!0):t&&u(function(e){function n(){e.isCanceled()||c(t,!0)}!0===r?n():Promise.resolve(r).then(n)})}},[e,a]),f.useEffect(function(){return function(){d()}},[]),[function(){c(T,!0)},a]},Z=function(e){var t=e;"object"===(0,a.A)(e)&&(t=e.transitionSupport);var n=f.forwardRef(function(e,n){var a=e.visible,c=void 0===a||a,d=e.removeOnLeave,h=void 0===d||d,p=e.forceRender,m=e.children,v=e.motionName,y=e.leavedClassName,b=e.eventProps,j=f.useContext(g).motion,R=!!(e.motionName&&t&&!1!==j),N=(0,f.useRef)(),_=(0,f.useRef)(),I=function(e,t,n,a){var c,s,l,u=a.motionEnter,d=void 0===u||u,h=a.motionAppear,g=void 0===h||h,p=a.motionLeave,m=void 0===p||p,v=a.motionDeadline,y=a.motionLeaveImmediately,b=a.onAppearPrepare,A=a.onEnterPrepare,j=a.onLeavePrepare,R=a.onAppearStart,N=a.onEnterStart,_=a.onLeaveStart,I=a.onAppearActive,B=a.onEnterActive,L=a.onLeaveActive,H=a.onAppearEnd,z=a.onEnterEnd,D=a.onLeaveEnd,U=a.onVisibleChanged,V=(0,E.A)(),q=(0,i.A)(V,2),G=q[0],K=q[1],X=(c=f.useReducer(function(e){return e+1},0),s=(0,i.A)(c,2)[1],l=f.useRef(C),[(0,w.A)(function(){return l.current}),(0,w.A)(function(e){l.current="function"==typeof e?e(l.current):e,s()})]),Y=(0,i.A)(X,2),Z=Y[0],ee=Y[1],et=(0,E.A)(null),en=(0,i.A)(et,2),er=en[0],eo=en[1],ei=Z(),ea=(0,f.useRef)(!1),ec=(0,f.useRef)(null),es=(0,f.useRef)(!1);function el(){ee(C),eo(null,!0)}var eu=(0,x._q)(function(e){var t,r=Z();if(r!==C){var o=n();if(!e||e.deadline||e.target===o){var i=es.current;r===S&&i?t=null==H?void 0:H(o,e):r===O&&i?t=null==z?void 0:z(o,e):r===k&&i&&(t=null==D?void 0:D(o,e)),i&&!1!==t&&el()}}}),ef=W(eu),ed=(0,i.A)(ef,1)[0],eh=function(e){switch(e){case S:return(0,r.A)((0,r.A)((0,r.A)({},T,b),P,R),F,I);case O:return(0,r.A)((0,r.A)((0,r.A)({},T,A),P,N),F,B);case k:return(0,r.A)((0,r.A)((0,r.A)({},T,j),P,_),F,L);default:return{}}},eg=f.useMemo(function(){return eh(ei)},[ei]),ep=J(ei,!e,function(e){if(e===T){var t,r=eg[T];return!!r&&r(n())}return ey in eg&&eo((null==(t=eg[ey])?void 0:t.call(eg,n(),null))||null),ey===F&&ei!==C&&(ed(n()),v>0&&(clearTimeout(ec.current),ec.current=setTimeout(function(){eu({deadline:!0})},v))),ey===M&&el(),!0}),em=(0,i.A)(ep,2),ev=em[0],ey=em[1];es.current=Q(ey);var eb=(0,f.useRef)(null);$(function(){if(!ea.current||eb.current!==t){K(t);var n,r=ea.current;ea.current=!0,!r&&t&&g&&(n=S),r&&t&&d&&(n=O),(r&&!t&&m||!r&&y&&!t&&m)&&(n=k);var o=eh(n);n&&(e||o[T])?(ee(n),ev()):ee(C),eb.current=t}},[t]),(0,f.useEffect)(function(){(ei!==S||g)&&(ei!==O||d)&&(ei!==k||m)||ee(C)},[g,d,m]),(0,f.useEffect)(function(){return function(){ea.current=!1,clearTimeout(ec.current)}},[]);var eA=f.useRef(!1);(0,f.useEffect)(function(){G&&(eA.current=!0),void 0!==G&&ei===C&&((eA.current||G)&&(null==U||U(G)),eA.current=!0)},[G,ei]);var ex=er;return eg[T]&&ey===P&&(ex=(0,o.A)({transition:"none"},ex)),[ei,ey,ex,null!=G?G:t]}(R,c,function(){try{return N.current instanceof HTMLElement?N.current:(0,l.Ay)(_.current)}catch(e){return null}},e),B=(0,i.A)(I,4),L=B[0],H=B[1],z=B[2],D=B[3],U=f.useRef(D);D&&(U.current=!0);var V=f.useCallback(function(e){N.current=e,(0,u.Xf)(n,e)},[n]),G=(0,o.A)((0,o.A)({},b),{},{visible:c});if(m)if(L===C)K=D?m((0,o.A)({},G),V):!h&&U.current&&y?m((0,o.A)((0,o.A)({},G),{},{className:y}),V):!p&&(h||y)?null:m((0,o.A)((0,o.A)({},G),{},{style:{display:"none"}}),V);else{H===T?X="prepare":Q(H)?X="active":H===P&&(X="start");var K,X,Y=q(v,"".concat(L,"-").concat(X));K=m((0,o.A)((0,o.A)({},G),{},{className:s()(q(v,L),(0,r.A)((0,r.A)({},Y,Y&&X),v,"string"==typeof v)),style:z}),V)}else K=null;return f.isValidElement(K)&&(0,u.f3)(K)&&((0,u.A9)(K)||(K=f.cloneElement(K,{ref:V}))),f.createElement(A,{ref:_},K)});return n.displayName="CSSMotion",n}(D);var ee=n(79630),et=n(55227),en="keep",er="remove",eo="removed";function ei(e){var t;return t=e&&"object"===(0,a.A)(e)&&"key"in e?e:{key:e},(0,o.A)((0,o.A)({},t),{},{key:String(t.key)})}function ea(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(ei)}var ec=["component","children","onVisibleChanged","onAllRemoved"],es=["status"],el=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];let eu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Z,n=function(e){(0,y.A)(i,e);var n=(0,b.A)(i);function i(){var e;(0,m.A)(this,i);for(var t=arguments.length,a=Array(t),c=0;c0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=[],r=0,i=t.length,a=ea(e),c=ea(t);a.forEach(function(e){for(var t=!1,a=r;a1}).forEach(function(e){(n=n.filter(function(t){var n=t.key,r=t.status;return n!==e||r!==er})).forEach(function(t){t.key===e&&(t.status=en)})}),n})(r,ea(n)).filter(function(e){var t=r.find(function(t){var n=t.key;return e.key===n});return!t||t.status!==eo||e.status!==er})}}}]),i}(f.Component);return(0,r.A)(n,"defaultProps",{component:"div"}),n}(D),ef=Z},83829:(e,t,n)=>{"use strict";n.d(t,{A:()=>o});var r=n(60872);function o(e,t){let{generateColorPalettes:n,generateNeutralColorPalettes:o}=t,{colorSuccess:i,colorWarning:a,colorError:c,colorInfo:s,colorPrimary:l,colorBgBase:u,colorTextBase:f}=e,d=n(l),h=n(i),g=n(a),p=n(c),m=n(s),v=o(u,f),y=n(e.colorLink||e.colorInfo),b=new r.Y(p[1]).mix(new r.Y(p[3]),50).toHexString();return Object.assign(Object.assign({},v),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:h[1],colorSuccessBgHover:h[2],colorSuccessBorder:h[3],colorSuccessBorderHover:h[4],colorSuccessHover:h[4],colorSuccess:h[6],colorSuccessActive:h[7],colorSuccessTextHover:h[8],colorSuccessText:h[9],colorSuccessTextActive:h[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:b,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:m[1],colorInfoBgHover:m[2],colorInfoBorder:m[3],colorInfoBorderHover:m[4],colorInfoHover:m[4],colorInfo:m[6],colorInfoActive:m[7],colorInfoTextHover:m[8],colorInfoText:m[9],colorInfoTextActive:m[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new r.Y("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}},83855:(e,t,n)=>{"use strict";n.d(t,{A:()=>a,l:()=>i});var r=n(38194),o=n(4697);function i(e,t){for(var n="",r=0;r{"use strict";n.d(t,{A:()=>c});var r=n(79630),o=n(12115),i=n(20083),a=n(35030);let c=o.forwardRef(function(e,t){return o.createElement(a.A,(0,r.A)({},e,{ref:t,icon:i.A}))})},85051:(e,t,n)=>{"use strict";n.d(t,{k:()=>S,A:()=>k});var r=n(12115),o=n(84630),i=n(51754),a=n(63583),c=n(66383),s=n(29300),l=n.n(s),u=n(9130),f=n(93666),d=n(57845),h=n(8530),g=n(70042),p=n(25374),m=n(61051);let v=()=>{let{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:o,mergedOkCancel:i,rootPrefixCls:a,close:c,onCancel:s,onConfirm:l}=(0,r.useContext)(m.V);return i?r.createElement(p.A,{isSilent:o,actionFn:s,close:function(){for(var e=arguments.length,t=Array(e),n=0;n{let{autoFocusButton:e,close:t,isSilent:n,okButtonProps:o,rootPrefixCls:i,okTextLocale:a,okType:c,onConfirm:s,onOk:l}=(0,r.useContext)(m.V);return r.createElement(p.A,{isSilent:n,type:c||"primary",actionFn:l,close:function(){for(var e=arguments.length,n=Array(e),r=0;r(e=>{let{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:c,fontHeight:s,confirmBodyPadding:l}=e,u="".concat(t,"-confirm");return{[u]:{"&-rtl":{direction:"rtl"},["".concat(e.antCls,"-modal-header")]:{display:"none"},["".concat(u,"-body-wrapper")]:Object.assign({},(0,E.t6)()),["&".concat(t," ").concat(t,"-body")]:{padding:l},["".concat(u,"-body")]:{display:"flex",flexWrap:"nowrap",alignItems:"start",["> ".concat(e.iconCls)]:{flex:"none",fontSize:o,marginInlineEnd:e.confirmIconMarginInlineEnd,marginTop:e.calc(e.calc(s).sub(o).equal()).div(2).equal()},["&-has-title > ".concat(e.iconCls)]:{marginTop:e.calc(e.calc(c).sub(o).equal()).div(2).equal()}},["".concat(u,"-paragraph")]:{display:"flex",flexDirection:"column",flex:"auto",rowGap:e.marginXS,maxWidth:"calc(100% - ".concat((0,A.zA)(e.marginSM),")")},["".concat(e.iconCls," + ").concat(u,"-paragraph")]:{maxWidth:"calc(100% - ".concat((0,A.zA)(e.calc(e.modalConfirmIconSize).add(e.marginSM).equal()),")")},["".concat(u,"-title")]:{color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:n,lineHeight:r},["".concat(u,"-content")]:{color:e.colorText,fontSize:i,lineHeight:a},["".concat(u,"-btns")]:{textAlign:"end",marginTop:e.confirmBtnsMarginTop,["".concat(e.antCls,"-btn + ").concat(e.antCls,"-btn")]:{marginBottom:0,marginInlineStart:e.marginXS}}},["".concat(u,"-error ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorError},["".concat(u,"-warning ").concat(u,"-body > ").concat(e.iconCls,",\n ").concat(u,"-confirm ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorWarning},["".concat(u,"-info ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorInfo},["".concat(u,"-success ").concat(u,"-body > ").concat(e.iconCls)]:{color:e.colorSuccess}}})((0,x.FY)(e)),x.cH,{order:-1e3});var C=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let S=e=>{let{prefixCls:t,icon:n,okText:s,cancelText:u,confirmPrefixCls:f,type:d,okCancel:g,footer:p,locale:b}=e,A=C(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]),x=n;if(!n&&null!==n)switch(d){case"info":x=r.createElement(c.A,null);break;case"success":x=r.createElement(o.A,null);break;case"error":x=r.createElement(i.A,null);break;default:x=r.createElement(a.A,null)}let E=null!=g?g:"confirm"===d,S=null!==e.autoFocusButton&&(e.autoFocusButton||"ok"),[O]=(0,h.A)("Modal"),k=b||O,j=s||(E?null==k?void 0:k.okText:null==k?void 0:k.justOkText),T=u||(null==k?void 0:k.cancelText),P=r.useMemo(()=>Object.assign({autoFocusButton:S,cancelTextLocale:T,okTextLocale:j,mergedOkCancel:E},A),[S,T,j,E,A]),F=r.createElement(r.Fragment,null,r.createElement(v,null),r.createElement(y,null)),M=void 0!==e.title&&null!==e.title,R="".concat(f,"-body");return r.createElement("div",{className:"".concat(f,"-body-wrapper")},r.createElement("div",{className:l()(R,{["".concat(R,"-has-title")]:M})},x,r.createElement("div",{className:"".concat(f,"-paragraph")},M&&r.createElement("span",{className:"".concat(f,"-title")},e.title),r.createElement("div",{className:"".concat(f,"-content")},e.content))),void 0===p||"function"==typeof p?r.createElement(m.i,{value:P},r.createElement("div",{className:"".concat(f,"-btns")},"function"==typeof p?p(F,{OkBtn:y,CancelBtn:v}):F)):p,r.createElement(w,{prefixCls:t}))},O=e=>{let{close:t,zIndex:n,maskStyle:o,direction:i,prefixCls:a,wrapClassName:c,rootPrefixCls:s,bodyStyle:d,closable:h=!1,onConfirm:p,styles:m,title:v}=e,y="".concat(a,"-confirm"),A=e.width||416,x=e.style||{},E=void 0===e.mask||e.mask,w=void 0!==e.maskClosable&&e.maskClosable,C=l()(y,"".concat(y,"-").concat(e.type),{["".concat(y,"-rtl")]:"rtl"===i},e.className),[,O]=(0,g.Ay)(),k=r.useMemo(()=>void 0!==n?n:O.zIndexPopupBase+u.jH,[n,O]);return r.createElement(b.A,Object.assign({},e,{className:C,wrapClassName:l()({["".concat(y,"-centered")]:!!e.centered},c),onCancel:()=>{null==t||t({triggerCancel:!0}),null==p||p(!1)},title:v,footer:null,transitionName:(0,f.b)(s||"","zoom",e.transitionName),maskTransitionName:(0,f.b)(s||"","fade",e.maskTransitionName),mask:E,maskClosable:w,style:x,styles:Object.assign({body:d,mask:o},m),width:A,zIndex:k,closable:h}),r.createElement(S,Object.assign({},e,{confirmPrefixCls:y})))},k=e=>{let{rootPrefixCls:t,iconPrefixCls:n,direction:o,theme:i}=e;return r.createElement(d.Ay,{prefixCls:t,iconPrefixCls:n,direction:o,theme:i},r.createElement(O,Object.assign({},e)))}},85382:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=function(){for(var e=arguments.length,t=Array(e),n=0;n{e&&Object.keys(e).forEach(t=>{void 0!==e[t]&&(r[t]=e[t])})}),r}},85440:(e,t,n)=>{"use strict";n.d(t,{BD:()=>p,m6:()=>g});var r=n(27061),o=n(71367),i=n(3201),a="data-rc-order",c="data-rc-priority",s=new Map;function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):"rc-util-key"}function u(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function f(e){return Array.from((s.get(e)||e).children).filter(function(e){return"STYLE"===e.tagName})}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!(0,o.A)())return null;var n=t.csp,r=t.prepend,i=t.priority,s=void 0===i?0:i,l="queue"===r?"prependQueue":r?"prepend":"append",d="prependQueue"===l,h=document.createElement("style");h.setAttribute(a,l),d&&s&&h.setAttribute(c,"".concat(s)),null!=n&&n.nonce&&(h.nonce=null==n?void 0:n.nonce),h.innerHTML=e;var g=u(t),p=g.firstChild;if(r){if(d){var m=(t.styles||f(g)).filter(function(e){return!!["prepend","prependQueue"].includes(e.getAttribute(a))&&s>=Number(e.getAttribute(c)||0)});if(m.length)return g.insertBefore(h,m[m.length-1].nextSibling),h}g.insertBefore(h,p)}else g.appendChild(h);return h}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=u(t);return(t.styles||f(n)).find(function(n){return n.getAttribute(l(t))===e})}function g(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=h(e,t);n&&u(t).removeChild(n)}function p(e,t){var n,o,a,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},g=u(c),p=f(g),m=(0,r.A)((0,r.A)({},c),{},{styles:p}),v=s.get(g);if(!v||!(0,i.A)(document,v)){var y=d("",m),b=y.parentNode;s.set(g,b),g.removeChild(y)}var A=h(t,m);if(A)return null!=(n=m.csp)&&n.nonce&&A.nonce!==(null==(o=m.csp)?void 0:o.nonce)&&(A.nonce=null==(a=m.csp)?void 0:a.nonce),A.innerHTML!==e&&(A.innerHTML=e),A;var x=d(e,m);return x.setAttribute(l(m),t),x}},85522:(e,t,n)=>{"use strict";function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,{A:()=>r})},85665:(e,t,n)=>{"use strict";n.d(t,{p9:()=>c});var r=n(99841),o=n(64717);let i=new r.Mo("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),a=new r.Mo("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),c=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],{antCls:n}=e,r="".concat(n,"-fade"),c=t?"&":"";return[(0,o.b)(r,i,a,e.motionDurationMid,t),{["\n ".concat(c).concat(r,"-enter,\n ").concat(c).concat(r,"-appear\n ")]:{opacity:0,animationTimingFunction:"linear"},["".concat(c).concat(r,"-leave")]:{animationTimingFunction:"linear"}}]}},85757:(e,t,n)=>{"use strict";n.d(t,{A:()=>a});var r=n(8357),o=n(99823),i=n(73632);function a(e){return function(e){if(Array.isArray(e))return(0,r.A)(e)}(e)||(0,o.A)(e)||(0,i.A)(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},86500:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r={items_per_page:"/ page",jump_to:"Go to",jump_to_confirm:"confirm",page:"Page",prev_page:"Previous Page",next_page:"Next Page",prev_5:"Previous 5 Pages",next_5:"Next 5 Pages",prev_3:"Previous 3 Pages",next_3:"Next 3 Pages",page_size:"Page Size"}},86608:(e,t,n)=>{"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}n.d(t,{A:()=>r})},88860:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var r=n(60872);function o(e){return e>=0&&e<=255}let i=function(e,t){let{r:n,g:i,b:a,a:c}=new r.Y(e).toRgb();if(c<1)return e;let{r:s,g:l,b:u}=new r.Y(t).toRgb();for(let e=.01;e<=1;e+=.01){let t=Math.round((n-s*(1-e))/e),c=Math.round((i-l*(1-e))/e),f=Math.round((a-u*(1-e))/e);if(o(t)&&o(c)&&o(f))return new r.Y({r:t,g:c,b:f,a:Math.round(100*e)/100}).toRgbString()}return new r.Y({r:n,g:i,b:a,a:1}).toRgbString()}},89450:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"}},93495:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n={};for(var r in e)if(({}).hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}n.d(t,{A:()=>r})},93666:(e,t,n)=>{"use strict";n.d(t,{A:()=>l,b:()=>s});var r=n(15982);let o=()=>({height:0,opacity:0}),i=e=>{let{scrollHeight:t}=e;return{height:t,opacity:1}},a=e=>({height:e?e.offsetHeight:0}),c=(e,t)=>(null==t?void 0:t.deadline)===!0||"height"===t.propertyName,s=(e,t,n)=>void 0!==n?n:"".concat(e,"-").concat(t),l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.yH;return{motionName:"".concat(e,"-motion-collapse"),onAppearStart:o,onEnterStart:o,onAppearActive:i,onEnterActive:i,onLeaveStart:a,onLeaveActive:o,onAppearEnd:c,onEnterEnd:c,onLeaveEnd:c,motionDeadline:500}}},93821:(e,t,n)=>{"use strict";n.d(t,{A:()=>c});var r=n(35145),o=n(99823),i=n(73632),a=n(916);function c(e){return(0,r.A)(e)||(0,o.A)(e)||(0,i.A)(e)||(0,a.A)()}},94134:(e,t,n)=>{"use strict";n.d(t,{L:()=>c,l:()=>s});var r=n(16025);let o=Object.assign({},r.A.Modal),i=[],a=()=>i.reduce((e,t)=>Object.assign(Object.assign({},e),t),r.A.Modal);function c(e){if(e){let t=Object.assign({},e);return i.push(t),o=a(),()=>{i=i.filter(e=>e!==t),o=a()}}o=Object.assign({},r.A.Modal)}function s(){return o}},94251:(e,t,n)=>{"use strict";function r(e,t,n,r,o,i,a){try{var c=e[i](a),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise(function(o,i){var a=e.apply(t,n);function c(e){r(a,o,i,c,s,"next",e)}function s(e){r(a,o,i,c,s,"throw",e)}c(void 0)})}}n.d(t,{A:()=>o})},94480:(e,t,n)=>{"use strict";n.d(t,{w:()=>g,O:()=>h});var r=n(12115),o=n(48776),i=n(44494),a=n(8530),c=n(98696),s=n(61051);let l=()=>{let{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=(0,r.useContext)(s.V);return r.createElement(c.Ay,Object.assign({onClick:n},e),t)};var u=n(37120);let f=()=>{let{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:o,onOk:i}=(0,r.useContext)(s.V);return r.createElement(c.Ay,Object.assign({},(0,u.DU)(n),{loading:e,onClick:i},t),o)};var d=n(94134);function h(e,t){return r.createElement("span",{className:"".concat(e,"-close-x")},t||r.createElement(o.A,{className:"".concat(e,"-close-icon")}))}let g=e=>{let t,{okText:n,okType:o="primary",cancelText:c,confirmLoading:u,onOk:h,onCancel:g,okButtonProps:p,cancelButtonProps:m,footer:v}=e,[y]=(0,a.A)("Modal",(0,d.l)()),b=n||(null==y?void 0:y.okText),A=c||(null==y?void 0:y.cancelText),x=r.useMemo(()=>({confirmLoading:u,okButtonProps:p,cancelButtonProps:m,okTextLocale:b,cancelTextLocale:A,okType:o,onOk:h,onCancel:g}),[u,p,m,b,A,o,h,g]);return"function"==typeof v||void 0===v?(t=r.createElement(r.Fragment,null,r.createElement(l,null),r.createElement(f,null)),"function"==typeof v&&(t=v(t,{OkBtn:f,CancelBtn:l})),t=r.createElement(s.i,{value:x},t)):t=v,r.createElement(i.X,{disabled:!1},t)}},96936:(e,t,n)=>{"use strict";n.d(t,{K6:()=>h,Ay:()=>p,RQ:()=>d});var r=n(12115),o=n(29300),i=n.n(o),a=n(63715),c=n(15982),s=n(9836);let l=(0,n(45431).OF)(["Space","Compact"],e=>[(e=>{let{componentCls:t}=e;return{[t]:{display:"inline-flex","&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"}}}})(e)],()=>({}),{resetStyle:!1});var u=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let f=r.createContext(null),d=(e,t)=>{let n=r.useContext(f),o=r.useMemo(()=>{if(!n)return"";let{compactDirection:r,isFirstItem:o,isLastItem:a}=n,c="vertical"===r?"-vertical-":"-";return i()("".concat(e,"-compact").concat(c,"item"),{["".concat(e,"-compact").concat(c,"first-item")]:o,["".concat(e,"-compact").concat(c,"last-item")]:a,["".concat(e,"-compact").concat(c,"item-rtl")]:"rtl"===t})},[e,t,n]);return{compactSize:null==n?void 0:n.compactSize,compactDirection:null==n?void 0:n.compactDirection,compactItemClassnames:o}},h=e=>{let{children:t}=e;return r.createElement(f.Provider,{value:null},t)},g=e=>{let{children:t}=e,n=u(e,["children"]);return r.createElement(f.Provider,{value:r.useMemo(()=>n,[n])},t)},p=e=>{let{getPrefixCls:t,direction:n}=r.useContext(c.QO),{size:o,direction:d,block:h,prefixCls:p,className:m,rootClassName:v,children:y}=e,b=u(e,["size","direction","block","prefixCls","className","rootClassName","children"]),A=(0,s.A)(e=>null!=o?o:e),x=t("space-compact",p),[E,w]=l(x),C=i()(x,w,{["".concat(x,"-rtl")]:"rtl"===n,["".concat(x,"-block")]:h,["".concat(x,"-vertical")]:"vertical"===d},m,v),S=r.useContext(f),O=(0,a.A)(y),k=r.useMemo(()=>O.map((e,t)=>{let n=(null==e?void 0:e.key)||"".concat(x,"-item-").concat(t);return r.createElement(g,{key:n,compactSize:A,compactDirection:d,isFirstItem:0===t&&(!S||(null==S?void 0:S.isFirstItem)),isLastItem:t===O.length-1&&(!S||(null==S?void 0:S.isLastItem))},e)}),[O,S,d,A,x]);return 0===O.length?null:E(r.createElement("div",Object.assign({className:C},b),k))}},97089:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(12115).createContext)({})},97314:(e,t)=>{"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),s=Symbol.for("react.context"),l=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),g=Symbol.for("react.lazy");Symbol.for("react.offscreen");Symbol.for("react.module.reference"),t.ForwardRef=u,t.isMemo=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case f:case d:return e;default:switch(e=e&&e.$$typeof){case l:case s:case u:case g:case h:case c:return e;default:return t}}case r:return t}}}(e)===h}},98696:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>J});var r=n(12115),o=n(29300),i=n.n(o),a=n(49172),c=n(17980),s=n(74686),l=n(47195),u=n(15982),f=n(44494),d=n(9836),h=n(96936),g=n(70042),p=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let m=r.createContext(void 0);var v=n(37120),y=n(51280),b=n(82870);let A=(0,r.forwardRef)((e,t)=>{let{className:n,style:o,children:a,prefixCls:c}=e,s=i()("".concat(c,"-icon"),n);return r.createElement("span",{ref:t,className:s,style:o},a)}),x=(0,r.forwardRef)((e,t)=>{let{prefixCls:n,className:o,style:a,iconClassName:c}=e,s=i()("".concat(n,"-loading-icon"),o);return r.createElement(A,{prefixCls:n,className:s,style:a,ref:t},r.createElement(y.A,{className:c}))}),E=()=>({width:0,opacity:0,transform:"scale(0)"}),w=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),C=e=>{let{prefixCls:t,loading:n,existIcon:o,className:a,style:c,mount:s}=e;return o?r.createElement(x,{prefixCls:t,className:a,style:c}):r.createElement(b.Ay,{visible:!!n,motionName:"".concat(t,"-loading-icon-motion"),motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:E,onAppearActive:w,onEnterStart:E,onEnterActive:w,onLeaveStart:w,onLeaveActive:E},(e,n)=>{let{className:o,style:s}=e,l=Object.assign(Object.assign({},c),s);return r.createElement(x,{prefixCls:t,className:i()(a,o),style:l,ref:n})})};var S=n(99841),O=n(18184),k=n(68495),j=n(61388),T=n(45431);let P=(e,t)=>({["> span, > ".concat(e)]:{"&:not(:last-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{["&, & > ".concat(e)]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}});var F=n(67302),M=n(31474);n(48804);var R=n(7884),N=n(88860);let _=e=>{let{paddingInline:t,onlyIconSize:n}=e;return(0,j.oX)(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},I=e=>{var t,n,r,o,i,a;let c=null!=(t=e.contentFontSize)?t:e.fontSize,s=null!=(n=e.contentFontSizeSM)?n:e.fontSize,l=null!=(r=e.contentFontSizeLG)?r:e.fontSizeLG,u=null!=(o=e.contentLineHeight)?o:(0,R.k)(c),f=null!=(i=e.contentLineHeightSM)?i:(0,R.k)(s),d=null!=(a=e.contentLineHeightLG)?a:(0,R.k)(l),h=((e,t)=>{let{r:n,g:r,b:o,a:i}=e.toRgb(),a=new M.Q1(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:.299*n+.587*r+.114*o>192})(new F.kf(e.colorBgSolid),"#fff")?"#000":"#fff";return Object.assign(Object.assign({},k.s.reduce((t,n)=>Object.assign(Object.assign({},t),{["".concat(n,"ShadowColor")]:"0 ".concat((0,S.zA)(e.controlOutlineWidth)," 0 ").concat((0,N.A)(e["".concat(n,"1")],e.colorBgContainer))}),{})),{fontWeight:400,iconGap:e.marginXS,defaultShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlTmpOutline),primaryShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.controlOutline),dangerShadow:"0 ".concat(e.controlOutlineWidth,"px 0 ").concat(e.colorErrorOutline),primaryColor:e.colorTextLightSolid,dangerColor:e.colorTextLightSolid,borderColorDisabled:e.colorBorder,defaultGhostColor:e.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:e.colorBgContainer,paddingInline:e.paddingContentHorizontal-e.lineWidth,paddingInlineLG:e.paddingContentHorizontal-e.lineWidth,paddingInlineSM:8-e.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:e.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:e.colorText,textTextHoverColor:e.colorText,textTextActiveColor:e.colorText,textHoverBg:e.colorFillTertiary,defaultColor:e.colorText,defaultBg:e.colorBgContainer,defaultBorderColor:e.colorBorder,defaultBorderColorDisabled:e.colorBorder,defaultHoverBg:e.colorBgContainer,defaultHoverColor:e.colorPrimaryHover,defaultHoverBorderColor:e.colorPrimaryHover,defaultActiveBg:e.colorBgContainer,defaultActiveColor:e.colorPrimaryActive,defaultActiveBorderColor:e.colorPrimaryActive,solidTextColor:h,contentFontSize:c,contentFontSizeSM:s,contentFontSizeLG:l,contentLineHeight:u,contentLineHeightSM:f,contentLineHeightLG:d,paddingBlock:Math.max((e.controlHeight-c*u)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-s*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-l*d)/2-e.lineWidth,0)})},B=(e,t,n)=>({["&:not(:disabled):not(".concat(e,"-disabled)")]:{"&:hover":t,"&:active":n}}),L=(e,t,n,r,o,i,a,c)=>({["&".concat(e,"-background-ghost")]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},B(e,Object.assign({background:t},a),Object.assign({background:t},c))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),H=(e,t,n,r)=>Object.assign(Object.assign({},(r&&["link","text"].includes(r)?e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:{cursor:"not-allowed",color:e.colorTextDisabled}}):e=>({["&:disabled, &".concat(e.componentCls,"-disabled")]:Object.assign({},(e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}))(e))}))(e)),B(e.componentCls,t,n)),z=(e,t,n,r,o)=>({["&".concat(e.componentCls,"-variant-solid")]:Object.assign({color:t,background:n},H(e,r,o))}),D=(e,t,n,r,o)=>({["&".concat(e.componentCls,"-variant-outlined, &").concat(e.componentCls,"-variant-dashed")]:Object.assign({borderColor:t,background:n},H(e,r,o))}),U=e=>({["&".concat(e.componentCls,"-variant-dashed")]:{borderStyle:"dashed"}}),V=(e,t,n,r)=>({["&".concat(e.componentCls,"-variant-filled")]:Object.assign({boxShadow:"none",background:t},H(e,n,r))}),q=(e,t,n,r,o)=>({["&".concat(e.componentCls,"-variant-").concat(n)]:Object.assign({color:t,boxShadow:"none"},H(e,r,o,n))}),W=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:c,buttonPaddingVertical:s,buttonIconOnlyFontSize:l}=e;return[{[t]:{fontSize:o,height:r,padding:"".concat((0,S.zA)(s)," ").concat((0,S.zA)(a)),borderRadius:i,["&".concat(n,"-icon-only")]:{width:r,[c]:{fontSize:l}}}},{["".concat(n).concat(n,"-circle").concat(t)]:{minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}},{["".concat(n).concat(n,"-round").concat(t)]:{borderRadius:e.controlHeight,["&:not(".concat(n,"-icon-only)")]:{paddingInline:e.buttonPaddingHorizontal}}}]},$=(0,T.OF)("Button",e=>{let t=_(e);return[(e=>{let{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,iconGap:c,calc:s}=e;return{[t]:{outline:"none",position:"relative",display:"inline-flex",gap:c,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:"".concat((0,S.zA)(e.lineWidth)," ").concat(e.lineType," transparent"),cursor:"pointer",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),userSelect:"none",touchAction:"manipulation",color:e.colorText,"&:disabled > *":{pointerEvents:"none"},["".concat(t,"-icon > svg")]:(0,O.Nk)(),"> a":{color:"currentColor"},"&:not(:disabled)":(0,O.K8)(e),["&".concat(t,"-two-chinese-chars::first-letter")]:{letterSpacing:"0.34em"},["&".concat(t,"-two-chinese-chars > *:not(").concat(n,")")]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},["&".concat(t,"-icon-only")]:{paddingInline:0,["&".concat(t,"-compact-item")]:{flex:"none"}},["&".concat(t,"-loading")]:{opacity:o,cursor:"default"},["".concat(t,"-loading-icon")]:{transition:["width","opacity","margin"].map(e=>"".concat(e," ").concat(i," ").concat(a)).join(",")},["&:not(".concat(t,"-icon-end)")]:{["".concat(t,"-loading-icon-motion")]:{"&-appear-start, &-enter-start":{marginInlineEnd:s(c).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:s(c).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",["".concat(t,"-loading-icon-motion")]:{"&-appear-start, &-enter-start":{marginInlineStart:s(c).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:s(c).mul(-1).equal()}}}}}})(t),(e=>W((0,j.oX)(e,{fontSize:e.contentFontSize}),e.componentCls))(t),(e=>W((0,j.oX)(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM}),"".concat(e.componentCls,"-sm")))(t),(e=>W((0,j.oX)(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG}),"".concat(e.componentCls,"-lg")))(t),(e=>{let{componentCls:t}=e;return{[t]:{["&".concat(t,"-block")]:{width:"100%"}}}})(t),(e=>{let{componentCls:t}=e;return Object.assign({["".concat(t,"-color-default")]:(e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},z(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),U(e)),V(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),L(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),q(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})))(e),["".concat(t,"-color-primary")]:(e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},D(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),U(e)),V(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),q(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),q(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),L(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})))(e),["".concat(t,"-color-dangerous")]:(e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},z(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),D(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),U(e)),V(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),q(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),q(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),L(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})))(e),["".concat(t,"-color-link")]:(e=>Object.assign(Object.assign({},q(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),L(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})))(e)},(e=>{let{componentCls:t}=e;return k.s.reduce((n,r)=>{let o=e["".concat(r,"6")],i=e["".concat(r,"1")],a=e["".concat(r,"5")],c=e["".concat(r,"2")],s=e["".concat(r,"3")],l=e["".concat(r,"7")];return Object.assign(Object.assign({},n),{["&".concat(t,"-color-").concat(r)]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:o,boxShadow:e["".concat(r,"ShadowColor")]},z(e,e.colorTextLightSolid,o,{background:a},{background:l})),D(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:l,borderColor:l,background:e.colorBgContainer})),U(e)),V(e,i,{color:o,background:c},{color:o,background:s})),q(e,o,"link",{color:a},{color:l})),q(e,o,"text",{color:a,background:i},{color:l,background:s}))})},{})})(e))})(t),(e=>Object.assign(Object.assign(Object.assign(Object.assign({},D(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),q(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),z(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),q(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})))(t),(e=>{let{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=e;return{["".concat(t,"-group")]:[{position:"relative",display:"inline-flex",["> span, > ".concat(t)]:{"&:not(:last-child)":{["&, & > ".concat(t)]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:e.calc(r).mul(-1).equal(),["&, & > ".concat(t)]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[t]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},["".concat(t,"-icon-only")]:{fontSize:n}},P("".concat(t,"-primary"),o),P("".concat(t,"-danger"),i)]}})(t)]},I,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});var G=n(67831);let K=(0,T.bf)(["Button","compact"],e=>{let t=_(e);return[(0,G.G)(t),function(e){var t,n;let r="".concat(e.componentCls,"-compact-vertical");return{[r]:Object.assign(Object.assign({},(t=e.componentCls,{["&-item:not(".concat(r,"-last-item)")]:{marginBottom:e.calc(e.lineWidth).mul(-1).equal()},["&-item:not(".concat(t,"-status-success)")]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}})),(n=e.componentCls,{["&-item:not(".concat(r,"-first-item):not(").concat(r,"-last-item)")]:{borderRadius:0},["&-item".concat(r,"-first-item:not(").concat(r,"-last-item)")]:{["&, &".concat(n,"-sm, &").concat(n,"-lg")]:{borderEndEndRadius:0,borderEndStartRadius:0}},["&-item".concat(r,"-last-item:not(").concat(r,"-first-item)")]:{["&, &".concat(n,"-sm, &").concat(n,"-lg")]:{borderStartStartRadius:0,borderStartEndRadius:0}}}))}}(t),(e=>{let{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=e=>{let o="".concat(t,"-compact").concat(e?"-vertical":"","-item").concat(t,"-primary:not([disabled])");return{["".concat(o," + ").concat(o,"::before")]:{position:"absolute",top:e?i:0,insetInlineStart:e?0:i,backgroundColor:n,content:'""',width:e?"100%":r,height:e?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))})(t)]},I);var X=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);ot.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};let Y={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Q=r.forwardRef((e,t)=>{var n,o;let g,{loading:p=!1,prefixCls:y,color:b,variant:x,type:E,danger:w=!1,shape:S,size:O,styles:k,disabled:j,className:T,rootClassName:P,children:F,icon:M,iconPosition:R="start",ghost:N=!1,block:_=!1,htmlType:I="button",classNames:B,style:L={},autoInsertSpace:H,autoFocus:z}=e,D=X(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),U=E||"default",{button:V}=r.useContext(u.QO),q=S||(null==V?void 0:V.shape)||"default",[W,G]=(0,r.useMemo)(()=>{if(b&&x)return[b,x];if(E||w){let e=Y[U]||[];return w?["danger",e[1]]:e}return(null==V?void 0:V.color)&&(null==V?void 0:V.variant)?[V.color,V.variant]:["default","outlined"]},[b,x,E,w,null==V?void 0:V.color,null==V?void 0:V.variant,U]),Q="danger"===W?"dangerous":W,{getPrefixCls:J,direction:Z,autoInsertSpace:ee,className:et,style:en,classNames:er,styles:eo}=(0,u.TP)("button"),ei=null==(n=null!=H?H:ee)||n,ea=J("btn",y),[ec,es,el]=$(ea),eu=(0,r.useContext)(f.A),ef=null!=j?j:eu,ed=(0,r.useContext)(m),eh=(0,r.useMemo)(()=>(function(e){if("object"==typeof e&&e){let t=null==e?void 0:e.delay;return{loading:(t=Number.isNaN(t)||"number"!=typeof t?0:t)<=0,delay:t}}return{loading:!!e,delay:0}})(p),[p]),[eg,ep]=(0,r.useState)(eh.loading),[em,ev]=(0,r.useState)(!1),ey=(0,r.useRef)(null),eb=(0,s.xK)(t,ey),eA=1===r.Children.count(F)&&!M&&!(0,v.u1)(G),ex=(0,r.useRef)(!0);r.useEffect(()=>(ex.current=!1,()=>{ex.current=!0}),[]),(0,a.A)(()=>{let e=null;return eh.delay>0?e=setTimeout(()=>{e=null,ep(!0)},eh.delay):ep(eh.loading),function(){e&&(clearTimeout(e),e=null)}},[eh.delay,eh.loading]),(0,r.useEffect)(()=>{if(!ey.current||!ei)return;let e=ey.current.textContent||"";eA&&(0,v.Ap)(e)?em||ev(!0):em&&ev(!1)}),(0,r.useEffect)(()=>{z&&ey.current&&ey.current.focus()},[]);let eE=r.useCallback(t=>{var n;if(eg||ef)return void t.preventDefault();null==(n=e.onClick)||n.call(e,("href"in e,t))},[e.onClick,eg,ef]),{compactSize:ew,compactItemClassnames:eC}=(0,h.RQ)(ea,Z),eS=(0,d.A)(e=>{var t,n;return null!=(n=null!=(t=null!=O?O:ew)?t:ed)?n:e}),eO=eS&&null!=(o=({large:"lg",small:"sm",middle:void 0})[eS])?o:"",ek=eg?"loading":M,ej=(0,c.A)(D,["navigate"]),eT=i()(ea,es,el,{["".concat(ea,"-").concat(q)]:"default"!==q&&q,["".concat(ea,"-").concat(U)]:U,["".concat(ea,"-dangerous")]:w,["".concat(ea,"-color-").concat(Q)]:Q,["".concat(ea,"-variant-").concat(G)]:G,["".concat(ea,"-").concat(eO)]:eO,["".concat(ea,"-icon-only")]:!F&&0!==F&&!!ek,["".concat(ea,"-background-ghost")]:N&&!(0,v.u1)(G),["".concat(ea,"-loading")]:eg,["".concat(ea,"-two-chinese-chars")]:em&&ei&&!eg,["".concat(ea,"-block")]:_,["".concat(ea,"-rtl")]:"rtl"===Z,["".concat(ea,"-icon-end")]:"end"===R},eC,T,P,et),eP=Object.assign(Object.assign({},en),L),eF=i()(null==B?void 0:B.icon,er.icon),eM=Object.assign(Object.assign({},(null==k?void 0:k.icon)||{}),eo.icon||{}),eR=e=>r.createElement(A,{prefixCls:ea,className:eF,style:eM},e);g=M&&!eg?eR(M):p&&"object"==typeof p&&p.icon?eR(p.icon):r.createElement(C,{existIcon:!!M,prefixCls:ea,loading:eg,mount:ex.current});let eN=F||0===F?(0,v.uR)(F,eA&&ei):null;if(void 0!==ej.href)return ec(r.createElement("a",Object.assign({},ej,{className:i()(eT,{["".concat(ea,"-disabled")]:ef}),href:ef?void 0:ej.href,style:eP,onClick:eE,ref:eb,tabIndex:ef?-1:0,"aria-disabled":ef}),g,eN));let e_=r.createElement("button",Object.assign({},D,{type:I,className:eT,style:eP,onClick:eE,disabled:ef,ref:eb}),g,eN,eC&&r.createElement(K,{prefixCls:ea}));return(0,v.u1)(G)||(e_=r.createElement(l.A,{component:"Button",disabled:eg},e_)),ec(e_)});Q.Group=e=>{let{getPrefixCls:t,direction:n}=r.useContext(u.QO),{prefixCls:o,size:a,className:c}=e,s=p(e,["prefixCls","size","className"]),l=t("btn-group",o),[,,f]=(0,g.Ay)(),d=r.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]),h=i()(l,{["".concat(l,"-").concat(d)]:d,["".concat(l,"-rtl")]:"rtl"===n},c,f);return r.createElement(m.Provider,{value:a},r.createElement("div",Object.assign({},s,{className:h})))},Q.__ANT_BUTTON=!0;let J=Q},99209:(e,t,n)=>{"use strict";n.d(t,{A:()=>i,B:()=>o});var r=n(12115);let o=r.createContext({}),i=r.createContext({message:{},notification:{},modal:{}})},99823:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{A:()=>r})},99841:(e,t,n)=>{"use strict";n.d(t,{Mo:()=>ef,J:()=>b,an:()=>k,lO:()=>W,Ki:()=>I,zA:()=>N,RC:()=>eu,hV:()=>G,IV:()=>es});var r,o=n(40419),i=n(21858),a=n(85757),c=n(27061);let s=function(e){for(var t,n=0,r=0,o=e.length;o>=4;++r,o-=4)t=(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))*0x5bd1e995+((t>>>16)*59797<<16),t^=t>>>24,n=(65535&t)*0x5bd1e995+((t>>>16)*59797<<16)^(65535&n)*0x5bd1e995+((n>>>16)*59797<<16);switch(o){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n^=255&e.charCodeAt(r),n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16)}return n^=n>>>13,(((n=(65535&n)*0x5bd1e995+((n>>>16)*59797<<16))^n>>>15)>>>0).toString(36)};var l=n(85440),u=n(12115),f=n.t(u,2);n(22801),n(80227);var d=n(30857),h=n(28383);function g(e){return e.join("%")}var p=function(){function e(t){(0,d.A)(this,e),(0,o.A)(this,"instanceId",void 0),(0,o.A)(this,"cache",new Map),(0,o.A)(this,"extracted",new Set),this.instanceId=t}return(0,h.A)(e,[{key:"get",value:function(e){return this.opGet(g(e))}},{key:"opGet",value:function(e){return this.cache.get(e)||null}},{key:"update",value:function(e,t){return this.opUpdate(g(e),t)}},{key:"opUpdate",value:function(e,t){var n=t(this.cache.get(e));null===n?this.cache.delete(e):this.cache.set(e,n)}}]),e}(),m="data-token-hash",v="data-css-hash",y="__cssinjs_instance__";let b=u.createContext({hashPriority:"low",cache:function(){var e=Math.random().toString(12).slice(2);if("undefined"!=typeof document&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(v,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(t){t[y]=t[y]||e,t[y]===e&&document.head.insertBefore(t,n)});var r={};Array.from(document.querySelectorAll("style[".concat(v,"]"))).forEach(function(t){var n,o=t.getAttribute(v);r[o]?t[y]===e&&(null==(n=t.parentNode)||n.removeChild(t)):r[o]=!0})}return new p(e)}(),defaultCache:!0});var A=n(86608),x=n(71367),E=function(){function e(){(0,d.A)(this,e),(0,o.A)(this,"cache",void 0),(0,o.A)(this,"keys",void 0),(0,o.A)(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return(0,h.A)(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o={map:this.cache};return e.forEach(function(e){if(o){var t;o=null==(t=o)||null==(t=t.map)?void 0:t.get(e)}else o=void 0}),null!=(t=o)&&t.value&&r&&(o.value[1]=this.cacheCallTimes++),null==(n=o)?void 0:n.value}},{key:"get",value:function(e){var t;return null==(t=this.internalGet(e,!0))?void 0:t[0]}},{key:"has",value:function(e){return!!this.internalGet(e)}},{key:"set",value:function(t,n){var r=this;if(!this.has(t)){if(this.size()+1>e.MAX_CACHE_SIZE+e.MAX_CACHE_OFFSET){var o=this.keys.reduce(function(e,t){var n=(0,i.A)(e,2)[1];return r.internalGet(t)[1]0,"[Ant Design CSS-in-JS] Theme should have at least one derivative function."),C+=1}return(0,h.A)(e,[{key:"getDerivativeToken",value:function(e){return this.derivatives.reduce(function(t,n){return n(e,t)},void 0)}}]),e}(),O=new E;function k(e){var t=Array.isArray(e)?e:[e];return O.has(t)||O.set(t,new S(t)),O.get(t)}var j=new WeakMap,T={},P=new WeakMap;function F(e){var t=P.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof S?t+=r.id:r&&"object"===(0,A.A)(r)?t+=F(r):t+=r}),t=s(t),P.set(e,t)),t}function M(e,t){return s("".concat(t,"_").concat(F(e)))}"random-".concat(Date.now(),"-").concat(Math.random()).replace(/\./g,"");var R=(0,x.A)();function N(e){return"number"==typeof e?"".concat(e,"px"):e}function _(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(i)return e;var a=(0,c.A)((0,c.A)({},r),{},(0,o.A)((0,o.A)({},m,t),v,n)),s=Object.keys(a).map(function(e){var t=a[e];return t?"".concat(e,'="').concat(t,'"'):null}).filter(function(e){return e}).join(" ");return"")}var I=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},B=function(e,t,n){var r,o={},a={};return Object.entries(e).forEach(function(e){var t=(0,i.A)(e,2),r=t[0],c=t[1];if(null!=n&&null!=(s=n.preserve)&&s[r])a[r]=c;else if(("string"==typeof c||"number"==typeof c)&&!(null!=n&&null!=(l=n.ignore)&&l[r])){var s,l,u,f=I(r,null==n?void 0:n.prefix);o[f]="number"!=typeof c||null!=n&&null!=(u=n.unitless)&&u[r]?String(c):"".concat(c,"px"),a[r]="var(".concat(f,")")}}),[a,(r={scope:null==n?void 0:n.scope},Object.keys(o).length?".".concat(t).concat(null!=r&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(o).map(function(e){var t=(0,i.A)(e,2),n=t[0],r=t[1];return"".concat(n,":").concat(r,";")}).join(""),"}"):"")]},L=n(49172),H=(0,c.A)({},f).useInsertionEffect,z=H?function(e,t,n){return H(function(){return e(),t()},n)}:function(e,t,n){u.useMemo(e,n),(0,L.A)(function(){return t(!0)},n)},D=void 0!==(0,c.A)({},f).useInsertionEffect?function(e){var t=[],n=!1;return u.useEffect(function(){return n=!1,function(){n=!0,t.length&&t.forEach(function(e){return e()})}},e),function(e){n||t.push(e)}}:function(){return function(e){e()}};function U(e,t,n,r,o){var c=u.useContext(b).cache,s=g([e].concat((0,a.A)(t))),l=D([s]),f=function(e){c.opUpdate(s,function(t){var r=(0,i.A)(t||[void 0,void 0],2),o=r[0],a=[void 0===o?0:o,r[1]||n()];return e?e(a):a})};u.useMemo(function(){f()},[s]);var d=c.opGet(s)[1];return z(function(){null==o||o(d)},function(e){return f(function(t){var n=(0,i.A)(t,2),r=n[0],a=n[1];return e&&0===r&&(null==o||o(d)),[r+1,a]}),function(){c.opUpdate(s,function(t){var n=(0,i.A)(t||[],2),o=n[0],a=void 0===o?0:o,u=n[1];return 0==a-1?(l(function(){(e||!c.opGet(s))&&(null==r||r(u,!1))}),null):[a-1,u]})}},[s]),d}var V={},q=new Map,W=function(e,t,n,r){var o=n.getDerivativeToken(e),i=(0,c.A)((0,c.A)({},o),t);return r&&(i=r(i)),i},$="token";function G(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(0,u.useContext)(b),o=r.cache.instanceId,f=r.container,d=n.salt,h=void 0===d?"":d,g=n.override,p=void 0===g?V:g,A=n.formatToken,x=n.getComputedToken,E=n.cssVar,w=function(e,t){for(var n=j,r=0;r0&&n.forEach(function(e){"undefined"!=typeof document&&document.querySelectorAll("style[".concat(m,'="').concat(e,'"]')).forEach(function(e){if(e[y]===o){var t;null==(t=e.parentNode)||t.removeChild(e)}}),q.delete(e)})},function(e){var t=(0,i.A)(e,4),n=t[0],r=t[3];if(E&&r){var a=(0,l.BD)(r,s("css-variables-".concat(n._themeKey)),{mark:v,prepend:"queue",attachTo:f,priority:-999});a[y]=o,a.setAttribute(m,n._themeKey)}})}var K=n(79630);let X={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};var Y=n(83855),Q=n(28296),J="data-ant-cssinjs-cache-path",Z="_FILE_STYLE__",ee=!0,et="_multi_value_";function en(e){return(0,Y.l)((0,Q.wE)(e),Y.A).replace(/\{%%%\:[^;];}/g,";")}function er(e,t,n){if(!t)return e;var r=".".concat(t),o="low"===n?":where(".concat(r,")"):r;return e.split(",").map(function(e){var t,n=e.trim().split(/\s+/),r=n[0]||"",i=(null==(t=r.match(/^\w+/))?void 0:t[0])||"";return[r="".concat(i).concat(o).concat(r.slice(i.length))].concat((0,a.A)(n.slice(1))).join(" ")}).join(",")}var eo=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{root:!0,parentSelectors:[]},o=r.root,s=r.injectHash,l=r.parentSelectors,u=n.hashId,f=n.layer,d=(n.path,n.hashPriority),h=n.transformers,g=void 0===h?[]:h,p=(n.linters,""),m={};function v(t){var r=t.getName(u);if(!m[r]){var o=e(t.style,n,{root:!1,parentSelectors:l}),a=(0,i.A)(o,1)[0];m[r]="@keyframes ".concat(t.getName(u)).concat(a)}}return(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t.forEach(function(t){Array.isArray(t)?e(t,n):t&&n.push(t)}),n})(Array.isArray(t)?t:[t]).forEach(function(t){var r="string"!=typeof t||o?t:{};if("string"==typeof r)p+="".concat(r,"\n");else if(r._keyframe)v(r);else{var f=g.reduce(function(e,t){var n;return(null==t||null==(n=t.visit)?void 0:n.call(t,e))||e},r);Object.keys(f).forEach(function(t){var r=f[t];if("object"!==(0,A.A)(r)||!r||"animationName"===t&&r._keyframe||"object"===(0,A.A)(r)&&r&&("_skip_check_"in r||et in r)){function h(e,t){var n=e.replace(/[A-Z]/g,function(e){return"-".concat(e.toLowerCase())}),r=t;X[e]||"number"!=typeof r||0===r||(r="".concat(r,"px")),"animationName"===e&&null!=t&&t._keyframe&&(v(t),r=t.getName(u)),p+="".concat(n,":").concat(r,";")}var g,y=null!=(g=null==r?void 0:r.value)?g:r;"object"===(0,A.A)(r)&&null!=r&&r[et]&&Array.isArray(y)?y.forEach(function(e){h(t,e)}):h(t,y)}else{var b=!1,x=t.trim(),E=!1;(o||s)&&u?x.startsWith("@")?b=!0:x="&"===x?er("",u,d):er(t,u,d):o&&!u&&("&"===x||""===x)&&(x="",E=!0);var w=e(r,n,{root:E,injectHash:b,parentSelectors:[].concat((0,a.A)(l),[x])}),C=(0,i.A)(w,2),S=C[0],O=C[1];m=(0,c.A)((0,c.A)({},m),O),p+="".concat(x).concat(S)}})}}),o?f&&(p&&(p="@layer ".concat(f.name," {").concat(p,"}")),f.dependencies&&(m["@layer ".concat(f.name)]=f.dependencies.map(function(e){return"@layer ".concat(e,", ").concat(f.name,";")}).join("\n"))):p="{".concat(p,"}"),[p,m]};function ei(e,t){return s("".concat(e.join("%")).concat(t))}function ea(){return null}var ec="style";function es(e,t){var n=e.token,s=e.path,f=e.hashId,d=e.layer,h=e.nonce,g=e.clientOnly,p=e.order,A=void 0===p?0:p,E=u.useContext(b),w=E.autoClear,C=(E.mock,E.defaultCache),S=E.hashPriority,O=E.container,k=E.ssrInline,j=E.transformers,T=E.linters,P=E.cache,F=E.layer,M=n._tokenKey,N=[M];F&&N.push("layer"),N.push.apply(N,(0,a.A)(s));var _=U(ec,N,function(){var e=N.join("|");if(function(e){if(!r&&(r={},(0,x.A)())){var t,n=document.createElement("div");n.className=J,n.style.position="fixed",n.style.visibility="hidden",n.style.top="-9999px",document.body.appendChild(n);var o=getComputedStyle(n).content||"";(o=o.replace(/^"/,"").replace(/"$/,"")).split(";").forEach(function(e){var t=e.split(":"),n=(0,i.A)(t,2),o=n[0],a=n[1];r[o]=a});var a=document.querySelector("style[".concat(J,"]"));a&&(ee=!1,null==(t=a.parentNode)||t.removeChild(a)),document.body.removeChild(n)}return!!r[e]}(e)){var n=function(e){var t=r[e],n=null;if(t&&(0,x.A)())if(ee)n=Z;else{var o=document.querySelector("style[".concat(v,'="').concat(r[e],'"]'));o?n=o.innerHTML:delete r[e]}return[n,t]}(e),o=(0,i.A)(n,2),a=o[0],c=o[1];if(a)return[a,M,c,{},g,A]}var l=eo(t(),{hashId:f,hashPriority:S,layer:F?d:void 0,path:s.join("-"),transformers:j,linters:T}),u=(0,i.A)(l,2),h=u[0],p=u[1],m=en(h),y=ei(N,m);return[m,M,y,p,g,A]},function(e,t){var n=(0,i.A)(e,3)[2];(t||w)&&R&&(0,l.m6)(n,{mark:v,attachTo:O})},function(e){var t=(0,i.A)(e,4),n=t[0],r=(t[1],t[2]),o=t[3];if(R&&n!==Z){var a={mark:v,prepend:!F&&"queue",attachTo:O,priority:A},s="function"==typeof h?h():h;s&&(a.csp={nonce:s});var u=[],f=[];Object.keys(o).forEach(function(e){e.startsWith("@layer")?u.push(e):f.push(e)}),u.forEach(function(e){(0,l.BD)(en(o[e]),"_layer-".concat(e),(0,c.A)((0,c.A)({},a),{},{prepend:!0}))});var d=(0,l.BD)(n,r,a);d[y]=P.instanceId,d.setAttribute(m,M),f.forEach(function(e){(0,l.BD)(en(o[e]),"_effect-".concat(e),a)})}}),I=(0,i.A)(_,3),B=I[0],L=I[1],H=I[2];return function(e){var t;return t=k&&!R&&C?u.createElement("style",(0,K.A)({},(0,o.A)((0,o.A)({},m,L),v,H),{dangerouslySetInnerHTML:{__html:B}})):u.createElement(ea,null),u.createElement(u.Fragment,null,t,e)}}var el="cssVar";let eu=function(e,t){var n=e.key,r=e.prefix,o=e.unitless,c=e.ignore,s=e.token,f=e.scope,d=void 0===f?"":f,h=(0,u.useContext)(b),g=h.cache.instanceId,p=h.container,A=s._tokenKey,x=[].concat((0,a.A)(e.path),[n,d,A]);return U(el,x,function(){var e=B(t(),n,{prefix:r,unitless:o,ignore:c,scope:d}),a=(0,i.A)(e,2),s=a[0],l=a[1],u=ei(x,l);return[s,l,u,n]},function(e){var t=(0,i.A)(e,3)[2];R&&(0,l.m6)(t,{mark:v,attachTo:p})},function(e){var t=(0,i.A)(e,3),r=t[1],o=t[2];if(r){var a=(0,l.BD)(r,o,{mark:v,prepend:"queue",attachTo:p,priority:-999});a[y]=g,a.setAttribute(m,n)}})};(0,o.A)((0,o.A)((0,o.A)({},ec,function(e,t,n){var r=(0,i.A)(e,6),o=r[0],a=r[1],c=r[2],s=r[3],l=r[4],u=r[5],f=(n||{}).plain;if(l)return null;var d=o,h={"data-rc-order":"prependQueue","data-rc-priority":"".concat(u)};return d=_(o,a,c,h,f),s&&Object.keys(s).forEach(function(e){if(!t[e]){t[e]=!0;var n=_(en(s[e]),a,"_effect-".concat(e),h,f);e.startsWith("@layer")?d=n+d:d+=n}}),[u,c,d]}),$,function(e,t,n){var r=(0,i.A)(e,5),o=r[2],a=r[3],c=r[4],s=(n||{}).plain;if(!a)return null;var l=o._tokenKey,u=_(a,c,l,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s);return[-999,l,u]}),el,function(e,t,n){var r=(0,i.A)(e,4),o=r[1],a=r[2],c=r[3],s=(n||{}).plain;if(!o)return null;var l=_(o,c,a,{"data-rc-order":"prependQueue","data-rc-priority":"".concat(-999)},s);return[-999,a,l]});let ef=function(){function e(t,n){(0,d.A)(this,e),(0,o.A)(this,"name",void 0),(0,o.A)(this,"style",void 0),(0,o.A)(this,"_keyframe",!0),this.name=t,this.style=n}return(0,h.A)(e,[{key:"getName",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?"".concat(e,"-").concat(this.name):this.name}}]),e}();function ed(e){return e.notSplit=!0,e}ed(["borderTop","borderBottom"]),ed(["borderTop"]),ed(["borderBottom"]),ed(["borderLeft","borderRight"]),ed(["borderLeft"]),ed(["borderRight"])}}]); \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1218-fec170339465af6d.js b/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1218-fec170339465af6d.js deleted file mode 100644 index 2e8404ca..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1218-fec170339465af6d.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1218],{70762:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},91218:(e,n,t)=>{"use strict";let a;t.d(n,{r9:()=>h,Bd:()=>w});var s=t(12115);t(70762),Object.create(null);let r={},i=(e,n,t,a)=>{c(t)&&r[t]||(c(t)&&(r[t]=new Date),((e,n,t,a)=>{let s=[t,{code:n,...a||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(s,"warn","react-i18next::",!0);c(s[0])&&(s[0]=`react-i18next:: ${s[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...s):console?.warn&&console.warn(...s)})(e,n,t,a))},o=(e,n)=>()=>{if(e.isInitialized)n();else{let t=()=>{setTimeout(()=>{e.off("initialized",t)},0),n()};e.on("initialized",t)}},l=(e,n,t)=>{e.loadNamespaces(n,o(e,t))},u=(e,n,t,a)=>{if(c(t)&&(t=[t]),e.options.preload&&e.options.preload.indexOf(n)>-1)return l(e,t,a);t.forEach(n=>{0>e.options.ns.indexOf(n)&&e.options.ns.push(n)}),e.loadLanguages(n,o(e,a))},c=e=>"string"==typeof e,p=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,g={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"…","…":"…","/":"/","/":"/"},d=e=>g[e],f={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(p,d)},h={type:"3rdParty",init(e){((e={})=>{f={...f,...e}})(e.options.react),a=e}},m=(0,s.createContext)();class N{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}let b=(e,n,t,a)=>e.getFixedT(n,t,a),w=(e,n={})=>{let{i18n:t}=n,{i18n:r,defaultNS:o}=(0,s.useContext)(m)||{},p=t||r||a;if(p&&!p.reportNamespaces&&(p.reportNamespaces=new N),!p){i(p,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let e=(e,n)=>c(n)?n:(e=>"object"==typeof e&&null!==e)(n)&&c(n.defaultValue)?n.defaultValue:Array.isArray(e)?e[e.length-1]:e,n=[e,{},!1];return n.t=e,n.i18n={},n.ready=!1,n}p.options.react?.wait&&i(p,"DEPRECATED_OPTION","useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");let g={...f,...p.options.react,...n},{useSuspense:d,keyPrefix:h}=g,w=e||o||p.options?.defaultNS;w=c(w)?[w]:w||["translation"],p.reportNamespaces.addUsedNamespaces?.(w);let y=(p.isInitialized||p.initializedStoreOnce)&&w.every(e=>((e,n,t={})=>n.languages&&n.languages.length?n.hasLoadedNamespace(e,{lng:t.lng,precheck:(n,a)=>{if(t.bindI18n&&t.bindI18n.indexOf("languageChanging")>-1&&n.services.backendConnector.backend&&n.isLanguageChangingTo&&!a(n.isLanguageChangingTo,e))return!1}}):(i(n,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:n.languages}),!0))(e,p,g)),E=((e,n,t,a)=>(0,s.useCallback)(b(e,n,t,a),[e,n,t,a]))(p,n.lng||null,"fallback"===g.nsMode?w:w[0],h),x=()=>E,k=()=>b(p,n.lng||null,"fallback"===g.nsMode?w:w[0],h),[C,I]=(0,s.useState)(x),T=w.join();n.lng&&(T=`${n.lng}${T}`);let O=((e,n)=>{let t=(0,s.useRef)();return(0,s.useEffect)(()=>{t.current=e},[e,void 0]),t.current})(T),S=(0,s.useRef)(!0);(0,s.useEffect)(()=>{let{bindI18n:e,bindI18nStore:t}=g;S.current=!0,y||d||(n.lng?u(p,n.lng,w,()=>{S.current&&I(k)}):l(p,w,()=>{S.current&&I(k)})),y&&O&&O!==T&&S.current&&I(k);let a=()=>{S.current&&I(k)};return e&&p?.on(e,a),t&&p?.store.on(t,a),()=>{S.current=!1,p&&e&&e?.split(" ").forEach(e=>p.off(e,a)),t&&p&&t.split(" ").forEach(e=>p.store.off(e,a))}},[p,T]),(0,s.useEffect)(()=>{S.current&&y&&I(x)},[p,h,y]);let v=[C,p,y];if(v.t=C,v.i18n=p,v.ready=y,y||!y&&!d)return v;throw new Promise(e=>{n.lng?u(p,n.lng,w,()=>e()):l(p,w,()=>e())})}}}]); \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1242-041500d33acab3f9.js b/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1242-041500d33acab3f9.js deleted file mode 100644 index 5bd1fd76..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1242-041500d33acab3f9.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1242],{3377:(e,t,c)=>{c.d(t,{A:()=>o});var a=c(12115),r=c(32110),n=c(75659);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.createElement(n.A,l({},e,{ref:t,icon:r.A})))},8365:(e,t,c)=>{c.d(t,{A:()=>o});var a=c(12115);let r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 144H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H212V212h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V160c0-8.8-7.2-16-16-16zm-52 268H612V212h200v200zM464 544H160c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H212V612h200v200zm452-268H560c-8.8 0-16 7.2-16 16v304c0 8.8 7.2 16 16 16h304c8.8 0 16-7.2 16-16V560c0-8.8-7.2-16-16-16zm-52 268H612V612h200v200z"}}]},name:"appstore",theme:"outlined"};var n=c(75659);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.createElement(n.A,l({},e,{ref:t,icon:r})))},34140:(e,t,c)=>{c.d(t,{A:()=>o});var a=c(12115);let r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};var n=c(75659);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.createElement(n.A,l({},e,{ref:t,icon:r})))},42402:(e,t,c)=>{c.d(t,{A:()=>o});var a=c(12115);let r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M834.1 469.2A347.49 347.49 0 00751.2 354l-29.1-26.7a8.09 8.09 0 00-13 3.3l-13 37.3c-8.1 23.4-23 47.3-44.1 70.8-1.4 1.5-3 1.9-4.1 2-1.1.1-2.8-.1-4.3-1.5-1.4-1.2-2.1-3-2-4.8 3.7-60.2-14.3-128.1-53.7-202C555.3 171 510 123.1 453.4 89.7l-41.3-24.3c-5.4-3.2-12.3 1-12 7.3l2.2 48c1.5 32.8-2.3 61.8-11.3 85.9-11 29.5-26.8 56.9-47 81.5a295.64 295.64 0 01-47.5 46.1 352.6 352.6 0 00-100.3 121.5A347.75 347.75 0 00160 610c0 47.2 9.3 92.9 27.7 136a349.4 349.4 0 0075.5 110.9c32.4 32 70 57.2 111.9 74.7C418.5 949.8 464.5 959 512 959s93.5-9.2 136.9-27.3A348.6 348.6 0 00760.8 857c32.4-32 57.8-69.4 75.5-110.9a344.2 344.2 0 0027.7-136c0-48.8-10-96.2-29.9-140.9z"}}]},name:"fire",theme:"filled"};var n=c(75659);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.createElement(n.A,l({},e,{ref:t,icon:r})))},50715:(e,t,c)=>{c.d(t,{A:()=>v});var a=c(39249),r=c(45964),n=c.n(r),l=c(12115),o=c(56795),s=c(56406),i=c(30114),f=c(4365);let v=function(e,t){f.A&&!(0,i.Tn)(e)&&console.error("useDebounceFn expected parameter is a function, got ".concat(typeof e));var c,r=(0,o.A)(e),v=null!=(c=null==t?void 0:t.wait)?c:1e3,h=(0,l.useMemo)(function(){return n()(function(){for(var e=[],t=0;t{c.d(t,{A:()=>o});var a=c(12115);let r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"};var n=c(75659);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.createElement(n.A,l({},e,{ref:t,icon:r})))},63989:(e,t,c)=>{c.d(t,{A:()=>o});var a=c(12115);let r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8L864 736zM512 352a48.01 48.01 0 010 96 48.01 48.01 0 010-96zm116.1 432.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5s-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5z"}}]},name:"rocket",theme:"filled"};var n=c(75659);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.createElement(n.A,l({},e,{ref:t,icon:r})))},68287:(e,t,c)=>{c.d(t,{A:()=>o});var a=c(12115);let r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"};var n=c(75659);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.createElement(n.A,l({},e,{ref:t,icon:r})))},73086:(e,t,c)=>{c.d(t,{A:()=>o});var a=c(12115);let r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"unordered-list",theme:"outlined"};var n=c(75659);function l(){return(l=Object.assign?Object.assign.bind():function(e){for(var t=1;ta.createElement(n.A,l({},e,{ref:t,icon:r})))}}]); \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1274-e72d12b4aa1a03a7.js b/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1274-e72d12b4aa1a03a7.js deleted file mode 100644 index 1ab2093b..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1274-e72d12b4aa1a03a7.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1274],{13630:(e,t,n)=>{n.d(t,{A:()=>c});var o=n(12115);let a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"};var l=n(75659);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement(l.A,r({},e,{ref:t,icon:a})))},18610:(e,t,n)=>{n.d(t,{A:()=>c});var o=n(12115),a=n(50585),l=n(75659);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement(l.A,r({},e,{ref:t,icon:a.A})))},19558:(e,t,n)=>{n.d(t,{A:()=>c});var o=n(12115);let a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M893.3 293.3L730.7 130.7c-7.5-7.5-16.7-13-26.7-16V112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V338.5c0-17-6.7-33.2-18.7-45.2zM384 184h256v104H384V184zm456 656H184V184h136v136c0 17.7 14.3 32 32 32h320c17.7 0 32-14.3 32-32V205.8l136 136V840zM512 442c-79.5 0-144 64.5-144 144s64.5 144 144 144 144-64.5 144-144-64.5-144-144-144zm0 224c-44.2 0-80-35.8-80-80s35.8-80 80-80 80 35.8 80 80-35.8 80-80 80z"}}]},name:"save",theme:"outlined"};var l=n(75659);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement(l.A,r({},e,{ref:t,icon:a})))},19663:(e,t,n)=>{n.d(t,{A:()=>o});let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"}},27212:(e,t,n)=>{n.d(t,{A:()=>w});var o=n(12115),a=n(63583),l=n(29300),r=n.n(l),c=n(48804),i=n(17980),s=n(15982),d=n(56200),p=n(25374),b=n(44186),m=n(98696),g=n(37120),u=n(8530),f=n(16025),y=n(79092);let h=(0,n(45431).OF)("Popconfirm",e=>(e=>{let{componentCls:t,iconCls:n,antCls:o,zIndexPopup:a,colorText:l,colorWarning:r,marginXXS:c,marginXS:i,fontSize:s,fontWeightStrong:d,colorTextHeading:p}=e;return{[t]:{zIndex:a,["&".concat(o,"-popover")]:{fontSize:s},["".concat(t,"-message")]:{marginBottom:i,display:"flex",flexWrap:"nowrap",alignItems:"start",["> ".concat(t,"-message-icon ").concat(n)]:{color:r,fontSize:s,lineHeight:1,marginInlineEnd:i},["".concat(t,"-title")]:{fontWeight:d,color:p,"&:only-child":{fontWeight:"normal"}},["".concat(t,"-description")]:{marginTop:c,color:l}},["".concat(t,"-buttons")]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:i}}}}})(e),e=>{let{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},{resetStyle:!1});var v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};let O=e=>{let{prefixCls:t,okButtonProps:n,cancelButtonProps:l,title:r,description:c,cancelText:i,okText:d,okType:y="primary",icon:h=o.createElement(a.A,null),showCancel:v=!0,close:O,onConfirm:j,onCancel:x,onPopupClick:w}=e,{getPrefixCls:C}=o.useContext(s.QO),[S]=(0,u.A)("Popconfirm",f.A.Popconfirm),E=(0,b.b)(r),k=(0,b.b)(c);return o.createElement("div",{className:"".concat(t,"-inner-content"),onClick:w},o.createElement("div",{className:"".concat(t,"-message")},h&&o.createElement("span",{className:"".concat(t,"-message-icon")},h),o.createElement("div",{className:"".concat(t,"-message-text")},E&&o.createElement("div",{className:"".concat(t,"-title")},E),k&&o.createElement("div",{className:"".concat(t,"-description")},k))),o.createElement("div",{className:"".concat(t,"-buttons")},v&&o.createElement(m.Ay,Object.assign({onClick:x,size:"small"},l),i||(null==S?void 0:S.cancelText)),o.createElement(p.A,{buttonProps:Object.assign(Object.assign({size:"small"},(0,g.DU)(y)),n),actionFn:j,close:O,prefixCls:C("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},d||(null==S?void 0:S.okText))))};var j=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};let x=o.forwardRef((e,t)=>{var n,l;let{prefixCls:p,placement:b="top",trigger:m="click",okType:g="primary",icon:u=o.createElement(a.A,null),children:f,overlayClassName:y,onOpenChange:v,onVisibleChange:x,overlayStyle:w,styles:C,classNames:S}=e,E=j(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:k,className:z,style:A,classNames:N,styles:P}=(0,s.TP)("popconfirm"),[B,I]=(0,c.A)(!1,{value:null!=(n=e.open)?n:e.visible,defaultValue:null!=(l=e.defaultOpen)?l:e.defaultVisible}),M=(e,t)=>{I(e,!0),null==x||x(e),null==v||v(e,t)},T=k("popconfirm",p),W=r()(T,z,y,N.root,null==S?void 0:S.root),L=r()(N.body,null==S?void 0:S.body),[H]=h(T);return H(o.createElement(d.A,Object.assign({},(0,i.A)(E,["title"]),{trigger:m,placement:b,onOpenChange:(t,n)=>{let{disabled:o=!1}=e;o||M(t,n)},open:B,ref:t,classNames:{root:W,body:L},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},P.root),A),w),null==C?void 0:C.root),body:Object.assign(Object.assign({},P.body),null==C?void 0:C.body)},content:o.createElement(O,Object.assign({okType:g,icon:u},e,{prefixCls:T,close:e=>{M(!1,e)},onConfirm:t=>{var n;return null==(n=e.onConfirm)?void 0:n.call(void 0,t)},onCancel:t=>{var n;M(!1,t),null==(n=e.onCancel)||n.call(void 0,t)}})),"data-popover-inject":!0}),f))});x._InternalPanelDoNotUseOrYouWillBeFired=e=>{let{prefixCls:t,placement:n,className:a,style:l}=e,c=v(e,["prefixCls","placement","className","style"]),{getPrefixCls:i}=o.useContext(s.QO),d=i("popconfirm",t),[p]=h(d);return p(o.createElement(y.Ay,{placement:n,className:r()(d,a),style:l,content:o.createElement(O,Object.assign({prefixCls:d},c))}))};let w=x},37974:(e,t,n)=>{n.d(t,{A:()=>z});var o=n(12115),a=n(29300),l=n.n(a),r=n(17980),c=n(77696),i=n(50497),s=n(80163),d=n(47195),p=n(15982),b=n(99841),m=n(60872),g=n(18184),u=n(61388),f=n(45431);let y=e=>{let{lineWidth:t,fontSizeIcon:n,calc:o}=e,a=e.fontSizeSM;return(0,u.oX)(e,{tagFontSize:a,tagLineHeight:(0,b.zA)(o(e.lineHeightSM).mul(a).equal()),tagIconSize:o(n).sub(o(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},h=e=>({defaultBg:new m.Y(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),v=(0,f.OF)("Tag",e=>(e=>{let{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:o,componentCls:a,calc:l}=e,r=l(o).sub(n).equal(),c=l(t).sub(n).equal();return{[a]:Object.assign(Object.assign({},(0,g.dF)(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:r,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:"".concat((0,b.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderRadius:e.borderRadiusSM,opacity:1,transition:"all ".concat(e.motionDurationMid),textAlign:"start",position:"relative",["&".concat(a,"-rtl")]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},["".concat(a,"-close-icon")]:{marginInlineStart:c,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:"all ".concat(e.motionDurationMid),"&:hover":{color:e.colorTextHeading}},["&".concat(a,"-has-color")]:{borderColor:"transparent",["&, a, a:hover, ".concat(e.iconCls,"-close, ").concat(e.iconCls,"-close:hover")]:{color:e.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",["&:not(".concat(a,"-checkable-checked):hover")]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive}},"&-hidden":{display:"none"},["> ".concat(e.iconCls," + span, > span + ").concat(e.iconCls)]:{marginInlineStart:r}}),["".concat(a,"-borderless")]:{borderColor:"transparent",background:e.tagBorderlessBg}}})(y(e)),h);var O=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};let j=o.forwardRef((e,t)=>{let{prefixCls:n,style:a,className:r,checked:c,children:i,icon:s,onChange:d,onClick:b}=e,m=O(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:g,tag:u}=o.useContext(p.QO),f=g("tag",n),[y,h,j]=v(f),x=l()(f,"".concat(f,"-checkable"),{["".concat(f,"-checkable-checked")]:c},null==u?void 0:u.className,r,h,j);return y(o.createElement("span",Object.assign({},m,{ref:t,style:Object.assign(Object.assign({},a),null==u?void 0:u.style),className:x,onClick:e=>{null==d||d(!c),null==b||b(e)}}),s,o.createElement("span",null,i)))});var x=n(18741);let w=(0,f.bf)(["Tag","preset"],e=>(e=>(0,x.A)(e,(t,n)=>{let{textColor:o,lightBorderColor:a,lightColor:l,darkColor:r}=n;return{["".concat(e.componentCls).concat(e.componentCls,"-").concat(t)]:{color:o,background:l,borderColor:a,"&-inverse":{color:e.colorTextLightSolid,background:r,borderColor:r},["&".concat(e.componentCls,"-borderless")]:{borderColor:"transparent"}}}}))(y(e)),h),C=(e,t,n)=>{let o=function(e){return"string"!=typeof e?e:e.charAt(0).toUpperCase()+e.slice(1)}(n);return{["".concat(e.componentCls).concat(e.componentCls,"-").concat(t)]:{color:e["color".concat(n)],background:e["color".concat(o,"Bg")],borderColor:e["color".concat(o,"Border")],["&".concat(e.componentCls,"-borderless")]:{borderColor:"transparent"}}}},S=(0,f.bf)(["Tag","status"],e=>{let t=y(e);return[C(t,"success","Success"),C(t,"processing","Info"),C(t,"error","Error"),C(t,"warning","Warning")]},h);var E=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};let k=o.forwardRef((e,t)=>{let{prefixCls:n,className:a,rootClassName:b,style:m,children:g,icon:u,color:f,onClose:y,bordered:h=!0,visible:O}=e,j=E(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:x,direction:C,tag:k}=o.useContext(p.QO),[z,A]=o.useState(!0),N=(0,r.A)(j,["closeIcon","closable"]);o.useEffect(()=>{void 0!==O&&A(O)},[O]);let P=(0,c.nP)(f),B=(0,c.ZZ)(f),I=P||B,M=Object.assign(Object.assign({backgroundColor:f&&!I?f:void 0},null==k?void 0:k.style),m),T=x("tag",n),[W,L,H]=v(T),R=l()(T,null==k?void 0:k.className,{["".concat(T,"-").concat(f)]:I,["".concat(T,"-has-color")]:f&&!I,["".concat(T,"-hidden")]:!z,["".concat(T,"-rtl")]:"rtl"===C,["".concat(T,"-borderless")]:!h},a,b,L,H),F=e=>{e.stopPropagation(),null==y||y(e),e.defaultPrevented||A(!1)},[,V]=(0,i.$)((0,i.d)(e),(0,i.d)(k),{closable:!1,closeIconRender:e=>{let t=o.createElement("span",{className:"".concat(T,"-close-icon"),onClick:F},e);return(0,s.fx)(e,t,e=>({onClick:t=>{var n;null==(n=null==e?void 0:e.onClick)||n.call(e,t),F(t)},className:l()(null==e?void 0:e.className,"".concat(T,"-close-icon"))}))}}),D="function"==typeof j.onClick||g&&"a"===g.type,X=u||null,G=X?o.createElement(o.Fragment,null,X,g&&o.createElement("span",null,g)):g,_=o.createElement("span",Object.assign({},N,{ref:t,className:R,style:M}),G,V,P&&o.createElement(w,{key:"preset",prefixCls:T}),B&&o.createElement(S,{key:"status",prefixCls:T}));return W(D?o.createElement(d.A,{component:"Tag"},_):_)});k.CheckableTag=j;let z=k},44186:(e,t,n)=>{n.d(t,{b:()=>o});let o=e=>e?"function"==typeof e?e():e:null},50585:(e,t,n)=>{n.d(t,{A:()=>o});let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"}},56200:(e,t,n)=>{n.d(t,{A:()=>y});var o=n(12115),a=n(29300),l=n.n(a),r=n(48804),c=n(17233),i=n(44186),s=n(93666),d=n(80163),p=n(15982),b=n(97540),m=n(79092),g=n(60322),u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};let f=o.forwardRef((e,t)=>{var n,a;let{prefixCls:f,title:y,content:h,overlayClassName:v,placement:O="top",trigger:j="hover",children:x,mouseEnterDelay:w=.1,mouseLeaveDelay:C=.1,onOpenChange:S,overlayStyle:E={},styles:k,classNames:z}=e,A=u(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:N,className:P,style:B,classNames:I,styles:M}=(0,p.TP)("popover"),T=N("popover",f),[W,L,H]=(0,g.A)(T),R=N(),F=l()(v,L,H,P,I.root,null==z?void 0:z.root),V=l()(I.body,null==z?void 0:z.body),[D,X]=(0,r.A)(!1,{value:null!=(n=e.open)?n:e.visible,defaultValue:null!=(a=e.defaultOpen)?a:e.defaultVisible}),G=(e,t)=>{X(e,!0),null==S||S(e,t)},_=(0,i.b)(y),Q=(0,i.b)(h);return W(o.createElement(b.A,Object.assign({placement:O,trigger:j,mouseEnterDelay:w,mouseLeaveDelay:C},A,{prefixCls:T,classNames:{root:F,body:V},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},M.root),B),E),null==k?void 0:k.root),body:Object.assign(Object.assign({},M.body),null==k?void 0:k.body)},ref:t,open:D,onOpenChange:e=>{G(e)},overlay:_||Q?o.createElement(m.hJ,{prefixCls:T,title:_,content:Q}):null,transitionName:(0,s.b)(R,"zoom-big",A.transitionName),"data-popover-inject":!0}),(0,d.Ob)(x,{onKeyDown:e=>{var t,n;(0,o.isValidElement)(x)&&(null==(n=null==x?void 0:(t=x.props).onKeyDown)||n.call(t,e)),(e=>{e.keyCode===c.A.ESC&&G(!1,e)})(e)}})))});f._InternalPanelDoNotUseOrYouWillBeFired=m.Ay;let y=f},60322:(e,t,n)=>{n.d(t,{A:()=>d});var o=n(18184),a=n(47212),l=n(35464),r=n(45902),c=n(68495),i=n(45431),s=n(61388);let d=(0,i.OF)("Popover",e=>{let{colorBgElevated:t,colorText:n}=e,r=(0,s.oX)(e,{popoverBg:t,popoverColor:n});return[(e=>{let{componentCls:t,popoverColor:n,titleMinWidth:a,fontWeightStrong:r,innerPadding:c,boxShadowSecondary:i,colorTextHeading:s,borderRadiusLG:d,zIndexPopup:p,titleMarginBottom:b,colorBgElevated:m,popoverBg:g,titleBorderBottom:u,innerContentPadding:f,titlePadding:y}=e;return[{[t]:Object.assign(Object.assign({},(0,o.dF)(e)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:p,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:"var(--valid-offset-x, 50%) var(--arrow-y, 50%)","--antd-arrow-background-color":m,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},["".concat(t,"-content")]:{position:"relative"},["".concat(t,"-inner")]:{backgroundColor:g,backgroundClip:"padding-box",borderRadius:d,boxShadow:i,padding:c},["".concat(t,"-title")]:{minWidth:a,marginBottom:b,color:s,fontWeight:r,borderBottom:u,padding:y},["".concat(t,"-inner-content")]:{color:n,padding:f}})},(0,l.Ay)(e,"var(--antd-arrow-background-color)"),{["".concat(t,"-pure")]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",["".concat(t,"-content")]:{display:"inline-block"}}}]})(r),(e=>{let{componentCls:t}=e;return{[t]:c.s.map(n=>{let o=e["".concat(n,"6")];return{["&".concat(t,"-").concat(n)]:{"--antd-arrow-background-color":o,["".concat(t,"-inner")]:{backgroundColor:o},["".concat(t,"-arrow")]:{background:"transparent"}}}})}})(r),(0,a.aB)(r,"zoom-big")]},e=>{let{lineWidth:t,controlHeight:n,fontHeight:o,padding:a,wireframe:c,zIndexPopupBase:i,borderRadiusLG:s,marginXS:d,lineType:p,colorSplit:b,paddingSM:m}=e,g=n-o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:i+30},(0,r.n)(e)),(0,l.Ke)({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:12*!c,titleMarginBottom:c?0:d,titlePadding:c?"".concat(g/2,"px ").concat(a,"px ").concat(g/2-t,"px"):0,titleBorderBottom:c?"".concat(t,"px ").concat(p," ").concat(b):"none",innerContentPadding:c?"".concat(m,"px ").concat(a,"px"):0})},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})},79092:(e,t,n)=>{n.d(t,{Ay:()=>m,hJ:()=>p});var o=n(12115),a=n(29300),l=n.n(a),r=n(16598),c=n(44186),i=n(15982),s=n(60322),d=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};let p=e=>{let{title:t,content:n,prefixCls:a}=e;return t||n?o.createElement(o.Fragment,null,t&&o.createElement("div",{className:"".concat(a,"-title")},t),n&&o.createElement("div",{className:"".concat(a,"-inner-content")},n)):null},b=e=>{let{hashId:t,prefixCls:n,className:a,style:i,placement:s="top",title:d,content:b,children:m}=e,g=(0,c.b)(d),u=(0,c.b)(b),f=l()(t,n,"".concat(n,"-pure"),"".concat(n,"-placement-").concat(s),a);return o.createElement("div",{className:f,style:i},o.createElement("div",{className:"".concat(n,"-arrow")}),o.createElement(r.z,Object.assign({},e,{className:t,prefixCls:n}),m||o.createElement(p,{prefixCls:n,title:g,content:u})))},m=e=>{let{prefixCls:t,className:n}=e,a=d(e,["prefixCls","className"]),{getPrefixCls:r}=o.useContext(i.QO),c=r("popover",t),[p,m,g]=(0,s.A)(c);return p(o.createElement(b,Object.assign({},a,{prefixCls:c,hashId:m,className:l()(n,g)})))}},81730:(e,t,n)=>{n.d(t,{A:()=>c});var o=n(12115);let a={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};var l=n(75659);function r(){return(r=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement(l.A,r({},e,{ref:t,icon:a})))},89631:(e,t,n)=>{n.d(t,{A:()=>S});var o=n(12115),a=n(29300),l=n.n(a),r=n(39496),c=n(15982),i=n(9836),s=n(51854);let d={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1},p=o.createContext({});var b=n(63715),m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n},g=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};let u=e=>{let{itemPrefixCls:t,component:n,span:a,className:r,style:c,labelStyle:i,contentStyle:s,bordered:d,label:b,content:m,colon:g,type:u,styles:f}=e,{classNames:y}=o.useContext(p),h=Object.assign(Object.assign({},i),null==f?void 0:f.label),v=Object.assign(Object.assign({},s),null==f?void 0:f.content);return d?o.createElement(n,{colSpan:a,style:c,className:l()(r,{["".concat(t,"-item-").concat(u)]:"label"===u||"content"===u,[null==y?void 0:y.label]:(null==y?void 0:y.label)&&"label"===u,[null==y?void 0:y.content]:(null==y?void 0:y.content)&&"content"===u})},null!=b&&o.createElement("span",{style:h},b),null!=m&&o.createElement("span",{style:v},m)):o.createElement(n,{colSpan:a,style:c,className:l()("".concat(t,"-item"),r)},o.createElement("div",{className:"".concat(t,"-item-container")},null!=b&&o.createElement("span",{style:h,className:l()("".concat(t,"-item-label"),null==y?void 0:y.label,{["".concat(t,"-item-no-colon")]:!g})},b),null!=m&&o.createElement("span",{style:v,className:l()("".concat(t,"-item-content"),null==y?void 0:y.content)},m)))};function f(e,t,n){let{colon:a,prefixCls:l,bordered:r}=t,{component:c,type:i,showLabel:s,showContent:d,labelStyle:p,contentStyle:b,styles:m}=n;return e.map((e,t)=>{let{label:n,children:g,prefixCls:f=l,className:y,style:h,labelStyle:v,contentStyle:O,span:j=1,key:x,styles:w}=e;return"string"==typeof c?o.createElement(u,{key:"".concat(i,"-").concat(x||t),className:y,style:h,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},p),null==m?void 0:m.label),v),null==w?void 0:w.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},b),null==m?void 0:m.content),O),null==w?void 0:w.content)},span:j,colon:a,component:c,itemPrefixCls:f,bordered:r,label:s?n:null,content:d?g:null,type:i}):[o.createElement(u,{key:"label-".concat(x||t),className:y,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},p),null==m?void 0:m.label),h),v),null==w?void 0:w.label),span:1,colon:a,component:c[0],itemPrefixCls:f,bordered:r,label:n,type:"label"}),o.createElement(u,{key:"content-".concat(x||t),className:y,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},b),null==m?void 0:m.content),h),O),null==w?void 0:w.content),span:2*j-1,component:c[1],itemPrefixCls:f,bordered:r,content:g,type:"content"})]})}let y=e=>{let t=o.useContext(p),{prefixCls:n,vertical:a,row:l,index:r,bordered:c}=e;return a?o.createElement(o.Fragment,null,o.createElement("tr",{key:"label-".concat(r),className:"".concat(n,"-row")},f(l,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),o.createElement("tr",{key:"content-".concat(r),className:"".concat(n,"-row")},f(l,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):o.createElement("tr",{key:r,className:"".concat(n,"-row")},f(l,e,Object.assign({component:c?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))};var h=n(99841),v=n(18184),O=n(45431),j=n(61388);let x=(0,O.OF)("Descriptions",e=>(e=>{let{componentCls:t,extraColor:n,itemPaddingBottom:o,itemPaddingEnd:a,colonMarginRight:l,colonMarginLeft:r,titleMarginBottom:c}=e;return{[t]:Object.assign(Object.assign(Object.assign({},(0,v.dF)(e)),(e=>{let{componentCls:t,labelBg:n}=e;return{["&".concat(t,"-bordered")]:{["> ".concat(t,"-view")]:{border:"".concat((0,h.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit),"> table":{tableLayout:"auto"},["".concat(t,"-row")]:{borderBottom:"".concat((0,h.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit),"&:first-child":{"> th:first-child, > td:first-child":{borderStartStartRadius:e.borderRadiusLG}},"&:last-child":{borderBottom:"none","> th:first-child, > td:first-child":{borderEndStartRadius:e.borderRadiusLG}},["> ".concat(t,"-item-label, > ").concat(t,"-item-content")]:{padding:"".concat((0,h.zA)(e.padding)," ").concat((0,h.zA)(e.paddingLG)),borderInlineEnd:"".concat((0,h.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit),"&:last-child":{borderInlineEnd:"none"}},["> ".concat(t,"-item-label")]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},["&".concat(t,"-middle")]:{["".concat(t,"-row")]:{["> ".concat(t,"-item-label, > ").concat(t,"-item-content")]:{padding:"".concat((0,h.zA)(e.paddingSM)," ").concat((0,h.zA)(e.paddingLG))}}},["&".concat(t,"-small")]:{["".concat(t,"-row")]:{["> ".concat(t,"-item-label, > ").concat(t,"-item-content")]:{padding:"".concat((0,h.zA)(e.paddingXS)," ").concat((0,h.zA)(e.padding))}}}}}})(e)),{"&-rtl":{direction:"rtl"},["".concat(t,"-header")]:{display:"flex",alignItems:"center",marginBottom:c},["".concat(t,"-title")]:Object.assign(Object.assign({},v.L9),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),["".concat(t,"-extra")]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},["".concat(t,"-view")]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},["".concat(t,"-row")]:{"> th, > td":{paddingBottom:o,paddingInlineEnd:a},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},["".concat(t,"-item-label")]:{color:e.labelColor,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:"".concat((0,h.zA)(r)," ").concat((0,h.zA)(l))},["&".concat(t,"-item-no-colon::after")]:{content:'""'}},["".concat(t,"-item-no-label")]:{"&::after":{margin:0,content:'""'}},["".concat(t,"-item-content")]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},["".concat(t,"-item")]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",["".concat(t,"-item-label")]:{display:"inline-flex",alignItems:"baseline"},["".concat(t,"-item-content")]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{["".concat(t,"-row")]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{["".concat(t,"-row")]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}})((0,j.oX)(e,{})),e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}));var w=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};let C=e=>{let{prefixCls:t,title:n,extra:a,column:u,colon:f=!0,bordered:h,layout:v,children:O,className:j,rootClassName:C,style:S,size:E,labelStyle:k,contentStyle:z,styles:A,items:N,classNames:P}=e,B=w(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:I,direction:M,className:T,style:W,classNames:L,styles:H}=(0,c.TP)("descriptions"),R=I("descriptions",t),F=(0,s.A)(),V=o.useMemo(()=>{var e;return"number"==typeof u?u:null!=(e=(0,r.ko)(F,Object.assign(Object.assign({},d),u)))?e:3},[F,u]),D=function(e,t,n){let a=o.useMemo(()=>t||(0,b.A)(n).map(e=>Object.assign(Object.assign({},null==e?void 0:e.props),{key:e.key})),[t,n]);return o.useMemo(()=>a.map(t=>{var{span:n}=t,o=m(t,["span"]);return"filled"===n?Object.assign(Object.assign({},o),{filled:!0}):Object.assign(Object.assign({},o),{span:"number"==typeof n?n:(0,r.ko)(e,n)})}),[a,e])}(F,N,O),X=(0,i.A)(E),G=((e,t)=>{let[n,a]=(0,o.useMemo)(()=>(function(e,t){let n=[],o=[],a=!1,l=0;return e.filter(e=>e).forEach(e=>{let{filled:r}=e,c=g(e,["filled"]);if(r){o.push(c),n.push(o),o=[],l=0;return}let i=t-l;(l+=e.span||1)>=t?(l>t?(a=!0,o.push(Object.assign(Object.assign({},c),{span:i}))):o.push(c),n.push(o),o=[],l=0):o.push(c)}),o.length>0&&n.push(o),[n=n.map(e=>{let n=e.reduce((e,t)=>e+(t.span||1),0);if(n({labelStyle:k,contentStyle:z,styles:{content:Object.assign(Object.assign({},H.content),null==A?void 0:A.content),label:Object.assign(Object.assign({},H.label),null==A?void 0:A.label)},classNames:{label:l()(L.label,null==P?void 0:P.label),content:l()(L.content,null==P?void 0:P.content)}}),[k,z,A,P,L,H]);return _(o.createElement(p.Provider,{value:U},o.createElement("div",Object.assign({className:l()(R,T,L.root,null==P?void 0:P.root,{["".concat(R,"-").concat(X)]:X&&"default"!==X,["".concat(R,"-bordered")]:!!h,["".concat(R,"-rtl")]:"rtl"===M},j,C,Q,q),style:Object.assign(Object.assign(Object.assign(Object.assign({},W),H.root),null==A?void 0:A.root),S)},B),(n||a)&&o.createElement("div",{className:l()("".concat(R,"-header"),L.header,null==P?void 0:P.header),style:Object.assign(Object.assign({},H.header),null==A?void 0:A.header)},n&&o.createElement("div",{className:l()("".concat(R,"-title"),L.title,null==P?void 0:P.title),style:Object.assign(Object.assign({},H.title),null==A?void 0:A.title)},n),a&&o.createElement("div",{className:l()("".concat(R,"-extra"),L.extra,null==P?void 0:P.extra),style:Object.assign(Object.assign({},H.extra),null==A?void 0:A.extra)},a)),o.createElement("div",{className:"".concat(R,"-view")},o.createElement("table",null,o.createElement("tbody",null,G.map((e,t)=>o.createElement(y,{key:t,index:t,colon:f,prefixCls:R,vertical:"vertical"===v,bordered:h,row:e}))))))))};C.Item=e=>{let{children:t}=e;return t};let S=C},94600:(e,t,n)=>{n.d(t,{A:()=>u});var o=n(12115),a=n(29300),l=n.n(a),r=n(15982),c=n(9836),i=n(99841),s=n(18184),d=n(45431),p=n(61388);let b=(0,d.OF)("Divider",e=>{let t=(0,p.oX)(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[(e=>{let{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:o,lineWidth:a,textPaddingInline:l,orientationMargin:r,verticalMarginInline:c}=e;return{[t]:Object.assign(Object.assign({},(0,s.dF)(e)),{borderBlockStart:"".concat((0,i.zA)(a)," solid ").concat(o),"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:c,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:"".concat((0,i.zA)(a)," solid ").concat(o)},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:"".concat((0,i.zA)(e.marginLG)," 0")},["&-horizontal".concat(t,"-with-text")]:{display:"flex",alignItems:"center",margin:"".concat((0,i.zA)(e.dividerHorizontalWithTextGutterMargin)," 0"),color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:"0 ".concat(o),"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:"".concat((0,i.zA)(a)," solid transparent"),borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},["&-horizontal".concat(t,"-with-text-start")]:{"&::before":{width:"calc(".concat(r," * 100%)")},"&::after":{width:"calc(100% - ".concat(r," * 100%)")}},["&-horizontal".concat(t,"-with-text-end")]:{"&::before":{width:"calc(100% - ".concat(r," * 100%)")},"&::after":{width:"calc(".concat(r," * 100%)")}},["".concat(t,"-inner-text")]:{display:"inline-block",paddingBlock:0,paddingInline:l},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:"".concat((0,i.zA)(a)," 0 0")},["&-horizontal".concat(t,"-with-text").concat(t,"-dashed")]:{"&::before, &::after":{borderStyle:"dashed none none"}},["&-vertical".concat(t,"-dashed")]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:o,borderStyle:"dotted",borderWidth:"".concat((0,i.zA)(a)," 0 0")},["&-horizontal".concat(t,"-with-text").concat(t,"-dotted")]:{"&::before, &::after":{borderStyle:"dotted none none"}},["&-vertical".concat(t,"-dotted")]:{borderInlineStartWidth:a,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},["&-plain".concat(t,"-with-text")]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},["&-horizontal".concat(t,"-with-text-start").concat(t,"-no-default-orientation-margin-start")]:{"&::before":{width:0},"&::after":{width:"100%"},["".concat(t,"-inner-text")]:{paddingInlineStart:n}},["&-horizontal".concat(t,"-with-text-end").concat(t,"-no-default-orientation-margin-end")]:{"&::before":{width:"100%"},"&::after":{width:0},["".concat(t,"-inner-text")]:{paddingInlineEnd:n}}})}})(t),(e=>{let{componentCls:t}=e;return{[t]:{"&-horizontal":{["&".concat(t)]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}})(t)]},e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),{unitless:{orientationMargin:!0}});var m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};let g={small:"sm",middle:"md"},u=e=>{let{getPrefixCls:t,direction:n,className:a,style:i}=(0,r.TP)("divider"),{prefixCls:s,type:d="horizontal",orientation:p="center",orientationMargin:u,className:f,rootClassName:y,children:h,dashed:v,variant:O="solid",plain:j,style:x,size:w}=e,C=m(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),S=t("divider",s),[E,k,z]=b(S),A=g[(0,c.A)(w)],N=!!h,P=o.useMemo(()=>"left"===p?"rtl"===n?"end":"start":"right"===p?"rtl"===n?"start":"end":p,[n,p]),B="start"===P&&null!=u,I="end"===P&&null!=u,M=l()(S,a,k,z,"".concat(S,"-").concat(d),{["".concat(S,"-with-text")]:N,["".concat(S,"-with-text-").concat(P)]:N,["".concat(S,"-dashed")]:!!v,["".concat(S,"-").concat(O)]:"solid"!==O,["".concat(S,"-plain")]:!!j,["".concat(S,"-rtl")]:"rtl"===n,["".concat(S,"-no-default-orientation-margin-start")]:B,["".concat(S,"-no-default-orientation-margin-end")]:I,["".concat(S,"-").concat(A)]:!!A},f,y),T=o.useMemo(()=>"number"==typeof u?u:/^\d+$/.test(u)?Number(u):u,[u]);return E(o.createElement("div",Object.assign({className:M,style:Object.assign(Object.assign({},i),x)},C,{role:"separator"}),h&&"vertical"!==d&&o.createElement("span",{className:"".concat(S,"-inner-text"),style:{marginInlineStart:B?T:void 0,marginInlineEnd:I?T:void 0}},h)))}}}]); \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/13b76428-a8cda74c313da51b.js b/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/13b76428-a8cda74c313da51b.js deleted file mode 100644 index bcfeb207..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/13b76428-a8cda74c313da51b.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[586],{82940:function(e,t,n){e=n.nmd(e),e.exports=function(){"use strict";function t(){return V.apply(null,arguments)}function n(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function s(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function r(e){var t;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(t in e)if(i(e,t))return!1;return!0}function a(e){return void 0===e}function o(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function u(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function l(e,t){var n,s=[],i=e.length;for(n=0;n>>0;for(t=0;t0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,t-s.length)).toString().substr(1)+s}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null;var N=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,W=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,P={},R={};function C(e,t,n,s){var i=s;"string"==typeof s&&(i=function(){return this[s]()}),e&&(R[e]=i),t&&(R[t[0]]=function(){return x(i.apply(this,arguments),t[1],t[2])}),n&&(R[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function U(e,t){return e.isValid()?(P[t=H(t,e.localeData())]=P[t]||function(e){var t,n,s,i=e.match(N);for(n=0,s=i.length;n=0&&W.test(e);)e=e.replace(W,s),W.lastIndex=0,n-=1;return e}var F={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function L(e){return"string"==typeof e?F[e]||F[e.toLowerCase()]:void 0}function E(e){var t,n,s={};for(n in e)i(e,n)&&(t=L(n))&&(s[t]=e[n]);return s}var V,G,A,I={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},j=Object.keys?Object.keys:function(e){var t,n=[];for(t in e)i(e,t)&&n.push(t);return n},Z=/\d/,z=/\d\d/,$=/\d{3}/,q=/\d{4}/,B=/[+-]?\d{6}/,J=/\d\d?/,Q=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,K=/\d{1,3}/,ee=/\d{1,4}/,et=/[+-]?\d{1,6}/,en=/\d+/,es=/[+-]?\d+/,ei=/Z|[+-]\d\d:?\d\d/gi,er=/Z|[+-]\d\d(?::?\d\d)?/gi,ea=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,eo=/^[1-9]\d?/,eu=/^([1-9]\d|\d)/;function el(e,t,n){A[e]=O(t)?t:function(e,s){return e&&n?n:t}}function eh(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ed(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ec(e){var t=+e,n=0;return 0!==t&&isFinite(t)&&(n=ed(t)),n}A={};var ef={};function em(e,t){var n,s,i=t;for("string"==typeof e&&(e=[e]),o(t)&&(i=function(e,n){n[t]=ec(e)}),s=e.length,n=0;n68?1900:2e3)};var ew=ep("FullYear",!0);function ep(e,n){return function(s){return null!=s?(ek(this,e,s),t.updateOffset(this,n),this):ev(this,e)}}function ev(e,t){if(!e.isValid())return NaN;var n=e._d,s=e._isUTC;switch(t){case"Milliseconds":return s?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return s?n.getUTCSeconds():n.getSeconds();case"Minutes":return s?n.getUTCMinutes():n.getMinutes();case"Hours":return s?n.getUTCHours():n.getHours();case"Date":return s?n.getUTCDate():n.getDate();case"Day":return s?n.getUTCDay():n.getDay();case"Month":return s?n.getUTCMonth():n.getMonth();case"FullYear":return s?n.getUTCFullYear():n.getFullYear();default:return NaN}}function ek(e,t,n){var s,i,r,a;if(!(!e.isValid()||isNaN(n))){switch(s=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?s.setUTCMilliseconds(n):s.setMilliseconds(n));case"Seconds":return void(i?s.setUTCSeconds(n):s.setSeconds(n));case"Minutes":return void(i?s.setUTCMinutes(n):s.setMinutes(n));case"Hours":return void(i?s.setUTCHours(n):s.setHours(n));case"Date":return void(i?s.setUTCDate(n):s.setDate(n));case"FullYear":break;default:return}r=e.month(),a=29!==(a=e.date())||1!==r||ey(n)?a:28,i?s.setUTCFullYear(n,r,a):s.setFullYear(n,r,a)}}function eM(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=(t%12+12)%12;return e+=(t-n)/12,1===n?ey(e)?29:28:31-n%7%2}eA=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t=0?isFinite((o=new Date(e+400,t,n,s,i,r,a)).getFullYear())&&o.setFullYear(e):o=new Date(e,t,n,s,i,r,a),o}function eN(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,isFinite((t=new Date(Date.UTC.apply(null,n))).getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function eW(e,t,n){var s=7+t-n;return-((7+eN(e,0,s).getUTCDay()-t)%7)+s-1}function eP(e,t,n,s,i){var r,a,o=1+7*(t-1)+(7+n-s)%7+eW(e,s,i);return o<=0?a=eg(r=e-1)+o:o>eg(e)?(r=e+1,a=o-eg(e)):(r=e,a=o),{year:r,dayOfYear:a}}function eR(e,t,n){var s,i,r=eW(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?s=a+eC(i=e.year()-1,t,n):a>eC(e.year(),t,n)?(s=a-eC(e.year(),t,n),i=e.year()+1):(i=e.year(),s=a),{week:s,year:i}}function eC(e,t,n){var s=eW(e,t,n),i=eW(e+1,t,n);return(eg(e)-s+i)/7}function eU(e,t){return e.slice(t,7).concat(e.slice(0,t))}C("w",["ww",2],"wo","week"),C("W",["WW",2],"Wo","isoWeek"),el("w",J,eo),el("ww",J,z),el("W",J,eo),el("WW",J,z),e_(["w","ww","W","WW"],function(e,t,n,s){t[s.substr(0,1)]=ec(e)}),C("d",0,"do","day"),C("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),C("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),C("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),C("e",0,0,"weekday"),C("E",0,0,"isoWeekday"),el("d",J),el("e",J),el("E",J),el("dd",function(e,t){return t.weekdaysMinRegex(e)}),el("ddd",function(e,t){return t.weekdaysShortRegex(e)}),el("dddd",function(e,t){return t.weekdaysRegex(e)}),e_(["dd","ddd","dddd"],function(e,t,n,s){var i=n._locale.weekdaysParse(e,s,n._strict);null!=i?t.d=i:c(n).invalidWeekday=e}),e_(["d","e","E"],function(e,t,n,s){t[s]=ec(e)});var eH="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function eF(e,t,n){var s,i,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(s=0,this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[];s<7;++s)r=d([2e3,1]).day(s),this._minWeekdaysParse[s]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[s]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[s]=this.weekdays(r,"").toLocaleLowerCase();if(n)if("dddd"===t)return -1!==(i=eA.call(this._weekdaysParse,a))?i:null;else if("ddd"===t)return -1!==(i=eA.call(this._shortWeekdaysParse,a))?i:null;else return -1!==(i=eA.call(this._minWeekdaysParse,a))?i:null;return"dddd"===t?-1!==(i=eA.call(this._weekdaysParse,a))||-1!==(i=eA.call(this._shortWeekdaysParse,a))||-1!==(i=eA.call(this._minWeekdaysParse,a))?i:null:"ddd"===t?-1!==(i=eA.call(this._shortWeekdaysParse,a))||-1!==(i=eA.call(this._weekdaysParse,a))||-1!==(i=eA.call(this._minWeekdaysParse,a))?i:null:-1!==(i=eA.call(this._minWeekdaysParse,a))||-1!==(i=eA.call(this._weekdaysParse,a))||-1!==(i=eA.call(this._shortWeekdaysParse,a))?i:null}function eL(){function e(e,t){return t.length-e.length}var t,n,s,i,r,a=[],o=[],u=[],l=[];for(t=0;t<7;t++)n=d([2e3,1]).day(t),s=eh(this.weekdaysMin(n,"")),i=eh(this.weekdaysShort(n,"")),r=eh(this.weekdays(n,"")),a.push(s),o.push(i),u.push(r),l.push(s),l.push(i),l.push(r);a.sort(e),o.sort(e),u.sort(e),l.sort(e),this._weekdaysRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+u.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+o.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+a.join("|")+")","i")}function eE(){return this.hours()%12||12}function eV(e,t){C(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function eG(e,t){return t._meridiemParse}C("H",["HH",2],0,"hour"),C("h",["hh",2],0,eE),C("k",["kk",2],0,function(){return this.hours()||24}),C("hmm",0,0,function(){return""+eE.apply(this)+x(this.minutes(),2)}),C("hmmss",0,0,function(){return""+eE.apply(this)+x(this.minutes(),2)+x(this.seconds(),2)}),C("Hmm",0,0,function(){return""+this.hours()+x(this.minutes(),2)}),C("Hmmss",0,0,function(){return""+this.hours()+x(this.minutes(),2)+x(this.seconds(),2)}),eV("a",!0),eV("A",!1),el("a",eG),el("A",eG),el("H",J,eu),el("h",J,eo),el("k",J,eo),el("HH",J,z),el("hh",J,z),el("kk",J,z),el("hmm",Q),el("hmmss",X),el("Hmm",Q),el("Hmmss",X),em(["H","HH"],3),em(["k","kk"],function(e,t,n){var s=ec(e);t[3]=24===s?0:s}),em(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e}),em(["h","hh"],function(e,t,n){t[3]=ec(e),c(n).bigHour=!0}),em("hmm",function(e,t,n){var s=e.length-2;t[3]=ec(e.substr(0,s)),t[4]=ec(e.substr(s)),c(n).bigHour=!0}),em("hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[3]=ec(e.substr(0,s)),t[4]=ec(e.substr(s,2)),t[5]=ec(e.substr(i)),c(n).bigHour=!0}),em("Hmm",function(e,t,n){var s=e.length-2;t[3]=ec(e.substr(0,s)),t[4]=ec(e.substr(s))}),em("Hmmss",function(e,t,n){var s=e.length-4,i=e.length-2;t[3]=ec(e.substr(0,s)),t[4]=ec(e.substr(s,2)),t[5]=ec(e.substr(i))});var eA,eI,ej=ep("Hours",!0),eZ={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:eD,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:eH,meridiemParse:/[ap]\.?m?\.?/i},ez={},e$={};function eq(e){return e?e.toLowerCase().replace("_","-"):e}function eB(t){if(void 0===ez[t]&&e&&e.exports&&t&&t.match("^[^/\\\\]*$"))try{eI._abbr;var n=Error("Cannot find module 'undefined'");throw n.code="MODULE_NOT_FOUND",n}catch(e){ez[t]=null}return ez[t]}function eJ(e,t){var n;return e&&((n=a(t)?eX(e):eQ(e,t))?eI=n:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),eI._abbr}function eQ(e,t){if(null===t)return delete ez[e],null;var n,s=eZ;if(t.abbr=e,null!=ez[e])S("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),s=ez[e]._config;else if(null!=t.parentLocale)if(null!=ez[t.parentLocale])s=ez[t.parentLocale]._config;else{if(null==(n=eB(t.parentLocale)))return e$[t.parentLocale]||(e$[t.parentLocale]=[]),e$[t.parentLocale].push({name:e,config:t}),null;s=n._config}return ez[e]=new T(b(s,t)),e$[e]&&e$[e].forEach(function(e){eQ(e.name,e.config)}),eJ(e),ez[e]}function eX(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return eI;if(!n(e)){if(t=eB(e))return t;e=[e]}return function(e){for(var t,n,s,i,r=0;r0;){if(s=eB(i.slice(0,t).join("-")))return s;if(n&&n.length>=t&&function(e,t){var n,s=Math.min(e.length,t.length);for(n=0;n=t-1)break;t--}r++}return eI}(e)}function eK(e){var t,n=e._a;return n&&-2===c(e).overflow&&(t=n[1]<0||n[1]>11?1:n[2]<1||n[2]>eM(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,c(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),c(e)._overflowWeeks&&-1===t&&(t=7),c(e)._overflowWeekday&&-1===t&&(t=8),c(e).overflow=t),e}var e0=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e1=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e2=/Z|[+-]\d\d(?::?\d\d)?/,e4=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],e3=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],e6=/^\/?Date\((-?\d+)/i,e5=/^(?:(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{4}))$/,e7={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function e9(e){var t,n,s,i,r,a,o=e._i,u=e0.exec(o)||e1.exec(o),l=e4.length,h=e3.length;if(u){for(t=0,c(e).iso=!0,n=l;t7)&&(h=!0)):(o=n._locale._week.dow,u=n._locale._week.doy,d=eR(tr(),o,u),i=te(s.gg,n._a[0],d.year),r=te(s.w,d.week),null!=s.d?((a=s.d)<0||a>6)&&(h=!0):null!=s.e?(a=s.e+o,(s.e<0||s.e>6)&&(h=!0)):a=o),r<1||r>eC(i,o,u)?c(n)._overflowWeeks=!0:null!=h?c(n)._overflowWeekday=!0:(l=eP(i,r,a,o,u),n._a[0]=l.year,n._dayOfYear=l.dayOfYear)),null!=e._dayOfYear&&(w=te(e._a[0],y[0]),(e._dayOfYear>eg(w)||0===e._dayOfYear)&&(c(e)._overflowDayOfYear=!0),_=eN(w,0,e._dayOfYear),e._a[1]=_.getUTCMonth(),e._a[2]=_.getUTCDate()),m=0;m<3&&null==e._a[m];++m)e._a[m]=p[m]=y[m];for(;m<7;m++)e._a[m]=p[m]=null==e._a[m]?+(2===m):e._a[m];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?eN:ex).apply(null,p),g=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==g&&(c(e).weekdayMismatch=!0)}}function tn(e){if(e._f===t.ISO_8601)return void e9(e);if(e._f===t.RFC_2822)return void e8(e);e._a=[],c(e).empty=!0;var n,s,r,a,o,u,l,h,d,f,m,_=""+e._i,y=_.length,g=0;for(o=0,m=(l=H(e._f,e._locale).match(N)||[]).length;o0&&c(e).unusedInput.push(d),_=_.slice(_.indexOf(u)+u.length),g+=u.length),R[h])u?c(e).empty=!1:c(e).unusedTokens.push(h),null!=u&&i(ef,h)&&ef[h](u,e._a,e,h);else e._strict&&!u&&c(e).unusedTokens.push(h);c(e).charsLeftOver=y-g,_.length>0&&c(e).unusedInput.push(_),e._a[3]<=12&&!0===c(e).bigHour&&e._a[3]>0&&(c(e).bigHour=void 0),c(e).parsedDateParts=e._a.slice(0),c(e).meridiem=e._meridiem,e._a[3]=(n=e._locale,s=e._a[3],null==(r=e._meridiem)?s:null!=n.meridiemHour?n.meridiemHour(s,r):(null!=n.isPM&&((a=n.isPM(r))&&s<12&&(s+=12),a||12!==s||(s=0)),s)),null!==(f=c(e).era)&&(e._a[0]=e._locale.erasConvertYear(f,e._a[0])),tt(e),eK(e)}function ts(e){var i=e._i,r=e._f;return(e._locale=e._locale||eX(e._l),null===i||void 0===r&&""===i)?m({nullInput:!0}):("string"==typeof i&&(e._i=i=e._locale.preparse(i)),k(i))?new v(eK(i)):(u(i)?e._d=i:n(r)?!function(e){var t,n,s,i,r,a,o=!1,u=e._f.length;if(0===u){c(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:m()});function tu(e,t){var s,i;if(1===t.length&&n(t[0])&&(t=t[0]),!t.length)return tr();for(i=1,s=t[0];i=0?new Date(e+400,t,n)-126227808e5:new Date(e,t,n).valueOf()}function tC(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-126227808e5:Date.UTC(e,t,n)}function tU(e,t){return t.erasAbbrRegex(e)}function tH(){var e,t,n,s,i,r=[],a=[],o=[],u=[],l=this.eras();for(e=0,t=l.length;e(r=eC(e,s,i))&&(t=r),tE.call(this,e,t,n,s,i))}function tE(e,t,n,s,i){var r=eP(e,t,n,s,i),a=eN(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}C("N",0,0,"eraAbbr"),C("NN",0,0,"eraAbbr"),C("NNN",0,0,"eraAbbr"),C("NNNN",0,0,"eraName"),C("NNNNN",0,0,"eraNarrow"),C("y",["y",1],"yo","eraYear"),C("y",["yy",2],0,"eraYear"),C("y",["yyy",3],0,"eraYear"),C("y",["yyyy",4],0,"eraYear"),el("N",tU),el("NN",tU),el("NNN",tU),el("NNNN",function(e,t){return t.erasNameRegex(e)}),el("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),em(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,s){var i=n._locale.erasParse(e,s,n._strict);i?c(n).era=i:c(n).invalidEra=e}),el("y",en),el("yy",en),el("yyy",en),el("yyyy",en),el("yo",function(e,t){return t._eraYearOrdinalRegex||en}),em(["y","yy","yyy","yyyy"],0),em(["yo"],function(e,t,n,s){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[0]=n._locale.eraYearOrdinalParse(e,i):t[0]=parseInt(e,10)}),C(0,["gg",2],0,function(){return this.weekYear()%100}),C(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tF("gggg","weekYear"),tF("ggggg","weekYear"),tF("GGGG","isoWeekYear"),tF("GGGGG","isoWeekYear"),el("G",es),el("g",es),el("GG",J,z),el("gg",J,z),el("GGGG",ee,q),el("gggg",ee,q),el("GGGGG",et,B),el("ggggg",et,B),e_(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,s){t[s.substr(0,2)]=ec(e)}),e_(["gg","GG"],function(e,n,s,i){n[i]=t.parseTwoDigitYear(e)}),C("Q",0,"Qo","quarter"),el("Q",Z),em("Q",function(e,t){t[1]=(ec(e)-1)*3}),C("D",["DD",2],"Do","date"),el("D",J,eo),el("DD",J,z),el("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),em(["D","DD"],2),em("Do",function(e,t){t[2]=ec(e.match(J)[0])});var tV=ep("Date",!0);C("DDD",["DDDD",3],"DDDo","dayOfYear"),el("DDD",K),el("DDDD",$),em(["DDD","DDDD"],function(e,t,n){n._dayOfYear=ec(e)}),C("m",["mm",2],0,"minute"),el("m",J,eu),el("mm",J,z),em(["m","mm"],4);var tG=ep("Minutes",!1);C("s",["ss",2],0,"second"),el("s",J,eu),el("ss",J,z),em(["s","ss"],5);var tA=ep("Seconds",!1);for(C("S",0,0,function(){return~~(this.millisecond()/100)}),C(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),C(0,["SSS",3],0,"millisecond"),C(0,["SSSS",4],0,function(){return 10*this.millisecond()}),C(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),C(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),C(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),C(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),C(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),el("S",K,Z),el("SS",K,z),el("SSS",K,$),_="SSSS";_.length<=9;_+="S")el(_,en);function tI(e,t){t[6]=ec(("0."+e)*1e3)}for(_="S";_.length<=9;_+="S")em(_,tI);y=ep("Milliseconds",!1),C("z",0,0,"zoneAbbr"),C("zz",0,0,"zoneName");var tj=v.prototype;function tZ(e){return e}tj.add=tO,tj.calendar=function(e,a){if(1==arguments.length)if(arguments[0]){var l,h,d,c;if(l=arguments[0],k(l)||u(l)||tT(l)||o(l)||(d=n(h=l),c=!1,d&&(c=0===h.filter(function(e){return!o(e)&&tT(h)}).length),d&&c)||function(e){var t,n,a=s(e)&&!r(e),o=!1,u=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],l=u.length;for(t=0;tn.valueOf():n.valueOf()n.year()||n.year()>9999)return U(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ");if(O(Date.prototype.toISOString))if(t)return this.toDate().toISOString();else return new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",U(n,"Z"));return U(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},tj.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,n,s="moment",i="";return this.isLocal()||(s=0===this.utcOffset()?"moment.utc":"moment.parseZone",i="Z"),e="["+s+'("]',t=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",n=i+'[")]',this.format(e+t+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(tj[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),tj.toJSON=function(){return this.isValid()?this.toISOString():null},tj.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},tj.unix=function(){return Math.floor(this.valueOf()/1e3)},tj.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},tj.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},tj.eraName=function(){var e,t,n,s=this.localeData().eras();for(e=0,t=s.length;eMath.abs(e)&&!s&&(e*=60);return!this._isUTC&&n&&(i=tg(this)),this._offset=e,this._isUTC=!0,null!=i&&this.add(i,"m"),r!==e&&(!n||this._changeInProgress?tS(this,tk(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},tj.utc=function(e){return this.utcOffset(0,e)},tj.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(tg(this),"m")),this},tj.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=t_(ei,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},tj.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?tr(e).utcOffset():0,(this.utcOffset()-e)%60==0)},tj.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},tj.isLocal=function(){return!!this.isValid()&&!this._isUTC},tj.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},tj.isUtc=tw,tj.isUTC=tw,tj.zoneAbbr=function(){return this._isUTC?"UTC":""},tj.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},tj.dates=D("dates accessor is deprecated. Use date instead.",tV),tj.months=D("months accessor is deprecated. Use month instead",eb),tj.years=D("years accessor is deprecated. Use year instead",ew),tj.zone=D("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),tj.isDSTShifted=D("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e,t={};return p(t,this),(t=ts(t))._a?(e=t._isUTC?d(t._a):tr(t._a),this._isDSTShifted=this.isValid()&&function(e,t,n){var s,i=Math.min(e.length,t.length),r=Math.abs(e.length-t.length),a=0;for(s=0;s0):this._isDSTShifted=!1,this._isDSTShifted});var tz=T.prototype;function t$(e,t,n,s){var i=eX(),r=d().set(s,t);return i[n](r,e)}function tq(e,t,n){if(o(e)&&(t=e,e=void 0),e=e||"",null!=t)return t$(e,t,n,"month");var s,i=[];for(s=0;s<12;s++)i[s]=t$(e,s,n,"month");return i}function tB(e,t,n,s){"boolean"==typeof e||(n=t=e,e=!1),o(t)&&(n=t,t=void 0),t=t||"";var i,r=eX(),a=e?r._week.dow:0,u=[];if(null!=n)return t$(t,(n+a)%7,s,"day");for(i=0;i<7;i++)u[i]=t$(t,(i+a)%7,s,"day");return u}tz.calendar=function(e,t,n){var s=this._calendar[e]||this._calendar.sameElse;return O(s)?s.call(t,n):s},tz.longDateFormat=function(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(N).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},tz.invalidDate=function(){return this._invalidDate},tz.ordinal=function(e){return this._ordinal.replace("%d",e)},tz.preparse=tZ,tz.postformat=tZ,tz.relativeTime=function(e,t,n,s){var i=this._relativeTime[n];return O(i)?i(e,t,n,s):i.replace(/%d/i,e)},tz.pastFuture=function(e,t){var n=this._relativeTime[e>0?"future":"past"];return O(n)?n(t):n.replace(/%s/i,t)},tz.set=function(e){var t,n;for(n in e)i(e,n)&&(O(t=e[n])?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},tz.eras=function(e,n){var s,i,r,a=this._eras||eX("en")._eras;for(s=0,i=a.length;s=0)return u[s]},tz.erasConvertYear=function(e,n){var s=e.since<=e.until?1:-1;return void 0===n?t(e.since).year():t(e.since).year()+(n-e.offset)*s},tz.erasAbbrRegex=function(e){return i(this,"_erasAbbrRegex")||tH.call(this),e?this._erasAbbrRegex:this._erasRegex},tz.erasNameRegex=function(e){return i(this,"_erasNameRegex")||tH.call(this),e?this._erasNameRegex:this._erasRegex},tz.erasNarrowRegex=function(e){return i(this,"_erasNarrowRegex")||tH.call(this),e?this._erasNarrowRegex:this._erasRegex},tz.months=function(e,t){return e?n(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||eY).test(t)?"format":"standalone"][e.month()]:n(this._months)?this._months:this._months.standalone},tz.monthsShort=function(e,t){return e?n(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[eY.test(t)?"format":"standalone"][e.month()]:n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},tz.monthsParse=function(e,t,n){var s,i,r;if(this._monthsParseExact)return eS.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),s=0;s<12;s++){if(i=d([2e3,s]),n&&!this._longMonthsParse[s]&&(this._longMonthsParse[s]=RegExp("^"+this.months(i,"").replace(".","")+"$","i"),this._shortMonthsParse[s]=RegExp("^"+this.monthsShort(i,"").replace(".","")+"$","i")),n||this._monthsParse[s]||(r="^"+this.months(i,"")+"|^"+this.monthsShort(i,""),this._monthsParse[s]=RegExp(r.replace(".",""),"i")),n&&"MMMM"===t&&this._longMonthsParse[s].test(e))return s;if(n&&"MMM"===t&&this._shortMonthsParse[s].test(e))return s;if(!n&&this._monthsParse[s].test(e))return s}},tz.monthsRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||eT.call(this),e)?this._monthsStrictRegex:this._monthsRegex:(i(this,"_monthsRegex")||(this._monthsRegex=ea),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},tz.monthsShortRegex=function(e){return this._monthsParseExact?(i(this,"_monthsRegex")||eT.call(this),e)?this._monthsShortStrictRegex:this._monthsShortRegex:(i(this,"_monthsShortRegex")||(this._monthsShortRegex=ea),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},tz.week=function(e){return eR(e,this._week.dow,this._week.doy).week},tz.firstDayOfYear=function(){return this._week.doy},tz.firstDayOfWeek=function(){return this._week.dow},tz.weekdays=function(e,t){var s=n(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?eU(s,this._week.dow):e?s[e.day()]:s},tz.weekdaysMin=function(e){return!0===e?eU(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},tz.weekdaysShort=function(e){return!0===e?eU(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},tz.weekdaysParse=function(e,t,n){var s,i,r;if(this._weekdaysParseExact)return eF.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),s=0;s<7;s++){if(i=d([2e3,1]).day(s),n&&!this._fullWeekdaysParse[s]&&(this._fullWeekdaysParse[s]=RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[s]=RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[s]=RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[s]||(r="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[s]=RegExp(r.replace(".",""),"i")),n&&"dddd"===t&&this._fullWeekdaysParse[s].test(e))return s;if(n&&"ddd"===t&&this._shortWeekdaysParse[s].test(e))return s;if(n&&"dd"===t&&this._minWeekdaysParse[s].test(e))return s;else if(!n&&this._weekdaysParse[s].test(e))return s}},tz.weekdaysRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eL.call(this),e)?this._weekdaysStrictRegex:this._weekdaysRegex:(i(this,"_weekdaysRegex")||(this._weekdaysRegex=ea),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},tz.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eL.call(this),e)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(i(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ea),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},tz.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(i(this,"_weekdaysRegex")||eL.call(this),e)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(i(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ea),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},tz.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},tz.meridiem=function(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"},eJ("en",{eras:[{since:"0001-01-01",until:Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=1===ec(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+n}}),t.lang=D("moment.lang is deprecated. Use moment.locale instead.",eJ),t.langData=D("moment.langData is deprecated. Use moment.localeData instead.",eX);var tJ=Math.abs;function tQ(e,t,n,s){var i=tk(t,n);return e._milliseconds+=s*i._milliseconds,e._days+=s*i._days,e._months+=s*i._months,e._bubble()}function tX(e){return e<0?Math.floor(e):Math.ceil(e)}function tK(e){return 4800*e/146097}function t0(e){return 146097*e/4800}function t1(e){return function(){return this.as(e)}}var t2=t1("ms"),t4=t1("s"),t3=t1("m"),t6=t1("h"),t5=t1("d"),t7=t1("w"),t9=t1("M"),t8=t1("Q"),ne=t1("y");function nt(e){return function(){return this.isValid()?this._data[e]:NaN}}var nn=nt("milliseconds"),ns=nt("seconds"),ni=nt("minutes"),nr=nt("hours"),na=nt("days"),no=nt("months"),nu=nt("years"),nl=Math.round,nh={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function nd(e,t,n,s,i){return i.relativeTime(t||1,!!n,e,s)}var nc=Math.abs;function nf(e){return(e>0)-(e<0)||+e}function nm(){if(!this.isValid())return this.localeData().invalidDate();var e,t,n,s,i,r,a,o,u=nc(this._milliseconds)/1e3,l=nc(this._days),h=nc(this._months),d=this.asSeconds();return d?(e=ed(u/60),t=ed(e/60),u%=60,e%=60,n=ed(h/12),h%=12,s=u?u.toFixed(3).replace(/\.?0+$/,""):"",i=d<0?"-":"",r=nf(this._months)!==nf(d)?"-":"",a=nf(this._days)!==nf(d)?"-":"",o=nf(this._milliseconds)!==nf(d)?"-":"",i+"P"+(n?r+n+"Y":"")+(h?r+h+"M":"")+(l?a+l+"D":"")+(t||e||u?"T":"")+(t?o+t+"H":"")+(e?o+e+"M":"")+(u?o+s+"S":"")):"P0D"}var n_=th.prototype;return n_.isValid=function(){return this._isValid},n_.abs=function(){var e=this._data;return this._milliseconds=tJ(this._milliseconds),this._days=tJ(this._days),this._months=tJ(this._months),e.milliseconds=tJ(e.milliseconds),e.seconds=tJ(e.seconds),e.minutes=tJ(e.minutes),e.hours=tJ(e.hours),e.months=tJ(e.months),e.years=tJ(e.years),this},n_.add=function(e,t){return tQ(this,e,t,1)},n_.subtract=function(e,t){return tQ(this,e,t,-1)},n_.as=function(e){if(!this.isValid())return NaN;var t,n,s=this._milliseconds;if("month"===(e=L(e))||"quarter"===e||"year"===e)switch(t=this._days+s/864e5,n=this._months+tK(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(t0(this._months)),e){case"week":return t/7+s/6048e5;case"day":return t+s/864e5;case"hour":return 24*t+s/36e5;case"minute":return 1440*t+s/6e4;case"second":return 86400*t+s/1e3;case"millisecond":return Math.floor(864e5*t)+s;default:throw Error("Unknown unit "+e)}},n_.asMilliseconds=t2,n_.asSeconds=t4,n_.asMinutes=t3,n_.asHours=t6,n_.asDays=t5,n_.asWeeks=t7,n_.asMonths=t9,n_.asQuarters=t8,n_.asYears=ne,n_.valueOf=t2,n_._bubble=function(){var e,t,n,s,i,r=this._milliseconds,a=this._days,o=this._months,u=this._data;return r>=0&&a>=0&&o>=0||r<=0&&a<=0&&o<=0||(r+=864e5*tX(t0(o)+a),a=0,o=0),u.milliseconds=r%1e3,u.seconds=(e=ed(r/1e3))%60,u.minutes=(t=ed(e/60))%60,u.hours=(n=ed(t/60))%24,a+=ed(n/24),o+=i=ed(tK(a)),a-=tX(t0(i)),s=ed(o/12),o%=12,u.days=a,u.months=o,u.years=s,this},n_.clone=function(){return tk(this)},n_.get=function(e){return e=L(e),this.isValid()?this[e+"s"]():NaN},n_.milliseconds=nn,n_.seconds=ns,n_.minutes=ni,n_.hours=nr,n_.days=na,n_.weeks=function(){return ed(this.days()/7)},n_.months=no,n_.years=nu,n_.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var n,s,i,r,a,o,u,l,h,d,c,f,m,_=!1,y=nh;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(_=e),"object"==typeof t&&(y=Object.assign({},nh,t),null!=t.s&&null==t.ss&&(y.ss=t.s-1)),f=this.localeData(),n=!_,s=y,i=tk(this).abs(),r=nl(i.as("s")),a=nl(i.as("m")),o=nl(i.as("h")),u=nl(i.as("d")),l=nl(i.as("M")),h=nl(i.as("w")),d=nl(i.as("y")),c=r<=s.ss&&["s",r]||r0,c[4]=f,m=nd.apply(null,c),_&&(m=f.pastFuture(+this,m)),f.postformat(m)},n_.toISOString=nm,n_.toString=nm,n_.toJSON=nm,n_.locale=tN,n_.localeData=tP,n_.toIsoString=D("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",nm),n_.lang=tW,C("X",0,0,"unix"),C("x",0,0,"valueOf"),el("x",es),el("X",/[+-]?\d+(\.\d{1,3})?/),em("X",function(e,t,n){n._d=new Date(1e3*parseFloat(e))}),em("x",function(e,t,n){n._d=new Date(ec(e))}),t.version="2.30.1",V=tr,t.fn=tj,t.min=function(){var e=[].slice.call(arguments,0);return tu("isBefore",e)},t.max=function(){var e=[].slice.call(arguments,0);return tu("isAfter",e)},t.now=function(){return Date.now?Date.now():+new Date},t.utc=d,t.unix=function(e){return tr(1e3*e)},t.months=function(e,t){return tq(e,t,"months")},t.isDate=u,t.locale=eJ,t.invalid=m,t.duration=tk,t.isMoment=k,t.weekdays=function(e,t,n){return tB(e,t,n,"weekdays")},t.parseZone=function(){return tr.apply(null,arguments).parseZone()},t.localeData=eX,t.isDuration=td,t.monthsShort=function(e,t){return tq(e,t,"monthsShort")},t.weekdaysMin=function(e,t,n){return tB(e,t,n,"weekdaysMin")},t.defineLocale=eQ,t.updateLocale=function(e,t){if(null!=t){var n,s,i=eZ;null!=ez[e]&&null!=ez[e].parentLocale?ez[e].set(b(ez[e]._config,t)):(null!=(s=eB(e))&&(i=s._config),t=b(i,t),null==s&&(t.abbr=e),(n=new T(t)).parentLocale=ez[e],ez[e]=n),eJ(e)}else null!=ez[e]&&(null!=ez[e].parentLocale?(ez[e]=ez[e].parentLocale,e===eJ()&&eJ(e)):null!=ez[e]&&delete ez[e]);return ez[e]},t.locales=function(){return j(ez)},t.weekdaysShort=function(e,t,n){return tB(e,t,n,"weekdaysShort")},t.normalizeUnits=L,t.relativeTimeRounding=function(e){return void 0===e?nl:"function"==typeof e&&(nl=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==nh[e]&&(void 0===t?nh[e]:(nh[e]=t,"s"===e&&(nh.ss=t-1),!0))},t.calendarFormat=function(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},t.prototype=tj,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t}()}}]); \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1483-268c5128c58279f2.js b/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1483-268c5128c58279f2.js deleted file mode 100644 index b36e4cc8..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1483-268c5128c58279f2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1483],{7744:(e,t,n)=>{n.d(t,{A:()=>Q});var o=n(12115),a=n(79630);let c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"};var i=n(35030),r=o.forwardRef(function(e,t){return o.createElement(i.A,(0,a.A)({},e,{ref:t,icon:c}))}),l=n(21419),s=o.forwardRef(function(e,t){return o.createElement(i.A,(0,a.A)({},e,{ref:t,icon:l.A}))}),d=n(83329),m=n(32002),u=n(29300),p=n.n(u),g=n(40419),b=n(86608),v=n(27061),h=n(21858),f=n(48804),S=n(17233),C=n(40032);n(9587);let y={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};var x=[10,20,50,100];let A=function(e){var t=e.pageSizeOptions,n=void 0===t?x:t,a=e.locale,c=e.changeSize,i=e.pageSize,r=e.goButton,l=e.quickGo,s=e.rootPrefixCls,d=e.disabled,m=e.buildOptionText,u=e.showSizeChanger,p=e.sizeChangerRender,g=o.useState(""),b=(0,h.A)(g,2),v=b[0],f=b[1],C=function(){return!v||Number.isNaN(v)?void 0:Number(v)},y="function"==typeof m?m:function(e){return"".concat(e," ").concat(a.items_per_page)},A=function(e){""!==v&&(e.keyCode===S.A.ENTER||"click"===e.type)&&(f(""),null==l||l(C()))},k="".concat(s,"-options");if(!u&&!l)return null;var I=null,z=null,w=null;return u&&p&&(I=p({disabled:d,size:i,onSizeChange:function(e){null==c||c(Number(e))},"aria-label":a.page_size,className:"".concat(k,"-size-changer"),options:(n.some(function(e){return e.toString()===i.toString()})?n:n.concat([i]).sort(function(e,t){return(Number.isNaN(Number(e))?0:Number(e))-(Number.isNaN(Number(t))?0:Number(t))})).map(function(e){return{label:y(e),value:e}})})),l&&(r&&(w="boolean"==typeof r?o.createElement("button",{type:"button",onClick:A,onKeyUp:A,disabled:d,className:"".concat(k,"-quick-jumper-button")},a.jump_to_confirm):o.createElement("span",{onClick:A,onKeyUp:A},r)),z=o.createElement("div",{className:"".concat(k,"-quick-jumper")},a.jump_to,o.createElement("input",{disabled:d,type:"text",value:v,onChange:function(e){f(e.target.value)},onKeyUp:A,onBlur:function(e){!r&&""!==v&&(f(""),e.relatedTarget&&(e.relatedTarget.className.indexOf("".concat(s,"-item-link"))>=0||e.relatedTarget.className.indexOf("".concat(s,"-item"))>=0)||null==l||l(C()))},"aria-label":a.page}),a.page,w)),o.createElement("li",{className:k},I,z)},k=function(e){var t=e.rootPrefixCls,n=e.page,a=e.active,c=e.className,i=e.showTitle,r=e.onClick,l=e.onKeyPress,s=e.itemRender,d="".concat(t,"-item"),m=p()(d,"".concat(d,"-").concat(n),(0,g.A)((0,g.A)({},"".concat(d,"-active"),a),"".concat(d,"-disabled"),!n),c),u=s(n,"page",o.createElement("a",{rel:"nofollow"},n));return u?o.createElement("li",{title:i?String(n):null,className:m,onClick:function(){r(n)},onKeyDown:function(e){l(e,r,n)},tabIndex:0},u):null};var I=function(e,t,n){return n};function z(){}function w(e){var t=Number(e);return"number"==typeof t&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function O(e,t,n){return Math.floor((n-1)/(void 0===e?t:e))+1}let B=function(e){var t,n,c,i,r=e.prefixCls,l=void 0===r?"rc-pagination":r,s=e.selectPrefixCls,d=e.className,m=e.current,u=e.defaultCurrent,x=e.total,B=void 0===x?0:x,j=e.pageSize,E=e.defaultPageSize,N=e.onChange,H=void 0===N?z:N,T=e.hideOnSinglePage,M=e.align,P=e.showPrevNextJumpers,R=e.showQuickJumper,D=e.showLessItems,W=e.showTitle,L=void 0===W||W,_=e.onShowSizeChange,q=void 0===_?z:_,X=e.locale,F=void 0===X?y:X,K=e.style,Y=e.totalBoundaryShowSizeChanger,G=e.disabled,V=e.simple,U=e.showTotal,Q=e.showSizeChanger,J=void 0===Q?B>(void 0===Y?50:Y):Q,Z=e.sizeChangerRender,$=e.pageSizeOptions,ee=e.itemRender,et=void 0===ee?I:ee,en=e.jumpPrevIcon,eo=e.jumpNextIcon,ea=e.prevIcon,ec=e.nextIcon,ei=o.useRef(null),er=(0,f.A)(10,{value:j,defaultValue:void 0===E?10:E}),el=(0,h.A)(er,2),es=el[0],ed=el[1],em=(0,f.A)(1,{value:m,defaultValue:void 0===u?1:u,postState:function(e){return Math.max(1,Math.min(e,O(void 0,es,B)))}}),eu=(0,h.A)(em,2),ep=eu[0],eg=eu[1],eb=o.useState(ep),ev=(0,h.A)(eb,2),eh=ev[0],ef=ev[1];(0,o.useEffect)(function(){ef(ep)},[ep]);var eS=Math.max(1,ep-(D?3:5)),eC=Math.min(O(void 0,es,B),ep+(D?3:5));function ey(t,n){var a=t||o.createElement("button",{type:"button","aria-label":n,className:"".concat(l,"-item-link")});return"function"==typeof t&&(a=o.createElement(t,(0,v.A)({},e))),a}function ex(e){var t=e.target.value,n=O(void 0,es,B);return""===t?t:Number.isNaN(Number(t))?eh:t>=n?n:Number(t)}var eA=B>es&&R;function ek(e){var t=ex(e);switch(t!==eh&&ef(t),e.keyCode){case S.A.ENTER:eI(t);break;case S.A.UP:eI(t-1);break;case S.A.DOWN:eI(t+1)}}function eI(e){if(w(e)&&e!==ep&&w(B)&&B>0&&!G){var t=O(void 0,es,B),n=e;return e>t?n=t:e<1&&(n=1),n!==eh&&ef(n),eg(n),null==H||H(n,es),n}return ep}var ez=ep>1,ew=ep2?n-2:0),a=2;aB?B:ep*es])),eR=null,eD=O(void 0,es,B);if(T&&B<=es)return null;var eW=[],eL={rootPrefixCls:l,onClick:eI,onKeyPress:eN,showTitle:L,itemRender:et,page:-1},e_=ep-1>0?ep-1:0,eq=ep+1=2*eG&&3!==ep&&(eW[0]=o.cloneElement(eW[0],{className:p()("".concat(l,"-item-after-jump-prev"),eW[0].props.className)}),eW.unshift(eT)),eD-ep>=2*eG&&ep!==eD-2){var e2=eW[eW.length-1];eW[eW.length-1]=o.cloneElement(e2,{className:p()("".concat(l,"-item-before-jump-next"),e2.props.className)}),eW.push(eR)}1!==e$&&eW.unshift(o.createElement(k,(0,a.A)({},eL,{key:1,page:1}))),e0!==eD&&eW.push(o.createElement(k,(0,a.A)({},eL,{key:eD,page:eD})))}var e3=(t=et(e_,"prev",ey(ea,"prev page")),o.isValidElement(t)?o.cloneElement(t,{disabled:!ez}):t);if(e3){var e9=!ez||!eD;e3=o.createElement("li",{title:L?F.prev_page:null,onClick:eO,tabIndex:e9?null:0,onKeyDown:function(e){eN(e,eO)},className:p()("".concat(l,"-prev"),(0,g.A)({},"".concat(l,"-disabled"),e9)),"aria-disabled":e9},e3)}var e8=(n=et(eq,"next",ey(ec,"next page")),o.isValidElement(n)?o.cloneElement(n,{disabled:!ew}):n);e8&&(V?(c=!ew,i=ez?0:null):i=(c=!ew||!eD)?null:0,e8=o.createElement("li",{title:L?F.next_page:null,onClick:eB,tabIndex:i,onKeyDown:function(e){eN(e,eB)},className:p()("".concat(l,"-next"),(0,g.A)({},"".concat(l,"-disabled"),c)),"aria-disabled":c},e8));var e6=p()(l,d,(0,g.A)((0,g.A)((0,g.A)((0,g.A)((0,g.A)({},"".concat(l,"-start"),"start"===M),"".concat(l,"-center"),"center"===M),"".concat(l,"-end"),"end"===M),"".concat(l,"-simple"),V),"".concat(l,"-disabled"),G));return o.createElement("ul",(0,a.A)({className:e6,style:K,ref:ei},eM),eP,e3,V?eY:eW,e8,o.createElement(A,{locale:F,rootPrefixCls:l,disabled:G,selectPrefixCls:void 0===s?"rc-select":s,changeSize:function(e){var t=O(e,es,B),n=ep>t&&0!==t?t:ep;ed(e),ef(n),null==q||q(ep,e),eg(n),null==H||H(n,e)},pageSize:es,pageSizeOptions:$,quickGo:eA?eI:null,goButton:eK,showSizeChanger:J,sizeChangerRender:Z}))};var j=n(86500),E=n(15982),N=n(9836),H=n(51854),T=n(8530),M=n(32013),P=n(70042),R=n(99841),D=n(30611),W=n(19086),L=n(35271),_=n(18184),q=n(61388),X=n(45431);let F=e=>Object.assign({itemBg:e.colorBgContainer,itemSize:e.controlHeight,itemSizeSM:e.controlHeightSM,itemActiveBg:e.colorBgContainer,itemActiveColor:e.colorPrimary,itemActiveColorHover:e.colorPrimaryHover,itemLinkBg:e.colorBgContainer,itemActiveColorDisabled:e.colorTextDisabled,itemActiveBgDisabled:e.controlItemBgActiveDisabled,itemInputBg:e.colorBgContainer,miniOptionsSizeChangerTop:0},(0,W.b)(e)),K=e=>(0,q.oX)(e,{inputOutlineOffset:0,quickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.25).equal(),paginationMiniOptionsMarginInlineStart:e.calc(e.marginXXS).div(2).equal(),paginationMiniQuickJumperInputWidth:e.calc(e.controlHeightLG).mul(1.1).equal(),paginationItemPaddingInline:e.calc(e.marginXXS).mul(1.5).equal(),paginationEllipsisLetterSpacing:e.calc(e.marginXXS).div(2).equal(),paginationSlashMarginInlineStart:e.marginSM,paginationSlashMarginInlineEnd:e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,W.C)(e)),Y=(0,X.OF)("Pagination",e=>{let t=K(e);return[(e=>{let{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,_.dF)(e)),{display:"flex",flexWrap:"wrap",rowGap:e.paddingXS,"&-start":{justifyContent:"start"},"&-center":{justifyContent:"center"},"&-end":{justifyContent:"end"},"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},["".concat(t,"-total-text")]:{display:"inline-block",height:e.itemSize,marginInlineEnd:e.marginXS,lineHeight:(0,R.zA)(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),(e=>{let{componentCls:t}=e;return{["".concat(t,"-item")]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:(0,R.zA)(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:"".concat((0,R.zA)(e.lineWidth)," ").concat(e.lineType," transparent"),borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:"0 ".concat((0,R.zA)(e.paginationItemPaddingInline)),color:e.colorText,"&:hover":{textDecoration:"none"}},["&:not(".concat(t,"-item-active)")]:{"&:hover":{transition:"all ".concat(e.motionDurationMid),backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive}},"&-active":{fontWeight:e.fontWeightStrong,backgroundColor:e.itemActiveBg,borderColor:e.colorPrimary,a:{color:e.itemActiveColor},"&:hover":{borderColor:e.colorPrimaryHover},"&:hover a":{color:e.itemActiveColorHover}}}}})(e)),(e=>{let{componentCls:t}=e;return{["".concat(t,"-jump-prev, ").concat(t,"-jump-next")]:{outline:0,["".concat(t,"-item-container")]:{position:"relative",["".concat(t,"-item-link-icon")]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:"all ".concat(e.motionDurationMid),"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},["".concat(t,"-item-ellipsis")]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:"all ".concat(e.motionDurationMid)}},"&:hover":{["".concat(t,"-item-link-icon")]:{opacity:1},["".concat(t,"-item-ellipsis")]:{opacity:0}}},["\n ".concat(t,"-prev,\n ").concat(t,"-jump-prev,\n ").concat(t,"-jump-next\n ")]:{marginInlineEnd:e.marginXS},["\n ".concat(t,"-prev,\n ").concat(t,"-next,\n ").concat(t,"-jump-prev,\n ").concat(t,"-jump-next\n ")]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:(0,R.zA)(e.itemSize),textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:e.borderRadius,cursor:"pointer",transition:"all ".concat(e.motionDurationMid)},["".concat(t,"-prev, ").concat(t,"-next")]:{outline:0,button:{color:e.colorText,cursor:"pointer",userSelect:"none"},["".concat(t,"-item-link")]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:"".concat((0,R.zA)(e.lineWidth)," ").concat(e.lineType," transparent"),borderRadius:e.borderRadius,outline:"none",transition:"all ".concat(e.motionDurationMid)},["&:hover ".concat(t,"-item-link")]:{backgroundColor:e.colorBgTextHover},["&:active ".concat(t,"-item-link")]:{backgroundColor:e.colorBgTextActive},["&".concat(t,"-disabled:hover")]:{["".concat(t,"-item-link")]:{backgroundColor:"transparent"}}},["".concat(t,"-slash")]:{marginInlineEnd:e.paginationSlashMarginInlineEnd,marginInlineStart:e.paginationSlashMarginInlineStart},["".concat(t,"-options")]:{display:"inline-block",marginInlineStart:e.margin,verticalAlign:"middle","&-size-changer":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:e.controlHeight,marginInlineStart:e.marginXS,lineHeight:(0,R.zA)(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},(0,D.wj)(e)),(0,L.nI)(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},(0,L.eT)(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}})(e)),(e=>{let{componentCls:t}=e;return{["&".concat(t,"-simple")]:{["".concat(t,"-prev, ").concat(t,"-next")]:{height:e.itemSize,lineHeight:(0,R.zA)(e.itemSize),verticalAlign:"top",["".concat(t,"-item-link")]:{height:e.itemSize,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:e.colorBgTextHover},"&:active":{backgroundColor:e.colorBgTextActive},"&::after":{height:e.itemSize,lineHeight:(0,R.zA)(e.itemSize)}}},["".concat(t,"-simple-pager")]:{display:"inline-flex",alignItems:"center",height:e.itemSize,marginInlineEnd:e.marginXS,input:{boxSizing:"border-box",height:"100%",width:e.quickJumperInputWidth,padding:"0 ".concat((0,R.zA)(e.paginationItemPaddingInline)),textAlign:"center",backgroundColor:e.itemInputBg,border:"".concat((0,R.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),borderRadius:e.borderRadius,outline:"none",transition:"border-color ".concat(e.motionDurationMid),color:"inherit","&:hover":{borderColor:e.colorPrimary},"&:focus":{borderColor:e.colorPrimaryHover,boxShadow:"".concat((0,R.zA)(e.inputOutlineOffset)," 0 ").concat((0,R.zA)(e.controlOutlineWidth)," ").concat(e.controlOutline)},"&[disabled]":{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"}}},["&".concat(t,"-disabled")]:{["".concat(t,"-prev, ").concat(t,"-next")]:{["".concat(t,"-item-link")]:{"&:hover, &:active":{backgroundColor:"transparent"}}}},["&".concat(t,"-mini")]:{["".concat(t,"-prev, ").concat(t,"-next")]:{height:e.itemSizeSM,lineHeight:(0,R.zA)(e.itemSizeSM),["".concat(t,"-item-link")]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:(0,R.zA)(e.itemSizeSM)}}},["".concat(t,"-simple-pager")]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}})(e)),(e=>{let{componentCls:t}=e;return{["&".concat(t,"-mini ").concat(t,"-total-text, &").concat(t,"-mini ").concat(t,"-simple-pager")]:{height:e.itemSizeSM,lineHeight:(0,R.zA)(e.itemSizeSM)},["&".concat(t,"-mini ").concat(t,"-item")]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,R.zA)(e.calc(e.itemSizeSM).sub(2).equal())},["&".concat(t,"-mini ").concat(t,"-prev, &").concat(t,"-mini ").concat(t,"-next")]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:(0,R.zA)(e.itemSizeSM)},["&".concat(t,"-mini:not(").concat(t,"-disabled)")]:{["".concat(t,"-prev, ").concat(t,"-next")]:{["&:hover ".concat(t,"-item-link")]:{backgroundColor:e.colorBgTextHover},["&:active ".concat(t,"-item-link")]:{backgroundColor:e.colorBgTextActive},["&".concat(t,"-disabled:hover ").concat(t,"-item-link")]:{backgroundColor:"transparent"}}},["\n &".concat(t,"-mini ").concat(t,"-prev ").concat(t,"-item-link,\n &").concat(t,"-mini ").concat(t,"-next ").concat(t,"-item-link\n ")]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:(0,R.zA)(e.itemSizeSM)}},["&".concat(t,"-mini ").concat(t,"-jump-prev, &").concat(t,"-mini ").concat(t,"-jump-next")]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:(0,R.zA)(e.itemSizeSM)},["&".concat(t,"-mini ").concat(t,"-options")]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:(0,R.zA)(e.itemSizeSM),input:Object.assign(Object.assign({},(0,D.BZ)(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}})(e)),(e=>{let{componentCls:t}=e;return{["".concat(t,"-disabled")]:{"&, &:hover":{cursor:"not-allowed",["".concat(t,"-item-link")]:{color:e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",["".concat(t,"-item-link")]:{color:e.colorTextDisabled,cursor:"not-allowed"}}},["&".concat(t,"-disabled")]:{cursor:"not-allowed",["".concat(t,"-item")]:{cursor:"not-allowed",backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"},a:{color:e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:e.colorBorder,backgroundColor:e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:e.itemActiveBgDisabled},a:{color:e.itemActiveColorDisabled}}},["".concat(t,"-item-link")]:{color:e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},["".concat(t,"-simple&")]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},["".concat(t,"-simple-pager")]:{color:e.colorTextDisabled},["".concat(t,"-jump-prev, ").concat(t,"-jump-next")]:{["".concat(t,"-item-link-icon")]:{opacity:0},["".concat(t,"-item-ellipsis")]:{opacity:1}}}}})(e)),{["@media only screen and (max-width: ".concat(e.screenLG,"px)")]:{["".concat(t,"-item")]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},["@media only screen and (max-width: ".concat(e.screenSM,"px)")]:{["".concat(t,"-options")]:{display:"none"}}}),["&".concat(e.componentCls,"-rtl")]:{direction:"rtl"}}})(t),(e=>{let{componentCls:t}=e;return{["".concat(t,":not(").concat(t,"-disabled)")]:{["".concat(t,"-item")]:Object.assign({},(0,_.K8)(e)),["".concat(t,"-jump-prev, ").concat(t,"-jump-next")]:{"&:focus-visible":Object.assign({["".concat(t,"-item-link-icon")]:{opacity:1},["".concat(t,"-item-ellipsis")]:{opacity:0}},(0,_.jk)(e))},["".concat(t,"-prev, ").concat(t,"-next")]:{["&:focus-visible ".concat(t,"-item-link")]:(0,_.jk)(e)}}}})(t)]},F),G=(0,X.bf)(["Pagination","bordered"],e=>(e=>{let{componentCls:t}=e;return{["".concat(t).concat(t,"-bordered").concat(t,"-disabled:not(").concat(t,"-mini)")]:{"&, &:hover":{["".concat(t,"-item-link")]:{borderColor:e.colorBorder}},"&:focus-visible":{["".concat(t,"-item-link")]:{borderColor:e.colorBorder}},["".concat(t,"-item, ").concat(t,"-item-link")]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,["&:hover:not(".concat(t,"-item-active)")]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,a:{color:e.colorTextDisabled}},["&".concat(t,"-item-active")]:{backgroundColor:e.itemActiveBgDisabled}},["".concat(t,"-prev, ").concat(t,"-next")]:{"&:hover button":{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,color:e.colorTextDisabled},["".concat(t,"-item-link")]:{backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder}}},["".concat(t).concat(t,"-bordered:not(").concat(t,"-mini)")]:{["".concat(t,"-prev, ").concat(t,"-next")]:{"&:hover button":{borderColor:e.colorPrimaryHover,backgroundColor:e.itemBg},["".concat(t,"-item-link")]:{backgroundColor:e.itemLinkBg,borderColor:e.colorBorder},["&:hover ".concat(t,"-item-link")]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,color:e.colorPrimary},["&".concat(t,"-disabled")]:{["".concat(t,"-item-link")]:{borderColor:e.colorBorder,color:e.colorTextDisabled}}},["".concat(t,"-item")]:{backgroundColor:e.itemBg,border:"".concat((0,R.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorBorder),["&:hover:not(".concat(t,"-item-active)")]:{borderColor:e.colorPrimary,backgroundColor:e.itemBg,a:{color:e.colorPrimary}},"&-active":{borderColor:e.colorPrimary}}}}})(K(e)),F);function V(e){return(0,o.useMemo)(()=>"boolean"==typeof e?[e,{}]:e&&"object"==typeof e?[!0,e]:[void 0,void 0],[e])}var U=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};let Q=e=>{let{align:t,prefixCls:n,selectPrefixCls:a,className:c,rootClassName:i,style:l,size:u,locale:g,responsive:b,showSizeChanger:v,selectComponentClass:h,pageSizeOptions:f}=e,S=U(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:C}=(0,H.A)(b),[,y]=(0,P.Ay)(),{getPrefixCls:x,direction:A,showSizeChanger:k,className:I,style:z}=(0,E.TP)("pagination"),w=x("pagination",n),[O,R,D]=Y(w),W=(0,N.A)(u),L="small"===W||!!(C&&!W&&b),[_]=(0,T.A)("Pagination",j.A),q=Object.assign(Object.assign({},_),g),[X,F]=V(v),[K,Q]=V(k),J=null!=F?F:Q,Z=h||M.A,$=o.useMemo(()=>f?f.map(e=>Number(e)):void 0,[f]),ee=o.useMemo(()=>{let e=o.createElement("span",{className:"".concat(w,"-item-ellipsis")},"•••"),t=o.createElement("button",{className:"".concat(w,"-item-link"),type:"button",tabIndex:-1},"rtl"===A?o.createElement(m.A,null):o.createElement(d.A,null)),n=o.createElement("button",{className:"".concat(w,"-item-link"),type:"button",tabIndex:-1},"rtl"===A?o.createElement(d.A,null):o.createElement(m.A,null));return{prevIcon:t,nextIcon:n,jumpPrevIcon:o.createElement("a",{className:"".concat(w,"-item-link")},o.createElement("div",{className:"".concat(w,"-item-container")},"rtl"===A?o.createElement(s,{className:"".concat(w,"-item-link-icon")}):o.createElement(r,{className:"".concat(w,"-item-link-icon")}),e)),jumpNextIcon:o.createElement("a",{className:"".concat(w,"-item-link")},o.createElement("div",{className:"".concat(w,"-item-container")},"rtl"===A?o.createElement(r,{className:"".concat(w,"-item-link-icon")}):o.createElement(s,{className:"".concat(w,"-item-link-icon")}),e))}},[A,w]),et=x("select",a),en=p()({["".concat(w,"-").concat(t)]:!!t,["".concat(w,"-mini")]:L,["".concat(w,"-rtl")]:"rtl"===A,["".concat(w,"-bordered")]:y.wireframe},I,c,i,R,D),eo=Object.assign(Object.assign({},z),l);return O(o.createElement(o.Fragment,null,y.wireframe&&o.createElement(G,{prefixCls:w}),o.createElement(B,Object.assign({},ee,S,{style:eo,prefixCls:w,selectPrefixCls:et,className:en,locale:q,pageSizeOptions:$,showSizeChanger:null!=X?X:K,sizeChangerRender:e=>{var t;let{disabled:n,size:a,onSizeChange:c,"aria-label":i,className:r,options:l}=e,{className:s,onChange:d}=J||{},m=null==(t=l.find(e=>String(e.value)===String(a)))?void 0:t.value;return o.createElement(Z,Object.assign({disabled:n,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:e=>e.parentNode,"aria-label":i,options:l},J,{value:m,onChange:(e,t)=>{null==c||c(e),null==d||d(e,t)},size:L?"small":"middle",className:p()(r,s)}))}}))))}},9800:(e,t,n)=>{n.d(t,{M:()=>o});let o=n(12115).createContext({siderHook:{addSider:()=>null,removeSider:()=>null}})},18497:(e,t,n)=>{n.d(t,{A:()=>M});var o=n(12115),a=n(83329),c=n(32002),i=n(29300),r=n.n(i),l=n(10177),s=n(18885),d=n(48804),m=n(17980),u=n(9130),p=n(52824),g=n(31776),b=n(80163),v=n(26791),h=n(6833),f=n(15982),S=n(68151),C=n(83803),y=n(32653),x=n(70042),A=n(99841),k=n(18184),I=n(53272),z=n(52770),w=n(47212),O=n(35464),B=n(45902),j=n(45431),E=n(61388);let N=(0,j.OF)("Dropdown",e=>{let{marginXXS:t,sizePopupArrow:n,paddingXXS:o,componentCls:a}=e,c=(0,E.oX)(e,{menuCls:"".concat(a,"-menu"),dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:o});return[(e=>{let{componentCls:t,menuCls:n,zIndexPopup:o,dropdownArrowDistance:a,sizePopupArrow:c,antCls:i,iconCls:r,motionDurationMid:l,paddingBlock:s,fontSize:d,dropdownEdgeChildPadding:m,colorTextDisabled:u,fontSizeIcon:p,controlPaddingHorizontal:g,colorBgElevated:b}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:o,display:"block","&::before":{position:"absolute",insetBlock:e.calc(c).div(2).sub(a).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},["&-trigger".concat(i,"-btn")]:{["& > ".concat(r,"-down, & > ").concat(i,"-btn-icon > ").concat(r,"-down")]:{fontSize:p}},["".concat(t,"-wrap")]:{position:"relative",["".concat(i,"-btn > ").concat(r,"-down")]:{fontSize:p},["".concat(r,"-down::before")]:{transition:"transform ".concat(l)}},["".concat(t,"-wrap-open")]:{["".concat(r,"-down::before")]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},["&".concat(i,"-slide-down-enter").concat(i,"-slide-down-enter-active").concat(t,"-placement-bottomLeft,\n &").concat(i,"-slide-down-appear").concat(i,"-slide-down-appear-active").concat(t,"-placement-bottomLeft,\n &").concat(i,"-slide-down-enter").concat(i,"-slide-down-enter-active").concat(t,"-placement-bottom,\n &").concat(i,"-slide-down-appear").concat(i,"-slide-down-appear-active").concat(t,"-placement-bottom,\n &").concat(i,"-slide-down-enter").concat(i,"-slide-down-enter-active").concat(t,"-placement-bottomRight,\n &").concat(i,"-slide-down-appear").concat(i,"-slide-down-appear-active").concat(t,"-placement-bottomRight")]:{animationName:I.ox},["&".concat(i,"-slide-up-enter").concat(i,"-slide-up-enter-active").concat(t,"-placement-topLeft,\n &").concat(i,"-slide-up-appear").concat(i,"-slide-up-appear-active").concat(t,"-placement-topLeft,\n &").concat(i,"-slide-up-enter").concat(i,"-slide-up-enter-active").concat(t,"-placement-top,\n &").concat(i,"-slide-up-appear").concat(i,"-slide-up-appear-active").concat(t,"-placement-top,\n &").concat(i,"-slide-up-enter").concat(i,"-slide-up-enter-active").concat(t,"-placement-topRight,\n &").concat(i,"-slide-up-appear").concat(i,"-slide-up-appear-active").concat(t,"-placement-topRight")]:{animationName:I.nP},["&".concat(i,"-slide-down-leave").concat(i,"-slide-down-leave-active").concat(t,"-placement-bottomLeft,\n &").concat(i,"-slide-down-leave").concat(i,"-slide-down-leave-active").concat(t,"-placement-bottom,\n &").concat(i,"-slide-down-leave").concat(i,"-slide-down-leave-active").concat(t,"-placement-bottomRight")]:{animationName:I.vR},["&".concat(i,"-slide-up-leave").concat(i,"-slide-up-leave-active").concat(t,"-placement-topLeft,\n &").concat(i,"-slide-up-leave").concat(i,"-slide-up-leave-active").concat(t,"-placement-top,\n &").concat(i,"-slide-up-leave").concat(i,"-slide-up-leave-active").concat(t,"-placement-topRight")]:{animationName:I.YU}}},(0,O.Ay)(e,b,{arrowPlacement:{top:!0,bottom:!0}}),{["".concat(t," ").concat(n)]:{position:"relative",margin:0},["".concat(n,"-submenu-popup")]:{position:"absolute",zIndex:o,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},["".concat(t,", ").concat(t,"-menu-submenu")]:Object.assign(Object.assign({},(0,k.dF)(e)),{[n]:Object.assign(Object.assign({padding:m,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},(0,k.K8)(e)),{"&:empty":{padding:0,boxShadow:"none"},["".concat(n,"-item-group-title")]:{padding:"".concat((0,A.zA)(s)," ").concat((0,A.zA)(g)),color:e.colorTextDescription,transition:"all ".concat(l)},["".concat(n,"-item")]:{position:"relative",display:"flex",alignItems:"center"},["".concat(n,"-item-icon")]:{minWidth:d,marginInlineEnd:e.marginXS,fontSize:e.fontSizeSM},["".concat(n,"-title-content")]:{flex:"auto","&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},"> a":{color:"inherit",transition:"all ".concat(l),"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}},["".concat(n,"-item-extra")]:{paddingInlineStart:e.padding,marginInlineStart:"auto",fontSize:e.fontSizeSM,color:e.colorTextDescription}},["".concat(n,"-item, ").concat(n,"-submenu-title")]:Object.assign(Object.assign({display:"flex",margin:0,padding:"".concat((0,A.zA)(s)," ").concat((0,A.zA)(g)),color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:"all ".concat(l),borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},(0,k.K8)(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:u,cursor:"not-allowed","&:hover":{color:u,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:"".concat((0,A.zA)(e.marginXXS)," 0"),overflow:"hidden",lineHeight:0,backgroundColor:e.colorSplit},["".concat(t,"-menu-submenu-expand-icon")]:{position:"absolute",insetInlineEnd:e.paddingXS,["".concat(t,"-menu-submenu-arrow-icon")]:{marginInlineEnd:"0 !important",color:e.colorIcon,fontSize:p,fontStyle:"normal"}}}),["".concat(n,"-item-group-list")]:{margin:"0 ".concat((0,A.zA)(e.marginXS)),padding:0,listStyle:"none"},["".concat(n,"-submenu-title")]:{paddingInlineEnd:e.calc(g).add(e.fontSizeSM).equal()},["".concat(n,"-submenu-vertical")]:{position:"relative"},["".concat(n,"-submenu").concat(n,"-submenu-disabled ").concat(t,"-menu-submenu-title")]:{["&, ".concat(t,"-menu-submenu-arrow-icon")]:{color:u,backgroundColor:b,cursor:"not-allowed"}},["".concat(n,"-submenu-selected ").concat(t,"-menu-submenu-title")]:{color:e.colorPrimary}})})},[(0,I._j)(e,"slide-up"),(0,I._j)(e,"slide-down"),(0,z.Mh)(e,"move-up"),(0,z.Mh)(e,"move-down"),(0,w.aB)(e,"zoom-big")]]})(c),(e=>{let{componentCls:t,menuCls:n,colorError:o,colorTextLightSolid:a}=e,c="".concat(n,"-item");return{["".concat(t,", ").concat(t,"-menu-submenu")]:{["".concat(n," ").concat(c)]:{["&".concat(c,"-danger:not(").concat(c,"-disabled)")]:{color:o,"&:hover":{color:a,backgroundColor:o}}}}}})(c)]},e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},(0,O.Ke)({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),(0,B.n)(e)),{resetStyle:!1}),H=e=>{var t;let{menu:n,arrow:i,prefixCls:g,children:A,trigger:k,disabled:I,dropdownRender:z,popupRender:w,getPopupContainer:O,overlayClassName:B,rootClassName:j,overlayStyle:E,open:H,onOpenChange:T,visible:M,onVisibleChange:P,mouseEnterDelay:R=.15,mouseLeaveDelay:D=.1,autoAdjustOverflow:W=!0,placement:L="",overlay:_,transitionName:q,destroyOnHidden:X,destroyPopupOnHide:F}=e,{getPopupContainer:K,getPrefixCls:Y,direction:G,dropdown:V}=o.useContext(f.QO),U=w||z;(0,v.rJ)("Dropdown");let Q=o.useMemo(()=>{let e=Y();return void 0!==q?q:L.includes("top")?"".concat(e,"-slide-down"):"".concat(e,"-slide-up")},[Y,L,q]),J=o.useMemo(()=>L?L.includes("Center")?L.slice(0,L.indexOf("Center")):L:"rtl"===G?"bottomRight":"bottomLeft",[L,G]),Z=Y("dropdown",g),$=(0,S.A)(Z),[ee,et,en]=N(Z,$),[,eo]=(0,x.Ay)(),ea=o.Children.only((e=>"object"!=typeof e&&"function"!=typeof e||null===e)(A)?o.createElement("span",null,A):A),ec=(0,b.Ob)(ea,{className:r()("".concat(Z,"-trigger"),{["".concat(Z,"-rtl")]:"rtl"===G},ea.props.className),disabled:null!=(t=ea.props.disabled)?t:I}),ei=I?[]:k,er=!!(null==ei?void 0:ei.includes("contextMenu")),[el,es]=(0,d.A)(!1,{value:null!=H?H:M}),ed=(0,s.A)(e=>{null==T||T(e,{source:"trigger"}),null==P||P(e),es(e)}),em=r()(B,j,et,en,$,null==V?void 0:V.className,{["".concat(Z,"-rtl")]:"rtl"===G}),eu=(0,p.A)({arrowPointAtCenter:"object"==typeof i&&i.pointAtCenter,autoAdjustOverflow:W,offset:eo.marginXXS,arrowWidth:i?eo.sizePopupArrow:0,borderRadius:eo.borderRadius}),ep=(0,s.A)(()=>{null!=n&&n.selectable&&null!=n&&n.multiple||(null==T||T(!1,{source:"menu"}),es(!1))}),[eg,eb]=(0,u.YK)("Dropdown",null==E?void 0:E.zIndex),ev=o.createElement(l.A,Object.assign({alignPoint:er},(0,m.A)(e,["rootClassName"]),{mouseEnterDelay:R,mouseLeaveDelay:D,visible:el,builtinPlacements:eu,arrow:!!i,overlayClassName:em,prefixCls:Z,getPopupContainer:O||K,transitionName:Q,trigger:ei,overlay:()=>{let e;return e=(null==n?void 0:n.items)?o.createElement(C.A,Object.assign({},n)):"function"==typeof _?_():_,U&&(e=U(e)),e=o.Children.only("string"==typeof e?o.createElement("span",null,e):e),o.createElement(y.A,{prefixCls:"".concat(Z,"-menu"),rootClassName:r()(en,$),expandIcon:o.createElement("span",{className:"".concat(Z,"-menu-submenu-arrow")},"rtl"===G?o.createElement(a.A,{className:"".concat(Z,"-menu-submenu-arrow-icon")}):o.createElement(c.A,{className:"".concat(Z,"-menu-submenu-arrow-icon")})),mode:"vertical",selectable:!1,onClick:ep,validator:e=>{let{mode:t}=e}},e)},placement:J,onVisibleChange:ed,overlayStyle:Object.assign(Object.assign(Object.assign({},null==V?void 0:V.style),E),{zIndex:eg}),autoDestroy:null!=X?X:F}),ec);return eg&&(ev=o.createElement(h.A.Provider,{value:eb},ev)),ee(ev)},T=(0,g.A)(H,"align",void 0,"dropdown",e=>e);H._InternalPanelDoNotUseOrYouWillBeFired=e=>o.createElement(T,Object.assign({},e),o.createElement("span",null));let M=H},19696:(e,t,n)=>{n.d(t,{A:()=>b});var o=n(18497),a=n(12115),c=n(11359),i=n(29300),r=n.n(i),l=n(98696),s=n(15982),d=n(67850),m=n(96936),u=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};let p=e=>{let{getPopupContainer:t,getPrefixCls:n,direction:i}=a.useContext(s.QO),{prefixCls:p,type:g="default",danger:b,disabled:v,loading:h,onClick:f,htmlType:S,children:C,className:y,menu:x,arrow:A,autoFocus:k,overlay:I,trigger:z,align:w,open:O,onOpenChange:B,placement:j,getPopupContainer:E,href:N,icon:H=a.createElement(c.A,null),title:T,buttonsRender:M=e=>e,mouseEnterDelay:P,mouseLeaveDelay:R,overlayClassName:D,overlayStyle:W,destroyOnHidden:L,destroyPopupOnHide:_,dropdownRender:q,popupRender:X}=e,F=u(e,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyOnHidden","destroyPopupOnHide","dropdownRender","popupRender"]),K=n("dropdown",p),Y={menu:x,arrow:A,autoFocus:k,align:w,disabled:v,trigger:v?[]:z,onOpenChange:B,getPopupContainer:E||t,mouseEnterDelay:P,mouseLeaveDelay:R,overlayClassName:D,overlayStyle:W,destroyOnHidden:L,popupRender:X||q},{compactSize:G,compactItemClassnames:V}=(0,m.RQ)(K,i),U=r()("".concat(K,"-button"),V,y);"destroyPopupOnHide"in e&&(Y.destroyPopupOnHide=_),"overlay"in e&&(Y.overlay=I),"open"in e&&(Y.open=O),"placement"in e?Y.placement=j:Y.placement="rtl"===i?"bottomLeft":"bottomRight";let[Q,J]=M([a.createElement(l.Ay,{type:g,danger:b,disabled:v,loading:h,onClick:f,htmlType:S,href:N,title:T},C),a.createElement(l.Ay,{type:g,danger:b,icon:H})]);return a.createElement(d.A.Compact,Object.assign({className:U,size:G,block:!0},F),Q,a.createElement(o.A,Object.assign({},Y),J))};p.__ANT_BUTTON=!0;let g=o.A;g.Button=p;let b=g},21419:(e,t,n)=>{n.d(t,{A:()=>o});let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"}},32002:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(79630),a=n(12115),c=n(63363),i=n(35030);let r=a.forwardRef(function(e,t){return a.createElement(i.A,(0,o.A)({},e,{ref:t,icon:c.A}))})},32653:(e,t,n)=>{n.d(t,{A:()=>l,h:()=>s});var o=n(12115),a=n(74686),c=n(9184),i=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};let r=o.createContext(null),l=o.forwardRef((e,t)=>{let{children:n}=e,l=i(e,["children"]),s=o.useContext(r),d=o.useMemo(()=>Object.assign(Object.assign({},s),l),[s,l.prefixCls,l.mode,l.selectable,l.rootClassName]),m=(0,a.H3)(n),u=(0,a.xK)(t,m?(0,a.A9)(n):null);return o.createElement(r.Provider,{value:d},o.createElement(c.A,{space:!0},m?o.cloneElement(n,{ref:u}):n))}),s=r},44261:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(12115),a=n(3514),c=n(75659);function i(){return(i=Object.assign?Object.assign.bind():function(e){for(var t=1;to.createElement(c.A,i({},e,{ref:t,icon:a.A})))},63363:(e,t,n)=>{n.d(t,{A:()=>o});let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"}},69793:(e,t,n)=>{n.d(t,{Ay:()=>r,cH:()=>c,lB:()=>i});var o=n(99841),a=n(45431);let c=e=>{let{colorBgLayout:t,controlHeight:n,controlHeightLG:o,colorText:a,controlHeightSM:c,marginXXS:i,colorTextLightSolid:r,colorBgContainer:l}=e,s=1.25*o;return{colorBgHeader:"#001529",colorBgBody:t,colorBgTrigger:"#002140",bodyBg:t,headerBg:"#001529",headerHeight:2*n,headerPadding:"0 ".concat(s,"px"),headerColor:a,footerPadding:"".concat(c,"px ").concat(s,"px"),footerBg:t,siderBg:"#001529",triggerHeight:o+2*i,triggerBg:"#002140",triggerColor:r,zeroTriggerWidth:o,zeroTriggerHeight:o,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:a}},i=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],r=(0,a.OF)("Layout",e=>{let{antCls:t,componentCls:n,colorText:a,footerBg:c,headerHeight:i,headerPadding:r,headerColor:l,footerPadding:s,fontSize:d,bodyBg:m,headerBg:u}=e;return{[n]:{display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:m,"&, *":{boxSizing:"border-box"},["&".concat(n,"-has-sider")]:{flexDirection:"row",["> ".concat(n,", > ").concat(n,"-content")]:{width:0}},["".concat(n,"-header, &").concat(n,"-footer")]:{flex:"0 0 auto"},"&-rtl":{direction:"rtl"}},["".concat(n,"-header")]:{height:i,padding:r,color:l,lineHeight:(0,o.zA)(i),background:u,["".concat(t,"-menu")]:{lineHeight:"inherit"}},["".concat(n,"-footer")]:{padding:s,color:a,fontSize:d,background:c},["".concat(n,"-content")]:{flex:"auto",color:a,minHeight:0}}},c,{deprecatedTokens:i})},83329:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(79630),a=n(12115),c=n(98527),i=n(35030);let r=a.forwardRef(function(e,t){return a.createElement(i.A,(0,o.A)({},e,{ref:t,icon:c.A}))})},83803:(e,t,n)=>{n.d(t,{A:()=>X});var o=n(12115),a=n(91187),c=n(98690),i=n(11359),r=n(29300),l=n.n(r),s=n(18885),d=n(17980),m=n(93666),u=n(80163),p=n(15982),g=n(68151);let b=(0,o.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var v=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};let h=e=>{let{prefixCls:t,className:n,dashed:c}=e,i=v(e,["prefixCls","className","dashed"]),{getPrefixCls:r}=o.useContext(p.QO),s=r("menu",t),d=l()({["".concat(s,"-item-divider-dashed")]:!!c},n);return o.createElement(a.cG,Object.assign({className:d},i))};var f=n(63715),S=n(97540);let C=e=>{var t;let{className:n,children:i,icon:r,title:s,danger:m,extra:p}=e,{prefixCls:g,firstLevel:v,direction:h,disableMenuItemTitleTooltip:C,inlineCollapsed:y}=o.useContext(b),{siderCollapsed:x}=o.useContext(c.P),A=s;void 0===s?A=v?i:"":!1===s&&(A="");let k={title:A};x||y||(k.title=null,k.open=!1);let I=(0,f.A)(i).length,z=o.createElement(a.q7,Object.assign({},(0,d.A)(e,["title","icon","danger"]),{className:l()({["".concat(g,"-item-danger")]:m,["".concat(g,"-item-only-child")]:(r?I+1:I)===1},n),title:"string"==typeof s?s:void 0}),(0,u.Ob)(r,{className:l()(o.isValidElement(r)?null==(t=r.props)?void 0:t.className:void 0,"".concat(g,"-item-icon"))}),(e=>{let t=null==i?void 0:i[0],n=o.createElement("span",{className:l()("".concat(g,"-title-content"),{["".concat(g,"-title-content-with-extra")]:!!p||0===p})},i);return(!r||o.isValidElement(i)&&"span"===i.type)&&i&&e&&v&&"string"==typeof t?o.createElement("div",{className:"".concat(g,"-inline-collapsed-noicon")},t.charAt(0)):n})(y));return C||(z=o.createElement(S.A,Object.assign({},k,{placement:"rtl"===h?"left":"right",classNames:{root:"".concat(g,"-inline-collapsed-tooltip")}}),z)),z};var y=n(32653),x=n(99841),A=n(60872),k=n(18184),I=n(35376),z=n(53272),w=n(47212),O=n(45431),B=n(61388);let j=e=>(0,k.jk)(e),E=(e,t)=>{let{componentCls:n,itemColor:o,itemSelectedColor:a,subMenuItemSelectedColor:c,groupTitleColor:i,itemBg:r,subMenuItemBg:l,itemSelectedBg:s,activeBarHeight:d,activeBarWidth:m,activeBarBorderWidth:u,motionDurationSlow:p,motionEaseInOut:g,motionEaseOut:b,itemPaddingInline:v,motionDurationMid:h,itemHoverColor:f,lineType:S,colorSplit:C,itemDisabledColor:y,dangerItemColor:A,dangerItemHoverColor:k,dangerItemSelectedColor:I,dangerItemActiveBg:z,dangerItemSelectedBg:w,popupBg:O,itemHoverBg:B,itemActiveBg:E,menuSubMenuBg:N,horizontalItemSelectedColor:H,horizontalItemSelectedBg:T,horizontalItemBorderRadius:M,horizontalItemHoverBg:P}=e;return{["".concat(n,"-").concat(t,", ").concat(n,"-").concat(t," > ").concat(n)]:{color:o,background:r,["&".concat(n,"-root:focus-visible")]:Object.assign({},j(e)),["".concat(n,"-item")]:{"&-group-title, &-extra":{color:i}},["".concat(n,"-submenu-selected > ").concat(n,"-submenu-title")]:{color:c},["".concat(n,"-item, ").concat(n,"-submenu-title")]:{color:o,["&:not(".concat(n,"-item-disabled):focus-visible")]:Object.assign({},j(e))},["".concat(n,"-item-disabled, ").concat(n,"-submenu-disabled")]:{color:"".concat(y," !important")},["".concat(n,"-item:not(").concat(n,"-item-selected):not(").concat(n,"-submenu-selected)")]:{["&:hover, > ".concat(n,"-submenu-title:hover")]:{color:f}},["&:not(".concat(n,"-horizontal)")]:{["".concat(n,"-item:not(").concat(n,"-item-selected)")]:{"&:hover":{backgroundColor:B},"&:active":{backgroundColor:E}},["".concat(n,"-submenu-title")]:{"&:hover":{backgroundColor:B},"&:active":{backgroundColor:E}}},["".concat(n,"-item-danger")]:{color:A,["&".concat(n,"-item:hover")]:{["&:not(".concat(n,"-item-selected):not(").concat(n,"-submenu-selected)")]:{color:k}},["&".concat(n,"-item:active")]:{background:z}},["".concat(n,"-item a")]:{"&, &:hover":{color:"inherit"}},["".concat(n,"-item-selected")]:{color:a,["&".concat(n,"-item-danger")]:{color:I},"a, a:hover":{color:"inherit"}},["& ".concat(n,"-item-selected")]:{backgroundColor:s,["&".concat(n,"-item-danger")]:{backgroundColor:w}},["&".concat(n,"-submenu > ").concat(n)]:{backgroundColor:N},["&".concat(n,"-popup > ").concat(n)]:{backgroundColor:O},["&".concat(n,"-submenu-popup > ").concat(n)]:{backgroundColor:O},["&".concat(n,"-horizontal")]:Object.assign(Object.assign({},"dark"===t?{borderBottom:0}:{}),{["> ".concat(n,"-item, > ").concat(n,"-submenu")]:{top:u,marginTop:e.calc(u).mul(-1).equal(),marginBottom:0,borderRadius:M,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:"".concat((0,x.zA)(d)," solid transparent"),transition:"border-color ".concat(p," ").concat(g),content:'""'},"&:hover, &-active, &-open":{background:P,"&::after":{borderBottomWidth:d,borderBottomColor:H}},"&-selected":{color:H,backgroundColor:T,"&:hover":{backgroundColor:T},"&::after":{borderBottomWidth:d,borderBottomColor:H}}}}),["&".concat(n,"-root")]:{["&".concat(n,"-inline, &").concat(n,"-vertical")]:{borderInlineEnd:"".concat((0,x.zA)(u)," ").concat(S," ").concat(C)}},["&".concat(n,"-inline")]:{["".concat(n,"-sub").concat(n,"-inline")]:{background:l},["".concat(n,"-item")]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:"".concat((0,x.zA)(m)," solid ").concat(a),transform:"scaleY(0.0001)",opacity:0,transition:["transform ".concat(h," ").concat(b),"opacity ".concat(h," ").concat(b)].join(","),content:'""'},["&".concat(n,"-item-danger")]:{"&::after":{borderInlineEndColor:I}}},["".concat(n,"-selected, ").concat(n,"-item-selected")]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:["transform ".concat(h," ").concat(g),"opacity ".concat(h," ").concat(g)].join(",")}}}}}},N=e=>{let{componentCls:t,itemHeight:n,itemMarginInline:o,padding:a,menuArrowSize:c,marginXS:i,itemMarginBlock:r,itemWidth:l,itemPaddingInline:s}=e,d=e.calc(c).add(a).add(i).equal();return{["".concat(t,"-item")]:{position:"relative",overflow:"hidden"},["".concat(t,"-item, ").concat(t,"-submenu-title")]:{height:n,lineHeight:(0,x.zA)(n),paddingInline:s,overflow:"hidden",textOverflow:"ellipsis",marginInline:o,marginBlock:r,width:l},["> ".concat(t,"-item,\n > ").concat(t,"-submenu > ").concat(t,"-submenu-title")]:{height:n,lineHeight:(0,x.zA)(n)},["".concat(t,"-item-group-list ").concat(t,"-submenu-title,\n ").concat(t,"-submenu-title")]:{paddingInlineEnd:d}}},H=e=>{let{componentCls:t,motionDurationSlow:n,motionDurationMid:o,motionEaseInOut:a,motionEaseOut:c,iconCls:i,iconSize:r,iconMarginInlineEnd:l}=e;return{["".concat(t,"-item, ").concat(t,"-submenu-title")]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:["border-color ".concat(n),"background ".concat(n),"padding calc(".concat(n," + 0.1s) ").concat(a)].join(","),["".concat(t,"-item-icon, ").concat(i)]:{minWidth:r,fontSize:r,transition:["font-size ".concat(o," ").concat(c),"margin ".concat(n," ").concat(a),"color ".concat(n)].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:["opacity ".concat(n," ").concat(a),"margin ".concat(n),"color ".concat(n)].join(",")}},["".concat(t,"-item-icon")]:Object.assign({},(0,k.Nk)()),["&".concat(t,"-item-only-child")]:{["> ".concat(i,", > ").concat(t,"-item-icon")]:{marginInlineEnd:0}}},["".concat(t,"-item-disabled, ").concat(t,"-submenu-disabled")]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important",cursor:"not-allowed",pointerEvents:"none"},["> ".concat(t,"-submenu-title")]:{color:"inherit !important",cursor:"not-allowed"}}}},T=e=>{let{componentCls:t,motionDurationSlow:n,motionEaseInOut:o,borderRadius:a,menuArrowSize:c,menuArrowOffset:i}=e;return{["".concat(t,"-submenu")]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:c,color:"currentcolor",transform:"translateY(-50%)",transition:"transform ".concat(n," ").concat(o,", opacity ").concat(n)},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(c).mul(.6).equal(),height:e.calc(c).mul(.15).equal(),backgroundColor:"currentcolor",borderRadius:a,transition:["background ".concat(n," ").concat(o),"transform ".concat(n," ").concat(o),"top ".concat(n," ").concat(o),"color ".concat(n," ").concat(o)].join(","),content:'""'},"&::before":{transform:"rotate(45deg) translateY(".concat((0,x.zA)(e.calc(i).mul(-1).equal()),")")},"&::after":{transform:"rotate(-45deg) translateY(".concat((0,x.zA)(i),")")}}}}},M=e=>{var t,n,o;let{colorPrimary:a,colorError:c,colorTextDisabled:i,colorErrorBg:r,colorText:l,colorTextDescription:s,colorBgContainer:d,colorFillAlter:m,colorFillContent:u,lineWidth:p,lineWidthBold:g,controlItemBgActive:b,colorBgTextHover:v,controlHeightLG:h,lineHeight:f,colorBgElevated:S,marginXXS:C,padding:y,fontSize:x,controlHeightSM:k,fontSizeLG:I,colorTextLightSolid:z,colorErrorHover:w}=e,O=null!=(t=e.activeBarWidth)?t:0,B=null!=(n=e.activeBarBorderWidth)?n:p,j=null!=(o=e.itemMarginInline)?o:e.marginXXS,E=new A.Y(z).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:a,horizontalItemHoverColor:a,colorGroupTitle:s,groupTitleColor:s,colorItemTextSelected:a,itemSelectedColor:a,subMenuItemSelectedColor:a,colorItemTextSelectedHorizontal:a,horizontalItemSelectedColor:a,colorItemBg:d,itemBg:d,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:u,itemActiveBg:b,colorSubItemBg:m,subMenuItemBg:m,colorItemBgSelected:b,itemSelectedBg:b,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:O,colorActiveBarHeight:g,activeBarHeight:g,colorActiveBarBorderSize:p,activeBarBorderWidth:B,colorItemTextDisabled:i,itemDisabledColor:i,colorDangerItemText:c,dangerItemColor:c,colorDangerItemTextHover:c,dangerItemHoverColor:c,colorDangerItemTextSelected:c,dangerItemSelectedColor:c,colorDangerItemBgActive:r,dangerItemActiveBg:r,colorDangerItemBgSelected:r,dangerItemSelectedBg:r,itemMarginInline:j,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:h,groupTitleLineHeight:f,collapsedWidth:2*h,popupBg:S,itemMarginBlock:C,itemPaddingInline:y,horizontalLineHeight:"".concat(1.15*h,"px"),iconSize:x,iconMarginInlineEnd:k-x,collapsedIconSize:I,groupTitleFontSize:x,darkItemDisabledColor:new A.Y(z).setA(.25).toRgbString(),darkItemColor:E,darkDangerItemColor:c,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:z,darkItemSelectedBg:a,darkDangerItemSelectedBg:c,darkItemHoverBg:"transparent",darkGroupTitleColor:E,darkItemHoverColor:z,darkDangerItemHoverColor:w,darkDangerItemSelectedColor:z,darkDangerItemActiveBg:c,itemWidth:O?"calc(100% + ".concat(B,"px)"):"calc(100% - ".concat(2*j,"px)")}};var P=n(9130);let R=e=>{var t;let n,{popupClassName:c,icon:i,title:r,theme:s}=e,m=o.useContext(b),{prefixCls:p,inlineCollapsed:g,theme:v}=m,h=(0,a.Wj)();if(i){let e=o.isValidElement(r)&&"span"===r.type;n=o.createElement(o.Fragment,null,(0,u.Ob)(i,{className:l()(o.isValidElement(i)?null==(t=i.props)?void 0:t.className:void 0,"".concat(p,"-item-icon"))}),e?r:o.createElement("span",{className:"".concat(p,"-title-content")},r))}else n=g&&!h.length&&r&&"string"==typeof r?o.createElement("div",{className:"".concat(p,"-inline-collapsed-noicon")},r.charAt(0)):o.createElement("span",{className:"".concat(p,"-title-content")},r);let f=o.useMemo(()=>Object.assign(Object.assign({},m),{firstLevel:!1}),[m]),[S]=(0,P.YK)("Menu");return o.createElement(b.Provider,{value:f},o.createElement(a.g8,Object.assign({},(0,d.A)(e,["icon"]),{title:n,popupClassName:l()(p,c,"".concat(p,"-").concat(s||v)),popupStyle:Object.assign({zIndex:S},e.popupStyle)})))};var D=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};function W(e){return null===e||!1===e}let L={item:C,submenu:R,divider:h},_=(0,o.forwardRef)((e,t)=>{var n;let c=o.useContext(y.h),r=c||{},{getPrefixCls:v,getPopupContainer:h,direction:f,menu:S}=o.useContext(p.QO),C=v(),{prefixCls:A,className:j,style:P,theme:R="light",expandIcon:_,_internalDisableMenuItemTitleTooltip:q,inlineCollapsed:X,siderCollapsed:F,rootClassName:K,mode:Y,selectable:G,onClick:V,overflowedIndicatorPopupClassName:U}=e,Q=D(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),J=(0,d.A)(Q,["collapsedWidth"]);null==(n=r.validator)||n.call(r,{mode:Y});let Z=(0,s.A)(function(){for(var e,t=arguments.length,n=Array(t),o=0;o1&&void 0!==arguments[1]?arguments[1]:e,n=!(arguments.length>2)||void 0===arguments[2]||arguments[2];return(0,O.OF)("Menu",e=>{let{colorBgElevated:t,controlHeightLG:n,fontSize:o,darkItemColor:a,darkDangerItemColor:c,darkItemBg:i,darkSubMenuItemBg:r,darkItemSelectedColor:l,darkItemSelectedBg:s,darkDangerItemSelectedBg:d,darkItemHoverBg:m,darkGroupTitleColor:u,darkItemHoverColor:p,darkItemDisabledColor:g,darkDangerItemHoverColor:b,darkDangerItemSelectedColor:v,darkDangerItemActiveBg:h,popupBg:f,darkPopupBg:S}=e,C=e.calc(o).div(7).mul(5).equal(),y=(0,B.oX)(e,{menuArrowSize:C,menuHorizontalHeight:e.calc(n).mul(1.15).equal(),menuArrowOffset:e.calc(C).mul(.25).equal(),menuSubMenuBg:t,calc:e.calc,popupBg:f}),A=(0,B.oX)(y,{itemColor:a,itemHoverColor:p,groupTitleColor:u,itemSelectedColor:l,subMenuItemSelectedColor:l,itemBg:i,popupBg:S,subMenuItemBg:r,itemActiveBg:"transparent",itemSelectedBg:s,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:m,itemDisabledColor:g,dangerItemColor:c,dangerItemHoverColor:b,dangerItemSelectedColor:v,dangerItemActiveBg:h,dangerItemSelectedBg:d,menuSubMenuBg:r,horizontalItemSelectedColor:l,horizontalItemSelectedBg:s});return[(e=>{let{antCls:t,componentCls:n,fontSize:o,motionDurationSlow:a,motionDurationMid:c,motionEaseInOut:i,paddingXS:r,padding:l,colorSplit:s,lineWidth:d,zIndexPopup:m,borderRadiusLG:u,subMenuItemBorderRadius:p,menuArrowSize:g,menuArrowOffset:b,lineType:v,groupTitleLineHeight:h,groupTitleFontSize:f}=e;return[{"":{[n]:Object.assign(Object.assign({},(0,k.t6)()),{"&-hidden":{display:"none"}})},["".concat(n,"-submenu-hidden")]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,k.dF)(e)),(0,k.t6)()),{marginBottom:0,paddingInlineStart:0,fontSize:o,lineHeight:0,listStyle:"none",outline:"none",transition:"width ".concat(a," cubic-bezier(0.2, 0, 0, 1) 0s"),"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",["".concat(n,"-item")]:{flex:"none"}},["".concat(n,"-item, ").concat(n,"-submenu, ").concat(n,"-submenu-title")]:{borderRadius:e.itemBorderRadius},["".concat(n,"-item-group-title")]:{padding:"".concat((0,x.zA)(r)," ").concat((0,x.zA)(l)),fontSize:f,lineHeight:h,transition:"all ".concat(a)},["&-horizontal ".concat(n,"-submenu")]:{transition:["border-color ".concat(a," ").concat(i),"background ".concat(a," ").concat(i)].join(",")},["".concat(n,"-submenu, ").concat(n,"-submenu-inline")]:{transition:["border-color ".concat(a," ").concat(i),"background ".concat(a," ").concat(i),"padding ".concat(c," ").concat(i)].join(",")},["".concat(n,"-submenu ").concat(n,"-sub")]:{cursor:"initial",transition:["background ".concat(a," ").concat(i),"padding ".concat(a," ").concat(i)].join(",")},["".concat(n,"-title-content")]:{transition:"color ".concat(a),"&-with-extra":{display:"inline-flex",alignItems:"center",width:"100%"},["> ".concat(t,"-typography-ellipsis-single-line")]:{display:"inline",verticalAlign:"unset"},["".concat(n,"-item-extra")]:{marginInlineStart:"auto",paddingInlineStart:e.padding}},["".concat(n,"-item a")]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},["".concat(n,"-item-divider")]:{overflow:"hidden",lineHeight:0,borderColor:s,borderStyle:v,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),H(e)),{["".concat(n,"-item-group")]:{["".concat(n,"-item-group-list")]:{margin:0,padding:0,["".concat(n,"-item, ").concat(n,"-submenu-title")]:{paddingInline:"".concat((0,x.zA)(e.calc(o).mul(2).equal())," ").concat((0,x.zA)(l))}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:m,borderRadius:u,boxShadow:"none",transformOrigin:"0 0",["&".concat(n,"-submenu")]:{background:"transparent"},"&::before":{position:"absolute",inset:0,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'},["> ".concat(n)]:Object.assign(Object.assign(Object.assign({borderRadius:u},H(e)),T(e)),{["".concat(n,"-item, ").concat(n,"-submenu > ").concat(n,"-submenu-title")]:{borderRadius:p},["".concat(n,"-submenu-title::after")]:{transition:"transform ".concat(a," ").concat(i)}})},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:e.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:e.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:e.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:e.paddingXS}}}),T(e)),{["&-inline-collapsed ".concat(n,"-submenu-arrow,\n &-inline ").concat(n,"-submenu-arrow")]:{"&::before":{transform:"rotate(-45deg) translateX(".concat((0,x.zA)(b),")")},"&::after":{transform:"rotate(45deg) translateX(".concat((0,x.zA)(e.calc(b).mul(-1).equal()),")")}},["".concat(n,"-submenu-open").concat(n,"-submenu-inline > ").concat(n,"-submenu-title > ").concat(n,"-submenu-arrow")]:{transform:"translateY(".concat((0,x.zA)(e.calc(g).mul(.2).mul(-1).equal()),")"),"&::after":{transform:"rotate(-45deg) translateX(".concat((0,x.zA)(e.calc(b).mul(-1).equal()),")")},"&::before":{transform:"rotate(45deg) translateX(".concat((0,x.zA)(b),")")}}})},{["".concat(t,"-layout-header")]:{[n]:{lineHeight:"inherit"}}}]})(y),(e=>{let{componentCls:t,motionDurationSlow:n,horizontalLineHeight:o,colorSplit:a,lineWidth:c,lineType:i,itemPaddingInline:r}=e;return{["".concat(t,"-horizontal")]:{lineHeight:o,border:0,borderBottom:"".concat((0,x.zA)(c)," ").concat(i," ").concat(a),boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},["".concat(t,"-item, ").concat(t,"-submenu")]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:r},["> ".concat(t,"-item:hover,\n > ").concat(t,"-item-active,\n > ").concat(t,"-submenu ").concat(t,"-submenu-title:hover")]:{backgroundColor:"transparent"},["".concat(t,"-item, ").concat(t,"-submenu-title")]:{transition:["border-color ".concat(n),"background ".concat(n)].join(",")},["".concat(t,"-submenu-arrow")]:{display:"none"}}}})(y),(e=>{let{componentCls:t,iconCls:n,itemHeight:o,colorTextLightSolid:a,dropdownWidth:c,controlHeightLG:i,motionEaseOut:r,paddingXL:l,itemMarginInline:s,fontSizeLG:d,motionDurationFast:m,motionDurationSlow:u,paddingXS:p,boxShadowSecondary:g,collapsedWidth:b,collapsedIconSize:v}=e,h={height:o,lineHeight:(0,x.zA)(o),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({["&".concat(t,"-root")]:{boxShadow:"none"}},N(e))},["".concat(t,"-submenu-popup")]:{["".concat(t,"-vertical")]:Object.assign(Object.assign({},N(e)),{boxShadow:g})}},{["".concat(t,"-submenu-popup ").concat(t,"-vertical").concat(t,"-sub")]:{minWidth:c,maxHeight:"calc(100vh - ".concat((0,x.zA)(e.calc(i).mul(2.5).equal()),")"),padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{["".concat(t,"-inline")]:{width:"100%",["&".concat(t,"-root")]:{["".concat(t,"-item, ").concat(t,"-submenu-title")]:{display:"flex",alignItems:"center",transition:["border-color ".concat(u),"background ".concat(u),"padding ".concat(m," ").concat(r)].join(","),["> ".concat(t,"-title-content")]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},["".concat(t,"-sub").concat(t,"-inline")]:{padding:0,border:0,borderRadius:0,boxShadow:"none",["& > ".concat(t,"-submenu > ").concat(t,"-submenu-title")]:h,["& ".concat(t,"-item-group-title")]:{paddingInlineStart:l}},["".concat(t,"-item")]:h}},{["".concat(t,"-inline-collapsed")]:{width:b,["&".concat(t,"-root")]:{["".concat(t,"-item, ").concat(t,"-submenu ").concat(t,"-submenu-title")]:{["> ".concat(t,"-inline-collapsed-noicon")]:{fontSize:d,textAlign:"center"}}},["> ".concat(t,"-item,\n > ").concat(t,"-item-group > ").concat(t,"-item-group-list > ").concat(t,"-item,\n > ").concat(t,"-item-group > ").concat(t,"-item-group-list > ").concat(t,"-submenu > ").concat(t,"-submenu-title,\n > ").concat(t,"-submenu > ").concat(t,"-submenu-title")]:{insetInlineStart:0,paddingInline:"calc(50% - ".concat((0,x.zA)(e.calc(v).div(2).equal())," - ").concat((0,x.zA)(s),")"),textOverflow:"clip",["\n ".concat(t,"-submenu-arrow,\n ").concat(t,"-submenu-expand-icon\n ")]:{opacity:0},["".concat(t,"-item-icon, ").concat(n)]:{margin:0,fontSize:v,lineHeight:(0,x.zA)(o),"+ span":{display:"inline-block",opacity:0}}},["".concat(t,"-item-icon, ").concat(n)]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",["".concat(t,"-item-icon, ").concat(n)]:{display:"none"},"a, a:hover":{color:a}},["".concat(t,"-item-group-title")]:Object.assign(Object.assign({},k.L9),{paddingInline:p})}}]})(y),E(y,"light"),E(A,"dark"),(e=>{let{componentCls:t,menuArrowOffset:n,calc:o}=e;return{["".concat(t,"-rtl")]:{direction:"rtl"},["".concat(t,"-submenu-rtl")]:{transformOrigin:"100% 0"},["".concat(t,"-rtl").concat(t,"-vertical,\n ").concat(t,"-submenu-rtl ").concat(t,"-vertical")]:{["".concat(t,"-submenu-arrow")]:{"&::before":{transform:"rotate(-45deg) translateY(".concat((0,x.zA)(o(n).mul(-1).equal()),")")},"&::after":{transform:"rotate(45deg) translateY(".concat((0,x.zA)(n),")")}}}}})(y),(0,I.A)(y),(0,z._j)(y,"slide-up"),(0,z._j)(y,"slide-down"),(0,w.aB)(y,"zoom-big")]},M,{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]],injectStyle:n,unitless:{groupTitleLineHeight:!0}})(e,t)}(eo,ea,!c),el=l()("".concat(eo,"-").concat(R),null==S?void 0:S.className,j),es=o.useMemo(()=>{var e,t;if("function"==typeof _||W(_))return _||null;if("function"==typeof r.expandIcon||W(r.expandIcon))return r.expandIcon||null;if("function"==typeof(null==S?void 0:S.expandIcon)||W(null==S?void 0:S.expandIcon))return(null==S?void 0:S.expandIcon)||null;let n=null!=(e=null!=_?_:null==r?void 0:r.expandIcon)?e:null==S?void 0:S.expandIcon;return(0,u.Ob)(n,{className:l()("".concat(eo,"-submenu-expand-icon"),o.isValidElement(n)?null==(t=n.props)?void 0:t.className:void 0)})},[_,null==r?void 0:r.expandIcon,null==S?void 0:S.expandIcon,eo]),ed=o.useMemo(()=>({prefixCls:eo,inlineCollapsed:et||!1,direction:f,firstLevel:!0,theme:R,mode:$,disableMenuItemTitleTooltip:q}),[eo,et,f,q,R]);return ec(o.createElement(y.h.Provider,{value:null},o.createElement(b.Provider,{value:ed},o.createElement(a.Ay,Object.assign({getPopupContainer:h,overflowedIndicator:o.createElement(i.A,null),overflowedIndicatorPopupClassName:l()(eo,"".concat(eo,"-").concat(R),U),mode:$,selectable:ee,onClick:Z},J,{inlineCollapsed:et,style:Object.assign(Object.assign({},null==S?void 0:S.style),P),className:el,prefixCls:eo,direction:f,defaultMotions:en,expandIcon:es,ref:t,rootClassName:l()(K,ei,r.rootClassName,er,ea),_internalComponents:L})))))}),q=(0,o.forwardRef)((e,t)=>{let n=(0,o.useRef)(null),a=o.useContext(c.P);return(0,o.useImperativeHandle)(t,()=>({menu:n.current,focus:e=>{var t;null==(t=n.current)||t.focus(e)}})),o.createElement(_,Object.assign({ref:n},e,a))});q.Item=C,q.SubMenu=R,q.Divider=h,q.ItemGroup=a.te;let X=q},98690:(e,t,n)=>{n.d(t,{P:()=>y,A:()=>A});var o=n(12115),a=n(79630);let c={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"};var i=n(35030),r=o.forwardRef(function(e,t){return o.createElement(i.A,(0,a.A)({},e,{ref:t,icon:c}))}),l=n(83329),s=n(32002),d=n(29300),m=n.n(d),u=n(17980),p=n(76592),g=n(15982),b=n(9800),v=n(99841),h=n(69793);let f=(0,n(45431).OF)(["Layout","Sider"],e=>{let{componentCls:t,siderBg:n,motionDurationMid:o,motionDurationSlow:a,antCls:c,triggerHeight:i,triggerColor:r,triggerBg:l,headerHeight:s,zeroTriggerWidth:d,zeroTriggerHeight:m,borderRadiusLG:u,lightSiderBg:p,lightTriggerColor:g,lightTriggerBg:b,bodyBg:h}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:"all ".concat(o,", background 0s"),"&-has-trigger":{paddingBottom:i},"&-right":{order:1},["".concat(t,"-children")]:{height:"100%",marginTop:-.1,paddingTop:.1,["".concat(c,"-menu").concat(c,"-menu-inline-collapsed")]:{width:"auto"}},["&-zero-width ".concat(t,"-children")]:{overflow:"hidden"},["".concat(t,"-trigger")]:{position:"fixed",bottom:0,zIndex:1,height:i,color:r,lineHeight:(0,v.zA)(i),textAlign:"center",background:l,cursor:"pointer",transition:"all ".concat(o)},["".concat(t,"-zero-width-trigger")]:{position:"absolute",top:s,insetInlineEnd:e.calc(d).mul(-1).equal(),zIndex:1,width:d,height:m,color:r,fontSize:e.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:n,borderRadius:"0 ".concat((0,v.zA)(u)," ").concat((0,v.zA)(u)," 0"),cursor:"pointer",transition:"background ".concat(a," ease"),"&::after":{position:"absolute",inset:0,background:"transparent",transition:"all ".concat(a),content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:e.calc(d).mul(-1).equal(),borderRadius:"".concat((0,v.zA)(u)," 0 0 ").concat((0,v.zA)(u))}},"&-light":{background:p,["".concat(t,"-trigger")]:{color:g,background:b},["".concat(t,"-zero-width-trigger")]:{color:g,background:b,border:"1px solid ".concat(h),borderInlineStart:0}}}}},h.cH,{deprecatedTokens:h.lB});var S=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,o=Object.getOwnPropertySymbols(e);at.indexOf(o[a])&&Object.prototype.propertyIsEnumerable.call(e,o[a])&&(n[o[a]]=e[o[a]]);return n};let C={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},y=o.createContext({}),x=(()=>{let e=0;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,"".concat(t).concat(e)}})(),A=o.forwardRef((e,t)=>{let{prefixCls:n,className:a,trigger:c,children:i,defaultCollapsed:d=!1,theme:v="dark",style:h={},collapsible:A=!1,reverseArrow:k=!1,width:I=200,collapsedWidth:z=80,zeroWidthTriggerStyle:w,breakpoint:O,onCollapse:B,onBreakpoint:j}=e,E=S(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:N}=(0,o.useContext)(b.M),[H,T]=(0,o.useState)("collapsed"in e?e.collapsed:d),[M,P]=(0,o.useState)(!1);(0,o.useEffect)(()=>{"collapsed"in e&&T(e.collapsed)},[e.collapsed]);let R=(t,n)=>{"collapsed"in e||T(t),null==B||B(t,n)},{getPrefixCls:D,direction:W}=(0,o.useContext)(g.QO),L=D("layout-sider",n),[_,q,X]=f(L),F=(0,o.useRef)(null);F.current=e=>{P(e.matches),null==j||j(e.matches),H!==e.matches&&R(e.matches,"responsive")},(0,o.useEffect)(()=>{let e;function t(e){var t;return null==(t=F.current)?void 0:t.call(F,e)}return void 0!==(null==window?void 0:window.matchMedia)&&O&&O in C&&(e=window.matchMedia("screen and (max-width: ".concat(C[O],")")),(0,p.e)(e,t),t(e)),()=>{(0,p.p)(e,t)}},[O]),(0,o.useEffect)(()=>{let e=x("ant-sider-");return N.addSider(e),()=>N.removeSider(e)},[]);let K=()=>{R(!H,"clickTrigger")},Y=(0,u.A)(E,["collapsed"]),G=H?z:I,V=(e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)))(G)?"".concat(G,"px"):String(G),U=0===Number.parseFloat(String(z||0))?o.createElement("span",{onClick:K,className:m()("".concat(L,"-zero-width-trigger"),"".concat(L,"-zero-width-trigger-").concat(k?"right":"left")),style:w},c||o.createElement(r,null)):null,Q="rtl"===W==!k,J={expanded:Q?o.createElement(s.A,null):o.createElement(l.A,null),collapsed:Q?o.createElement(l.A,null):o.createElement(s.A,null)}[H?"collapsed":"expanded"],Z=null!==c?U||o.createElement("div",{className:"".concat(L,"-trigger"),onClick:K,style:{width:V}},c||J):null,$=Object.assign(Object.assign({},h),{flex:"0 0 ".concat(V),maxWidth:V,minWidth:V,width:V}),ee=m()(L,"".concat(L,"-").concat(v),{["".concat(L,"-collapsed")]:!!H,["".concat(L,"-has-trigger")]:A&&null!==c&&!U,["".concat(L,"-below")]:!!M,["".concat(L,"-zero-width")]:0===Number.parseFloat(V)},a,q,X),et=o.useMemo(()=>({siderCollapsed:H}),[H]);return _(o.createElement(y.Provider,{value:et},o.createElement("aside",Object.assign({className:ee},Y,{style:$,ref:t}),o.createElement("div",{className:"".concat(L,"-children")},i),A||M&&U?Z:null)))})}}]); \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1627-404397bed5d04637.js b/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1627-404397bed5d04637.js deleted file mode 100644 index bfec142b..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/1627-404397bed5d04637.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1627],{3514:(e,t,n)=>{n.d(t,{A:()=>o});let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"}},10177:(e,t,n)=>{n.d(t,{A:()=>w});var o=n(79630),r=n(40419),a=n(21858),i=n(20235),l=n(56980),c=n(29300),u=n.n(c),s=n(74686),d=n(12115),f=n(17233),p=n(16962),m=f.A.ESC,v=f.A.TAB,g=(0,d.forwardRef)(function(e,t){var n=e.overlay,o=e.arrow,r=e.prefixCls,a=(0,d.useMemo)(function(){return"function"==typeof n?n():n},[n]),i=(0,s.K4)(t,(0,s.A9)(a));return d.createElement(d.Fragment,null,o&&d.createElement("div",{className:"".concat(r,"-arrow")}),d.cloneElement(a,{ref:(0,s.f3)(a)?i:void 0}))}),h={adjustX:1,adjustY:1},b=[0,0];let y={topLeft:{points:["bl","tl"],overflow:h,offset:[0,-4],targetOffset:b},top:{points:["bc","tc"],overflow:h,offset:[0,-4],targetOffset:b},topRight:{points:["br","tr"],overflow:h,offset:[0,-4],targetOffset:b},bottomLeft:{points:["tl","bl"],overflow:h,offset:[0,4],targetOffset:b},bottom:{points:["tc","bc"],overflow:h,offset:[0,4],targetOffset:b},bottomRight:{points:["tr","br"],overflow:h,offset:[0,4],targetOffset:b}};var A=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];let w=d.forwardRef(function(e,t){var n,c,f,h,b,w,E,C,S,x,O,I,M,R,N=e.arrow,k=void 0!==N&&N,P=e.prefixCls,z=void 0===P?"rc-dropdown":P,D=e.transitionName,T=e.animation,j=e.align,L=e.placement,H=e.placements,B=e.getPopupContainer,K=e.showAction,V=e.hideAction,F=e.overlayClassName,W=e.overlayStyle,_=e.visible,X=e.trigger,G=void 0===X?["hover"]:X,Y=e.autoFocus,q=e.overlay,U=e.children,Q=e.onVisibleChange,$=(0,i.A)(e,A),J=d.useState(),Z=(0,a.A)(J,2),ee=Z[0],et=Z[1],en="visible"in e?_:ee,eo=d.useRef(null),er=d.useRef(null),ea=d.useRef(null);d.useImperativeHandle(t,function(){return eo.current});var ei=function(e){et(e),null==Q||Q(e)};c=(n={visible:en,triggerRef:ea,onVisibleChange:ei,autoFocus:Y,overlayRef:er}).visible,f=n.triggerRef,h=n.onVisibleChange,b=n.autoFocus,w=n.overlayRef,E=d.useRef(!1),C=function(){if(c){var e,t;null==(e=f.current)||null==(t=e.focus)||t.call(e),null==h||h(!1)}},S=function(){var e;return null!=(e=w.current)&&!!e.focus&&(w.current.focus(),E.current=!0,!0)},x=function(e){switch(e.keyCode){case m:C();break;case v:var t=!1;E.current||(t=S()),t?e.preventDefault():C()}},d.useEffect(function(){return c?(window.addEventListener("keydown",x),b&&(0,p.A)(S,3),function(){window.removeEventListener("keydown",x),E.current=!1}):function(){E.current=!1}},[c]);var el=function(){return d.createElement(g,{ref:er,overlay:q,prefixCls:z,arrow:k})},ec=d.cloneElement(U,{className:u()(null==(R=U.props)?void 0:R.className,en&&(void 0!==(O=e.openClassName)?O:"".concat(z,"-open"))),ref:(0,s.f3)(U)?(0,s.K4)(ea,(0,s.A9)(U)):void 0}),eu=V;return eu||-1===G.indexOf("contextMenu")||(eu=["click"]),d.createElement(l.A,(0,o.A)({builtinPlacements:void 0===H?y:H},$,{prefixCls:z,ref:eo,popupClassName:u()(F,(0,r.A)({},"".concat(z,"-show-arrow"),k)),popupStyle:W,action:G,showAction:K,hideAction:eu,popupPlacement:void 0===L?"bottomLeft":L,popupAlign:j,popupTransitionName:D,popupAnimation:T,popupVisible:en,stretch:(I=e.minOverlayWidthMatchTrigger,M=e.alignPoint,"minOverlayWidthMatchTrigger"in e?I:!M)?"minWidth":"",popup:"function"==typeof q?el:el(),onPopupVisibleChange:ei,onPopupClick:function(t){var n=e.onOverlayClick;et(!1),n&&n(t)},getPopupContainer:B}),ec)})},11359:(e,t,n)=>{n.d(t,{A:()=>l});var o=n(79630),r=n(12115),a=n(89593),i=n(35030);let l=r.forwardRef(function(e,t){return r.createElement(i.A,(0,o.A)({},e,{ref:t,icon:a.A}))})},18118:(e,t,n)=>{n.d(t,{A:()=>o});let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"}},29353:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(12115),r=n(15982),a=n(36768);let i=e=>{let{componentName:t}=e,{getPrefixCls:n}=(0,o.useContext)(r.QO),i=n("empty");switch(t){case"Table":case"List":return o.createElement(a.A,{image:a.A.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return o.createElement(a.A,{image:a.A.PRESENTED_IMAGE_SIMPLE,className:"".concat(i,"-small")});case"Table.filter":return null;default:return o.createElement(a.A,null)}}},31776:(e,t,n)=>{n.d(t,{A:()=>c,U:()=>l});var o=n(12115),r=n(48804),a=n(57845),i=n(15982);function l(e){return t=>o.createElement(a.Ay,{theme:{token:{motion:!1,zIndexPopupBase:0}}},o.createElement(e,Object.assign({},t)))}let c=(e,t,n,a,c)=>l(l=>{let{prefixCls:u,style:s}=l,d=o.useRef(null),[f,p]=o.useState(0),[m,v]=o.useState(0),[g,h]=(0,r.A)(!1,{value:l.open}),{getPrefixCls:b}=o.useContext(i.QO),y=b(a||"select",u);o.useEffect(()=>{if(h(!0),"undefined"!=typeof ResizeObserver){let e=new ResizeObserver(e=>{let t=e[0].target;p(t.offsetHeight+8),v(t.offsetWidth)}),t=setInterval(()=>{var n;let o=c?".".concat(c(y)):".".concat(y,"-dropdown"),r=null==(n=d.current)?void 0:n.querySelector(o);r&&(clearInterval(t),e.observe(r))},10);return()=>{clearInterval(t),e.disconnect()}}},[y]);let A=Object.assign(Object.assign({},l),{style:Object.assign(Object.assign({},s),{margin:0}),open:g,visible:g,getPopupContainer:()=>d.current});return n&&(A=n(A)),t&&Object.assign(A,{[t]:{overflow:{adjustX:!1,adjustY:!1}}}),o.createElement("div",{ref:d,style:{paddingBottom:f,position:"relative",minWidth:m}},o.createElement(e,Object.assign({},A)))})},32013:(e,t,n)=>{n.d(t,{A:()=>e5});var o=n(12115),r=n(29300),a=n.n(r),i=n(79630),l=n(85757),c=n(40419),u=n(27061),s=n(21858),d=n(20235),f=n(86608),p=n(48804),m=n(9587),v=n(49172),g=n(96951),h=n(74686);let b=function(e){var t=e.className,n=e.customizeIcon,r=e.customizeIconProps,i=e.children,l=e.onMouseDown,c=e.onClick,u="function"==typeof n?n(r):n;return o.createElement("span",{className:t,onMouseDown:function(e){e.preventDefault(),null==l||l(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:c,"aria-hidden":!0},void 0!==u?u:o.createElement("span",{className:a()(t.split(/\s+/).map(function(e){return"".concat(e,"-icon")}))},i))};var y=function(e,t,n,r,a){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],l=arguments.length>6?arguments[6]:void 0,c=arguments.length>7?arguments[7]:void 0,u=o.useMemo(function(){return"object"===(0,f.A)(r)?r.clearIcon:a||void 0},[r,a]);return{allowClear:o.useMemo(function(){return!i&&!!r&&(!!n.length||!!l)&&("combobox"!==c||""!==l)},[r,i,n.length,l,c]),clearIcon:o.createElement(b,{className:"".concat(e,"-clear"),onMouseDown:t,customizeIcon:u},"\xd7")}},A=o.createContext(null);function w(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,t=o.useRef(null),n=o.useRef(null);return o.useEffect(function(){return function(){window.clearTimeout(n.current)}},[]),[function(){return t.current},function(o){(o||null===t.current)&&(t.current=o),window.clearTimeout(n.current),n.current=window.setTimeout(function(){t.current=null},e)}]}var E=n(17233),C=n(40032),S=n(60343);let x=function(e,t,n){var o=(0,u.A)((0,u.A)({},e),n?t:{});return Object.keys(t).forEach(function(n){var r=t[n];"function"==typeof r&&(o[n]=function(){for(var t,o=arguments.length,a=Array(o),i=0;iM&&(a="".concat(i.slice(0,M),"..."))}var l=function(t){t&&t.stopPropagation(),L(e)};return"function"==typeof T?er(o,a,t,r,l):eo(e,a,t,r,l)},renderRest:function(e){if(!l.length)return null;var t="function"==typeof D?D(e):D;return"function"==typeof T?er(void 0,t,!1,!1,void 0,!0):eo({title:t},t,!1)},suffix:ea,itemKey:P,maxCount:O});return o.createElement("span",{className:"".concat(ee,"-wrap")},ei,!l.length&&!et&&o.createElement("span",{className:"".concat(ee,"-placeholder")},m))},T=function(e){var t=e.inputElement,n=e.prefixCls,r=e.id,a=e.inputRef,i=e.disabled,l=e.autoFocus,c=e.autoComplete,u=e.activeDescendantId,d=e.mode,f=e.open,p=e.values,m=e.placeholder,v=e.tabIndex,g=e.showSearch,h=e.searchValue,b=e.activeValue,y=e.maxLength,A=e.onInputKeyDown,w=e.onInputMouseDown,E=e.onInputChange,S=e.onInputPaste,x=e.onInputCompositionStart,O=e.onInputCompositionEnd,M=e.onInputBlur,R=e.title,N=o.useState(!1),P=(0,s.A)(N,2),z=P[0],D=P[1],T="combobox"===d,j=T||g,L=p[0],H=h||"";T&&b&&!z&&(H=b),o.useEffect(function(){T&&D(!1)},[T,b]);var B=("combobox"===d||!!f||!!g)&&!!H,K=void 0===R?k(L):R,V=o.useMemo(function(){return L?null:o.createElement("span",{className:"".concat(n,"-selection-placeholder"),style:B?{visibility:"hidden"}:void 0},m)},[L,B,m,n]);return o.createElement("span",{className:"".concat(n,"-selection-wrap")},o.createElement("span",{className:"".concat(n,"-selection-search")},o.createElement(I,{ref:a,prefixCls:n,id:r,open:f,inputElement:t,disabled:i,autoFocus:l,autoComplete:c,editable:j,activeDescendantId:u,value:H,onKeyDown:A,onMouseDown:w,onChange:function(e){D(!0),E(e)},onPaste:S,onCompositionStart:x,onCompositionEnd:O,onBlur:M,tabIndex:v,attrs:(0,C.A)(e,!0),maxLength:T?y:void 0})),!T&&L?o.createElement("span",{className:"".concat(n,"-selection-item"),title:K,style:B?{visibility:"hidden"}:void 0},L.label):null,V)};var j=o.forwardRef(function(e,t){var n=(0,o.useRef)(null),r=(0,o.useRef)(!1),a=e.prefixCls,l=e.open,c=e.mode,u=e.showSearch,d=e.tokenWithEnter,f=e.disabled,p=e.prefix,m=e.autoClearSearchValue,v=e.onSearch,g=e.onSearchSubmit,h=e.onToggleOpen,b=e.onInputKeyDown,y=e.onInputBlur,A=e.domRef;o.useImperativeHandle(t,function(){return{focus:function(e){n.current.focus(e)},blur:function(){n.current.blur()}}});var C=w(0),S=(0,s.A)(C,2),x=S[0],O=S[1],I=(0,o.useRef)(null),M=function(e){!1!==v(e,!0,r.current)&&h(!0)},R={inputRef:n,onInputKeyDown:function(e){var t=e.which,o=n.current instanceof HTMLTextAreaElement;!o&&l&&(t===E.A.UP||t===E.A.DOWN)&&e.preventDefault(),b&&b(e),t!==E.A.ENTER||"tags"!==c||r.current||l||null==g||g(e.target.value),o&&!l&&~[E.A.UP,E.A.DOWN,E.A.LEFT,E.A.RIGHT].indexOf(t)||t&&![E.A.ESC,E.A.SHIFT,E.A.BACKSPACE,E.A.TAB,E.A.WIN_KEY,E.A.ALT,E.A.META,E.A.WIN_KEY_RIGHT,E.A.CTRL,E.A.SEMICOLON,E.A.EQUALS,E.A.CAPS_LOCK,E.A.CONTEXT_MENU,E.A.F1,E.A.F2,E.A.F3,E.A.F4,E.A.F5,E.A.F6,E.A.F7,E.A.F8,E.A.F9,E.A.F10,E.A.F11,E.A.F12].includes(t)&&h(!0)},onInputMouseDown:function(){O(!0)},onInputChange:function(e){var t=e.target.value;if(d&&I.current&&/[\r\n]/.test(I.current)){var n=I.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");t=t.replace(n,I.current)}I.current=null,M(t)},onInputPaste:function(e){var t=e.clipboardData;I.current=(null==t?void 0:t.getData("text"))||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==c&&M(e.target.value)},onInputBlur:y},N="multiple"===c||"tags"===c?o.createElement(D,(0,i.A)({},e,R)):o.createElement(T,(0,i.A)({},e,R));return o.createElement("div",{ref:A,className:"".concat(a,"-selector"),onClick:function(e){e.target!==n.current&&(void 0!==document.body.style.msTouchAction?setTimeout(function(){n.current.focus()}):n.current.focus())},onMouseDown:function(e){var t=x();e.target===n.current||t||"combobox"===c&&f||e.preventDefault(),("combobox"===c||u&&t)&&l||(l&&!1!==m&&v("",!0,!1),h())}},p&&o.createElement("div",{className:"".concat(a,"-prefix")},p),N)}),L=n(56980),H=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],B=function(e){var t=+(!0!==e);return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:t,adjustY:1},htmlRegion:"scroll"}}},K=o.forwardRef(function(e,t){var n=e.prefixCls,r=(e.disabled,e.visible),l=e.children,s=e.popupElement,f=e.animation,p=e.transitionName,m=e.dropdownStyle,v=e.dropdownClassName,g=e.direction,h=e.placement,b=e.builtinPlacements,y=e.dropdownMatchSelectWidth,A=e.dropdownRender,w=e.dropdownAlign,E=e.getPopupContainer,C=e.empty,S=e.getTriggerDOMNode,x=e.onPopupVisibleChange,O=e.onPopupMouseEnter,I=(0,d.A)(e,H),M="".concat(n,"-dropdown"),R=s;A&&(R=A(s));var N=o.useMemo(function(){return b||B(y)},[b,y]),k=f?"".concat(M,"-").concat(f):p,P="number"==typeof y,z=o.useMemo(function(){return P?null:!1===y?"minWidth":"width"},[y,P]),D=m;P&&(D=(0,u.A)((0,u.A)({},D),{},{width:y}));var T=o.useRef(null);return o.useImperativeHandle(t,function(){return{getPopupElement:function(){var e;return null==(e=T.current)?void 0:e.popupElement}}}),o.createElement(L.A,(0,i.A)({},I,{showAction:x?["click"]:[],hideAction:x?["click"]:[],popupPlacement:h||("rtl"===(void 0===g?"ltr":g)?"bottomRight":"bottomLeft"),builtinPlacements:N,prefixCls:M,popupTransitionName:k,popup:o.createElement("div",{onMouseEnter:O},R),ref:T,stretch:z,popupAlign:w,popupVisible:r,getPopupContainer:E,popupClassName:a()(v,(0,c.A)({},"".concat(M,"-empty"),C)),popupStyle:D,getTriggerDOMNode:S,onPopupVisibleChange:x}),l)}),V=n(93821);function F(e,t){var n,o=e.key;return("value"in e&&(n=e.value),null!=o)?o:void 0!==n?n:"rc-index-key-".concat(t)}function W(e){return void 0!==e&&!Number.isNaN(e)}function _(e,t){var n=e||{},o=n.label,r=n.value,a=n.options,i=n.groupLabel,l=o||(t?"children":"label");return{label:l,value:r||"value",options:a||"options",groupLabel:i||l}}function X(e){var t=(0,u.A)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,m.Ay)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var G=function(e,t,n){if(!t||!t.length)return null;var o=!1,r=function e(t,n){var r=(0,V.A)(n),a=r[0],i=r.slice(1);if(!a)return[t];var c=t.split(a);return o=o||c.length>1,c.reduce(function(t,n){return[].concat((0,l.A)(t),(0,l.A)(e(n,i)))},[]).filter(Boolean)}(e,t);return o?void 0!==n?r.slice(0,n):r:null},Y=o.createContext(null);function q(e){var t=e.visible,n=e.values;return t?o.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(n.slice(0,50).map(function(e){var t=e.label,n=e.value;return["number","string"].includes((0,f.A)(t))?t:n}).join(", ")),n.length>50?", ...":null):null}var U=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Q=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],$=function(e){return"tags"===e||"multiple"===e},J=o.forwardRef(function(e,t){var n,r,f,m,E,C,S,x=e.id,O=e.prefixCls,I=e.className,M=e.showSearch,R=e.tagRender,N=e.direction,k=e.omitDomProps,P=e.displayValues,z=e.onDisplayValuesChange,D=e.emptyOptions,T=e.notFoundContent,L=void 0===T?"Not Found":T,H=e.onClear,B=e.mode,V=e.disabled,F=e.loading,_=e.getInputElement,X=e.getRawInputElement,J=e.open,Z=e.defaultOpen,ee=e.onDropdownVisibleChange,et=e.activeValue,en=e.onActiveValueChange,eo=e.activeDescendantId,er=e.searchValue,ea=e.autoClearSearchValue,ei=e.onSearch,el=e.onSearchSplit,ec=e.tokenSeparators,eu=e.allowClear,es=e.prefix,ed=e.suffixIcon,ef=e.clearIcon,ep=e.OptionList,em=e.animation,ev=e.transitionName,eg=e.dropdownStyle,eh=e.dropdownClassName,eb=e.dropdownMatchSelectWidth,ey=e.dropdownRender,eA=e.dropdownAlign,ew=e.placement,eE=e.builtinPlacements,eC=e.getPopupContainer,eS=e.showAction,ex=void 0===eS?[]:eS,eO=e.onFocus,eI=e.onBlur,eM=e.onKeyUp,eR=e.onKeyDown,eN=e.onMouseDown,ek=(0,d.A)(e,U),eP=$(B),ez=(void 0!==M?M:eP)||"combobox"===B,eD=(0,u.A)({},ek);Q.forEach(function(e){delete eD[e]}),null==k||k.forEach(function(e){delete eD[e]});var eT=o.useState(!1),ej=(0,s.A)(eT,2),eL=ej[0],eH=ej[1];o.useEffect(function(){eH((0,g.A)())},[]);var eB=o.useRef(null),eK=o.useRef(null),eV=o.useRef(null),eF=o.useRef(null),eW=o.useRef(null),e_=o.useRef(!1),eX=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,t=o.useState(!1),n=(0,s.A)(t,2),r=n[0],a=n[1],i=o.useRef(null),l=function(){window.clearTimeout(i.current)};return o.useEffect(function(){return l},[]),[r,function(t,n){l(),i.current=window.setTimeout(function(){a(t),n&&n()},e)},l]}(),eG=(0,s.A)(eX,3),eY=eG[0],eq=eG[1],eU=eG[2];o.useImperativeHandle(t,function(){var e,t;return{focus:null==(e=eF.current)?void 0:e.focus,blur:null==(t=eF.current)?void 0:t.blur,scrollTo:function(e){var t;return null==(t=eW.current)?void 0:t.scrollTo(e)},nativeElement:eB.current||eK.current}});var eQ=o.useMemo(function(){if("combobox"!==B)return er;var e,t=null==(e=P[0])?void 0:e.value;return"string"==typeof t||"number"==typeof t?String(t):""},[er,B,P]),e$="combobox"===B&&"function"==typeof _&&_()||null,eJ="function"==typeof X&&X(),eZ=(0,h.xK)(eK,null==eJ||null==(m=eJ.props)?void 0:m.ref),e0=o.useState(!1),e1=(0,s.A)(e0,2),e2=e1[0],e4=e1[1];(0,v.A)(function(){e4(!0)},[]);var e6=(0,p.A)(!1,{defaultValue:Z,value:J}),e3=(0,s.A)(e6,2),e5=e3[0],e8=e3[1],e9=!!e2&&e5,e7=!L&&D;(V||e7&&e9&&"combobox"===B)&&(e9=!1);var te=!e7&&e9,tt=o.useCallback(function(e){var t=void 0!==e?e:!e9;V||(e8(t),e9!==t&&(null==ee||ee(t)))},[V,e9,e8,ee]),tn=o.useMemo(function(){return(ec||[]).some(function(e){return["\n","\r\n"].includes(e)})},[ec]),to=o.useContext(Y)||{},tr=to.maxCount,ta=to.rawValues,ti=function(e,t,n){if(!(eP&&W(tr))||!((null==ta?void 0:ta.size)>=tr)){var o=!0,r=e;null==en||en(null);var a=G(e,ec,W(tr)?tr-ta.size:void 0),i=n?null:a;return"combobox"!==B&&i&&(r="",null==el||el(i),tt(!1),o=!1),ei&&eQ!==r&&ei(r,{source:t?"typing":"effect"}),o}};o.useEffect(function(){e9||eP||"combobox"===B||ti("",!1,!1)},[e9]),o.useEffect(function(){e5&&V&&e8(!1),V&&!e_.current&&eq(!1)},[V]);var tl=w(),tc=(0,s.A)(tl,2),tu=tc[0],ts=tc[1],td=o.useRef(!1),tf=o.useRef(!1),tp=[];o.useEffect(function(){return function(){tp.forEach(function(e){return clearTimeout(e)}),tp.splice(0,tp.length)}},[]);var tm=o.useState({}),tv=(0,s.A)(tm,2)[1];eJ&&(E=function(e){tt(e)}),n=function(){var e;return[eB.current,null==(e=eV.current)?void 0:e.getPopupElement()]},r=!!eJ,(f=o.useRef(null)).current={open:te,triggerOpen:tt,customizedTrigger:r},o.useEffect(function(){function e(e){if(null==(t=f.current)||!t.customizedTrigger){var t,o=e.target;o.shadowRoot&&e.composed&&(o=e.composedPath()[0]||o),f.current.open&&n().filter(function(e){return e}).every(function(e){return!e.contains(o)&&e!==o})&&f.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}},[]);var tg=o.useMemo(function(){return(0,u.A)((0,u.A)({},e),{},{notFoundContent:L,open:e9,triggerOpen:te,id:x,showSearch:ez,multiple:eP,toggleOpen:tt})},[e,L,te,e9,x,ez,eP,tt]),th=!!ed||F;th&&(C=o.createElement(b,{className:a()("".concat(O,"-arrow"),(0,c.A)({},"".concat(O,"-arrow-loading"),F)),customizeIcon:ed,customizeIconProps:{loading:F,searchValue:eQ,open:e9,focused:eY,showSearch:ez}}));var tb=y(O,function(){var e;null==H||H(),null==(e=eF.current)||e.focus(),z([],{type:"clear",values:P}),ti("",!1,!1)},P,eu,ef,V,eQ,B),ty=tb.allowClear,tA=tb.clearIcon,tw=o.createElement(ep,{ref:eW}),tE=a()(O,I,(0,c.A)((0,c.A)((0,c.A)((0,c.A)((0,c.A)((0,c.A)((0,c.A)((0,c.A)((0,c.A)((0,c.A)({},"".concat(O,"-focused"),eY),"".concat(O,"-multiple"),eP),"".concat(O,"-single"),!eP),"".concat(O,"-allow-clear"),eu),"".concat(O,"-show-arrow"),th),"".concat(O,"-disabled"),V),"".concat(O,"-loading"),F),"".concat(O,"-open"),e9),"".concat(O,"-customize-input"),e$),"".concat(O,"-show-search"),ez)),tC=o.createElement(K,{ref:eV,disabled:V,prefixCls:O,visible:te,popupElement:tw,animation:em,transitionName:ev,dropdownStyle:eg,dropdownClassName:eh,direction:N,dropdownMatchSelectWidth:eb,dropdownRender:ey,dropdownAlign:eA,placement:ew,builtinPlacements:eE,getPopupContainer:eC,empty:D,getTriggerDOMNode:function(e){return eK.current||e},onPopupVisibleChange:E,onPopupMouseEnter:function(){tv({})}},eJ?o.cloneElement(eJ,{ref:eZ}):o.createElement(j,(0,i.A)({},e,{domRef:eK,prefixCls:O,inputElement:e$,ref:eF,id:x,prefix:es,showSearch:ez,autoClearSearchValue:ea,mode:B,activeDescendantId:eo,tagRender:R,values:P,open:e9,onToggleOpen:tt,activeValue:et,searchValue:eQ,onSearch:ti,onSearchSubmit:function(e){e&&e.trim()&&ei(e,{source:"submit"})},onRemove:function(e){z(P.filter(function(t){return t!==e}),{type:"remove",values:[e]})},tokenWithEnter:tn,onInputBlur:function(){td.current=!1}})));return S=eJ?tC:o.createElement("div",(0,i.A)({className:tE},eD,{ref:eB,onMouseDown:function(e){var t,n=e.target,o=null==(t=eV.current)?void 0:t.getPopupElement();if(o&&o.contains(n)){var r=setTimeout(function(){var e,t=tp.indexOf(r);-1!==t&&tp.splice(t,1),eU(),eL||o.contains(document.activeElement)||null==(e=eF.current)||e.focus()});tp.push(r)}for(var a=arguments.length,i=Array(a>1?a-1:0),l=1;l=0;c-=1){var u=a[c];if(!u.disabled){a.splice(c,1),i=u;break}}i&&z(a,{type:"remove",values:[i]})}for(var s=arguments.length,d=Array(s>1?s-1:0),f=1;f1?n-1:0),r=1;r=S},[p,S,null==N?void 0:N.size]),V=function(e){e.preventDefault()},F=function(e){var t;null==(t=B.current)||t.scrollTo("number"==typeof e?{index:e}:e)},_=o.useCallback(function(e){return"combobox"!==m&&N.has(e)},[m,(0,l.A)(N).toString(),N.size]),X=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=H.length,o=0;o1&&void 0!==arguments[1]&&arguments[1];Q(e);var n={source:t?"keyboard":"mouse"},o=H[e];if(!o)return void O(null,-1,n);O(o.value,e,n)};(0,o.useEffect)(function(){$(!1!==I?X(0):-1)},[H.length,v]);var J=o.useCallback(function(e){return"combobox"===m?String(e).toLowerCase()===v.toLowerCase():N.has(e)},[m,v,(0,l.A)(N).toString(),N.size]);(0,o.useEffect)(function(){var e,t=setTimeout(function(){if(!p&&f&&1===N.size){var e=Array.from(N)[0],t=H.findIndex(function(t){var n=t.data;return v?String(n.value).startsWith(v):n.value===e});-1!==t&&($(t),F(t))}});return f&&(null==(e=B.current)||e.scrollTo(void 0)),function(){return clearTimeout(t)}},[f,v]);var Z=function(e){void 0!==e&&M(e,{selected:!N.has(e)}),p||g(!1)};if(o.useImperativeHandle(t,function(){return{onKeyDown:function(e){var t=e.which,n=e.ctrlKey;switch(t){case E.A.N:case E.A.P:case E.A.UP:case E.A.DOWN:var o=0;if(t===E.A.UP?o=-1:t===E.A.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&n&&(t===E.A.N?o=1:t===E.A.P&&(o=-1)),0!==o){var r=X(U+o,o);F(r),$(r,!0)}break;case E.A.TAB:case E.A.ENTER:var a,i=H[U];!i||null!=i&&null!=(a=i.data)&&a.disabled||K?Z(void 0):Z(i.value),f&&e.preventDefault();break;case E.A.ESC:g(!1),f&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){F(e)}}}),0===H.length)return o.createElement("div",{role:"listbox",id:"".concat(u,"_list"),className:"".concat(L,"-empty"),onMouseDown:V},h);var ee=Object.keys(k).map(function(e){return k[e]}),ei=function(e){return e.label};function el(e,t){return{role:e.group?"presentation":"option",id:"".concat(u,"_list_").concat(t)}}var ec=function(e){var t=H[e];if(!t)return null;var n=t.data||{},r=n.value,a=t.group,l=(0,C.A)(n,!0),c=ei(t);return t?o.createElement("div",(0,i.A)({"aria-label":"string"!=typeof c||a?null:c},l,{key:e},el(t,e),{"aria-selected":J(r)}),r):null},eu={role:"listbox",id:"".concat(u,"_list")};return o.createElement(o.Fragment,null,P&&o.createElement("div",(0,i.A)({},eu,{style:{height:0,width:0,overflow:"hidden"}}),ec(U-1),ec(U),ec(U+1)),o.createElement(eo.A,{itemKey:"key",ref:B,data:H,height:D,itemHeight:T,fullHeight:!1,onMouseDown:V,onScroll:y,virtual:P,direction:z,innerProps:P?null:eu},function(e,t){var n=e.group,r=e.groupOption,l=e.data,u=e.label,s=e.value,f=l.key;if(n){var p,m=null!=(p=l.title)?p:ea(u)?u.toString():void 0;return o.createElement("div",{className:a()(L,"".concat(L,"-group"),l.className),title:m},void 0!==u?u:f)}var v=l.disabled,g=l.title,h=(l.children,l.style),y=l.className,A=(0,d.A)(l,er),w=(0,en.A)(A,ee),E=_(s),S=v||!E&&K,x="".concat(L,"-option"),O=a()(L,x,y,(0,c.A)((0,c.A)((0,c.A)((0,c.A)({},"".concat(x,"-grouped"),r),"".concat(x,"-active"),U===t&&!S),"".concat(x,"-disabled"),S),"".concat(x,"-selected"),E)),I=ei(e),M=!R||"function"==typeof R||E,N="number"==typeof I?I:I||s,k=ea(N)?N.toString():void 0;return void 0!==g&&(k=g),o.createElement("div",(0,i.A)({},(0,C.A)(w),P?{}:el(e,t),{"aria-selected":J(s),className:O,title:k,onMouseMove:function(){U===t||S||$(t)},onClick:function(){S||Z(s)},style:h}),o.createElement("div",{className:"".concat(x,"-content")},"function"==typeof j?j(e,{index:t}):N),o.isValidElement(R)||E,M&&o.createElement(b,{className:"".concat(L,"-option-state"),customizeIcon:R,customizeIconProps:{value:s,disabled:S,isSelected:E}},E?"✓":null))}))});let el=function(e,t){var n=o.useRef({values:new Map,options:new Map});return[o.useMemo(function(){var o=n.current,r=o.values,a=o.options,i=e.map(function(e){if(void 0===e.label){var t;return(0,u.A)((0,u.A)({},e),{},{label:null==(t=r.get(e.value))?void 0:t.label})}return e}),l=new Map,c=new Map;return i.forEach(function(e){l.set(e.value,e),c.set(e.value,t.get(e.value)||a.get(e.value))}),n.current.values=l,n.current.options=c,i},[e,t]),o.useCallback(function(e){return t.get(e)||n.current.options.get(e)},[t])]};function ec(e,t){return M(e).join("").toUpperCase().includes(t)}var eu=n(71367),es=0,ed=(0,eu.A)(),ef=n(63715),ep=["children","value"],em=["children"];function ev(e){var t=o.useRef();return t.current=e,o.useCallback(function(){return t.current.apply(t,arguments)},[])}var eg=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],eh=["inputValue"],eb=o.forwardRef(function(e,t){var n,r,a,m,v,g=e.id,h=e.mode,b=e.prefixCls,y=e.backfill,A=e.fieldNames,w=e.inputValue,E=e.searchValue,C=e.onSearch,S=e.autoClearSearchValue,x=void 0===S||S,O=e.onSelect,I=e.onDeselect,R=e.dropdownMatchSelectWidth,N=void 0===R||R,k=e.filterOption,P=e.filterSort,z=e.optionFilterProp,D=e.optionLabelProp,T=e.options,j=e.optionRender,L=e.children,H=e.defaultActiveFirstOption,B=e.menuItemSelectedIcon,K=e.virtual,V=e.direction,W=e.listHeight,G=void 0===W?200:W,q=e.listItemHeight,U=void 0===q?20:q,Q=e.labelRender,Z=e.value,ee=e.defaultValue,et=e.labelInValue,en=e.onChange,eo=e.maxCount,er=(0,d.A)(e,eg),ea=(n=o.useState(),a=(r=(0,s.A)(n,2))[0],m=r[1],o.useEffect(function(){var e;m("rc_select_".concat((ed?(e=es,es+=1):e="TEST_OR_SSR",e)))},[]),g||a),eu=$(h),eb=!!(!T&&L),ey=o.useMemo(function(){return(void 0!==k||"combobox"!==h)&&k},[k,h]),eA=o.useMemo(function(){return _(A,eb)},[JSON.stringify(A),eb]),ew=(0,p.A)("",{value:void 0!==E?E:w,postState:function(e){return e||""}}),eE=(0,s.A)(ew,2),eC=eE[0],eS=eE[1],ex=o.useMemo(function(){var e=T;T||(e=function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,ef.A)(t).map(function(t,r){if(!o.isValidElement(t)||!t.type)return null;var a,i,l,c,s,f=t.type.isSelectOptGroup,p=t.key,m=t.props,v=m.children,g=(0,d.A)(m,em);return n||!f?(a=t.key,l=(i=t.props).children,c=i.value,s=(0,d.A)(i,ep),(0,u.A)({key:a,value:void 0!==c?c:a,children:l},s)):(0,u.A)((0,u.A)({key:"__RC_SELECT_GRP__".concat(null===p?r:p,"__"),label:p},g),{},{options:e(v)})}).filter(function(e){return e})}(L));var t=new Map,n=new Map,r=function(e,t,n){n&&"string"==typeof n&&e.set(t[n],t)};return!function e(o){for(var a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=0;i0?e(t.options):t.options}):t})}(eF):eF},[eF,P,eC]),e_=o.useMemo(function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.fieldNames,o=t.childrenAsData,r=[],a=_(n,!1),i=a.label,l=a.value,c=a.options,u=a.groupLabel;return!function e(t,n){Array.isArray(t)&&t.forEach(function(t){if(!n&&c in t){var a=t[u];void 0===a&&o&&(a=t.label),r.push({key:F(t,r.length),group:!0,data:t,label:a}),e(t[c],!0)}else{var s=t[l];r.push({key:F(t,r.length),groupOption:n,data:t,label:t[i],value:s})}})}(e,!1),r}(eW,{fieldNames:eA,childrenAsData:eb})},[eW,eA,eb]),eX=function(e){var t=eR(e);if(ez(t),en&&(t.length!==ej.length||t.some(function(e,t){var n;return(null==(n=ej[t])?void 0:n.value)!==(null==e?void 0:e.value)}))){var n=et?t:t.map(function(e){return e.value}),o=t.map(function(e){return X(eL(e.value))});en(eu?n:n[0],eu?o:o[0])}},eG=o.useState(null),eY=(0,s.A)(eG,2),eq=eY[0],eU=eY[1],eQ=o.useState(0),e$=(0,s.A)(eQ,2),eJ=e$[0],eZ=e$[1],e0=void 0!==H?H:"combobox"!==h,e1=o.useCallback(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.source;eZ(t),y&&"combobox"===h&&null!==e&&"keyboard"===(void 0===o?"keyboard":o)&&eU(String(e))},[y,h]),e2=function(e,t,n){var o=function(){var t,n=eL(e);return[et?{label:null==n?void 0:n[eA.label],value:e,key:null!=(t=null==n?void 0:n.key)?t:e}:e,X(n)]};if(t&&O){var r=o(),a=(0,s.A)(r,2);O(a[0],a[1])}else if(!t&&I&&"clear"!==n){var i=o(),l=(0,s.A)(i,2);I(l[0],l[1])}},e4=ev(function(e,t){var n=!eu||t.selected;eX(n?eu?[].concat((0,l.A)(ej),[e]):[e]:ej.filter(function(t){return t.value!==e})),e2(e,n),"combobox"===h?eU(""):(!$||x)&&(eS(""),eU(""))}),e6=o.useMemo(function(){var e=!1!==K&&!1!==N;return(0,u.A)((0,u.A)({},ex),{},{flattenOptions:e_,onActiveValue:e1,defaultActiveFirstOption:e0,onSelect:e4,menuItemSelectedIcon:B,rawValues:eB,fieldNames:eA,virtual:e,direction:V,listHeight:G,listItemHeight:U,childrenAsData:eb,maxCount:eo,optionRender:j})},[eo,ex,e_,e1,e0,e4,B,eB,eA,K,N,V,G,U,eb,j]);return o.createElement(Y.Provider,{value:e6},o.createElement(J,(0,i.A)({},er,{id:ea,prefixCls:void 0===b?"rc-select":b,ref:t,omitDomProps:eh,mode:h,displayValues:eH,onDisplayValuesChange:function(e,t){eX(e);var n=t.type,o=t.values;("remove"===n||"clear"===n)&&o.forEach(function(e){e2(e.value,!1,n)})},direction:V,searchValue:eC,onSearch:function(e,t){if(eS(e),eU(null),"submit"===t.source){var n=(e||"").trim();n&&(eX(Array.from(new Set([].concat((0,l.A)(eB),[n])))),e2(n,!0),eS(""));return}"blur"!==t.source&&("combobox"===h&&eX(e),null==C||C(e))},autoClearSearchValue:x,onSearchSplit:function(e){var t=e;"tags"!==h&&(t=e.map(function(e){var t=eI.get(e);return null==t?void 0:t.value}).filter(function(e){return void 0!==e}));var n=Array.from(new Set([].concat((0,l.A)(eB),(0,l.A)(t))));eX(n),n.forEach(function(e){e2(e,!0)})},dropdownMatchSelectWidth:N,OptionList:ei,emptyOptions:!e_.length,activeValue:eq,activeDescendantId:"".concat(ea,"_list_").concat(eJ)})))});eb.Option=ee,eb.OptGroup=Z;var ey=n(9130),eA=n(93666),ew=n(31776),eE=n(79007),eC=n(15982),eS=n(29353),ex=n(44494),eO=n(68151),eI=n(9836),eM=n(63568),eR=n(63893),eN=n(96936),ek=n(70042),eP=n(18184),ez=n(67831),eD=n(45431),eT=n(61388),ej=n(53272),eL=n(52770);let eH=e=>{let{optionHeight:t,optionFontSize:n,optionLineHeight:o,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:t,padding:r,color:e.colorText,fontWeight:"normal",fontSize:n,lineHeight:o,boxSizing:"border-box"}};var eB=n(99841);function eK(e,t){let{componentCls:n}=e,o=t?"".concat(n,"-").concat(t):"",r={["".concat(n,"-multiple").concat(o)]:{fontSize:e.fontSize,["".concat(n,"-selector")]:{["".concat(n,"-show-search&")]:{cursor:"text"}},["\n &".concat(n,"-show-arrow ").concat(n,"-selector,\n &").concat(n,"-allow-clear ").concat(n,"-selector\n ")]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[((e,t)=>{let{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:o}=e,r="".concat(n,"-selection-overflow"),a=e.multipleSelectItemHeight,i=(e=>{let{multipleSelectItemHeight:t,selectHeight:n,lineWidth:o}=e;return e.calc(n).sub(t).div(2).sub(o).equal()})(e),l=t?"".concat(n,"-").concat(t):"",c=(e=>{let{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:o,INTERNAL_FIXED_ITEM_MARGIN:r}=e,a=e.max(e.calc(n).sub(o).equal(),0),i=e.max(e.calc(a).sub(r).equal(),0);return{basePadding:a,containerPadding:i,itemHeight:(0,eB.zA)(t),itemLineHeight:(0,eB.zA)(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return{["".concat(n,"-multiple").concat(l)]:Object.assign(Object.assign({},(e=>{let{componentCls:t,iconCls:n,borderRadiusSM:o,motionDurationSlow:r,paddingXS:a,multipleItemColorDisabled:i,multipleItemBorderColorDisabled:l,colorIcon:c,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:s}=e;return{["".concat(t,"-selection-overflow")]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},["".concat(t,"-selection-item")]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:s,borderRadius:o,cursor:"default",transition:"font-size ".concat(r,", line-height ").concat(r,", height ").concat(r),marginInlineEnd:e.calc(s).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),["".concat(t,"-disabled&")]:{color:i,borderColor:l,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,eP.Nk)()),{display:"inline-flex",alignItems:"center",color:c,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",["> ".concat(n)]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}})(e)),{["".concat(n,"-selector")]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,["".concat(n,"-disabled&")]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:"".concat((0,eB.zA)(o)," 0"),lineHeight:(0,eB.zA)(a),visibility:"hidden",content:'"\\a0"'}},["".concat(n,"-selection-item")]:{height:c.itemHeight,lineHeight:(0,eB.zA)(c.itemLineHeight)},["".concat(n,"-selection-wrap")]:{alignSelf:"flex-start","&:after":{lineHeight:(0,eB.zA)(a),marginBlock:o}},["".concat(n,"-prefix")]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal()},["".concat(r,"-item + ").concat(r,"-item,\n ").concat(n,"-prefix + ").concat(n,"-selection-wrap\n ")]:{["".concat(n,"-selection-search")]:{marginInlineStart:0},["".concat(n,"-selection-placeholder")]:{insetInlineStart:0}},["".concat(r,"-item-suffix")]:{minHeight:c.itemHeight,marginBlock:o},["".concat(n,"-selection-search")]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(i).equal(),"\n &-input,\n &-mirror\n ":{height:a,fontFamily:e.fontFamily,lineHeight:(0,eB.zA)(a),transition:"all ".concat(e.motionDurationSlow)},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},["".concat(n,"-selection-placeholder")]:{position:"absolute",top:"50%",insetInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(c.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:"all ".concat(e.motionDurationSlow)}})}})(e,t),r]}function eV(e,t){let{componentCls:n,inputPaddingHorizontalBase:o,borderRadius:r}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),i=t?"".concat(n,"-").concat(t):"";return{["".concat(n,"-single").concat(i)]:{fontSize:e.fontSize,height:e.controlHeight,["".concat(n,"-selector")]:Object.assign(Object.assign({},(0,eP.dF)(e,!0)),{display:"flex",borderRadius:r,flex:"1 1 auto",["".concat(n,"-selection-wrap:after")]:{lineHeight:(0,eB.zA)(a)},["".concat(n,"-selection-search")]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},["\n ".concat(n,"-selection-item,\n ").concat(n,"-selection-placeholder\n ")]:{display:"block",padding:0,lineHeight:(0,eB.zA)(a),transition:"all ".concat(e.motionDurationSlow,", visibility 0s"),alignSelf:"center"},["".concat(n,"-selection-placeholder")]:{transition:"none",pointerEvents:"none"},[["&:after","".concat(n,"-selection-item:empty:after"),"".concat(n,"-selection-placeholder:empty:after")].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),["\n &".concat(n,"-show-arrow ").concat(n,"-selection-item,\n &").concat(n,"-show-arrow ").concat(n,"-selection-search,\n &").concat(n,"-show-arrow ").concat(n,"-selection-placeholder\n ")]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},["&".concat(n,"-open ").concat(n,"-selection-item")]:{color:e.colorTextPlaceholder},["&:not(".concat(n,"-customize-input)")]:{["".concat(n,"-selector")]:{width:"100%",height:"100%",alignItems:"center",padding:"0 ".concat((0,eB.zA)(o)),["".concat(n,"-selection-search-input")]:{height:a,fontSize:e.fontSize},"&:after":{lineHeight:(0,eB.zA)(a)}}},["&".concat(n,"-customize-input")]:{["".concat(n,"-selector")]:{"&:after":{display:"none"},["".concat(n,"-selection-search")]:{position:"static",width:"100%"},["".concat(n,"-selection-placeholder")]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:"0 ".concat((0,eB.zA)(o)),"&:after":{display:"none"}}}}}}}let eF=(e,t)=>{let{componentCls:n,antCls:o,controlOutlineWidth:r}=e;return{["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:{border:"".concat((0,eB.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(t.borderColor),background:e.selectorBg},["&:not(".concat(n,"-disabled):not(").concat(n,"-customize-input):not(").concat(o,"-pagination-size-changer)")]:{["&:hover ".concat(n,"-selector")]:{borderColor:t.hoverBorderHover},["".concat(n,"-focused& ").concat(n,"-selector")]:{borderColor:t.activeBorderColor,boxShadow:"0 0 0 ".concat((0,eB.zA)(r)," ").concat(t.activeOutlineColor),outline:0},["".concat(n,"-prefix")]:{color:t.color}}}},eW=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status)]:Object.assign({},eF(e,t))}),e_=(e,t)=>{let{componentCls:n,antCls:o}=e;return{["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:{background:t.bg,border:"".concat((0,eB.zA)(e.lineWidth)," ").concat(e.lineType," transparent"),color:t.color},["&:not(".concat(n,"-disabled):not(").concat(n,"-customize-input):not(").concat(o,"-pagination-size-changer)")]:{["&:hover ".concat(n,"-selector")]:{background:t.hoverBg},["".concat(n,"-focused& ").concat(n,"-selector")]:{background:e.selectorBg,borderColor:t.activeBorderColor,outline:0}}}},eX=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status)]:Object.assign({},e_(e,t))}),eG=(e,t)=>{let{componentCls:n,antCls:o}=e;return{["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:{borderWidth:"".concat((0,eB.zA)(e.lineWidth)," 0"),borderStyle:"".concat(e.lineType," none"),borderColor:"transparent transparent ".concat(t.borderColor," transparent"),background:e.selectorBg,borderRadius:0},["&:not(".concat(n,"-disabled):not(").concat(n,"-customize-input):not(").concat(o,"-pagination-size-changer)")]:{["&:hover ".concat(n,"-selector")]:{borderColor:"transparent transparent ".concat(t.hoverBorderHover," transparent")},["".concat(n,"-focused& ").concat(n,"-selector")]:{borderColor:"transparent transparent ".concat(t.activeBorderColor," transparent"),outline:0},["".concat(n,"-prefix")]:{color:t.color}}}},eY=(e,t)=>({["&".concat(e.componentCls,"-status-").concat(t.status)]:Object.assign({},eG(e,t))}),eq=(0,eD.OF)("Select",(e,t)=>{let{rootPrefixCls:n}=t,o=(0,eT.oX)(e,{rootPrefixCls:n,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[(e=>{let{componentCls:t}=e;return[{[t]:{["&".concat(t,"-in-form-item")]:{width:"100%"}}},(e=>{let{antCls:t,componentCls:n,inputPaddingHorizontalBase:o,iconCls:r}=e,a={["".concat(n,"-clear")]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},(0,eP.dF)(e)),{position:"relative",display:"inline-flex",cursor:"pointer",["&:not(".concat(n,"-customize-input) ").concat(n,"-selector")]:Object.assign(Object.assign({},(e=>{let{componentCls:t}=e;return{position:"relative",transition:"all ".concat(e.motionDurationMid," ").concat(e.motionEaseInOut),input:{cursor:"pointer"},["".concat(t,"-show-search&")]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},["".concat(t,"-disabled&")]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}})(e)),(e=>{let{componentCls:t}=e;return{["".concat(t,"-selection-search-input")]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none",appearance:"none"}}}})(e)),["".concat(n,"-selection-item")]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},eP.L9),{["> ".concat(t,"-typography")]:{display:"inline"}}),["".concat(n,"-selection-placeholder")]:Object.assign(Object.assign({},eP.L9),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),["".concat(n,"-arrow")]:Object.assign(Object.assign({},(0,eP.Nk)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:"opacity ".concat(e.motionDurationSlow," ease"),[r]:{verticalAlign:"top",transition:"transform ".concat(e.motionDurationSlow),"> svg":{verticalAlign:"top"},["&:not(".concat(n,"-suffix)")]:{pointerEvents:"auto"}},["".concat(n,"-disabled &")]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),["".concat(n,"-selection-wrap")]:{display:"flex",width:"100%",position:"relative",minWidth:0,"&:after":{content:'"\\a0"',width:0,overflow:"hidden"}},["".concat(n,"-prefix")]:{flex:"none",marginInlineEnd:e.selectAffixPadding},["".concat(n,"-clear")]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:o,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:"color ".concat(e.motionDurationMid," ease, opacity ").concat(e.motionDurationSlow," ease"),textRendering:"auto",transform:"translateZ(0)","&:before":{display:"block"},"&:hover":{color:e.colorIcon}},"@media(hover:none)":a,"&:hover":a}),["".concat(n,"-status")]:{"&-error, &-warning, &-success, &-validating":{["&".concat(n,"-has-feedback")]:{["".concat(n,"-clear")]:{insetInlineEnd:e.calc(o).add(e.fontSize).add(e.paddingXS).equal()}}}}}})(e),function(e){let{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[eV(e),eV((0,eT.oX)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{["".concat(t,"-single").concat(t,"-sm")]:{["&:not(".concat(t,"-customize-input)")]:{["".concat(t,"-selector")]:{padding:"0 ".concat((0,eB.zA)(n))},["&".concat(t,"-show-arrow ").concat(t,"-selection-search")]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},["\n &".concat(t,"-show-arrow ").concat(t,"-selection-item,\n &").concat(t,"-show-arrow ").concat(t,"-selection-placeholder\n ")]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},eV((0,eT.oX)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}(e),(e=>{let{componentCls:t}=e,n=(0,eT.oX)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=(0,eT.oX)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[eK(e),eK(n,"sm"),{["".concat(t,"-multiple").concat(t,"-sm")]:{["".concat(t,"-selection-placeholder")]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},["".concat(t,"-selection-search")]:{marginInlineStart:2}}},eK(o,"lg")]})(e),(e=>{let{antCls:t,componentCls:n}=e,o="".concat(n,"-item"),r="&".concat(t,"-slide-up-enter").concat(t,"-slide-up-enter-active"),a="&".concat(t,"-slide-up-appear").concat(t,"-slide-up-appear-active"),i="&".concat(t,"-slide-up-leave").concat(t,"-slide-up-leave-active"),l="".concat(n,"-dropdown-placement-"),c="".concat(o,"-option-selected");return[{["".concat(n,"-dropdown")]:Object.assign(Object.assign({},(0,eP.dF)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,["\n ".concat(r).concat(l,"bottomLeft,\n ").concat(a).concat(l,"bottomLeft\n ")]:{animationName:ej.ox},["\n ".concat(r).concat(l,"topLeft,\n ").concat(a).concat(l,"topLeft,\n ").concat(r).concat(l,"topRight,\n ").concat(a).concat(l,"topRight\n ")]:{animationName:ej.nP},["".concat(i).concat(l,"bottomLeft")]:{animationName:ej.vR},["\n ".concat(i).concat(l,"topLeft,\n ").concat(i).concat(l,"topRight\n ")]:{animationName:ej.YU},"&-hidden":{display:"none"},[o]:Object.assign(Object.assign({},eH(e)),{cursor:"pointer",transition:"background ".concat(e.motionDurationSlow," ease"),borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},eP.L9),"&-state":{flex:"none",display:"flex",alignItems:"center"},["&-active:not(".concat(o,"-option-disabled)")]:{backgroundColor:e.optionActiveBg},["&-selected:not(".concat(o,"-option-disabled)")]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,["".concat(o,"-option-state")]:{color:e.colorPrimary}},"&-disabled":{["&".concat(o,"-option-selected")]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},eH(e)),{color:e.colorTextDisabled})}),["".concat(c,":has(+ ").concat(c,")")]:{borderEndStartRadius:0,borderEndEndRadius:0,["& + ".concat(c)]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},(0,ej._j)(e,"slide-up"),(0,ej._j)(e,"slide-down"),(0,eL.Mh)(e,"move-up"),(0,eL.Mh)(e,"move-down")]})(e),{["".concat(t,"-rtl")]:{direction:"rtl"}},(0,ez.G)(e,{borderElCls:"".concat(t,"-selector"),focusElCls:"".concat(t,"-focused")})]})(o),(e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},(e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},eF(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),eW(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),eW(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.multipleItemBg,border:"".concat((0,eB.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(e.multipleItemBorderColor)}})}))(e)),(e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},e_(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),eX(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),eX(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.colorBgContainer,border:"".concat((0,eB.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(e.colorSplit)}})}))(e)),(e=>({"&-borderless":{["".concat(e.componentCls,"-selector")]:{background:"transparent",border:"".concat((0,eB.zA)(e.lineWidth)," ").concat(e.lineType," transparent")},["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.multipleItemBg,border:"".concat((0,eB.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(e.multipleItemBorderColor)},["&".concat(e.componentCls,"-status-error")]:{["".concat(e.componentCls,"-prefix, ").concat(e.componentCls,"-selection-item")]:{color:e.colorError}},["&".concat(e.componentCls,"-status-warning")]:{["".concat(e.componentCls,"-prefix, ").concat(e.componentCls,"-selection-item")]:{color:e.colorWarning}}}}))(e)),(e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},eG(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),eY(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),eY(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeOutlineColor:e.colorWarningOutline,color:e.colorWarning})),{["&".concat(e.componentCls,"-disabled")]:{["&:not(".concat(e.componentCls,"-customize-input) ").concat(e.componentCls,"-selector")]:{color:e.colorTextDisabled}},["&".concat(e.componentCls,"-multiple ").concat(e.componentCls,"-selection-item")]:{background:e.multipleItemBg,border:"".concat((0,eB.zA)(e.lineWidth)," ").concat(e.lineType," ").concat(e.multipleItemBorderColor)}})}))(e))}))(o)]},e=>{let{fontSize:t,lineHeight:n,lineWidth:o,controlHeight:r,controlHeightSM:a,controlHeightLG:i,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:u,colorText:s,fontWeightStrong:d,controlItemBgActive:f,controlItemBgHover:p,colorBgContainer:m,colorFillSecondary:v,colorBgContainerDisabled:g,colorTextDisabled:h,colorPrimaryHover:b,colorPrimary:y,controlOutline:A}=e,w=2*l,E=2*o,C=Math.min(r-w,r-E),S=Math.min(a-w,a-E),x=Math.min(i-w,i-E);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:u+50,optionSelectedColor:s,optionSelectedFontWeight:d,optionSelectedBg:f,optionActiveBg:p,optionPadding:"".concat((r-t*n)/2,"px ").concat(c,"px"),optionFontSize:t,optionLineHeight:n,optionHeight:r,selectorBg:m,clearBg:m,singleItemHeightLG:i,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:C,multipleItemHeightSM:S,multipleItemHeightLG:x,multipleSelectorBgDisabled:g,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize),hoverBorderColor:b,activeBorderColor:y,activeOutlineColor:A,selectAffixPadding:l}},{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var eU=n(93084),eQ=n(51754),e$=n(48776),eJ=n(58464),eZ=n(51280),e0=n(44200),e1=n(9184),e2=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);rt.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};let e4="SECRET_COMBOBOX_MODE_DO_NOT_USE",e6=o.forwardRef((e,t)=>{var n,r,i,l,c;let u,{prefixCls:s,bordered:d,className:f,rootClassName:p,getPopupContainer:m,popupClassName:v,dropdownClassName:g,listHeight:h=256,placement:b,listItemHeight:y,size:A,disabled:w,notFoundContent:E,status:C,builtinPlacements:S,dropdownMatchSelectWidth:x,popupMatchSelectWidth:O,direction:I,style:M,allowClear:R,variant:N,dropdownStyle:k,transitionName:P,tagRender:z,maxCount:D,prefix:T,dropdownRender:j,popupRender:L,onDropdownVisibleChange:H,onOpenChange:B,styles:K,classNames:V}=e,F=e2(e,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear","variant","dropdownStyle","transitionName","tagRender","maxCount","prefix","dropdownRender","popupRender","onDropdownVisibleChange","onOpenChange","styles","classNames"]),{getPopupContainer:W,getPrefixCls:_,renderEmpty:X,direction:G,virtual:Y,popupMatchSelectWidth:q,popupOverflow:U}=o.useContext(eC.QO),{showSearch:Q,style:$,styles:J,className:Z,classNames:ee}=(0,eC.TP)("select"),[,et]=(0,ek.Ay)(),eo=null!=y?y:null==et?void 0:et.controlHeight,er=_("select",s),ea=_(),ei=null!=I?I:G,{compactSize:el,compactItemClassnames:ec}=(0,eN.RQ)(er,ei),[eu,es]=(0,eR.A)("select",N,d),ed=(0,eO.A)(er),[ef,ep,em]=eq(er,ed),ev=o.useMemo(()=>{let{mode:t}=e;if("combobox"!==t)return t===e4?"combobox":t},[e.mode]),eg="multiple"===ev||"tags"===ev,eh=function(e,t){return void 0!==t?t:null!==e}(e.suffixIcon,e.showArrow),ew=null!=(n=null!=O?O:x)?n:q,eP=(null==(r=null==K?void 0:K.popup)?void 0:r.root)||(null==(i=J.popup)?void 0:i.root)||k,ez=function(e){return o.useMemo(()=>{if(e)return function(){for(var t=arguments.length,n=Array(t),r=0;rnull!==t||c||f?o.createElement(o.Fragment,null,!1!==s&&e,c&&d):null,g=null;if(void 0!==t)g=v(t);else if(i)g=v(o.createElement(eZ.A,{spin:!0}));else{let e="".concat(u,"-suffix");g=t=>{let{open:n,showSearch:r}=t;return n&&r?v(o.createElement(e0.A,{className:e})):v(o.createElement(eJ.A,{className:e}))}}let h=null;h=void 0!==r?r:l?o.createElement(eU.A,null):null;return{clearIcon:m,suffixIcon:g,itemIcon:h,removeIcon:void 0!==a?a:o.createElement(e$.A,null)}}(Object.assign(Object.assign({},F),{multiple:eg,hasFeedback:eT,feedbackIcon:eL,showSuffixIcon:eh,prefixCls:er,componentName:"Select"})),eW=(0,en.A)(F,["suffixIcon","itemIcon"]),e_=a()((null==(l=null==V?void 0:V.popup)?void 0:l.root)||(null==(c=null==ee?void 0:ee.popup)?void 0:c.root)||v||g,{["".concat(er,"-dropdown-").concat(ei)]:"rtl"===ei},p,ee.root,null==V?void 0:V.root,em,ed,ep),eX=(0,eI.A)(e=>{var t;return null!=(t=null!=A?A:el)?t:e}),eG=o.useContext(ex.A),eY=a()({["".concat(er,"-lg")]:"large"===eX,["".concat(er,"-sm")]:"small"===eX,["".concat(er,"-rtl")]:"rtl"===ei,["".concat(er,"-").concat(eu)]:es,["".concat(er,"-in-form-item")]:ej},(0,eE.L)(er,eH,eT),ec,Z,f,ee.root,null==V?void 0:V.root,p,em,ed,ep),e6=o.useMemo(()=>void 0!==b?b:"rtl"===ei?"bottomRight":"bottomLeft",[b,ei]),[e3]=(0,ey.YK)("SelectLike",null==eP?void 0:eP.zIndex);return ef(o.createElement(eb,Object.assign({ref:t,virtual:Y,showSearch:Q},eW,{style:Object.assign(Object.assign(Object.assign(Object.assign({},J.root),null==K?void 0:K.root),$),M),dropdownMatchSelectWidth:ew,transitionName:(0,eA.b)(ea,"slide-up",P),builtinPlacements:S||(e=>{let t={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},t),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},t),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},t),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},t),{points:["br","tr"],offset:[0,-4]})}})(U),listHeight:h,listItemHeight:eo,mode:ev,prefixCls:er,placement:e6,direction:ei,prefix:T,suffixIcon:eB,menuItemSelectedIcon:eK,removeIcon:eV,allowClear:!0===R?{clearIcon:eF}:R,notFoundContent:u,className:eY,getPopupContainer:m||W,dropdownClassName:e_,disabled:null!=w?w:eG,dropdownStyle:Object.assign(Object.assign({},eP),{zIndex:e3}),maxCount:eg?D:void 0,tagRender:eg?z:void 0,dropdownRender:ez,onDropdownVisibleChange:B||H})))}),e3=(0,ew.A)(e6,"dropdownAlign");e6.SECRET_COMBOBOX_MODE_DO_NOT_USE=e4,e6.Option=ee,e6.OptGroup=Z,e6._InternalPanelDoNotUseOrYouWillBeFired=e3;let e5=e6},36768:(e,t,n)=>{n.d(t,{A:()=>h});var o=n(12115),r=n(29300),a=n.n(r),i=n(15982),l=n(8530),c=n(60872),u=n(70042),s=n(45431),d=n(61388);let f=(0,s.OF)("Empty",e=>{let{componentCls:t,controlHeightLG:n,calc:o}=e;return(e=>{let{componentCls:t,margin:n,marginXS:o,marginXL:r,fontSize:a,lineHeight:i}=e;return{[t]:{marginInline:o,fontSize:a,lineHeight:i,textAlign:"center",["".concat(t,"-image")]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},["".concat(t,"-description")]:{color:e.colorTextDescription},["".concat(t,"-footer")]:{marginTop:n},"&-normal":{marginBlock:r,color:e.colorTextDescription,["".concat(t,"-description")]:{color:e.colorTextDescription},["".concat(t,"-image")]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDescription,["".concat(t,"-image")]:{height:e.emptyImgHeightSM}}}}})((0,d.oX)(e,{emptyImgCls:"".concat(t,"-img"),emptyImgHeight:o(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:o(n).mul(.875).equal()}))});var p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);rt.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};let m=o.createElement(()=>{let[,e]=(0,u.Ay)(),[t]=(0,l.A)("Empty"),n=new c.Y(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return o.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,(null==t?void 0:t.description)||"Empty"),o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),o.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),o.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),o.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),o.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),o.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},null),v=o.createElement(()=>{let[,e]=(0,u.Ay)(),[t]=(0,l.A)("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:a,colorBgContainer:i}=e,{borderColor:s,shadowColor:d,contentColor:f}=(0,o.useMemo)(()=>({borderColor:new c.Y(n).onBackground(i).toHexString(),shadowColor:new c.Y(r).onBackground(i).toHexString(),contentColor:new c.Y(a).onBackground(i).toHexString()}),[n,r,a,i]);return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,(null==t?void 0:t.description)||"Empty"),o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:d,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:s},o.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),o.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:f}))))},null),g=e=>{var t;let{className:n,rootClassName:r,prefixCls:c,image:u,description:s,children:d,imageStyle:g,style:h,classNames:b,styles:y}=e,A=p(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:w,direction:E,className:C,style:S,classNames:x,styles:O,image:I}=(0,i.TP)("empty"),M=w("empty",c),[R,N,k]=f(M),[P]=(0,l.A)("Empty"),z=void 0!==s?s:null==P?void 0:P.description,D="string"==typeof z?z:"empty",T=null!=(t=null!=u?u:I)?t:m,j=null;return j="string"==typeof T?o.createElement("img",{draggable:!1,alt:D,src:T}):T,R(o.createElement("div",Object.assign({className:a()(N,k,M,C,{["".concat(M,"-normal")]:T===v,["".concat(M,"-rtl")]:"rtl"===E},n,r,x.root,null==b?void 0:b.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},O.root),S),null==y?void 0:y.root),h)},A),o.createElement("div",{className:a()("".concat(M,"-image"),x.image,null==b?void 0:b.image),style:Object.assign(Object.assign(Object.assign({},g),O.image),null==y?void 0:y.image)},j),z&&o.createElement("div",{className:a()("".concat(M,"-description"),x.description,null==b?void 0:b.description),style:Object.assign(Object.assign({},O.description),null==y?void 0:y.description)},z),d&&o.createElement("div",{className:a()("".concat(M,"-footer"),x.footer,null==b?void 0:b.footer),style:Object.assign(Object.assign({},O.footer),null==y?void 0:y.footer)},d)))};g.PRESENTED_IMAGE_DEFAULT=m,g.PRESENTED_IMAGE_SIMPLE=v;let h=g},48958:(e,t,n)=>{n.d(t,{A:()=>o});let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"}},52770:(e,t,n)=>{n.d(t,{Mh:()=>f});var o=n(99841),r=n(64717);let a=new o.Mo("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),i=new o.Mo("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),l=new o.Mo("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),c=new o.Mo("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),u=new o.Mo("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),s=new o.Mo("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),d={"move-up":{inKeyframes:new o.Mo("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new o.Mo("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:a,outKeyframes:i},"move-left":{inKeyframes:l,outKeyframes:c},"move-right":{inKeyframes:u,outKeyframes:s}},f=(e,t)=>{let{antCls:n}=e,o="".concat(n,"-").concat(t),{inKeyframes:a,outKeyframes:i}=d[t];return[(0,r.b)(o,a,i,e.motionDurationMid),{["\n ".concat(o,"-enter,\n ").concat(o,"-appear\n ")]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},["".concat(o,"-leave")]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},53272:(e,t,n)=>{n.d(t,{YU:()=>c,_j:()=>f,nP:()=>l,ox:()=>a,vR:()=>i});var o=n(99841),r=n(64717);let a=new o.Mo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),i=new o.Mo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),l=new o.Mo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),c=new o.Mo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),u=new o.Mo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),s=new o.Mo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),d={"slide-up":{inKeyframes:a,outKeyframes:i},"slide-down":{inKeyframes:l,outKeyframes:c},"slide-left":{inKeyframes:u,outKeyframes:s},"slide-right":{inKeyframes:new o.Mo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),outKeyframes:new o.Mo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}})}},f=(e,t)=>{let{antCls:n}=e,o="".concat(n,"-").concat(t),{inKeyframes:a,outKeyframes:i}=d[t];return[(0,r.b)(o,a,i,e.motionDurationMid),{["\n ".concat(o,"-enter,\n ").concat(o,"-appear\n ")]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},["".concat(o,"-leave")]:{animationTimingFunction:e.motionEaseInQuint}}]}},58464:(e,t,n)=>{n.d(t,{A:()=>l});var o=n(79630),r=n(12115),a=n(48958),i=n(35030);let l=r.forwardRef(function(e,t){return r.createElement(i.A,(0,o.A)({},e,{ref:t,icon:a.A}))})},60343:(e,t,n)=>{n.d(t,{A:()=>R});var o=n(79630),r=n(27061),a=n(21858),i=n(20235),l=n(12115),c=n(29300),u=n.n(c),s=n(32417),d=n(49172),f=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],p=void 0,m=l.forwardRef(function(e,t){var n,a=e.prefixCls,c=e.invalidate,d=e.item,m=e.renderItem,v=e.responsive,g=e.responsiveDisabled,h=e.registerSize,b=e.itemKey,y=e.className,A=e.style,w=e.children,E=e.display,C=e.order,S=e.component,x=(0,i.A)(e,f),O=v&&!E;l.useEffect(function(){return function(){h(b,null)}},[]);var I=m&&d!==p?m(d,{index:C}):w;c||(n={opacity:+!O,height:O?0:p,overflowY:O?"hidden":p,order:v?C:p,pointerEvents:O?"none":p,position:O?"absolute":p});var M={};O&&(M["aria-hidden"]=!0);var R=l.createElement(void 0===S?"div":S,(0,o.A)({className:u()(!c&&a,y),style:(0,r.A)((0,r.A)({},n),A)},M,x,{ref:t}),I);return v&&(R=l.createElement(s.A,{onResize:function(e){h(b,e.offsetWidth)},disabled:g},R)),R});m.displayName="Item";var v=n(18885),g=n(47650),h=n(16962);function b(e,t){var n=l.useState(t),o=(0,a.A)(n,2),r=o[0],i=o[1];return[r,(0,v.A)(function(t){e(function(){i(t)})})]}var y=l.createContext(null),A=["component"],w=["className"],E=["className"],C=l.forwardRef(function(e,t){var n=l.useContext(y);if(!n){var r=e.component,a=(0,i.A)(e,A);return l.createElement(void 0===r?"div":r,(0,o.A)({},a,{ref:t}))}var c=n.className,s=(0,i.A)(n,w),d=e.className,f=(0,i.A)(e,E);return l.createElement(y.Provider,{value:null},l.createElement(m,(0,o.A)({ref:t,className:u()(c,d)},s,f)))});C.displayName="RawItem";var S=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],x="responsive",O="invalidate";function I(e){return"+ ".concat(e.length," ...")}var M=l.forwardRef(function(e,t){var n,c=e.prefixCls,f=void 0===c?"rc-overflow":c,p=e.data,v=void 0===p?[]:p,A=e.renderItem,w=e.renderRawItem,E=e.itemKey,C=e.itemWidth,M=void 0===C?10:C,R=e.ssr,N=e.style,k=e.className,P=e.maxCount,z=e.renderRest,D=e.renderRawRest,T=e.suffix,j=e.component,L=e.itemComponent,H=e.onVisibleChange,B=(0,i.A)(e,S),K="full"===R,V=(n=l.useRef(null),function(e){if(!n.current){n.current=[];var t=function(){(0,g.unstable_batchedUpdates)(function(){n.current.forEach(function(e){e()}),n.current=null})};if("undefined"==typeof MessageChannel)(0,h.A)(t);else{var o=new MessageChannel;o.port1.onmessage=function(){return t()},o.port2.postMessage(void 0)}}n.current.push(e)}),F=b(V,null),W=(0,a.A)(F,2),_=W[0],X=W[1],G=_||0,Y=b(V,new Map),q=(0,a.A)(Y,2),U=q[0],Q=q[1],$=b(V,0),J=(0,a.A)($,2),Z=J[0],ee=J[1],et=b(V,0),en=(0,a.A)(et,2),eo=en[0],er=en[1],ea=b(V,0),ei=(0,a.A)(ea,2),el=ei[0],ec=ei[1],eu=(0,l.useState)(null),es=(0,a.A)(eu,2),ed=es[0],ef=es[1],ep=(0,l.useState)(null),em=(0,a.A)(ep,2),ev=em[0],eg=em[1],eh=l.useMemo(function(){return null===ev&&K?Number.MAX_SAFE_INTEGER:ev||0},[ev,_]),eb=(0,l.useState)(!1),ey=(0,a.A)(eb,2),eA=ey[0],ew=ey[1],eE="".concat(f,"-item"),eC=Math.max(Z,eo),eS=P===x,ex=v.length&&eS,eO=P===O,eI=ex||"number"==typeof P&&v.length>P,eM=(0,l.useMemo)(function(){var e=v;return ex?e=null===_&&K?v:v.slice(0,Math.min(v.length,G/M)):"number"==typeof P&&(e=v.slice(0,P)),e},[v,M,_,P,ex]),eR=(0,l.useMemo)(function(){return ex?v.slice(eh+1):v.slice(eM.length)},[v,eM,ex,eh]),eN=(0,l.useCallback)(function(e,t){var n;return"function"==typeof E?E(e):null!=(n=E&&(null==e?void 0:e[E]))?n:t},[E]),ek=(0,l.useCallback)(A||function(e){return e},[A]);function eP(e,t,n){(ev!==e||void 0!==t&&t!==ed)&&(eg(e),n||(ew(eG){eP(o-1,e-r-el+eo);break}}T&&eD(0)+el>G&&ef(null)}},[G,U,eo,el,eN,eM]);var eT=eA&&!!eR.length,ej={};null!==ed&&ex&&(ej={position:"absolute",left:ed,top:0});var eL={prefixCls:eE,responsive:ex,component:L,invalidate:eO},eH=w?function(e,t){var n=eN(e,t);return l.createElement(y.Provider,{key:n,value:(0,r.A)((0,r.A)({},eL),{},{order:t,item:e,itemKey:n,registerSize:ez,display:t<=eh})},w(e,t))}:function(e,t){var n=eN(e,t);return l.createElement(m,(0,o.A)({},eL,{order:t,key:n,item:e,renderItem:ek,itemKey:n,registerSize:ez,display:t<=eh}))},eB={order:eT?eh:Number.MAX_SAFE_INTEGER,className:"".concat(eE,"-rest"),registerSize:function(e,t){er(t),ee(eo)},display:eT},eK=z||I,eV=D?l.createElement(y.Provider,{value:(0,r.A)((0,r.A)({},eL),eB)},D(eR)):l.createElement(m,(0,o.A)({},eL,eB),"function"==typeof eK?eK(eR):eK),eF=l.createElement(void 0===j?"div":j,(0,o.A)({className:u()(!eO&&f,k),style:N,ref:t},B),eM.map(eH),eI?eV:null,T&&l.createElement(m,(0,o.A)({},eL,{responsive:eS,responsiveDisabled:!ex,order:eh,className:"".concat(eE,"-suffix"),registerSize:function(e,t){ec(t)},display:!0,style:ej}),T));return eS?l.createElement(s.A,{onResize:function(e,t){X(t.clientWidth)},disabled:!ex},eF):eF});M.displayName="Overflow",M.Item=C,M.RESPONSIVE=x,M.INVALIDATE=O;let R=M},66846:(e,t,n)=>{n.d(t,{A:()=>D});var o=n(79630),r=n(86608),a=n(27061),i=n(40419),l=n(21858),c=n(20235),u=n(29300),s=n.n(u),d=n(32417),f=n(11719),p=n(49172),m=n(12115),v=n(47650),g=m.forwardRef(function(e,t){var n=e.height,r=e.offsetY,l=e.offsetX,c=e.children,u=e.prefixCls,f=e.onInnerResize,p=e.innerProps,v=e.rtl,g=e.extra,h={},b={display:"flex",flexDirection:"column"};return void 0!==r&&(h={height:n,position:"relative",overflow:"hidden"},b=(0,a.A)((0,a.A)({},b),{},(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({transform:"translateY(".concat(r,"px)")},v?"marginRight":"marginLeft",-l),"position","absolute"),"left",0),"right",0),"top",0))),m.createElement("div",{style:h},m.createElement(d.A,{onResize:function(e){e.offsetHeight&&f&&f()}},m.createElement("div",(0,o.A)({style:b,className:s()((0,i.A)({},"".concat(u,"-holder-inner"),u)),ref:t},p),c,g)))});function h(e){var t=e.children,n=e.setRef,o=m.useCallback(function(e){n(e)},[]);return m.cloneElement(t,{ref:o})}g.displayName="Filler";var b=n(16962),y=("undefined"==typeof navigator?"undefined":(0,r.A)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);let A=function(e,t,n,o){var r=(0,m.useRef)(!1),a=(0,m.useRef)(null),i=(0,m.useRef)({top:e,bottom:t,left:n,right:o});return i.current.top=e,i.current.bottom=t,i.current.left=n,i.current.right=o,function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],o=e?t<0&&i.current.left||t>0&&i.current.right:t<0&&i.current.top||t>0&&i.current.bottom;return n&&o?(clearTimeout(a.current),r.current=!1):(!o||r.current)&&(clearTimeout(a.current),r.current=!0,a.current=setTimeout(function(){r.current=!1},50)),!r.current&&o}};var w=n(30857),E=n(28383),C=function(){function e(){(0,w.A)(this,e),(0,i.A)(this,"maps",void 0),(0,i.A)(this,"id",0),(0,i.A)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,E.A)(e,[{key:"set",value:function(e,t){this.diffRecords.set(e,this.maps[e]),this.maps[e]=t,this.id+=1}},{key:"get",value:function(e){return this.maps[e]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),e}();function S(e){var t=parseFloat(e);return isNaN(t)?0:t}var x=14/15;function O(e){return Math.floor(Math.pow(e,.5))}function I(e,t){return("touches"in e?e.touches[0]:e)[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}var M=m.forwardRef(function(e,t){var n=e.prefixCls,o=e.rtl,r=e.scrollOffset,c=e.scrollRange,u=e.onStartMove,d=e.onStopMove,f=e.onScroll,p=e.horizontal,v=e.spinSize,g=e.containerSize,h=e.style,y=e.thumbStyle,A=e.showScrollBar,w=m.useState(!1),E=(0,l.A)(w,2),C=E[0],S=E[1],x=m.useState(null),O=(0,l.A)(x,2),M=O[0],R=O[1],N=m.useState(null),k=(0,l.A)(N,2),P=k[0],z=k[1],D=!o,T=m.useRef(),j=m.useRef(),L=m.useState(A),H=(0,l.A)(L,2),B=H[0],K=H[1],V=m.useRef(),F=function(){!0!==A&&!1!==A&&(clearTimeout(V.current),K(!0),V.current=setTimeout(function(){K(!1)},3e3))},W=c-g||0,_=g-v||0,X=m.useMemo(function(){return 0===r||0===W?0:r/W*_},[r,W,_]),G=m.useRef({top:X,dragging:C,pageY:M,startTop:P});G.current={top:X,dragging:C,pageY:M,startTop:P};var Y=function(e){S(!0),R(I(e,p)),z(G.current.top),u(),e.stopPropagation(),e.preventDefault()};m.useEffect(function(){var e=function(e){e.preventDefault()},t=T.current,n=j.current;return t.addEventListener("touchstart",e,{passive:!1}),n.addEventListener("touchstart",Y,{passive:!1}),function(){t.removeEventListener("touchstart",e),n.removeEventListener("touchstart",Y)}},[]);var q=m.useRef();q.current=W;var U=m.useRef();U.current=_,m.useEffect(function(){if(C){var e,t=function(t){var n=G.current,o=n.dragging,r=n.pageY,a=n.startTop;b.A.cancel(e);var i=T.current.getBoundingClientRect(),l=g/(p?i.width:i.height);if(o){var c=(I(t,p)-r)*l,u=a;!D&&p?u-=c:u+=c;var s=q.current,d=U.current,m=Math.ceil((d?u/d:0)*s);m=Math.min(m=Math.max(m,0),s),e=(0,b.A)(function(){f(m,p)})}},n=function(){S(!1),d()};return window.addEventListener("mousemove",t,{passive:!0}),window.addEventListener("touchmove",t,{passive:!0}),window.addEventListener("mouseup",n,{passive:!0}),window.addEventListener("touchend",n,{passive:!0}),function(){window.removeEventListener("mousemove",t),window.removeEventListener("touchmove",t),window.removeEventListener("mouseup",n),window.removeEventListener("touchend",n),b.A.cancel(e)}}},[C]),m.useEffect(function(){return F(),function(){clearTimeout(V.current)}},[r]),m.useImperativeHandle(t,function(){return{delayHidden:F}});var Q="".concat(n,"-scrollbar"),$={position:"absolute",visibility:B?null:"hidden"},J={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return p?(Object.assign($,{height:8,left:0,right:0,bottom:0}),Object.assign(J,(0,i.A)({height:"100%",width:v},D?"left":"right",X))):(Object.assign($,(0,i.A)({width:8,top:0,bottom:0},D?"right":"left",0)),Object.assign(J,{width:"100%",height:v,top:X})),m.createElement("div",{ref:T,className:s()(Q,(0,i.A)((0,i.A)((0,i.A)({},"".concat(Q,"-horizontal"),p),"".concat(Q,"-vertical"),!p),"".concat(Q,"-visible"),B)),style:(0,a.A)((0,a.A)({},$),h),onMouseDown:function(e){e.stopPropagation(),e.preventDefault()},onMouseMove:F},m.createElement("div",{ref:j,className:s()("".concat(Q,"-thumb"),(0,i.A)({},"".concat(Q,"-thumb-moving"),C)),style:(0,a.A)((0,a.A)({},J),y),onMouseDown:Y}))});function R(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=e/t*e;return isNaN(n)&&(n=0),Math.floor(n=Math.max(n,20))}var N=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],k=[],P={overflowY:"auto",overflowAnchor:"none"},z=m.forwardRef(function(e,t){var n,u,w,E,z,D,T,j,L,H,B,K,V,F,W,_,X,G,Y,q,U,Q,$,J,Z,ee,et,en,eo,er,ea,ei,el,ec,eu,es,ed,ef=e.prefixCls,ep=void 0===ef?"rc-virtual-list":ef,em=e.className,ev=e.height,eg=e.itemHeight,eh=e.fullHeight,eb=e.style,ey=e.data,eA=e.children,ew=e.itemKey,eE=e.virtual,eC=e.direction,eS=e.scrollWidth,ex=e.component,eO=e.onScroll,eI=e.onVirtualScroll,eM=e.onVisibleChange,eR=e.innerProps,eN=e.extraRender,ek=e.styles,eP=e.showScrollBar,ez=void 0===eP?"optional":eP,eD=(0,c.A)(e,N),eT=m.useCallback(function(e){return"function"==typeof ew?ew(e):null==e?void 0:e[ew]},[ew]),ej=function(e,t,n){var o=m.useState(0),r=(0,l.A)(o,2),a=r[0],i=r[1],c=(0,m.useRef)(new Map),u=(0,m.useRef)(new C),s=(0,m.useRef)(0);function d(){s.current+=1}function f(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d();var t=function(){var e=!1;c.current.forEach(function(t,n){if(t&&t.offsetParent){var o=t.offsetHeight,r=getComputedStyle(t),a=r.marginTop,i=r.marginBottom,l=o+S(a)+S(i);u.current.get(n)!==l&&(u.current.set(n,l),e=!0)}}),e&&i(function(e){return e+1})};if(e)t();else{s.current+=1;var n=s.current;Promise.resolve().then(function(){n===s.current&&t()})}}return(0,m.useEffect)(function(){return d},[]),[function(o,r){var a=e(o),i=c.current.get(a);r?(c.current.set(a,r),f()):c.current.delete(a),!i!=!r&&(r?null==t||t(o):null==n||n(o))},f,u.current,a]}(eT,null,null),eL=(0,l.A)(ej,4),eH=eL[0],eB=eL[1],eK=eL[2],eV=eL[3],eF=!!(!1!==eE&&ev&&eg),eW=m.useMemo(function(){return Object.values(eK.maps).reduce(function(e,t){return e+t},0)},[eK.id,eK.maps]),e_=eF&&ey&&(Math.max(eg*ey.length,eW)>ev||!!eS),eX="rtl"===eC,eG=s()(ep,(0,i.A)({},"".concat(ep,"-rtl"),eX),em),eY=ey||k,eq=(0,m.useRef)(),eU=(0,m.useRef)(),eQ=(0,m.useRef)(),e$=(0,m.useState)(0),eJ=(0,l.A)(e$,2),eZ=eJ[0],e0=eJ[1],e1=(0,m.useState)(0),e2=(0,l.A)(e1,2),e4=e2[0],e6=e2[1],e3=(0,m.useState)(!1),e5=(0,l.A)(e3,2),e8=e5[0],e9=e5[1],e7=function(){e9(!0)},te=function(){e9(!1)};function tt(e){e0(function(t){var n,o=(n="function"==typeof e?e(t):e,Number.isNaN(ty.current)||(n=Math.min(n,ty.current)),n=Math.max(n,0));return eq.current.scrollTop=o,o})}var tn=(0,m.useRef)({start:0,end:eY.length}),to=(0,m.useRef)(),tr=(n=m.useState(eY),w=(u=(0,l.A)(n,2))[0],E=u[1],z=m.useState(null),T=(D=(0,l.A)(z,2))[0],j=D[1],m.useEffect(function(){var e=function(e,t,n){var o,r,a=e.length,i=t.length;if(0===a&&0===i)return null;a=eZ&&void 0===t&&(t=i,n=r),u>eZ+ev&&void 0===o&&(o=i),r=u}return void 0===t&&(t=0,n=0,o=Math.ceil(ev/eg)),void 0===o&&(o=eY.length-1),{scrollHeight:r,start:t,end:o=Math.min(o+1,eY.length-1),offset:n}},[e_,eF,eZ,eY,eV,ev]),ti=ta.scrollHeight,tl=ta.start,tc=ta.end,tu=ta.offset;tn.current.start=tl,tn.current.end=tc,m.useLayoutEffect(function(){var e=eK.getRecord();if(1===e.size){var t=Array.from(e.keys())[0],n=e.get(t),o=eY[tl];if(o&&void 0===n&&eT(o)===t){var r=eK.get(t)-eg;tt(function(e){return e+r})}}eK.resetRecord()},[ti]);var ts=m.useState({width:0,height:ev}),td=(0,l.A)(ts,2),tf=td[0],tp=td[1],tm=(0,m.useRef)(),tv=(0,m.useRef)(),tg=m.useMemo(function(){return R(tf.width,eS)},[tf.width,eS]),th=m.useMemo(function(){return R(tf.height,ti)},[tf.height,ti]),tb=ti-ev,ty=(0,m.useRef)(tb);ty.current=tb;var tA=eZ<=0,tw=eZ>=tb,tE=e4<=0,tC=e4>=eS,tS=A(tA,tw,tE,tC),tx=function(){return{x:eX?-e4:e4,y:eZ}},tO=(0,m.useRef)(tx()),tI=(0,f._q)(function(e){if(eI){var t=(0,a.A)((0,a.A)({},tx()),e);(tO.current.x!==t.x||tO.current.y!==t.y)&&(eI(t),tO.current=t)}});function tM(e,t){t?((0,v.flushSync)(function(){e6(e)}),tI()):tt(e)}var tR=function(e){var t=e,n=eS?eS-tf.width:0;return Math.min(t=Math.max(t,0),n)},tN=(0,f._q)(function(e,t){t?((0,v.flushSync)(function(){e6(function(t){return tR(t+(eX?-e:e))})}),tI()):tt(function(t){return t+e})}),tk=(L=!!eS,H=(0,m.useRef)(0),B=(0,m.useRef)(null),K=(0,m.useRef)(null),V=(0,m.useRef)(!1),F=A(tA,tw,tE,tC),W=(0,m.useRef)(null),_=(0,m.useRef)(null),[function(e){if(eF){b.A.cancel(_.current),_.current=(0,b.A)(function(){W.current=null},2);var t,n,o=e.deltaX,r=e.deltaY,a=e.shiftKey,i=o,l=r;("sx"===W.current||!W.current&&a&&r&&!o)&&(i=r,l=0,W.current="sx");var c=Math.abs(i),u=Math.abs(l);if(null===W.current&&(W.current=L&&c>u?"x":"y"),"y"===W.current){t=e,n=l,b.A.cancel(B.current),!F(!1,n)&&(t._virtualHandled||(t._virtualHandled=!0,H.current+=n,K.current=n,y||t.preventDefault(),B.current=(0,b.A)(function(){var e=V.current?10:1;tN(H.current*e,!1),H.current=0})))}else tN(i,!0),y||e.preventDefault()}},function(e){eF&&(V.current=e.detail===K.current)}]),tP=(0,l.A)(tk,2),tz=tP[0],tD=tP[1];X=function(e,t,n,o){return!tS(e,t,n)&&(!o||!o._virtualHandled)&&(o&&(o._virtualHandled=!0),tz({preventDefault:function(){},deltaX:e?t:0,deltaY:e?0:t}),!0)},Y=(0,m.useRef)(!1),q=(0,m.useRef)(0),U=(0,m.useRef)(0),Q=(0,m.useRef)(null),$=(0,m.useRef)(null),J=function(e){if(Y.current){var t=Math.ceil(e.touches[0].pageX),n=Math.ceil(e.touches[0].pageY),o=q.current-t,r=U.current-n,a=Math.abs(o)>Math.abs(r);a?q.current=t:U.current=n;var i=X(a,a?o:r,!1,e);i&&e.preventDefault(),clearInterval($.current),i&&($.current=setInterval(function(){a?o*=x:r*=x;var e=Math.floor(a?o:r);(!X(a,e,!0)||.1>=Math.abs(e))&&clearInterval($.current)},16))}},Z=function(){Y.current=!1,G()},ee=function(e){G(),1!==e.touches.length||Y.current||(Y.current=!0,q.current=Math.ceil(e.touches[0].pageX),U.current=Math.ceil(e.touches[0].pageY),Q.current=e.target,Q.current.addEventListener("touchmove",J,{passive:!1}),Q.current.addEventListener("touchend",Z,{passive:!0}))},G=function(){Q.current&&(Q.current.removeEventListener("touchmove",J),Q.current.removeEventListener("touchend",Z))},(0,p.A)(function(){return eF&&eq.current.addEventListener("touchstart",ee,{passive:!0}),function(){var e;null==(e=eq.current)||e.removeEventListener("touchstart",ee),G(),clearInterval($.current)}},[eF]),et=function(e){tt(function(t){return t+e})},m.useEffect(function(){var e=eq.current;if(e_&&e){var t,n,o=!1,r=function(){b.A.cancel(t)},a=function e(){r(),t=(0,b.A)(function(){et(n),e()})},i=function(e){!e.target.draggable&&0===e.button&&(e._virtualHandled||(e._virtualHandled=!0,o=!0))},l=function(){o=!1,r()},c=function(t){if(o){var i=I(t,!1),l=e.getBoundingClientRect(),c=l.top,u=l.bottom;i<=c?(n=-O(c-i),a()):i>=u?(n=O(i-u),a()):r()}};return e.addEventListener("mousedown",i),e.ownerDocument.addEventListener("mouseup",l),e.ownerDocument.addEventListener("mousemove",c),function(){e.removeEventListener("mousedown",i),e.ownerDocument.removeEventListener("mouseup",l),e.ownerDocument.removeEventListener("mousemove",c),r()}}},[e_]),(0,p.A)(function(){function e(e){var t=tA&&e.detail<0,n=tw&&e.detail>0;!eF||t||n||e.preventDefault()}var t=eq.current;return t.addEventListener("wheel",tz,{passive:!1}),t.addEventListener("DOMMouseScroll",tD,{passive:!0}),t.addEventListener("MozMousePixelScroll",e,{passive:!1}),function(){t.removeEventListener("wheel",tz),t.removeEventListener("DOMMouseScroll",tD),t.removeEventListener("MozMousePixelScroll",e)}},[eF,tA,tw]),(0,p.A)(function(){if(eS){var e=tR(e4);e6(e),tI({x:e})}},[tf.width,eS]);var tT=function(){var e,t;null==(e=tm.current)||e.delayHidden(),null==(t=tv.current)||t.delayHidden()},tj=(en=function(){return eB(!0)},eo=m.useRef(),er=m.useState(null),ei=(ea=(0,l.A)(er,2))[0],el=ea[1],(0,p.A)(function(){if(ei&&ei.times<10){if(!eq.current)return void el(function(e){return(0,a.A)({},e)});en();var e=ei.targetAlign,t=ei.originAlign,n=ei.index,o=ei.offset,r=eq.current.clientHeight,i=!1,l=e,c=null;if(r){for(var u=e||t,s=0,d=0,f=0,p=Math.min(eY.length-1,n),m=0;m<=p;m+=1){var v=eT(eY[m]);d=s;var g=eK.get(v);s=f=d+(void 0===g?eg:g)}for(var h="top"===u?o:r-o,b=p;b>=0;b-=1){var y=eT(eY[b]),A=eK.get(y);if(void 0===A){i=!0;break}if((h-=A)<=0)break}switch(u){case"top":c=d-o;break;case"bottom":c=f-r+o;break;default:var w=eq.current.scrollTop;dw+r&&(l="bottom")}null!==c&&tt(c),c!==ei.lastTop&&(i=!0)}i&&el((0,a.A)((0,a.A)({},ei),{},{times:ei.times+1,targetAlign:l,lastTop:c}))}},[ei,eq.current]),function(e){if(null==e)return void tT();if(b.A.cancel(eo.current),"number"==typeof e)tt(e);else if(e&&"object"===(0,r.A)(e)){var t,n=e.align;t="index"in e?e.index:eY.findIndex(function(t){return eT(t)===e.key});var o=e.offset;el({times:0,index:t,offset:void 0===o?0:o,originAlign:n})}});m.useImperativeHandle(t,function(){return{nativeElement:eQ.current,getScrollInfo:tx,scrollTo:function(e){e&&"object"===(0,r.A)(e)&&("left"in e||"top"in e)?(void 0!==e.left&&e6(tR(e.left)),tj(e.top)):tj(e)}}}),(0,p.A)(function(){eM&&eM(eY.slice(tl,tc+1),eY)},[tl,tc,eY]);var tL=(ec=m.useMemo(function(){return[new Map,[]]},[eY,eK.id,eg]),es=(eu=(0,l.A)(ec,2))[0],ed=eu[1],function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=es.get(e),o=es.get(t);if(void 0===n||void 0===o)for(var r=eY.length,a=ed.length;aev&&m.createElement(M,{ref:tm,prefixCls:ep,scrollOffset:eZ,scrollRange:ti,rtl:eX,onScroll:tM,onStartMove:e7,onStopMove:te,spinSize:th,containerSize:tf.height,style:null==ek?void 0:ek.verticalScrollBar,thumbStyle:null==ek?void 0:ek.verticalScrollBarThumb,showScrollBar:ez}),e_&&eS>tf.width&&m.createElement(M,{ref:tv,prefixCls:ep,scrollOffset:e4,scrollRange:eS,rtl:eX,onScroll:tM,onStartMove:e7,onStopMove:te,spinSize:tg,containerSize:tf.width,horizontal:!0,style:null==ek?void 0:ek.horizontalScrollBar,thumbStyle:null==ek?void 0:ek.horizontalScrollBarThumb,showScrollBar:ez}))});z.displayName="List";let D=z},67850:(e,t,n)=>{n.d(t,{A:()=>E});var o=n(12115),r=n(29300),a=n.n(r),i=n(63715),l=n(96249),c=n(15982),u=n(96936),s=n(67831),d=n(45431);let f=(0,d.OF)(["Space","Addon"],e=>[(e=>{let{componentCls:t,borderRadius:n,paddingSM:o,colorBorder:r,paddingXS:a,fontSizeLG:i,fontSizeSM:l,borderRadiusLG:c,borderRadiusSM:u,colorBgContainerDisabled:d,lineWidth:f}=e;return{[t]:[{display:"inline-flex",alignItems:"center",gap:0,paddingInline:o,margin:0,background:d,borderWidth:f,borderStyle:"solid",borderColor:r,borderRadius:n,"&-large":{fontSize:i,borderRadius:c},"&-small":{paddingInline:a,borderRadius:u,fontSize:l},"&-compact-last-item":{borderEndStartRadius:0,borderStartStartRadius:0},"&-compact-first-item":{borderEndEndRadius:0,borderStartEndRadius:0},"&-compact-item:not(:first-child):not(:last-child)":{borderRadius:0},"&-compact-item:not(:last-child)":{borderInlineEndWidth:0}},(0,s.G)(e,{focus:!1})]}})(e)]);var p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);rt.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};let m=o.forwardRef((e,t)=>{let{className:n,children:r,style:i,prefixCls:l}=e,s=p(e,["className","children","style","prefixCls"]),{getPrefixCls:d,direction:m}=o.useContext(c.QO),v=d("space-addon",l),[g,h,b]=f(v),{compactItemClassnames:y,compactSize:A}=(0,u.RQ)(v,m),w=a()(v,h,y,b,{["".concat(v,"-").concat(A)]:A},n);return g(o.createElement("div",Object.assign({ref:t,className:w,style:i},s),r))}),v=o.createContext({latestIndex:0}),g=v.Provider,h=e=>{let{className:t,index:n,children:r,split:a,style:i}=e,{latestIndex:l}=o.useContext(v);return null==r?null:o.createElement(o.Fragment,null,o.createElement("div",{className:t,style:i},r),n{let t=(0,b.oX)(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[(e=>{let{componentCls:t,antCls:n}=e;return{[t]:{display:"inline-flex","&-rtl":{direction:"rtl"},"&-vertical":{flexDirection:"column"},"&-align":{flexDirection:"column","&-center":{alignItems:"center"},"&-start":{alignItems:"flex-start"},"&-end":{alignItems:"flex-end"},"&-baseline":{alignItems:"baseline"}},["".concat(t,"-item:empty")]:{display:"none"},["".concat(t,"-item > ").concat(n,"-badge-not-a-wrapper:only-child")]:{display:"block"}}}})(t),(e=>{let{componentCls:t}=e;return{[t]:{"&-gap-row-small":{rowGap:e.spaceGapSmallSize},"&-gap-row-middle":{rowGap:e.spaceGapMiddleSize},"&-gap-row-large":{rowGap:e.spaceGapLargeSize},"&-gap-col-small":{columnGap:e.spaceGapSmallSize},"&-gap-col-middle":{columnGap:e.spaceGapMiddleSize},"&-gap-col-large":{columnGap:e.spaceGapLargeSize}}}})(t)]},()=>({}),{resetStyle:!1});var A=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var r=0,o=Object.getOwnPropertySymbols(e);rt.indexOf(o[r])&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]]);return n};let w=o.forwardRef((e,t)=>{var n;let{getPrefixCls:r,direction:u,size:s,className:d,style:f,classNames:p,styles:m}=(0,c.TP)("space"),{size:v=null!=s?s:"small",align:b,className:w,rootClassName:E,children:C,direction:S="horizontal",prefixCls:x,split:O,style:I,wrap:M=!1,classNames:R,styles:N}=e,k=A(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[P,z]=Array.isArray(v)?v:[v,v],D=(0,l.X)(z),T=(0,l.X)(P),j=(0,l.m)(z),L=(0,l.m)(P),H=(0,i.A)(C,{keepEmpty:!0}),B=void 0===b&&"horizontal"===S?"center":b,K=r("space",x),[V,F,W]=y(K),_=a()(K,d,F,"".concat(K,"-").concat(S),{["".concat(K,"-rtl")]:"rtl"===u,["".concat(K,"-align-").concat(B)]:B,["".concat(K,"-gap-row-").concat(z)]:D,["".concat(K,"-gap-col-").concat(P)]:T},w,E,W),X=a()("".concat(K,"-item"),null!=(n=null==R?void 0:R.item)?n:p.item),G=Object.assign(Object.assign({},m.item),null==N?void 0:N.item),Y=H.map((e,t)=>{let n=(null==e?void 0:e.key)||"".concat(X,"-").concat(t);return o.createElement(h,{className:X,key:n,index:t,split:O,style:G},e)}),q=o.useMemo(()=>({latestIndex:H.reduce((e,t,n)=>null!=t?n:e,0)}),[H]);if(0===H.length)return null;let U={};return M&&(U.flexWrap="wrap"),!T&&L&&(U.columnGap=P),!D&&j&&(U.rowGap=z),V(o.createElement("div",Object.assign({ref:t,className:_,style:Object.assign(Object.assign(Object.assign({},U),f),I)},k),o.createElement(g,{value:q},Y)))});w.Compact=u.Ay,w.Addon=m;let E=w},89593:(e,t,n)=>{n.d(t,{A:()=>o});let o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"}},91187:(e,t,n)=>{n.d(t,{cG:()=>ez,q7:()=>em,te:()=>ej,Dr:()=>em,g8:()=>ek,Ay:()=>eF,Wj:()=>I});var o=n(79630),r=n(40419),a=n(27061),i=n(85757),l=n(21858),c=n(20235),u=n(29300),s=n.n(u),d=n(60343),f=n(48804),p=n(80227),m=n(9587),v=n(12115),g=n(47650),h=v.createContext(null);function b(e,t){return void 0===e?null:"".concat(e,"-").concat(t)}function y(e){return b(v.useContext(h),e)}var A=n(22801),w=["children","locked"],E=v.createContext(null);function C(e){var t=e.children,n=e.locked,o=(0,c.A)(e,w),r=v.useContext(E),i=(0,A.A)(function(){var e;return e=(0,a.A)({},r),Object.keys(o).forEach(function(t){var n=o[t];void 0!==n&&(e[t]=n)}),e},[r,o],function(e,t){return!n&&(e[0]!==t[0]||!(0,p.A)(e[1],t[1],!0))});return v.createElement(E.Provider,{value:i},t)}var S=v.createContext(null);function x(){return v.useContext(S)}var O=v.createContext([]);function I(e){var t=v.useContext(O);return v.useMemo(function(){return void 0!==e?[].concat((0,i.A)(t),[e]):t},[t,e])}var M=v.createContext(null),R=v.createContext({}),N=n(53930);function k(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if((0,N.A)(e)){var n=e.nodeName.toLowerCase(),o=["input","select","textarea","button"].includes(n)||e.isContentEditable||"a"===n&&!!e.getAttribute("href"),r=e.getAttribute("tabindex"),a=Number(r),i=null;return r&&!Number.isNaN(a)?i=a:o&&null===i&&(i=0),o&&e.disabled&&(i=null),null!==i&&(i>=0||t&&i<0)}return!1}var P=n(17233),z=n(16962),D=P.A.LEFT,T=P.A.RIGHT,j=P.A.UP,L=P.A.DOWN,H=P.A.ENTER,B=P.A.ESC,K=P.A.HOME,V=P.A.END,F=[j,L,D,T];function W(e,t){return(function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=(0,i.A)(e.querySelectorAll("*")).filter(function(e){return k(e,t)});return k(e,t)&&n.unshift(e),n})(e,!0).filter(function(e){return t.has(e)})}function _(e,t,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1;if(!e)return null;var r=W(e,t),a=r.length,i=r.findIndex(function(e){return n===e});return o<0?-1===i?i=a-1:i-=1:o>0&&(i+=1),r[i=(i+a)%a]}var X=function(e,t){var n=new Set,o=new Map,r=new Map;return e.forEach(function(e){var a=document.querySelector("[data-menu-id='".concat(b(t,e),"']"));a&&(n.add(a),r.set(a,e),o.set(e,a))}),{elements:n,key2element:o,element2key:r}},G="__RC_UTIL_PATH_SPLIT__",Y=function(e){return e.join(G)},q="rc-menu-more";function U(e){var t=v.useRef(e);t.current=e;var n=v.useCallback(function(){for(var e,n=arguments.length,o=Array(n),r=0;r1&&(S.motionAppear=!1);var x=S.onVisibleChanged;return(S.onVisibleChanged=function(e){return g.current||e||A(!0),null==x?void 0:x(e)},y)?null:v.createElement(C,{mode:c,locked:!g.current},v.createElement(eO.Ay,(0,o.A)({visible:w},S,{forceRender:d,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(e){var n=e.className,o=e.style;return v.createElement(eg,{id:t,className:n,style:o},i)}))}var eM=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],eR=["active"],eN=v.forwardRef(function(e,t){var n=e.style,i=e.className,u=e.title,f=e.eventKey,p=(e.warnKey,e.disabled),m=e.internalPopupClose,g=e.children,h=e.itemIcon,b=e.expandIcon,A=e.popupClassName,w=e.popupOffset,S=e.popupStyle,x=e.onClick,O=e.onMouseEnter,N=e.onMouseLeave,k=e.onTitleClick,P=e.onTitleMouseEnter,z=e.onTitleMouseLeave,D=(0,c.A)(e,eM),T=y(f),j=v.useContext(E),L=j.prefixCls,H=j.mode,B=j.openKeys,K=j.disabled,V=j.overflowDisabled,F=j.activeKey,W=j.selectedKeys,_=j.itemIcon,X=j.expandIcon,G=j.onItemClick,Y=j.onOpenChange,q=j.onActive,Q=v.useContext(R)._internalRenderSubMenuItem,$=v.useContext(M).isSubPathKey,J=I(),Z="".concat(L,"-submenu"),ee=K||p,et=v.useRef(),en=v.useRef(),eo=null!=b?b:X,el=B.includes(f),eu=!V&&el,es=$(W,f),ed=er(f,ee,P,z),ef=ed.active,ep=(0,c.A)(ed,eR),em=v.useState(!1),ev=(0,l.A)(em,2),eh=ev[0],eb=ev[1],ey=function(e){ee||eb(e)},eA=v.useMemo(function(){return ef||"inline"!==H&&(eh||$([F],f))},[H,ef,F,eh,f,$]),ew=ea(J.length),eE=U(function(e){null==x||x(ec(e)),G(e)}),eC=T&&"".concat(T,"-popup"),eS=v.useMemo(function(){return v.createElement(ei,{icon:"horizontal"!==H?eo:void 0,props:(0,a.A)((0,a.A)({},e),{},{isOpen:eu,isSubMenu:!0})},v.createElement("i",{className:"".concat(Z,"-arrow")}))},[H,eo,e,eu,Z]),eO=v.createElement("div",(0,o.A)({role:"menuitem",style:ew,className:"".concat(Z,"-title"),tabIndex:ee?null:-1,ref:et,title:"string"==typeof u?u:null,"data-menu-id":V&&T?null:T,"aria-expanded":eu,"aria-haspopup":!0,"aria-controls":eC,"aria-disabled":ee,onClick:function(e){ee||(null==k||k({key:f,domEvent:e}),"inline"===H&&Y(f,!el))},onFocus:function(){q(f)}},ep),u,eS),eN=v.useRef(H);if("inline"!==H&&J.length>1?eN.current="vertical":eN.current=H,!V){var ek=eN.current;eO=v.createElement(ex,{mode:ek,prefixCls:Z,visible:!m&&eu&&"inline"!==H,popupClassName:A,popupOffset:w,popupStyle:S,popup:v.createElement(C,{mode:"horizontal"===ek?"vertical":ek},v.createElement(eg,{id:eC,ref:en},g)),disabled:ee,onVisibleChange:function(e){"inline"!==H&&Y(f,e)}},eO)}var eP=v.createElement(d.A.Item,(0,o.A)({ref:t,role:"none"},D,{component:"li",style:n,className:s()(Z,"".concat(Z,"-").concat(H),i,(0,r.A)((0,r.A)((0,r.A)((0,r.A)({},"".concat(Z,"-open"),eu),"".concat(Z,"-active"),eA),"".concat(Z,"-selected"),es),"".concat(Z,"-disabled"),ee)),onMouseEnter:function(e){ey(!0),null==O||O({key:f,domEvent:e})},onMouseLeave:function(e){ey(!1),null==N||N({key:f,domEvent:e})}}),eO,!V&&v.createElement(eI,{id:eC,open:eu,keyPath:J},g));return Q&&(eP=Q(eP,e,{selected:es,active:eA,open:eu,disabled:ee})),v.createElement(C,{onItemClick:eE,mode:"horizontal"===H?"vertical":H,itemIcon:null!=h?h:_,expandIcon:eo},eP)});let ek=v.forwardRef(function(e,t){var n,r=e.eventKey,a=e.children,i=I(r),l=eb(a,i),c=x();return v.useEffect(function(){if(c)return c.registerPath(r,i),function(){c.unregisterPath(r,i)}},[i]),n=c?l:v.createElement(eN,(0,o.A)({ref:t},e),l),v.createElement(O.Provider,{value:i},n)});var eP=n(86608);function ez(e){var t=e.className,n=e.style,o=v.useContext(E).prefixCls;return x()?null:v.createElement("li",{role:"separator",className:s()("".concat(o,"-item-divider"),t),style:n})}var eD=["className","title","eventKey","children"],eT=v.forwardRef(function(e,t){var n=e.className,r=e.title,a=(e.eventKey,e.children),i=(0,c.A)(e,eD),l=v.useContext(E).prefixCls,u="".concat(l,"-item-group");return v.createElement("li",(0,o.A)({ref:t,role:"presentation"},i,{onClick:function(e){return e.stopPropagation()},className:s()(u,n)}),v.createElement("div",{role:"presentation",className:"".concat(u,"-title"),title:"string"==typeof r?r:void 0},r),v.createElement("ul",{role:"group",className:"".concat(u,"-list")},a))});let ej=v.forwardRef(function(e,t){var n=e.eventKey,r=eb(e.children,I(n));return x()?r:v.createElement(eT,(0,o.A)({ref:t},(0,en.A)(e,["warnKey"])),r)});var eL=["label","children","key","type","extra"];function eH(e,t,n,r,i){var l=e,u=(0,a.A)({divider:ez,item:em,group:ej,submenu:ek},r);return t&&(l=function e(t,n,r){var a=n.item,i=n.group,l=n.submenu,u=n.divider;return(t||[]).map(function(t,s){if(t&&"object"===(0,eP.A)(t)){var d=t.label,f=t.children,p=t.key,m=t.type,g=t.extra,h=(0,c.A)(t,eL),b=null!=p?p:"tmp-".concat(s);return f||"group"===m?"group"===m?v.createElement(i,(0,o.A)({key:b},h,{title:d}),e(f,n,r)):v.createElement(l,(0,o.A)({key:b},h,{title:d}),e(f,n,r)):"divider"===m?v.createElement(u,(0,o.A)({key:b},h)):v.createElement(a,(0,o.A)({key:b},h,{extra:g}),d,(!!g||0===g)&&v.createElement("span",{className:"".concat(r,"-item-extra")},g))}return null}).filter(function(e){return e})}(t,u,i)),eb(l,n)}var eB=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem","_internalComponents"],eK=[],eV=v.forwardRef(function(e,t){var n,u,m,b,y,A,w,E,x,O,I,N,k,P,J,Z,ee,et,en,eo,er,ea,ei,el,eu,es,ed=e.prefixCls,ef=void 0===ed?"rc-menu":ed,ep=e.rootClassName,ev=e.style,eg=e.className,eh=e.tabIndex,eb=e.items,ey=e.children,eA=e.direction,ew=e.id,eE=e.mode,eC=void 0===eE?"vertical":eE,eS=e.inlineCollapsed,ex=e.disabled,eO=e.disabledOverflow,eI=e.subMenuOpenDelay,eM=e.subMenuCloseDelay,eR=e.forceSubMenuRender,eN=e.defaultOpenKeys,eP=e.openKeys,ez=e.activeKey,eD=e.defaultActiveFirst,eT=e.selectable,ej=void 0===eT||eT,eL=e.multiple,eV=void 0!==eL&&eL,eF=e.defaultSelectedKeys,eW=e.selectedKeys,e_=e.onSelect,eX=e.onDeselect,eG=e.inlineIndent,eY=e.motion,eq=e.defaultMotions,eU=e.triggerSubMenuAction,eQ=e.builtinPlacements,e$=e.itemIcon,eJ=e.expandIcon,eZ=e.overflowedIndicator,e0=void 0===eZ?"...":eZ,e1=e.overflowedIndicatorPopupClassName,e2=e.getPopupContainer,e4=e.onClick,e6=e.onOpenChange,e3=e.onKeyDown,e5=(e.openAnimation,e.openTransitionName,e._internalRenderMenuItem),e8=e._internalRenderSubMenuItem,e9=e._internalComponents,e7=(0,c.A)(e,eB),te=v.useMemo(function(){return[eH(ey,eb,eK,e9,ef),eH(ey,eb,eK,{},ef)]},[ey,eb,e9]),tt=(0,l.A)(te,2),tn=tt[0],to=tt[1],tr=v.useState(!1),ta=(0,l.A)(tr,2),ti=ta[0],tl=ta[1],tc=v.useRef(),tu=(n=(0,f.A)(ew,{value:ew}),m=(u=(0,l.A)(n,2))[0],b=u[1],v.useEffect(function(){$+=1;var e="".concat(Q,"-").concat($);b("rc-menu-uuid-".concat(e))},[]),m),ts="rtl"===eA,td=(0,f.A)(eN,{value:eP,postState:function(e){return e||eK}}),tf=(0,l.A)(td,2),tp=tf[0],tm=tf[1],tv=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];function n(){tm(e),null==e6||e6(e)}t?(0,g.flushSync)(n):n()},tg=v.useState(tp),th=(0,l.A)(tg,2),tb=th[0],ty=th[1],tA=v.useRef(!1),tw=v.useMemo(function(){return("inline"===eC||"vertical"===eC)&&eS?["vertical",eS]:[eC,!1]},[eC,eS]),tE=(0,l.A)(tw,2),tC=tE[0],tS=tE[1],tx="inline"===tC,tO=v.useState(tC),tI=(0,l.A)(tO,2),tM=tI[0],tR=tI[1],tN=v.useState(tS),tk=(0,l.A)(tN,2),tP=tk[0],tz=tk[1];v.useEffect(function(){tR(tC),tz(tS),tA.current&&(tx?tm(tb):tv(eK))},[tC,tS]);var tD=v.useState(0),tT=(0,l.A)(tD,2),tj=tT[0],tL=tT[1],tH=tj>=tn.length-1||"horizontal"!==tM||eO;v.useEffect(function(){tx&&ty(tp)},[tp]),v.useEffect(function(){return tA.current=!0,function(){tA.current=!1}},[]);var tB=(y=v.useState({}),A=(0,l.A)(y,2)[1],w=(0,v.useRef)(new Map),E=(0,v.useRef)(new Map),x=v.useState([]),I=(O=(0,l.A)(x,2))[0],N=O[1],k=(0,v.useRef)(0),P=(0,v.useRef)(!1),J=function(){P.current||A({})},Z=(0,v.useCallback)(function(e,t){var n=Y(t);E.current.set(n,e),w.current.set(e,n),k.current+=1;var o=k.current;Promise.resolve().then(function(){o===k.current&&J()})},[]),ee=(0,v.useCallback)(function(e,t){var n=Y(t);E.current.delete(n),w.current.delete(e)},[]),et=(0,v.useCallback)(function(e){N(e)},[]),en=(0,v.useCallback)(function(e,t){var n=(w.current.get(e)||"").split(G);return t&&I.includes(n[0])&&n.unshift(q),n},[I]),eo=(0,v.useCallback)(function(e,t){return e.filter(function(e){return void 0!==e}).some(function(e){return en(e,!0).includes(t)})},[en]),er=(0,v.useCallback)(function(e){var t="".concat(w.current.get(e)).concat(G),n=new Set;return(0,i.A)(E.current.keys()).forEach(function(e){e.startsWith(t)&&n.add(E.current.get(e))}),n},[]),v.useEffect(function(){return function(){P.current=!0}},[]),{registerPath:Z,unregisterPath:ee,refreshOverflowKeys:et,isSubPathKey:eo,getKeyPath:en,getKeys:function(){var e=(0,i.A)(w.current.keys());return I.length&&e.push(q),e},getSubPathKeys:er}),tK=tB.registerPath,tV=tB.unregisterPath,tF=tB.refreshOverflowKeys,tW=tB.isSubPathKey,t_=tB.getKeyPath,tX=tB.getKeys,tG=tB.getSubPathKeys,tY=v.useMemo(function(){return{registerPath:tK,unregisterPath:tV}},[tK,tV]),tq=v.useMemo(function(){return{isSubPathKey:tW}},[tW]);v.useEffect(function(){tF(tH?eK:tn.slice(tj+1).map(function(e){return e.key}))},[tj,tH]);var tU=(0,f.A)(ez||eD&&(null==(es=tn[0])?void 0:es.key),{value:ez}),tQ=(0,l.A)(tU,2),t$=tQ[0],tJ=tQ[1],tZ=U(function(e){tJ(e)}),t0=U(function(){tJ(void 0)});(0,v.useImperativeHandle)(t,function(){return{list:tc.current,focus:function(e){var t,n,o=X(tX(),tu),r=o.elements,a=o.key2element,i=o.element2key,l=W(tc.current,r),c=null!=t$?t$:l[0]?i.get(l[0]):null==(t=tn.find(function(e){return!e.props.disabled}))?void 0:t.key,u=a.get(c);c&&u&&(null==u||null==(n=u.focus)||n.call(u,e))}}});var t1=(0,f.A)(eF||[],{value:eW,postState:function(e){return Array.isArray(e)?e:null==e?eK:[e]}}),t2=(0,l.A)(t1,2),t4=t2[0],t6=t2[1],t3=function(e){if(ej){var t,n=e.key,o=t4.includes(n);t6(t=eV?o?t4.filter(function(e){return e!==n}):[].concat((0,i.A)(t4),[n]):[n]);var r=(0,a.A)((0,a.A)({},e),{},{selectedKeys:t});o?null==eX||eX(r):null==e_||e_(r)}!eV&&tp.length&&"inline"!==tM&&tv(eK)},t5=U(function(e){null==e4||e4(ec(e)),t3(e)}),t8=U(function(e,t){var n=tp.filter(function(t){return t!==e});if(t)n.push(e);else if("inline"!==tM){var o=tG(e);n=n.filter(function(e){return!o.has(e)})}(0,p.A)(tp,n,!0)||tv(n,!0)}),t9=(ea=function(e,t){var n=null!=t?t:!tp.includes(e);t8(e,n)},ei=v.useRef(),(el=v.useRef()).current=t$,eu=function(){z.A.cancel(ei.current)},v.useEffect(function(){return function(){eu()}},[]),function(e){var t=e.which;if([].concat(F,[H,B,K,V]).includes(t)){var n=tX(),o=X(n,tu),a=o,i=a.elements,l=a.key2element,c=a.element2key,u=function(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}(l.get(t$),i),s=c.get(u),d=function(e,t,n,o){var a,i="prev",l="next",c="children",u="parent";if("inline"===e&&o===H)return{inlineTrigger:!0};var s=(0,r.A)((0,r.A)({},j,i),L,l),d=(0,r.A)((0,r.A)((0,r.A)((0,r.A)({},D,n?l:i),T,n?i:l),L,c),H,c),f=(0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)((0,r.A)({},j,i),L,l),H,c),B,u),D,n?c:u),T,n?u:c);switch(null==(a=({inline:s,horizontal:d,vertical:f,inlineSub:s,horizontalSub:f,verticalSub:f})["".concat(e).concat(t?"":"Sub")])?void 0:a[o]){case i:return{offset:-1,sibling:!0};case l:return{offset:1,sibling:!0};case u:return{offset:-1,sibling:!1};case c:return{offset:1,sibling:!1};default:return null}}(tM,1===t_(s,!0).length,ts,t);if(!d&&t!==K&&t!==V)return;(F.includes(t)||[K,V].includes(t))&&e.preventDefault();var f=function(e){if(e){var t=e,n=e.querySelector("a");null!=n&&n.getAttribute("href")&&(t=n);var o=c.get(e);tJ(o),eu(),ei.current=(0,z.A)(function(){el.current===o&&t.focus()})}};if([K,V].includes(t)||d.sibling||!u){var p=u&&"inline"!==tM?function(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}(u):tc.current,m=W(p,i);f(t===K?m[0]:t===V?m[m.length-1]:_(p,i,u,d.offset))}else if(d.inlineTrigger)ea(s);else if(d.offset>0)ea(s,!0),eu(),ei.current=(0,z.A)(function(){o=X(n,tu);var e=u.getAttribute("aria-controls");f(_(document.getElementById(e),o.elements))},5);else if(d.offset<0){var v=t_(s,!0),g=v[v.length-2],h=l.get(g);ea(g,!1),f(h)}}null==e3||e3(e)});v.useEffect(function(){tl(!0)},[]);var t7=v.useMemo(function(){return{_internalRenderMenuItem:e5,_internalRenderSubMenuItem:e8}},[e5,e8]),ne="horizontal"!==tM||eO?tn:tn.map(function(e,t){return v.createElement(C,{key:e.key,overflowDisabled:t>tj},e)}),nt=v.createElement(d.A,(0,o.A)({id:ew,ref:tc,prefixCls:"".concat(ef,"-overflow"),component:"ul",itemComponent:em,className:s()(ef,"".concat(ef,"-root"),"".concat(ef,"-").concat(tM),eg,(0,r.A)((0,r.A)({},"".concat(ef,"-inline-collapsed"),tP),"".concat(ef,"-rtl"),ts),ep),dir:eA,style:ev,role:"menu",tabIndex:void 0===eh?0:eh,data:ne,renderRawItem:function(e){return e},renderRawRest:function(e){var t=e.length,n=t?tn.slice(-t):null;return v.createElement(ek,{eventKey:q,title:e0,disabled:tH,internalPopupClose:0===t,popupClassName:e1},n)},maxCount:"horizontal"!==tM||eO?d.A.INVALIDATE:d.A.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(e){tL(e)},onKeyDown:t9},e7));return v.createElement(R.Provider,{value:t7},v.createElement(h.Provider,{value:tu},v.createElement(C,{prefixCls:ef,rootClassName:ep,mode:tM,openKeys:tp,rtl:ts,disabled:ex,motion:ti?eY:null,defaultMotions:ti?eq:null,activeKey:t$,onActive:tZ,onInactive:t0,selectedKeys:t4,inlineIndent:void 0===eG?24:eG,subMenuOpenDelay:void 0===eI?.1:eI,subMenuCloseDelay:void 0===eM?.1:eM,forceSubMenuRender:eR,builtinPlacements:eQ,triggerSubMenuAction:void 0===eU?"hover":eU,getPopupContainer:e2,itemIcon:e$,expandIcon:eJ,onItemClick:t5,onOpenChange:t8},v.createElement(M.Provider,{value:tq},nt),v.createElement("div",{style:{display:"none"},"aria-hidden":!0},v.createElement(S.Provider,{value:tY},to)))))});eV.Item=em,eV.SubMenu=ek,eV.ItemGroup=ej,eV.Divider=ez;let eF=eV},93084:(e,t,n)=>{n.d(t,{A:()=>l});var o=n(79630),r=n(12115),a=n(18118),i=n(35030);let l=r.forwardRef(function(e,t){return r.createElement(i.A,(0,o.A)({},e,{ref:t,icon:a.A}))})},96249:(e,t,n)=>{function o(e){return["small","middle","large"].includes(e)}function r(e){return!!e&&"number"==typeof e&&!Number.isNaN(e)}n.d(t,{X:()=>o,m:()=>r})}}]); \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/164f4fb6-bfb3067a982328b6.js b/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/164f4fb6-bfb3067a982328b6.js deleted file mode 100644 index 682af5c7..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/_next/static/chunks/164f4fb6-bfb3067a982328b6.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3930],{26597:(t,e,r)=>{r.d(e,{Ay:()=>R});var n=r(86608),i=r(61260),a=r(21858),o=r(64659),s=function(){return"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:this}();function c(){s.console&&"function"==typeof s.console.log&&s.console.log.apply(s.console,arguments)}var u={log:c,warn:function(t){s.console&&("function"==typeof s.console.warn?s.console.warn.apply(s.console,arguments):c.call(null,arguments))},error:function(t){s.console&&("function"==typeof s.console.error?s.console.error.apply(s.console,arguments):c(t))}};function l(t,e,r){var n=new XMLHttpRequest;n.open("GET",t),n.responseType="blob",n.onload=function(){d(n.response,e,r)},n.onerror=function(){u.error("could not download file")},n.send()}function h(t){var e=new XMLHttpRequest;e.open("HEAD",t,!1);try{e.send()}catch(t){}return e.status>=200&&e.status<=299}function f(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(r){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var d=s.saveAs||("object"!==("undefined"==typeof window?"undefined":(0,n.A)(window))||window!==s?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(t,e,r){var n=s.URL||s.webkitURL,i=document.createElement("a");i.download=e=e||t.name||"download",i.rel="noopener","string"==typeof t?(i.href=t,i.origin!==location.origin?h(i.href)?l(t,e,r):f(i,i.target="_blank"):f(i)):(i.href=n.createObjectURL(t),setTimeout(function(){n.revokeObjectURL(i.href)},4e4),setTimeout(function(){f(i)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,r){if(e=e||t.name||"download","string"==typeof t)if(h(t))l(t,e,r);else{var i,a=document.createElement("a");a.href=t,a.target="_blank",setTimeout(function(){f(a)})}else navigator.msSaveOrOpenBlob((void 0===(i=r)?i={autoBom:!1}:"object"!==(0,n.A)(i)&&(u.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t),e)}:function(t,e,r,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),"string"==typeof t)return l(t,e,r);var a="application/octet-stream"===t.type,o=/constructor/i.test(s.HTMLElement)||s.safari,c=/CriOS\/[\d]+/.test(navigator.userAgent);if((c||a&&o)&&"object"===("undefined"==typeof FileReader?"undefined":(0,n.A)(FileReader))){var u=new FileReader;u.onloadend=function(){var t=u.result;t=c?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=t:location=t,i=null},u.readAsDataURL(t)}else{var h=s.URL||s.webkitURL,f=h.createObjectURL(t);i?i.location=f:location.href=f,i=null,setTimeout(function(){h.revokeObjectURL(f)},4e4)}});function p(t){var e;t=t||"",this.ok=!1,"#"==t.charAt(0)&&(t=t.substr(1,6)),t=({aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"})[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var r=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(t){return[parseInt(t[1]),parseInt(t[2]),parseInt(t[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}}],n=0;n255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var t=this.r.toString(16),e=this.g.toString(16),r=this.b.toString(16);return 1==t.length&&(t="0"+t),1==e.length&&(e="0"+e),1==r.length&&(r="0"+r),"#"+t+e+r}}var g=s.atob.bind(s),m=s.btoa.bind(s);function v(t,e){var r=t[0],n=t[1],i=t[2],a=t[3];r=y(r,n,i,a,e[0],7,-0x28955b88),a=y(a,r,n,i,e[1],12,-0x173848aa),i=y(i,a,r,n,e[2],17,0x242070db),n=y(n,i,a,r,e[3],22,-0x3e423112),r=y(r,n,i,a,e[4],7,-0xa83f051),a=y(a,r,n,i,e[5],12,0x4787c62a),i=y(i,a,r,n,e[6],17,-0x57cfb9ed),n=y(n,i,a,r,e[7],22,-0x2b96aff),r=y(r,n,i,a,e[8],7,0x698098d8),a=y(a,r,n,i,e[9],12,-0x74bb0851),i=y(i,a,r,n,e[10],17,-42063),n=y(n,i,a,r,e[11],22,-0x76a32842),r=y(r,n,i,a,e[12],7,0x6b901122),a=y(a,r,n,i,e[13],12,-0x2678e6d),i=y(i,a,r,n,e[14],17,-0x5986bc72),r=w(r,n=y(n,i,a,r,e[15],22,0x49b40821),i,a,e[1],5,-0x9e1da9e),a=w(a,r,n,i,e[6],9,-0x3fbf4cc0),i=w(i,a,r,n,e[11],14,0x265e5a51),n=w(n,i,a,r,e[0],20,-0x16493856),r=w(r,n,i,a,e[5],5,-0x29d0efa3),a=w(a,r,n,i,e[10],9,0x2441453),i=w(i,a,r,n,e[15],14,-0x275e197f),n=w(n,i,a,r,e[4],20,-0x182c0438),r=w(r,n,i,a,e[9],5,0x21e1cde6),a=w(a,r,n,i,e[14],9,-0x3cc8f82a),i=w(i,a,r,n,e[3],14,-0xb2af279),n=w(n,i,a,r,e[8],20,0x455a14ed),r=w(r,n,i,a,e[13],5,-0x561c16fb),a=w(a,r,n,i,e[2],9,-0x3105c08),i=w(i,a,r,n,e[7],14,0x676f02d9),r=x(r,n=w(n,i,a,r,e[12],20,-0x72d5b376),i,a,e[5],4,-378558),a=x(a,r,n,i,e[8],11,-0x788e097f),i=x(i,a,r,n,e[11],16,0x6d9d6122),n=x(n,i,a,r,e[14],23,-0x21ac7f4),r=x(r,n,i,a,e[1],4,-0x5b4115bc),a=x(a,r,n,i,e[4],11,0x4bdecfa9),i=x(i,a,r,n,e[7],16,-0x944b4a0),n=x(n,i,a,r,e[10],23,-0x41404390),r=x(r,n,i,a,e[13],4,0x289b7ec6),a=x(a,r,n,i,e[0],11,-0x155ed806),i=x(i,a,r,n,e[3],16,-0x2b10cf7b),n=x(n,i,a,r,e[6],23,0x4881d05),r=x(r,n,i,a,e[9],4,-0x262b2fc7),a=x(a,r,n,i,e[12],11,-0x1924661b),i=x(i,a,r,n,e[15],16,0x1fa27cf8),r=N(r,n=x(n,i,a,r,e[2],23,-0x3b53a99b),i,a,e[0],6,-0xbd6ddbc),a=N(a,r,n,i,e[7],10,0x432aff97),i=N(i,a,r,n,e[14],15,-0x546bdc59),n=N(n,i,a,r,e[5],21,-0x36c5fc7),r=N(r,n,i,a,e[12],6,0x655b59c3),a=N(a,r,n,i,e[3],10,-0x70f3336e),i=N(i,a,r,n,e[10],15,-1051523),n=N(n,i,a,r,e[1],21,-0x7a7ba22f),r=N(r,n,i,a,e[8],6,0x6fa87e4f),a=N(a,r,n,i,e[15],10,-0x1d31920),i=N(i,a,r,n,e[6],15,-0x5cfebcec),n=N(n,i,a,r,e[13],21,0x4e0811a1),r=N(r,n,i,a,e[4],6,-0x8ac817e),a=N(a,r,n,i,e[11],10,-0x42c50dcb),i=N(i,a,r,n,e[2],15,0x2ad7d2bb),n=N(n,i,a,r,e[9],21,-0x14792c6f),t[0]=k(r,t[0]),t[1]=k(n,t[1]),t[2]=k(i,t[2]),t[3]=k(a,t[3])}function b(t,e,r,n,i,a){return e=k(k(e,t),k(n,a)),k(e<>>32-i,r)}function y(t,e,r,n,i,a,o){return b(e&r|~e&n,t,e,i,a,o)}function w(t,e,r,n,i,a,o){return b(e&n|r&~n,t,e,i,a,o)}function x(t,e,r,n,i,a,o){return b(e^r^n,t,e,i,a,o)}function N(t,e,r,n,i,a,o){return b(r^(e|~n),t,e,i,a,o)}function L(t){var e,r=t.length,n=[0x67452301,-0x10325477,-0x67452302,0x10325476];for(e=64;e<=t.length;e+=64)v(n,function(t){var e,r=[];for(e=0;e<64;e+=4)r[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return r}(t.substring(e-64,e)));t=t.substring(e-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=t.charCodeAt(e)<<(e%4<<3);if(i[e>>2]|=128<<(e%4<<3),e>55)for(v(n,i),e=0;e<16;e++)i[e]=0;return i[14]=8*r,v(n,i),n}var A="0123456789abcdef".split("");function S(t){return String.fromCharCode(255&t,(65280&t)>>8,(0xff0000&t)>>16,(0xff000000&t)>>24)}function _(t){return L(t).map(S).join("")}var P="5d41402abc4b2a76b9719d911017c592"!=function(t){for(var e=0;e>8*r+4&15]+A[t>>8*r&15];return e}(t[e]);return t.join("")}(L("hello"));function k(t,e){if(P){var r=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(r>>16)<<16|65535&r}return t+e|0}function F(t,e){if(t!==r){for(var r,n,i=Array(1+(256/t.length|0)+1).join(t),a=[],o=0;o<256;o++)a[o]=o;var s=0;for(o=0;o<256;o++){var c=a[o];s=(s+c+i.charCodeAt(o))%256,a[o]=a[s],a[s]=c}r=t,n=a}else a=n;var u=e.length,l=0,h=0,f="";for(o=0;o\x80/\f\xa9\xfedSiz";var a=(e+this.padding).substr(0,32),o=(r+this.padding).substr(0,32);this.O=this.processOwnerPassword(a,o),this.P=-(1+(255^i)),this.encryptionKey=_(a+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(n)).substr(0,5),this.U=F(this.encryptionKey,this.padding)}function C(t){if(/[^\u0000-\u00ff]/.test(t))throw Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var e="",r=t.length,n=0;n126?"#"+("0"+i.toString(16)).slice(-2):t[n]}return e}function O(t){if("object"!==(0,n.A)(t))throw Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var e={};this.subscribe=function(t,r,n){if(n=n||!1,"string"!=typeof t||"function"!=typeof r||"boolean"!=typeof n)throw Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");e.hasOwnProperty(t)||(e[t]={});var i=Math.random().toString(35);return e[t][i]=[r,!!n],i},this.unsubscribe=function(t){for(var r in e)if(e[r][t])return delete e[r][t],0===Object.keys(e[r]).length&&delete e[r],!0;return!1},this.publish=function(r){if(e.hasOwnProperty(r)){var n=Array.prototype.slice.call(arguments,1),i=[];for(var a in e[r]){var o=e[r][a];try{o[0].apply(t,n)}catch(t){s.console&&u.error("jsPDF PubSub Error",t.message,t)}o[1]&&i.push(a)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return e}}function M(t){if(!(this instanceof M))return new M(t);var e="opacity,stroke-opacity".split(",");for(var r in t)t.hasOwnProperty(r)&&e.indexOf(r)>=0&&(this[r]=t[r]);this.id="",this.objectNumber=-1}function q(t,e){this.gState=t,this.matrix=e,this.id="",this.objectNumber=-1}function E(t,e,r,n,i){if(!(this instanceof E))return new E(t,e,r,n,i);this.type="axial"===t?2:3,this.coords=e,this.colors=r,q.call(this,n,i)}function B(t,e,r,n,i){if(!(this instanceof B))return new B(t,e,r,n,i);this.boundingBox=t,this.xStep=e,this.yStep=r,this.stream="",this.cloneIndex=0,q.call(this,n,i)}function R(t){var e,r="string"==typeof arguments[0]?arguments[0]:"p",i=arguments[1],a=arguments[2],o=arguments[3],c=[],l=1,h=16,f="S",g=null;"object"===(0,n.A)(t=t||{})&&(r=t.orientation,i=t.unit||i,a=t.format||a,o=t.compress||t.compressPdf||o,null!==(g=t.encryption||null)&&(g.userPassword=g.userPassword||"",g.ownerPassword=g.ownerPassword||"",g.userPermissions=g.userPermissions||[]),l="number"==typeof t.userUnit?Math.abs(t.userUnit):1,void 0!==t.precision&&(e=t.precision),void 0!==t.floatPrecision&&(h=t.floatPrecision),f=t.defaultPathOperation||"S"),c=t.filters||(!0===o?["FlateEncode"]:c),i=i||"mm",r=(""+(r||"P")).toLowerCase();var v=t.putOnlyUsedFonts||!1,b={},y={internal:{},__private__:{}};y.__private__.PubSub=O;var w="1.3",x=y.__private__.getPdfVersion=function(){return w};y.__private__.setPdfVersion=function(t){w=t};var N={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};y.__private__.getPageFormats=function(){return N};var L=y.__private__.getPageFormat=function(t){return N[t]};a=a||"a4";var A="compat",S="advanced",_=A;function P(){this.saveGraphicsState(),tl(new tW(tS,0,0,-tS,0,ra()*tS).toString()+" cm"),this.setFontSize(this.getFontSize()/tS),f="n",_=S}function k(){this.restoreGraphicsState(),f="S",_=A}var F=y.__private__.combineFontStyleAndFontWeight=function(t,e){if("bold"==t&&"normal"==e||"bold"==t&&400==e||"normal"==t&&"italic"==e||"bold"==t&&"italic"==e)throw Error("Invalid Combination of fontweight and fontstyle");return e&&(t=400==e||"normal"===e?"italic"===t?"italic":"normal":700!=e&&"bold"!==e||"normal"!==t?(700==e?"bold":e)+""+t:"bold"),t};y.advancedAPI=function(t){var e=_===A;return e&&P.call(this),"function"!=typeof t||(t(this),e&&k.call(this)),this},y.compatAPI=function(t){var e=_===S;return e&&k.call(this),"function"!=typeof t||(t(this),e&&P.call(this)),this},y.isAdvancedAPI=function(){return _===S};var I,q=function(t){if(_!==S)throw Error(t+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},D=y.roundToPrecision=y.__private__.roundToPrecision=function(t,r){var n=e||r;if(isNaN(t)||isNaN(n))throw Error("Invalid argument passed to jsPDF.roundToPrecision");return t.toFixed(n).replace(/0+$/,"")};I=y.hpf=y.__private__.hpf="number"==typeof h?function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.hpf");return D(t,h)}:"smart"===h?function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.hpf");return D(t,t>-1&&t<1?16:5)}:function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.hpf");return D(t,16)};var T=y.f2=y.__private__.f2=function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.f2");return D(t,2)},z=y.__private__.f3=function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.f3");return D(t,3)},U=y.scale=y.__private__.scale=function(t){if(isNaN(t))throw Error("Invalid argument passed to jsPDF.scale");return _===A?t*tS:_===S?t:void 0},H=function(t){return U(_===A?ra()-t:_===S?t:void 0)};y.__private__.setPrecision=y.setPrecision=function(t){"number"==typeof parseInt(t,10)&&(e=parseInt(t,10))};var W,V="00000000000000000000000000000000",G=y.__private__.getFileId=function(){return V},Y=y.__private__.setFileId=function(t){return V=void 0!==t&&/^[a-fA-F0-9]{32}$/.test(t)?t.toUpperCase():V.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==g&&(ex=new j(g.userPermissions,g.userPassword,g.ownerPassword,V)),V};y.setFileId=function(t){return Y(t),this},y.getFileId=function(){return G()};var J=y.__private__.convertDateToPDFDate=function(t){var e=t.getTimezoneOffset(),r=Math.floor(Math.abs(e/60)),n=Math.abs(e%60),i=[e<0?"+":"-",Q(r),"'",Q(n),"'"].join("");return["D:",t.getFullYear(),Q(t.getMonth()+1),Q(t.getDate()),Q(t.getHours()),Q(t.getMinutes()),Q(t.getSeconds()),i].join("")},X=y.__private__.convertPDFDateToDate=function(t){return new Date(parseInt(t.substr(2,4),10),parseInt(t.substr(6,2),10)-1,parseInt(t.substr(8,2),10),parseInt(t.substr(10,2),10),parseInt(t.substr(12,2),10),parseInt(t.substr(14,2),10),0)},K=y.__private__.setCreationDate=function(t){var e;if(void 0===t&&(t=new Date),t instanceof Date)e=J(t);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(t))throw Error("Invalid argument passed to jsPDF.setCreationDate");e=t}return W=e},Z=y.__private__.getCreationDate=function(t){var e=W;return"jsDate"===t&&(e=X(W)),e};y.setCreationDate=function(t){return K(t),this},y.getCreationDate=function(t){return Z(t)};var $,Q=y.__private__.padd2=function(t){return("0"+parseInt(t)).slice(-2)},tt=y.__private__.padd2Hex=function(t){return("00"+(t=t.toString())).substr(t.length)},te=0,tr=[],tn=[],ti=0,ta=[],to=[],ts=!1,tc=tn;y.__private__.setCustomOutputDestination=function(t){ts=!0,tc=t};var tu=function(t){ts||(tc=t)};y.__private__.resetCustomOutputDestination=function(){ts=!1,tc=tn};var tl=y.__private__.out=function(t){return t=t.toString(),ti+=t.length+1,tc.push(t),tc},th=y.__private__.write=function(t){return tl(1==arguments.length?t.toString():Array.prototype.join.call(arguments," "))},tf=y.__private__.getArrayBuffer=function(t){for(var e=t.length,r=new ArrayBuffer(e),n=new Uint8Array(r);e--;)n[e]=t.charCodeAt(e);return r},td=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];y.__private__.getStandardFonts=function(){return td};var tp=t.fontSize||16;y.__private__.setFontSize=y.setFontSize=function(t){return tp=_===S?t/tS:t,this};var tg,tm=y.__private__.getFontSize=y.getFontSize=function(){return _===A?tp:tp*tS},tv=t.R2L||!1;y.__private__.setR2L=y.setR2L=function(t){return tv=t,this},y.__private__.getR2L=y.getR2L=function(){return tv};var tb,ty=y.__private__.setZoomMode=function(t){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(t))tg=t;else if(isNaN(t)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(t))throw Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+t+'" is not recognized.');tg=t}else tg=parseInt(t,10)};y.__private__.getZoomMode=function(){return tg};var tw,tx=y.__private__.setPageMode=function(t){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(t))throw Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+t+'" is not recognized.');tb=t};y.__private__.getPageMode=function(){return tb};var tN=y.__private__.setLayoutMode=function(t){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(t))throw Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+t+'" is not recognized.');tw=t};y.__private__.getLayoutMode=function(){return tw},y.__private__.setDisplayMode=y.setDisplayMode=function(t,e,r){return ty(t),tN(e),tx(r),this};var tL={title:"",subject:"",author:"",keywords:"",creator:""};y.__private__.getDocumentProperty=function(t){if(-1===Object.keys(tL).indexOf(t))throw Error("Invalid argument passed to jsPDF.getDocumentProperty");return tL[t]},y.__private__.getDocumentProperties=function(){return tL},y.__private__.setDocumentProperties=y.setProperties=y.setDocumentProperties=function(t){for(var e in tL)tL.hasOwnProperty(e)&&t[e]&&(tL[e]=t[e]);return this},y.__private__.setDocumentProperty=function(t,e){if(-1===Object.keys(tL).indexOf(t))throw Error("Invalid arguments passed to jsPDF.setDocumentProperty");return tL[t]=e};var tA,tS,t_,tP,tk,tF={},tI={},tj=[],tC={},tO={},tM={},tq={},tE=null,tB=0,tR=[],tD=new O(y),tT=t.hotfixes||[],tz={},tU={},tH=[],tW=function t(e,r,n,i,a,o){if(!(this instanceof t))return new t(e,r,n,i,a,o);isNaN(e)&&(e=1),isNaN(r)&&(r=0),isNaN(n)&&(n=0),isNaN(i)&&(i=1),isNaN(a)&&(a=0),isNaN(o)&&(o=0),this._matrix=[e,r,n,i,a,o]};Object.defineProperty(tW.prototype,"sx",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(tW.prototype,"shy",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(tW.prototype,"shx",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(tW.prototype,"sy",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(tW.prototype,"tx",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(tW.prototype,"ty",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(tW.prototype,"a",{get:function(){return this._matrix[0]},set:function(t){this._matrix[0]=t}}),Object.defineProperty(tW.prototype,"b",{get:function(){return this._matrix[1]},set:function(t){this._matrix[1]=t}}),Object.defineProperty(tW.prototype,"c",{get:function(){return this._matrix[2]},set:function(t){this._matrix[2]=t}}),Object.defineProperty(tW.prototype,"d",{get:function(){return this._matrix[3]},set:function(t){this._matrix[3]=t}}),Object.defineProperty(tW.prototype,"e",{get:function(){return this._matrix[4]},set:function(t){this._matrix[4]=t}}),Object.defineProperty(tW.prototype,"f",{get:function(){return this._matrix[5]},set:function(t){this._matrix[5]=t}}),Object.defineProperty(tW.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(tW.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(tW.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(tW.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),tW.prototype.join=function(t){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(I).join(t)},tW.prototype.multiply=function(t){return new tW(t.sx*this.sx+t.shy*this.shx,t.sx*this.shy+t.shy*this.sy,t.shx*this.sx+t.sy*this.shx,t.shx*this.shy+t.sy*this.sy,t.tx*this.sx+t.ty*this.shx+this.tx,t.tx*this.shy+t.ty*this.sy+this.ty)},tW.prototype.decompose=function(){var t=this.sx,e=this.shy,r=this.shx,n=this.sy,i=this.tx,a=this.ty,o=Math.sqrt(t*t+e*e),s=(t/=o)*r+(e/=o)*n,c=Math.sqrt((r-=t*s)*r+(n-=e*s)*n);return s/=c,t*(n/=c)>16&255,i=u>>8&255,a=255&u}if(void 0===i||void 0===o&&r===i&&i===a)e="string"==typeof r?r+" "+s[0]:2===t.precision?T(r/255)+" "+s[0]:z(r/255)+" "+s[0];else if(void 0===o||"object"===(0,n.A)(o)){if(o&&!isNaN(o.a)&&0===o.a)return["1.","1.","1.",s[1]].join(" ");e="string"==typeof r?[r,i,a,s[1]].join(" "):2===t.precision?[T(r/255),T(i/255),T(a/255),s[1]].join(" "):[z(r/255),z(i/255),z(a/255),s[1]].join(" ")}else e="string"==typeof r?[r,i,a,o,s[2]].join(" "):2===t.precision?[T(r),T(i),T(a),T(o),s[2]].join(" "):[z(r),z(i),z(a),z(o),s[2]].join(" ");return e},t0=y.__private__.getFilters=function(){return c},t3=y.__private__.putStream=function(t){var e=(t=t||{}).data||"",r=t.filters||t0(),n=t.alreadyAppliedFilters||[],i=t.addLength1||!1,a=e.length,o=t.objectId,s=function(t){return t};if(null!==g&&void 0===o)throw Error("ObjectId must be passed to putStream for file encryption");null!==g&&(s=ex.encryptor(o,0));var c={};!0===r&&(r=["FlateEncode"]);var u=t.additionalKeyValues||[],l=(c=void 0!==R.API.processDataByFilters?R.API.processDataByFilters(e,r):{data:e,reverseChain:[]}).reverseChain+(Array.isArray(n)?n.join(" "):n.toString());if(0!==c.data.length&&(u.push({key:"Length",value:c.data.length}),!0===i&&u.push({key:"Length1",value:a})),0!=l.length)if(l.split("/").length-1==1)u.push({key:"Filter",value:l});else{u.push({key:"Filter",value:"["+l+"]"});for(var h=0;h>"),0!==c.data.length&&(tl("stream"),tl(s(c.data)),tl("endstream"))},t4=y.__private__.putPage=function(t){var e=t.number,r=t.data,n=t.objId,i=t.contentsObjId;tZ(n,!0),tl("<>"),tl("endobj");var a=r.join("\n");return _===S&&(a+="\nQ"),tZ(i,!0),t3({data:a,filters:t0(),objectId:i}),tl("endobj"),n},t6=y.__private__.putPages=function(){var t,e,r=[];for(t=1;t<=tB;t++)tR[t].objId=tK(),tR[t].contentsObjId=tK();for(t=1;t<=tB;t++)r.push(t4({number:t,data:to[t],objId:tR[t].objId,contentsObjId:tR[t].contentsObjId,mediaBox:tR[t].mediaBox,cropBox:tR[t].cropBox,bleedBox:tR[t].bleedBox,trimBox:tR[t].trimBox,artBox:tR[t].artBox,userUnit:tR[t].userUnit,rootDictionaryObjId:tQ,resourceDictionaryObjId:t1}));tZ(tQ,!0),tl("<>"),tl("endobj"),tD.publish("postPutPages")},t8=function(t){tD.publish("putFont",{font:t,out:tl,newObject:tX,putStream:t3}),!0!==t.isAlreadyPutted&&(t.objectNumber=tX(),tl("<<"),tl("/Type /Font"),tl("/BaseFont /"+C(t.postScriptName)),tl("/Subtype /Type1"),"string"==typeof t.encoding&&tl("/Encoding /"+t.encoding),tl("/FirstChar 32"),tl("/LastChar 255"),tl(">>"),tl("endobj"))},t7=function(t){t.objectNumber=tX();var e=[];e.push({key:"Type",value:"/XObject"}),e.push({key:"Subtype",value:"/Form"}),e.push({key:"BBox",value:"["+[I(t.x),I(t.y),I(t.x+t.width),I(t.y+t.height)].join(" ")+"]"}),e.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),t3({data:t.pages[1].join("\n"),additionalKeyValues:e,objectId:t.objectNumber}),tl("endobj")},t9=function(t,e){e||(e=21);var r=tX(),n=function(t,e){var r,n=[],i=1/(e-1);for(r=0;r<1;r+=i)n.push(r);if(n.push(1),0!=t[0].offset){var a={offset:0,color:t[0].color};t.unshift(a)}if(1!=t[t.length-1].offset){var o={offset:1,color:t[t.length-1].color};t.push(o)}for(var s="",c=0,u=0;ut[c+1].offset;)c++;var l=t[c].offset,h=(r-l)/(t[c+1].offset-l),f=t[c].color,d=t[c+1].color;s+=tt(Math.round((1-h)*f[0]+h*d[0]).toString(16))+tt(Math.round((1-h)*f[1]+h*d[1]).toString(16))+tt(Math.round((1-h)*f[2]+h*d[2]).toString(16))}return s.trim()}(t.colors,e),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+e+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),t3({data:n,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:r}),tl("endobj"),t.objectNumber=tX(),tl("<< /ShadingType "+t.type),tl("/ColorSpace /DeviceRGB");var a="/Coords ["+I(parseFloat(t.coords[0]))+" "+I(parseFloat(t.coords[1]))+" ";2===t.type?a+=I(parseFloat(t.coords[2]))+" "+I(parseFloat(t.coords[3])):a+=I(parseFloat(t.coords[2]))+" "+I(parseFloat(t.coords[3]))+" "+I(parseFloat(t.coords[4]))+" "+I(parseFloat(t.coords[5])),tl(a+="]"),t.matrix&&tl("/Matrix ["+t.matrix.toString()+"]"),tl("/Function "+r+" 0 R"),tl("/Extend [true true]"),tl(">>"),tl("endobj")},et=function(t,e){var r=tK(),n=tX();e.push({resourcesOid:r,objectOid:n}),t.objectNumber=n;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+t.boundingBox.map(I).join(" ")+"]"}),i.push({key:"XStep",value:I(t.xStep)}),i.push({key:"YStep",value:I(t.yStep)}),i.push({key:"Resources",value:r+" 0 R"}),t.matrix&&i.push({key:"Matrix",value:"["+t.matrix.toString()+"]"}),t3({data:t.stream,additionalKeyValues:i,objectId:t.objectNumber}),tl("endobj")},ee=function(t){for(var e in t.objectNumber=tX(),tl("<<"),t)switch(e){case"opacity":tl("/ca "+T(t[e]));break;case"stroke-opacity":tl("/CA "+T(t[e]))}tl(">>"),tl("endobj")},er=function(t){tZ(t.resourcesOid,!0),tl("<<"),tl("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var t in tl("/Font <<"),tF)tF.hasOwnProperty(t)&&(!1===v||!0===v&&b.hasOwnProperty(t))&&tl("/"+t+" "+tF[t].objectNumber+" 0 R");tl(">>")}(),function(){if(Object.keys(tC).length>0){for(var t in tl("/Shading <<"),tC)tC.hasOwnProperty(t)&&tC[t]instanceof E&&tC[t].objectNumber>=0&&tl("/"+t+" "+tC[t].objectNumber+" 0 R");tD.publish("putShadingPatternDict"),tl(">>")}}(),function(t){if(Object.keys(tC).length>0){for(var e in tl("/Pattern <<"),tC)tC.hasOwnProperty(e)&&tC[e]instanceof y.TilingPattern&&tC[e].objectNumber>=0&&tC[e].objectNumber>")}}(t.objectOid),function(){if(Object.keys(tM).length>0){var t;for(t in tl("/ExtGState <<"),tM)tM.hasOwnProperty(t)&&tM[t].objectNumber>=0&&tl("/"+t+" "+tM[t].objectNumber+" 0 R");tD.publish("putGStateDict"),tl(">>")}}(),function(){for(var t in tl("/XObject <<"),tz)tz.hasOwnProperty(t)&&tz[t].objectNumber>=0&&tl("/"+t+" "+tz[t].objectNumber+" 0 R");tD.publish("putXobjectDict"),tl(">>")}(),tl(">>"),tl("endobj")},en=function(t){tI[t.fontName]=tI[t.fontName]||{},tI[t.fontName][t.fontStyle]=t.id},ei=function(t,e,r,n,i){var a={id:"F"+(Object.keys(tF).length+1).toString(10),postScriptName:t,fontName:e,fontStyle:r,encoding:n,isStandardFont:i||!1,metadata:{}};return tD.publish("addFont",{font:a,instance:this}),tF[a.id]=a,en(a),a.id},ea=y.__private__.pdfEscape=y.pdfEscape=function(t,e){return(function(t,e){var r,n,i,a,o,s,c,u,l;if(i=(e=e||{}).sourceEncoding||"Unicode",o=e.outputEncoding,(e.autoencode||o)&&tF[tA].metadata&&tF[tA].metadata[i]&&tF[tA].metadata[i].encoding&&(a=tF[tA].metadata[i].encoding,!o&&tF[tA].encoding&&(o=tF[tA].encoding),!o&&a.codePages&&(o=a.codePages[0]),"string"==typeof o&&(o=a[o]),o)){for(c=!1,s=[],r=0,n=t.length;r>8&&(c=!0);t=s.join("")}for(r=t.length;void 0===c&&0!==r;)t.charCodeAt(r-1)>>8&&(c=!0),r--;if(!c)return t;for(s=e.noBOM?[]:[254,255],r=0,n=t.length;r>8)>>8)throw Error("Character at position "+r+" of string '"+t+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(l),s.push(u-(l<<8))}return String.fromCharCode.apply(void 0,s)})(t,e).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},eo=y.__private__.beginPage=function(t){to[++tB]=[],tR[tB]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(t[0]),topRightY:Number(t[1])}},eu(tB),tu(to[$])},es=function(t,e){var n,i,o;switch(r=e||r,"string"==typeof t&&Array.isArray(n=L(t.toLowerCase()))&&(i=n[0],o=n[1]),Array.isArray(t)&&(i=t[0]*tS,o=t[1]*tS),isNaN(i)&&(i=a[0],o=a[1]),(i>14400||o>14400)&&(u.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),i=Math.min(14400,i),o=Math.min(14400,o)),a=[i,o],r.substr(0,1)){case"l":o>i&&(a=[o,i]);break;case"p":i>o&&(a=[o,i])}eo(a),ez(eD),tl(eX),0!==e2&&tl(e2+" J"),0!==e5&&tl(e5+" j"),tD.publish("addPage",{pageNumber:tB})},ec=function(t){t>0&&t<=tB&&(to.splice(t,1),tR.splice(t,1),tB--,$>tB&&($=tB),this.setPage($))},eu=function(t){t>0&&t<=tB&&($=t)},el=y.__private__.getNumberOfPages=y.getNumberOfPages=function(){return to.length-1},eh=function(t,e,r){var n,i=void 0;return r=r||{},t=void 0!==t?t:tF[tA].fontName,e=void 0!==e?e:tF[tA].fontStyle,void 0!==tI[n=t.toLowerCase()]&&void 0!==tI[n][e]?i=tI[n][e]:void 0!==tI[t]&&void 0!==tI[t][e]?i=tI[t][e]:!1===r.disableWarning&&u.warn("Unable to look up font label for font '"+t+"', '"+e+"'. Refer to getFontList() for available fonts."),i||r.noFallback||null==(i=tI.times[e])&&(i=tI.times.normal),i},ef=y.__private__.putInfo=function(){var t=tX(),e=function(t){return t};for(var r in null!==g&&(e=ex.encryptor(t,0)),tl("<<"),tl("/Producer ("+ea(e("jsPDF "+R.version))+")"),tL)tL.hasOwnProperty(r)&&tL[r]&&tl("/"+r.substr(0,1).toUpperCase()+r.substr(1)+" ("+ea(e(tL[r]))+")");tl("/CreationDate ("+ea(e(W))+")"),tl(">>"),tl("endobj")},ed=y.__private__.putCatalog=function(t){var e=(t=t||{}).rootDictionaryObjId||tQ;switch(tX(),tl("<<"),tl("/Type /Catalog"),tl("/Pages "+e+" 0 R"),tg||(tg="fullwidth"),tg){case"fullwidth":tl("/OpenAction [3 0 R /FitH null]");break;case"fullheight":tl("/OpenAction [3 0 R /FitV null]");break;case"fullpage":tl("/OpenAction [3 0 R /Fit]");break;case"original":tl("/OpenAction [3 0 R /XYZ null null 1]");break;default:var r=""+tg;"%"===r.substr(r.length-1)&&(tg=parseInt(tg)/100),"number"==typeof tg&&tl("/OpenAction [3 0 R /XYZ null null "+T(tg)+"]")}switch(tw||(tw="continuous"),tw){case"continuous":tl("/PageLayout /OneColumn");break;case"single":tl("/PageLayout /SinglePage");break;case"two":case"twoleft":tl("/PageLayout /TwoColumnLeft");break;case"tworight":tl("/PageLayout /TwoColumnRight")}tb&&tl("/PageMode /"+tb),tD.publish("putCatalog"),tl(">>"),tl("endobj")},ep=y.__private__.putTrailer=function(){tl("trailer"),tl("<<"),tl("/Size "+(te+1)),tl("/Root "+te+" 0 R"),tl("/Info "+(te-1)+" 0 R"),null!==g&&tl("/Encrypt "+ex.oid+" 0 R"),tl("/ID [ <"+V+"> <"+V+"> ]"),tl(">>")},eg=y.__private__.putHeader=function(){tl("%PDF-"+w),tl("%\xba\xdf\xac\xe0")},em=y.__private__.putXRef=function(){var t="0000000000";tl("xref"),tl("0 "+(te+1)),tl("0000000000 65535 f ");for(var e=1;e<=te;e++)"function"==typeof tr[e]?tl((t+tr[e]()).slice(-10)+" 00000 n "):void 0!==tr[e]?tl((t+tr[e]).slice(-10)+" 00000 n "):tl("0000000000 00000 n ")},ev=y.__private__.buildDocument=function(){te=0,ti=0,tn=[],tr=[],ta=[],tQ=tK(),t1=tK(),tu(tn),tD.publish("buildDocument"),eg(),t6(),function(){tD.publish("putAdditionalObjects");for(var t=0;t"),tl("/O <"+ex.toHexString(ex.O)+">"),tl("/P "+ex.P),tl(">>"),tl("endobj")),ef(),ed();var t,e=ti;return em(),ep(),tl("startxref"),tl(""+e),tl("%%EOF"),tu(to[$]),tn.join("\n")},eb=y.__private__.getBlob=function(t){return new Blob([tf(t)],{type:"application/pdf"})},ey=y.output=y.__private__.output=((tJ=function(t,e){switch("string"==typeof(e=e||{})?e={filename:e}:e.filename=e.filename||"generated.pdf",t){case void 0:return ev();case"save":y.save(e.filename);break;case"arraybuffer":return tf(ev());case"blob":return eb(ev());case"bloburi":case"bloburl":if(void 0!==s.URL&&"function"==typeof s.URL.createObjectURL)return s.URL&&s.URL.createObjectURL(eb(ev()))||void 0;u.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var r="",n=ev();try{r=m(n)}catch(t){r=m(unescape(encodeURIComponent(n)))}return"data:application/pdf;filename="+e.filename+";base64,"+r;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(s)){var i="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",a=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';e.pdfObjectUrl&&(i=e.pdfObjectUrl,a="");var o='
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/agent-skills/detail/index.txt b/packages/derisk-app/src/derisk_app/static/web/agent-skills/detail/index.txt deleted file mode 100644 index 77a21fc1..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/agent-skills/detail/index.txt +++ /dev/null @@ -1,24 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90894,[],"ClientPageRoot"] -9:I[97585,["1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","1627","static/chunks/1627-404397bed5d04637.js","797","static/chunks/797-eb26b6f7871f5ec8.js","3512","static/chunks/3512-32e1cb1eabd7acd8.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6124","static/chunks/6124-b174e9fd589a8659.js","5388","static/chunks/5388-9a6952b42afb8f88.js","1081","static/chunks/1081-6591d8b32eeed670.js","6954","static/chunks/6954-79dd11aa887236de.js","3324","static/chunks/3324-9da8bd872e5c73f7.js","5423","static/chunks/5423-563fb623f1538f7e.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","2891","static/chunks/app/agent-skills/detail/page-9e10690108c7f248.js"],"default"] -c:I[59665,[],"OutletBoundary"] -e:I[74911,[],"AsyncMetadataOutlet"] -10:I[59665,[],"ViewportBoundary"] -12:I[59665,[],"MetadataBoundary"] -13:"$Sreact.suspense" -15:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -:HL["/_next/static/css/5dda26d2269b6aa1.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","agent-skills","detail",""],"i":false,"f":[[["",{"children":["agent-skills",{"children":["detail",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["agent-skills",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["detail",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@a","$@b"]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/5dda26d2269b6aa1.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$Lc",null,{"children":["$Ld",["$","$Le",null,{"promise":"$@f"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L10",null,{"children":"$L11"}],null],["$","$L12",null,{"children":["$","div",null,{"hidden":true,"children":["$","$13",null,{"fallback":null,"children":"$L14"}]}]}]]}],false]],"m":"$undefined","G":["$15",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -a:{} -b:"$0:f:0:1:1:props:children:1:props:params" -11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -d:null -f:{"metadata":[],"error":null,"digest":"$undefined"} -14:"$f:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/agent-skills/index.html b/packages/derisk-app/src/derisk_app/static/web/agent-skills/index.html deleted file mode 100644 index 9a869839..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/agent-skills/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/agent-skills/index.txt b/packages/derisk-app/src/derisk_app/static/web/agent-skills/index.txt deleted file mode 100644 index 7feb5b0e..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/agent-skills/index.txt +++ /dev/null @@ -1,24 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90894,[],"ClientPageRoot"] -9:I[63231,["1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","1627","static/chunks/1627-404397bed5d04637.js","797","static/chunks/797-eb26b6f7871f5ec8.js","3512","static/chunks/3512-32e1cb1eabd7acd8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6124","static/chunks/6124-b174e9fd589a8659.js","5388","static/chunks/5388-9a6952b42afb8f88.js","1483","static/chunks/1483-268c5128c58279f2.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","178","static/chunks/178-258a64836712302b.js","3324","static/chunks/3324-9da8bd872e5c73f7.js","3506","static/chunks/3506-b376488043bba00b.js","772","static/chunks/772-7b87e7f645d2b90d.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","6393","static/chunks/app/agent-skills/page-ee9f73c336991539.js"],"default"] -c:I[59665,[],"OutletBoundary"] -e:I[74911,[],"AsyncMetadataOutlet"] -10:I[59665,[],"ViewportBoundary"] -12:I[59665,[],"MetadataBoundary"] -13:"$Sreact.suspense" -15:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -:HL["/_next/static/css/b7f0cdb4d0556bb6.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","agent-skills",""],"i":false,"f":[[["",{"children":["agent-skills",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["agent-skills",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@a","$@b"]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/b7f0cdb4d0556bb6.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$Lc",null,{"children":["$Ld",["$","$Le",null,{"promise":"$@f"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L10",null,{"children":"$L11"}],null],["$","$L12",null,{"children":["$","div",null,{"hidden":true,"children":["$","$13",null,{"fallback":null,"children":"$L14"}]}]}]]}],false]],"m":"$undefined","G":["$15",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -a:{} -b:"$0:f:0:1:1:props:children:1:props:params" -11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -d:null -f:{"metadata":[],"error":null,"digest":"$undefined"} -14:"$f:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/agents/agent1.jpg b/packages/derisk-app/src/derisk_app/static/web/agents/agent1.jpg deleted file mode 100644 index 1afe4438..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/agents/agent1.jpg and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/agents/agent2.jpg b/packages/derisk-app/src/derisk_app/static/web/agents/agent2.jpg deleted file mode 100644 index a9107449..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/agents/agent2.jpg and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/agents/agent3.jpg b/packages/derisk-app/src/derisk_app/static/web/agents/agent3.jpg deleted file mode 100644 index 63a4d1a2..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/agents/agent3.jpg and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/agents/agent4.jpg b/packages/derisk-app/src/derisk_app/static/web/agents/agent4.jpg deleted file mode 100644 index 9c3b40c9..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/agents/agent4.jpg and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/agents/agent5.jpg b/packages/derisk-app/src/derisk_app/static/web/agents/agent5.jpg deleted file mode 100644 index fe0d37a7..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/agents/agent5.jpg and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/agents/agent_default.svg b/packages/derisk-app/src/derisk_app/static/web/agents/agent_default.svg deleted file mode 100644 index 70ac6e6d..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/agents/agent_default.svg +++ /dev/null @@ -1,46 +0,0 @@ - - 编组 22 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/agents/chat_avatar_default.png b/packages/derisk-app/src/derisk_app/static/web/agents/chat_avatar_default.png deleted file mode 100644 index bff8ac33..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/agents/chat_avatar_default.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/agents/default_avatar.png b/packages/derisk-app/src/derisk_app/static/web/agents/default_avatar.png deleted file mode 100644 index 47e7690c..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/agents/default_avatar.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/agents/derisk.jpg b/packages/derisk-app/src/derisk_app/static/web/agents/derisk.jpg deleted file mode 100644 index 21e6a39e..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/agents/derisk.jpg and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/agents/devid.jpg b/packages/derisk-app/src/derisk_app/static/web/agents/devid.jpg deleted file mode 100644 index 618caf6d..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/agents/devid.jpg and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/agents/kevin.jpg b/packages/derisk-app/src/derisk_app/static/web/agents/kevin.jpg deleted file mode 100644 index 96904728..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/agents/kevin.jpg and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/agents/magic.jpg b/packages/derisk-app/src/derisk_app/static/web/agents/magic.jpg deleted file mode 100644 index e4d1baec..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/agents/magic.jpg and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/agents/robot.png b/packages/derisk-app/src/derisk_app/static/web/agents/robot.png deleted file mode 100644 index 67ba81bf..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/agents/robot.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/agents/sre.png b/packages/derisk-app/src/derisk_app/static/web/agents/sre.png deleted file mode 100644 index 94c208ea..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/agents/sre.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/application/app/index.html b/packages/derisk-app/src/derisk_app/static/web/application/app/index.html deleted file mode 100644 index c5547d67..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/application/app/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/application/app/index.txt b/packages/derisk-app/src/derisk_app/static/web/application/app/index.txt deleted file mode 100644 index 9c199d94..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/application/app/index.txt +++ /dev/null @@ -1,25 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90894,[],"ClientPageRoot"] -9:I[84126,["750","static/chunks/afb4954d-bcbf957cc6187b79.js","240","static/chunks/c36f3faa-ad06f8e39d3f01eb.js","5600","static/chunks/05f6971a-37fe2a1a50eb9be0.js","2826","static/chunks/36c7393a-ef231804cff1ce9a.js","7330","static/chunks/d3ac728e-c3a6f01f0b83d969.js","4935","static/chunks/e37a0b60-89795b4f1a25ba51.js","4316","static/chunks/ad2866b8-e93ec9749697d02c.js","8779","static/chunks/1892dd0f-5aeaa0a32c91e34b.js","3930","static/chunks/164f4fb6-bfb3067a982328b6.js","3485","static/chunks/ffef0c7e-e3fe45d524576f36.js","5033","static/chunks/2f0b94e8-5f4d2efd9161c0b9.js","6079","static/chunks/363642f4-9b840659bef06edc.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","1627","static/chunks/1627-404397bed5d04637.js","797","static/chunks/797-eb26b6f7871f5ec8.js","3512","static/chunks/3512-32e1cb1eabd7acd8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","5388","static/chunks/5388-9a6952b42afb8f88.js","1483","static/chunks/1483-268c5128c58279f2.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","1081","static/chunks/1081-6591d8b32eeed670.js","8674","static/chunks/8674-3fbb8502171d152b.js","178","static/chunks/178-258a64836712302b.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","6954","static/chunks/6954-79dd11aa887236de.js","3054","static/chunks/3054-14d39e934877243d.js","3018","static/chunks/3018-0fce09eee2c83f26.js","8687","static/chunks/8687-d27c40143b558df8.js","3506","static/chunks/3506-b376488043bba00b.js","6756","static/chunks/6756-f4672f8bcd404058.js","7847","static/chunks/7847-08e3f49e5c7f2dc5.js","8561","static/chunks/8561-58346faf4443a75d.js","7193","static/chunks/7193-00e543c31ebc8405.js","6703","static/chunks/6703-cdd202aa157d4576.js","3907","static/chunks/3907-83496e2e9114c906.js","428","static/chunks/428-0b3f9dcf87d0a5e7.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","5213","static/chunks/5213-b6af6939d11c343e.js","9117","static/chunks/9117-125183ac6cc0d7e3.js","2283","static/chunks/app/application/app/page-d1566bd14e98d8a8.js"],"default"] -c:I[59665,[],"OutletBoundary"] -e:I[74911,[],"AsyncMetadataOutlet"] -10:I[59665,[],"ViewportBoundary"] -12:I[59665,[],"MetadataBoundary"] -13:"$Sreact.suspense" -15:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -:HL["/_next/static/css/9cb37d7d23181e26.css","style"] -:HL["/_next/static/css/879c4fe73b6fcdc7.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","application","app",""],"i":false,"f":[[["",{"children":["application",{"children":["app",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["application",["$","$1","c",{"children":[null,[["$","div",null,{}],["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]]}],{"children":["app",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@a","$@b"]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/9cb37d7d23181e26.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/879c4fe73b6fcdc7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$Lc",null,{"children":["$Ld",["$","$Le",null,{"promise":"$@f"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L10",null,{"children":"$L11"}],null],["$","$L12",null,{"children":["$","div",null,{"hidden":true,"children":["$","$13",null,{"fallback":null,"children":"$L14"}]}]}]]}],false]],"m":"$undefined","G":["$15",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -a:{} -b:"$0:f:0:1:1:props:children:1:props:params" -11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -d:null -f:{"metadata":[],"error":null,"digest":"$undefined"} -14:"$f:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/application/explore/index.html b/packages/derisk-app/src/derisk_app/static/web/application/explore/index.html deleted file mode 100644 index 7814c45b..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/application/explore/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/application/explore/index.txt b/packages/derisk-app/src/derisk_app/static/web/application/explore/index.txt deleted file mode 100644 index 4e18358b..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/application/explore/index.txt +++ /dev/null @@ -1,24 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90894,[],"ClientPageRoot"] -9:I[92509,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","1218","static/chunks/1218-fec170339465af6d.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","6467","static/chunks/6467-a092bcab27dc022a.js","5887","static/chunks/5887-f1d2c509cde5d113.js","1242","static/chunks/1242-041500d33acab3f9.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","4703","static/chunks/app/application/explore/page-69a1171d343080f5.js"],"default"] -c:I[59665,[],"OutletBoundary"] -e:I[74911,[],"AsyncMetadataOutlet"] -10:I[59665,[],"ViewportBoundary"] -12:I[59665,[],"MetadataBoundary"] -13:"$Sreact.suspense" -15:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -:HL["/_next/static/css/00e33852a2a8571b.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","application","explore",""],"i":false,"f":[[["",{"children":["application",{"children":["explore",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["application",["$","$1","c",{"children":[null,[["$","div",null,{}],["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]]}],{"children":["explore",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@a","$@b"]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/00e33852a2a8571b.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$Lc",null,{"children":["$Ld",["$","$Le",null,{"promise":"$@f"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L10",null,{"children":"$L11"}],null],["$","$L12",null,{"children":["$","div",null,{"hidden":true,"children":["$","$13",null,{"fallback":null,"children":"$L14"}]}]}]]}],false]],"m":"$undefined","G":["$15",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -a:{} -b:"$0:f:0:1:1:props:children:1:props:params" -11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -d:null -f:{"metadata":[],"error":null,"digest":"$undefined"} -14:"$f:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/application/index.html b/packages/derisk-app/src/derisk_app/static/web/application/index.html deleted file mode 100644 index 9a1b840d..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/application/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/application/index.txt b/packages/derisk-app/src/derisk_app/static/web/application/index.txt deleted file mode 100644 index bbf91029..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/application/index.txt +++ /dev/null @@ -1,23 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90894,[],"ClientPageRoot"] -9:I[68441,["1218","static/chunks/1218-fec170339465af6d.js","547","static/chunks/app/application/page-850ada48cdbea2a0.js"],"default"] -c:I[59665,[],"OutletBoundary"] -e:I[74911,[],"AsyncMetadataOutlet"] -10:I[59665,[],"ViewportBoundary"] -12:I[59665,[],"MetadataBoundary"] -13:"$Sreact.suspense" -15:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","application",""],"i":false,"f":[[["",{"children":["application",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["application",["$","$1","c",{"children":[null,[["$","div",null,{}],["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@a","$@b"]}],null,["$","$Lc",null,{"children":["$Ld",["$","$Le",null,{"promise":"$@f"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L10",null,{"children":"$L11"}],null],["$","$L12",null,{"children":["$","div",null,{"hidden":true,"children":["$","$13",null,{"fallback":null,"children":"$L14"}]}]}]]}],false]],"m":"$undefined","G":["$15",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -a:{} -b:"$0:f:0:1:1:props:children:1:props:params" -11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -d:null -f:{"metadata":[],"error":null,"digest":"$undefined"} -14:"$f:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/channel/create/index.html b/packages/derisk-app/src/derisk_app/static/web/channel/create/index.html deleted file mode 100644 index 2a2fe8a8..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/channel/create/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/channel/create/index.txt b/packages/derisk-app/src/derisk_app/static/web/channel/create/index.txt deleted file mode 100644 index 4c67cf51..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/channel/create/index.txt +++ /dev/null @@ -1,23 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90894,[],"ClientPageRoot"] -9:I[48109,["1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","1627","static/chunks/1627-404397bed5d04637.js","797","static/chunks/797-eb26b6f7871f5ec8.js","3512","static/chunks/3512-32e1cb1eabd7acd8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6757","static/chunks/6757-3f965144b548d287.js","6124","static/chunks/6124-b174e9fd589a8659.js","5388","static/chunks/5388-9a6952b42afb8f88.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","5887","static/chunks/5887-f1d2c509cde5d113.js","3324","static/chunks/3324-9da8bd872e5c73f7.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","575","static/chunks/app/channel/create/page-2a18cf9ec575ab7e.js"],"default"] -c:I[59665,[],"OutletBoundary"] -e:I[74911,[],"AsyncMetadataOutlet"] -10:I[59665,[],"ViewportBoundary"] -12:I[59665,[],"MetadataBoundary"] -13:"$Sreact.suspense" -15:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","channel","create",""],"i":false,"f":[[["",{"children":["channel",{"children":["create",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["channel",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["create",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@a","$@b"]}],null,["$","$Lc",null,{"children":["$Ld",["$","$Le",null,{"promise":"$@f"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L10",null,{"children":"$L11"}],null],["$","$L12",null,{"children":["$","div",null,{"hidden":true,"children":["$","$13",null,{"fallback":null,"children":"$L14"}]}]}]]}],false]],"m":"$undefined","G":["$15",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -a:{} -b:"$0:f:0:1:1:props:children:1:props:params" -11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -d:null -f:{"metadata":[],"error":null,"digest":"$undefined"} -14:"$f:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/channel/edit/index.html b/packages/derisk-app/src/derisk_app/static/web/channel/edit/index.html deleted file mode 100644 index 968fe08d..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/channel/edit/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/channel/edit/index.txt b/packages/derisk-app/src/derisk_app/static/web/channel/edit/index.txt deleted file mode 100644 index 0ac51a42..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/channel/edit/index.txt +++ /dev/null @@ -1,23 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90894,[],"ClientPageRoot"] -9:I[75097,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","1627","static/chunks/1627-404397bed5d04637.js","797","static/chunks/797-eb26b6f7871f5ec8.js","3512","static/chunks/3512-32e1cb1eabd7acd8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6757","static/chunks/6757-3f965144b548d287.js","6124","static/chunks/6124-b174e9fd589a8659.js","5388","static/chunks/5388-9a6952b42afb8f88.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","5887","static/chunks/5887-f1d2c509cde5d113.js","3324","static/chunks/3324-9da8bd872e5c73f7.js","8647","static/chunks/8647-2d41973196208ada.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","5243","static/chunks/app/channel/edit/page-08a981f830bb5a77.js"],"default"] -c:I[59665,[],"OutletBoundary"] -e:I[74911,[],"AsyncMetadataOutlet"] -10:I[59665,[],"ViewportBoundary"] -12:I[59665,[],"MetadataBoundary"] -13:"$Sreact.suspense" -15:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","channel","edit",""],"i":false,"f":[[["",{"children":["channel",{"children":["edit",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["channel",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["edit",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@a","$@b"]}],null,["$","$Lc",null,{"children":["$Ld",["$","$Le",null,{"promise":"$@f"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L10",null,{"children":"$L11"}],null],["$","$L12",null,{"children":["$","div",null,{"hidden":true,"children":["$","$13",null,{"fallback":null,"children":"$L14"}]}]}]]}],false]],"m":"$undefined","G":["$15",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -a:{} -b:"$0:f:0:1:1:props:children:1:props:params" -11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -d:null -f:{"metadata":[],"error":null,"digest":"$undefined"} -14:"$f:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/channel/index.html b/packages/derisk-app/src/derisk_app/static/web/channel/index.html deleted file mode 100644 index 9a5abe1c..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/channel/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/channel/index.txt b/packages/derisk-app/src/derisk_app/static/web/channel/index.txt deleted file mode 100644 index c304dfd6..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/channel/index.txt +++ /dev/null @@ -1,23 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90894,[],"ClientPageRoot"] -9:I[86052,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","1627","static/chunks/1627-404397bed5d04637.js","797","static/chunks/797-eb26b6f7871f5ec8.js","3512","static/chunks/3512-32e1cb1eabd7acd8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6124","static/chunks/6124-b174e9fd589a8659.js","1483","static/chunks/1483-268c5128c58279f2.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","1081","static/chunks/1081-6591d8b32eeed670.js","8674","static/chunks/8674-3fbb8502171d152b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","3324","static/chunks/3324-9da8bd872e5c73f7.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","1026","static/chunks/1026-0d948f937ff99179.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","6778","static/chunks/app/channel/page-6d30432dff60c32d.js"],"default"] -c:I[59665,[],"OutletBoundary"] -e:I[74911,[],"AsyncMetadataOutlet"] -10:I[59665,[],"ViewportBoundary"] -12:I[59665,[],"MetadataBoundary"] -13:"$Sreact.suspense" -15:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","channel",""],"i":false,"f":[[["",{"children":["channel",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["channel",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@a","$@b"]}],null,["$","$Lc",null,{"children":["$Ld",["$","$Le",null,{"promise":"$@f"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L10",null,{"children":"$L11"}],null],["$","$L12",null,{"children":["$","div",null,{"hidden":true,"children":["$","$13",null,{"fallback":null,"children":"$L14"}]}]}]]}],false]],"m":"$undefined","G":["$15",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -a:{} -b:"$0:f:0:1:1:props:children:1:props:params" -11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -d:null -f:{"metadata":[],"error":null,"digest":"$undefined"} -14:"$f:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/chat/index.html b/packages/derisk-app/src/derisk_app/static/web/chat/index.html deleted file mode 100644 index 86136188..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/chat/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/chat/index.txt b/packages/derisk-app/src/derisk_app/static/web/chat/index.txt deleted file mode 100644 index 8edad406..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/chat/index.txt +++ /dev/null @@ -1,24 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90894,[],"ClientPageRoot"] -9:I[38566,["750","static/chunks/afb4954d-bcbf957cc6187b79.js","240","static/chunks/c36f3faa-ad06f8e39d3f01eb.js","5600","static/chunks/05f6971a-37fe2a1a50eb9be0.js","2826","static/chunks/36c7393a-ef231804cff1ce9a.js","7330","static/chunks/d3ac728e-c3a6f01f0b83d969.js","4935","static/chunks/e37a0b60-89795b4f1a25ba51.js","4316","static/chunks/ad2866b8-e93ec9749697d02c.js","8779","static/chunks/1892dd0f-5aeaa0a32c91e34b.js","3930","static/chunks/164f4fb6-bfb3067a982328b6.js","3485","static/chunks/ffef0c7e-e3fe45d524576f36.js","5033","static/chunks/2f0b94e8-5f4d2efd9161c0b9.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","1627","static/chunks/1627-404397bed5d04637.js","797","static/chunks/797-eb26b6f7871f5ec8.js","3512","static/chunks/3512-32e1cb1eabd7acd8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6124","static/chunks/6124-b174e9fd589a8659.js","5388","static/chunks/5388-9a6952b42afb8f88.js","1483","static/chunks/1483-268c5128c58279f2.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","1081","static/chunks/1081-6591d8b32eeed670.js","8674","static/chunks/8674-3fbb8502171d152b.js","178","static/chunks/178-258a64836712302b.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","6954","static/chunks/6954-79dd11aa887236de.js","3054","static/chunks/3054-14d39e934877243d.js","3018","static/chunks/3018-0fce09eee2c83f26.js","8687","static/chunks/8687-d27c40143b558df8.js","3506","static/chunks/3506-b376488043bba00b.js","6756","static/chunks/6756-f4672f8bcd404058.js","7847","static/chunks/7847-08e3f49e5c7f2dc5.js","8561","static/chunks/8561-58346faf4443a75d.js","6703","static/chunks/6703-cdd202aa157d4576.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","5213","static/chunks/5213-b6af6939d11c343e.js","9117","static/chunks/9117-125183ac6cc0d7e3.js","6779","static/chunks/6779-1f7d1c620d8bbc3c.js","8457","static/chunks/app/chat/page-570839901707a0a1.js"],"default"] -c:I[59665,[],"OutletBoundary"] -e:I[74911,[],"AsyncMetadataOutlet"] -10:I[59665,[],"ViewportBoundary"] -12:I[59665,[],"MetadataBoundary"] -13:"$Sreact.suspense" -15:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -:HL["/_next/static/css/879c4fe73b6fcdc7.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","chat",""],"i":false,"f":[[["",{"children":["chat",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["chat",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@a","$@b"]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/879c4fe73b6fcdc7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$Lc",null,{"children":["$Ld",["$","$Le",null,{"promise":"$@f"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L10",null,{"children":"$L11"}],null],["$","$L12",null,{"children":["$","div",null,{"hidden":true,"children":["$","$13",null,{"fallback":null,"children":"$L14"}]}]}]]}],false]],"m":"$undefined","G":["$15",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -a:{} -b:"$0:f:0:1:1:props:children:1:props:params" -11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -d:null -f:{"metadata":[],"error":null,"digest":"$undefined"} -14:"$f:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/cron/create/index.html b/packages/derisk-app/src/derisk_app/static/web/cron/create/index.html deleted file mode 100644 index 985ea629..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/cron/create/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/cron/create/index.txt b/packages/derisk-app/src/derisk_app/static/web/cron/create/index.txt deleted file mode 100644 index ea9217c2..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/cron/create/index.txt +++ /dev/null @@ -1,23 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90894,[],"ClientPageRoot"] -9:I[82822,["1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","1627","static/chunks/1627-404397bed5d04637.js","3512","static/chunks/3512-32e1cb1eabd7acd8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6757","static/chunks/6757-3f965144b548d287.js","6124","static/chunks/6124-b174e9fd589a8659.js","5388","static/chunks/5388-9a6952b42afb8f88.js","5887","static/chunks/5887-f1d2c509cde5d113.js","3324","static/chunks/3324-9da8bd872e5c73f7.js","6174","static/chunks/6174-fd69108a416bbd09.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","3556","static/chunks/app/cron/create/page-b42626c2dd5beb18.js"],"default"] -c:I[59665,[],"OutletBoundary"] -e:I[74911,[],"AsyncMetadataOutlet"] -10:I[59665,[],"ViewportBoundary"] -12:I[59665,[],"MetadataBoundary"] -13:"$Sreact.suspense" -15:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","cron","create",""],"i":false,"f":[[["",{"children":["cron",{"children":["create",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["cron",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["create",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@a","$@b"]}],null,["$","$Lc",null,{"children":["$Ld",["$","$Le",null,{"promise":"$@f"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L10",null,{"children":"$L11"}],null],["$","$L12",null,{"children":["$","div",null,{"hidden":true,"children":["$","$13",null,{"fallback":null,"children":"$L14"}]}]}]]}],false]],"m":"$undefined","G":["$15",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -a:{} -b:"$0:f:0:1:1:props:children:1:props:params" -11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -d:null -f:{"metadata":[],"error":null,"digest":"$undefined"} -14:"$f:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/cron/edit/index.html b/packages/derisk-app/src/derisk_app/static/web/cron/edit/index.html deleted file mode 100644 index b3c8de73..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/cron/edit/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/cron/edit/index.txt b/packages/derisk-app/src/derisk_app/static/web/cron/edit/index.txt deleted file mode 100644 index 4b7ad764..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/cron/edit/index.txt +++ /dev/null @@ -1,23 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90894,[],"ClientPageRoot"] -9:I[36286,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","1627","static/chunks/1627-404397bed5d04637.js","797","static/chunks/797-eb26b6f7871f5ec8.js","3512","static/chunks/3512-32e1cb1eabd7acd8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6124","static/chunks/6124-b174e9fd589a8659.js","5388","static/chunks/5388-9a6952b42afb8f88.js","5887","static/chunks/5887-f1d2c509cde5d113.js","3324","static/chunks/3324-9da8bd872e5c73f7.js","6174","static/chunks/6174-fd69108a416bbd09.js","1274","static/chunks/1274-e72d12b4aa1a03a7.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","780","static/chunks/app/cron/edit/page-99e7908073e265b4.js"],"default"] -c:I[59665,[],"OutletBoundary"] -e:I[74911,[],"AsyncMetadataOutlet"] -10:I[59665,[],"ViewportBoundary"] -12:I[59665,[],"MetadataBoundary"] -13:"$Sreact.suspense" -15:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","cron","edit",""],"i":false,"f":[[["",{"children":["cron",{"children":["edit",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["cron",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["edit",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@a","$@b"]}],null,["$","$Lc",null,{"children":["$Ld",["$","$Le",null,{"promise":"$@f"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L10",null,{"children":"$L11"}],null],["$","$L12",null,{"children":["$","div",null,{"hidden":true,"children":["$","$13",null,{"fallback":null,"children":"$L14"}]}]}]]}],false]],"m":"$undefined","G":["$15",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -a:{} -b:"$0:f:0:1:1:props:children:1:props:params" -11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -d:null -f:{"metadata":[],"error":null,"digest":"$undefined"} -14:"$f:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/cron/index.html b/packages/derisk-app/src/derisk_app/static/web/cron/index.html deleted file mode 100644 index ece3cf77..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/cron/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/cron/index.txt b/packages/derisk-app/src/derisk_app/static/web/cron/index.txt deleted file mode 100644 index 1ac7a39a..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/cron/index.txt +++ /dev/null @@ -1,23 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90894,[],"ClientPageRoot"] -9:I[19221,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","1627","static/chunks/1627-404397bed5d04637.js","797","static/chunks/797-eb26b6f7871f5ec8.js","3512","static/chunks/3512-32e1cb1eabd7acd8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6124","static/chunks/6124-b174e9fd589a8659.js","1483","static/chunks/1483-268c5128c58279f2.js","462","static/chunks/462-ddea8e663bcfddbb.js","1081","static/chunks/1081-6591d8b32eeed670.js","8674","static/chunks/8674-3fbb8502171d152b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","3324","static/chunks/3324-9da8bd872e5c73f7.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","9166","static/chunks/9166-f86ed57354cc97f0.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","9271","static/chunks/app/cron/page-5703ccc02edf491e.js"],"default"] -c:I[59665,[],"OutletBoundary"] -e:I[74911,[],"AsyncMetadataOutlet"] -10:I[59665,[],"ViewportBoundary"] -12:I[59665,[],"MetadataBoundary"] -13:"$Sreact.suspense" -15:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","cron",""],"i":false,"f":[[["",{"children":["cron",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["cron",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@a","$@b"]}],null,["$","$Lc",null,{"children":["$Ld",["$","$Le",null,{"promise":"$@f"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L10",null,{"children":"$L11"}],null],["$","$L12",null,{"children":["$","div",null,{"hidden":true,"children":["$","$13",null,{"fallback":null,"children":"$L14"}]}]}]]}],false]],"m":"$undefined","G":["$15",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -a:{} -b:"$0:f:0:1:1:props:children:1:props:params" -11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -d:null -f:{"metadata":[],"error":null,"digest":"$undefined"} -14:"$f:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/empty.png b/packages/derisk-app/src/derisk_app/static/web/empty.png deleted file mode 100644 index afa330d6..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/empty.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/favicon.ico b/packages/derisk-app/src/derisk_app/static/web/favicon.ico deleted file mode 100644 index f4820d0e..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/favicon.ico and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/file.svg b/packages/derisk-app/src/derisk_app/static/web/file.svg deleted file mode 100644 index 004145cd..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/file.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/globe.svg b/packages/derisk-app/src/derisk_app/static/web/globe.svg deleted file mode 100644 index 567f17b0..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/globe.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/huggingface_logo.svg b/packages/derisk-app/src/derisk_app/static/web/huggingface_logo.svg deleted file mode 100644 index ef36d62b..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/huggingface_logo.svg +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - - - - - - - - - - diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/access.png b/packages/derisk-app/src/derisk_app/static/web/icons/access.png deleted file mode 100644 index 0c86389e..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/access.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/agent.svg b/packages/derisk-app/src/derisk_app/static/web/icons/agent.svg deleted file mode 100644 index 10cb6dd5..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/icons/agent.svg +++ /dev/null @@ -1,18 +0,0 @@ - - Agent-暗 - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/agent_blue.png b/packages/derisk-app/src/derisk_app/static/web/icons/agent_blue.png deleted file mode 100644 index 505d6291..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/agent_blue.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/app/auto_plan.png b/packages/derisk-app/src/derisk_app/static/web/icons/app/auto_plan.png deleted file mode 100644 index 7743121c..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/app/auto_plan.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/app/awel_layout.png b/packages/derisk-app/src/derisk_app/static/web/icons/app/awel_layout.png deleted file mode 100644 index 5b6aa8f7..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/app/awel_layout.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/app/native_app.png b/packages/derisk-app/src/derisk_app/static/web/icons/app/native_app.png deleted file mode 100644 index ea5631e2..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/app/native_app.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/app/single_agent.png b/packages/derisk-app/src/derisk_app/static/web/icons/app/single_agent.png deleted file mode 100644 index e5b03c80..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/app/single_agent.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/bg-agent.svg b/packages/derisk-app/src/derisk_app/static/web/icons/bg-agent.svg deleted file mode 100644 index c3022282..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/icons/bg-agent.svg +++ /dev/null @@ -1,62 +0,0 @@ - - 编组 131 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/bg-knowledge.svg b/packages/derisk-app/src/derisk_app/static/web/icons/bg-knowledge.svg deleted file mode 100644 index 9548d7bb..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/icons/bg-knowledge.svg +++ /dev/null @@ -1,57 +0,0 @@ - - 编组 131 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/bg-skill.svg b/packages/derisk-app/src/derisk_app/static/web/icons/bg-skill.svg deleted file mode 100644 index 3b1d2133..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/icons/bg-skill.svg +++ /dev/null @@ -1,123 +0,0 @@ - - 编组 30 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/bg-variable.svg b/packages/derisk-app/src/derisk_app/static/web/icons/bg-variable.svg deleted file mode 100644 index 1541c9d2..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/icons/bg-variable.svg +++ /dev/null @@ -1,45 +0,0 @@ - - 编组 131 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/cassandra.png b/packages/derisk-app/src/derisk_app/static/web/icons/cassandra.png deleted file mode 100644 index 4232c0cd..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/cassandra.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/channel/dingtalk.svg b/packages/derisk-app/src/derisk_app/static/web/icons/channel/dingtalk.svg deleted file mode 100644 index 14b874e5..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/icons/channel/dingtalk.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/channel/feishu.svg b/packages/derisk-app/src/derisk_app/static/web/icons/channel/feishu.svg deleted file mode 100644 index 2848f589..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/icons/channel/feishu.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/chat/excel.png b/packages/derisk-app/src/derisk_app/static/web/icons/chat/excel.png deleted file mode 100644 index 5770e1a4..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/chat/excel.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/chat/other.png b/packages/derisk-app/src/derisk_app/static/web/icons/chat/other.png deleted file mode 100644 index 45117fae..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/chat/other.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/chat/pdf.png b/packages/derisk-app/src/derisk_app/static/web/icons/chat/pdf.png deleted file mode 100644 index 45662340..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/chat/pdf.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/chat/word.png b/packages/derisk-app/src/derisk_app/static/web/icons/chat/word.png deleted file mode 100644 index 95373779..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/chat/word.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/clickhouse.png b/packages/derisk-app/src/derisk_app/static/web/icons/clickhouse.png deleted file mode 100644 index 62a9eed0..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/clickhouse.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/collapsed.svg b/packages/derisk-app/src/derisk_app/static/web/icons/collapsed.svg deleted file mode 100644 index 4981918a..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/icons/collapsed.svg +++ /dev/null @@ -1,13 +0,0 @@ - - indent - - - - - - - - - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/colorful-chat.png b/packages/derisk-app/src/derisk_app/static/web/icons/colorful-chat.png deleted file mode 100644 index 71de2a60..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/colorful-chat.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/colorful-dashboard.png b/packages/derisk-app/src/derisk_app/static/web/icons/colorful-dashboard.png deleted file mode 100644 index 777dec77..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/colorful-dashboard.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/colorful-data.png b/packages/derisk-app/src/derisk_app/static/web/icons/colorful-data.png deleted file mode 100644 index 7969699c..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/colorful-data.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/colorful-db.png b/packages/derisk-app/src/derisk_app/static/web/icons/colorful-db.png deleted file mode 100644 index 6d5652fb..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/colorful-db.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/colorful-doc.png b/packages/derisk-app/src/derisk_app/static/web/icons/colorful-doc.png deleted file mode 100644 index 11aae28c..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/colorful-doc.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/colorful-excel.png b/packages/derisk-app/src/derisk_app/static/web/icons/colorful-excel.png deleted file mode 100644 index 4051f88d..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/colorful-excel.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/colorful-plugin.png b/packages/derisk-app/src/derisk_app/static/web/icons/colorful-plugin.png deleted file mode 100644 index 3a0a41fb..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/colorful-plugin.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/couchbase.png b/packages/derisk-app/src/derisk_app/static/web/icons/couchbase.png deleted file mode 100644 index d2a8b1c5..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/couchbase.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/db.png b/packages/derisk-app/src/derisk_app/static/web/icons/db.png deleted file mode 100644 index 25686f8d..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/db.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/db2.png b/packages/derisk-app/src/derisk_app/static/web/icons/db2.png deleted file mode 100644 index 246bc16b..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/db2.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/doris.png b/packages/derisk-app/src/derisk_app/static/web/icons/doris.png deleted file mode 100644 index 1c0fa86c..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/doris.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/duckdb.png b/packages/derisk-app/src/derisk_app/static/web/icons/duckdb.png deleted file mode 100644 index 8d89d749..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/duckdb.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/english.png b/packages/derisk-app/src/derisk_app/static/web/icons/english.png deleted file mode 100644 index 3ab3f9a4..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/english.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/hbase.png b/packages/derisk-app/src/derisk_app/static/web/icons/hbase.png deleted file mode 100644 index d2b9ca34..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/hbase.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/hive.png b/packages/derisk-app/src/derisk_app/static/web/icons/hive.png deleted file mode 100644 index faf05f13..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/hive.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/knowledge.png b/packages/derisk-app/src/derisk_app/static/web/icons/knowledge.png deleted file mode 100644 index eb30f367..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/knowledge.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/knowledge.svg b/packages/derisk-app/src/derisk_app/static/web/icons/knowledge.svg deleted file mode 100644 index 472b14a1..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/icons/knowledge.svg +++ /dev/null @@ -1,14 +0,0 @@ - - 形状结合 - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/knowledge_blue.svg b/packages/derisk-app/src/derisk_app/static/web/icons/knowledge_blue.svg deleted file mode 100644 index 3945219e..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/icons/knowledge_blue.svg +++ /dev/null @@ -1,19 +0,0 @@ - - 总结 - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/konwledge_icon.png b/packages/derisk-app/src/derisk_app/static/web/icons/konwledge_icon.png deleted file mode 100644 index 379c561e..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/konwledge_icon.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/loading.png b/packages/derisk-app/src/derisk_app/static/web/icons/loading.png deleted file mode 100644 index 156db60d..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/loading.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/loading1.gif b/packages/derisk-app/src/derisk_app/static/web/icons/loading1.gif deleted file mode 100644 index f7d52393..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/loading1.gif and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/mongodb.png b/packages/derisk-app/src/derisk_app/static/web/icons/mongodb.png deleted file mode 100644 index 9192d815..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/mongodb.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/mssql.png b/packages/derisk-app/src/derisk_app/static/web/icons/mssql.png deleted file mode 100644 index 0f480449..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/mssql.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/mysql.png b/packages/derisk-app/src/derisk_app/static/web/icons/mysql.png deleted file mode 100644 index dbd01c41..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/mysql.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/node/default_node_icon.svg b/packages/derisk-app/src/derisk_app/static/web/icons/node/default_node_icon.svg deleted file mode 100644 index 6b9d9f55..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/icons/node/default_node_icon.svg +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/node/http_trigger.svg b/packages/derisk-app/src/derisk_app/static/web/icons/node/http_trigger.svg deleted file mode 100644 index 6b9d9f55..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/icons/node/http_trigger.svg +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/node/llm_operator.svg b/packages/derisk-app/src/derisk_app/static/web/icons/node/llm_operator.svg deleted file mode 100644 index 6b9d9f55..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/icons/node/llm_operator.svg +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/node/openai_llm_client.svg b/packages/derisk-app/src/derisk_app/static/web/icons/node/openai_llm_client.svg deleted file mode 100644 index 6b9d9f55..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/icons/node/openai_llm_client.svg +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/node/vis.png b/packages/derisk-app/src/derisk_app/static/web/icons/node/vis.png deleted file mode 100644 index 0af2ca11..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/node/vis.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/oceanbase.png b/packages/derisk-app/src/derisk_app/static/web/icons/oceanbase.png deleted file mode 100644 index 9d43ce82..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/oceanbase.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/odc.png b/packages/derisk-app/src/derisk_app/static/web/icons/odc.png deleted file mode 100644 index 387e721a..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/odc.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/oracle.png b/packages/derisk-app/src/derisk_app/static/web/icons/oracle.png deleted file mode 100644 index f416d15f..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/oracle.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/package.png b/packages/derisk-app/src/derisk_app/static/web/icons/package.png deleted file mode 100644 index fba703fc..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/package.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/planning.png b/packages/derisk-app/src/derisk_app/static/web/icons/planning.png deleted file mode 100644 index 899a6032..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/planning.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/postgresql.png b/packages/derisk-app/src/derisk_app/static/web/icons/postgresql.png deleted file mode 100644 index b47a1619..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/postgresql.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/redis.png b/packages/derisk-app/src/derisk_app/static/web/icons/redis.png deleted file mode 100644 index 3ba1f826..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/redis.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/report.svg b/packages/derisk-app/src/derisk_app/static/web/icons/report.svg deleted file mode 100644 index 61174528..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/icons/report.svg +++ /dev/null @@ -1,21 +0,0 @@ - - 编组 3 - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/send.png b/packages/derisk-app/src/derisk_app/static/web/icons/send.png deleted file mode 100644 index 501cdb37..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/send.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/skill.svg b/packages/derisk-app/src/derisk_app/static/web/icons/skill.svg deleted file mode 100644 index a4aa729c..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/icons/skill.svg +++ /dev/null @@ -1,21 +0,0 @@ - - 组织架构 - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/skill_bule.svg b/packages/derisk-app/src/derisk_app/static/web/icons/skill_bule.svg deleted file mode 100644 index 91bd047a..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/icons/skill_bule.svg +++ /dev/null @@ -1,23 +0,0 @@ - - 组织架构 - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/spark.png b/packages/derisk-app/src/derisk_app/static/web/icons/spark.png deleted file mode 100644 index 12dee3dc..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/spark.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/sqlite.png b/packages/derisk-app/src/derisk_app/static/web/icons/sqlite.png deleted file mode 100644 index 307c6c4d..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/sqlite.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/starrocks.png b/packages/derisk-app/src/derisk_app/static/web/icons/starrocks.png deleted file mode 100644 index 52395bd3..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/starrocks.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/thinking.svg b/packages/derisk-app/src/derisk_app/static/web/icons/thinking.svg deleted file mode 100644 index 72797dc1..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/icons/thinking.svg +++ /dev/null @@ -1,32 +0,0 @@ - - - B1F98B67-8B10-4391-8B55-FC22474A6826 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/tool.png b/packages/derisk-app/src/derisk_app/static/web/icons/tool.png deleted file mode 100644 index 55ca0d93..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/tool.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/tool_default.svg b/packages/derisk-app/src/derisk_app/static/web/icons/tool_default.svg deleted file mode 100644 index ed0f41d2..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/icons/tool_default.svg +++ /dev/null @@ -1,25 +0,0 @@ - - - 编组 22 - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/tugraph.png b/packages/derisk-app/src/derisk_app/static/web/icons/tugraph.png deleted file mode 100644 index f4808015..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/tugraph.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/uncollapsed.svg b/packages/derisk-app/src/derisk_app/static/web/icons/uncollapsed.svg deleted file mode 100644 index 4d4ec9a4..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/icons/uncollapsed.svg +++ /dev/null @@ -1,13 +0,0 @@ - - indent - - - - - - - - - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/variable.svg b/packages/derisk-app/src/derisk_app/static/web/icons/variable.svg deleted file mode 100644 index b989f517..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/icons/variable.svg +++ /dev/null @@ -1,20 +0,0 @@ - - 编组 22 - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/variable_blue.png b/packages/derisk-app/src/derisk_app/static/web/icons/variable_blue.png deleted file mode 100644 index 7e8b88b2..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/variable_blue.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/vertica.png b/packages/derisk-app/src/derisk_app/static/web/icons/vertica.png deleted file mode 100644 index f49f2cb8..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/vertica.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/icons/zh.png b/packages/derisk-app/src/derisk_app/static/web/icons/zh.png deleted file mode 100644 index 848c53b2..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/icons/zh.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/index.html b/packages/derisk-app/src/derisk_app/static/web/index.html deleted file mode 100644 index 0d48a2c5..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/index.txt b/packages/derisk-app/src/derisk_app/static/web/index.txt deleted file mode 100644 index dd354862..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/index.txt +++ /dev/null @@ -1,23 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90894,[],"ClientPageRoot"] -9:I[33792,["1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","1627","static/chunks/1627-404397bed5d04637.js","797","static/chunks/797-eb26b6f7871f5ec8.js","3512","static/chunks/3512-32e1cb1eabd7acd8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","1483","static/chunks/1483-268c5128c58279f2.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","8561","static/chunks/8561-58346faf4443a75d.js","2467","static/chunks/2467-099b32ab360be0c4.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","6779","static/chunks/6779-1f7d1c620d8bbc3c.js","8974","static/chunks/app/page-c72524a4d710ae92.js"],"default"] -c:I[59665,[],"OutletBoundary"] -e:I[74911,[],"AsyncMetadataOutlet"] -10:I[59665,[],"ViewportBoundary"] -12:I[59665,[],"MetadataBoundary"] -13:"$Sreact.suspense" -15:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["",""],"i":false,"f":[[["",{"children":["__PAGE__",{}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@a","$@b"]}],null,["$","$Lc",null,{"children":["$Ld",["$","$Le",null,{"promise":"$@f"}]]}]]}],{},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L10",null,{"children":"$L11"}],null],["$","$L12",null,{"children":["$","div",null,{"hidden":true,"children":["$","$13",null,{"fallback":null,"children":"$L14"}]}]}]]}],false]],"m":"$undefined","G":["$15",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -a:{} -b:"$0:f:0:1:1:props:children:1:props:params" -11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -d:null -f:{"metadata":[],"error":null,"digest":"$undefined"} -14:"$f:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/knowledge/chunk/index.html b/packages/derisk-app/src/derisk_app/static/web/knowledge/chunk/index.html deleted file mode 100644 index 8953ecf1..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/knowledge/chunk/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/knowledge/chunk/index.txt b/packages/derisk-app/src/derisk_app/static/web/knowledge/chunk/index.txt deleted file mode 100644 index 53dd177b..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/knowledge/chunk/index.txt +++ /dev/null @@ -1,24 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90894,[],"ClientPageRoot"] -9:I[43498,["750","static/chunks/afb4954d-bcbf957cc6187b79.js","240","static/chunks/c36f3faa-ad06f8e39d3f01eb.js","5600","static/chunks/05f6971a-37fe2a1a50eb9be0.js","2826","static/chunks/36c7393a-ef231804cff1ce9a.js","7330","static/chunks/d3ac728e-c3a6f01f0b83d969.js","4935","static/chunks/e37a0b60-89795b4f1a25ba51.js","4316","static/chunks/ad2866b8-e93ec9749697d02c.js","8779","static/chunks/1892dd0f-5aeaa0a32c91e34b.js","3930","static/chunks/164f4fb6-bfb3067a982328b6.js","3485","static/chunks/ffef0c7e-e3fe45d524576f36.js","5033","static/chunks/2f0b94e8-5f4d2efd9161c0b9.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","1627","static/chunks/1627-404397bed5d04637.js","797","static/chunks/797-eb26b6f7871f5ec8.js","3512","static/chunks/3512-32e1cb1eabd7acd8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6124","static/chunks/6124-b174e9fd589a8659.js","5388","static/chunks/5388-9a6952b42afb8f88.js","1483","static/chunks/1483-268c5128c58279f2.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","1081","static/chunks/1081-6591d8b32eeed670.js","8674","static/chunks/8674-3fbb8502171d152b.js","178","static/chunks/178-258a64836712302b.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","6954","static/chunks/6954-79dd11aa887236de.js","3054","static/chunks/3054-14d39e934877243d.js","3018","static/chunks/3018-0fce09eee2c83f26.js","8687","static/chunks/8687-d27c40143b558df8.js","3506","static/chunks/3506-b376488043bba00b.js","6756","static/chunks/6756-f4672f8bcd404058.js","7847","static/chunks/7847-08e3f49e5c7f2dc5.js","4600","static/chunks/4600-4c8d31d2092039db.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","5213","static/chunks/5213-b6af6939d11c343e.js","4751","static/chunks/app/knowledge/chunk/page-df3098c3ec72514f.js"],"default"] -c:I[59665,[],"OutletBoundary"] -e:I[74911,[],"AsyncMetadataOutlet"] -10:I[59665,[],"ViewportBoundary"] -12:I[59665,[],"MetadataBoundary"] -13:"$Sreact.suspense" -15:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -:HL["/_next/static/css/879c4fe73b6fcdc7.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","knowledge","chunk",""],"i":false,"f":[[["",{"children":["knowledge",{"children":["chunk",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["knowledge",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["chunk",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@a","$@b"]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/879c4fe73b6fcdc7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$Lc",null,{"children":["$Ld",["$","$Le",null,{"promise":"$@f"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L10",null,{"children":"$L11"}],null],["$","$L12",null,{"children":["$","div",null,{"hidden":true,"children":["$","$13",null,{"fallback":null,"children":"$L14"}]}]}]]}],false]],"m":"$undefined","G":["$15",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -a:{} -b:"$0:f:0:1:1:props:children:1:props:params" -11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -d:null -f:{"metadata":[],"error":null,"digest":"$undefined"} -14:"$f:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/knowledge/index.html b/packages/derisk-app/src/derisk_app/static/web/knowledge/index.html deleted file mode 100644 index f6938656..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/knowledge/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/knowledge/index.txt b/packages/derisk-app/src/derisk_app/static/web/knowledge/index.txt deleted file mode 100644 index ba65981d..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/knowledge/index.txt +++ /dev/null @@ -1,25 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90894,[],"ClientPageRoot"] -9:I[43539,["586","static/chunks/13b76428-a8cda74c313da51b.js","750","static/chunks/afb4954d-bcbf957cc6187b79.js","240","static/chunks/c36f3faa-ad06f8e39d3f01eb.js","5600","static/chunks/05f6971a-37fe2a1a50eb9be0.js","2826","static/chunks/36c7393a-ef231804cff1ce9a.js","7330","static/chunks/d3ac728e-c3a6f01f0b83d969.js","4935","static/chunks/e37a0b60-89795b4f1a25ba51.js","4316","static/chunks/ad2866b8-e93ec9749697d02c.js","8779","static/chunks/1892dd0f-5aeaa0a32c91e34b.js","3930","static/chunks/164f4fb6-bfb3067a982328b6.js","3485","static/chunks/ffef0c7e-e3fe45d524576f36.js","5033","static/chunks/2f0b94e8-5f4d2efd9161c0b9.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","1627","static/chunks/1627-404397bed5d04637.js","797","static/chunks/797-eb26b6f7871f5ec8.js","3512","static/chunks/3512-32e1cb1eabd7acd8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","5388","static/chunks/5388-9a6952b42afb8f88.js","1483","static/chunks/1483-268c5128c58279f2.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","1081","static/chunks/1081-6591d8b32eeed670.js","8674","static/chunks/8674-3fbb8502171d152b.js","178","static/chunks/178-258a64836712302b.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","6954","static/chunks/6954-79dd11aa887236de.js","3054","static/chunks/3054-14d39e934877243d.js","3018","static/chunks/3018-0fce09eee2c83f26.js","8687","static/chunks/8687-d27c40143b558df8.js","3506","static/chunks/3506-b376488043bba00b.js","6756","static/chunks/6756-f4672f8bcd404058.js","6174","static/chunks/6174-fd69108a416bbd09.js","7847","static/chunks/7847-08e3f49e5c7f2dc5.js","3907","static/chunks/3907-83496e2e9114c906.js","1156","static/chunks/1156-5bd54c6ebcd30da7.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","5213","static/chunks/5213-b6af6939d11c343e.js","1049","static/chunks/app/knowledge/page-26299e1d2052b658.js"],"default"] -c:I[59665,[],"OutletBoundary"] -e:I[74911,[],"AsyncMetadataOutlet"] -10:I[59665,[],"ViewportBoundary"] -12:I[59665,[],"MetadataBoundary"] -13:"$Sreact.suspense" -15:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -:HL["/_next/static/css/b7f0cdb4d0556bb6.css","style"] -:HL["/_next/static/css/879c4fe73b6fcdc7.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","knowledge",""],"i":false,"f":[[["",{"children":["knowledge",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["knowledge",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@a","$@b"]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/b7f0cdb4d0556bb6.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/879c4fe73b6fcdc7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$Lc",null,{"children":["$Ld",["$","$Le",null,{"promise":"$@f"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L10",null,{"children":"$L11"}],null],["$","$L12",null,{"children":["$","div",null,{"hidden":true,"children":["$","$13",null,{"fallback":null,"children":"$L14"}]}]}]]}],false]],"m":"$undefined","G":["$15",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -a:{} -b:"$0:f:0:1:1:props:children:1:props:params" -11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -d:null -f:{"metadata":[],"error":null,"digest":"$undefined"} -14:"$f:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/logo_s_latest.png b/packages/derisk-app/src/derisk_app/static/web/logo_s_latest.png deleted file mode 100644 index f18b73e0..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/logo_s_latest.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/logo_zh_latest.png b/packages/derisk-app/src/derisk_app/static/web/logo_zh_latest.png deleted file mode 100644 index d581df60..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/logo_zh_latest.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/mcp/detail/index.html b/packages/derisk-app/src/derisk_app/static/web/mcp/detail/index.html deleted file mode 100644 index 160f0fa3..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/mcp/detail/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/mcp/detail/index.txt b/packages/derisk-app/src/derisk_app/static/web/mcp/detail/index.txt deleted file mode 100644 index 2d63415f..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/mcp/detail/index.txt +++ /dev/null @@ -1,24 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90894,[],"ClientPageRoot"] -9:I[75305,["1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","5388","static/chunks/5388-9a6952b42afb8f88.js","5887","static/chunks/5887-f1d2c509cde5d113.js","6756","static/chunks/6756-f4672f8bcd404058.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","3963","static/chunks/app/mcp/detail/page-098466322c2c86e5.js"],"default"] -c:I[59665,[],"OutletBoundary"] -e:I[74911,[],"AsyncMetadataOutlet"] -10:I[59665,[],"ViewportBoundary"] -12:I[59665,[],"MetadataBoundary"] -13:"$Sreact.suspense" -15:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -:HL["/_next/static/css/c10d320578f8fb15.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","mcp","detail",""],"i":false,"f":[[["",{"children":["mcp",{"children":["detail",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["mcp",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["detail",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@a","$@b"]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/c10d320578f8fb15.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$Lc",null,{"children":["$Ld",["$","$Le",null,{"promise":"$@f"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L10",null,{"children":"$L11"}],null],["$","$L12",null,{"children":["$","div",null,{"hidden":true,"children":["$","$13",null,{"fallback":null,"children":"$L14"}]}]}]]}],false]],"m":"$undefined","G":["$15",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -a:{} -b:"$0:f:0:1:1:props:children:1:props:params" -11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -d:null -f:{"metadata":[],"error":null,"digest":"$undefined"} -14:"$f:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/mcp/index.html b/packages/derisk-app/src/derisk_app/static/web/mcp/index.html deleted file mode 100644 index 63edf4ef..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/mcp/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/mcp/index.txt b/packages/derisk-app/src/derisk_app/static/web/mcp/index.txt deleted file mode 100644 index 9d4c6141..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/mcp/index.txt +++ /dev/null @@ -1,25 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90894,[],"ClientPageRoot"] -9:I[83390,["1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","1627","static/chunks/1627-404397bed5d04637.js","797","static/chunks/797-eb26b6f7871f5ec8.js","3512","static/chunks/3512-32e1cb1eabd7acd8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6124","static/chunks/6124-b174e9fd589a8659.js","5388","static/chunks/5388-9a6952b42afb8f88.js","1483","static/chunks/1483-268c5128c58279f2.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","178","static/chunks/178-258a64836712302b.js","7187","static/chunks/7187-b9560a2747c199e3.js","1820","static/chunks/1820-21549b38e3e34a14.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","313","static/chunks/app/mcp/page-706a2a8fb1551afa.js"],"default"] -c:I[59665,[],"OutletBoundary"] -e:I[74911,[],"AsyncMetadataOutlet"] -10:I[59665,[],"ViewportBoundary"] -12:I[59665,[],"MetadataBoundary"] -13:"$Sreact.suspense" -15:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -:HL["/_next/static/css/b7f0cdb4d0556bb6.css","style"] -:HL["/_next/static/css/c10d320578f8fb15.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","mcp",""],"i":false,"f":[[["",{"children":["mcp",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["mcp",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@a","$@b"]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/b7f0cdb4d0556bb6.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/c10d320578f8fb15.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$Lc",null,{"children":["$Ld",["$","$Le",null,{"promise":"$@f"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L10",null,{"children":"$L11"}],null],["$","$L12",null,{"children":["$","div",null,{"hidden":true,"children":["$","$13",null,{"fallback":null,"children":"$L14"}]}]}]]}],false]],"m":"$undefined","G":["$15",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -a:{} -b:"$0:f:0:1:1:props:children:1:props:params" -11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -d:null -f:{"metadata":[],"error":null,"digest":"$undefined"} -14:"$f:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/models/baichuan.png b/packages/derisk-app/src/derisk_app/static/web/models/baichuan.png deleted file mode 100644 index ab63a3af..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/baichuan.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/bailing.svg b/packages/derisk-app/src/derisk_app/static/web/models/bailing.svg deleted file mode 100644 index 8ad5f20f..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/models/bailing.svg +++ /dev/null @@ -1,129 +0,0 @@ - - - - Group@2x - Created with Sketch. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/models/bard.gif b/packages/derisk-app/src/derisk_app/static/web/models/bard.gif deleted file mode 100644 index 78de3734..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/bard.gif and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/chatglm.png b/packages/derisk-app/src/derisk_app/static/web/models/chatglm.png deleted file mode 100644 index 3b341ac6..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/chatglm.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/chatgpt.png b/packages/derisk-app/src/derisk_app/static/web/models/chatgpt.png deleted file mode 100644 index ada9e33c..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/chatgpt.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/chroma-logo.png b/packages/derisk-app/src/derisk_app/static/web/models/chroma-logo.png deleted file mode 100644 index e528b6c3..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/chroma-logo.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/claude.png b/packages/derisk-app/src/derisk_app/static/web/models/claude.png deleted file mode 100644 index 7bc9bbd9..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/claude.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/deepseek.png b/packages/derisk-app/src/derisk_app/static/web/models/deepseek.png deleted file mode 100644 index 14a0b947..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/deepseek.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/doubao.png b/packages/derisk-app/src/derisk_app/static/web/models/doubao.png deleted file mode 100644 index 63116bca..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/doubao.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/ernie.png b/packages/derisk-app/src/derisk_app/static/web/models/ernie.png deleted file mode 100644 index a6488abb..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/ernie.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/falcon.jpeg b/packages/derisk-app/src/derisk_app/static/web/models/falcon.jpeg deleted file mode 100644 index 6a85d01e..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/falcon.jpeg and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/fin_report.jpg b/packages/derisk-app/src/derisk_app/static/web/models/fin_report.jpg deleted file mode 100644 index 09c86c3a..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/fin_report.jpg and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/gemini.png b/packages/derisk-app/src/derisk_app/static/web/models/gemini.png deleted file mode 100644 index 44811f44..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/gemini.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/google.png b/packages/derisk-app/src/derisk_app/static/web/models/google.png deleted file mode 100644 index b469a168..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/google.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/gorilla.png b/packages/derisk-app/src/derisk_app/static/web/models/gorilla.png deleted file mode 100644 index 795b64c8..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/gorilla.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/huggingface.svg b/packages/derisk-app/src/derisk_app/static/web/models/huggingface.svg deleted file mode 100644 index 6b9d9f55..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/models/huggingface.svg +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/models/index.html b/packages/derisk-app/src/derisk_app/static/web/models/index.html deleted file mode 100644 index d43bbb03..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/models/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/models/index.txt b/packages/derisk-app/src/derisk_app/static/web/models/index.txt deleted file mode 100644 index 842d2492..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/models/index.txt +++ /dev/null @@ -1,25 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90894,[],"ClientPageRoot"] -9:I[6178,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","1627","static/chunks/1627-404397bed5d04637.js","797","static/chunks/797-eb26b6f7871f5ec8.js","3512","static/chunks/3512-32e1cb1eabd7acd8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6757","static/chunks/6757-3f965144b548d287.js","6124","static/chunks/6124-b174e9fd589a8659.js","5388","static/chunks/5388-9a6952b42afb8f88.js","1483","static/chunks/1483-268c5128c58279f2.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","6954","static/chunks/6954-79dd11aa887236de.js","6174","static/chunks/6174-fd69108a416bbd09.js","3626","static/chunks/3626-6cd1c8eca3e336e6.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","8329","static/chunks/app/models/page-a56f46f364c3c083.js"],"default"] -c:I[59665,[],"OutletBoundary"] -e:I[74911,[],"AsyncMetadataOutlet"] -10:I[59665,[],"ViewportBoundary"] -12:I[59665,[],"MetadataBoundary"] -13:"$Sreact.suspense" -15:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -:HL["/_next/static/css/b7f0cdb4d0556bb6.css","style"] -:HL["/_next/static/css/04e421a1887f0737.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","models",""],"i":false,"f":[[["",{"children":["models",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["models",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@a","$@b"]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/b7f0cdb4d0556bb6.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}],["$","link","1",{"rel":"stylesheet","href":"/_next/static/css/04e421a1887f0737.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$Lc",null,{"children":["$Ld",["$","$Le",null,{"promise":"$@f"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L10",null,{"children":"$L11"}],null],["$","$L12",null,{"children":["$","div",null,{"hidden":true,"children":["$","$13",null,{"fallback":null,"children":"$L14"}]}]}]]}],false]],"m":"$undefined","G":["$15",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -a:{} -b:"$0:f:0:1:1:props:children:1:props:params" -11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -d:null -f:{"metadata":[],"error":null,"digest":"$undefined"} -14:"$f:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/models/internlm.png b/packages/derisk-app/src/derisk_app/static/web/models/internlm.png deleted file mode 100644 index 3c81bfc8..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/internlm.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/knowledge-default.jpg b/packages/derisk-app/src/derisk_app/static/web/models/knowledge-default.jpg deleted file mode 100644 index 226bd405..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/knowledge-default.jpg and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/knowledge-full-text.jpg b/packages/derisk-app/src/derisk_app/static/web/models/knowledge-full-text.jpg deleted file mode 100644 index 89e09d54..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/knowledge-full-text.jpg and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/knowledge-graph.png b/packages/derisk-app/src/derisk_app/static/web/models/knowledge-graph.png deleted file mode 100644 index b27ae887..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/knowledge-graph.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/llama-cpp.png b/packages/derisk-app/src/derisk_app/static/web/models/llama-cpp.png deleted file mode 100644 index c623b8fe..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/llama-cpp.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/llama.jpg b/packages/derisk-app/src/derisk_app/static/web/models/llama.jpg deleted file mode 100644 index 22db2a26..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/llama.jpg and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/moonshot.png b/packages/derisk-app/src/derisk_app/static/web/models/moonshot.png deleted file mode 100644 index bb8cc242..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/moonshot.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/qwen2.png b/packages/derisk-app/src/derisk_app/static/web/models/qwen2.png deleted file mode 100644 index a61c7470..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/qwen2.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/salesforce.jpeg b/packages/derisk-app/src/derisk_app/static/web/models/salesforce.jpeg deleted file mode 100644 index e8f681b8..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/salesforce.jpeg and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/solar_logo.png b/packages/derisk-app/src/derisk_app/static/web/models/solar_logo.png deleted file mode 100644 index 2f63b133..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/solar_logo.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/tongyi.apng b/packages/derisk-app/src/derisk_app/static/web/models/tongyi.apng deleted file mode 100644 index 4f899cb1..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/tongyi.apng and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/vicuna.jpeg b/packages/derisk-app/src/derisk_app/static/web/models/vicuna.jpeg deleted file mode 100644 index 0978671a..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/vicuna.jpeg and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/vllm.png b/packages/derisk-app/src/derisk_app/static/web/models/vllm.png deleted file mode 100644 index 4c17093f..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/vllm.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/wizardlm.png b/packages/derisk-app/src/derisk_app/static/web/models/wizardlm.png deleted file mode 100644 index fc45d053..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/wizardlm.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/models/yi.svg b/packages/derisk-app/src/derisk_app/static/web/models/yi.svg deleted file mode 100644 index 19806791..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/models/yi.svg +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - diff --git a/packages/derisk-app/src/derisk_app/static/web/models/zhipu.png b/packages/derisk-app/src/derisk_app/static/web/models/zhipu.png deleted file mode 100644 index 30d4ce22..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/models/zhipu.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/next.svg b/packages/derisk-app/src/derisk_app/static/web/next.svg deleted file mode 100644 index 5174b28c..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/not-found/index.html b/packages/derisk-app/src/derisk_app/static/web/not-found/index.html deleted file mode 100644 index f30527f9..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/not-found/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/not-found/index.txt b/packages/derisk-app/src/derisk_app/static/web/not-found/index.txt deleted file mode 100644 index db9ccf92..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/not-found/index.txt +++ /dev/null @@ -1,19 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","7613","static/chunks/app/not-found/page-d18a3d2df893f837.js"],""] -8:I[59665,[],"OutletBoundary"] -a:I[74911,[],"AsyncMetadataOutlet"] -c:I[59665,[],"ViewportBoundary"] -e:I[59665,[],"MetadataBoundary"] -f:"$Sreact.suspense" -11:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","not-found",""],"i":false,"f":[[["",{"children":["not-found",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["not-found",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],null,["$","$L8",null,{"children":["$L9",["$","$La",null,{"promise":"$@b"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Lc",null,{"children":"$Ld"}],null],["$","$Le",null,{"children":["$","div",null,{"hidden":true,"children":["$","$f",null,{"fallback":null,"children":"$L10"}]}]}]]}],false]],"m":"$undefined","G":["$11",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -d:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -9:null -b:{"metadata":[],"error":null,"digest":"$undefined"} -10:"$b:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/pictures/agent.png b/packages/derisk-app/src/derisk_app/static/web/pictures/agent.png deleted file mode 100644 index e193706a..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/pictures/agent.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/pictures/app.png b/packages/derisk-app/src/derisk_app/static/web/pictures/app.png deleted file mode 100644 index 80a277d8..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/pictures/app.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/pictures/app_active.png b/packages/derisk-app/src/derisk_app/static/web/pictures/app_active.png deleted file mode 100644 index e541f7e9..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/pictures/app_active.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/pictures/bg.png b/packages/derisk-app/src/derisk_app/static/web/pictures/bg.png deleted file mode 100644 index e7f05144..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/pictures/bg.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/pictures/bg_dark.png b/packages/derisk-app/src/derisk_app/static/web/pictures/bg_dark.png deleted file mode 100644 index 805ae391..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/pictures/bg_dark.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/pictures/card_chat.png b/packages/derisk-app/src/derisk_app/static/web/pictures/card_chat.png deleted file mode 100644 index 6baeb4b8..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/pictures/card_chat.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/pictures/chat.png b/packages/derisk-app/src/derisk_app/static/web/pictures/chat.png deleted file mode 100644 index 4e98253c..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/pictures/chat.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/pictures/chat_active.png b/packages/derisk-app/src/derisk_app/static/web/pictures/chat_active.png deleted file mode 100644 index f0182619..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/pictures/chat_active.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/pictures/database.png b/packages/derisk-app/src/derisk_app/static/web/pictures/database.png deleted file mode 100644 index 514a8e77..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/pictures/database.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/pictures/empty.png b/packages/derisk-app/src/derisk_app/static/web/pictures/empty.png deleted file mode 100644 index c3c78248..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/pictures/empty.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/pictures/explore.png b/packages/derisk-app/src/derisk_app/static/web/pictures/explore.png deleted file mode 100644 index ce042f87..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/pictures/explore.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/pictures/explore_active.png b/packages/derisk-app/src/derisk_app/static/web/pictures/explore_active.png deleted file mode 100644 index 7daa1ab0..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/pictures/explore_active.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/pictures/fallback.png b/packages/derisk-app/src/derisk_app/static/web/pictures/fallback.png deleted file mode 100644 index d3cbad03..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/pictures/fallback.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/pictures/flow.png b/packages/derisk-app/src/derisk_app/static/web/pictures/flow.png deleted file mode 100644 index eaa2e67d..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/pictures/flow.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/pictures/knowledge.png b/packages/derisk-app/src/derisk_app/static/web/pictures/knowledge.png deleted file mode 100644 index e501e26a..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/pictures/knowledge.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/pictures/libro.png b/packages/derisk-app/src/derisk_app/static/web/pictures/libro.png deleted file mode 100644 index cc6b2add..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/pictures/libro.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/pictures/model.png b/packages/derisk-app/src/derisk_app/static/web/pictures/model.png deleted file mode 100644 index 6a9d5254..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/pictures/model.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/pictures/theme_dark.png b/packages/derisk-app/src/derisk_app/static/web/pictures/theme_dark.png deleted file mode 100644 index e7c050c2..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/pictures/theme_dark.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/pictures/theme_light.png b/packages/derisk-app/src/derisk_app/static/web/pictures/theme_light.png deleted file mode 100644 index 53adcf02..00000000 Binary files a/packages/derisk-app/src/derisk_app/static/web/pictures/theme_light.png and /dev/null differ diff --git a/packages/derisk-app/src/derisk_app/static/web/prompt/add/index.html b/packages/derisk-app/src/derisk_app/static/web/prompt/add/index.html deleted file mode 100644 index fff8b62c..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/prompt/add/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/prompt/add/index.txt b/packages/derisk-app/src/derisk_app/static/web/prompt/add/index.txt deleted file mode 100644 index 3c435a61..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/prompt/add/index.txt +++ /dev/null @@ -1,21 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90979,["1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","1627","static/chunks/1627-404397bed5d04637.js","3512","static/chunks/3512-32e1cb1eabd7acd8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6757","static/chunks/6757-3f965144b548d287.js","6124","static/chunks/6124-b174e9fd589a8659.js","5388","static/chunks/5388-9a6952b42afb8f88.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","5887","static/chunks/5887-f1d2c509cde5d113.js","8687","static/chunks/8687-d27c40143b558df8.js","6756","static/chunks/6756-f4672f8bcd404058.js","6174","static/chunks/6174-fd69108a416bbd09.js","8637","static/chunks/8637-900dce183a7c3c87.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","1910","static/chunks/app/prompt/%5Btype%5D/page-aa4e2323f63fb399.js"],"default"] -9:I[59665,[],"OutletBoundary"] -b:I[74911,[],"AsyncMetadataOutlet"] -d:I[59665,[],"ViewportBoundary"] -f:I[59665,[],"MetadataBoundary"] -10:"$Sreact.suspense" -12:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -:HL["/_next/static/css/5dda26d2269b6aa1.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","prompt","add",""],"i":false,"f":[[["",{"children":["prompt",{"children":[["type","add","d"],{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["prompt",["$","$1","c",{"children":[null,[["$","div",null,{}],["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]]}],{"children":[["type","add","d"],["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/5dda26d2269b6aa1.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L9",null,{"children":["$La",["$","$Lb",null,{"promise":"$@c"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Ld",null,{"children":"$Le"}],null],["$","$Lf",null,{"children":["$","div",null,{"hidden":true,"children":["$","$10",null,{"fallback":null,"children":"$L11"}]}]}]]}],false]],"m":"$undefined","G":["$12",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -e:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -a:null -c:{"metadata":[],"error":null,"digest":"$undefined"} -11:"$c:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/prompt/edit/index.html b/packages/derisk-app/src/derisk_app/static/web/prompt/edit/index.html deleted file mode 100644 index e8407fae..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/prompt/edit/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/prompt/edit/index.txt b/packages/derisk-app/src/derisk_app/static/web/prompt/edit/index.txt deleted file mode 100644 index 170602fc..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/prompt/edit/index.txt +++ /dev/null @@ -1,21 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90979,["1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","1627","static/chunks/1627-404397bed5d04637.js","3512","static/chunks/3512-32e1cb1eabd7acd8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6757","static/chunks/6757-3f965144b548d287.js","6124","static/chunks/6124-b174e9fd589a8659.js","5388","static/chunks/5388-9a6952b42afb8f88.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","5887","static/chunks/5887-f1d2c509cde5d113.js","8687","static/chunks/8687-d27c40143b558df8.js","6756","static/chunks/6756-f4672f8bcd404058.js","6174","static/chunks/6174-fd69108a416bbd09.js","8637","static/chunks/8637-900dce183a7c3c87.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","1910","static/chunks/app/prompt/%5Btype%5D/page-aa4e2323f63fb399.js"],"default"] -9:I[59665,[],"OutletBoundary"] -b:I[74911,[],"AsyncMetadataOutlet"] -d:I[59665,[],"ViewportBoundary"] -f:I[59665,[],"MetadataBoundary"] -10:"$Sreact.suspense" -12:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -:HL["/_next/static/css/5dda26d2269b6aa1.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","prompt","edit",""],"i":false,"f":[[["",{"children":["prompt",{"children":[["type","edit","d"],{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["prompt",["$","$1","c",{"children":[null,[["$","div",null,{}],["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]]}],{"children":[["type","edit","d"],["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/5dda26d2269b6aa1.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L9",null,{"children":["$La",["$","$Lb",null,{"promise":"$@c"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$Ld",null,{"children":"$Le"}],null],["$","$Lf",null,{"children":["$","div",null,{"hidden":true,"children":["$","$10",null,{"fallback":null,"children":"$L11"}]}]}]]}],false]],"m":"$undefined","G":["$12",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -e:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -a:null -c:{"metadata":[],"error":null,"digest":"$undefined"} -11:"$c:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/prompt/index.html b/packages/derisk-app/src/derisk_app/static/web/prompt/index.html deleted file mode 100644 index b7eb4269..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/prompt/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/prompt/index.txt b/packages/derisk-app/src/derisk_app/static/web/prompt/index.txt deleted file mode 100644 index 694c7852..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/prompt/index.txt +++ /dev/null @@ -1,23 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90894,[],"ClientPageRoot"] -9:I[61247,["1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","1627","static/chunks/1627-404397bed5d04637.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","1483","static/chunks/1483-268c5128c58279f2.js","462","static/chunks/462-ddea8e663bcfddbb.js","1081","static/chunks/1081-6591d8b32eeed670.js","8674","static/chunks/8674-3fbb8502171d152b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","2235","static/chunks/2235-05b665a9395f039b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","4873","static/chunks/app/prompt/page-b27d9c48621d10a2.js"],"default"] -c:I[59665,[],"OutletBoundary"] -e:I[74911,[],"AsyncMetadataOutlet"] -10:I[59665,[],"ViewportBoundary"] -12:I[59665,[],"MetadataBoundary"] -13:"$Sreact.suspense" -15:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","prompt",""],"i":false,"f":[[["",{"children":["prompt",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["prompt",["$","$1","c",{"children":[null,[["$","div",null,{}],["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@a","$@b"]}],null,["$","$Lc",null,{"children":["$Ld",["$","$Le",null,{"promise":"$@f"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L10",null,{"children":"$L11"}],null],["$","$L12",null,{"children":["$","div",null,{"hidden":true,"children":["$","$13",null,{"fallback":null,"children":"$L14"}]}]}]]}],false]],"m":"$undefined","G":["$15",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -a:{} -b:"$0:f:0:1:1:props:children:1:props:params" -11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -d:null -f:{"metadata":[],"error":null,"digest":"$undefined"} -14:"$f:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/scene/index.html b/packages/derisk-app/src/derisk_app/static/web/scene/index.html deleted file mode 100644 index de05a504..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/scene/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/scene/index.txt b/packages/derisk-app/src/derisk_app/static/web/scene/index.txt deleted file mode 100644 index fb927694..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/scene/index.txt +++ /dev/null @@ -1,23 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90894,[],"ClientPageRoot"] -9:I[61307,["1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1627","static/chunks/1627-404397bed5d04637.js","797","static/chunks/797-eb26b6f7871f5ec8.js","3512","static/chunks/3512-32e1cb1eabd7acd8.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6124","static/chunks/6124-b174e9fd589a8659.js","5388","static/chunks/5388-9a6952b42afb8f88.js","1483","static/chunks/1483-268c5128c58279f2.js","462","static/chunks/462-ddea8e663bcfddbb.js","1081","static/chunks/1081-6591d8b32eeed670.js","8674","static/chunks/8674-3fbb8502171d152b.js","6954","static/chunks/6954-79dd11aa887236de.js","6174","static/chunks/6174-fd69108a416bbd09.js","4162","static/chunks/4162-d5a6cbe614b83b3b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7625","static/chunks/app/scene/page-a2cf96a19e4881af.js"],"default"] -c:I[59665,[],"OutletBoundary"] -e:I[74911,[],"AsyncMetadataOutlet"] -10:I[59665,[],"ViewportBoundary"] -12:I[59665,[],"MetadataBoundary"] -13:"$Sreact.suspense" -15:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","scene",""],"i":false,"f":[[["",{"children":["scene",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["scene",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@a","$@b"]}],null,["$","$Lc",null,{"children":["$Ld",["$","$Le",null,{"promise":"$@f"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L10",null,{"children":"$L11"}],null],["$","$L12",null,{"children":["$","div",null,{"hidden":true,"children":["$","$13",null,{"fallback":null,"children":"$L14"}]}]}]]}],false]],"m":"$undefined","G":["$15",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -a:{} -b:"$0:f:0:1:1:props:children:1:props:params" -11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -d:null -f:{"metadata":[],"error":null,"digest":"$undefined"} -14:"$f:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/settings/config/index.html b/packages/derisk-app/src/derisk_app/static/web/settings/config/index.html deleted file mode 100644 index f9624009..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/settings/config/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/settings/config/index.txt b/packages/derisk-app/src/derisk_app/static/web/settings/config/index.txt deleted file mode 100644 index b1631edc..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/settings/config/index.txt +++ /dev/null @@ -1,23 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90894,[],"ClientPageRoot"] -9:I[29393,["6079","static/chunks/363642f4-9b840659bef06edc.js","1168","static/chunks/1168-538df61e8b543b50.js","8345","static/chunks/8345-bb048dccbbb46029.js","1627","static/chunks/1627-404397bed5d04637.js","797","static/chunks/797-eb26b6f7871f5ec8.js","3512","static/chunks/3512-32e1cb1eabd7acd8.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6124","static/chunks/6124-b174e9fd589a8659.js","5388","static/chunks/5388-9a6952b42afb8f88.js","1483","static/chunks/1483-268c5128c58279f2.js","462","static/chunks/462-ddea8e663bcfddbb.js","1081","static/chunks/1081-6591d8b32eeed670.js","8674","static/chunks/8674-3fbb8502171d152b.js","9891","static/chunks/9891-9ba136e6c4055749.js","3324","static/chunks/3324-9da8bd872e5c73f7.js","8687","static/chunks/8687-d27c40143b558df8.js","6174","static/chunks/6174-fd69108a416bbd09.js","8561","static/chunks/8561-58346faf4443a75d.js","7193","static/chunks/7193-00e543c31ebc8405.js","1033","static/chunks/1033-cf61f497fa86355d.js","5837","static/chunks/app/settings/config/page-43ae309f0aac117d.js"],"default"] -c:I[59665,[],"OutletBoundary"] -e:I[74911,[],"AsyncMetadataOutlet"] -10:I[59665,[],"ViewportBoundary"] -12:I[59665,[],"MetadataBoundary"] -13:"$Sreact.suspense" -15:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","settings","config",""],"i":false,"f":[[["",{"children":["settings",{"children":["config",{"children":["__PAGE__",{}]}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["settings",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["config",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@a","$@b"]}],null,["$","$Lc",null,{"children":["$Ld",["$","$Le",null,{"promise":"$@f"}]]}]]}],{},null,false]},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L10",null,{"children":"$L11"}],null],["$","$L12",null,{"children":["$","div",null,{"hidden":true,"children":["$","$13",null,{"fallback":null,"children":"$L14"}]}]}]]}],false]],"m":"$undefined","G":["$15",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -a:{} -b:"$0:f:0:1:1:props:children:1:props:params" -11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -d:null -f:{"metadata":[],"error":null,"digest":"$undefined"} -14:"$f:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/v2-agent/index.html b/packages/derisk-app/src/derisk_app/static/web/v2-agent/index.html deleted file mode 100644 index 4ecb069f..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/v2-agent/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/v2-agent/index.txt b/packages/derisk-app/src/derisk_app/static/web/v2-agent/index.txt deleted file mode 100644 index 382a0321..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/v2-agent/index.txt +++ /dev/null @@ -1,23 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90894,[],"ClientPageRoot"] -9:I[79160,["1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1627","static/chunks/1627-404397bed5d04637.js","797","static/chunks/797-eb26b6f7871f5ec8.js","3512","static/chunks/3512-32e1cb1eabd7acd8.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6124","static/chunks/6124-b174e9fd589a8659.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","8765","static/chunks/8765-fff3a6f3dc23421d.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","483","static/chunks/app/v2-agent/page-9f4dcfdf6f3bfcb9.js"],"default"] -c:I[59665,[],"OutletBoundary"] -e:I[74911,[],"AsyncMetadataOutlet"] -10:I[59665,[],"ViewportBoundary"] -12:I[59665,[],"MetadataBoundary"] -13:"$Sreact.suspense" -15:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","v2-agent",""],"i":false,"f":[[["",{"children":["v2-agent",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["v2-agent",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@a","$@b"]}],null,["$","$Lc",null,{"children":["$Ld",["$","$Le",null,{"promise":"$@f"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L10",null,{"children":"$L11"}],null],["$","$L12",null,{"children":["$","div",null,{"hidden":true,"children":["$","$13",null,{"fallback":null,"children":"$L14"}]}]}]]}],false]],"m":"$undefined","G":["$15",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -a:{} -b:"$0:f:0:1:1:props:children:1:props:params" -11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -d:null -f:{"metadata":[],"error":null,"digest":"$undefined"} -14:"$f:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/vercel.svg b/packages/derisk-app/src/derisk_app/static/web/vercel.svg deleted file mode 100644 index 77053960..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/vis-merge-test/index.html b/packages/derisk-app/src/derisk_app/static/web/vis-merge-test/index.html deleted file mode 100644 index 1cbbee1c..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/vis-merge-test/index.html +++ /dev/null @@ -1 +0,0 @@ -
\ No newline at end of file diff --git a/packages/derisk-app/src/derisk_app/static/web/vis-merge-test/index.txt b/packages/derisk-app/src/derisk_app/static/web/vis-merge-test/index.txt deleted file mode 100644 index 7ae5372f..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/vis-merge-test/index.txt +++ /dev/null @@ -1,24 +0,0 @@ -1:"$Sreact.fragment" -2:I[94970,[],"ClientSegmentRoot"] -3:I[11605,["586","static/chunks/13b76428-a8cda74c313da51b.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","797","static/chunks/797-eb26b6f7871f5ec8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","178","static/chunks/178-258a64836712302b.js","5887","static/chunks/5887-f1d2c509cde5d113.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","3018","static/chunks/3018-0fce09eee2c83f26.js","6874","static/chunks/6874-bf14f6d1ebc153cc.js","7002","static/chunks/7002-6f043ea74c8c803b.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","7177","static/chunks/app/layout-ce20c9ed45ee778a.js"],"default"] -4:I[87555,[],""] -5:I[31295,[],""] -6:I[6874,["6874","static/chunks/6874-bf14f6d1ebc153cc.js","4345","static/chunks/app/not-found-d18a3d2df893f837.js"],""] -8:I[90894,[],"ClientPageRoot"] -9:I[79728,["750","static/chunks/afb4954d-bcbf957cc6187b79.js","240","static/chunks/c36f3faa-ad06f8e39d3f01eb.js","5600","static/chunks/05f6971a-37fe2a1a50eb9be0.js","2826","static/chunks/36c7393a-ef231804cff1ce9a.js","7330","static/chunks/d3ac728e-c3a6f01f0b83d969.js","4935","static/chunks/e37a0b60-89795b4f1a25ba51.js","4316","static/chunks/ad2866b8-e93ec9749697d02c.js","8779","static/chunks/1892dd0f-5aeaa0a32c91e34b.js","3930","static/chunks/164f4fb6-bfb3067a982328b6.js","3485","static/chunks/ffef0c7e-e3fe45d524576f36.js","5033","static/chunks/2f0b94e8-5f4d2efd9161c0b9.js","1168","static/chunks/1168-538df61e8b543b50.js","7680","static/chunks/7680-708afa29d579a422.js","8345","static/chunks/8345-bb048dccbbb46029.js","1218","static/chunks/1218-fec170339465af6d.js","1627","static/chunks/1627-404397bed5d04637.js","797","static/chunks/797-eb26b6f7871f5ec8.js","3512","static/chunks/3512-32e1cb1eabd7acd8.js","6421","static/chunks/6421-5bb3de4d4666eb86.js","3775","static/chunks/3775-2c7a10d6d64729c0.js","6467","static/chunks/6467-a092bcab27dc022a.js","6757","static/chunks/6757-3f965144b548d287.js","6124","static/chunks/6124-b174e9fd589a8659.js","1483","static/chunks/1483-268c5128c58279f2.js","6766","static/chunks/6766-1a77d9df9a9eecd2.js","462","static/chunks/462-ddea8e663bcfddbb.js","1081","static/chunks/1081-6591d8b32eeed670.js","8674","static/chunks/8674-3fbb8502171d152b.js","178","static/chunks/178-258a64836712302b.js","7187","static/chunks/7187-b9560a2747c199e3.js","9891","static/chunks/9891-9ba136e6c4055749.js","6954","static/chunks/6954-79dd11aa887236de.js","3054","static/chunks/3054-14d39e934877243d.js","3018","static/chunks/3018-0fce09eee2c83f26.js","8687","static/chunks/8687-d27c40143b558df8.js","3506","static/chunks/3506-b376488043bba00b.js","6756","static/chunks/6756-f4672f8bcd404058.js","7847","static/chunks/7847-08e3f49e5c7f2dc5.js","4237","static/chunks/4237-c4b27406df8511d5.js","4699","static/chunks/4699-9c0a0e2bd8168c02.js","7379","static/chunks/7379-ac45aff19930c401.js","9960","static/chunks/9960-69a442e3f45a26e4.js","5213","static/chunks/5213-b6af6939d11c343e.js","5993","static/chunks/app/vis-merge-test/page-ba710aaecd684190.js"],"default"] -c:I[59665,[],"OutletBoundary"] -e:I[74911,[],"AsyncMetadataOutlet"] -10:I[59665,[],"ViewportBoundary"] -12:I[59665,[],"MetadataBoundary"] -13:"$Sreact.suspense" -15:I[28393,[],""] -:HL["/_next/static/css/f12e8a3fe86e4617.css","style"] -:HL["/_next/static/css/879c4fe73b6fcdc7.css","style"] -0:{"P":null,"b":"pKJooaiv_QjBnCHgm3NLg","p":"","c":["","vis-merge-test",""],"i":false,"f":[[["",{"children":["vis-merge-test",{"children":["__PAGE__",{}]}]},"$undefined","$undefined",true],["",["$","$1","c",{"children":[[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/f12e8a3fe86e4617.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$L2",null,{"Component":"$3","slots":{"children":["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":[["$","div",null,{"className":"flex flex-col items-center justify-center min-h-screen py-2","children":[["$","h2",null,{"className":"text-2xl font-bold mb-4","children":"Not Found"}],["$","p",null,{"className":"mb-4","children":"Could not find requested resource"}],["$","$L6",null,{"href":"/","className":"text-blue-500 hover:text-blue-700 underline","children":"Return Home"}]]}],[]],"forbidden":"$undefined","unauthorized":"$undefined"}]},"params":{},"promise":"$@7"}]]}],{"children":["vis-merge-test",["$","$1","c",{"children":[null,["$","$L4",null,{"parallelRouterKey":"children","error":"$undefined","errorStyles":"$undefined","errorScripts":"$undefined","template":["$","$L5",null,{}],"templateStyles":"$undefined","templateScripts":"$undefined","notFound":"$undefined","forbidden":"$undefined","unauthorized":"$undefined"}]]}],{"children":["__PAGE__",["$","$1","c",{"children":[["$","$L8",null,{"Component":"$9","searchParams":{},"params":"$0:f:0:1:1:props:children:1:props:params","promises":["$@a","$@b"]}],[["$","link","0",{"rel":"stylesheet","href":"/_next/static/css/879c4fe73b6fcdc7.css","precedence":"next","crossOrigin":"$undefined","nonce":"$undefined"}]],["$","$Lc",null,{"children":["$Ld",["$","$Le",null,{"promise":"$@f"}]]}]]}],{},null,false]},null,false]},null,false],["$","$1","h",{"children":[null,[["$","$L10",null,{"children":"$L11"}],null],["$","$L12",null,{"children":["$","div",null,{"hidden":true,"children":["$","$13",null,{"fallback":null,"children":"$L14"}]}]}]]}],false]],"m":"$undefined","G":["$15",[]],"s":false,"S":true} -7:"$0:f:0:1:1:props:children:1:props:params" -a:{} -b:"$0:f:0:1:1:props:children:1:props:params" -11:[["$","meta","0",{"charSet":"utf-8"}],["$","meta","1",{"name":"viewport","content":"width=device-width, initial-scale=1"}]] -d:null -f:{"metadata":[],"error":null,"digest":"$undefined"} -14:"$f:metadata" diff --git a/packages/derisk-app/src/derisk_app/static/web/window.svg b/packages/derisk-app/src/derisk_app/static/web/window.svg deleted file mode 100644 index b2b2a44f..00000000 --- a/packages/derisk-app/src/derisk_app/static/web/window.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/packages/derisk-core/src/derisk/storage/metadata/_base_dao.py b/packages/derisk-core/src/derisk/storage/metadata/_base_dao.py index 6fdc4bc0..6537dcfa 100644 --- a/packages/derisk-core/src/derisk/storage/metadata/_base_dao.py +++ b/packages/derisk-core/src/derisk/storage/metadata/_base_dao.py @@ -250,12 +250,17 @@ def update( if isinstance(update_request, dict) else model_to_dict(update_request) ) + logger.info(f"BaseDao.update called with data: {update_request}") for key, value in update_request.items(): # type: ignore if force_update: + logger.info(f"Setting {key} = {value} (force_update=True)") setattr(entry, key, value) else: if value is not None: + logger.info(f"Setting {key} = {value}") setattr(entry, key, value) + else: + logger.info(f"Skipping {key} because value is None") session.merge(entry) # res = self.get_one(self.to_request(entry)) # if not res: diff --git a/packages/derisk-serve/src/derisk_serve/skill/api/endpoints.py b/packages/derisk-serve/src/derisk_serve/skill/api/endpoints.py index 7746394e..a61449c6 100644 --- a/packages/derisk-serve/src/derisk_serve/skill/api/endpoints.py +++ b/packages/derisk-serve/src/derisk_serve/skill/api/endpoints.py @@ -414,6 +414,87 @@ async def get_recent_sync_tasks( return Result.failed(str(e)) +@router.post( + "/{skill_code}/auto_sync", + response_model=Result[SkillResponse], + dependencies=[Depends(check_api_key)], +) +async def update_auto_sync( + skill_code: str, + auto_sync: bool = Query(..., description="whether to auto-sync this skill on startup"), + service: Service = Depends(get_service), +) -> Result[SkillResponse]: + """Update skill auto_sync setting""" + logger.info(f"update_auto_sync called: skill_code={skill_code}, auto_sync={auto_sync}") + try: + # Get existing skill using dict query to avoid including default values + existing_skill = service.get_by_skill_code(skill_code) + + if not existing_skill: + logger.warning(f"Skill {skill_code} not found") + return Result.failed(f"Skill {skill_code} not found") + + logger.info(f"Existing skill {skill_code} auto_sync={existing_skill.auto_sync}") + + # Build update dict with only the fields we want to update + # Use existing values as fallback for required fields + update_dict = { + "skill_code": skill_code, + "auto_sync": auto_sync, + } + + # Add existing fields if they have values + if existing_skill.name: + update_dict["name"] = existing_skill.name + if existing_skill.description: + update_dict["description"] = existing_skill.description + if existing_skill.type: + update_dict["type"] = existing_skill.type + if existing_skill.author: + update_dict["author"] = existing_skill.author + if existing_skill.email: + update_dict["email"] = existing_skill.email + if existing_skill.version: + update_dict["version"] = existing_skill.version + if existing_skill.path: + update_dict["path"] = existing_skill.path + if existing_skill.content: + update_dict["content"] = existing_skill.content + if existing_skill.icon: + update_dict["icon"] = existing_skill.icon + if existing_skill.category: + update_dict["category"] = existing_skill.category + if existing_skill.installed is not None: + update_dict["installed"] = existing_skill.installed + if existing_skill.available is not None: + update_dict["available"] = existing_skill.available + if existing_skill.repo_url: + update_dict["repo_url"] = existing_skill.repo_url + if existing_skill.branch: + update_dict["branch"] = existing_skill.branch + if existing_skill.commit_id: + update_dict["commit_id"] = existing_skill.commit_id + + # Create SkillRequest, handling potential validation issues gracefully + try: + update_request = SkillRequest(**update_dict) + except Exception as validation_error: + # If validation fails, try to set required fields with default values + logger.warning(f"SkillRequest validation failed, trying with defaults: {validation_error}") + # Force set required fields with valid values + update_dict["name"] = existing_skill.name or skill_code + update_dict["description"] = existing_skill.description or "Skill description" + update_dict["type"] = existing_skill.type or "tool" + update_request = SkillRequest(**update_dict) + + result = service.update(update_request) + logger.info(f"Updated skill {skill_code} auto_sync to {auto_sync}") + return Result.succ(result) + except Exception as e: + logger.exception(f"Failed to update skill {skill_code} auto_sync setting") + return Result.failed(str(e)) + + def init_endpoints(system_app: SystemApp, config: ServeConfig) -> None: """Initialize the endpoints""" global global_system_app diff --git a/packages/derisk-serve/src/derisk_serve/skill/api/schemas.py b/packages/derisk-serve/src/derisk_serve/skill/api/schemas.py index 8bd65184..7a16fc2c 100644 --- a/packages/derisk-serve/src/derisk_serve/skill/api/schemas.py +++ b/packages/derisk-serve/src/derisk_serve/skill/api/schemas.py @@ -28,6 +28,7 @@ class SkillRequest(BaseModel): repo_url: Optional[str] = Field(None, description="git repository url") branch: Optional[str] = Field(None, description="git branch") commit_id: Optional[str] = Field(None, description="git commit id") + auto_sync: Optional[bool] = Field(True, description="whether to auto-sync this skill on startup") model_config = ConfigDict( title=f"SkillRequest for {SERVE_APP_NAME_HUMP}", @@ -68,6 +69,7 @@ class SkillResponse(BaseModel): repo_url: Optional[str] = Field(None, description="git repository url") branch: Optional[str] = Field(None, description="git branch") commit_id: Optional[str] = Field(None, description="git commit id") + auto_sync: Optional[bool] = Field(True, description="whether to auto-sync this skill on startup") gmt_created: str = Field(..., description="ISO format creation time") gmt_modified: str = Field(..., description="ISO format modification time") diff --git a/packages/derisk-serve/src/derisk_serve/skill/config.py b/packages/derisk-serve/src/derisk_serve/skill/config.py index a9c8dfc8..578c5d85 100644 --- a/packages/derisk-serve/src/derisk_serve/skill/config.py +++ b/packages/derisk-serve/src/derisk_serve/skill/config.py @@ -57,6 +57,14 @@ class ServeConfig(BaseServeConfig): metadata={"help": "Default git branch for skill repository"}, ) + # Whether to enable automatic skill sync on startup + enable_default_skill_sync: bool = field( + default=True, + metadata={"help": "Whether to sync skills from git repository on startup. " + "Set to false to skip auto-sync (useful for slow network or " + "when using local skills only)"}, + ) + def get_type_value(self): return self.__type__ diff --git a/packages/derisk-serve/src/derisk_serve/skill/models/models.py b/packages/derisk-serve/src/derisk_serve/skill/models/models.py index 6e5ecd5f..648c7496 100644 --- a/packages/derisk-serve/src/derisk_serve/skill/models/models.py +++ b/packages/derisk-serve/src/derisk_serve/skill/models/models.py @@ -48,6 +48,7 @@ class SkillEntity(Model): repo_url = Column(Text, nullable=True, comment="git repository url") branch = Column(String(255), nullable=True, comment="git branch") commit_id = Column(String(255), nullable=True, comment="git commit id") + auto_sync = Column(Boolean, nullable=True, default=True, comment="whether to auto-sync this skill on startup") gmt_created = Column(DateTime, name='gmt_create', default=datetime.now, comment="Record creation time") gmt_modified = Column(DateTime, default=datetime.now, onupdate=datetime.now, comment="Record update time") @@ -97,6 +98,7 @@ def to_request(self, entity: SkillEntity) -> SkillRequest: repo_url=entity.repo_url, branch=entity.branch, commit_id=entity.commit_id, + auto_sync=entity.auto_sync, ) def to_response(self, entity: SkillEntity) -> SkillResponse: @@ -117,6 +119,7 @@ def to_response(self, entity: SkillEntity) -> SkillResponse: repo_url=entity.repo_url, branch=entity.branch, commit_id=entity.commit_id, + auto_sync=entity.auto_sync, gmt_created=entity.gmt_created.isoformat() if entity.gmt_created else None, gmt_modified=entity.gmt_modified.isoformat() if entity.gmt_modified else None, ) diff --git a/packages/derisk-serve/src/derisk_serve/skill/serve.py b/packages/derisk-serve/src/derisk_serve/skill/serve.py index d5459bbd..5f1cdf15 100644 --- a/packages/derisk-serve/src/derisk_serve/skill/serve.py +++ b/packages/derisk-serve/src/derisk_serve/skill/serve.py @@ -122,7 +122,12 @@ async def async_after_start(self): async def _load_default_skills(self): """Load default skills from git repository on startup (non-blocking).""" from .service.service import Service - + + # Check if auto-sync is enabled + if not getattr(self._config, 'enable_default_skill_sync', True): + logger.info("Default skill sync is disabled, skipping") + return + try: service: Service = self._system_app.get_component( Service.name, Service @@ -130,10 +135,10 @@ async def _load_default_skills(self): if not service: logger.info("Skill service not available, skipping default skill loading") return - + default_repo_url = self._config.get_default_skill_repo_url() default_branch = self._config.get_default_skill_repo_branch() - + if not default_repo_url: logger.info("No default skill repository URL configured, skipping") return diff --git a/packages/derisk-serve/src/derisk_serve/skill/service/service.py b/packages/derisk-serve/src/derisk_serve/skill/service/service.py index f050552b..da560312 100644 --- a/packages/derisk-serve/src/derisk_serve/skill/service/service.py +++ b/packages/derisk-serve/src/derisk_serve/skill/service/service.py @@ -112,29 +112,26 @@ def update(self, request: SkillRequest) -> SkillResponse: """ # Build the query request from the request query_request = {"skill_code": request.skill_code} - request_dict = request.dict() if isinstance(request, SkillRequest) else request - - # Filter out read-only fields - request_dict.pop("skill_code", None) - request_dict.pop("gmt_created", None) - request_dict.pop("gmt_modified", None) # Set default path if not provided - if not request_dict.get("path"): + if not request.path: existing = self.dao.get_one({"skill_code": request.skill_code}) if existing and existing.path: - request_dict["path"] = existing.path + request.path = existing.path else: project_skill_dir = self._serve_config.get_project_skill_dir() - request_dict["path"] = os.path.join( + request.path = os.path.join( project_skill_dir, request.skill_code ) logger.info( f"Skill '{request.skill_code}' update path is empty, " - f"using default path '{request_dict['path']}'" + f"using default path '{request.path}'" ) - return self.dao.update(query_request, request_dict) + logger.info(f"Updating skill {request.skill_code} with auto_sync={request.auto_sync}") + + # Pass the Pydantic model directly to dao.update, which will use model_to_dict + return self.dao.update(query_request, update_request=request) def get(self, request: SkillRequest) -> Optional[SkillResponse]: """Get a Skill entity @@ -149,6 +146,18 @@ def get(self, request: SkillRequest) -> Optional[SkillResponse]: query_request = request return self.dao.get_one(query_request) + def get_by_skill_code(self, skill_code: str) -> Optional[SkillResponse]: + """Get a Skill entity by skill_code only + + Args: + skill_code (str): The skill code + + Returns: + SkillResponse: The response or None if not found + """ + # Use dict query to avoid including default values from SkillRequest + return self.dao.get_one({"skill_code": skill_code}) + def delete(self, request: SkillRequest) -> None: """Delete a Skill entity @@ -291,6 +300,15 @@ async def sync_from_git( existing_skill_request = SkillRequest(skill_code=skill_code) existing_skill = self.get(existing_skill_request) + # Check auto_sync setting - skip if auto_sync is disabled + # unless force_update is explicitly set + if existing_skill and existing_skill.auto_sync is False and not force_update: + logger.info( + f"Skill {skill_name} has auto_sync disabled, skipping" + ) + synced_skills.append(existing_skill) + continue + # Determine if we should update should_update = force_update or ( existing_skill and existing_skill.commit_id != commit_id @@ -311,6 +329,9 @@ async def sync_from_git( rel_path = os.path.relpath(skill_path, repo_path) # Build skill request + # Preserve existing auto_sync setting if skill already exists + auto_sync = existing_skill.auto_sync if existing_skill else True + skill_request = SkillRequest( skill_code=skill_code, name=skill_name, @@ -328,6 +349,7 @@ async def sync_from_git( repo_url=repo_url, branch=branch, commit_id=commit_id, + auto_sync=auto_sync, ) # Create or update skill diff --git a/web/src/app/agent-skills/page.tsx b/web/src/app/agent-skills/page.tsx index ce19df2b..e4e18289 100644 --- a/web/src/app/agent-skills/page.tsx +++ b/web/src/app/agent-skills/page.tsx @@ -1,8 +1,8 @@ "use client" import { apiInterceptors } from '@/client/api'; -import { getSkillList, createSkill, updateSkill, deleteSkill, createSyncTask, getSyncTaskStatus, getRecentSyncTasks } from '@/client/api/skill'; +import { getSkillList, createSkill, updateSkill, deleteSkill, createSyncTask, getSyncTaskStatus, getRecentSyncTasks, updateSkillAutoSync } from '@/client/api/skill'; import { InnerDropdown } from '@/components/blurred-card'; -import { FolderOpenFilled, ReloadOutlined, PlusOutlined, GithubOutlined, SyncOutlined, CloseOutlined, HistoryOutlined, ClockCircleOutlined } from '@ant-design/icons'; +import { FolderOpenFilled, ReloadOutlined, PlusOutlined, GithubOutlined, SyncOutlined, CloseOutlined, HistoryOutlined, ClockCircleOutlined, CloudSyncOutlined, CloudOutlined } from '@ant-design/icons'; import { useRequest } from 'ahooks'; import { Form, Pagination, Result, Spin, Tooltip, Button, message, Tag, Popconfirm, Input, Modal, Select, Switch, PaginationProps, Progress, Row, Col, Drawer, List, Typography, Space } from 'antd'; import { useRouter } from 'next/navigation'; @@ -134,6 +134,28 @@ const SkillPage: React.FC = () => { } }; + // Handle auto_sync toggle + const handleAutoSyncChange = async (item: any, checked: boolean) => { + try { + const [err, res] = await apiInterceptors(updateSkillAutoSync(item.skill_code, checked)); + if (err) { + message.error('Failed to update auto sync setting'); + return; + } + message.success(`Auto sync ${checked ? 'enabled' : 'disabled'} for ${item.name}`); + // Update local state + setSkillList((prev: any[]) => + prev.map((skill: any) => + skill.skill_code === item.skill_code + ? { ...skill, auto_sync: checked } + : skill + ) + ); + } catch (error) { + message.error('Failed to update auto sync setting'); + } + }; + const handleOk = async () => { try { const values = await form.validateFields(); @@ -307,12 +329,23 @@ const SkillPage: React.FC = () => {

{item.name}

- - {item.repo_url ? "Git" : "Local"} - +
+ + {item.repo_url ? "Git" : "Local"} + + {item.repo_url && ( + + {item.auto_sync !== false ? ( + + ) : ( + + )} + + )} +
e.stopPropagation()}> @@ -341,7 +374,22 @@ const SkillPage: React.FC = () => {
{item.author || 'Unknown Author'} - {item.version || 'v1.0.0'} +
+ {item.repo_url && ( +
e.stopPropagation()} + > + Auto Sync + handleAutoSyncChange(item, checked)} + /> +
+ )} + {item.version || 'v1.0.0'} +
))} diff --git a/web/src/client/api/skill/index.ts b/web/src/client/api/skill/index.ts index ac13f5a5..bd1aea65 100644 --- a/web/src/client/api/skill/index.ts +++ b/web/src/client/api/skill/index.ts @@ -108,3 +108,8 @@ export const batchUploadSkillFiles = (skill_code: string, files: { file_path: st overwrite, }); }; + +// Update skill auto_sync setting +export const updateSkillAutoSync = (skill_code: string, auto_sync: boolean) => { + return POST(`/api/v1/serve_skill_service/${skill_code}/auto_sync?auto_sync=${auto_sync}`); +}; diff --git a/web/src/client/api/tools/interceptors.ts b/web/src/client/api/tools/interceptors.ts index 3a19e524..6fdf9e01 100644 --- a/web/src/client/api/tools/interceptors.ts +++ b/web/src/client/api/tools/interceptors.ts @@ -29,6 +29,7 @@ export const apiInterceptors = ( message: `Request error`, description: data?.err_msg ?? 'The interface is abnormal. Please try again later', }); + return [{ message: data?.err_msg || 'Request failed' } as Error, null, data, response]; } } return [null, data.data, data, response];