(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5f42432e"],{"4bad":function(t,e,n){"use strict";n.d(e,"a",(function(){return Y})),n.d(e,"b",(function(){return Z}));var i=n("f7be"),r=n("2eab"),o=n("d329"),a=n("ce50"),c=n("c120"),l=(n("e6c2"),n("69e9")),s=n("9ef0"),h=n("2c63"),u=n("a29a"),f=(n("702a"),n("e92d"),n("d822"));const d="http://www.w3.org/2000/svg";let y=0,g=0;const p=Object(c["a"])("android"),b=Object(c["a"])("chrome")||p&&p>=4?"auto":"optimizeLegibility",m={m:2,l:2,h:1,v:1,c:6,s:4,q:4,t:2,a:7,z:0},x=/([A-DF-Za-df-z])|([-+]?\d*[.]?\d+(?:[eE][-+]?\d+)?)/g;let w={},j={};const k={solid:"none",shortdash:[4,1],shortdot:[1,1],shortdashdot:[4,1,1,1],shortdashdotdot:[4,1,1,1,1,1],dot:[1,3],dash:[4,3],longdash:[8,3],dashdot:[4,3,1,3],longdashdot:[8,3,1,3],longdashdotdot:[8,3,1,3,1,3]},O=Math.PI;let M=1;function v(t,e){const n=t*(O/180);return Math.abs(e*Math.sin(n))+Math.abs(e*Math.cos(n))}function z(t){return t.map(t=>`${t.command} ${t.values.join(" ")}`).join(" ").trim()}function I(t,e,n,i){if(t){if("circle"===t.type)return Object(f["a"])("circle",{fill:e,"fill-rule":"evenodd",stroke:n.color,"stroke-width":n.width,"stroke-linecap":n.cap,"stroke-linejoin":n.join,"stroke-dasharray":n.dashArray,"stroke-miterlimit":"4",cx:t.cx,cy:t.cy,r:t.r});if("ellipse"===t.type)return Object(f["a"])("ellipse",{fill:e,"fill-rule":"evenodd",stroke:n.color,"stroke-width":n.width,"stroke-linecap":n.cap,"stroke-linejoin":n.join,"stroke-dasharray":n.dashArray,"stroke-miterlimit":"4",cx:t.cx,cy:t.cy,rx:t.rx,ry:t.ry});if("rect"===t.type)return Object(f["a"])("rect",{fill:e,"fill-rule":"evenodd",stroke:n.color,"stroke-width":n.width,"stroke-linecap":n.cap,"stroke-linejoin":n.join,"stroke-dasharray":n.dashArray,"stroke-miterlimit":"4",x:t.x,y:t.y,width:t.width,height:t.height});if("image"===t.type)return Object(f["a"])("image",{href:t.src,x:t.x,y:t.y,width:t.width,height:t.height,preserveAspectRatio:"none"});if("path"===t.type){const i="string"!=typeof t.path?z(t.path):t.path;return Object(f["a"])("path",{fill:e,"fill-rule":"evenodd",stroke:n.color,"stroke-width":n.width,"stroke-linecap":n.cap,"stroke-linejoin":n.join,"stroke-dasharray":n.dashArray,"stroke-miterlimit":"4",d:i})}if("text"===t.type)return Object(f["a"])("text",{fill:e,"fill-rule":"evenodd",stroke:n.color,"stroke-width":n.width,"stroke-linecap":n.cap,"stroke-linejoin":n.join,"stroke-dasharray":n.dashArray,"stroke-miterlimit":"4","text-anchor":i.align,"text-decoration":i.decoration,kerning:i.kerning,rotate:i.rotate,"text-rendering":b,"font-style":i.font.style,"font-variant":i.font.variant,"font-weight":i.font.weight,"font-size":i.font.size,"font-family":i.font.family,x:t.x,y:t.y},t.text)}return null}function S(t){const e={fill:"none",pattern:null,linearGradient:null};if(t)if("type"in t&&"pattern"===t.type){const n="patternId-"+ ++y;e.fill=`url(#${n})`,e.pattern={id:n,x:t.x,y:t.y,width:t.width,height:t.height,image:{x:0,y:0,width:t.width,height:t.height,href:t.src}}}else if("type"in t&&"linear"===t.type){const n="linearGradientId-"+ ++g;e.fill=`url(#${n})`,e.linearGradient={id:n,x1:t.x1,y1:t.y1,x2:t.x2,y2:t.y2,stops:t.colors.map(t=>({offset:t.offset,color:t.color&&new s["a"](t.color).toString()}))}}else if(t){const n=new s["a"](t);e.fill=n.toString()}return e}function A(t){const e={color:"none",width:1,cap:"butt",join:"4",dashArray:"none"};if(t&&(null!=t.width&&(e.width=t.width),t.cap&&(e.cap=t.cap),t.join&&(e.join=t.join.toString()),t.color&&(e.color=new s["a"](t.color).toString()),t.style)){let n=null;if(t.style in k&&(n=k[t.style]),Array.isArray(n)){n=n.slice(0);for(let e=0;eObject(f["a"])("stop",{key:e+"-stop",offset:t.offset,"stop-color":t.color}));return Object(f["a"])("linearGradient",{id:n.id,gradientUnits:"userSpaceOnUse",x1:n.x1,y1:n.y1,x2:n.x2,y2:n.y2},t)}return null}function D(t,e,n){return Object(u["i"])(t,Object(u["c"])(t),[e,n])}function G(t,e,n,i,r){return Object(u["h"])(t,Object(u["c"])(t),[e,n]),t[4]=t[4]*e-i*e+i,t[5]=t[5]*n-r*n+r,t}function C(t,e,n,i){const r=e%360*Math.PI/180;Object(u["g"])(t,Object(u["c"])(t),r);const o=Math.cos(r),a=Math.sin(r),c=t[4],l=t[5];return t[4]=c*o-l*a+i*a-n*o+n,t[5]=l*o+c*a-n*a-i*o+i,t}function V(t,e){w&&"left"in w?(w.left>t&&(w.left=t),w.righte&&(w.top=e),w.bottom=i&&(r={action:t,args:e.slice(0,e.length-e.length%i)},n.push(r),U(r)):(r={action:t,args:[]},n.push(r),U(r)))}function E(t){const e=("string"!=typeof t.path?z(t.path):t.path).match(x),n=[];if(w={},j={},!e)return null;let i="",r=[];const o=e.length;for(let c=0;cn?e:n;let r=1,o=1;isNaN(i)||(t>1?(r=i/d,o=i/t/y):(o=i/y,r=i*t/d)),Object(u["f"])(p,p,G(g,r,o,s,f)),b=!0}const m=t.x+(d-i)/2,x=t.y+(y-i)/2;if(Object(u["f"])(p,p,D(g,s-m,f-x)),!b&&(d>e||y>n)){const t=d/e>y/n,i=(t?e:n)/(t?d:y);Object(u["f"])(p,p,G(g,i,i,m,x))}return o&&Object(u["f"])(p,p,C(g,o,m,x)),c&&Object(u["f"])(p,p,D(g,c[0],c[1])),`matrix(${p[0]},${p[1]},${p[2]},${p[3]},${p[4]},${p[5]})`}function L(t,e,n){const i=null==t?void 0:t.effects.find(t=>"bloom"===t.type);if(!i)return null;const{strength:r,radius:o}=i,a=r>0?o:0,c=(r+a)*e,l=4*r+1;return Object(f["a"])("filter",{id:"bloom"+n,x:"-100%",y:"-100%",width:"300%",height:"300%",filterUnits:"userSpaceOnUse"},Object(f["a"])("feMorphology",{operator:"dilate",radius:(r+.5*a)*(5**(e/100)*(.4+e/100)),in:"SourceGraphic",result:"dilate"}),Object(f["a"])("feGaussianBlur",{in:"dilate",stdDeviation:c/25,result:"blur"}),Object(f["a"])("feGaussianBlur",{in:"blur",stdDeviation:c/50,result:"intensityBlur"}),Object(f["a"])("feComponentTransfer",{in:"SourceGraphic",result:"intensityBrightness"},Object(f["a"])("feFuncR",{type:"linear",slope:l}),Object(f["a"])("feFuncG",{type:"linear",slope:l}),Object(f["a"])("feFuncB",{type:"linear",slope:l})),Object(f["a"])("feMerge",null,Object(f["a"])("feMergeNode",{in:"intensityBlur"}),Object(f["a"])("feMergeNode",{in:"intensityBrightness"}),Object(f["a"])("feGaussianBlur",{stdDeviation:r/10})))}function P(t,e,n,i){const r=[],o=[],a=++M,c=L(null==i?void 0:i.effectView,e,a);let l=null;if(c){var s;const t=null==i||null==(s=i.effectView)?void 0:s.effects.find(t=>"bloom"===t.type),r=(t.strength?t.strength+t.radius/2:0)/3,o=e+e*r,a=n+n*r;l=[Math.max(o,10),Math.max(a,10)]}for(const h of t){const t=[],a=[];let c=0,s=0,u=0;for(const e of h){const{shape:n,fill:i,stroke:o,font:l,offset:h}=e;c+=o&&o.width||0;const f=S(i),d=A(o),y="text"===n.type?$(n,l):null;r.push(N(f)),t.push(I(n,f.fill,d,y)),a.push(F(n)),h&&(s+=h[0],u+=h[1])}const d=T(R(a),e,n,c,null==i?void 0:i.scale,null==i?void 0:i.rotation,null==i?void 0:i.useRotationSize,[s,u],l);o.push(Object(f["a"])("g",{transform:d},t))}return null!=i&&i.useRotationSize&&null!=i&&i.rotation&&(e=v(null==i?void 0:i.rotation,e),n=v(null==i?void 0:i.rotation,n)),c&&(e=l[0],n=l[1]),Object(f["a"])("svg",{xmlns:d,width:e,height:n,style:"display: block;"},c,Object(f["a"])("defs",null,r),c?Object(f["a"])("g",{filter:`url(#bloom${a})`},o):o)}var q=n("ac8e");const J=Object(l["a"])();function Y(t,e,n){const i=Math.ceil(e[0]),r=Math.ceil(e[1]);if(!t.some(t=>!!t.length))return null;const o=n&&n.node||document.createElement("div");return null!=n.opacity&&(o.style.opacity=n.opacity.toString()),null!=n.effectView&&(o.style.filter=Object(q["e"])(n.effectView)),J.append(o,P.bind(null,t,i,r,n)),o}function _(t,e){t=Math.ceil(t),e=Math.ceil(e);const n=document.createElement("canvas");n.width=t,n.height=e,n.style.width=t+"px",n.style.height=e+"px";const i=n.getContext("2d");return i.clearRect(0,0,t,e),i}function H(t,e,n){return t?Object(r["default"])(t,{responseType:"image"}).then(t=>{const i=t.data,r=i.width,o=i.height,a=r/o;let c=e;if(n){const t=Math.max(r,o);c=Math.min(c,t)}return{image:i,width:a<=1?Math.ceil(c*a):c,height:a<=1?c:Math.ceil(c/a)}}):Promise.reject(new a["a"]("renderUtils: imageDataSize","href not provided."))}function Q(t,e){return!(!t||"ignore"===e)&&("multiply"!==e||255!==t.r||255!==t.g||255!==t.b||1!==t.a)}function W(t,e,n,i,r){switch(r){case"multiply":t[e+0]*=n[0],t[e+1]*=n[1],t[e+2]*=n[2],t[e+3]*=n[3];break;default:{const r=Object(o["a"])({r:t[e+0],g:t[e+1],b:t[e+2]});r.h=i.h,r.s=i.s,r.v=r.v/100*i.v;const a=Object(o["d"])(r);t[e+0]=a.r,t[e+1]=a.g,t[e+2]=a.b,t[e+3]*=n[3];break}}}function Z(t,e,n,r,a){return H(t,e,a).then(a=>{const l=a.width?a.width:e,s=a.height?a.height:e;if(a.image&&Q(n,r)){let e=a.image.width,i=a.image.height;Object(c["a"])("edge")&&/\.svg$/i.test(t)&&(e-=1,i-=1);const h=_(l,s);h.drawImage(a.image,0,0,e,i,0,0,l,s);const u=h.getImageData(0,0,l,s),f=[n.r/255,n.g/255,n.b/255,n.a],d=Object(o["a"])(n);for(let t=0;tt<=.04045?t/12.92:((t+.055)/1.055)**2.4),n=h(l,e);return{x:100*n[0],y:100*n[1],z:100*n[2]}}function f(t){const e=h(s,[t.x/100,t.y/100,t.z/100]).map(t=>{const e=t<=.0031308?12.92*t:1.055*t**(1/2.4)-.055;return Math.min(1,Math.max(e,0))});return{r:Math.round(255*e[0]),g:Math.round(255*e[1]),b:Math.round(255*e[2])}}function d(t){const e=[t.x/95.047,t.y/100,t.z/108.883].map(t=>t>(6/29)**3?t**(1/3):1/3*(29/6)**2*t+4/29);return{l:116*e[1]-16,a:500*(e[0]-e[1]),b:200*(e[1]-e[2])}}function y(t){const e=t.l,n=[(e+16)/116+t.a/500,(e+16)/116,(e+16)/116-t.b/200].map(t=>t>6/29?t**3:3*(6/29)**2*(t-4/29));return{x:95.047*n[0],y:100*n[1],z:108.883*n[2]}}function g(t){const e=t.l,n=t.a,i=t.b,r=Math.sqrt(n*n+i*i);let o=Math.atan2(i,n);return o=o>0?o:o+2*Math.PI,{l:e,c:r,h:o}}function p(t){const e=t.l,n=t.c,i=t.h;return{l:e,a:n*Math.cos(i),b:n*Math.sin(i)}}function b(t){return d(u(t))}function m(t){return f(y(t))}function x(t){return g(d(u(t)))}function w(t){return f(y(p(t)))}function j(t){const e=t.r,n=t.g,i=t.b,r=Math.max(e,n,i),o=r-Math.min(e,n,i);let a=r,c=0===o?0:r===e?(n-i)/o%6:r===n?(i-e)/o+2:(e-n)/o+4,l=0===o?0:o/a;return c<0&&(c+=6),c*=60,l*=100,a*=100/255,{h:c,s:l,v:a}}function k(t){const e=(t.h+360)%360/60,n=t.s/100,i=t.v/100*255,r=i*n,o=r*(1-Math.abs(e%2-1));let a;switch(Math.floor(e)){case 0:a={r:r,g:o,b:0};break;case 1:a={r:o,g:r,b:0};break;case 2:a={r:0,g:r,b:o};break;case 3:a={r:0,g:o,b:r};break;case 4:a={r:o,g:0,b:r};break;case 5:case 6:a={r:r,g:0,b:o};break;default:a={r:0,g:0,b:0}}return a.r=Math.round(a.r+i-r),a.g=Math.round(a.g+i-r),a.b=Math.round(a.b+i-r),a}function O(t){return i(t)?t:a(t)?w(t):o(t)?m(t):c(t)?f(t):r(t)?k(t):t}function M(t){return r(t)?t:j(O(t))}function v(t){return o(t)?t:b(O(t))}function z(t){return a(t)?t:x(O(t))}},fcb9:function(t,e,n){"use strict";n.r(e),n.d(e,"previewCIMSymbol",(function(){return h}));var i=n("a915"),r=n("6b49"),o=n("d445"),a=n("2003"),c=n("4bad");const l=new r["CIMSymbolRasterizer"](null,!0),s=a["a"].maxSize;async function h(t,e={}){const{size:n,maxSize:r,node:a,opacity:h}=e,u=e.cimOptions||e,{feature:f,fieldMap:d,geometryType:y,style:g}=u,p=Object(o["b"])(t),b="number"==typeof n?n:null,m=Math.min(null!=b?b:p,null!=r?r:Object(i["h"])(s));m!==p&&(t=t.clone(),Object(o["d"])(t,m,{preserveOutlineWidth:!0}));let x=3;t&&t.data&&t.data.symbol&&"CIMPointSymbol"!==t.data.symbol.type&&(x=1);const w=await l.rasterizeCIMSymbolAsync(t,f,d,y,{scaleFactor:x,style:g}),j=document.createElement("canvas");j.width=w.imageData.width,j.height=w.imageData.height,j.getContext("2d").putImageData(w.imageData,0,0);let k=j.width/x,O=j.height/x;if(null!=n&&(null==(null==e?void 0:e.scale)||(null==e?void 0:e.scale))){const t=k/O;k=t<=1?Math.ceil(m*t):m,O=t<=1?m:Math.ceil(m/t)}const M=new Image(k,O);M.src=j.toDataURL(),null!=h&&(M.style.opacity=""+h);let v=M;if(null!=e.effectView){const t={shape:{type:"image",x:0,y:0,width:k,height:O,src:M.src},fill:null,stroke:null,offset:[0,0]};v=Object(c["a"])([[t]],[k,O],{effectView:e.effectView})}return a&&a.appendChild(v),v}}}]); //# sourceMappingURL=chunk-5f42432e.4ca75bcb.js.map