1import{c as a,h as x$1}from"./chunk-DQ_Rr0Zn.js";import{A as ft,H as u,I as mt,L as p$1,O as c,V as tt$1,_ as R,g as Q,i as De,j as gt,m as Oe,o as E,w as X,x as V,y as S$1,z as q$1}from"./chunk-jYuiIXrj.js";var j=Object.defineProperty;var q=Object.defineProperties;var s=Object.getOwnPropertyDescriptors;var g=Object.getOwnPropertySymbols;var k=Object.prototype.hasOwnProperty;var m=Object.prototype.propertyIsEnumerable;var l=(a,b,c)=>b in a?j(a,b,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[b]=c;var w$1=(a,b)=>{for(var c in b||={})k.call(b,c)&&l(a,c,b[c]);if(g)for(var c of g(b))m.call(b,c)&&l(a,c,b[c]);return a};var x=(a,b)=>q(a,s(b));var y=(a,b)=>{var c={};for(var d in a)k.call(a,d)&&b.indexOf(d)<0&&(c[d]=a[d]);if(a!=null&&g)for(var d of g(a))b.indexOf(d)<0&&m.call(a,d)&&(c[d]=a[d]);return c};var B=(a,b,c)=>new Promise((d,e)=>{var n=f=>{try{h(c.next(f))}catch(i){e(i)}},o=f=>{try{h(c.throw(f))}catch(i){e(i)}},h=f=>f.done?d(f.value):Promise.resolve(f.value).then(n,o);h((c=c.apply(a,b)).next())});function b(i){return i?Array.isArray(i)?ft(i):typeof i==`object`&&`src`in i?ge(i):i:null}function ge(i){if(!i.offset||!i.size)return E.getPattern(i.src,i.color);let e=i.src+`:`+i.offset,t=E.getPattern(e,i.color);if(t)return t;let s=E.get(i.src,null);if(s.getImageState()!==c.LOADED)return null;let r=p$1(i.size[0],i.size[1]);return r.drawImage(s.getImage(1),i.offset[0],i.offset[1],i.size[0],i.size[1],0,0,i.size[0],i.size[1]),De(r.canvas,e,void 0,c.LOADED,i.color,!0),E.getPattern(e,i.color)}var te={PROPERTYCHANGE:`propertychange`};var p=class extends S$1{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(u.CHANGE)}getRevision(){return this.revision_}onInternal(e,t){if(Array.isArray(e)){let s=e.length,r=new Array(s);for(let n=0;n<s;++n)r[n]=tt$1(this,e[n],t);return r}return tt$1(this,e,t)}onceInternal(e,t){let s;if(Array.isArray(e)){let r=e.length;s=new Array(r);for(let n=0;n<r;++n)s[n]=R(this,e[n],t)}else s=R(this,e,t);return t.ol_key=s,s}unInternal(e,t){let s=t.ol_key;if(s)me(s);else if(Array.isArray(e))for(let r=0,n=e.length;r<n;++r)this.removeEventListener(e[r],t);else this.removeEventListener(e,t)}};p.prototype.on;p.prototype.once;p.prototype.un;function me(i){if(Array.isArray(i))for(let e=0,t=i.length;e<t;++e)V(i[e]);else V(i)}var ie=p;var L=class extends Q{constructor(e,t,s){super(e),this.key=t,this.oldValue=s}};var z=class extends ie{constructor(e){super(),this.on,this.once,this.un,mt(this),this.values_=null,e!==void 0&&this.setProperties(e)}get(e){let t;return this.values_&&this.values_.hasOwnProperty(e)&&(t=this.values_[e]),t}getKeys(){return this.values_&&Object.keys(this.values_)||[]}getProperties(){return this.values_&&Object.assign({},this.values_)||{}}getPropertiesInternal(){return this.values_}hasProperties(){return!!this.values_}notify(e,t){let s;s=`change:${e}`,this.hasListener(s)&&this.dispatchEvent(new L(s,e,t)),s=te.PROPERTYCHANGE,this.hasListener(s)&&this.dispatchEvent(new L(s,e,t))}addChangeListener(e,t){this.addEventListener(`change:${e}`,t)}removeChangeListener(e,t){this.removeEventListener(`change:${e}`,t)}set(e,t,s){let r=this.values_||(this.values_={});if(s)r[e]=t;else{let n=r[e];r[e]=t,n!==t&&this.notify(e,n)}}setProperties(e,t){for(let s in e)this.set(s,e[s],t)}applyProperties(e){e.values_&&Object.assign(this.values_||(this.values_={}),e.values_)}unset(e,t){if(this.values_&&e in this.values_){let s=this.values_[e];delete this.values_[e],x$1(this.values_)&&(this.values_=null),t||this.notify(e,s)}}};var se=z;var Ve=`ol-hidden`;var Ne=`ol-unselectable`;var $e=`ol-control`;var Be=`ol-collapsed`;var _e=new RegExp([`^\\s*(?=(?:(?:[-a-z]+\\s*){0,2}(italic|oblique))?)`,`(?=(?:(?:[-a-z]+\\s*){0,2}(small-caps))?)`,`(?=(?:(?:[-a-z]+\\s*){0,2}(bold(?:er)?|lighter|[1-9]00 ))?)`,`(?:(?:normal|\\1|\\2|\\3)\\s*){0,3}((?:xx?-)?`,`(?:small|large)|medium|smaller|larger|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx]))`,`(?:\\s*\\/\\s*(normal|[\\.\\d]+(?:\\%|in|[cem]m|ex|p[ctx])?))`,`?\\s*([-,\\"\\'\\sa-z0-9]+?)\\s*$`].join(``),`i`);var re=[`style`,`variant`,`weight`,`size`,`lineHeight`,`family`];var w={normal:400,bold:700};var I=function(i){let e=i.match(_e);if(!e)return null;let t={lineHeight:`normal`,size:`1.2em`,style:`normal`,weight:`400`,variant:`normal`};for(let s=0,r=re.length;s<r;++s){let n=e[s+1];n!==void 0&&(t[re[s]]=typeof n==`string`?n.trim():n)}return isNaN(Number(t.weight))&&t.weight in w&&(t.weight=w[t.weight]),t.families=t.family.split(/,\s?/).map(s=>s.trim().replace(/^['"]|['"]$/g,``)),t};var Qe=`10px sans-serif`;var O=`#000`;var H=`round`;var Ye=[];var F=`round`;var ae=10;var le=`#000`;var et=`center`;var tt=`middle`;var it=[0,0,0,0];var oe=1;var S=new se;var C=null;var ne;var W={};var pe=new Set([`serif`,`sans-serif`,`monospace`,`cursive`,`fantasy`,`system-ui`,`ui-serif`,`ui-sans-serif`,`ui-monospace`,`ui-rounded`,`emoji`,`math`,`fangsong`]);function ye(i,e,t){return`${i} ${e} 16px "${t}"`}var st=(function(){let e,t;function s(n){return B(this,null,function*(){yield t.ready;let l=yield t.load(n);if(l.length===0)return!1;let o=I(n),a=o.families[0].toLowerCase(),u=o.weight;return l.some(h=>{let f=h.family.replace(/^['"]|['"]$/g,``).toLowerCase(),g=w[h.weight]||h.weight;return f===a&&h.style===o.style&&g==u})})}function r(){return B(this,null,function*(){yield t.ready;let n=!0,l=S.getProperties(),o=Object.keys(l).filter(a=>l[a]<100);for(let a$1=o.length-1;a$1>=0;--a$1){let u=o[a$1],h=l[u];h<100&&((yield s(u))?(a(W),S.set(u,100)):(h+=10,S.set(u,h,!0),h<100&&(n=!1)))}e=void 0,n||(e=setTimeout(r,100))})}return function(n){return B(this,null,function*(){t||(t=q$1?self.fonts:document.fonts);let l=I(n);if(!l)return;let o=l.families,a=!1;for(let u of o){if(pe.has(u))continue;let h=ye(l.style,l.weight,u);S.get(h)===void 0&&(S.set(h,0,!0),a=!0)}a&&(clearTimeout(e),e=setTimeout(r,100))})}})();var ve=(function(){let i;return function(e){let t=W[e];if(t==null){if(q$1){let s=I(e),r=he(e,`Žg`);t=(isNaN(Number(s.lineHeight))?1.2:Number(s.lineHeight))*(r.actualBoundingBoxAscent+r.actualBoundingBoxDescent)}else i||(i=document.createElement(`div`),i.innerHTML=`M`,i.style.minHeight=`0`,i.style.maxHeight=`none`,i.style.height=`auto`,i.style.padding=`0`,i.style.border=`none`,i.style.position=`absolute`,i.style.display=`block`,i.style.left=`-99999px`),i.style.font=e,document.body.appendChild(i),t=i.offsetHeight,document.body.removeChild(i);W[e]=t}return t}})();function he(i,e){return C||(C=p$1(1,1)),i!=ne&&(C.font=i,ne=C.font),C.measureText(e)}function ue(i,e){return he(i,e).width}function rt(i,e,t){if(e in t)return t[e];let s=e.split(` 2`).reduce((r,n)=>Math.max(r,ue(i,n)),0);return t[e]=s,s}function nt(i,e){let t=[],s=[],r=[],n=0,l=0,o=0,a=0;for(let u=0,h=e.length;u<=h;u+=2){let f=e[u];if(f===` 3`||u===h){n=Math.max(n,l),r.push(l),l=0,o+=a,a=0;continue}let g=e[u+1]||i.font,y=ue(g,f);t.push(y),l+=y;let v=ve(g);s.push(v),a=Math.max(a,v)}return{width:n,height:o,widths:t,heights:s,lineWidths:r}}function at(i,e,t,s,r,n,l,o,a,u,h){i.save(),t!==1&&(i.globalAlpha===void 0?i.globalAlpha=f=>f.globalAlpha*=t:i.globalAlpha*=t),e&&i.transform.apply(i,e),s.c
3ontextInstructions?(i.translate(a,u),i.scale(h[0],h[1]),Ae(s,i)):h[0]<0||h[1]<0?(i.translate(a,u),i.scale(h[0],h[1]),i.drawImage(s,r,n,l,o,0,0,l,o)):i.drawImage(s,r,n,l,o,a,u,l*h[0],o*h[1]),i.restore()}function Ae(i,e){let t=i.contextInstructions;for(let s=0,r=t.length;s<r;s+=2)Array.isArray(t[s+1])?e[t[s]].apply(e,t[s+1]):e[t[s]]=t[s+1]}function ht(i){return i[0]>0&&i[1]>0}function ut(i,e,t){return t===void 0&&(t=[0,0]),t[0]=i[0]*e+.5|0,t[1]=i[1]*e+.5|0,t}function T(i,e){return Array.isArray(i)?i:(e===void 0?e=[i,i]:(e[0]=i,e[1]=i),e)}var ce=class i{constructor(e){this.opacity_=e.opacity,this.rotateWithView_=e.rotateWithView,this.rotation_=e.rotation,this.scale_=e.scale,this.scaleArray_=T(e.scale),this.displacement_=e.displacement,this.declutterMode_=e.declutterMode}clone(){let e=this.getScale();return new i({opacity:this.getOpacity(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getOpacity(){return this.opacity_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getDisplacement(){return this.displacement_}getDeclutterMode(){return this.declutterMode_}getAnchor(){return gt()}getImage(e){return gt()}getHitDetectionImage(){return gt()}getPixelRatio(e){return 1}getImageState(){return gt()}getImageSize(){return gt()}getOrigin(){return gt()}getSize(){return gt()}setDisplacement(e){this.displacement_=e}setOpacity(e){this.opacity_=e}setRotateWithView(e){this.rotateWithView_=e}setRotation(e){this.rotation_=e}setScale(e){this.scale_=e,this.scaleArray_=T(e)}listenImageChange(e){gt()}load(){gt()}unlistenImageChange(e){gt()}ready(){return Promise.resolve()}};var fe=class i extends ce{constructor(e){super({opacity:1,rotateWithView:e.rotateWithView!==void 0?e.rotateWithView:!1,rotation:e.rotation!==void 0?e.rotation:0,scale:e.scale!==void 0?e.scale:1,displacement:e.displacement!==void 0?e.displacement:[0,0],declutterMode:e.declutterMode}),this.hitDetectionCanvas_=null,this.fill_=e.fill!==void 0?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius=e.radius,this.radius2_=e.radius2,this.angle_=e.angle!==void 0?e.angle:0,this.stroke_=e.stroke!==void 0?e.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?c.LOADING:c.LOADED,this.imageState_===c.LOADING&&this.ready().then(()=>this.imageState_=c.LOADED),this.render()}clone(){let e=this.getScale(),t=new i({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(e)?e.slice():e,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}getAnchor(){let e=this.size_,t=this.getDisplacement(),s=this.getScaleArray();return[e[0]/2-t[0]/s[0],e[1]/2+t[1]/s[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(e){this.fill_=e,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(e){let t=this.fill_?.getKey(),s=`${e},${this.angle_},${this.radius},${this.radius2_},${this.points_},${t}`+Object.values(this.renderOptions_).join(`,`),r=E.get(s,null)?.getImage(1);if(!r){let n=this.renderOptions_,l=Math.ceil(n.size*e),o=p$1(l,l);this.draw_(n,o,e),r=o.canvas;let a=new Oe(r,void 0,null,c.LOADED,null);E.set(s,null,a),createImageBitmap(r).then(u=>{a.setImage(u)})}return r}getPixelRatio(e){return e}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius}setRadius(e){this.radius!==e&&(this.radius=e,this.render())}getRadius2(){return this.radius2_}setRadius2(e){this.radius2_!==e&&(this.radius2_=e,this.render())}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(e){this.stroke_=e,this.render()}listenImageChange(e){}load(){}unlistenImageChange(e){}
3calculateLineJoinSize_(e,t,s){if(t===0||this.points_===Infinity||e!==`bevel`&&e!==`miter`)return t;let r=this.radius,n=this.radius2_===void 0?r:this.radius2_;if(r<n){let k=r;r=n,n=k}let l=this.radius2_===void 0?this.points_:this.points_*2,o=2*Math.PI/l,a=n*Math.sin(o),u=Math.sqrt(n*n-a*a),h=r-u,f=Math.sqrt(a*a+h*h),g=f/a;if(e===`miter`&&g<=s)return g*t;let y=t/2/g,v=t/2*(h/f),x=Math.sqrt((r+y)*(r+y)+v*v)-r;if(this.radius2_===void 0||e===`bevel`)return x*2;let A=r*Math.sin(o),de=Math.sqrt(r*r-A*A),B=n-de,j=Math.sqrt(A*A+B*B)/A;if(j<=s){let k=j*t/2-n-r;return 2*Math.max(x,k)}return x*2}createRenderOptions(){let e=H,t=F,s=0,r=null,n=0,l,o=0;this.stroke_&&(l=b(this.stroke_.getColor()??`#000`),o=this.stroke_.getWidth()??1,r=this.stroke_.getLineDash(),n=this.stroke_.getLineDashOffset()??0,t=this.stroke_.getLineJoin()??`round`,e=this.stroke_.getLineCap()??`round`,s=this.stroke_.getMiterLimit()??10);let a=this.calculateLineJoinSize_(t,o,s),u=Math.max(this.radius,this.radius2_||0),h=Math.ceil(2*u+a);return{strokeStyle:l,strokeWidth:o,size:h,lineCap:e,lineDash:r,lineDashOffset:n,lineJoin:t,miterLimit:s}}render(){this.renderOptions_=this.createRenderOptions();let e=this.renderOptions_.size;this.hitDetectionCanvas_=null,this.size_=[e,e]}draw_(e,t,s){if(t.scale(s,s),t.translate(e.size/2,e.size/2),this.createPath_(t),this.fill_){let r=this.fill_.getColor();r===null&&(r=`#000`),t.fillStyle=b(r),t.fill()}e.strokeStyle&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.miterLimit=e.miterLimit,t.stroke())}createHitDetectionCanvas_(e){let t;if(this.fill_){let s=this.fill_.getColor(),r=0;typeof s==`string`&&(s=X(s)),s===null?r=1:Array.isArray(s)&&(r=s.length===4?s[3]:1),r===0&&(t=p$1(e.size,e.size),this.drawHitDetectionCanvas_(e,t))}return t?t.canvas:this.getImage(1)}createPath_(e){let t=this.points_,s=this.radius;if(t===Infinity)e.arc(0,0,s,0,2*Math.PI);else{let r=this.radius2_===void 0?s:this.radius2_;this.radius2_!==void 0&&(t*=2);let n=this.angle_-Math.PI/2,l=2*Math.PI/t;for(let o=0;o<t;o++){let a=n+o*l,u=o%2===0?s:r;e.lineTo(u*Math.cos(a),u*Math.sin(a))}e.closePath()}}drawHitDetectionCanvas_(e,t){t.translate(e.size/2,e.size/2),this.createPath_(t),t.fillStyle=O,t.fill(),e.strokeStyle&&(t.strokeStyle=e.strokeStyle,t.lineWidth=e.strokeWidth,e.lineDash&&(t.setLineDash(e.lineDash),t.lineDashOffset=e.lineDashOffset),t.lineJoin=e.lineJoin,t.miterLimit=e.miterLimit,t.stroke())}ready(){return this.fill_?this.fill_.ready():Promise.resolve()}};var wt=class i extends fe{constructor(e){e=e||{radius:5},super({points:Infinity,fill:e.fill,radius:e.radius,stroke:e.stroke,scale:e.scale!==void 0?e.scale:1,rotation:e.rotation!==void 0?e.rotation:0,rotateWithView:e.rotateWithView!==void 0?e.rotateWithView:!1,displacement:e.displacement!==void 0?e.displacement:[0,0],declutterMode:e.declutterMode})}clone(){let e=this.getScale(),t=new i({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(e)?e.slice():e,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return t.setOpacity(this.getOpacity()),t}};export{B as A,rt as C,tt as D,te as E,x as M,y as N,ut as O,nt as S,st as T,ht as _,Ne as a,le as b,S as c,Ye as d,at as f,fe as g,et as h,H as i,w$1 as j,wt as k,T as l,ce as m,Be as n,O as o,b as p,F as r,Qe as s,$e as t,Ve as u,ie as v,se as w,me as x,it as y};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.