PageSourceSearch

https://www.thurgaukultur.ch/customers/tgk/frontend/static/js/shared.js?3.10.0

js thurgaukultur.ch collected 2026-10-02 18:46:25 UTC 546,719 bytes, 3 lines download raw bytes

1/*! For license information please see shared.js.LICENSE.txt */
2(self.webpackChunktgk_frontend=self.webpackChunktgk_frontend||[]).push([[804],{25:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=/^(217|331)$/.test(i.j)?class{constructor(){this.disposed=!1}dispose(){this.disposed||(this.disposed=!0,this.disposeInternal())}disposeInternal(){}}:null},34:(t,e,i)=>{"use strict";var n=i(4901);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},71:(t,e,i)=>{"use strict";i.d(e,{A:()=>h});var n=i(4120),r=i(2135),s=i(1685);const o="length";class a extends s.Ay{constructor(t,e,i){super(t),this.element=e,this.index=i}}class l extends n.A{constructor(t,e){if(super(),this.on,this.once,this.un,e=e||{},this.unique_=!!e.unique,this.array_=t||[],this.unique_)for(let t=0,e=this.array_.length;t<e;++t)this.assertUnique_(this.array_[t],t);this.updateLength_()}clear(){for(;this.getLength()>0;)this.pop()}extend(t){for(let e=0,i=t.length;e<i;++e)this.push(t[e]);return this}forEach(t){const e=this.array_;for(let i=0,n=e.length;i<n;++i)t(e[i],i,e)}getArray(){return this.array_}item(t){return this.array_[t]}getLength(){return this.get(o)}insertAt(t,e){if(t<0||t>this.getLength())throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new a(r.A.ADD,e,t))}pop(){return this.removeAt(this.getLength()-1)}push(t){this.unique_&&this.assertUnique_(t);const e=this.getLength();return this.insertAt(e,t),this.getLength()}remove(t){const e=this.array_;for(let i=0,n=e.length;i<n;++i)if(e[i]===t)return this.removeAt(i)}removeAt(t){if(t<0||t>=this.getLength())return;const e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new a(r.A.REMOVE,e,t)),e}setAt(t,e){if(t>=this.getLength())return void this.insertAt(t,e);if(t<0)throw new Error("Index out of bounds: "+t);this.unique_&&this.assertUnique_(e,t);const i=this.array_[t];this.array_[t]=e,this.dispatchEvent(new a(r.A.REMOVE,i,t)),this.dispatchEvent(new a(r.A.ADD,e,t))}updateLength_(){this.set(o,this.array_.length)}assertUnique_(t,e){for(let i=0,n=this.array_.length;i<n;++i)if(this.array_[i]===t&&i!==e)throw new Error("Duplicate item added to a unique collection")}}const h=/^(217|331)$/.test(i.j)?l:null},186:(t,e,i)=>{"use strict";function n(t,e,i,n){return void 0!==n?(n[0]=t,n[1]=e,n[2]=i,n):[t,e,i]}function r(t,e,i){return t+"/"+e+"/"+i}function s(t){return r(t[0],t[1],t[2])}function o(t){return t.split("/").map(Number)}function a(t){return(t[1]<<t[0])+t[2]}function l(t,e){const i=t[0],n=t[1],r=t[2];if(e.getMinZoom()>i||i>e.getMaxZoom())return!1;const s=e.getFullTileRange(i);return!s||s.containsXY(n,r)}i.d(e,{K:()=>o,N:()=>n,N5:()=>l,dp:()=>r,i7:()=>s,tW:()=>a})},190:(t,e,i)=>{"use strict";i.d(e,{A:()=>l});var n=i(8143),r=i(1078),s=i(8711),o=i(3938);class a extends n.A{constructor(t,e,i,n,r,s){super(t,e,s),this.crossOrigin_=n,this.src_=i,this.key=i,this.image_=new Image,null!==n&&(this.image_.crossOrigin=n),this.unlisten_=null,this.tileLoadFunction_=r}getImage(){return this.image_}setImage(t){this.image_=t,this.state=r.A.LOADED,this.unlistenImage_(),this.changed()}handleImageError_(){this.state=r.A.ERROR,this.unlistenImage_(),this.image_=function(){const t=(0,s.Y)(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}(),this.changed()}handleImageLoad_(){const t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=r.A.LOADED:this.state=r.A.EMPTY,this.unlistenImage_(),this.changed()}load(){this.state==r.A.ERROR&&(this.state=r.A.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==r.A.IDLE&&(this.state=r.A.LOADING,this.changed(),this.tileLoadFunction_(this,this.src_),this.unlisten_=(0,o.f6)(this.image_,this.handleImageLoad_.bind(this),this.handleImageError_.bind(this)))}unlistenImage_(){this.unlisten_&&(this.unlisten_(),this.unlisten_=null)}}const l=/^(217|331)$/.test(i.j)?a:null},235:(t,e,i)=>{"use strict";var n=i(9213).forEach,r=i(4598)("forEach");t.exports=r?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},283:(t,e,i)=>{"use strict";var n=i(9504),r=i(9039),s=i(4901),o=i(9297),a=i(3724),l=i(350).CONFIGURABLE,h=i(3706),c=i(1181),u=c.enforce,d=c.get,f=String,p=Object.defineProperty,g=n("".slice),m=n("".replace),v=n([].join),_=a&&!r((function(){return 8!==p((function(){}),"length",{value:8}).length}
2)),y=String(String).split("String"),x=t.exports=function(t,e,i){"Symbol("===g(f(e),0,7)&&(e="["+m(f(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),i&&i.getter&&(e="get "+e),i&&i.setter&&(e="set "+e),(!o(t,"name")||l&&t.name!==e)&&(a?p(t,"name",{value:e,configurable:!0}):t.name=e),_&&i&&o(i,"arity")&&t.length!==i.arity&&p(t,"length",{value:i.arity});try{i&&o(i,"constructor")&&i.constructor?a&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var n=u(t);return o(n,"source")||(n.source=v(y,"string"==typeof e?e:"")),t};Function.prototype.toString=x((function(){return s(this)&&d(this).source||h(this)}),"toString")},350:(t,e,i)=>{"use strict";var n=i(3724),r=i(9297),s=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=r(s,"name"),l=a&&"something"===function(){}.name,h=a&&(!n||n&&o(s,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:h}},409:(t,e,i)=>{"use strict";if(i.d(e,{A:()=>s,n:()=>o}),/^(217|331)$/.test(i.j))var n=i(9825);if(/^(217|331)$/.test(i.j))var r=i(9528);function s(){return{variables:{},properties:{},resolution:NaN,featureId:null,geometryType:""}}function o(t,e,i){const r=(0,n.qg)(t,i);if(!(0,n.ho)(e,r.type)){const t=(0,n.go)(e),i=(0,n.go)(r.type);throw new Error(`Expected expression to be of type ${t}, got ${i}`)}return a(r,i)}function a(t,e){if(t instanceof n._D){if(t.type===n.mE&&"string"==typeof t.value){const e=(0,r.sH)(t.value);return function(){return e}}return function(){return t.value}}const i=t.operator;switch(i){case n.ZD.Number:case n.ZD.String:case n.ZD.Coalesce:return function(t,e){const i=t.operator,r=t.args.length,s=new Array(r);for(let i=0;i<r;++i)s[i]=a(t.args[i],e);switch(i){case n.ZD.Coalesce:return t=>{for(let e=0;e<r;++e){const i=s[e](t);if(null!=i)return i}throw new Error("Expected one of the values to be non-null")};case n.ZD.Number:case n.ZD.String:return t=>{for(let e=0;e<r;++e){const n=s[e](t);if(typeof n===i)return n}throw new Error(`Expected one of the values to be a ${i}`)};default:throw new Error(`Unsupported assertion operator ${i}`)}}(t,e);case n.ZD.Get:case n.ZD.Var:return function(t){const e=t.args[0].value;switch(t.operator){case n.ZD.Get:return t=>t.properties[e];case n.ZD.Var:return t=>t.variables[e];default:throw new Error(`Unsupported accessor operator ${t.operator}`)}}(t);case n.ZD.Id:return t=>t.featureId;case n.ZD.GeometryType:return t=>t.geometryType;case n.ZD.Concat:{const i=t.args.map((t=>a(t,e)));return t=>"".concat(...i.map((e=>e(t).toString())))}case n.ZD.Resolution:return t=>t.resolution;case n.ZD.Any:case n.ZD.All:case n.ZD.Between:case n.ZD.In:case n.ZD.Not:return function(t,e){const i=t.operator,r=t.args.length,s=new Array(r);for(let i=0;i<r;++i)s[i]=a(t.args[i],e);switch(i){case n.ZD.Any:return t=>{for(let e=0;e<r;++e)if(s[e](t))return!0;return!1};case n.ZD.All:return t=>{for(let e=0;e<r;++e)if(!s[e](t))return!1;return!0};case n.ZD.Between:return t=>{const e=s[0](t),i=s[1](t),n=s[2](t);return e>=i&&e<=n};case n.ZD.In:return t=>{const e=s[0](t);for(let i=1;i<r;++i)if(e===s[i](t))return!0;return!1};case n.ZD.Not:return t=>!s[0](t);default:throw new Error(`Unsupported logical operator ${i}`)}}(t,e);case n.ZD.Equal:case n.ZD.NotEqual:case n.ZD.LessThan:case n.ZD.LessThanOrEqualTo:case n.ZD.GreaterThan:case n.ZD.GreaterThanOrEqualTo:return function(t,e){const i=t.operator,r=a(t.args[0],e),s=a(t.args[1],e);switch(i){case n.ZD.Equal:return t=>r(t)===s(t);case n.ZD.NotEqual:return t=>r(t)!==s(t);case n.ZD.LessThan:return t=>r(t)<s(t);case n.ZD.LessThanOrEqualTo:return t=>r(t)<=s(t);case n.ZD.GreaterThan:return t=>r(t)>s(t);case n.ZD.GreaterThanOrEqualTo:return t=>r(t)>=s(t);default:throw new Error(`Unsupported comparison operator ${i}`)}}(t,e);case n.ZD.Multiply:case n.ZD.Divide:case n.ZD.Add:case n.ZD.Subtract:case n.ZD.Clamp:case n.ZD.Mod:case n.ZD.Pow:case n.ZD.Abs:case n.ZD.Floor:case n.ZD.Ceil:case n.ZD.Round:case n.ZD.Sin:case n.ZD.Cos:case n.ZD.Atan:case n.ZD.Sqrt:return function(t,e){const i=t.operator,r=t.args.length,s=new Array(r);for(let i=0;i<r;++i)s[i]=a(t.args[i],e);switch(i){case n.ZD.Multiply:return t=>{let e=1;for(let i=0;i<r;++i)e*=s[i](t);return e};case n.ZD.Divide:return t=>s[0](t)/s[1](t);case n.ZD.Add:return t=>{let e=0;for(let i=0;i<r;++i)e+=s[i](t);return e};case n.ZD.Subtract:return t=>s[0](t)-s[1](t);case n.ZD.Clamp:return t=>{const e=s[0](t),i=s[1](t);if(e<i)return i;const n=s[2](t);return e>n?n:e};case n.ZD.Mod:return t=>s[0](t)%s[1](t);case n.ZD.Pow:return t=>Math.pow(s[0](t),s[1](t));case n.ZD.Abs:return t=>Math.abs(s[0](t));case n.ZD.Floor:return t=>Math.floor(s[0](t));case n.ZD.Ceil:return t=>Math.ceil(s[0](t));case n.ZD.Round:return t=>Math.round(s[0](t));case n.ZD.Sin:return t=>Math.sin(s[0](t));case n.ZD.Cos:return t=>Math.cos(s[0](t));case n.ZD.Atan:return 2===r?t=>Math.atan2(s[0](t),s[1](t)):t=>Math.atan(s[0](t));case n.ZD.Sqrt:return t=>Math.sqrt(s[0](t));default:throw new Error(`Unsupported numeric operator ${i}`)}}(t,e);case n.ZD.Case:return function(t,e){const i=t.args.length,n=new Array(i);for(let r=0;r<i;++r)n[r]=a(t.args[r],e);return t=>{for(let e=0;e<i-1;e+=2)if(n[e](t))return n[e+1](t);return n[i-1](t)}}(t,e);case n.ZD.Match:return function(t,e){const i=t.args.length,n=new Array(i);for(let r=0;r<i;++r)n[r]=a(t.args[r],e);return t=>{const e=n[0](t);for(let r=1;r<i;r+=2)if(e===n[r](t))return n[r+1](t);return n[i-1](t)}}(t,e);case n.ZD.Interpolate:return function(t,e){const i=t.args.length,n=new Array(i);for(let r=0;r<i;++r)n[r]=a(t.args[r],e);return t=>{const e=n[0](t),s=n[1](t);let o,a;for(let c=2;c<i;c+=2){const i=n[c](t);let u=n[c+1](t);const d=Array.isArray(u);if(d&&(u=(0,r.fu)(u)),i>=s)return 2===c?u:d?h(e,s,o,a,i,u):l(e,s,o,a,i,u);o=i,a=u}return a}}(t,e);case n.ZD.ToString:return function(t,e){const i=t.operator,s=t.args.length,o=new Array(s);for(let i=0;i<s;++i)o[i]=a(t.args[i],e);if(i===n.ZD.ToString)return e=>{const i=o[0](e);return t.args[0].type===n.mE?(0,r.dI)(i):i.toString()};throw new Error(`Unsupported convert operator ${i}`)}(t,e);default:throw new Error(`Unsupported operator ${i}`)}}function l(t,e,i,n,r,s){const o=r-i;
2if(0===o)return n;const a=e-i;return n+(1===t?a/o:(Math.pow(t,a)-1)/(Math.pow(t,o)-1))*(s-n)}function h(t,e,i,n,s,o){if(0==s-i)return n;const a=(0,r.eE)(n),h=(0,r.eE)(o);let c=h[2]-a[2];c>180?c-=360:c<-180&&(c+=360);const u=[l(t,e,i,a[0],s,h[0]),l(t,e,i,a[1],s,h[1]),a[2]+l(t,e,i,0,s,c),l(t,e,i,n[3],s,o[3])];return(0,r.S8)((0,r.cD)(u))}},416:(t,e,i)=>{"use strict";i.d(e,{A:()=>V});var n=i(4720),r=i(8130),s=i(6429),o=i(915);class a extends r.A{constructor(t,e,i,n){super(t,e,i,n),this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0,this.declutterMode_=void 0,this.declutterImageWithText_=void 0}drawPoint(t,e,i){if(!this.image_||this.maxExtent&&!(0,o.Ym)(this.maxExtent,t.getFlatCoordinates()))return;this.beginGeometry(t,e,i);const n=t.getFlatCoordinates(),r=t.getStride(),a=this.coordinates.length,l=this.appendFlatPointCoordinates(n,r);this.instructions.push([s.Ay.DRAW_IMAGE,a,l,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([s.Ay.DRAW_IMAGE,a,l,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}drawMultiPoint(t,e,i){if(!this.image_)return;this.beginGeometry(t,e,i);const n=t.getFlatCoordinates(),r=[];for(let e=0,i=n.length;e<i;e+=t.getStride())this.maxExtent&&!(0,o.Ym)(this.maxExtent,n.slice(e,e+2))||r.push(n[e],n[e+1]);const a=this.coordinates.length,l=this.appendFlatPointCoordinates(r,2);this.instructions.push([s.Ay.DRAW_IMAGE,a,l,this.image_,this.anchorX_*this.imagePixelRatio_,this.anchorY_*this.imagePixelRatio_,Math.ceil(this.height_*this.imagePixelRatio_),this.opacity_,this.originX_*this.imagePixelRatio_,this.originY_*this.imagePixelRatio_,this.rotateWithView_,this.rotation_,[this.scale_[0]*this.pixelRatio/this.imagePixelRatio_,this.scale_[1]*this.pixelRatio/this.imagePixelRatio_],Math.ceil(this.width_*this.imagePixelRatio_),this.declutterMode_,this.declutterImageWithText_]),this.hitDetectionInstructions.push([s.Ay.DRAW_IMAGE,a,l,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.height_,1,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_,this.declutterMode_,this.declutterImageWithText_]),this.endGeometry(e)}finish(){return this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.imagePixelRatio_=void 0,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0,super.finish()}setImageStyle(t,e){const i=t.getAnchor(),n=t.getSize(),r=t.getOrigin();this.imagePixelRatio_=t.getPixelRatio(this.pixelRatio),this.anchorX_=i[0],this.anchorY_=i[1],this.hitDetectionImage_=t.getHitDetectionImage(),this.image_=t.getImage(this.pixelRatio),this.height_=n[1],this.opacity_=t.getOpacity(),this.originX_=r[0],this.originY_=r[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScaleArray(),this.width_=n[0],this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}}const l=a;var h=i(8774);class c extends r.A{constructor(t,e,i,n){super(t,e,i,n)}drawFlatCoordinates_(t,e,i,n){const r=this.coordinates.length,o=this.appendFlatLineCoordinates(t,e,i,n,!1,!1),a=[s.Ay.MOVE_TO_LINE_TO,r,o];return this.instructions.push(a),this.hitDetectionInstructions.push(a),i}drawLineString(t,e,i){const n=this.state,r=n.strokeStyle,o=n.lineWidth;if(void 0===r||void 0===o)return;this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e,i),this.hitDetectionInstructions.push([s.Ay.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,h.Oq,h.vk],s.th);const a=t.getFlatCoordinates(),l=t.getStride();this.drawFlatCoordinates_(a,0,a.length,l),this.hitDetectionInstructions.push(s.VD),this.endGeometry(e)}drawMultiLineString(t,e,i){const n=this.state,r=n.strokeStyle,o=n.lineWidth;if(void 0===r||void 0===o)return;this.updateStrokeStyle(n,this.applyStroke),this.beginGeometry(t,e,i),this.hitDetectionInstructions.push([s.Ay.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,h.Oq,h.vk],s.th);const a=t.getEnds(),l=t.getFlatCoordinates(),c=t.getStride();let u=0;for(let t=0,e=a.length;t<e;++t)u=this.drawFlatCoordinates_(l,u,a[t],c);this.hitDetectionInstructions.push(s.VD),this.endGeometry(e)}finish(){const t=this.state;return null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&this.instructions.push(s.VD),this.reverseHitDetectionInstructions(),this.state=null,super.finish()}applyStroke(t){null!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&(this.instructions.push(s.VD),t.lastStroke=this.coordinates.length),t.lastStroke=0,super.applyStroke(t),this.instructions.push(s.th)}}const u=c;var d=i(3671);class f extends r.A{constructor(t,e,i,n){super(t,e,i,n)}drawFlatCoordinatess_(t,e,i,n){const r=this.state,o=void 0!==r.fillStyle,a=void 0!==r.strokeStyle,l=i.length;this.instructions.push(s.th),this.hitDetectionInstructions.push(s.th);for(let r=0;r<l;++r){const o=i[r],l=this.coordinates.length,h=this.appendFlatLineCoordinates(t,e,o,n,!0,!a),c=[s.Ay.MOVE_TO_LINE_TO,l,h];this.instructions.push(c),this.hitDetectionInstructions.push(c),a&&(this.instructions.push(s.kx),this.hitDetectionInstructions.push(s.kx)),e=o}return o&&(this.instructions.push(s.I5),this.hitDetectionInstructions.push(s.I5)),a&&(this.instructions.push(s.VD),this.hitDetectionInstructions.push(s.VD)),e}drawCircle(t,e,i){const n=this.state,r=n.fillStyle,o=n.strokeStyle;if(void 0===r&&void 0===o)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e,i),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([s.Ay.SET_FILL_STYLE,h.qY]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([s.Ay.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,h.Oq,h.vk]);const a=t.getFlatCoordinates(),l=t.getStride(),c=this.coordinates.length;this.appendFlatLineCoordinates(a,0,a.length,l,!1,!1);const u=[s.Ay.CIRCLE,c];this.instructions.push(s.th,u),this.hitDetectionInstructions.push(s.th,u),void 0!==n.fillStyle&&(this.instructions.push(s.I5),this.hitDetectionInstructions.push(s.I5)),void 0!==n.strokeStyle&&(this.instructions.push(s.VD),this.hitDetectionInstructions.push(s.VD)),this.endGeometry(e)}drawPolygon(t,e,i){const n=this.state,r=n.fillStyle,o=n.strokeStyle;if(void 0===r&&void 0===o)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e,i),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([s.Ay.SET_FILL_STYLE,h.qY]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([s.Ay.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,h.Oq,h.vk]);const a=t.getEnds(),l=t.getOrientedFlatCoordinates(),c=t.getStride();this.drawFlatCoordinatess_(l,0,a,c),this.endGeometry(e)}drawMultiPolygon(t,e,i){const n=this.state,r=n.fillStyle,o=n.strokeStyle;if(void 0===r&&void 0===o)return;this.setFillStrokeStyles_(),this.beginGeometry(t,e,i),void 0!==n.fillStyle&&this.hitDetectionInstructions.push([s.Ay.SET_FILL_STYLE,h.qY]),void 0!==n.strokeStyle&&this.hitDetectionInstructions.push([s.Ay.SET_STROKE_STYLE,n.strokeStyle,n.lineWidth,n.lineCap,n.lineJoin,n.miterLimit,h.Oq,h.vk]);const a=t.getEndss(),l=t.getOrientedFlatCoordinates(),c=t.getStride();let u=0;for(let t=0,e=a.length;t<e;++t)u=this.drawFlatCoordinatess_(l,u,a[t],c);this.endGeometry(e)}finish(){this.reverseHitDetectionInstructions(),this.state=null;const t=this.tolerance;if(0!==t){const e=this.coordinates;for(let i=0,n=e.length;i<n;++i)e[i]=(0,d.n$)(e[i],t)}return super.finish()}setFillStrokeStyles_(){const t=this.state;void 0!==t.fillStyle&&this.updateFillStyle(t,this.createFill),void 0!==t.strokeStyle&&this.updateStrokeStyle(t,this.applyStroke)}}const p=f;var g=i(3624);const m={Circle:p,Default:r.A,Image:l,LineString:u,Polygon:p,Text:g.A},v=class{constructor(t,e,i,n){this.tolerance_=t,this.maxExtent_=e,this.pixelRatio_=n,this.resolution_=i,this.buildersByZIndex_
2={}}finish(){const t={};for(const e in this.buildersByZIndex_){t[e]=t[e]||{};const i=this.buildersByZIndex_[e];for(const n in i){const r=i[n].finish();t[e][n]=r}}return t}getBuilder(t,e){const i=void 0!==t?t.toString():"0";let n=this.buildersByZIndex_[i];void 0===n&&(n={},this.buildersByZIndex_[i]=n);let r=n[e];return void 0===r&&(r=new(0,m[e])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_),n[e]=r),r}};var _=i(1623),y=i(2348),x=i(6514),w=i(9703),b=i(8711),E=i(3530),C=i(7622);const A=["Polygon","Circle","LineString","Image","Text","Default"],S=["Image","Text"],T=A.filter((t=>!S.includes(t))),I={},R=class{constructor(t,e,i,n,r,s,o){this.maxExtent_=t,this.overlaps_=n,this.pixelRatio_=i,this.resolution_=e,this.renderBuffer_=s,this.executorsByZIndex_={},this.hitDetectionContext_=null,this.hitDetectionTransform_=(0,w.vt)(),this.renderedContext_=null,this.deferredZIndexContexts_={},this.createExecutors_(r,o)}clip(t,e){const i=this.getClipCoords(e);t.beginPath(),t.moveTo(i[0],i[1]),t.lineTo(i[2],i[3]),t.lineTo(i[4],i[5]),t.lineTo(i[6],i[7]),t.clip()}createExecutors_(t,e){for(const i in t){let n=this.executorsByZIndex_[i];void 0===n&&(n={},this.executorsByZIndex_[i]=n);const r=t[i];for(const t in r){const i=r[t];n[t]=new y.A(this.resolution_,this.pixelRatio_,this.overlaps_,i,e)}}}hasExecutors(t){for(const e in this.executorsByZIndex_){const i=this.executorsByZIndex_[e];for(let e=0,n=t.length;e<n;++e)if(t[e]in i)return!0}return!1}forEachFeatureAtCoordinate(t,e,i,n,r,s){const a=2*(n=Math.round(n))+1,l=(0,w.Zz)(this.hitDetectionTransform_,n+.5,n+.5,1/e,-1/e,-i,-t[0],-t[1]),h=!this.hitDetectionContext_;h&&(this.hitDetectionContext_=(0,b.Y)(a,a,void 0,{willReadFrequently:!0}));const c=this.hitDetectionContext_;let u;c.canvas.width!==a||c.canvas.height!==a?(c.canvas.width=a,c.canvas.height=a):h||c.clearRect(0,0,a,a),void 0!==this.renderBuffer_&&(u=(0,o.S5)(),(0,o.$C)(u,t),(0,o.r)(u,e*(this.renderBuffer_+n),u));const d=function(t){if(void 0!==I[t])return I[t];const e=2*t+1,i=t*t,n=new Array(i+1);for(let r=0;r<=t;++r)for(let s=0;s<=t;++s){const o=r*r+s*s;if(o>i)break;let a=n[o];a||(a=[],n[o]=a),a.push(4*((t+r)*e+(t+s))+3),r>0&&a.push(4*((t-r)*e+(t+s))+3),s>0&&(a.push(4*((t+r)*e+(t-s))+3),r>0&&a.push(4*((t-r)*e+(t-s))+3))}const r=[];for(let t=0,e=n.length;t<e;++t)n[t]&&r.push(...n[t]);return I[t]=r,r}(n);let f;function p(t,e,i){const o=c.getImageData(0,0,a,a).data;for(let l=0,h=d.length;l<h;l++)if(o[d[l]]>0){if(!s||"none"===i||"Image"!==f&&"Text"!==f||s.includes(t)){const i=(d[l]-3)/4,s=n-i%a,o=n-(i/a|0),h=r(t,e,s*s+o*o);if(h)return h}c.clearRect(0,0,a,a);break}}const g=Object.keys(this.executorsByZIndex_).map(Number);let m,v,_,y,E;for(g.sort(x.V_),m=g.length-1;m>=0;--m){const t=g[m].toString();for(_=this.executorsByZIndex_[t],v=A.length-1;v>=0;--v)if(f=A[v],y=_[f],void 0!==y&&(E=y.executeHitDetection(c,l,i,p,u),E))return E}}getClipCoords(t){const e=this.maxExtent_;if(!e)return null;const i=e[0],n=e[1],r=e[2],s=e[3],o=[i,n,i,s,r,s,r,n];return(0,C.Rc)(o,0,8,2,t,o),o}isEmpty(){return(0,E.p)(this.executorsByZIndex_)}execute(t,e,i,n,r,s,o){const a=Object.keys(this.executorsByZIndex_).map(Number);a.sort(x.V_),s=s||A;const l=A.length;let h,c,u,d,f;for(o&&a.reverse(),h=0,c=a.length;h<c;++h){const c=a[h].toString();for(f=this.executorsByZIndex_[c],u=0,d=s.length;u<d;++u){const c=s[u],d=f[c];if(void 0!==d){const s=null===o?void 0:d.getZIndexContext(),f=s?s.getContext():t,p=this.maxExtent_&&"Image"!==c&&"Text"!==c;if(p&&(f.save(),this.clip(f,i)),s&&"Text"!==c&&"Image"!==c?s.pushFunction((t=>d.execute(t,e,i,n,r,o))):d.execute(f,e,i,n,r,o),p&&f.restore(),s){s.offset();const t=a[h]*l+u;this.deferredZIndexContexts_[t]||(this.deferredZIndexContexts_[t]=[]),this.deferredZIndexContexts_[t].push(s)}}}}this.renderedContext_=t}getDeferredZIndexContexts(){return this.deferredZIndexContexts_}getRenderedContext(){return this.renderedContext_}renderDeferred(){const t=this.deferredZIndexContexts_,e=Object.keys(t).map(Number).sort(x.V_);for(let i=0,n=e.length;i<n;
2++i)t[e[i]].forEach((t=>{t.draw(this.renderedContext_),t.clear()})),t[e[i]].length=0}};var D=i(3984),M=i(2703),L=i(2236),O=i(9700),k=i(1597),P=i(7083);const F=.5;var N=i(6141),j=i(4087);const $={Point:function(t,e,i,n,r,s){const o=i.getImage(),a=i.getText(),l=a&&a.getText(),h=s&&o&&l?{}:void 0;if(o){if(o.getImageState()!=N.A.LOADED)return;const s=t.getBuilder(i.getZIndex(),"Image");s.setImageStyle(o,h),s.drawPoint(e,n,r)}if(l){const s=t.getBuilder(i.getZIndex(),"Text");s.setTextStyle(a,h),s.drawText(e,n,r)}},LineString:function(t,e,i,n,r){const s=i.getStroke();if(s){const o=t.getBuilder(i.getZIndex(),"LineString");o.setFillStrokeStyle(null,s),o.drawLineString(e,n,r)}const o=i.getText();if(o&&o.getText()){const s=t.getBuilder(i.getZIndex(),"Text");s.setTextStyle(o),s.drawText(e,n,r)}},Polygon:function(t,e,i,n,r){const s=i.getFill(),o=i.getStroke();if(s||o){const a=t.getBuilder(i.getZIndex(),"Polygon");a.setFillStrokeStyle(s,o),a.drawPolygon(e,n,r)}const a=i.getText();if(a&&a.getText()){const s=t.getBuilder(i.getZIndex(),"Text");s.setTextStyle(a),s.drawText(e,n,r)}},MultiPoint:function(t,e,i,n,r,s){const o=i.getImage(),a=o&&0!==o.getOpacity(),l=i.getText(),h=l&&l.getText(),c=s&&a&&h?{}:void 0;if(a){if(o.getImageState()!=N.A.LOADED)return;const s=t.getBuilder(i.getZIndex(),"Image");s.setImageStyle(o,c),s.drawMultiPoint(e,n,r)}if(h){const s=t.getBuilder(i.getZIndex(),"Text");s.setTextStyle(l,c),s.drawText(e,n,r)}},MultiLineString:function(t,e,i,n,r){const s=i.getStroke();if(s){const o=t.getBuilder(i.getZIndex(),"LineString");o.setFillStrokeStyle(null,s),o.drawMultiLineString(e,n,r)}const o=i.getText();if(o&&o.getText()){const s=t.getBuilder(i.getZIndex(),"Text");s.setTextStyle(o),s.drawText(e,n,r)}},MultiPolygon:function(t,e,i,n,r){const s=i.getFill(),o=i.getStroke();if(o||s){const a=t.getBuilder(i.getZIndex(),"Polygon");a.setFillStrokeStyle(s,o),a.drawMultiPolygon(e,n,r)}const a=i.getText();if(a&&a.getText()){const s=t.getBuilder(i.getZIndex(),"Text");s.setTextStyle(a),s.drawText(e,n,r)}},GeometryCollection:function(t,e,i,n,r,s){const o=e.getGeometriesArray();let a,l;for(a=0,l=o.length;a<l;++a)(0,$[o[a].getType()])(t,o[a],i,n,r,s)},Circle:function(t,e,i,n,r){const s=i.getFill(),o=i.getStroke();if(s||o){const a=t.getBuilder(i.getZIndex(),"Circle");a.setFillStrokeStyle(s,o),a.drawCircle(e,n,r)}const a=i.getText();if(a&&a.getText()){const r=t.getBuilder(i.getZIndex(),"Text");r.setTextStyle(a),r.drawText(e,n)}}};function G(t,e){return parseInt((0,j.v6)(t),10)-parseInt((0,j.v6)(e),10)}function z(t,e){const i=q(t,e);return i*i}function q(t,e){return.5*t/e}function W(t,e,i,n,r,s,o,a){const l=[],h=i.getImage();if(h){let t=!0;const e=h.getImageState();e==N.A.LOADED||e==N.A.ERROR?t=!1:e==N.A.IDLE&&h.load(),t&&l.push(h.ready())}const c=i.getFill();c&&c.loading()&&l.push(c.ready());const u=l.length>0;return u&&Promise.all(l).then((()=>r(null))),function(t,e,i,n,r,s,o){const a=i.getGeometryFunction()(e);if(!a)return;const l=a.simplifyTransformed(n,r);i.getRenderer()?Y(t,l,i,e,o):(0,$[l.getType()])(t,l,i,e,o,s)}(t,e,i,n,s,o,a),u}function Y(t,e,i,n,r){if("GeometryCollection"!=e.getType())t.getBuilder(i.getZIndex(),"Default").drawCustom(e,n,i.getRenderer(),i.getHitDetectionRenderer(),r);else{const s=e.getGeometries();for(let e=0,o=s.length;e<o;++e)Y(t,s[e],i,n,r)}}var H=i(6933);class B extends _.A{constructor(t){super(t),this.boundHandleStyleImageChange_=this.handleStyleImageChange_.bind(this),this.animatingOrInteracting_,this.hitDetectionImageData_=null,this.clipped_=!1,this.renderedFeatures_=null,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=(0,o.S5)(),this.wrappedRenderedExtent_=(0,o.S5)(),this.renderedRotation_,this.renderedCenter_=null,this.renderedProjection_=null,this.renderedPixelRatio_=1,this.renderedRenderOrder_=null,this.renderedFrameDeclutter_,this.replayGroup_=null,this.replayGroupChanged=!0,this.clipping=!0,this.targetContext_=null,this.opacity_=1}renderWorlds(t,e,i){const n=e.extent,r=e.viewState,s=r.center,a=r.resolution,l=r.projection,h=r.rotation,c=l.getExtent(),u=this.getLayer().getSource(),d=this.getLayer().getDeclutter(),f=e.pixelRatio,p=e.viewHints,g=!(p[M.A.ANIMATING]||p[M.A.INTERACTING]),m=this.context,v=Math.round((0,o.RG)(n)/a*f),_=Math.round((0,o.Oq)(n)/a*f),y=u.getWrapX()&&l.canWrapX(),x=y?(0,o.RG)(c):null,w=y?Math.ceil((n[2]-c[2])/x)+1:1;
2let b=y?Math.floor((n[0]-c[0])/x):0;do{let n=this.getRenderTransform(s,a,0,f,v,_,b*x);e.declutter&&(n=n.slice(0)),t.execute(m,[m.canvas.width,m.canvas.height],n,h,g,void 0===i?A:i?S:T,i?d&&e.declutter[d]:void 0)}while(++b<w)}setDrawContext_(){1!==this.opacity_&&(this.targetContext_=this.context,this.context=(0,b.Y)(this.context.canvas.width,this.context.canvas.height,_.B))}resetDrawContext_(){if(1!==this.opacity_){const t=this.targetContext_.globalAlpha;this.targetContext_.globalAlpha=this.opacity_,this.targetContext_.drawImage(this.context.canvas,0,0),this.targetContext_.globalAlpha=t,(0,b.Yg)(this.context),_.B.push(this.context.canvas),this.context=this.targetContext_,this.targetContext_=null}}renderDeclutter(t){this.replayGroup_&&this.getLayer().getDeclutter()&&this.renderWorlds(this.replayGroup_,t,!0)}renderDeferredInternal(t){this.replayGroup_&&(this.replayGroup_.renderDeferred(),this.clipped_&&this.context.restore(),this.resetDrawContext_())}renderFrame(t,e){const i=t.layerStatesArray[t.layerIndex];this.opacity_=i.opacity;const n=t.viewState;this.prepareContainer(t,e);const r=this.context,s=this.replayGroup_;let a=s&&!s.isEmpty();if(!a&&!this.getLayer().hasListener(D.A.PRERENDER)&&!this.getLayer().hasListener(D.A.POSTRENDER))return null;this.setDrawContext_(),this.preRender(r,t);const l=n.projection;if(this.clipped_=!1,a&&i.extent&&this.clipping){const e=(0,P.SD)(i.extent,l);a=(0,o.HY)(e,t.extent),this.clipped_=a&&!(0,o.ms)(e,t.extent),this.clipped_&&this.clipUnrotated(r,t,e)}return a&&this.renderWorlds(s,t,!this.getLayer().getDeclutter()&&void 0),!t.declutter&&this.clipped_&&r.restore(),this.postRender(r,t),this.renderedRotation_!==n.rotation&&(this.renderedRotation_=n.rotation,this.hitDetectionImageData_=null),t.declutter||this.resetDrawContext_(),this.container}getFeatures(t){return new Promise((e=>{if(this.frameState&&!this.hitDetectionImageData_&&!this.animatingOrInteracting_){const t=this.frameState.size.slice(),e=this.renderedCenter_,i=this.renderedResolution_,n=this.renderedRotation_,r=this.renderedProjection_,s=this.wrappedRenderedExtent_,a=this.getLayer(),l=[],h=t[0]*F,c=t[1]*F;l.push(this.getRenderTransform(e,i,n,F,h,c,0).slice());const u=a.getSource(),d=r.getExtent();if(u.getWrapX()&&r.canWrapX()&&!(0,o.ms)(d,s)){let t=s[0];const r=(0,o.RG)(d);let a,u=0;for(;t<d[0];)--u,a=r*u,l.push(this.getRenderTransform(e,i,n,F,h,c,a).slice()),t+=r;for(u=0,t=s[2];t>d[2];)++u,a=r*u,l.push(this.getRenderTransform(e,i,n,F,h,c,a).slice()),t-=r}const f=(0,P.Tf)();this.hitDetectionImageData_=function(t,e,i,n,r,s,a,l,h){const c=h?(0,P.JR)(r,h):r,u=t[0]*F,d=t[1]*F,f=(0,b.Y)(u,d);f.imageSmoothingEnabled=!1;const p=f.canvas,g=new L.A(f,F,r,null,a,l,h?(0,P.FO)((0,P.Tf)(),h):null),m=i.length,v=Math.floor(16777215/m),_={};for(let t=1;t<=m;++t){const e=i[t-1],r=e.getStyleFunction()||n;if(!r)continue;let a=r(e,s);if(!a)continue;Array.isArray(a)||(a=[a]);const l=(t*v).toString(16).padStart(7,"#00000");for(let t=0,i=a.length;t<i;++t){const i=a[t],n=i.getGeometryFunction()(e);if(!n||!(0,o.HY)(c,n.getExtent()))continue;const r=i.clone(),s=r.getFill();s&&s.setColor(l);const h=r.getStroke();h&&(h.setColor(l),h.setLineDash(null)),r.setText(void 0);const u=i.getImage();if(u){const t=u.getImageSize();if(!t)continue;const e=(0,b.Y)(t[0],t[1],void 0,{alpha:!1}),i=e.canvas;e.fillStyle=l,e.fillRect(0,0,i.width,i.height),r.setImage(new O.A({img:i,anchor:u.getAnchor(),anchorXUnits:"pixels",anchorYUnits:"pixels",offset:u.getOrigin(),opacity:1,size:u.getSize(),scale:u.getScale(),rotation:u.getRotation(),rotateWithView:u.getRotateWithView()}))}const d=r.getZIndex()||0;let f=_[d];f||(f={},_[d]=f,f.Polygon=[],f.Circle=[],f.LineString=[],f.Point=[]);const p=n.getType();if("GeometryCollection"===p){const t=n.getGeometriesArrayRecursive();for(let e=0,i=t.length;e<i;++e){const i=t[e];f[i.getType().replace("Multi","")].push(i,r)}}else f[p.replace("Multi","")].push(n,r)}}const y=Object.keys(_).map(Number).sort(x.V_);for(let t=0,i=y.length;t<i;++t){const i=_[y[t]];for(const t in i){const n=i[t];for(let t=0,i=n.length;t<i;t+=2){g.setStyle(n[t+1]);for(let i=0,r=e.length;i<r;++i)g.setTransform(e[i]),g.drawGeometry(n[t])}}}return f.getImageData(0,0,p.width,p.height)}(t,l,this.renderedFeatures_,a.getStyleFunction(),s,i,n,z(i,this.renderedPixelRatio_),f?r:null)}
2e(function(t,e,i){const n=[];if(i){const r=Math.floor(Math.round(t[0])*F),s=Math.floor(Math.round(t[1])*F),o=4*((0,k.qE)(r,0,i.width-1)+(0,k.qE)(s,0,i.height-1)*i.width),a=i.data[o],l=i.data[o+1],h=i.data[o+2]+256*(l+256*a),c=Math.floor(16777215/e.length);h&&h%c==0&&n.push(e[h/c-1])}return n}(t,this.renderedFeatures_,this.hitDetectionImageData_))}))}forEachFeatureAtCoordinate(t,e,i,n,r){if(!this.replayGroup_)return;const s=e.viewState.resolution,o=e.viewState.rotation,a=this.getLayer(),l={},h=function(t,e,i){const s=(0,j.v6)(t),o=l[s];if(o){if(!0!==o&&i<o.distanceSq){if(0===i)return l[s]=!0,r.splice(r.lastIndexOf(o),1),n(t,a,e);o.geometry=e,o.distanceSq=i}}else{if(0===i)return l[s]=!0,n(t,a,e);r.push(l[s]={feature:t,layer:a,geometry:e,distanceSq:i,callback:n})}};let c;const u=[this.replayGroup_],d=this.getLayer().getDeclutter();return u.some((n=>c=n.forEachFeatureAtCoordinate(t,s,o,i,h,d&&e.declutter[d]?e.declutter[d].all().map((t=>t.value)):null))),c}handleFontsChanged(){const t=this.getLayer();t.getVisible()&&this.replayGroup_&&t.changed()}handleStyleImageChange_(t){this.renderIfReadyAndVisible()}prepareFrame(t){const e=this.getLayer(),i=e.getSource();if(!i)return!1;const n=t.viewHints[M.A.ANIMATING],r=t.viewHints[M.A.INTERACTING],s=e.getUpdateWhileAnimating(),a=e.getUpdateWhileInteracting();if(this.ready&&!s&&n||!a&&r)return this.animatingOrInteracting_=!0,!0;this.animatingOrInteracting_=!1;const l=t.extent,h=t.viewState,c=h.projection,u=h.resolution,d=t.pixelRatio,f=e.getRevision(),p=e.getRenderBuffer();let g=e.getRenderOrder();void 0===g&&(g=G);const m=h.center.slice(),_=(0,o.r)(l,p*u),y=_.slice(),w=[_.slice()],b=c.getExtent();if(i.getWrapX()&&c.canWrapX()&&!(0,o.ms)(b,t.extent)){const t=(0,o.RG)(b),e=Math.max((0,o.RG)(_)/2,t);_[0]=b[0]-e,_[2]=b[2]+e,(0,H.Li)(m,c);const i=(0,o.Li)(w[0],c);i[0]<b[0]&&i[2]<b[2]?w.push([i[0]+t,i[1],i[2]+t,i[3]]):i[0]>b[0]&&i[2]>b[2]&&w.push([i[0]-t,i[1],i[2]-t,i[3]])}if(this.ready&&this.renderedResolution_==u&&this.renderedRevision_==f&&this.renderedRenderOrder_==g&&this.renderedFrameDeclutter_===!!t.declutter&&(0,o.ms)(this.wrappedRenderedExtent_,_))return(0,x.aI)(this.renderedExtent_,y)||(this.hitDetectionImageData_=null,this.renderedExtent_=y),this.renderedCenter_=m,this.replayGroupChanged=!1,!0;this.replayGroup_=null;const E=new v(q(u,d),_,u,d),C=(0,P.Tf)();let A;if(C){for(let t=0,e=w.length;t<e;++t){const e=w[t],n=(0,P.JR)(e,c);i.loadFeatures(n,(0,P.vN)(u,c),C)}A=(0,P.FO)(C,c)}else for(let t=0,e=w.length;t<e;++t)i.loadFeatures(w[t],u,c);const S=z(u,d);let T=!0;const I=(t,i)=>{let n;const r=t.getStyleFunction()||e.getStyleFunction();if(r&&(n=r(t,u)),n){const e=this.renderFeature(t,S,n,E,A,this.getLayer().getDeclutter(),i);T=T&&!e}},D=(0,P.JR)(_,c),L=i.getFeaturesInExtent(D);g&&L.sort(g);for(let t=0,e=L.length;t<e;++t)I(L[t],t);this.renderedFeatures_=L,this.ready=T;const O=E.finish(),k=new R(_,u,d,i.getOverlaps(),O,e.getRenderBuffer(),!!t.declutter);return this.renderedResolution_=u,this.renderedRevision_=f,this.renderedRenderOrder_=g,this.renderedFrameDeclutter_=!!t.declutter,this.renderedExtent_=y,this.wrappedRenderedExtent_=_,this.renderedCenter_=m,this.renderedProjection_=c,this.renderedPixelRatio_=d,this.replayGroup_=k,this.hitDetectionImageData_=null,this.replayGroupChanged=!0,!0}renderFeature(t,e,i,n,r,s,o){if(!i)return!1;let a=!1;if(Array.isArray(i))for(let l=0,h=i.length;l<h;++l)a=W(n,t,i[l],e,this.boundHandleStyleImageChange_,r,s,o)||a;else a=W(n,t,i,e,this.boundHandleStyleImageChange_,r,s,o);return a}}const Z=B;class X extends n.A{constructor(t){super(t)}createRenderer(){return new Z(this)}}const V=X},421:t=>{"use strict";t.exports={}},588:(t,e,i)=>{"use strict";function n(t,e){if(!t)throw new Error(e)}i.d(e,{v:()=>n})},616:(t,e,i)=>{"use strict";var n=i(9039);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},741:t=>{"use strict";var e=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?i:e)(n)}},757:(t,e,i)=>{"use strict";var n=i(7751),r=i(4901),s=i(1625),o=i(7040),a=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return r(e)&&s(e.prototype,a(t))}},764:(t,e,i)=>{"use strict";i.d(e,{A:()=>f,l:()=>d});
2var n=i(8620),r=i(6837),s=i(5332),o=i(3984),a=i(1765),l=i(588),h=i(915),c=i(9438);class u extends n.A{constructor(t){const e=Object.assign({},t);delete e.source,super(e),this.on,this.once,this.un,this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,this.renderer_=null,this.sourceReady_=!1,this.rendered=!1,t.render&&(this.render=t.render),t.map&&this.setMap(t.map),this.addChangeListener(s.A.SOURCE,this.handleSourcePropertyChange_);const i=t.source?t.source:null;this.setSource(i)}getLayersArray(t){return(t=t||[]).push(this),t}getLayerStatesArray(t){return(t=t||[]).push(this.getLayerState()),t}getSource(){return this.get(s.A.SOURCE)||null}getRenderSource(){return this.getSource()}getSourceState(){const t=this.getSource();return t?t.getState():"undefined"}handleSourceChange_(){this.changed(),this.sourceReady_||"ready"!==this.getSource().getState()||(this.sourceReady_=!0,this.dispatchEvent("sourceready"))}handleSourcePropertyChange_(){this.sourceChangeKey_&&((0,c.JH)(this.sourceChangeKey_),this.sourceChangeKey_=null),this.sourceReady_=!1;const t=this.getSource();t&&(this.sourceChangeKey_=(0,c.KT)(t,r.A.CHANGE,this.handleSourceChange_,this),"ready"===t.getState()&&(this.sourceReady_=!0,setTimeout((()=>{this.dispatchEvent("sourceready")}),0))),this.changed()}getFeatures(t){return this.renderer_?this.renderer_.getFeatures(t):Promise.resolve([])}getData(t){return this.renderer_&&this.rendered?this.renderer_.getData(t):null}isVisible(t){let e;const i=this.getMapInternal();let n;!t&&i&&(t=i.getView()),e=t instanceof a.Ay?{viewState:t.getState(),extent:t.calculateExtent()}:t,!e.layerStatesArray&&i&&(e.layerStatesArray=i.getLayerGroup().getLayerStatesArray()),n=e.layerStatesArray?e.layerStatesArray.find((t=>t.layer===this)):this.getLayerState();const r=this.getExtent();return d(n,e.viewState)&&(!r||(0,h.HY)(r,e.extent))}getAttributions(t){if(!this.isVisible(t))return[];let e;const i=this.getSource();if(i&&(e=i.getAttributions()),!e)return[];let n=e(t instanceof a.Ay?t.getViewStateAndExtent():t);return Array.isArray(n)||(n=[n]),n}render(t,e){const i=this.getRenderer();return i.prepareFrame(t)?(this.rendered=!0,i.renderFrame(t,e)):null}unrender(){this.rendered=!1}getDeclutter(){}renderDeclutter(t,e){}renderDeferred(t){const e=this.getRenderer();e&&e.renderDeferred(t)}setMapInternal(t){t||this.unrender(),this.set(s.A.MAP,t)}getMapInternal(){return this.get(s.A.MAP)}setMap(t){this.mapPrecomposeKey_&&((0,c.JH)(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&((0,c.JH)(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=(0,c.KT)(t,o.A.PRECOMPOSE,(function(t){const e=t.frameState.layerStatesArray,i=this.getLayerState(!1);(0,l.v)(!e.some((function(t){return t.layer===i.layer})),"A layer can only be added to the map once. Use either `layer.setMap()` or `map.addLayer()`, not both."),e.push(i)}),this),this.mapRenderKey_=(0,c.KT)(this,r.A.CHANGE,t.render,t),this.changed())}setSource(t){this.set(s.A.SOURCE,t)}getRenderer(){return this.renderer_||(this.renderer_=this.createRenderer()),this.renderer_}hasRenderer(){return!!this.renderer_}createRenderer(){return null}disposeInternal(){this.renderer_&&(this.renderer_.dispose(),delete this.renderer_),this.setSource(null),super.disposeInternal()}}function d(t,e){if(!t.visible)return!1;const i=e.resolution;if(i<t.minResolution||i>=t.maxResolution)return!1;const n=e.zoom;return n>t.minZoom&&n<=t.maxZoom}const f=/^(217|331)$/.test(i.j)?u:null},808:(t,e,i)=>{"use strict";if(i.d(e,{A:()=>r}),/^(217|331)$/.test(i.j))var n=i(8711);const r=/^(217|331)$/.test(i.j)?class{constructor(){this.instructions_=[],this.zIndex=0,this.offset_=0,this.context_=new Proxy((0,n.lr)(),{get:(t,e)=>{if("function"==typeof(0,n.lr)()[e])return this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(e),this.pushMethodArgs_},set:(t,e,i)=>(this.instructions_[this.zIndex+this.offset_]||(this.instructions_[this.zIndex+this.offset_]=[]),this.instructions_[this.zIndex+this.offset_].push(e,i),!0)})}pushMethodArgs_=(...t)=>(this.instructions_[this.zIndex+this.offset_].push(t),this);pushFunction(t){this.instructions_[this.zIndex+this.offset_].push(t)}getContext(){return this.context_}draw(t){this.instructions_.forEach((e=>{for(let i=0,n=e.length;i<n;++i){const n=e[i];if("function"==typeof n){n(t);continue}const r=e[++i];if("function"==typeof t[n])t[n](...r);else{if("function"==typeof r){t[n]=r(t);continue}t[n]=r}}}))}clear(){this.instructions_.length=0,this.zIndex=0,this.offset_=0}offset(){this.offset_=this.instructions_.length,this.zIndex=0}}:null},904:(t,e,i)=>{"use strict";function n(t,e,i,n){let r=t[e],s=t[e+1],o=0;for(let a=e+n;a<i;a+=n){const e=t[a],i=t[a+1];o+=Math.sqrt((e-r)*(e-r)+(i-s)*(i-s)),r=e,s=i}return o}i.d(e,{k:()=>n})},915:(t,e,i)=>{"use strict";if(i.d(e,{$C:()=>y,$u:()=>N,Bg:()=>I,HY:()=>P,Im:()=>F,Ld:()=>a,Li:()=>G,Mx:()=>j,N:()=>f,NW:()=>$,Oq:()=>D,Py:()=>L,QJ:()=>z,R:()=>C,R8:()=>x,RG:()=>k,Rj:()=>c,S5:()=>d,Tr:()=>r,UG:()=>E,Vy:()=>m,WU:()=>O,X$:()=>_,Ym:()=>l,Yw:()=>R,_N:()=>M,aI:()=>v,aZ:()=>p,dP:()=>g,k_:()=>A,ms:()=>h,o8:()=>o,q1:()=>S,qF:()=>T,r:()=>s,sB:()=>b,vz:()=>u}),/^(217|331)$/.test(i.j))var n=i(1580);function r(t){const e=[1/0,1/0,-1/0,-1/0];for(let i=0,n=t.length;i<n;++i)y(e,t[i]);return e}function s(t,e,i){return i?(i[0]=t[0]-e,i[1]=t[1]-e,i[2]=t[2]+e,i[3]=t[3]+e,i):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function o(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function a(t,e,i){let n,r;return n=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0,r=i<t[1]?t[1]-i:t[3]<i?i-t[3]:0,n*n+r*r}function l(t,e){return c(t,e[0],e[1])}function h(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function c(t,e,i){return t[0]<=e&&e<=t[2]&&t[1]<=i&&i<=t[3]}function u(t,e){const i=t[0],r=t[1],s=t[2],o=t[3],a=e[0],l=e[1];let h=n.A.UNKNOWN;return a<i?h|=n.A.LEFT:a>s&&(h|=n.A.RIGHT),l<r?h|=n.A.BELOW:l>o&&(h|=n.A.ABOVE),h===n.A.UNKNOWN&&(h=n.A.INTERSECTING),h}function d(){return[1/0,1/0,-1/0,-1/0]}function f(t,e,i,n,r){return r?(r[0]=t,r[1]=e,r[2]=i,r[3]=n,r):[t,e,i,n]}function p(t){return f(1/0,1/0,-1/0,-1/0,t)}function g(t,e){const i=t[0],n=t[1];return f(i,n,i,n,e)}function m(t,e,i,n,r){return x(p(r),t,e,i,n)}function v(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function _(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function y(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function x(t,e,i,n,r){for(;i<n;i+=r)w(t,e[i],e[i+1]);return t}function w(t,e,i){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],i),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],i)}function b(t,e){let i;return i=e(C(t)),i||(i=e(A(t)),i||(i=e(O(t)),i||(i=e(L(t)),i||!1)))}function E(t){let e=0;return F(t)||(e=k(t)*D(t)),e}function C(t){return[t[0],t[1]]}function A(t){return[t[2],t[1]]}function S(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function T(t,e){let i;if("bottom-left"===e)i=C(t);else if("bottom-right"===e)i=A(t);else if("top-left"===e)i=L(t);else{if("top-right"!==e)throw new Error("Invalid corner");i=O(t)}return i}function I(t,e,i,n,r){const[s,o,a,l,h,c,u,d]=R(t,e,i,n);
2return f(Math.min(s,a,h,u),Math.min(o,l,c,d),Math.max(s,a,h,u),Math.max(o,l,c,d),r)}function R(t,e,i,n){const r=e*n[0]/2,s=e*n[1]/2,o=Math.cos(i),a=Math.sin(i),l=r*o,h=r*a,c=s*o,u=s*a,d=t[0],f=t[1];return[d-l+u,f-h-c,d-l-u,f-h+c,d+l-u,f+h+c,d+l+u,f+h-c,d-l+u,f-h-c]}function D(t){return t[3]-t[1]}function M(t,e,i){const n=i||[1/0,1/0,-1/0,-1/0];return P(t,e)?(t[0]>e[0]?n[0]=t[0]:n[0]=e[0],t[1]>e[1]?n[1]=t[1]:n[1]=e[1],t[2]<e[2]?n[2]=t[2]:n[2]=e[2],t[3]<e[3]?n[3]=t[3]:n[3]=e[3]):p(n),n}function L(t){return[t[0],t[3]]}function O(t){return[t[2],t[3]]}function k(t){return t[2]-t[0]}function P(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function F(t){return t[2]<t[0]||t[3]<t[1]}function N(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}function j(t,e,i){let r=!1;const s=u(t,e),o=u(t,i);if(s===n.A.INTERSECTING||o===n.A.INTERSECTING)r=!0;else{const a=t[0],l=t[1],h=t[2],c=t[3],u=e[0],d=e[1],f=i[0],p=i[1],g=(p-d)/(f-u);let m,v;o&n.A.ABOVE&&!(s&n.A.ABOVE)&&(m=f-(p-c)/g,r=m>=a&&m<=h),r||!(o&n.A.RIGHT)||s&n.A.RIGHT||(v=p-(f-h)*g,r=v>=l&&v<=c),r||!(o&n.A.BELOW)||s&n.A.BELOW||(m=f-(p-l)/g,r=m>=a&&m<=h),r||!(o&n.A.LEFT)||s&n.A.LEFT||(v=p-(f-a)*g,r=v>=l&&v<=c)}return r}function $(t,e,i,n){if(F(t))return p(i);let r=[];if(n>1){const e=t[2]-t[0],i=t[3]-t[1];for(let s=0;s<n;++s)r.push(t[0]+e*s/n,t[1],t[2],t[1]+i*s/n,t[2]-e*s/n,t[3],t[0],t[3]-i*s/n)}else r=[t[0],t[1],t[2],t[1],t[2],t[3],t[0],t[3]];e(r,r,2);const s=[],o=[];for(let t=0,e=r.length;t<e;t+=2)s.push(r[t]),o.push(r[t+1]);return function(t,e,i){return f(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),i)}(s,o,i)}function G(t,e){const i=e.getExtent(),n=S(t);if(e.canWrapX()&&(n[0]<i[0]||n[0]>=i[2])){const e=k(i),r=Math.floor((n[0]-i[0])/e)*e;t[0]-=r,t[2]-=r}return t}function z(t,e,i){if(e.canWrapX()){const n=e.getExtent();if(!isFinite(t[0])||!isFinite(t[2]))return[[n[0],t[1],n[2],t[3]]];G(t,e);const r=k(n);if(k(t)>r&&!i)return[[n[0],t[1],n[2],t[3]]];if(t[0]<n[0])return[[t[0]+r,t[1],n[2],t[3]],[n[0],t[1],t[2],t[3]]];if(t[2]>n[2])return[[t[0],t[1],n[2],t[3]],[n[0],t[1],t[2]-r,t[3]]]}return[t]}},940:(t,e,i)=>{"use strict";if(i.d(e,{A:()=>o}),/^(217|331)$/.test(i.j))var n=i(4087);if(/^(217|331)$/.test(i.j))var r=i(6782);class s{constructor(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale,this.scaleArray_=(0,r.xq)(t.scale),this.displacement_=t.displacement,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new s({opacity:this.getOpacity(),scale:Array.isArray(t)?t.slice():t,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(0,n.b0)()}getImage(t){return(0,n.b0)()}getHitDetectionImage(){return(0,n.b0)()}getPixelRatio(t){return 1}getImageState(){return(0,n.b0)()}getImageSize(){return(0,n.b0)()}getOrigin(){return(0,n.b0)()}getSize(){return(0,n.b0)()}setDisplacement(t){this.displacement_=t}setOpacity(t){this.opacity_=t}setRotateWithView(t){this.rotateWithView_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=(0,r.xq)(t)}listenImageChange(t){(0,n.b0)()}load(){(0,n.b0)()}unlistenImageChange(t){(0,n.b0)()}ready(){return Promise.resolve()}}const o=/^(217|331)$/.test(i.j)?s:null},953:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});class n{constructor(t){t=t||{},this.color_=void 0!==t.color?t.color:null,this.lineCap_=t.lineCap,this.lineDash_=void 0!==t.lineDash?t.lineDash:null,this.lineDashOffset_=t.lineDashOffset,this.lineJoin_=t.lineJoin,this.miterLimit_=t.miterLimit,this.width_=t.width}clone(){const t=this.getColor();return new n({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})}getColor(){return this.color_}getLineCap(){return this.lineCap_}getLineDash(){return this.lineDash_}getLineDashOffset(){return this.lineDashOffset_}getLineJoin(){return this.lineJoin_}getMiterLimit(){return this.miterLimit_}getWidth(){return this.width_}setColor(t){this.color_=t}setLineCap(t){this.lineCap_=t}setLineDash(t){this.lineDash_=t}setLineDashOffset(t){this.lineDashOffset_=t}setLineJoin(t){this.lineJoin_=t}setMiterLimit(t){this.miterLimit_=t}setWidth(t){this.width_=t}}const r=/^(217|331)$/.test(i.j)?n:null},972:(t,e,i)=>{"use strict";i.d(e,{A:()=>h});var n=i(4120),r=i(2585),s=i(4238),o=i(9438),a=i(8711);class l extends n.A{constructor(t){super();const e=t.element;!e||t.target||e.style.pointerEvents||(e.style.pointerEvents="auto"),this.element=e||null,this.target_=null,this.map_=null,this.listenerKeys=[],t.render&&(this.render=t.render),t.target&&this.setTarget(t.target)}disposeInternal(){(0,a.bf)(this.element),super.disposeInternal()}getMap(){return this.map_}setMap(t){this.map_&&(0,a.bf)(this.element);for(let t=0,e=this.listenerKeys.length;t<e;++t)(0,o.JH)(this.listenerKeys[t]);this.listenerKeys.length=0,this.map_=t,t&&((this.target_?this.target_:t.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==s.tV&&this.listenerKeys.push((0,o.KT)(t,r.A.POSTRENDER,this.render,this)),t.render())}render(t){}setTarget(t){this.target_="string"==typeof t?document.getElementById(t):t}}const h=/^(217|331)$/.test(i.j)?l:null}
2,977:(t,e,i)=>{var n,r;!function(s){n=[i(9786)],r=function(t){return function(t,e){"use strict";var i={extend:function(t,e){for(var i in e)t[i]=e[i];return t},modulo:function(t,e){return(t%e+e)%e}},n=Array.prototype.slice;i.makeArray=function(t){return Array.isArray(t)?t:null==t?[]:"object"==typeof t&&"number"==typeof t.length?n.call(t):[t]},i.removeFrom=function(t,e){var i=t.indexOf(e);-1!=i&&t.splice(i,1)},i.getParent=function(t,i){for(;t.parentNode&&t!=document.body;)if(t=t.parentNode,e(t,i))return t},i.getQueryElement=function(t){return"string"==typeof t?document.querySelector(t):t},i.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},i.filterFindElements=function(t,n){t=i.makeArray(t);var r=[];return t.forEach((function(t){if(t instanceof HTMLElement)if(n){e(t,n)&&r.push(t);for(var i=t.querySelectorAll(n),s=0;s<i.length;s++)r.push(i[s])}else r.push(t)})),r},i.debounceMethod=function(t,e,i){i=i||100;var n=t.prototype[e],r=e+"Timeout";t.prototype[e]=function(){var t=this[r];clearTimeout(t);var e=arguments,s=this;this[r]=setTimeout((function(){n.apply(s,e),delete s[r]}),i)}},i.docReady=function(t){var e=document.readyState;"complete"==e||"interactive"==e?setTimeout(t):document.addEventListener("DOMContentLoaded",t)},i.toDashed=function(t){return t.replace(/(.)([A-Z])/g,(function(t,e,i){return e+"-"+i})).toLowerCase()};var r=t.console;return i.htmlInit=function(e,n){i.docReady((function(){var s=i.toDashed(n),o="data-"+s,a=document.querySelectorAll("["+o+"]"),l=document.querySelectorAll(".js-"+s),h=i.makeArray(a).concat(i.makeArray(l)),c=o+"-options",u=t.jQuery;h.forEach((function(t){var i,s=t.getAttribute(o)||t.getAttribute(c);try{i=s&&JSON.parse(s)}catch(e){return void(r&&r.error("Error parsing "+o+" on "+t.className+": "+e))}var a=new e(t,i);u&&u.data(t,n,a)}))}))},i}(s,t)}.apply(e,n),void 0===r||(t.exports=r)}(window)},1015:(t,e,i)=>{"use strict";var n=i(8418);t.exports=n},1072:(t,e,i)=>{"use strict";var n=i(1828),r=i(8727);t.exports=Object.keys||function(t){return n(t,r)}},1078:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},1110:(t,e,i)=>{"use strict";i.d(e,{A:()=>s,N:()=>r});class n{constructor(t,e,i,n){this.minX=t,this.maxX=e,this.minY=i,this.maxY=n}contains(t){return this.containsXY(t[1],t[2])}containsTileRange(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY}containsXY(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY}equals(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY}extend(t){t.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.maxY&&(this.maxY=t.maxY)}
2getHeight(){return this.maxY-this.minY+1}getSize(){return[this.getWidth(),this.getHeight()]}getWidth(){return this.maxX-this.minX+1}intersects(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY}}function r(t,e,i,r,s){return void 0!==s?(s.minX=t,s.maxX=e,s.minY=i,s.maxY=r,s):new n(t,e,i,r)}const s=/^(217|331)$/.test(i.j)?n:null},1181:(t,e,i)=>{"use strict";var n,r,s,o=i(8622),a=i(4576),l=i(34),h=i(6699),c=i(9297),u=i(7629),d=i(6119),f=i(421),p="Object already initialized",g=a.TypeError,m=a.WeakMap;if(o||u.state){var v=u.state||(u.state=new m);v.get=v.get,v.has=v.has,v.set=v.set,n=function(t,e){if(v.has(t))throw new g(p);return e.facade=t,v.set(t,e),e},r=function(t){return v.get(t)||{}},s=function(t){return v.has(t)}}else{var _=d("state");f[_]=!0,n=function(t,e){if(c(t,_))throw new g(p);return e.facade=t,h(t,_,e),e},r=function(t){return c(t,_)?t[_]:{}},s=function(t){return c(t,_)}}t.exports={set:n,get:r,has:s,enforce:function(t){return s(t)?r(t):n(t,{})},getterFor:function(t){return function(e){var i;if(!l(e)||(i=r(e)).type!==t)throw new g("Incompatible receiver, "+t+" required");return i}}}},1291:(t,e,i)=>{"use strict";var n=i(741);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},1374:(t,e,i)=>{"use strict";function n(t,e,i,n,r){let s;for(e+=n;e<i;e+=n)if(s=r(t.slice(e-n,e),t.slice(e,e+n)),s)return s;return!1}i.d(e,{j:()=>n})},1409:(t,e,i)=>{"use strict";i.d(e,{A:()=>a,v:()=>o});var n=i(6739),r=i(3445);class s extends n.Ay{constructor(t){super(t=t||{}),t.handleDownEvent&&(this.handleDownEvent=t.handleDownEvent),t.handleDragEvent&&(this.handleDragEvent=t.handleDragEvent),t.handleMoveEvent&&(this.handleMoveEvent=t.handleMoveEvent),t.handleUpEvent&&(this.handleUpEvent=t.handleUpEvent),t.stopDown&&(this.stopDown=t.stopDown),this.handlingDownUpSequence=!1,this.targetPointers=[]}getPointerCount(){return this.targetPointers.length}handleDownEvent(t){return!1}handleDragEvent(t){}handleEvent(t){if(!t.originalEvent)return!0;let e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==r.A.POINTERDRAG)this.handleDragEvent(t),t.originalEvent.preventDefault();else if(t.type==r.A.POINTERUP){const e=this.handleUpEvent(t);this.handlingDownUpSequence=e&&this.targetPointers.length>0}}else if(t.type==r.A.POINTERDOWN){const i=this.handleDownEvent(t);this.handlingDownUpSequence=i,e=this.stopDown(i)}else t.type==r.A.POINTERMOVE&&this.handleMoveEvent(t);return!e}handleMoveEvent(t){}handleUpEvent(t){return!1}stopDown(t){return t}updateTrackedPointers_(t){t.activePointers&&(this.targetPointers=t.activePointers)}}function o(t){const e=t.length;let i=0,n=0;for(let r=0;r<e;r++)i+=t[r].clientX,n+=t[r].clientY;return{clientX:i/e,clientY:n/e}}const a=/^(217|331)$/.test(i.j)?s:null},1426:(t,e,i)=>{"use strict";if(i.d(e,{A:()=>o}),/^(217|331)$/.test(i.j))var n=i(3628);if(/^(217|331)$/.test(i.j))var r=i(6782);class s{constructor(t){t=t||{},this.font_=t.font,this.rotation_=t.rotation,this.rotateWithView_=t.rotateWithView,this.scale_=t.scale,this.scaleArray_=(0,r.xq)(void 0!==t.scale?t.scale:1),this.text_=t.text,this.textAlign_=t.textAlign,this.justify_=t.justify,this.repeat_=t.repeat,this.textBaseline_=t.textBaseline,this.fill_=void 0!==t.fill?t.fill:new n.A({color:"#333"}),this.maxAngle_=void 0!==t.maxAngle?t.maxAngle:Math.PI/4,this.placement_=void 0!==t.placement?t.placement:"point",this.overflow_=!!t.overflow,this.stroke_=void 0!==t.stroke?t.stroke:null,this.offsetX_=void 0!==t.offsetX?t.offsetX:0,this.offsetY_=void 0!==t.offsetY?t.offsetY:0,this.backgroundFill_=t.backgroundFill?t.backgroundFill:null,this.backgroundStroke_=t.backgroundStroke?t.backgroundStroke:null,this.padding_=void 0===t.padding?null:t.padding,this.declutterMode_=t.declutterMode}clone(){const t=this.getScale();return new s({font:this.getFont(),placement:this.getPlacement(),repeat:this.getRepeat(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:Array.isArray(t)?t.slice():t,text:this.getText(),textAlign:this.getTextAlign(),justify:this.getJustify(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.get
2Stroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0,padding:this.getPadding()||void 0,declutterMode:this.getDeclutterMode()})}getOverflow(){return this.overflow_}getFont(){return this.font_}getMaxAngle(){return this.maxAngle_}getPlacement(){return this.placement_}getRepeat(){return this.repeat_}getOffsetX(){return this.offsetX_}getOffsetY(){return this.offsetY_}getFill(){return this.fill_}getRotateWithView(){return this.rotateWithView_}getRotation(){return this.rotation_}getScale(){return this.scale_}getScaleArray(){return this.scaleArray_}getStroke(){return this.stroke_}getText(){return this.text_}getTextAlign(){return this.textAlign_}getJustify(){return this.justify_}getTextBaseline(){return this.textBaseline_}getBackgroundFill(){return this.backgroundFill_}getBackgroundStroke(){return this.backgroundStroke_}getPadding(){return this.padding_}getDeclutterMode(){return this.declutterMode_}setOverflow(t){this.overflow_=t}setFont(t){this.font_=t}setMaxAngle(t){this.maxAngle_=t}setOffsetX(t){this.offsetX_=t}setOffsetY(t){this.offsetY_=t}setPlacement(t){this.placement_=t}setRepeat(t){this.repeat_=t}setRotateWithView(t){this.rotateWithView_=t}setFill(t){this.fill_=t}setRotation(t){this.rotation_=t}setScale(t){this.scale_=t,this.scaleArray_=(0,r.xq)(void 0!==t?t:1)}setStroke(t){this.stroke_=t}setText(t){this.text_=t}setTextAlign(t){this.textAlign_=t}setJustify(t){this.justify_=t}setTextBaseline(t){this.textBaseline_=t}setBackgroundFill(t){this.backgroundFill_=t}setBackgroundStroke(t){this.backgroundStroke_=t}setPadding(t){this.padding_=t}}const o=/^(217|331)$/.test(i.j)?s:null},1469:(t,e,i)=>{"use strict";var n=i(7433);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},1485:(t,e,i)=>{var n,r;window,void 0===(r="function"==typeof(n=function(){"use strict";function t(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}var e="undefined"==typeof console?function(){}:function(t){console.error(t)},i=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],n=i.length;function r(t){var i=getComputedStyle(t);return i||e("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),i}var s,o=!1;function a(e){if(function(){if(!o){o=!0;var e=document.createElement("div");e.style.width="200px",e.style.padding="1px 2px 3px 4px",e.style.borderStyle="solid",e.style.borderWidth="1px 2px 3px 4px",e.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(e);var n=r(e);s=200==Math.round(t(n.width)),a.isBoxSizeOuter=s,i.removeChild(e)}}(),"string"==typeof e&&(e=document.querySelector(e)),e&&"object"==typeof e&&e.nodeType){var l=r(e);if("none"==l.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<n;e++)t[i[e]]=0;return t}();var h={};h.width=e.offsetWidth,h.height=e.offsetHeight;for(var c=h.isBorderBox="border-box"==l.boxSizing,u=0;u<n;u++){var d=i[u],f=l[d],p=parseFloat(f);h[d]=isNaN(p)?0:p}var g=h.paddingLeft+h.paddingRight,m=h.paddingTop+h.paddingBottom,v=h.marginLeft+h.marginRight,_=h.marginTop+h.marginBottom,y=h.borderLeftWidth+h.borderRightWidth,x=h.borderTopWidth+h.borderBottomWidth,w=c&&s,b=t(l.width);!1!==b&&(h.width=b+(w?0:g+y));var E=t(l.height);return!1!==E&&(h.height=E+(w?0:m+x)),h.innerWidth=h.width-(g+y),h.innerHeight=h.height-(m+x),h.outerWidth=h.width+v,h.outerHeight=h.height+_,h}}return a})?n.call(e,i,e,t):n)||(t.exports=r)},1580:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16}},1597:(t,e,i)=>{"use strict";function n(t,e,i){return Math.min(Math.max(t,e),i)}function r(t,e,i,n,r,o){const a=r-i,l=o-n;if(0!==a||0!==l){const s=((t-i)*a+(e-n)*l)/(a*a+l*l);s>1?(i=r,n=o):s>0&&(i+=a*s,n+=l*s)}return s(t,e,i,n)}function s(t,e,i,n){const r=i-t,s=n-e;return r*r+s*s}function o(t){const e=t.length;for(let i=0;i<e;i++){let n=i,r=Math.abs(t[i][i]);for(let s=i+1;s<e;s++){const e=Math.abs(t[s][i]);e>r&&(r=e,n=s)}if(0===r)return null;const s=t[n];t[n]=t[i],t[i]=s;for(let n=i+1;n<e;n++){const r=-t[n][i]/t[i][i];for(let s=i;s<e+1;s++)i==s?t[n][s]=0:t[n][s]+=r*t[i][s]}}const i=new Array(e);for(let n=e-1;n>=0;n--){i[n]=t[n][e]/t[n][n];for(let r=n-1;r>=0;r--)t[r][e]-=t[r][n]*i[n]}return i}function a(t){return t*Math.PI/180}function l(t,e){const i=t%e;return i*e<0?i+e:i}
2function h(t,e,i){return t+i*(e-t)}function c(t,e){const i=Math.pow(10,e);return Math.round(t*i)/i}function u(t,e){return Math.floor(c(t,e))}function d(t,e){return Math.ceil(c(t,e))}i.d(e,{Cc:()=>h,KU:()=>o,Mg:()=>c,Q1:()=>r,RI:()=>u,eh:()=>a,hG:()=>s,mk:()=>d,qE:()=>n,xP:()=>l})},1623:(t,e,i)=>{"use strict";i.d(e,{B:()=>v,A:()=>y});var n=i(6837),r=i(6141),s=i(1854),o=i(4087);class a extends s.A{constructor(t){super(),this.ready=!0,this.boundHandleImageChange_=this.handleImageChange_.bind(this),this.layer_=t}getFeatures(t){return(0,o.b0)()}getData(t){return null}prepareFrame(t){return(0,o.b0)()}renderFrame(t,e){return(0,o.b0)()}loadedTileCallback(t,e,i){t[e]||(t[e]={}),t[e][i.tileCoord.toString()]=i}createLoadedTileFinder(t,e,i){return(n,r)=>{const s=this.loadedTileCallback.bind(this,i,n);return t.forEachLoadedTile(e,n,r,s)}}forEachFeatureAtCoordinate(t,e,i,n,r){}getLayer(){return this.layer_}handleFontsChanged(){}handleImageChange_(t){const e=t.target;e.getState()!==r.A.LOADED&&e.getState()!==r.A.ERROR||this.renderIfReadyAndVisible()}loadImage(t){let e=t.getState();return e!=r.A.LOADED&&e!=r.A.ERROR&&t.addEventListener(n.A.CHANGE,this.boundHandleImageChange_),e==r.A.IDLE&&(t.load(),e=t.getState()),e==r.A.LOADED}renderIfReadyAndVisible(){const t=this.getLayer();t&&t.getVisible()&&"ready"===t.getSourceState()&&t.changed()}renderDeferred(t){}disposeInternal(){delete this.layer_,super.disposeInternal()}}const l=a;var h=i(9960),c=i(3984),u=i(808),d=i(9703),f=i(9528),p=i(8711),g=i(6514),m=i(915);const v=[];let _=null;const y=class extends l{constructor(t){super(t),this.container=null,this.renderedResolution,this.tempTransform=(0,d.vt)(),this.pixelTransform=(0,d.vt)(),this.inversePixelTransform=(0,d.vt)(),this.context=null,this.deferredContext_=null,this.containerReused=!1,this.pixelContext_=null,this.frameState=null}getImageData(t,e,i){let n;_||(_=(0,p.Y)(1,1,void 0,{willReadFrequently:!0})),_.clearRect(0,0,1,1);try{_.drawImage(t,e,i,1,1,0,0,1,1),n=_.getImageData(0,0,1,1).data}catch(t){return _=null,null}return n}getBackground(t){let e=this.getLayer().getBackground();return"function"==typeof e&&(e=e(t.viewState.resolution)),e||void 0}useContainer(t,e,i){const n=this.getLayer().getClassName();let r,s;if(t&&t.className===n&&(!i||t&&t.style.backgroundColor&&(0,g.aI)((0,f._j)(t.style.backgroundColor),(0,f._j)(i)))){const e=t.firstElementChild;e instanceof HTMLCanvasElement&&(s=e.getContext("2d"))}if(s&&s.canvas.style.transform===e?(this.container=t,this.context=s,this.containerReused=!0):this.containerReused?(this.container=null,this.context=null,this.containerReused=!1):this.container&&(this.container.style.backgroundColor=null),!this.container){r=document.createElement("div"),r.className=n;let t=r.style;t.position="absolute",t.width="100%",t.height="100%",s=(0,p.Y)();const e=s.canvas;r.appendChild(e),t=e.style,t.position="absolute",t.left="0",t.transformOrigin="top left",this.container=r,this.context=s}this.containerReused||!i||this.container.style.backgroundColor||(this.container.style.backgroundColor=i)}clipUnrotated(t,e,i){const n=(0,m.Py)(i),r=(0,m.WU)(i),s=(0,m.k_)(i),o=(0,m.R)(i);(0,d.Bb)(e.coordinateToPixelTransform,n),(0,d.Bb)(e.coordinateToPixelTransform,r),(0,d.Bb)(e.coordinateToPixelTransform,s),(0,d.Bb)(e.coordinateToPixelTransform,o);const a=this.inversePixelTransform;(0,d.Bb)(a,n),(0,d.Bb)(a,r),(0,d.Bb)(a,s),(0,d.Bb)(a,o),t.save(),t.beginPath(),t.moveTo(Math.round(n[0]),Math.round(n[1])),t.lineTo(Math.round(r[0]),Math.round(r[1])
2),t.lineTo(Math.round(s[0]),Math.round(s[1])),t.lineTo(Math.round(o[0]),Math.round(o[1])),t.clip()}prepareContainer(t,e){const i=t.extent,n=t.viewState.resolution,r=t.viewState.rotation,s=t.pixelRatio,o=Math.round((0,m.RG)(i)/n*s),a=Math.round((0,m.Oq)(i)/n*s);(0,d.Zz)(this.pixelTransform,t.size[0]/2,t.size[1]/2,1/s,1/s,r,-o/2,-a/2),(0,d.T9)(this.inversePixelTransform,this.pixelTransform);const l=(0,d.dI)(this.pixelTransform);if(this.useContainer(e,l,this.getBackground(t)),!this.containerReused){const t=this.context.canvas;t.width!=o||t.height!=a?(t.width=o,t.height=a):this.context.clearRect(0,0,o,a),l!==t.style.transform&&(t.style.transform=l)}}dispatchRenderEvent_(t,e,i){const n=this.getLayer();if(n.hasListener(t)){const r=new h.A(t,this.inversePixelTransform,i,e);n.dispatchEvent(r)}}preRender(t,e){this.frameState=e,e.declutter||this.dispatchRenderEvent_(c.A.PRERENDER,t,e)}postRender(t,e){e.declutter||this.dispatchRenderEvent_(c.A.POSTRENDER,t,e)}renderDeferredInternal(t){}getRenderContext(t){return t.declutter&&!this.deferredContext_&&(this.deferredContext_=new u.A),t.declutter?this.deferredContext_.getContext():this.context}renderDeferred(t){t.declutter&&(this.dispatchRenderEvent_(c.A.PRERENDER,this.context,t),t.declutter&&this.deferredContext_&&(this.deferredContext_.draw(this.context),this.deferredContext_.clear()),this.renderDeferredInternal(t),this.dispatchRenderEvent_(c.A.POSTRENDER,this.context,t))}getRenderTransform(t,e,i,n,r,s,o){const a=r/2,l=s/2,h=n/e,c=-h,u=-t[0]+o,f=-t[1];return(0,d.Zz)(this.tempTransform,a,l,h,c,-i,u,f)}disposeInternal(){delete this.frameState,super.disposeInternal()}}},1625:(t,e,i)=>{"use strict";var n=i(9504);t.exports=n({}.isPrototypeOf)},1629:(t,e,i)=>{"use strict";var n=i(6518),r=i(235);n({target:"Array",proto:!0,forced:[].forEach!==r},{forEach:r})},1685:(t,e,i)=>{"use strict";i.d(e,{Ay:()=>n});const n=/^(217|331)$/.test(i.j)?class{constructor(t){this.propagationStopped,this.defaultPrevented,this.type=t,this.target=null}preventDefault(){this.defaultPrevented=!0}stopPropagation(){this.propagationStopped=!0}}:null},1765:(t,e,i)=>{"use strict";i.d(e,{Ay:()=>S});var n=i(4120),r=i(2703);const s={CENTER:"center",RESOLUTION:"resolution",ROTATION:"rotation"};var o=i(7115),a=i(7083),l=i(4238),h=i(6933),c=i(588),u=i(1597);function d(t,e,i){return function(n,r,s,o,a){if(!n)return;if(!r&&!e)return n;const l=e?0:s[0]*r,h=e?0:s[1]*r,c=a?a[0]:0,d=a?a[1]:0;let f=t[0]+l/2+c,p=t[2]-l/2+c,g=t[1]+h/2+d,m=t[3]-h/2+d;f>p&&(f=(p+f)/2,p=f),g>m&&(g=(m+g)/2,m=g);let v=(0,u.qE)(n[0],f,p),_=(0,u.qE)(n[1],g,m);if(o&&i&&r){const t=30*r;v+=-t*Math.log(1+Math.max(0,f-n[0])/t)+t*Math.log(1+Math.max(0,n[0]-p)/t),_+=-t*Math.log(1+Math.max(0,g-n[1])/t)+t*Math.log(1+Math.max(0,n[1]-m)/t)}return[v,_]}}function f(t){return t}var p=i(915),g=i(6514);function m(t,e,i,n){const r=(0,p.RG)(e)/i[0],s=(0,p.Oq)(e)/i[1];return n?Math.min(t,Math.max(r,s)):Math.min(t,Math.min(r,s))}function v(t,e,i){let n=Math.min(t,e);return n*=Math.log(1+50*Math.max(0,t/e-1))/50+1,i&&(n=Math.max(n,i),n/=Math.log(1+50*Math.max(0,i/t-1))/50+1),(0,u.qE)(n,i/2,2*e)}function _(t,e,i,n,r){return i=void 0===i||i,function(s,o,a,l){if(void 0!==s){const o=n?m(t,n,a,r):t;return i&&l?v(s,o,e):(0,u.qE)(s,e,o)}}}var y=i(4498),x=i(3474),w=i(5296);class b extends n.A{constructor(t){super(),this.on,this.once,this.un,t=Object.assign({},t),this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.projection_=(0,a.Av)(t.projection,"EPSG:3857"),this.viewportSize_=[100,100],this.targetCenter_=null,this.targetResolution_,this.targetRotation_,this.nextCenter_=null,this.nextResolution_,this.nextRotation_,this.cancelAnchor_=void 0,t.projection&&(0,a.RJ)(),t.center&&(t.center=(0,a.Ad)(t.center,this.projection_)),t.extent&&(t.extent=(0,a.SD)(t.extent,this.projection_)),this.applyOptions_(t)}applyOptions_(t){const e=Object.assign({},t);for(const t in s)delete e[t];this.setProperties(e,!0);const i=function(t){let e,i,n;let r=void 0!==t.minZoom?t.minZoom:0,s=void 0!==t.maxZoom?t.maxZoom:28;const l=void 0!==t.zoomFactor?t.zoomFactor:2,h=void 0!==t.multiWorld&&t.multiWorld,c=void 0===t.smoothResolutionConstraint||t.smoothResolutionConstraint,d=void 0!==t.showFullExtent&&t.showFullExtent,f=(0,a.Av)(t.projection,"EPSG:3857"),y=f.getExtent();let x=t.constrainOnlyCenter,w=t.extent;if(h||w||!f.isGlobal()||(x=!1,w=y),void 0!==t.resolutions){const o=t.resolutions;i=o[r],n=void 0!==o[s]?o[s]:o[o.length-1],e=t.constrainResolution?function(t,e,
2i,n){return e=void 0===e||e,function(r,s,o,a){if(void 0!==r){const l=t[0],h=t[t.length-1],c=i?m(l,i,o,n):l;if(a)return e?v(r,c,h):(0,u.qE)(r,h,c);const d=Math.min(c,r),f=Math.floor((0,g.FT)(t,d,s));return t[f]>c&&f<t.length-1?t[f+1]:t[f]}}}(o,c,!x&&w,d):_(i,n,c,!x&&w,d)}else{const h=(y?Math.max((0,p.RG)(y),(0,p.Oq)(y)):360*a.Ig.degrees/f.getMetersPerUnit())/o.R/Math.pow(2,0),g=h/Math.pow(2,28);i=t.maxResolution,void 0!==i?r=0:i=h/Math.pow(l,r),n=t.minResolution,void 0===n&&(n=void 0!==t.maxZoom?void 0!==t.maxResolution?i/Math.pow(l,s):h/Math.pow(l,s):g),s=r+Math.floor(Math.log(i/n)/Math.log(l)),n=i/Math.pow(l,s-r),e=t.constrainResolution?function(t,e,i,n,r,s){return n=void 0===n||n,i=void 0!==i?i:0,function(o,a,l,h){if(void 0!==o){const c=r?m(e,r,l,s):e;if(h)return n?v(o,c,i):(0,u.qE)(o,i,c);const d=1e-9,f=Math.ceil(Math.log(e/c)/Math.log(t)-d),p=-a*(.5-d)+.5,g=Math.min(c,o),_=Math.floor(Math.log(e/g)/Math.log(t)+p),y=Math.max(f,_),x=e/Math.pow(t,y);return(0,u.qE)(x,i,c)}}}(l,i,n,c,!x&&w,d):_(i,n,c,!x&&w,d)}return{constraint:e,maxResolution:i,minResolution:n,minZoom:r,zoomFactor:l}}(t);this.maxResolution_=i.maxResolution,this.minResolution_=i.minResolution,this.zoomFactor_=i.zoomFactor,this.resolutions_=t.resolutions,this.padding_=t.padding,this.minZoom_=i.minZoom;const n=function(t){if(void 0!==t.extent){const e=void 0===t.smoothExtentConstraint||t.smoothExtentConstraint;return d(t.extent,t.constrainOnlyCenter,e)}const e=(0,a.Av)(t.projection,"EPSG:3857");if(!0!==t.multiWorld&&e.isGlobal()){const t=e.getExtent().slice();return t[0]=-1/0,t[2]=1/0,d(t,!1,!1)}return f}(t),r=i.constraint,l=function(t){if(void 0===t.enableRotation||t.enableRotation){const e=t.constrainRotation;return void 0===e||!0===e?(0,y.cq)():!1===e?y.dv:"number"==typeof e?(0,y.a$)(e):y.dv}return y.b8}(t);this.constraints_={center:n,resolution:r,rotation:l},this.setRotation(void 0!==t.rotation?t.rotation:0),this.setCenterInternal(void 0!==t.center?t.center:null),void 0!==t.resolution?this.setResolution(t.resolution):void 0!==t.zoom&&this.setZoom(t.zoom)}get padding(){return this.padding_}set padding(t){let e=this.padding_;this.padding_=t;const i=this.getCenterInternal();if(i){const n=t||[0,0,0,0];e=e||[0,0,0,0];const r=this.getResolution(),s=r/2*(n[3]-e[3]+e[1]-n[1]),o=r/2*(n[0]-e[0]+e[2]-n[2]);this.setCenterInternal([i[0]+s,i[1]-o])}}getUpdatedOptions_(t){const e=this.getProperties();return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenterInternal(),e.rotation=this.getRotation(),Object.assign({},e,t)}animate(t){this.isDef()&&!this.getAnimating()&&this.resolveConstraints(0);const e=new Array(arguments.length);for(let t=0;t<e.length;++t){let i=arguments[t];i.center&&(i=Object.assign({},i),i.center=(0,a.Ad)(i.center,this.getProjection())),i.anchor&&(i=Object.assign({},i),i.anchor=(0,a.Ad)(i.anchor,this.getProjection())),e[t]=i}this.animateInternal.apply(this,e)}animateInternal(t){let e,i=arguments.length;i>1&&"function"==typeof arguments[i-1]&&(e=arguments[i-1],--i);let n=0;for(;n<i&&!this.isDef();++n){const t=arguments[n];t.center&&this.setCenterInternal(t.center),void 0!==t.zoom?this.setZoom(t.zoom):t.resolution&&this.setResolution(t.resolution),void 0!==t.rotation&&this.setRotation(t.rotation)}if(n===i)return void(e&&E(e,!0));let s=Date.now(),o=this.targetCenter_.slice(),a=this.targetResolution_,l=this.targetRotation_;const h=[];for(;n<i;++n){const t=arguments[n],i={start:s,complete:!1,anchor:t.anchor,duration:void 0!==t.duration?t.duration:1e3,easing:t.easing||x.T9,callback:e};if(t.center&&(i.sourceCenter=o,i.targetCenter=t.center.slice(),o=i.targetCenter),void 0!==t.zoom?(i.sourceResolution=a,i.targetResolution=this.getResolutionForZoom(t.zoom),a=i.targetResolution):t.resolution&&(i.sourceResolution=a,i.targetResolution=t.resolution,a=i.targetResolution),void 0!==t.rotation){i.sourceRotation=l;const e=(0,u.xP)(t.rotation-l+Math.PI,2*Math.PI)-Math.PI;i.targetRotation=l+e,l=i.targetRotation}C(i)?i.complete=!0:s+=i.duration,h.push(i)}this.animations_.push(h),this.setHint(r.A.ANIMATING,1),this.updateAnimations_()}getAnimating(){return this.hints_[r.A.ANIMATING]>0}getInteracting(){return this.hints_[r.A.INTERACTING]>0}cancelAnimations(){let t;this.setHint(r.A.ANIMATING,-this.hints_[r.A.ANIMATING]);for(let e=0,i=this.animations_.length;e<i;++e){const i=this.animations_[e];
2if(i[0].callback&&E(i[0].callback,!1),!t)for(let e=0,n=i.length;e<n;++e){const n=i[e];if(!n.complete){t=n.anchor;break}}}this.animations_.length=0,this.cancelAnchor_=t,this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN}updateAnimations_(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),!this.getAnimating())return;const t=Date.now();let e=!1;for(let i=this.animations_.length-1;i>=0;--i){const n=this.animations_[i];let s=!0;for(let i=0,r=n.length;i<r;++i){const r=n[i];if(r.complete)continue;const o=t-r.start;let a=r.duration>0?o/r.duration:1;a>=1?(r.complete=!0,a=1):s=!1;const l=r.easing(a);if(r.sourceCenter){const t=r.sourceCenter[0],e=r.sourceCenter[1],i=r.targetCenter[0],n=r.targetCenter[1];this.nextCenter_=r.targetCenter;const s=t+l*(i-t),o=e+l*(n-e);this.targetCenter_=[s,o]}if(r.sourceResolution&&r.targetResolution){const t=1===l?r.targetResolution:r.sourceResolution+l*(r.targetResolution-r.sourceResolution);if(r.anchor){const e=this.getViewportSize_(this.getRotation()),i=this.constraints_.resolution(t,0,e,!0);this.targetCenter_=this.calculateCenterZoom(i,r.anchor)}this.nextResolution_=r.targetResolution,this.targetResolution_=t,this.applyTargetState_(!0)}if(void 0!==r.sourceRotation&&void 0!==r.targetRotation){const t=1===l?(0,u.xP)(r.targetRotation+Math.PI,2*Math.PI)-Math.PI:r.sourceRotation+l*(r.targetRotation-r.sourceRotation);if(r.anchor){const e=this.constraints_.rotation(t,!0);this.targetCenter_=this.calculateCenterRotate(e,r.anchor)}this.nextRotation_=r.targetRotation,this.targetRotation_=t}if(this.applyTargetState_(!0),e=!0,!r.complete)break}if(s){this.animations_[i]=null,this.setHint(r.A.ANIMATING,-1),this.nextCenter_=null,this.nextResolution_=NaN,this.nextRotation_=NaN;const t=n[0].callback;t&&E(t,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_.bind(this)))}calculateCenterRotate(t,e){let i;const n=this.getCenterInternal();return void 0!==n&&(i=[n[0]-e[0],n[1]-e[1]],(0,h.e$)(i,t-this.getRotation()),(0,h.WQ)(i,e)),i}calculateCenterZoom(t,e){let i;const n=this.getCenterInternal(),r=this.getResolution();return void 0!==n&&void 0!==r&&(i=[e[0]-t*(e[0]-n[0])/r,e[1]-t*(e[1]-n[1])/r]),i}getViewportSize_(t){const e=this.viewportSize_;if(t){const i=e[0],n=e[1];return[Math.abs(i*Math.cos(t))+Math.abs(n*Math.sin(t)),Math.abs(i*Math.sin(t))+Math.abs(n*Math.cos(t))]}return e}setViewportSize(t){this.viewportSize_=Array.isArray(t)?t.slice():[100,100],this.getAnimating()||this.resolveConstraints(0)}getCenter(){const t=this.getCenterInternal();return t?(0,a.te)(t,this.getProjection()):t}getCenterInternal(){return this.get(s.CENTER)}getConstraints(){return this.constraints_}getConstrainResolution(){return this.get("constrainResolution")}getHints(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()}calculateExtent(t){const e=this.calculateExtentInternal(t);return(0,a.JR)(e,this.getProjection())}calculateExtentInternal(t){t=t||this.getViewportSizeMinusPadding_();const e=this.getCenterInternal();(0,c.v)(e,"The view center is not defined");const i=this.getResolution();(0,c.v)(void 0!==i,"The view resolution is not defined");const n=this.getRotation();return(0,c.v)(void 0!==n,"The view rotation is not defined"),(0,p.Bg)(e,i,n,t)}getMaxResolution(){return this.maxResolution_}getMinResolution(){return this.minResolution_}getMaxZoom(){return this.getZoomForResolution(this.minResolution_)}setMaxZoom(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))}getMinZoom(){return this.getZoomForResolution(this.maxResolution_)}setMinZoom(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))}setConstrainResolution(t){this.applyOptions_(this.getUpdatedOptions_({constrainResolution:t}))}getProjection(){return this.projection_}getResolution(){return this.get(s.RESOLUTION)}getResolutions(){return this.resolutions_}getResolutionForExtent(t,e){return this.getResolutionForExtentInternal((0,a.SD)(t,this.getProjection()),e)}getResolutionForExtentInternal(t,e){e=e||this.getViewportSizeMinusPadding_();const i=(0,p.RG)(t)/e[0],n=(0,p.Oq)(t)/e[1];return Math.max(i,n)}getResolutionForValueFunction(t){t=t||2;const e=this.getConstrainedResolution(this.maxResolution_),i=this.minResolution_,n=Math.log(e/i)/Math.log(t);return function(i){return e/Math.pow(t,i*n)}}getRotation(){return this.get(s.ROTATION)}getValueForResolutionFunction(t){const e=Math.log(t||2),i=this.getConstrainedResolution(this.maxResolution_),n=this.minResolution_,r=Math.log(i/n)/e;return function(t){return Math.log(i/t)/e/r}}getViewportSizeMinusPadding_(t){let e=this.getViewportSize_(t);const i=this.padding_;return i&&(e=[e[0]-i[1]-i[3],e[1]-i[0]-i[2]]),e}getState(){const t=this.getProjection(),e=this.getResolution(),i=this.getRotation();let n=this.getCenterInternal();const r=this.padding_;if(r){const t=this.getViewportSizeMinusPadding_();n=A(n,this.getViewportSize_(),[t[0]/2+r[3],t[1]/2+r[0]],e,i)}return{center:n.slice(0),projection:void 0!==t?t:null,resolution:e,nextCenter:this.nextCenter_,nextResolution:this.nextResolution_,nextRotation:this.nextRotation_,rotation:i,zoom:this.getZoom()}}getViewStateAndExtent(){return{viewState:this.getState(),extent:this.calculateExtent()}}getZoom(){let t;const e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t}getZoomForResolution(t){let e,i,n=this.minZoom_||0;if(this.resolutions_){const r=(0,g.FT)(this.resolutions_,t,1);n=r,e=this.resolutions_[r],i=r==this.resolutions_.length-1?2:e/this.resolutions_[r+1]}else e=this.maxResolution_,i=this.zoomFactor_;return n+Math.log(e/t)/Math.log(i)}getResolutionForZoom(t){if(this.resolutions_){if(this.resolutions_.length<=1)return 0;const e=(0,u.qE)(Math.floor(t),0,this.resolutions_.length-2),i=this.resolutions_[e]/this.resolutions_[e+1];return this.resolutions_[e]/Math.pow(i,(0,u.qE)(t-e,0,1))}return this.maxResolution_/Math.pow(this.zoomFactor_,t-this.minZoom_)}
2fit(t,e){let i;if((0,c.v)(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,"Invalid extent or geometry provided as `geometry`"),Array.isArray(t)){(0,c.v)(!(0,p.Im)(t),"Cannot fit empty extent provided as `geometry`");const e=(0,a.SD)(t,this.getProjection());i=(0,w.VY)(e)}else if("Circle"===t.getType()){const e=(0,a.SD)(t.getExtent(),this.getProjection());i=(0,w.VY)(e),i.rotate(this.getRotation(),(0,p.q1)(e))}else{const e=(0,a.Tf)();i=e?t.clone().transform(e,this.getProjection()):t}this.fitInternal(i,e)}rotatedExtentForGeometry(t){const e=this.getRotation(),i=Math.cos(e),n=Math.sin(-e),r=t.getFlatCoordinates(),s=t.getStride();let o=1/0,a=1/0,l=-1/0,h=-1/0;for(let t=0,e=r.length;t<e;t+=s){const e=r[t]*i-r[t+1]*n,s=r[t]*n+r[t+1]*i;o=Math.min(o,e),a=Math.min(a,s),l=Math.max(l,e),h=Math.max(h,s)}return[o,a,l,h]}fitInternal(t,e){let i=(e=e||{}).size;i||(i=this.getViewportSizeMinusPadding_());const n=void 0!==e.padding?e.padding:[0,0,0,0],r=void 0!==e.nearest&&e.nearest;let s;s=void 0!==e.minResolution?e.minResolution:void 0!==e.maxZoom?this.getResolutionForZoom(e.maxZoom):0;const o=this.rotatedExtentForGeometry(t);let a=this.getResolutionForExtentInternal(o,[i[0]-n[1]-n[3],i[1]-n[0]-n[2]]);a=isNaN(a)?s:Math.max(a,s),a=this.getConstrainedResolution(a,r?0:1);const h=this.getRotation(),c=Math.sin(h),u=Math.cos(h),d=(0,p.q1)(o);d[0]+=(n[1]-n[3])/2*a,d[1]+=(n[0]-n[2])/2*a;const f=d[0]*u-d[1]*c,g=d[1]*u+d[0]*c,m=this.getConstrainedCenter([f,g],a),v=e.callback?e.callback:l.tV;void 0!==e.duration?this.animateInternal({resolution:a,center:m,duration:e.duration,easing:e.easing},v):(this.targetResolution_=a,this.targetCenter_=m,this.applyTargetState_(!1,!0),E(v,!0))}centerOn(t,e,i){this.centerOnInternal((0,a.Ad)(t,this.getProjection()),e,i)}centerOnInternal(t,e,i){this.setCenterInternal(A(t,e,i,this.getResolution(),this.getRotation()))}calculateCenterShift(t,e,i,n){let r;const s=this.padding_;if(s&&t){const o=this.getViewportSizeMinusPadding_(-i),a=A(t,n,[o[0]/2+s[3],o[1]/2+s[0]],e,i);r=[t[0]-a[0],t[1]-a[1]]}return r}isDef(){return!!this.getCenterInternal()&&void 0!==this.getResolution()}adjustCenter(t){const e=(0,a.te)(this.targetCenter_,this.getProjection());this.setCenter([e[0]+t[0],e[1]+t[1]])}adjustCenterInternal(t){const e=this.targetCenter_;this.setCenterInternal([e[0]+t[0],e[1]+t[1]])}adjustResolution(t,e){e=e&&(0,a.Ad)(e,this.getProjection()),this.adjustResolutionInternal(t,e)}adjustResolutionInternal(t,e){const i=this.getAnimating()||this.getInteracting(),n=this.getViewportSize_(this.getRotation()),r=this.constraints_.resolution(this.targetResolution_*t,0,n,i);e&&(this.targetCenter_=this.calculateCenterZoom(r,e)),this.targetResolution_*=t,this.applyTargetState_()}adjustZoom(t,e){this.adjustResolution(Math.pow(this.zoomFactor_,-t),e)}adjustRotation(t,e){e&&(e=(0,a.Ad)(e,this.getProjection())),this.adjustRotationInternal(t,e)}adjustRotationInternal(t,e){const i=this.getAnimating()||this.getInteracting(),n=this.constraints_.rotation(this.targetRotation_+t,i);e&&(this.targetCenter_=this.calculateCenterRotate(n,e)),this.targetRotation_+=t,this.applyTargetState_()}setCenter(t){this.setCenterInternal(t?(0,a.Ad)(t,this.getProjection()):t)}setCenterInternal(t){this.targetCenter_=t,this.applyTargetState_()}setHint(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]}setResolution(t){this.targetResolution_=t,this.applyTargetState_()}setRotation(t){this.targetRotation_=t,this.applyTargetState_()}setZoom(t){this.setResolution(this.getResolutionForZoom(t))}applyTargetState_(t,e){const i=this.getAnimating()||this.getInteracting()||e,n=this.constraints_.rotation(this.targetRotation_,i),r=this.getViewportSize_(n),o=this.constraints_.resolution(this.targetResolution_,0,r,i),a=this.constraints_.center(this.targetCenter_,o,r,i,this.calculateCenterShift(this.targetCenter_,o,n,r));this.get(s.ROTATION)!==n&&this.set(s.ROTATION,n),this.get(s.RESOLUTION)!==o&&(this.set(s.RESOLUTION,o),this.set("zoom",this.getZoom(),!0)),a&&this.get(s.CENTER)&&(0,h.aI)(this.get(s.CENTER),a)||this.set(s.CENTER,a),this.getAnimating()&&!t&&this.cancelAnimations(),this.cancelAnchor_=void 0}resolveConstraints(t,e,i){t=void 0!==t?t:200;const n=e||0,r=this.constraints_.rotation(this.targetRotation_),s=this.getViewportSize_(r),o=this.constraints_.resolution(this.targetResolution_,n,s),a=this.constraints_.center(this.targetCenter_,o,s,!1,this.calculateCenterShift(this.targetCenter_,o,r,s));if(0===t&&!this.cancelAnchor_)return this.targetResolution_=o,this.targetRotation_=r,this.targetCenter_=a,void this.applyTargetState_();i=i||(0===t?this.cancelAnchor_:void 0),this.cancelAnchor_=void 0,this.getResolution()===o&&this.getRotation()===r&&this.getCenterInternal()&&(0,h.aI)(this.getCenterInternal(),a)||(this.getAnimating()&&this.cancelAnimations(),this.animateInternal({rotation:r,center:a,resolution:o,duration:t,easing:x.vT,anchor:i}))}beginInteraction(){this.resolveConstraints(0),this.setHint(r.A.INTERACTING,1)}
2endInteraction(t,e,i){i=i&&(0,a.Ad)(i,this.getProjection()),this.endInteractionInternal(t,e,i)}endInteractionInternal(t,e,i){this.getInteracting()&&(this.setHint(r.A.INTERACTING,-1),this.resolveConstraints(t,e,i))}getConstrainedCenter(t,e){const i=this.getViewportSize_(this.getRotation());return this.constraints_.center(t,e||this.getResolution(),i)}getConstrainedZoom(t,e){const i=this.getResolutionForZoom(t);return this.getZoomForResolution(this.getConstrainedResolution(i,e))}getConstrainedResolution(t,e){e=e||0;const i=this.getViewportSize_(this.getRotation());return this.constraints_.resolution(t,e,i)}}function E(t,e){setTimeout((function(){t(e)}),0)}function C(t){return!(t.sourceCenter&&t.targetCenter&&!(0,h.aI)(t.sourceCenter,t.targetCenter))&&t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation}function A(t,e,i,n,r){const s=Math.cos(-r);let o=Math.sin(-r),a=t[0]*s-t[1]*o,l=t[1]*s+t[0]*o;return a+=(e[0]/2-i[0])*n,l+=(i[1]-e[1]/2)*n,o=-o,[a*s-l*o,l*s+a*o]}const S=b},1828:(t,e,i)=>{"use strict";var n=i(9504),r=i(9297),s=i(5397),o=i(9617).indexOf,a=i(421),l=n([].push);t.exports=function(t,e){var i,n=s(t),h=0,c=[];for(i in n)!r(a,i)&&r(n,i)&&l(c,i);for(;e.length>h;)r(n,i=e[h++])&&(~o(c,i)||l(c,i));return c}},1854:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var n=i(9332),r=i(6837),s=i(9438);class o extends n.A{constructor(){super(),this.on=this.onInternal,this.once=this.onceInternal,this.un=this.unInternal,this.revision_=0}changed(){++this.revision_,this.dispatchEvent(r.A.CHANGE)}getRevision(){return this.revision_}onInternal(t,e){if(Array.isArray(t)){const i=t.length,n=new Array(i);for(let r=0;r<i;++r)n[r]=(0,s.KT)(this,t[r],e);return n}return(0,s.KT)(this,t,e)}onceInternal(t,e){let i;if(Array.isArray(t)){const n=t.length;i=new Array(n);for(let r=0;r<n;++r)i[r]=(0,s.Jz)(this,t[r],e)}else i=(0,s.Jz)(this,t,e);return e.ol_key=i,i}unInternal(t,e){const i=e.ol_key;if(i)!function(t){if(Array.isArray(t))for(let e=0,i=t.length;e<i;++e)(0,s.JH)(t[e]);else(0,s.JH)(t)}(i);else if(Array.isArray(t))for(let i=0,n=t.length;i<n;++i)this.removeEventListener(t[i],e);else this.removeEventListener(t,e)}}o.prototype.on,o.prototype.once,o.prototype.un;const a=/^(217|331)$/.test(i.j)?o:null},2135:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n={ADD:"add",REMOVE:"remove"}},2137:function(t,e,i){var n,r;"undefined"!=typeof window&&window,void 0===(r="function"==typeof(n=function(){"use strict";function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var i=this._events=this._events||{},n=i[t]=i[t]||[];return-1==n.indexOf(e)&&n.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var i=this._onceEvents=this._onceEvents||{};return(i[t]=i[t]||{})[e]=!0,this}},e.off=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){var n=i.indexOf(e);return-1!=n&&i.splice(n,1),this}},e.emitEvent=function(t,e){var i=this._events&&this._events[t];if(i&&i.length){i=i.slice(0),e=e||[];for(var n=this._onceEvents&&this._onceEvents[t],r=0;r<i.length;r++){var s=i[r];n&&n[s]&&(this.off(t,s),delete n[s]),s.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t})?n.call(e,i,e,t):n)||(t.exports=r)},2140:(t,e,i)=>{"use strict";var n={};n[i(8227)("toStringTag")]="z",t.exports="[object z]"===String(n)},2195:(t,e,i)=>{"use strict";var n=i(9504),r=n({}.toString),s=n("".slice);t.exports=function(t){return s(r(t),8,-1)}},2236:(t,e,i)=>{"use strict";i.d(e,{A:()=>f});var n=i(2826),r=i(7295),s=i(9703),o=i(8774),a=i(6514),l=i(915),h=i(1597),c=i(7622),u=i(4774);class d extends n.A{constructor(t,e,i,n,r,o,a){super(),this.context_=t,this.pixelRatio_=e,this.extent_=i,this.transform_=n,this.transformRotation_=n?(0,h.Mg)(Math.atan2(n[1],n[0]),10):0,this.viewRotation_=r,this.squaredTolerance_=o,this.userTransform_=a,this.contextFillState_=null,this.contextStrokeState_=null,this.contextTextState_=null,this.fillState_=null,this.strokeState_=null,this.image_=null,this.imageAnchorX_=0,this.imageAnchorY_=0,this.imageHeight_=0,this.imageOpacity_=0,this.imageOriginX_=0,this.imageOriginY_=0,this.imageRotateWithView_=!1,this.imageRotation_=0,this.imageScale_=[0,0],this.imageWidth_=0,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=!1,this.textRotation_=0,this.textScale_=[0,0],this.textFillState_=null,this.textStrokeState_=null,this.textState_=null,this.pixelCoordinates_=[],this.tmpLocalTransform_=(0,s.vt)()}drawImages_(t,e,i,n){if(!this.image_)return;const r=(0,c.Rc)(t,e,i,n,this.transform_,this.pixelCoordinates_),o=this.context_,a=this.tmpLocalTransform_,l=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=l*this.imageOpacity_);let h=this.imageRotation_;0===this.transformRotation_&&(h-=this.viewRotation_),this.imageRotateWithView_&&(h+=this.viewRotation_);for(let t=0,e=r.length;t<e;t+=2){const e=r[t]-this.imageAnchorX_,i=r[t+1]-this.imageAnchorY_;if(0!==h||1!=this.imageScale_[0]||1!=this.imageScale_[1]){const t=e+this.imageAnchorX_,n=i+this.imageAnchorY_;(0,s.Zz)(a,t,n,1,1,h,-t,-n),o.save(),o.transform.apply(o,a),o.translate(t,n),o.scale(this.imageScale_[0],this.imageScale_[1]),o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,-this.imageAnchorX_,-this.imageAnchorY_,this.imageWidth_,this.imageHeight_),o.restore(
2)}else o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,e,i,this.imageWidth_,this.imageHeight_)}1!=this.imageOpacity_&&(o.globalAlpha=l)}drawText_(t,e,i,n){if(!this.textState_||""===this.text_)return;this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);const r=(0,c.Rc)(t,e,i,n,this.transform_,this.pixelCoordinates_),s=this.context_;let o=this.textRotation_;for(0===this.transformRotation_&&(o-=this.viewRotation_),this.textRotateWithView_&&(o+=this.viewRotation_);e<i;e+=n){const t=r[e]+this.textOffsetX_,i=r[e+1]+this.textOffsetY_;0!==o||1!=this.textScale_[0]||1!=this.textScale_[1]?(s.save(),s.translate(t-this.textOffsetX_,i-this.textOffsetY_),s.rotate(o),s.translate(this.textOffsetX_,this.textOffsetY_),s.scale(this.textScale_[0],this.textScale_[1]),this.textStrokeState_&&s.strokeText(this.text_,0,0),this.textFillState_&&s.fillText(this.text_,0,0),s.restore()):(this.textStrokeState_&&s.strokeText(this.text_,t,i),this.textFillState_&&s.fillText(this.text_,t,i))}}moveToLineTo_(t,e,i,n,r){const s=this.context_,o=(0,c.Rc)(t,e,i,n,this.transform_,this.pixelCoordinates_);s.moveTo(o[0],o[1]);let a=o.length;r&&(a-=2);for(let t=2;t<a;t+=2)s.lineTo(o[t],o[t+1]);return r&&s.closePath(),i}drawRings_(t,e,i,n){for(let r=0,s=i.length;r<s;++r)e=this.moveToLineTo_(t,e,i[r],n,!0);return e}drawCircle(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,l.HY)(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=(0,u.v7)(t,this.transform_,this.pixelCoordinates_),i=e[2]-e[0],n=e[3]-e[1],r=Math.sqrt(i*i+n*n),s=this.context_;s.beginPath(),s.arc(e[0],e[1],r,0,2*Math.PI),this.fillState_&&s.fill(),this.strokeState_&&s.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}}setStyle(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())}setTransform(t){this.transform_=t}drawGeometry(t){switch(t.getType()){case"Point":this.drawPoint(t);break;case"LineString":this.drawLineString(t);break;case"Polygon":this.drawPolygon(t);break;case"MultiPoint":this.drawMultiPoint(t);break;case"MultiLineString":this.drawMultiLineString(t);break;case"MultiPolygon":this.drawMultiPolygon(t);break;case"GeometryCollection":this.drawGeometryCollection(t);break;case"Circle":this.drawCircle(t)}}drawFeature(t,e){const i=e.getGeometryFunction()(t);i&&(this.setStyle(e),this.drawGeometry(i))}drawGeometryCollection(t){const e=t.getGeometriesArray();for(let t=0,i=e.length;t<i;++t)this.drawGeometry(e[t])}drawPoint(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const e=t.getFlatCoordinates(),i=t.getStride();this.image_&&this.drawImages_(e,0,e.length,i),""!==this.text_&&this.drawText_(e,0,e.length,i)}drawMultiPoint(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const e=t.getFlatCoordinates(),i=t.getStride();this.image_&&this.drawImages_(e,0,e.length,i),""!==this.text_&&this.drawText_(e,0,e.length,i)}drawLineString(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,l.HY)(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const e=this.context_,i=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(i,0,i.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){const e=t.getFlatMidpoint();this.drawText_(e,0,2,2)}}}drawMultiLineString(t){this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_));const e=t.getExtent();if((0,l.HY)(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);const e=this.context_,i=t.getFlatCoordinates();let n=0;const r=t.getEnds(),s=t.getStride();e.beginPath();for(let t=0,e=r.length;t<e;++t)n=this.moveToLineTo_(i,n,r[t],s,!1);e.stroke()}if(""!==this.text_){const e=t.getFlatMidpoints();this.drawText_(e,0,e.length,2)}}}drawPolygon(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,l.HY)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=this.context_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){const e=t.getFlatInteriorPoint();this.drawText_(e,0,2,2)}}}drawMultiPolygon(t){if(this.squaredTolerance_&&(t=t.simplifyTransformed(this.squaredTolerance_,this.userTransform_)),(0,l.HY)(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);const e=this.context_,i=t.getOrientedFlatCoordinates();let n=0;const r=t.getEndss(),s=t.getStride();e.beginPath();for(let t=0,e=r.length;t<e;++t){const e=r[t];n=this.drawRings_(i,n,e,s)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){const e=t.getFlatInteriorPoints();this.drawText_(e,0,e.length,2)}}}setContextFillState_(t){const e=this.context_,i=this.contextFillState_;i?i.fillStyle!=t.fillStyle&&(i.fillStyle=t.fillStyle,e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})}setContextStrokeState_(t){const e=this.context_,i=this.contextStrokeState_;i?(i.lineCap!=t.lineCap&&(i.lineCap=t.lineCap,e.lineCap=t.lineCap),(0,a.aI)(i.lineDash,t.lineDash)||e.setLineDash(i.lineDash=t.lineDash),i.lineDashOffset!=t.lineDashOffset&&(i.lineDashOffset=t.lineDashOffset,e.lineDashOffset=t.lineDashOffset),i.lineJoin!=t.lineJoin&&(i.lineJoin=t.lineJoin,e.lineJoin=t.lineJoin),i.lineWidth!=t.lineWidth&&(i.lineWidth=t.lineWidth,e.lineWidth=t.lineWidth),i.miterLimit!=t.miterLimit&&(i.miterLimit=t.miterLimit,e.miterLimit=t.miterLimit),i.strokeStyle!=t.strokeStyle&&(i.strokeStyle=t.strokeStyle,e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset,e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})}setContextTextState_(t){const e=this.context_,i=this.contextTextState_,n=t.textAlign?t.textAlign:o.MY;i?(i.font!=t.font&&(i.font=t.font,e.font=t.font),i.textAlign!=n&&(i.textAlign=n,e.textAlign=n),i.textBaseline!=t.textBaseline&&(i.textBaseline=t.textBaseline,e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=n,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:n,textBaseline:t.textBaseline})}setFillStrokeStyle(t,e){if(t){const e=t.getColor();this.fillState_={fillStyle:(0,r.F)(e||o.qY)}}else this.fillState_=null;if(e){const t=e.getColor(),i=e.getLineCap(),n=e.getLineDash(),s=e.getLineDashOffset(),a=e.getLineJoin(),l=e.getWidth(),h=e.getMiterLimit(),c=n||o.Oq;this.strokeState_={lineCap:void 0!==i?i:o._m,lineDash:1===this.pixelRatio_?c:c.map((t=>t*this.pixelRatio_)),lineDashOffset:(s||o.vk)*this.pixelRatio_,lineJoin:void 0!==a?a:o._K,lineWidth:(void 0!==l?l:o.aq)*this.pixelRatio_,miter
2Limit:void 0!==h?h:o.eL,strokeStyle:(0,r.F)(t||o.NT)}}else this.strokeState_=null}setImageStyle(t){let e;if(!t||!(e=t.getSize()))return void(this.image_=null);const i=t.getPixelRatio(this.pixelRatio_),n=t.getAnchor(),r=t.getOrigin();this.image_=t.getImage(this.pixelRatio_),this.imageAnchorX_=n[0]*i,this.imageAnchorY_=n[1]*i,this.imageHeight_=e[1]*i,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=r[0],this.imageOriginY_=r[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation();const s=t.getScaleArray();this.imageScale_=[s[0]*this.pixelRatio_/i,s[1]*this.pixelRatio_/i],this.imageWidth_=e[0]*i}setTextStyle(t){if(t){const e=t.getFill();if(e){const t=e.getColor();this.textFillState_={fillStyle:(0,r.F)(t||o.qY)}}else this.textFillState_=null;const i=t.getStroke();if(i){const t=i.getColor(),e=i.getLineCap(),n=i.getLineDash(),s=i.getLineDashOffset(),a=i.getLineJoin(),l=i.getWidth(),h=i.getMiterLimit();this.textStrokeState_={lineCap:void 0!==e?e:o._m,lineDash:n||o.Oq,lineDashOffset:s||o.vk,lineJoin:void 0!==a?a:o._K,lineWidth:void 0!==l?l:o.aq,miterLimit:void 0!==h?h:o.eL,strokeStyle:(0,r.F)(t||o.NT)}}else this.textStrokeState_=null;const n=t.getFont(),s=t.getOffsetX(),a=t.getOffsetY(),l=t.getRotateWithView(),h=t.getRotation(),c=t.getScaleArray(),u=t.getText(),d=t.getTextAlign(),f=t.getTextBaseline();this.textState_={font:void 0!==n?n:o.ZV,textAlign:void 0!==d?d:o.MY,textBaseline:void 0!==f?f:
2o.M8},this.text_=void 0!==u?Array.isArray(u)?u.reduce(((t,e,i)=>t+(i%2?" ":e)),""):u:"",this.textOffsetX_=void 0!==s?this.pixelRatio_*s:0,this.textOffsetY_=void 0!==a?this.pixelRatio_*a:0,this.textRotateWithView_=void 0!==l&&l,this.textRotation_=void 0!==h?h:0,this.textScale_=[this.pixelRatio_*c[0],this.pixelRatio_*c[1]]}else this.text_=""}}const f=/^(217|331)$/.test(i.j)?d:null},2241:(t,e,i)=>{"use strict";i.d(e,{ue:()=>a});var n=i(6141),r=i(9528),s=i(8711);function o(t,e,i){return e+":"+t+":"+(i?(0,r._j)(i):"null")}const a=new class{constructor(){this.cache_={},this.patternCache_={},this.cacheSize_=0,this.maxCacheSize_=32}clear(){this.cache_={},this.patternCache_={},this.cacheSize_=0}canExpireCache(){return this.cacheSize_>this.maxCacheSize_}expire(){if(this.canExpireCache()){let t=0;for(const e in this.cache_){const i=this.cache_[e];3&t++||i.hasListener()||(delete this.cache_[e],delete this.patternCache_[e],--this.cacheSize_)}}}get(t,e,i){const n=o(t,e,i);return n in this.cache_?this.cache_[n]:null}getPattern(t,e,i){const n=o(t,e,i);return n in this.patternCache_?this.patternCache_[n]:null}set(t,e,i,r,a){const l=o(t,e,i),h=l in this.cache_;this.cache_[l]=r,a&&(r.getImageState()===n.A.IDLE&&r.load(),r.getImageState()===n.A.LOADING?r.ready().then((()=>{this.patternCache_[l]=(0,s.lr)().createPattern(r.getImage(1),"repeat")})):this.patternCache_[l]=(0,s.lr)().createPattern(r.getImage(1),"repeat")),h||++this.cacheSize_}setSize(t){this.maxCacheSize_=t,this.expire()}}},2348:(t,e,i)=>{"use strict";if(i.d(e,{A:()=>b}),/^(217|331)$/.test(i.j))var n=i(6429);if(/^(217|331)$/.test(i.j))var r=i(808);if(/^(217|331)$/.test(i.j))var s=i(3624);if(/^(217|331)$/.test(i.j))var o=i(9703);var a=i(915);if(/^(217|331)$/.test(i.j))var l=i(8774);if(/^(217|331)$/.test(i.j))var h=i(7016);if(/^(217|331)$/.test(i.j))var c=i(6514);if(/^(217|331)$/.test(i.j))var u=i(904);if(/^(217|331)$/.test(i.j))var d=i(7622);const f=(0,a.S5)(),p=/^(217|331)$/.test(i.j)?[]:null,g=/^(217|331)$/.test(i.j)?[]:null,m=/^(217|331)$/.test(i.j)?[]:null,v=/^(217|331)$/.test(i.j)?[]:null;function _(t){return t[3].declutterBox}const y=new RegExp("["+String.fromCharCode(1425)+"-"+String.fromCharCode(2303)+String.fromCharCode(64285)+"-"+String.fromCharCode(65023)+String.fromCharCode(65136)+"-"+String.fromCharCode(65276)+String.fromCharCode(67584)+"-"+String.fromCharCode(69631)+String.fromCharCode(124928)+"-"+String.fromCharCode(126975)+"]");function x(t,e){return"start"===e?e=y.test(t)?"right":"left":"end"===e&&(e=y.test(t)?"left":"right"),s.E[e]}function w(t,e,i){return i>0&&t.push("\n",""),t.push(e,""),t}const b=/^(217|331)$/.test(i.j)?class{constructor(t,e,i,n,s){this.overlaps=i,this.pixelRatio=e,this.resolution=t,this.alignAndScaleFill_,this.instructions=n.instructions,this.coordinates=n.coordinates,this.coordinateCache_={},this.renderedTransform_=(0,o.vt)(),this.hitDetectionInstructions=n.hitDetectionInstructions,this.pixelCoordinates_=null,this.viewRotation_=0,this.fillStates=n.fillStates||{},this.strokeStates=n.strokeStates||{},this.textStates=n.textStates||{},this.widths_={},this.labels_={},this.zIndexContext_=s?new r.A:null}getZIndexContext(){return this.zIndexContext_}createLabel(t,e,i,n){const r=t+e+i+n;if(this.labels_[r])return this.labels_[r];const o=n?this.strokeStates[n]:null,a=i?this.fillStates[i]:null,h=this.textStates[e],c=this.pixelRatio,u=[h.scale[0]*c,h.scale[1]*c],d=Array.isArray(t),f=h.justify?s.E[h.justify]:x(Array.isArray(t)?t[0]:t,h.textAlign||l.MY),p=n&&o.lineWidth?o.lineWidth:0,g=d?t:t.split("\n").reduce(w,[]),{width:m,height:v,widths:_,heights:y,lineWidths:b}=(0,l.jT)(h,g),E=m+p,C=[],A=(E+2)*u[0],S=(v+p)*u[1],T={width:A<0?Math.floor(A):Math.ceil(A),height:S<0?Math.floor(S):Math.ceil(S),contextInstructions:C};1==u[0]&&1==u[1]||C.push("scale",u),n&&(C.push("strokeStyle",o.strokeStyle),C.push("lineWidth",p),C.push("lineCap",o.lineCap),C.push("lineJoin",o.lineJoin),C.push("miterLimit",o.miterLimit),C.push("setLineDash",[o.lineDash]),C.push("lineDashOffset",o.lineDashOffset)),i&&C.push("fillStyle",a.fillStyle),C.push("textBaseline","middle"),C.push("textAlign","center");const I=.5-f;let R=f*E+I*p;const D=[],M=[];
2let L,O=0,k=0,P=0,F=0;for(let t=0,e=g.length;t<e;t+=2){const e=g[t];if("\n"===e){k+=O,O=0,R=f*E+I*p,++F;continue}const r=g[t+1]||h.font;r!==L&&(n&&D.push("font",r),i&&M.push("font",r),L=r),O=Math.max(O,y[P]);const s=[e,R+I*_[P]+f*(_[P]-b[F]),.5*(p+O)+k];R+=_[P],n&&D.push("strokeText",s),i&&M.push("fillText",s),++P}return Array.prototype.push.apply(C,D),Array.prototype.push.apply(C,M),this.labels_[r]=T,T}replayTextBackground_(t,e,i,n,r,s,o){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,i),t.lineTo.apply(t,n),t.lineTo.apply(t,r),t.lineTo.apply(t,e),s&&(this.alignAndScaleFill_=s[2],this.fill_(t)),o&&(this.setStrokeStyle_(t,o),t.stroke())}calculateImageOrLabelDimensions_(t,e,i,n,r,s,l,h,c,u,d,_,y,x,w,b){let E=i-(l*=_[0]),C=n-(h*=_[1]);const A=r+c>t?t-c:r,S=s+u>e?e-u:s,T=x[3]+A*_[0]+x[1],I=x[0]+S*_[1]+x[2],R=E-x[3],D=C-x[0];let M;return(w||0!==d)&&(p[0]=R,v[0]=R,p[1]=D,g[1]=D,g[0]=R+T,m[0]=g[0],m[1]=D+I,v[1]=m[1]),0!==d?(M=(0,o.Zz)((0,o.vt)(),i,n,1,1,d,-i,-n),(0,o.Bb)(M,p),(0,o.Bb)(M,g),(0,o.Bb)(M,m),(0,o.Bb)(M,v),(0,a.N)(Math.min(p[0],g[0],m[0],v[0]),Math.min(p[1],g[1],m[1],v[1]),Math.max(p[0],g[0],m[0],v[0]),Math.max(p[1],g[1],m[1],v[1]),f)):(0,a.N)(Math.min(R,R+T),Math.min(D,D+I),Math.max(R,R+T),Math.max(D,D+I),f),y&&(E=Math.round(E),C=Math.round(C)),{drawImageX:E,drawImageY:C,drawImageW:A,drawImageH:S,originX:c,originY:u,declutterBox:{minX:f[0],minY:f[1],maxX:f[2],maxY:f[3],value:b},canvasTransform:M,scale:_}}replayImageOrLabel_(t,e,i,n,r,s,o){const a=!(!s&&!o),h=n.declutterBox,c=o?o[2]*n.scale[0]/2:0;return h.minX-c<=e[0]&&h.maxX+c>=0&&h.minY-c<=e[1]&&h.maxY+c>=0&&(a&&this.replayTextBackground_(t,p,g,m,v,s,o),(0,l.Jw)(t,n.canvasTransform,r,i,n.originX,n.originY,n.drawImageW,n.drawImageH,n.drawImageX,n.drawImageY,n.scale)),!0}fill_(t){const e=this.alignAndScaleFill_;if(e){const i=(0,o.Bb)(this.renderedTransform_,[0,0]),n=512*this.pixelRatio;t.save(),t.translate(i[0]%n,i[1]%n),1!==e&&t.scale(e,e),t.rotate(this.viewRotation_)}t.fill(),e&&t.restore()}setStrokeStyle_(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],t.lineDashOffset=e[7],t.setLineDash(e[6])}drawLabelWithPointPlacement_(t,e,i,n){const r=this.textStates[e],o=this.createLabel(t,e,n,i),a=this.strokeStates[i],h=this.pixelRatio,c=x(Array.isArray(t)?t[0]:t,r.textAlign||l.MY),u=s.E[r.textBaseline||l.M8],d=a&&a.lineWidth?a.lineWidth:0;return{label:o,anchorX:c*(o.width/h-2*r.scale[0])+2*(.5-c)*d,anchorY:u*o.height/h+2*(.5-u)*d}}execute_(t,e,i,r,s,f,p,g){const m=this.zIndexContext_;let v;this.pixelCoordinates_&&(0,c.aI)(i,this.renderedTransform_)?v=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),v=(0,d.Rc)(this.coordinates,0,this.coordinates.length,2,i,this.pixelCoordinates_),(0,o.k3)(this.renderedTransform_,i));let y=0;const w=r.length;let b,E,C,A,S,T,I,R,D,M,L,O,k,P=0,F=0,N=0,j=null,$=null;const G=this.coordinateCache_,z=this.viewRotation_,q=Math.round(1e12*Math.atan2(-i[1],i[0]))/1e12,W={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:z},Y=this.instructions!=r||this.overlaps?0:200;let H,B,Z,X;for(;y<w;){const i=r[y];switch(i[0]){case n.Ay.BEGIN_GEOMETRY:H=i[1],X=i[3],H.getGeometry()?void 0===p||(0,a.HY)(p,X.getExtent())?++y:y=i[2]+1:y=i[2],m&&(m.zIndex=i[4]);break;case n.Ay.BEGIN_PATH:F>Y&&(this.fill_(t),F=0),N>Y&&(t.stroke(),N=0),F||N||(t.beginPath(),S=NaN,T=NaN),++y;break;case n.Ay.CIRCLE:P=i[1];const r=v[P],o=v[P+1],c=v[P+2]-r,d=v[P+3]-o,w=Math.sqrt(c*c+d*d);t.moveTo(r+w,o),t.arc(r,o,w,0,2*Math.PI,!0),++y;break;case n.Ay.CLOSE_PATH:t.closePath(),++y;break;case n.Ay.CUSTOM:P=i[1],b=i[2];const V=i[3],K=i[4],U=i[5];W.geometry=V,W.feature=H,y in G||(G[y]=[]);const J=G[y];U?U(v,P,b,2,J):(J[0]=v[P],J[1]=v[P+1],J.length=2),m&&(m.zIndex=i[6]),K(J,W),++y;break;case n.Ay.DRAW_IMAGE:P=i[1],b=i[2],D=i[3],E=i[4],C=i[5];let Q=i[6];const tt=i[7],et=i[8],it=i[9],nt=i[10];let rt=i[11];const st=i[12];let ot=i[13];A=i[14]||"declutter";const at=i[15];if(!D&&i.length>=20){M=i[19],L=i[20],O=i[21],k=i[22];const t=this.drawLabelWithPointPlacement_(M,L,O,k);D=t.label,i[3]=D;const e=i[23];E=(t.anchorX-e)*this.pixelRatio,i[4]=E;const n=i[24];C=(t.anchorY-n)*this.pixelRatio,i[5]=C,Q=D.height,i[6]=Q,ot=D.width,i[13]=ot}let lt,ht,ct,ut;i.length>25&&(lt=i[25]),i.length>17?(ht=i[16],ct=i[17],ut=i[18]):(ht=l.Tq,ct=!1,ut=!1),nt&&q?rt+=z:nt||q||(rt-=z);let dt=0;for(;P<b;P+=2){if(lt&&lt[dt++]<ot/this.pixelRatio)continue;const i=this.calculateImageOrLabelDimensions_(D.width,D.height,v[P],v[P+1],ot,Q,E,C,et,it,rt,st,s,ht,ct||ut,H),n=[t,e,D,i,tt,ct?j:null,ut?$:null];if(g){let t,e,r,s,o;if(at){const i=b-P;if(!at[i]){at[i]={args:n,declutterMode:A};continue}const s=at[i];t=s.args,e=s.declutterMode,delete at[i],r=_(t)}if(!t||"declutter"===e&&g.collides(r)||(s=!0),"declutter"===A&&g.collides(i.declutterBox)||(o=!0),"declutter"===e&&"declutter"===A){const t=s&&o;s=t,o=t}s&&("none"!==e&&g.insert(r),this.replayImageOrLabel_.apply(this,t)),o&&("none"!==A&&g.insert(i.declutterBox),this.replayImageOrLabel_.apply(this,n))}else this.replayImageOrLabel_.apply(this,n)}++y;break;case n.Ay.DRAW_CHARS:const ft=i[1],pt=i[2],gt=i[3],mt=i[4];k=i[5];const vt=i[6],_t=i[7],yt=i[8];O=i[9];const xt=i[10];M=i[11],L=i[12];const wt=[i[13],i[13]];A=i[14]||"declutter";const bt=this.textStates[L],Et=bt.font,Ct=[bt.scale[0]*_t,bt.scale[1]*_t];let At;Et in this.widths_?At=this.widths_[Et]:(At={},this.widths_[Et]=At);const St=(0,u.k)(v,ft,pt,2),Tt=Math.abs(Ct[0])*(0,l.TA)(Et,M,At);
2if(mt||Tt<=St){const i=(St-Tt)*x(M,this.textStates[L].textAlign),n=(0,h.w)(v,ft,pt,2,M,i,vt,Math.abs(Ct[0]),l.TA,Et,At,q?0:this.viewRotation_);t:if(n){const i=[];let r,s,o,a,h;if(O)for(r=0,s=n.length;r<s;++r){h=n[r],o=h[4],a=this.createLabel(o,L,"",O),E=h[2]+(Ct[0]<0?-xt:xt),C=gt*a.height+2*(.5-gt)*xt*Ct[1]/Ct[0]-yt;const s=this.calculateImageOrLabelDimensions_(a.width,a.height,h[0],h[1],a.width,a.height,E,C,0,0,h[3],wt,!1,l.Tq,!1,H);if(g&&"declutter"===A&&g.collides(s.declutterBox))break t;i.push([t,e,a,s,1,null,null])}if(k)for(r=0,s=n.length;r<s;++r){h=n[r],o=h[4],a=this.createLabel(o,L,k,""),E=h[2],C=gt*a.height-yt;const s=this.calculateImageOrLabelDimensions_(a.width,a.height,h[0],h[1],a.width,a.height,E,C,0,0,h[3],wt,!1,l.Tq,!1,H);if(g&&"declutter"===A&&g.collides(s.declutterBox))break t;i.push([t,e,a,s,1,null,null])}g&&"none"!==A&&g.load(i.map(_));for(let t=0,e=i.length;t<e;++t)this.replayImageOrLabel_.apply(this,i[t])}}++y;break;case n.Ay.END_GEOMETRY:if(void 0!==f){H=i[1];const t=f(H,X,A);if(t)return t}++y;break;case n.Ay.FILL:Y?F++:this.fill_(t),++y;break;case n.Ay.MOVE_TO_LINE_TO:for(P=i[1],b=i[2],B=v[P],Z=v[P+1],t.moveTo(B,Z),S=B+.5|0,T=Z+.5|0,P+=2;P<b;P+=2)B=v[P],Z=v[P+1],I=B+.5|0,R=Z+.5|0,P!=b-2&&I===S&&R===T||(t.lineTo(B,Z),S=I,T=R);++y;break;case n.Ay.SET_FILL_STYLE:j=i,this.alignAndScaleFill_=i[2],F&&(this.fill_(t),F=0,N&&(t.stroke(),N=0)),t.fillStyle=i[1],++y;break;case n.Ay.SET_STROKE_STYLE:$=i,N&&(t.stroke(),N=0),this.setStrokeStyle_(t,i),++y;break;case n.Ay.STROKE:Y?N++:t.stroke(),++y;break;default:++y}}F&&this.fill_(t),N&&t.stroke()}execute(t,e,i,n,r,s){this.viewRotation_=n,this.execute_(t,e,i,this.instructions,r,void 0,void 0,s)}executeHitDetection(t,e,i,n,r){return this.viewRotation_=i,this.execute_(t,[t.canvas.width,t.canvas.height],e,this.hitDetectionInstructions,!0,n,r)}}:null},2412:(t,e,i)=>{"use strict";i.d(e,{A:()=>P});var n=i(71),r=i(2135),s=i(1685),o=i(6837),a=i(8450),l=i(5341),h=i(915),c=i(4087),u=i(3530);const d=class{constructor(t){this.rbush_=new l(t),this.items_={}}insert(t,e){const i={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(i),this.items_[(0,c.v6)(e)]=i}load(t,e){const i=new Array(e.length);for(let n=0,r=e.length;n<r;n++){const r=t[n],s=e[n],o={minX:r[0],minY:r[1],maxX:r[2],maxY:r[3],value:s};i[n]=o,this.items_[(0,c.v6)(s)]=o}this.rbush_.load(i)}remove(t){const e=(0,c.v6)(t),i=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(i)}update(t,e){const i=this.items_[(0,c.v6)(e)],n=[i.minX,i.minY,i.maxX,i.maxY];(0,h.aI)(n,t)||(this.remove(e),this.insert(t,e))}getAll(){return this.rbush_.all().map((function(t){return t.value}))}getInExtent(t){const e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]};return this.rbush_.search(e).map((function(t){return t.value}))}forEach(t){return this.forEach_(this.getAll(),t)}forEachInExtent(t,e){return this.forEach_(this.getInExtent(t),e)}forEach_(t,e){let i;for(let n=0,r=t.length;n<r;n++)if(i=e(t[n]),i)return i;return i}isEmpty(){return(0,u.p)(this.items_)}clear(){this.rbush_.clear(),this.items_={}}getExtent(t){const e=this.rbush_.toJSON();return(0,h.N)(e.minX,e.minY,e.maxX,e.maxY,t)}concat(t){this.rbush_.load(t.rbush_.all());for(const e in t.items_)this.items_[e]=t.items_[e]}};var f=i(9703),p=i(3671),g=i(6514),m=i(2616),v=i(7083),_=i(2913),y=i(1597);function x(t,e,i,n,r,s,o){let a,l;const h=(i-e)/n;if(1===h)a=e;else if(2===h)a=e,l=r;else if(0!==h){let s=t[e],o=t[e+1],h=0;const c=[0];for(let r=e+n;r<i;r+=n){const e=t[r],i=t[r+1];h+=Math.sqrt((e-s)*(e-s)+(i-o)*(i-o)),c.push(h),s=e,o=i}const u=r*h,d=(0,g.El)(c,u);d<0?(l=(u-c[-d-2])/(c[-d-1]-c[-d-2]),a=e+(-d-2)*n):a=e+d*n}o=o>1?o:2,s=s||new Array(o);for(let e=0;e<o;++e)s[e]=void 0===a?NaN:void 0===l?t[a+e]:(0,y.Cc)(t[a+e],t[a+n+e],l);return s}var w=i(4238),b=i(7622);const E=(0,f.vt)();class C{constructor(t,e,i,n,r,s){this.styleFunction,this.extent_,this.id_=s,this.type_=t,this.flatCoordinates_=e,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=i||null,this.properties_=r,this.squaredTolerance_,this.stride_=n,this.simplifiedGeometry_}get(t){return this.properties_[t]}getExtent(){return this.extent_||(this.extent_="Point"===this.type_?(0,h.dP)(this.flatCoordinates_):(0,h.Vy)(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_}getFlatInteriorPoint(){if(!this.flatInteriorPoints_){const t=(0,h.q1)(this.getExtent());this.flatInteriorPoints_=(0,m.J)(this.flatCoordinates_,0,this.ends_,2,t,0)}return this.flatInteriorPoints_}getFlatInteriorPoints(){if(!this.flatInteriorPoints_){const t=(0,_.yJ)(this.flatCoordinates_,this.ends_),e=function(t,e,
2i){const n=[];let r=(0,h.S5)();for(let s=0,o=i.length;s<o;++s){const o=i[s];r=(0,h.Vy)(t,e,o[0],2),n.push((r[0]+r[2])/2,(r[1]+r[3])/2),e=o[o.length-1]}return n}(this.flatCoordinates_,0,t);this.flatInteriorPoints_=(0,m.p)(this.flatCoordinates_,0,t,2,e)}return this.flatInteriorPoints_}getFlatMidpoint(){return this.flatMidpoints_||(this.flatMidpoints_=x(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_}getFlatMidpoints(){if(!this.flatMidpoints_){this.flatMidpoints_=[];const t=this.flatCoordinates_;let e=0;const i=this.ends_;for(let n=0,r=i.length;n<r;++n){const r=i[n],s=x(t,e,r,2,.5);(0,g.X$)(this.flatMidpoints_,s),e=r}}return this.flatMidpoints_}getId(){return this.id_}getOrientedFlatCoordinates(){return this.flatCoordinates_}getGeometry(){return this}getSimplifiedGeometry(t){return this}simplifyTransformed(t,e){return this}getProperties(){return this.properties_}getPropertiesInternal(){return this.properties_}getStride(){return this.stride_}getStyleFunction(){return this.styleFunction}getType(){return this.type_}transform(t){const e=(t=(0,v.Jt)(t)).getExtent(),i=t.getWorldExtent();if(e&&i){const t=(0,h.Oq)(i)/(0,h.Oq)(e);(0,f.Zz)(E,i[0],i[3],t,-t,0,0,0),(0,b.Rc)(this.flatCoordinates_,0,this.flatCoordinates_.length,2,E,this.flatCoordinates_)}}applyTransform(t){t(this.flatCoordinates_,this.flatCoordinates_,this.stride_)}clone(){return new C(this.type_,this.flatCoordinates_.slice(),this.ends_?.slice(),this.stride_,Object.assign({},this.properties_),this.id_)}getEnds(){return this.ends_}enableSimplifyTransformed(){return this.simplifyTransformed=(0,w.B4)(((t,e)=>{if(t===this.squaredTolerance_)return this.simplifiedGeometry_;this.simplifiedGeometry_=this.clone(),e&&this.simplifiedGeometry_.applyTransform(e);const i=this.simplifiedGeometry_.getFlatCoordinates();let n;switch(this.type_){case"LineString":i.length=(0,p.P4)(i,0,this.simplifiedGeometry_.flatCoordinates_.length,this.simplifiedGeometry_.stride_,t,i,0),n=[i.length];break;case"MultiLineString":n=[],i.length=(0,p.AL)(i,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,t,i,0,n);break;case"Polygon":n=[],i.length=(0,p.Hg)(i,0,this.simplifiedGeometry_.ends_,this.simplifiedGeometry_.stride_,Math.sqrt(t),i,0,n)}return n&&(this.simplifiedGeometry_=new C(this.type_,i,n,2,this.properties_,this.id_)),this.squaredTolerance_=t,this.simplifiedGeometry_})),this}}C.prototype.getFlatCoordinates=C.prototype.getOrientedFlatCoordinates;const A=C;var S=i(6444);const T="addfeature",I="removefeature";function R(t,e){return[[-1/0,-1/0,1/0,1/0]]}var D=i(588),M=i(9438);function L(t,e){return function(i,n,r,s,o){const a=this;!function(t,e,i,n,r,s,o){const a=new XMLHttpRequest;a.open("GET","function"==typeof t?t(i,n,r):t,!0),"arraybuffer"==e.getType()&&(a.responseType="arraybuffer"),a.withCredentials=false,a.onload=function(t){if(!a.status||a.status>=200&&a.status<300){const t=e.getType();try{let n;"text"==t||"json"==t?n=a.responseText:"xml"==t?n=a.responseXML||a.responseText:"arraybuffer"==t&&(n=a.response),n?s(e.readFeatures(n,{extent:i,featureProjection:r}),e.readProjection(n)):o()}catch{o()}}else o()},a.onerror=o,a.send()}(t,e,i,n,r,(function(t,e){a.addFeatures(t),void 0!==s&&s(t)}),o||w.tV)}}class O extends s.Ay{constructor(t,e,i){super(t),this.feature=e,this.features=i}}class k extends S.A{constructor(t){super({attributions:(t=t||{}).attributions,interpolate:!0,projection:void 0,state:"ready",wrapX:void 0===t.wrapX||t.wrapX}),this.on,this.once,this.un,this.loader_=w.tV,this.format_=t.format,this.overlaps_=void 0===t.overlaps||t.overlaps,this.url_=t.url,void 0!==t.loader?this.loader_=t.loader:void 0!==this.url_&&((0,D.v)(this.format_,"`format` must be set when `url` is set"),this.loader_=L(this.url_,this.format_)),this.strategy_=void 0!==t.strategy?t.strategy:R;const e=void 0===t.useSpatialIndex||t.useSpatialIndex;let i,r;this.featuresRtree_=e?new d:null,this.loadedExtentsRtree_=new d,this.loadingExtentsCount_=0,this.nullGeometryFeatures_={},this.idIndex_={},this.uidIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(t.features)?r=t.features:t.features&&(i=t.features,r=i.getArray()),e||void 0!==i||(i=new n.A(r)),void 0!==r&&this.addFeaturesInternal(r),void 0!==i&&this.bindFeaturesCollection_(i)}
2addFeature(t){this.addFeatureInternal(t),this.changed()}addFeatureInternal(t){const e=(0,c.v6)(t);if(!this.addToIndex_(e,t))return void(this.featuresCollection_&&this.featuresCollection_.remove(t));this.setupChangeEvents_(e,t);const i=t.getGeometry();if(i){const e=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(e,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new O(T,t))}setupChangeEvents_(t,e){e instanceof A||(this.featureChangeKeys_[t]=[(0,M.KT)(e,o.A.CHANGE,this.handleFeatureChange_,this),(0,M.KT)(e,a.A.PROPERTYCHANGE,this.handleFeatureChange_,this)])}addToIndex_(t,e){let i=!0;if(void 0!==e.getId()){const t=String(e.getId());if(t in this.idIndex_)if(e instanceof A){const n=this.idIndex_[t];n instanceof A?Array.isArray(n)?n.push(e):this.idIndex_[t]=[n,e]:i=!1}else i=!1;else this.idIndex_[t]=e}return i&&((0,D.v)(!(t in this.uidIndex_),"The passed `feature` was already added to the source"),this.uidIndex_[t]=e),i}addFeatures(t){this.addFeaturesInternal(t),this.changed()}addFeaturesInternal(t){const e=[],i=[],n=[];for(let e=0,n=t.length;e<n;e++){const n=t[e],r=(0,c.v6)(n);this.addToIndex_(r,n)&&i.push(n)}for(let t=0,r=i.length;t<r;t++){const r=i[t],s=(0,c.v6)(r);this.setupChangeEvents_(s,r);const o=r.getGeometry();if(o){const t=o.getExtent();e.push(t),n.push(r)}else this.nullGeometryFeatures_[s]=r}if(this.featuresRtree_&&this.featuresRtree_.load(e,n),this.hasListener(T))for(let t=0,e=i.length;t<e;t++)this.dispatchEvent(new O(T,i[t]))}bindFeaturesCollection_(t){let e=!1;this.addEventListener(T,(function(i){e||(e=!0,t.push(i.feature),e=!1)})),this.addEventListener(I,(function(i){e||(e=!0,t.remove(i.feature),e=!1)})),t.addEventListener(r.A.ADD,(t=>{e||(e=!0,this.addFeature(t.element),e=!1)})),t.addEventListener(r.A.REMOVE,(t=>{e||(e=!0,this.removeFeature(t.element),e=!1)})),this.featuresCollection_=t}clear(t){if(t){for(const t in this.featureChangeKeys_)this.featureChangeKeys_[t].forEach(M.JH);this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.uidIndex_={})}else if(this.featuresRtree_){const t=t=>{this.removeFeatureInternal(t)};this.featuresRtree_.forEach(t);for(const t in this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[t])}this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.nullGeometryFeatures_={};const e=new O("clear");this.dispatchEvent(e),this.changed()}forEachFeature(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)}forEachFeatureAtCoordinateDirect(t,e){const i=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(i,(function(i){const n=i.getGeometry();if(n instanceof A||n.intersectsCoordinate(t))return e(i)}))}forEachFeatureInExtent(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)}forEachFeatureIntersectingExtent(t,e){return this.forEachFeatureInExtent(t,(function(i){const n=i.getGeometry();if(n instanceof A||n.intersectsExtent(t)){const t=e(i);if(t)return t}}))}getFeaturesCollection(){return this.featuresCollection_}getFeatures(){let t;return this.featuresCollection_?t=this.featuresCollection_.getArray().slice(0):this.featuresRtree_&&(t=this.featuresRtree_.getAll(),(0,u.p)(this.nullGeometryFeatures_)||(0,g.X$)(t,Object.values(this.nullGeometryFeatures_))),t}getFeaturesAtCoordinate(t){const e=[];return this.forEachFeatureAtCoordinateDirect(t,(function(t){e.push(t)})),e}getFeaturesInExtent(t,e){if(this.featuresRtree_){if(!(e&&e.canWrapX()&&this.getWrapX()))return this.featuresRtree_.getInExtent(t);const i=(0,h.QJ)(t,e);return[].concat(...i.map((t=>this.featuresRtree_.getInExtent(t))))}return this.featuresCollection_?this.featuresCollection_.getArray().slice(0):[]}getClosestFeatureToCoordinate(t,e){const i=t[0],n=t[1];let r=null;const s=[NaN,NaN];let o=1/0;const a=[-1/0,-1/0,1/0,1/0];return e=e||w.rT,this.featuresRtree_.forEachInExtent(a,(function(t){if(e(t)){const e=t.getGeometry(),l=o;if(o=e instanceof A?0:e.closestPointXY(i,n,s,o),o<l){r=t;const e=Math.sqrt(o);a[0]=i-e,a[1]=n-e,a[2]=i+e,a[3]=n+e}}})),r}getExtent(t){return this.featuresRtree_.getExtent(t)}getFeatureById(t){const e=this.idIndex_[t.toString()];return void 0!==e?e:null}getFeatureByUid(t){const e=this.uidIndex_[t];return void 0!==e?e:null}getFormat(){return this.format_}getOverlaps(){return this.overlaps_}getUrl(){return this.url_}handleFeatureChange_(t){const e=t.target,i=(0,c.v6)(e),n=e.getGeometry();if(n){const t=n.getExtent();i in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[i],this.featuresRtree_&&this.featuresRtree_.insert(t,e)):this.featuresRtree_&&this.featuresRtree_.update(t,e)}else i in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[i]=e);const r=e.getId();if(void 0!==r){const t=r.toString();this.idIndex_[t]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[t]=e)}
2else this.removeFromIdIndex_(e),this.uidIndex_[i]=e;this.changed(),this.dispatchEvent(new O("changefeature",e))}hasFeature(t){const e=t.getId();return void 0!==e?e in this.idIndex_:(0,c.v6)(t)in this.uidIndex_}isEmpty(){return this.featuresRtree_?this.featuresRtree_.isEmpty()&&(0,u.p)(this.nullGeometryFeatures_):!this.featuresCollection_||0===this.featuresCollection_.getLength()}loadFeatures(t,e,i){const n=this.loadedExtentsRtree_,r=this.strategy_(t,e,i);for(let t=0,s=r.length;t<s;++t){const s=r[t];n.forEachInExtent(s,(function(t){return(0,h.ms)(t.extent,s)}))||(++this.loadingExtentsCount_,this.dispatchEvent(new O("featuresloadstart")),this.loader_.call(this,s,e,i,(t=>{--this.loadingExtentsCount_,this.dispatchEvent(new O("featuresloadend",void 0,t))}),(()=>{--this.loadingExtentsCount_,this.dispatchEvent(new O("featuresloaderror"))})),n.insert(s,{extent:s.slice()}))}this.loading=!(this.loader_.length<4)&&this.loadingExtentsCount_>0}refresh(){this.clear(!0),this.loadedExtentsRtree_.clear(),super.refresh()}removeLoadedExtent(t){const e=this.loadedExtentsRtree_;let i;e.forEachInExtent(t,(function(e){if((0,h.aI)(e.extent,t))return i=e,!0})),i&&e.remove(i)}removeFeatures(t){const e=[];for(let i=0,n=t.length;i<n;++i){const n=t[i],r=this.removeFeatureInternal(n);r&&e.push(r)}e.length>0&&this.changed()}removeFeature(t){t&&this.removeFeatureInternal(t)&&this.changed()}removeFeatureInternal(t){const e=(0,c.v6)(t);if(!(e in this.uidIndex_))return;e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t);const i=this.featureChangeKeys_[e];i?.forEach(M.JH),delete this.featureChangeKeys_[e];const n=t.getId();if(void 0!==n){const e=n.toString(),i=this.idIndex_[e];i===t?delete this.idIndex_[e]:Array.isArray(i)&&(i.splice(i.indexOf(t),1),1===i.length&&(this.idIndex_[e]=i[0]))}return delete this.uidIndex_[e],this.hasListener(I)&&this.dispatchEvent(new O(I,t)),t}removeFromIdIndex_(t){let e=!1;for(const i in this.idIndex_){const n=this.idIndex_[i];if(t instanceof A&&Array.isArray(n)&&n.includes(t))n.splice(n.indexOf(t),1);else if(this.idIndex_[i]===t){delete this.idIndex_[i],e=!0;break}}return e}setLoader(t){this.loader_=t}setUrl(t){(0,D.v)(this.format_,"`format` must be set when `url` is set"),this.url_=t,this.setLoader(L(t,this.format_))}}const P=k},2490:(t,e,i)=>{"use strict";if(i.d(e,{Yf:()=>s}),/^(217|331)$/.test(i.j))var n=i(1597);const r=6371008.8;function s(t,e,i){i=i||r;const s=(0,n.eh)(t[1]),o=(0,n.eh)(e[1]),a=(o-s)/2,l=(0,n.eh)(e[0]-t[0])/2,h=Math.sin(a)*Math.sin(a)+Math.sin(l)*Math.sin(l)*Math.cos(s)*Math.cos(o);return 2*i*Math.atan2(Math.sqrt(h),Math.sqrt(1-h))}},2497:(t,e,i)=>{"use strict";function n(t,e,i,n){for(let n=0,r=i.length;n<r;++n)t[e++]=i[n];return e}function r(t,e,i,n){for(let r=0,s=i.length;r<s;++r){const s=i[r];for(let i=0;i<n;++i)t[e++]=s[i]}return e}function s(t,e,i,n,s){s=s||[];let o=0;for(let a=0,l=i.length;a<l;++a){const l=r(t,e,i[a],n);s[o++]=l,e=l}return s.length=o,s}i.d(e,{KG:()=>s,_n:()=>n,z2:()=>r})},2514:(t,e,i)=>{"use strict";var n=i(4883);t.exports=n},2585:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n={POSTRENDER:"postrender",MOVESTART:"movestart",MOVEEND:"moveend",LOADSTART:"loadstart",LOADEND:"loadend"}},2616:(t,e,i)=>{"use strict";if(i.d(e,{J:()=>s,p:()=>o}),/^(217|331)$/.test(i.j))var n=i(6514);if(/^(217|331)$/.test(i.j))var r=i(2845);function s(t,e,i,s,o,a,l){let h,c,u,d,f,p,g;const m=o[a+1],v=[];for(let n=0,r=i.length;n<r;++n){const r=i[n];for(d=t[r-s],p=t[r-s+1],h=e;h<r;h+=s)f=t[h],g=t[h+1],(m<=p&&g<=m||p<=m&&m<=g)&&(u=(m-p)/(g-p)*(f-d)+d,v.push(u)),d=f,p=g}let _=NaN,y=-1/0;for(v.sort(n.V_),d=v[0],h=1,c=v.length;h<c;++h){f=v[h];const n=Math.abs(f-d);n>y&&(u=(d+f)/2,(0,r.zb)(t,e,i,s,u,m)&&(_=u,y=n)),d=f}return isNaN(_)&&(_=o[a]),l?(l.push(_,m,y),l):[_,m,y]}function o(t,e,i,n,r){let o=[];for(let a=0,l=i.length;a<l;++a){const l=i[a];o=s(t,e,l,n,r,2*a,o),e=l[l.length-1]}return o}},2703:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});
2const n={ANIMATING:0,INTERACTING:1}},2777:(t,e,i)=>{"use strict";var n=i(9565),r=i(34),s=i(757),o=i(5966),a=i(4270),l=i(8227),h=TypeError,c=l("toPrimitive");t.exports=function(t,e){if(!r(t)||s(t))return t;var i,l=o(t,c);if(l){if(void 0===e&&(e="default"),i=n(l,t,e),!r(i)||s(i))return i;throw new h("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},2796:(t,e,i)=>{"use strict";var n=i(9039),r=i(4901),s=/#|\.prototype\./,o=function(t,e){var i=l[a(t)];return i===c||i!==h&&(r(e)?n(e):!!e)},a=o.normalize=function(t){return String(t).replace(s,".").toLowerCase()},l=o.data={},h=o.NATIVE="N",c=o.POLYFILL="P";t.exports=o},2826:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=/^(217|331)$/.test(i.j)?class{drawCustom(t,e,i,n,r){}drawGeometry(t){}setStyle(t){}drawCircle(t,e,i){}drawFeature(t,e,i){}drawGeometryCollection(t,e,i){}drawLineString(t,e,i){}drawMultiLineString(t,e,i){}drawMultiPoint(t,e,i){}drawMultiPolygon(t,e,i){}drawPoint(t,e,i){}drawPolygon(t,e,i){}drawText(t,e,i){}setFillStrokeStyle(t,e){}setImageStyle(t,e){}setTextStyle(t,e){}}:null},2831:(t,e,i)=>{var n,r;!function(s){"use strict";n=[i(2137),i(1485),i(977),i(3169)],r=function(t,e,i,n){return function(t,e,i,n,r){var s=t.console,o=t.jQuery,a=function(){},l=0,h={};function c(t,e){var i=n.getQueryElement(t);if(i){this.element=i,o&&(this.$element=o(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(e);var r=++l;this.element.outlayerGUID=r,h[r]=this,this._create(),this._getOption("initLayout")&&this.layout()}else s&&s.error("Bad element for "+this.constructor.namespace+": "+(i||t))}c.namespace="outlayer",c.Item=r,c.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var u=c.prototype;function d(t){function e(){t.apply(this,arguments)}return e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e}n.extend(u,e.prototype),u.option=function(t){n.extend(this.options,t)},u._getOption=function(t){var e=this.constructor.compatOptions[t];return e&&void 0!==this.options[e]?this.options[e]:this.options[t]},c.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},u._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},u.reloadItems=function(){this.items=this._itemize(this.element.children)},u._itemize=function(t){for(var e=this._filterFindItemElements(t),i=this.constructor.Item,n=[],r=0;r<e.length;r++){var s=new i(e[r],this);n.push(s)}return n},u._filterFindItemElements=function(t){return n.filterFindElements(t,this.options.itemSelector)},u.getItemElements=function(){return this.items.map((function(t){return t.element}))},u.layout=function(){this._resetLayout(),this._manageStamps();var t=this._getOption("layoutInstant"),e=void 0!==t?t:!this._isLayoutInited;this.layoutItems(this.items,e),this._isLayoutInited=!0},u._init=u.layout,u._resetLayout=function(){this.getSize()},u.getSize=function(){this.size=i(this.element)},u._getMeasurement=function(t,e){var n,r=this.options[t];r?("string"==typeof r?n=this.element.querySelector(r):r instanceof HTMLElement&&(n=r),this[t]=n?i(n)[e]:r):this[t]=0},u.layoutItems=function(t,e){t=this._getItemsForLayout(t),this._layoutItems(t,e),this._postLayout()},u._getItemsForLayout=function(t){return t.filter((function(t){return!t.isIgnored}))},u._layoutItems=function(t,e){if(this._emitCompleteOnItems("layout",t),t&&t.length){var i=[];t.forEach((function(t){var n=this._getItemLayoutPosition(t);n.item=t,n.isInstant=e||t.isLayoutInstant,i.push(n)}),this),this._processLayoutQueue(i)}},u._getItemLayoutPosition=function(){return{x:0,y:0}},u._processLayoutQueue=function(t){this.updateStagger(),t.forEach((function(t,e){this._positionItem(t.item,t.x,t.y,t.isInstant,e)}),this)},u.updateStagger=function(){var t=this.options.stagger;if(null!=t)return this.stagger=function(t){if("number"==typeof t)return t;var e=t.match(/(^\d*\.?\d*)(\w*)/),i=e&&e[1],n=e&&e[2];return i.length?(i=parseFloat(i))*(f[n]||1):0}(t),this.stagger;this.stagger=0}
2,u._positionItem=function(t,e,i,n,r){n?t.goTo(e,i):(t.stagger(r*this.stagger),t.moveTo(e,i))},u._postLayout=function(){this.resizeContainer()},u.resizeContainer=function(){if(this._getOption("resizeContainer")){var t=this._getContainerSize();t&&(this._setContainerMeasure(t.width,!0),this._setContainerMeasure(t.height,!1))}},u._getContainerSize=a,u._setContainerMeasure=function(t,e){if(void 0!==t){var i=this.size;i.isBorderBox&&(t+=e?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),t=Math.max(t,0),this.element.style[e?"width":"height"]=t+"px"}},u._emitCompleteOnItems=function(t,e){var i=this;function n(){i.dispatchEvent(t+"Complete",null,[e])}var r=e.length;if(e&&r){var s=0;e.forEach((function(e){e.once(t,o)}))}else n();function o(){++s==r&&n()}},u.dispatchEvent=function(t,e,i){var n=e?[e].concat(i):i;if(this.emitEvent(t,n),o)if(this.$element=this.$element||o(this.element),e){var r=o.Event(e);r.type=t,this.$element.trigger(r,i)}else this.$element.trigger(t,i)},u.ignore=function(t){var e=this.getItem(t);e&&(e.isIgnored=!0)},u.unignore=function(t){var e=this.getItem(t);e&&delete e.isIgnored},u.stamp=function(t){(t=this._find(t))&&(this.stamps=this.stamps.concat(t),t.forEach(this.ignore,this))},u.unstamp=function(t){(t=this._find(t))&&t.forEach((function(t){n.removeFrom(this.stamps,t),this.unignore(t)}),this)},u._find=function(t){if(t)return"string"==typeof t&&(t=this.element.querySelectorAll(t)),n.makeArray(t)},u._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},u._getBoundingRect=function(){var t=this.element.getBoundingClientRect(),e=this.size;this._boundingRect={left:t.left+e.paddingLeft+e.borderLeftWidth,top:t.top+e.paddingTop+e.borderTopWidth,right:t.right-(e.paddingRight+e.borderRightWidth),bottom:t.bottom-(e.paddingBottom+e.borderBottomWidth)}},u._manageStamp=a,u._getElementOffset=function(t){var e=t.getBoundingClientRect(),n=this._boundingRect,r=i(t);return{left:e.left-n.left-r.marginLeft,top:e.top-n.top-r.marginTop,right:n.right-e.right-r.marginRight,bottom:n.bottom-e.bottom-r.marginBottom}},u.handleEvent=n.handleEvent,u.bindResize=function(){t.addEventListener("resize",this),this.isResizeBound=!0},u.unbindResize=function(){t.removeEventListener("resize",this),this.isResizeBound=!1},u.onresize=function(){this.resize()},n.debounceMethod(c,"onresize",100),u.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},u.needsResizeLayout=function(){var t=i(this.element);return this.size&&t&&t.innerWidth!==this.size.innerWidth},u.addItems=function(t){var e=this._itemize(t);return e.length&&(this.items=this.items.concat(e)),e},u.appended=function(t){var e=this.addItems(t);e.length&&(this.layoutItems(e,!0),this.reveal(e))},u.prepended=function(t){var e=this._itemize(t);if(e.length){var i=this.items.slice(0);this.items=e.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(e,!0),this.reveal(e),this.layoutItems(i)}},u.reveal=function(t){if(this._emitCompleteOnItems("reveal",t),t&&t.length){var e=this.updateStagger();t.forEach((function(t,i){t.stagger(i*e),t.reveal()}))}},u.hide=function(t){if(this._emitCompleteOnItems("hide",t),t&&t.length){var e=this.updateStagger();t.forEach((function(t,i){t.stagger(i*e),t.hide()}))}},u.revealItemElements=function(t){var e=this.getItems(t);this.reveal(e)},u.hideItemElements=function(t){var e=this.getItems(t);this.hide(e)},u.getItem=function(t){for(var e=0;e<this.items.length;e++){var i=this.items[e];if(i.element==t)return i}},u.getItems=function(t){t=n.makeArray(t);var e=[];return t.forEach((function(t){var i=this.getItem(t);i&&e.push(i)}),this),e},u.remove=function(t){var e=this.getItems(t);this._emitCompleteOnItems("remove",e),e&&e.length&&e.forEach((function(t){t.remove(),n.removeFrom(this.items,t)}),this)},u.destroy=function(){var t=this.element.style;t.height="",t.position="",t.width="",this.items.forEach((function(t){t.destroy()})),this.unbindResize();var e=this.element.outlayerGUID;delete h[e],delete this.element.outlayerGUID,o&&o.removeData(this.element,this.constructor.namespace)},c.data=function(t){var e=(t=n.getQueryElement(t))&&t.outlayerGUID;return e&&h[e]},c.create=function(t,e){var i=d(c);return i.defaults=n.extend({},c.defaults),n.extend(i.defaults,e),i.compatOptions=n.extend({},c.compatOptions),i.namespace=t,i.data=c.data,i.Item=d(r),n.htmlInit(i,t),o&&o.bridget&&o.bridget(t,i),i};var f={ms:1,s:1e3};return c.Item=r,c}(s,t,e,i,n)}.apply(e,n),void 0===r||(t.exports=r)}(window)},2839:(t,e,i)=>{"use strict";var n=i(4576).navigator,r=n&&n.userAgent;t.exports=r?String(r):""},2845:(t,e,i)=>{"use strict";if(i.d(e,{a_:()=>s,t7:()=>r,zb:()=>o}),/^(217|331)$/.test(i.j))var n=i(915);function r(t,e,i,r,o){return!(0,n.sB)(o,(function(n){return!s(t,e,i,r,n[0],n[1])}))}function s(t,e,i,n,r,s){let o=0,a=t[i-n],l=t[i-n+1];for(;e<i;e+=n){const i=t[e],n=t[e+1];l<=s?n>s&&(i-a)*(s-l)-(r-a)*(n-l)>0&&o++:n<=s&&(i-a)*(s-l)-(r-a)*(n-l)<0&&o--,a=i,l=n}return 0!==o}function o(t,e,i,n,r,o){if(0===i.length)return!1;if(!s(t,e,i[0],n,r,o))return!1;for(let e=1,a=i.length;e<a;++e)if(s(t,i[e-1],i[e],n,r,o))return!1;return!0}},2898:(t,e,i)=>{"use strict";i.d(e,{A:()=>l});var n=i(972),r=i(6837),s=i(5176),o=i(3474);class a extends n.A{constructor(t){t=t||{},super({element:document.createElement("div"),render:t.render,target:t.target});const e=void 0!==t.className?t.className:"ol-rotate",i=void 0!==t.label?t.label:"⇧",n=void 0!==t.compassClassName?t.compassClassName:"ol-compass";this.label_=null,"string"==typeof i?(this.label_=document.createElement("span"),this.label_.className=n,this.label_.textContent=i):(this.label_=i,this.label_.classList.add(n));const o=t.tipLabel?t.tipLabel:"Reset rotation",a=document.createElement("button");a.className=e+"-reset",a.setAttribute("type","button"),a.title=o,a.appendChild(this.label_),a.addEventListener(r.A.CLICK,this.handleClick_.bind(this),!1);const l=e+" "+s.XI+" "+s.$N,h=this.element;h.className=l,h.appendChild(a),this.callResetNorth_=t.resetNorth?t.resetNorth:void 0,this.duration_=void 0!==t.duration?t.duration:250,this.autoHide_=void 0===t.autoHide||t.autoHide,this.rotation_=void 0,this.autoHide_&&this.element.classList.add(s.Si)}handleClick_(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()}resetNorth_(){const t=this.getMap().getView();if(!t)return;const e=t.getRotation();void 0!==e&&(this.duration_>0&&e%(2*Math.PI)!=0?t.animate({rotation:0,duration:this.duration_,easing:o.vT}):t.setRotation(0))}render(t){const e=t.frameState;if(!e)return;const i=e.viewState.rotation;if(i!=this.rotation_){const t="rotate("+i+"rad)";if(this.autoHide_){const t=this.element.classList.contains(s.Si);t||0!==i?t&&0!==i&&this.element.classList.remove(s.Si):this.element.classList.add(s.Si)}this.label_.style.transform=t}this.rotation_=i}}const l=/^(217|331)$/.test(i.j)?a:null},2913:(t,e,i)=>{"use strict";if(i.d(e,{PA:()=>s,ug:()=>o,yJ:()=>a}),/^(217|331)$/.test(i.j))var n=i(8428);function r(t,e,i,n){let r=0,s=t[i-n],o=t[i-n+1];for(;e<i;e+=n){const i=t[e],n=t[e+1];r+=(i-s)*(n+o),s=i,o=n}return 0===r?void 0:r>0}function s(t,e,i,n,s){s=void 0!==s&&s;for(let o=0,a=i.length;o<a;++o){const a=i[o],l=r(t,e,a,n);if(0===o){if(s&&l||!s&&!l)return!1}else if(s&&!l||!s&&l)return!1;e=a}return!0}function o(t,e,i,s,o){o=void 0!==o&&o;for(let a=0,l=i.length;a<l;++a){const l=i[a],h=r(t,e,l,s);(0===a?o&&h||!o&&!h:o&&!h||!o&&h)&&(0,n.G)(t,e,l,s),e=l}return e}function a(t,e){const i=[];let n,s=0,o=0;for(let a=0,l=e.length;a<l;++a){const l=e[a],h=r(t,s,l,2);if(void 0===n&&(n=h),h===n)i.push(e.slice(o,a+1));else{if(0===i.length)continue;i[i.length-1].push(e[o])}o=a+1,s=l}return i}},2963:(t,e,i)=>{"use strict";i.d(e,{A:()=>_});var n=i(6837),r=i(8143),s=i(1078),o=i(915),a=i(7083),l=i(1597);const h=class{constructor(t,e,i,n,r,s){this.sourceProj_=t,this.targetProj_=e;let l={};const h=(0,a.RG)(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){const e=t[0]+"/"+t[1];return l[e]||(l[e]=h(t)),l[e]},this.maxSourceExtent_=n,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!n&&!!this.sourceProj_.getExtent()&&
2(0,o.RG)(n)>=(0,o.RG)(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?(0,o.RG)(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?(0,o.RG)(this.targetProj_.getExtent()):null;const c=(0,o.Py)(i),u=(0,o.WU)(i),d=(0,o.k_)(i),f=(0,o.R)(i),p=this.transformInv_(c),g=this.transformInv_(u),m=this.transformInv_(d),v=this.transformInv_(f),_=10+(s?Math.max(0,Math.ceil(Math.log2((0,o.UG)(i)/(s*s*256*256)))):0);if(this.addQuad_(c,u,d,f,p,g,m,v,_),this.wrapsXInSource_){let t=1/0;this.triangles_.forEach((function(e,i,n){t=Math.min(t,e.source[0][0],e.source[1][0],e.source[2][0])})),this.triangles_.forEach((e=>{if(Math.max(e.source[0][0],e.source[1][0],e.source[2][0])-t>this.sourceWorldWidth_/2){const i=[[e.source[0][0],e.source[0][1]],[e.source[1][0],e.source[1][1]],[e.source[2][0],e.source[2][1]]];i[0][0]-t>this.sourceWorldWidth_/2&&(i[0][0]-=this.sourceWorldWidth_),i[1][0]-t>this.sourceWorldWidth_/2&&(i[1][0]-=this.sourceWorldWidth_),i[2][0]-t>this.sourceWorldWidth_/2&&(i[2][0]-=this.sourceWorldWidth_);const n=Math.min(i[0][0],i[1][0],i[2][0]);Math.max(i[0][0],i[1][0],i[2][0])-n<this.sourceWorldWidth_/2&&(e.source=i)}}))}l={}}addTriangle_(t,e,i,n,r,s){this.triangles_.push({source:[n,r,s],target:[t,e,i]})}addQuad_(t,e,i,n,r,s,a,h,c){const u=(0,o.Tr)([r,s,a,h]),d=this.sourceWorldWidth_?(0,o.RG)(u)/this.sourceWorldWidth_:null,f=this.sourceWorldWidth_,p=this.sourceProj_.canWrapX()&&d>.5&&d<1;let g=!1;if(c>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_){const r=(0,o.Tr)([t,e,i,n]);g=(0,o.RG)(r)/this.targetWorldWidth_>.25||g}!p&&this.sourceProj_.isGlobal()&&d&&(g=d>.25||g)}if(!g&&this.maxSourceExtent_&&isFinite(u[0])&&isFinite(u[1])&&isFinite(u[2])&&isFinite(u[3])&&!(0,o.HY)(u,this.maxSourceExtent_))return;let m=0;if(!(g||isFinite(r[0])&&isFinite(r[1])&&isFinite(s[0])&&isFinite(s[1])&&isFinite(a[0])&&isFinite(a[1])&&isFinite(h[0])&&isFinite(h[1])))if(c>0)g=!0;else if(m=(isFinite(r[0])&&isFinite(r[1])?0:8)+(isFinite(s[0])&&isFinite(s[1])?0:4)+(isFinite(a[0])&&isFinite(a[1])?0:2)+(isFinite(h[0])&&isFinite(h[1])?0:1),1!=m&&2!=m&&4!=m&&8!=m)return;if(c>0){if(!g){const e=[(t[0]+i[0])/2,(t[1]+i[1])/2],n=this.transformInv_(e);let s;s=p?((0,l.xP)(r[0],f)+(0,l.xP)(a[0],f))/2-(0,l.xP)(n[0],f):(r[0]+a[0])/2-n[0];const o=(r[1]+a[1])/2-n[1];g=s*s+o*o>this.errorThresholdSquared_}if(g){if(Math.abs(t[0]-i[0])<=Math.abs(t[1]-i[1])){const o=[(e[0]+i[0])/2,(e[1]+i[1])/2],l=this.transformInv_(o),u=[(n[0]+t[0])/2,(n[1]+t[1])/2],d=this.transformInv_(u);this.addQuad_(t,e,o,u,r,s,l,d,c-1),this.addQuad_(u,o,i,n,d,l,a,h,c-1)}else{const o=[(t[0]+e[0])/2,(t[1]+e[1])/2],l=this.transformInv_(o),u=[(i[0]+n[0])/2,(i[1]+n[1])/2],d=this.transformInv_(u);this.addQuad_(t,o,u,n,r,l,d,h,c-1),this.addQuad_(o,e,i,u,l,s,a,d,c-1)}return}}if(p){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}11&m||this.addTriangle_(t,i,n,r,a,h),14&m||this.addTriangle_(t,i,e,r,a,s),m&&(13&m||this.addTriangle_(e,n,t,s,h,r),7&m||this.addTriangle_(e,n,i,s,h,a))}calculateSourceExtent(){const t=(0,o.S5)();return this.triangles_.forEach((function(e,i,n){const r=e.source;(0,o.$C)(t,r[0]),(0,o.$C)(t,r[1]),(0,o.$C)(t,r[2])})),t}getTriangles(){return this.triangles_}};var c=i(8711);let u;const d=[];function f(t,e,i,n,r){t.beginPath(),t.moveTo(0,0),t.lineTo(e,i),t.lineTo(n,r),t.closePath(),t.save(),t.clip(),t.fillRect(0,0,Math.max(e,n)+1,Math.max(i,r)),t.restore()}function p(t,e){return Math.abs(t[4*e]-210)>2||Math.abs(t[4*e+3]-191.25)>2}function g(t,e,i,n){const r=(0,a.pd)(i,e,t);let s=(0,a.hO)(e,n,i);const l=e.getMetersPerUnit();void 0!==l&&(s*=l);const h=t.getMetersPerUnit();void 0!==h&&(s/=h);const c=t.getExtent();if(!c||(0,o.Ym)(c,r)){const e=(0,a.hO)(t,s,r)/s;isFinite(e)&&e>0&&(s/=e)}return s}var m=i(9438);class v extends r.A{constructor(t,e,i,n,r,a,c,u,d,f,p,m){super(r,s.A.IDLE,m),this.renderEdges_=void 0!==p&&p,this.pixelRatio_=c,this.gutter_=u,this.canvas_=null,this.sourceTileGrid_=e,this.targetTileGrid_=n,this.wrappedTileCoord_=a||r,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0,this.clipExtent_=t.canWrapX()?t.getExtent():void 0;const v=n.getTileCoordExtent(this.wrappedTileCoord_),_=this.targetTileGrid_.getExtent();let y=this.sourceTileGrid_.getExtent();const x=_?(0,o._N)(v,_):v;if(0===(0,o.UG)(x))return void(this.state=s.A.EMPTY);const w=t.getExtent();w&&(y=y?(0,o._N)(y,w):w);const b=n.getResolution(this.wrappedTileCoord_[0]),E=function(t,e,
2i,n){const r=(0,o.q1)(i);let s=g(t,e,r,n);return(!isFinite(s)||s<=0)&&(0,o.sB)(i,(function(i){return s=g(t,e,i,n),isFinite(s)&&s>0})),s}(t,i,x,b);if(!isFinite(E)||E<=0)return void(this.state=s.A.EMPTY);const C=void 0!==f?f:.5;if(this.triangulation_=new h(t,i,x,y,E*C,b),0===this.triangulation_.getTriangles().length)return void(this.state=s.A.EMPTY);this.sourceZ_=e.getZForResolution(E);let A=this.triangulation_.calculateSourceExtent();if(y&&(t.canWrapX()?(A[1]=(0,l.qE)(A[1],y[1],y[3]),A[3]=(0,l.qE)(A[3],y[1],y[3])):A=(0,o._N)(A,y)),(0,o.UG)(A)){let i=0,n=0;t.canWrapX()&&(i=(0,o.RG)(w),n=Math.floor((A[0]-w[0])/i)),(0,o.QJ)(A.slice(),t,!0).forEach((t=>{const r=e.getTileRangeForExtentAndZ(t,this.sourceZ_);for(let t=r.minX;t<=r.maxX;t++)for(let e=r.minY;e<=r.maxY;e++){const r=d(this.sourceZ_,t,e,c);if(r){const t=n*i;this.sourceTiles_.push({tile:r,offset:t})}}++n})),0===this.sourceTiles_.length&&(this.state=s.A.EMPTY)}else this.state=s.A.EMPTY}getImage(){return this.canvas_}reproject_(){const t=[];if(this.sourceTiles_.forEach((e=>{const i=e.tile;if(i&&i.getState()==s.A.LOADED){const n=this.sourceTileGrid_.getTileCoordExtent(i.tileCoord);n[0]+=e.offset,n[2]+=e.offset;const r=this.clipExtent_?.slice();r&&(r[0]+=e.offset,r[2]+=e.offset),t.push({extent:n,clipExtent:r,image:i.getImage()})}})),this.sourceTiles_.length=0,0===t.length)this.state=s.A.ERROR;else{const e=this.wrappedTileCoord_[0],i=this.targetTileGrid_.getTileSize(e),n="number"==typeof i?i:i[0],r="number"==typeof i?i:i[1],a=this.targetTileGrid_.getResolution(e),h=this.sourceTileGrid_.getResolution(this.sourceZ_),g=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=function(t,e,i,n,r,s,a,h,g,m,v,_,y,x){const w=(0,c.Y)(Math.round(i*t),Math.round(i*e),d);if(_||(w.imageSmoothingEnabled=!1),0===g.length)return w.canvas;function b(t){return Math.round(t*i)/i}w.scale(i,i),w.globalCompositeOperation="lighter";const E=(0,o.S5)();let C;g.forEach((function(t,e,i){(0,o.X$)(E,t.extent)}));const A=i/n,S=(_?1:1+Math.pow(2,-24))/A;if(!y||1!==g.length||0!==m){if(C=(0,c.Y)(Math.round((0,o.RG)(E)*A),Math.round((0,o.Oq)(E)*A),d),_||(C.imageSmoothingEnabled=!1),r&&x){const t=(r[0]-E[0])*A,e=-(r[3]-E[3])*A,i=(0,o.RG)(r)*A,n=(0,o.Oq)(r)*A;C.rect(t,e,i,n),C.clip()}g.forEach((function(t,e,i){if(t.image.width>0&&t.image.height>0){if(t.clipExtent){C.save();const e=(t.clipExtent[0]-E[0])*A,i=-(t.clipExtent[3]-E[3])*A,n=(0,o.RG)(t.clipExtent)*A,r=(0,o.Oq)(t.clipExtent)*A;C.rect(_?e:Math.round(e),_?i:Math.round(i),_?n:Math.round(e+n)-Math.round(e),_?r:Math.round(i+r)-Math.round(i)),C.clip()}const e=(t.extent[0]-E[0])*A,i=-(t.extent[3]-E[3])*A,n=(0,o.RG)(t.extent)*A,r=(0,o.Oq)(t.extent)*A;C.drawImage(t.image,m,m,t.image.width-2*m,t.image.height-2*m,_?e:Math.round(e),_?i:Math.round(i),_?n:Math.round(e+n)-Math.round(e),_?r:Math.round(i+r)-Math.round(i)),t.clipExtent&&C.restore()}}))}const T=(0,o.Py)(a);
2return h.getTriangles().forEach((function(t,e,i){const n=t.source,r=t.target;let a=n[0][0],h=n[0][1],m=n[1][0],v=n[1][1],y=n[2][0],x=n[2][1];const A=b((r[0][0]-T[0])/s),I=b(-(r[0][1]-T[1])/s),R=b((r[1][0]-T[0])/s),D=b(-(r[1][1]-T[1])/s),M=b((r[2][0]-T[0])/s),L=b(-(r[2][1]-T[1])/s),O=a,k=h;a=0,h=0,m-=O,v-=k,y-=O,x-=k;const P=[[m,v,0,0,R-A],[y,x,0,0,M-A],[0,0,m,v,D-I],[0,0,y,x,L-I]],F=(0,l.KU)(P);if(!F)return;if(w.save(),w.beginPath(),function(){if(void 0===u){const t=(0,c.Y)(6,6,d);t.globalCompositeOperation="lighter",t.fillStyle="rgba(210, 0, 0, 0.75)",f(t,4,5,4,0),f(t,4,5,0,5);const e=t.getImageData(0,0,3,3).data;u=p(e,0)||p(e,4)||p(e,8),(0,c.Yg)(t),d.push(t.canvas)}return u}()||!_){w.moveTo(R,D);const t=4,e=A-R,i=I-D;for(let n=0;n<t;n++)w.lineTo(R+b((n+1)*e/t),D+b(n*i/(t-1))),n!=t-1&&w.lineTo(R+b((n+1)*e/t),D+b((n+1)*i/(t-1)));w.lineTo(M,L)}else w.moveTo(R,D),w.lineTo(A,I),w.lineTo(M,L);let N;if(w.clip(),w.transform(F[0],F[2],F[1],F[3],A,I),w.translate(E[0]-O,E[3]-k),C)N=C.canvas,w.scale(S,-S);else{const t=g[0],e=t.extent;N=t.image,w.scale((0,o.RG)(e)/N.width,-(0,o.Oq)(e)/N.height)}w.drawImage(N,0,0),w.restore()})),C&&((0,c.Yg)(C),d.push(C.canvas)),v&&(w.save(),w.globalCompositeOperation="source-over",w.strokeStyle="black",w.lineWidth=1,h.getTriangles().forEac
2h((function(t,e,i){const n=t.target,r=(n[0][0]-T[0])/s,o=-(n[0][1]-T[1])/s,a=(n[1][0]-T[0])/s,l=-(n[1][1]-T[1])/s,h=(n[2][0]-T[0])/s,c=-(n[2][1]-T[1])/s;w.beginPath(),w.moveTo(a,l),w.lineTo(r,o),w.lineTo(h,c),w.closePath(),w.stroke()})),w.restore()),w.canvas}(n,r,this.pixelRatio_,h,this.sourceTileGrid_.getExtent(),a,g,this.triangulation_,t,this.gutter_,this.renderEdges_,this.interpolate),this.state=s.A.LOADED}this.changed()}load(){if(this.state==s.A.IDLE){this.state=s.A.LOADING,this.changed();let t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach((({tile:e})=>{const i=e.getState();if(i==s.A.IDLE||i==s.A.LOADING){t++;const i=(0,m.KT)(e,n.A.CHANGE,(function(n){const r=e.getState();r!=s.A.LOADED&&r!=s.A.ERROR&&r!=s.A.EMPTY||((0,m.JH)(i),t--,0===t&&(this.unlistenSources_(),this.reproject_()))}),this);this.sourcesListenerKeys_.push(i)}})),0===t?setTimeout(this.reproject_.bind(this),0):this.sourceTiles_.forEach((function({tile:t},e,i){t.getState()==s.A.IDLE&&t.load()}))}}unlistenSources_(){this.sourcesListenerKeys_.forEach(m.JH),this.sourcesListenerKeys_=null}release(){this.canvas_&&((0,c.Yg)(this.canvas_.getContext("2d")),d.push(this.canvas_),this.canvas_=null),super.release()}}const _=v},3169:(t,e,i)=>{var n,r,s;window,r=[i(2137),i(1485)],void 0===(s="function"==typeof(n=function(t,e){"use strict";var i=document.documentElement.style,n="string"==typeof i.transition?"transition":"WebkitTransition",r="string"==typeof i.transform?"transform":"WebkitTransform",s={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],o={transform:r,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function a(t,e){t&&(this.element=t,this.layout=e,this.position={x:0,y:0},this._create())}var l=a.prototype=Object.create(t.prototype);l.constructor=a,l._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},l.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},l.getSize=function(){this.size=e(this.element)},l.css=function(t){var e=this.element.style;for(var i in t)e[o[i]||i]=t[i]},l.getPosition=function(){var t=getComputedStyle(this.element),e=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=t[e?"left":"right"],r=t[i?"top":"bottom"],s=parseFloat(n),o=parseFloat(r),a=this.layout.size;-1!=n.indexOf("%")&&(s=s/100*a.width),-1!=r.indexOf("%")&&(o=o/100*a.height),s=isNaN(s)?0:s,o=isNaN(o)?0:o,s-=e?a.paddingLeft:a.paddingRight,o-=i?a.paddingTop:a.paddingBottom,this.position.x=s,this.position.y=o},l.layoutPosition=function(){var t=this.layout.size,e={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),r=i?"paddingLeft":"paddingRight",s=i?"left":"right",o=i?"right":"left",a=this.position.x+t[r];e[s]=this.getXValue(a),e[o]="";var l=n?"paddingTop":"paddingBottom",h=n?"top":"bottom",c=n?"bottom":"top",u=this.position.y+t[l];e[h]=this.getYValue(u),e[c]="",this.css(e),this.emitEvent("layout",[this])},l.getXValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!e?t/this.layout.size.width*100+"%":t+"px"},l.getYValue=function(t){var e=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&e?t/this.layout.size.height*100+"%":t+"px"},l._transitionTo=function(t,e){this.getPosition();var i=this.position.x,n=this.position.y,r=t==this.position.x&&e==this.position.y;if(this.setPosition(t,e),!r||this.isTransitioning){var s=t-i,o=e-n,a={};a.transform=this.getTranslate(s,o),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},l.getTranslate=function(t,e){return"translate3d("+(t=this.layout._getOption("originLeft")?t:-t)+"px, "+(e=this.layout._getOption("originTop")?e:-e)+"px, 0)"},l.goTo=function(t,e){this.setPosition(t,e),this.layoutPosition()},l.moveTo=l._transitionTo,l.setPosition=function(t,e){this.position.x=parseFloat(t),this.position.y=parseFloat(e)},l._nonTransition=function(t){for(var e in this.css(t.to),t.isCleaning&&this._removeStyles(t.to),t.onTransitionEnd)t.onTransitionEnd[e].call(this)},l.transition=function(t){if(parseFloat(this.layout.options.transitionDuration)){var e=this._transn;for(var i in t.onTransitionEnd)e.onEnd[i]=t.onTransitionEnd[i];for(i in t.to)e.ingProperties[i]=!0,t.isCleaning&&(e.clean[i]=!0);t.from&&(this.css(t.from),this.element.offsetHeight),this.enableTransition(t.to),this.css(t.to),this.isTransitioning=!0}else this._nonTransition(t)};var h="opacity,"+r.replace(/([A-Z])/g,(function(t){return"-"+t.toLowerCase()}));l.enableTransition=function(){if(!this.isTransitioning){var t=this.layout.options.transitionDuration;t="number"==typeof t?t+"ms":t,this.css({transitionProperty:h,transitionDuration:t,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(s,this,!1)}},l.onwebkitTransitionEnd=function(t){this.ontransitionend(t)},l.onotransitionend=function(t){this.ontransitionend(t)};var c={"-webkit-transform":"transform"};l.ontransitionend=function(t){if(t.target===this.element){var e=this._transn,i=c[t.propertyName]||t.propertyName;delete e.ingProperties[i],function(t){for(var e in t)return!1;return!0}(e.ingProperties)&&this.disableTransition(),i in e.clean&&(this.element.style[t.propertyName]="",delete e.clean[i]),i in e.onEnd&&(e.onEnd[i].call(this),delete e.onEnd[i]),this.emitEvent("transitionEnd",[this])}},l.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(s,this,!1),this.isTransitioning=!1},l._removeStyles=function(t){var e={};for(var i in t)e[i]="";this.css(e)};var u={transitionProperty:"",transitionDuration:"",transitionDelay:""};return l.removeTransitionStyles=function(){this.css(u)},l.stagger=function(t){t=isNaN(t)?0:t,this.staggerDelay=t+"ms"},l.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},l.remove=function(){n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",(function(){this.removeElem()})),this.hide()):this.removeElem()},l.reveal=function(){delete this.isHidden,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:t.hiddenStyle,to:t.visibleStyle,isCleaning:!0,onTransitionEnd:e})},l.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},l.getHideRevealTransitionEndProperty=function(t){var e=this.layout.options[t];if(e.opacity)return"opacity";for(var i in e)return i},l.hide=function(){this.isHidden=!0,this.css({display:""});var t=this.layout.options,e={};e[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:t.visibleStyle,to:t.hiddenStyle,isCleaning:!0,onTransitionEnd:e})},l.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},l.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},a})?n.apply(e,r):n)||(t.exports=s)},3351:(t,e,i)=>{"use strict";i.d(e,{A:()=>y});var n="/",r="=",s=",",o=function(t,e){var i=function(t){return t instanceof Array||(t=[t]),(t=t.map((function(t){return encodeURIComponent(String(t))}))).join(s)}(e);return"".concat(t).concat(r).concat(i)};const a=function(t){var e=t.replace(/^[^#]*#/,"").split(n),i={};return e.forEach((function(t){var e=t.split(r);if(2===e.length){var n=e[0]||"__unknown__",o=e[1].split(s).map((function(t){return decodeURIComponent(String(t))}));i[n]=1===o.length?o[0]:o}})),i};var l,h=i(8168);!function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"}(l||(l={}));var c="beforeunload";function u(t){t.preventDefault(),t.returnValue=""}function d(){var t=[];return{get length(){return t.length},push:function(e){return t.push(e),function(){t=t.filter((function(t){return t!==e}))}},call:function(e){t.forEach((function(t){return t&&t(e)}))}}}function f(t){var e=t.pathname,i=void 0===e?"/":e,n=t.search,r=void 0===n?"":n,s=t.hash,o=void 0===s?"":s;return r&&"?"!==r&&(i+="?"===r.charAt(0)?r:"?"+r),o&&"#"!==o&&(i+="#"===o.charAt(0)?o:"#"+o),i}function p(t){var e={};if(t){var i=t.indexOf("#");i>=0&&(e.hash=t.substr(i),t=t.substr(0,i));var n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}var g=function(t){void 0===t&&(t={});var e=t.window,i=void 0===e?document.defaultView:e,n=i.history;function r(){var t=p(i.location.hash.substr(1)),e=t.pathname,r=void 0===e?"/":e,s=t.search,o=void 0===s?"":s,a=t.hash,l=void 0===a?"":a,h=n.state||{};return[h.idx,{pathname:r,search:o,hash:l,state:h.usr||null,key:h.key||"default"}]}var s=null;function o(){if(s)y.call(s),s=null;else{var t=l.Pop,e=r(),i=e[0],n=e[1];if(y.length){if(null!=i){var o=m-i;o&&(s={action:t,location:n,retry:function(){A(-1*o)}},A(o))}}else C(t)}}i.addEventListener("popstate",o),i.addEventListener("hashchange",(function(){f(r()[1])!==f(v)&&o()}));var a=l.Pop,g=r(),m=g[0],v=g[1],_=d(),y=d();function x(t){return function(){var t=document.querySelector("base"),e="";if(t&&t.getAttribute("href")){var n=i.location.href,r=n.indexOf("#");e=-1===r?n:n.slice(0,r)}return e}()+"#"+("string"==typeof t?t:f(t))}function w(t,e){return void 0===e&&(e=null),(0,h.A)({pathname:v.pathname,hash:"",search:""},"string"==typeof t?p(t):t,{state:e,key:Math.random().toString(36).substr(2,8)})}function b(t,e){return[{usr:t.state,key:t.key,idx:e},x(t)]}function E(t,e,i){return!y.length||(y.call({action:t,location:e,retry:i}),!1)}function C(t){a=t;var e=r();m=e[0],v=e[1],_.call({action:a,location:v})}function A(t){n.go(t)}return null==m&&(m=0,n.replaceState((0,h.A)({},n.state,{idx:m}),"")),{get action(){return a},get location(){return v},createHref:x,push:function t(e,r){var s=l.Push,o=w(e,r);if(E(s,o,(function(){t(e,r)}))){var a=b(o,m+1),h=a[0],c=a[1];try{n.pushState(h,"",c)}catch(t){i.location.assign(c)}C(s)}},replace:function t(e,i){var r=l.Replace,s=w(e,i);if(E(r,s,(function(){t(e,i)}))){var o=b(s,m),a=o[0],h=o[1];n.replaceState(a,"",h),C(r)}},go:A,back:function(){A(-1)},forward:function(){A(1)},listen:function(t){return _.push(t)},block:function(t){var e=y.push(t);return 1===y.length&&i.addEventListener(c,u),function(){e(),y.length||i.removeEventListener(c,u)}}}}({hashType:"noslash"}),m=null,v=["page"];function _(){return m||(m=a(g.location.pathname)),m}g.listen((function(t){var e=t.location;t.action,m=a(e.pathname)}));const y={history:g,getUrlParams:_,pushParams:function(t){(!(arguments.length>1&&void 0!==arguments[1])||arguments[1])&&v.forEach((function(e){delete t[e]}));var e="/"+function(t){var e=Object.keys(t),i=[];return e.forEach((function(e){i.push(o(e,t[e]))})),i.join(n)}(t);
2decodeURI(e)!==g.location.pathname&&g.push(e)},removeParamFromCache:function(t){_()&&delete m[t]},filterParams:v}},3392:(t,e,i)=>{"use strict";var n=i(9504),r=0,s=Math.random(),o=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++r+s,36)}},3445:(t,e,i)=>{"use strict";i.d(e,{A:()=>r});var n=i(6837);const r={SINGLECLICK:"singleclick",CLICK:n.A.CLICK,DBLCLICK:n.A.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"}},3474:(t,e,i)=>{"use strict";function n(t){return Math.pow(t,3)}function r(t){return 1-n(1-t)}function s(t){return 3*t*t-2*t*t*t}function o(t){return t}i.d(e,{T9:()=>s,a6:()=>n,sn:()=>o,vT:()=>r})},3504:(t,e,i)=>{"use strict";i.d(e,{A:()=>w});var n=i(764);const r="preload",s="useInterimTilesOnError";class o extends n.A{constructor(t){t=t||{};const e=Object.assign({},t);delete e.preload,delete e.useInterimTilesOnError,super(e),this.on,this.once,this.un,this.setPreload(void 0!==t.preload?t.preload:0),this.setUseInterimTilesOnError(void 0===t.useInterimTilesOnError||t.useInterimTilesOnError)}getPreload(){return this.get(r)}setPreload(t){this.set(r,t)}getUseInterimTilesOnError(){return this.get(s)}setUseInterimTilesOnError(t){this.set(s,t)}getData(t){return super.getData(t)}}const a=o;var l=i(1623),h=i(190),c=i(2963),u=i(1110),d=i(1078),f=i(9703),p=i(6514),g=i(915),m=i(7083),v=i(4087),_=i(6782);class y extends l.A{constructor(t){super(t),this.extentChanged=!0,this.renderedExtent_=null,this.renderedPixelRatio,this.renderedProjection=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=(0,g.S5)(),this.tmpTileRange_=new u.A(0,0,0,0)}isDrawableTile(t){const e=this.getLayer(),i=t.getState(),n=e.getUseInterimTilesOnError();return i==d.A.LOADED||i==d.A.EMPTY||i==d.A.ERROR&&!n}getTile(t,e,i,n){const r=n.pixelRatio,s=n.viewState.projection,o=this.getLayer();let a=o.getSource().getTile(t,e,i,r,s);return a.getState()==d.A.ERROR&&o.getUseInterimTilesOnError()&&o.getPreload()>0&&(this.newTiles_=!0),this.isDrawableTile(a)||(a=a.getInterimTile()),a}getData(t){const e=this.frameState;if(!e)return null;const i=this.getLayer(),n=(0,f.Bb)(e.pixelToCoordinateTransform,t.slice()),r=i.getExtent();if(r&&!(0,g.Ym)(r,n))return null;const s=e.pixelRatio,o=e.viewState.projection,a=e.viewState,l=i.getRenderSource(),u=l.getTileGridForProjection(a.projection),p=l.getTilePixelRatio(e.pixelRatio);for(let t=u.getZForResolution(a.resolution);t>=u.getMinZoom();--t){const e=u.getTileCoordForCoordAndZ(n,t),i=l.getTile(t,e[1],e[2],s,o);if(!(i instanceof h.A||i instanceof c.A)||i instanceof c.A&&i.getState()===d.A.EMPTY)return null;if(i.getState()!==d.A.LOADED)continue;const r=u.getOrigin(t),f=(0,_.xq)(u.getTileSize(t)),g=u.getResolution(t),m=Math.floor(p*((n[0]-r[0])/g-e[1]*f[0])),v=Math.floor(p*((r[1]-n[1])/g-e[2]*f[1])),y=Math.round(p*l.getGutterForProjection(a.projection));return this.getImageData(i.getImage(),m+y,v+y)}return null}loadedTileCallback(t,e,i){return!!this.isDrawableTile(i)&&super.loadedTileCallback(t,e,i)}prepareFrame(t){return!!this.getLayer().getSource()}renderFrame(t,e){const i=t.layerStatesArray[t.layerIndex],n=t.viewState,r=n.projection,s=n.resolution,o=n.center,a=n.rotation,l=t.pixelRatio,h=this.getLayer(),c=h.getSource(),u=c.getRevision(),_=c.getTileGridForProjection(r),y=_.getZForResolution(s,c.zDirection),x=_.getResolution(y);let w=t.extent;const b=t.viewState.resolution,E=c.getTilePixelRatio(l);this.prepareContainer(t,e);const C=this.context.canvas.width,A=this.context.canvas.height,S=i.extent&&(0,m.SD)(i.extent,r);S&&(w=(0,g._N)(w,(0,m.SD)(i.extent,r)));const T=x*C/2/E,I=x*A/2/E,R=[o[0]-T,o[1]-I,o[0]+T,o[1]+I],D=_.getTileRangeForExtentAndZ(w,y),M={};M[y]={};const L=this.createLoadedTileFinder(c,r,M),O=this.tmpExtent,k=this.tmpTileRange_;this.newTiles_=!1;const P=a?(0,g.Yw)(n.center,b,a,t.size):void 0;for(let e=D.minX;e<=D.maxX;++e)for(let n=D.minY;n<=D.maxY;++n){if(a&&!_.tileCoordIntersectsViewport([y,e,n],P))continue;const r=this.getTile(y,e,n,t);if(this.isDrawableTile(r)){const e=(0,v.v6)(this);if(r.getState()==d.A.LOADED){M[y][r.tileCoord.toString()]=r;let t=r.inTransition(e);t&&1!==i.opacity&&(r.endTransition(e),t=!1),this.newTiles_||!t&&this.renderedTiles.includes(r)||(this.newTiles_=!0)}if(1===r.getAlpha(e,t.time))continue}const s=_.getTileCoordChildTileRange(r.tileCoord,k,O);let o=!1;s&&(o=L(y+1,s)),o||_.forEachTileCoordParentTileRange(r.tileCoord,L,k,O)}const F=x/s*l/E,N=this.getRenderContext(t);(0,f.Zz)(this.tempTransform,C/2,A/2,F,F,0,-C/2,-A/2),S&&this.clipUnrotated(N,t,S),c.getInterpolate()||(N.imageSmoothingEnabled=!1),this.preRender(N,t),this.renderedTiles.length=0;let j,$,G,z=Object.keys(M).map(Number);z.sort(p.V_),1!==i.opacity||this.containerReused&&!c.getOpaque(t.viewState.projection)?(j=[],$=[]):z=z.reverse();for(let e=z.length-1;e>=0;--e){const i=z[e],n=c.getTilePixelSize(i,l,r),s=_.getResolution(i)/x,o=n[0]*s*F,a=n[1]*s*F,h=_.getTileCoordForCoordAndZ((0,g.Py)(R),i),u=_.getTileCoordExtent(h),d=(0,f.Bb)(this.tempTransform,[E*(u[0]-R[0])/x,E*(R[3]-u[3])/x]),p=E*c.getGutterForProjection(r),m=M[i];for(const e in m){const n=m[e],r=n.tileCoord,s=h[1]-r[1],l=Math.round(d[0]-(s-1)*o),u=h[2]-r[2],f=Math.round(d[1]-(u-1)*a),_=Math.round(d[0]-s*o),x=Math.round(d[1]-u*a),w=l-_,b=f-x,E=y===i,C=E&&1!==n.getAlpha((0,v.v6)(this),t.time);let A=!1;if(!C)if(j){G=[_,x,_+w,x,_+w,x+b,_,x+b];for(let t=0,e=j.length;t<e;++t)if(y!==i&&i<$[t]){const e=j[t];(0,g.HY)([_,x,_+w,x+b],[e[0],e[3],e[4],e[7]])&&(A||(N.save(),A=!0),N.beginPath(),N.moveTo(G[0],G[1]),N.lineTo(G[2],G[3]),N.lineTo(G[4],G[5]),N.lineTo(G[6],G[7]),N.moveTo(e[6],e[7]),N.lineTo(e[4],e[5]),N.lineTo(e[2],e[3]),N.lineTo(e[0],e[1]),N.clip())}j.push(G),$.push(i)}else N.clearRect(_,x,w,b);
2this.drawTileImage(n,t,_,x,w,b,p,E),j&&!C?(A&&N.restore(),this.renderedTiles.unshift(n)):this.renderedTiles.push(n),this.updateUsedTiles(t.usedTiles,c,n)}}return this.renderedRevision=u,this.renderedResolution=x,this.extentChanged=!this.renderedExtent_||!(0,g.aI)(this.renderedExtent_,R),this.renderedExtent_=R,this.renderedPixelRatio=l,this.renderedProjection=r,this.manageTilePyramid(t,c,_,l,r,w,y,h.getPreload()),this.scheduleExpireCache(t,c),this.postRender(this.context,t),i.extent&&N.restore(),N.imageSmoothingEnabled=!0,this.container}drawTileImage(t,e,i,n,r,s,o,a){const l=this.getTileImage(t);if(!l)return;const h=this.getRenderContext(e),c=(0,v.v6)(this),u=e.layerStatesArray[e.layerIndex],d=u.opacity*(a?t.getAlpha(c,e.time):1),f=d!==h.globalAlpha;f&&(h.save(),h.globalAlpha=d),h.drawImage(l,o,o,l.width-2*o,l.height-2*o,i,n,r,s),f&&h.restore(),d!==u.opacity?e.animate=!0:a&&t.endTransition(c)}getImage(){const t=this.context;return t?t.canvas:null}getTileImage(t){return t.getImage()}scheduleExpireCache(t,e){if(e.canExpireCache()){const i=function(t,e,i){const n=(0,v.v6)(t);n in i.usedTiles&&t.expireCache(i.viewState.projection,i.usedTiles[n])}.bind(null,e);t.postRenderFunctions.push(i)}}updateUsedTiles(t,e,i){const n=(0,v.v6)(e);n in t||(t[n]={}),t[n][i.getKey()]=!0}manageTilePyramid(t,e,i,n,r,s,o,a,l){const h=(0,v.v6)(e);h in t.wantedTiles||(t.wantedTiles[h]={});const c=t.wantedTiles[h],u=t.tileQueue,f=i.getMinZoom(),p=t.viewState.rotation,m=p?(0,g.Yw)(t.viewState.center,t.viewState.resolution,p,t.size):void 0;let _,y,x,w,b,E,C=0;for(E=f;E<=o;++E)for(y=i.getTileRangeForExtentAndZ(s,E,y),x=i.getResolution(E),w=y.minX;w<=y.maxX;++w)for(b=y.minY;b<=y.maxY;++b)p&&!i.tileCoordIntersectsViewport([E,w,b],m)||(o-E<=a?(++C,_=e.getTile(E,w,b,n,r),_.getState()==d.A.IDLE&&(c[_.getKey()]=!0,u.isKeyQueued(_.getKey())||u.enqueue([_,h,i.getTileCoordCenter(_.tileCoord),x])),void 0!==l&&l(_)):e.useTile(E,w,b,r));e.updateCacheSize(C,r)}}const x=y,w=class extends a{constructor(t){super(t)}createRenderer(){return new x(this)}}},3517:(t,e,i)=>{"use strict";var n=i(9504),r=i(9039),s=i(4901),o=i(6955),a=i(7751),l=i(3706),h=function(){},c=a("Reflect","construct"),u=/^\s*(?:class|function)\b/,d=n(u.exec),f=!u.test(h),p=function(t){if(!s(t))return!1;try{return c(h,[],t),!0}catch(t){return!1}},g=function(t){if(!s(t))return!1;switch(o(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!d(u,l(t))}catch(t){return!0}};g.sham=!0,t.exports=!c||r((function(){var t;return p(p.call)||!p(Object)||!p((function(){t=!0}))||t}))?g:p},3530:(t,e,i)=>{"use strict";function n(t){for(const e in t)delete t[e]}function r(t){let e;for(e in t)return!1;return!e}i.d(e,{I:()=>n,p:()=>r})},3580:(t,e,i)=>{"use strict";i(9432);var n=i(9167);t.exports=n.Object.keys},3624:(t,e,i)=>{"use strict";i.d(e,{E:()=>d,A:()=>p});var n=i(8130),r=i(6429),s=i(7295),o=i(8774),a=i(4087),l=i(915),h=i(1597);function c(t,e,i,n,r){const s=[];let o=i,a=0,l=e.slice(i,2);for(;a<t&&o+r<n;){const[i,n]=l.slice(-2),c=e[o+r],u=e[o+r+1],d=Math.sqrt((c-i)*(c-i)+(u-n)*(u-n));if(a+=d,a>=t){const e=(t-a+d)/d,f=(0,h.Cc)(i,c,e),p=(0,h.Cc)(n,u,e);l.push(f,p),s.push(l),l=[f,p],a==t&&(o+=r),a=0}else if(a<t)l.push(e[o+r],e[o+r+1]),o+=r;else{const t=d-a,e=(0,h.Cc)(i,c,t/d),f=(0,h.Cc)(n,u,t/d);l.push(e,f),s.push(l),l=[e,f],a=0,o+=r}}return a>0&&s.push(l),s}function u(t,e,i,n,r){let s,o,a,l,h,c,u,d,f,p,g=i,m=i,v=0,_=0,y=i;for(o=i;o<n;o+=r){const i=e[o],n=e[o+1];void 0!==h&&(f=i-h,p=n-c,l=Math.sqrt(f*f+p*p),void 0!==u&&(_+=a,s=Math.acos((u*f+d*p)/(a*l)),s>t&&(_>v&&(v=_,g=y,m=o),_=0,y=o-r)),a=l,u=f,d=p),h=i,c=n}return _+=l,_>v?[y,o]:[g,m]}const d={left:0,center:.5,right:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1};class f extends n.A{constructor(t,e,i,n){super(t,e,i,n),this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.fillStates[o.qY]={fillStyle:o.qY},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.declutterMode_=void 0,this.declutterImageWithText_=void 0}finish(){const t=super.finish();return t.textStates=this.textStates,t.fillStates=this.fillStates,t.strokeStates=this.strokeStates,t}drawText(t,e,i){const n=this.textFillState_,s=this.textStrokeState_,a=this.textState_;if(""===this.text_||!a||!n&&!s)return;const h=this.coordinates;let d=h.length;const f=t.getType();let p=null,g=t.getStride();if("line"!==a.placement||"LineString"!=f&&"MultiLineString"!=f&&"Polygon"!=f&&"MultiPolygon"!=f){let n=a.overflow?null:[];switch(f){case"Point":case"MultiPoint":p=t.getFlatCoordinates();break;case"LineString":p=t.getFlatMidpoint();break;case"Circle":p=t.getCenter();break;case"MultiLineString":p=t.getFlatMidpoints(),g=2;break;case"Polygon":p=t.getFlatInteriorPoint(),a.overflow||n.push(p[2]/this.resolution),g=3;break;case"MultiPolygon":const e=t.getFlatInteriorPoints();p=[];for(let t=0,i=e.length;t<i;t+=3)a.overflow||n.push(e[t+2]/this.resolution),p.push(e[t],e[t+1]);if(0===p.length)return;g=2}const s=this.appendFlatPointCoordinates(p,g);if(s===d)return;if(n&&(s-d)/2!=p.length/g){let t=d/2;n=n.filter(((e,i)=>{const n=h[2*(t+i)]===p[i*g]&&h[2*(t+i)+1]===p[i*g+1];return n||--t,n}))}this.saveTextStates_(),(a.backgroundFill||a.backgroundStroke)&&(this.setFillStrokeStyle(a.backgroundFill,a.backgroundStroke),a.backgroundFill&&this.updateFillStyle(this.state,this.createFill),a.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e,i);let l=a.padding;if(l!=o.Tq&&(a.scale[0]<0||a.scale[1]<0)){let t=a.padding[0],e=a.padding[1],i=a.padding[2],n=a.padding[3];a.scale[0]<0&&(e=-e,n=-n),a.scale[1]<0&&(t=-t,i=-i),l=[t,e,i,n]}const c=this.pixelRatio;this.instructions.push([r.Ay.DRAW_IMAGE,d,s,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[1,1],NaN,this.declutterMode_,this.declutterImageWithText_,l==o.Tq?o.Tq:l.map((function(t){return t*c})),!!a.backgroundFill,!!a.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_,this.textOffsetX_,this.textOffsetY_,n]);const u=1/c,m=this.state.fillStyle;a.backgroundFill&&(this.state.fillStyle=o.qY,this.hitDetectionInstructions.push(this.createFill(this.state))),this.hitDetectionInstructions.push([r.Ay.DRAW_IMAGE,d,s,null,NaN,NaN,NaN,1,0,0,this.textRotateWithView_,this.textRotation_,[u,u],NaN,this.declutterMode_,this.declutterImageWithText_,l,!!a.backgroundFill,!!a.backgroundStroke,this.text_,this.textKey_,this.strokeKey_,this.fillKey_?o.qY:this.fillKey_,this.textOffsetX_,this.textOffsetY_,n]),a.backgroundFill&&(this.state.fillStyle=m,this.hitDetectionInstructions.push(this.createFill(this.state))),this.endGeometry(e)}else{if(!(0,l.HY)(this.maxExtent,t.getExtent()))return;let n;if(p=t.getFlatCoordinates(),"LineString"==f)n=[p.length];else if("MultiLineString"==f)n=t.getEnds();else if("Polygon"==f)n=t.getEnds().slice(0,1);else if("MultiPolygon"==f){const e=t.getEndss();n=[];for(let t=0,i=e.length;t<i;++t)n.push(e[t][0])}this.beginGeometry(t,e,i);const r=a.repeat,s=r?void 0:a.textAlign;let o=0;for(let t=0,e=n.length;t<e;++t){let e;e=r?c(r*this.resolution,p,o,n[t],g):[p.slice(o,n[t])];for(let i=0,r=e.length;i<r;++i){const r=e[i];let l=0,c=r.length;if(null==s){const t=u(a.maxAngle,r,0,r.length,2);l=t[0],c=t[1]}for(let t=l;t<c;t+=g)h.push(r[t],r[t+1]);const f=h.length;o=n[t],this.drawChars_(d,f),d=f}}this.endGeometry(e)}}saveTextStates_(){const t=this.textStrokeState_,e=this.textState_,i=this.textFillState_,n=this.strokeKey_;t&&(n in this.strokeStates||(this.strokeStates[n]={strokeStyle:t.strokeStyle,lineCap:t.lineCap,lineDashOffset:t.lineDashOffset,lineWidth:t.lineWidth,lineJoin:t.lineJoin,miterLimit:t.miterLimit,lineDash:t.lineDash}));const r=this.textKey_;r in this.textStates||(this.textStates[r]={font:e.font,textAlign:e.textAlign||o.MY,justify:e.justify,textBaseline:e.textBaseline||o.M8,scale:e.scale});const s=this.fillKey_;i&&(s in this.fillStates||(this.fillStates[s]={fillStyle:i.fillStyle}))}drawChars_(t,e){const i=this.textStrokeState_,n=this.textState_,s=this.strokeKey_,a=this.textKey_,l=this.fillKey_;this.saveTextStates_();const h=this.pixelRatio,c=d[n.textBaseline],u=this.textOffsetY_*h,f=this.text_,p=i?i.lineWidth*Math.abs(n.scale[0])/2:0;this.instructions.push([r.Ay.DRAW_CHARS,t,e,c,n.overflow,l,n.maxAngle,h,u,s,p*h,f,a,1,this.declutterMode_]),this.hitDetectionInstructions.push([r.Ay.DRAW_CHARS,t,e,c,n.overflow,l?o.qY:l,n.maxAngle,h,u,s,p*h,f,a,1/h,this.declutterMode_])}setTextStyle(t,e){let i,n,r;
2if(t){const e=t.getFill();e?(n=this.textFillState_,n||(n={},this.textFillState_=n),n.fillStyle=(0,s.F)(e.getColor()||o.qY)):(n=null,this.textFillState_=n);const l=t.getStroke();if(l){r=this.textStrokeState_,r||(r={},this.textStrokeState_=r);const t=l.getLineDash(),e=l.getLineDashOffset(),i=l.getWidth(),n=l.getMiterLimit();r.lineCap=l.getLineCap()||o._m,r.lineDash=t?t.slice():o.Oq,r.lineDashOffset=void 0===e?o.vk:e,r.lineJoin=l.getLineJoin()||o._K,r.lineWidth=void 0===i?o.aq:i,r.miterLimit=void 0===n?o.eL:n,r.strokeStyle=(0,s.F)(l.getColor()||o.NT)}else r=null,this.textStrokeState_=r;i=this.textState_;const h=t.getFont()||o.ZV;(0,o.fZ)(h);const c=t.getScaleArray();i.overflow=t.getOverflow(),i.font=h,i.maxAngle=t.getMaxAngle(),i.placement=t.getPlacement(),i.textAlign=t.getTextAlign(),i.repeat=t.getRepeat(),i.justify=t.getJustify(),i.textBaseline=t.getTextBaseline()||o.M8,i.backgroundFill=t.getBackgroundFill(),i.backgroundStroke=t.getBackgroundStroke(),i.padding=t.getPadding()||o.Tq,i.scale=void 0===c?[1,1]:c;const u=t.getOffsetX(),d=t.getOffsetY(),f=t.getRotateWithView(),p=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===u?0:u,this.textOffsetY_=void 0===d?0:d,this.textRotateWithView_=void 0!==f&&f,this.textRotation_=void 0===p?0:p,this.strokeKey_=r?("string"==typeof r.strokeStyle?r.strokeStyle:(0,a.v6)(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=i.font+i.scale+(i.textAlign||"?")+(i.repeat||"?")+(i.justify||"?")+(i.textBaseline||"?"),this.fillKey_=n&&n.fillStyle?"string"==typeof n.fillStyle?n.fillStyle:"|"+(0,a.v6)(n.fillStyle):""}else this.text_="";this.declutterMode_=t.getDeclutterMode(),this.declutterImageWithText_=e}}const p=f},3628:(t,e,i)=>{"use strict";if(i.d(e,{A:()=>o}),/^(217|331)$/.test(i.j))var n=i(6141);if(/^(217|331)$/.test(i.j))var r=i(7907);class s{constructor(t){t=t||{},this.patternImage_=null,this.color_=null,void 0!==t.color&&this.setColor(t.color)}clone(){const t=this.getColor();return new s({color:Array.isArray(t)?t.slice():t||void 0})}getColor(){return this.color_}setColor(t){if(null!==t&&"object"==typeof t&&"src"in t){const e=(0,r.J)(null,t.src,"anonymous",void 0,t.offset?null:t.color?t.color:null,!(t.offset&&t.size));e.ready().then((()=>{this.patternImage_=null})),e.getImageState()===n.A.IDLE&&e.load(),e.getImageState()===n.A.LOADING&&(this.patternImage_=e)}this.color_=t}loading(){return!!this.patternImage_}ready(){return this.patternImage_?this.patternImage_.ready():Promise.resolve()}}const o=/^(217|331)$/.test(i.j)?s:null},3671:(t,e,i)=>{"use strict";if(i.d(e,{AL:()=>s,Hg:()=>l,P4:()=>r,n$:()=>o}),/^(217|331)$/.test(i.j))var n=i(1597);function r(t,e,i,r,s,o,a){const l=(i-e)/r;if(l<3){for(;e<i;e+=r)o[a++]=t[e],o[a++]=t[e+1];return a}const h=new Array(l);h[0]=1,h[l-1]=1;const c=[e,i-r];let u=0;for(;c.length>0;){const i=c.pop(),o=c.pop();let a=0;const l=t[o],d=t[o+1],f=t[i],p=t[i+1];for(let e=o+r;e<i;e+=r){const i=t[e],r=t[e+1],s=(0,n.Q1)(i,r,l,d,f,p);s>a&&(u=e,a=s)}a>s&&(h[(u-e)/r]=1,o+r<u&&c.push(o,u),u+r<i&&c.push(u,i))}for(let i=0;i<l;++i)h[i]&&(o[a++]=t[e+i*r],o[a++]=t[e+i*r+1]);return a}function s(t,e,i,n,s,o,a,l){for(let h=0,c=i.length;h<c;++h){const c=i[h];a=r(t,e,c,n,s,o,a),l.push(a),e=c}return a}function o(t,e){return e*Math.round(t/e)}function a(t,e,i,n,r,s,a){if(e==i)return a;let l,h,c=o(t[e],r),u=o(t[e+1],r);e+=n,s[a++]=c,s[a++]=u;do{if(l=o(t[e],r),h=o(t[e+1],r),(e+=n)==i)return s[a++]=l,s[a++]=h,a}while(l==c&&h==u);for(;e<i;){const i=o(t[e],r),d=o(t[e+1],r);if(e+=n,i==l&&d==h)continue;const f=l-c,p=h-u,g=i-c,m=d-u;f*m==p*g&&(f<0&&g<f||f==g||f>0&&g>f)&&(p<0&&m<p||p==m||p>0&&m>p)?(l=i,h=d):(s[a++]=l,s[a++]=h,c=l,u=h,l=i,h=d)}return s[a++]=l,s[a++]=h,a}function l(t,e,i,n,r,s,o,l){for(let h=0,c=i.length;h<c;++h){const c=i[h];o=a(t,e,c,n,r,s,o),l.push(o),e=c}return o}},3706:(t,e,i)=>{"use strict";var n=i(9504),r=i(4901),s=i(7629),o=n(Function.toString);r(s.inspectSource)||(s.inspectSource=function(t){return o(t)}),t.exports=s.inspectSource},3711:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var n=i(1409),r=i(4238),s=i(4498);class o extends n.A{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=r.W8),super(e),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==t.threshold?t.threshold:.3,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){let e=0;const i=this.targetPointers[0],r=this.targetPointers[1],o=Math.atan2(r.clientY-i.clientY,r.clientX-i.clientX);if(void 0!==this.lastAngle_){const t=o-this.lastAngle_;this.rotationDelta_+=t,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=t}this.lastAngle_=o;const a=t.map,l=a.getView();l.getConstraints().rotation!==s.b8&&(this.anchor_=a.getCoordinateFromPixelInternal(a.getEventPixel((0,n.v)(this.targetPointers))),this.rotating_&&(a.render(),l.adjustRotationInternal(e,this.anchor_)))}handleUpEvent(t){return!(this.targetPointers.length<2)||(t.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}}const a=/^(217|331)$/.test(i.j)?o:null},3717:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},3724:(t,e,i)=>{"use strict";var n=i(9039);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}}
2)[1]}))},3938:(t,e,i)=>{"use strict";i.d(e,{RA:()=>l,f6:()=>a});var n=i(9332),r=i(6837);if(i(6141),/^(217|331)$/.test(i.j))var s=i(7771);if(/^(217|331)$/.test(i.j))var o=i(9438);function a(t,e,i){const n=t;let a=!0,l=!1,h=!1;const c=[(0,o.Jz)(n,r.A.LOAD,(function(){h=!0,l||e()}))];return n.src&&s.DT?(l=!0,n.decode().then((function(){a&&e()})).catch((function(t){a&&(h?e():i())}))):c.push((0,o.Jz)(n,r.A.ERROR,i)),function(){a=!1,c.forEach(o.JH)}}function l(t,e){return e&&(t.src=e),t.src&&s.DT?new Promise(((e,i)=>t.decode().then((()=>e(t))).catch((n=>t.complete&&t.width?e(t):i(n))))):function(t){return new Promise(((e,i)=>{function n(){s(),e(t)}function r(){s(),i(new Error("Image load error"))}function s(){t.removeEventListener("load",n),t.removeEventListener("error",r)}t.addEventListener("load",n),t.addEventListener("error",r)}))}(t)}i(4238),n.A},3984:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n={PRERENDER:"prerender",POSTRENDER:"postrender",PRECOMPOSE:"precompose",POSTCOMPOSE:"postcompose",RENDERCOMPLETE:"rendercomplete"}},4051:(t,e,i)=>{"use strict";i.d(e,{A:()=>l});var n=i(1409),r=i(4238),s=i(8704),o=i(4498);class a extends n.A{constructor(t){t=t||{},super({stopDown:r.W8}),this.condition_=t.condition?t.condition:s.IO,this.lastAngle_=void 0,this.duration_=void 0!==t.duration?t.duration:250}handleDragEvent(t){if(!(0,s.A4)(t))return;const e=t.map,i=e.getView();if(i.getConstraints().rotation===o.b8)return;const n=e.getSize(),r=t.pixel,a=Math.atan2(n[1]/2-r[1],r[0]-n[0]/2);if(void 0!==this.lastAngle_){const t=a-this.lastAngle_;i.adjustRotationInternal(-t)}this.lastAngle_=a}handleUpEvent(t){return!(0,s.A4)(t)||(t.map.getView().endInteraction(this.duration_),!1)}handleDownEvent(t){return!!(0,s.A4)(t)&&(!(!(0,s.at)(t)||!this.condition_(t))&&(t.map.getView().beginInteraction(),this.lastAngle_=void 0,!0))}}const l=/^(217|331)$/.test(i.j)?a:null},4055:(t,e,i)=>{"use strict";var n=i(4576),r=i(34),s=n.document,o=r(s)&&r(s.createElement);t.exports=function(t){return o?s.createElement(t):{}}},4087:(t,e,i)=>{"use strict";function n(){throw new Error("Unimplemented abstract method.")}i.d(e,{b0:()=>n,v6:()=>s});let r=0;function s(t){return t.ol_uid||(t.ol_uid=String(++r))}},4117:t=>{"use strict";t.exports=function(t){return null==t}},4120:(t,e,i)=>{"use strict";i.d(e,{A:()=>c});var n=i(1685),r=i(8450),s=i(1854),o=i(4087),a=i(3530);class l extends n.Ay{constructor(t,e,i){super(t),this.key=e,this.oldValue=i}}class h extends s.A{constructor(t){super(),this.on,this.once,this.un,(0,o.v6)(this),this.values_=null,void 0!==t&&this.setProperties(t)}get(t){let e;return this.values_&&this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e}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(t,e){let i;i=`change:${t}`,this.hasListener(i)&&this.dispatchEvent(new l(i,t,e)),i=r.A.PROPERTYCHANGE,this.hasListener(i)&&this.dispatchEvent(new l(i,t,e))}addChangeListener(t,e){this.addEventListener(`change:${t}`,e)}removeChangeListener(t,e){this.removeEventListener(`change:${t}`,e)}set(t,e,i){const n=this.values_||(this.values_={});if(i)n[t]=e;else{const i=n[t];n[t]=e,i!==e&&this.notify(t,i)}}setProperties(t,e){for(const i in t)this.set(i,t[i],e)}applyProperties(t){t.values_&&Object.assign(this.values_||(this.values_={}),t.values_)}unset(t,e){if(this.values_&&t in this.values_){const i=this.values_[t];delete this.values_[t],(0,a.p)(this.values_)&&(this.values_=null),e||this.notify(t,i)}}}const c=/^(217|331)$/.test(i.j)?h:null},4213:(t,e,i)=>{"use strict";var n=i(3724),r=i(9504),s=i(9565),o=i(9039),a=i(1072),l=i(3717),h=i(8773),c=i(8981),u=i(7055),d=Object.assign,f=Object.defineProperty,p=r([].concat);t.exports=!d||o((function(){if(n&&1!==d({b:1},d(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[i]=7,r.split("").forEach((function(t){e[t]=t})),7!==d({},t)[i]||a(d({},e)).join("")!==r}))?function(t,e){for(var i=c(t),r=arguments.length,o=1,d=l.f,f=h.f;r>o;)for(var g,m=u(arguments[o++]),v=d?p(a(m),d(m)):a(m),_=v.length,y=0;_>y;)g=v[y++],n&&!s(f,m,g)||(i[g]=m[g]);return i}:d},4238:(t,e,i)=>{"use strict";if(i.d(e,{B4:()=>a,W8:()=>s,hq:()=>l,rT:()=>r,tV:()=>o}),/^(217|331)$/.test(i.j))var n=i(6514);function r(){return!0}function s(){return!1}function o(){}function a(t){let e,i,r,s=!1;return function(){const o=Array.prototype.slice.call(arguments);return s&&this===r&&(0,n.aI)(o,i)||(s=!0,r=this,i=o,e=t.apply(this,arguments)),e}}function l(t){return function(){let e;try{e=t()}catch(t){return Promise.reject(t)}return e instanceof Promise?e:Promise.resolve(e)}()}},4270:(t,e,i)=>{"use strict";var n=i(9565),r=i(4901),s=i(34),o=TypeError;t.exports=function(t,e){var i,a;if("string"===e&&r(i=t.toString)&&!s(a=n(i,t)))return a;
2if(r(i=t.valueOf)&&!s(a=n(i,t)))return a;if("string"!==e&&r(i=t.toString)&&!s(a=n(i,t)))return a;throw new o("Can't convert object to primitive value")}},4294:(t,e,i)=>{"use strict";i.d(e,{A:()=>l});var n=i(4774),r=i(915),s=i(2497),o=i(1597);class a extends n.Ay{constructor(t,e){super(),this.setCoordinates(t,e)}clone(){const t=new a(this.flatCoordinates.slice(),this.layout);return t.applyProperties(this),t}closestPointXY(t,e,i,n){const r=this.flatCoordinates,s=(0,o.hG)(t,e,r[0],r[1]);if(s<n){const t=this.stride;for(let e=0;e<t;++e)i[e]=r[e];return i.length=t,s}return n}getCoordinates(){return this.flatCoordinates.slice()}computeExtent(t){return(0,r.dP)(this.flatCoordinates,t)}getType(){return"Point"}intersectsExtent(t){return(0,r.Rj)(t,this.flatCoordinates[0],this.flatCoordinates[1])}setCoordinates(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,s._n)(this.flatCoordinates,0,t,this.stride),this.changed()}}const l=/^(217|331)$/.test(i.j)?a:null},4350:(t,e,i)=>{"use strict";if(i.d(e,{HT:()=>l,sj:()=>a}),/^(217|331)$/.test(i.j))var n=i(915);if(/^(217|331)$/.test(i.j))var r=i(1374);if(/^(217|331)$/.test(i.j))var s=i(2845);function o(t,e,i,s,o){const a=(0,n.R8)((0,n.S5)(),t,e,i,s);return!!(0,n.HY)(o,a)&&(!!(0,n.ms)(o,a)||a[0]>=o[0]&&a[2]<=o[2]||a[1]>=o[1]&&a[3]<=o[3]||(0,r.j)(t,e,i,s,(function(t,e){return(0,n.Mx)(o,t,e)})))}function a(t,e,i,n,r){return!!(o(t,e,i,n,r)||(0,s.a_)(t,e,i,n,r[0],r[1])||(0,s.a_)(t,e,i,n,r[0],r[3])||(0,s.a_)(t,e,i,n,r[2],r[1])||(0,s.a_)(t,e,i,n,r[2],r[3]))}function l(t,e,i,n,r){if(!a(t,e,i[0],n,r))return!1;if(1===i.length)return!0;for(let e=1,a=i.length;e<a;++e)if((0,s.t7)(t,i[e-1],i[e],n,r)&&!o(t,i[e-1],i[e],n,r))return!1;return!0}},4376:(t,e,i)=>{"use strict";var n=i(2195);t.exports=Array.isArray||function(t){return"Array"===n(t)}},4422:(t,e,i)=>{"use strict";i.d(e,{R8:()=>s});const n={info:1,warn:2,error:3,none:4};let r=n.info;function s(...t){r>n.warn||console.warn(...t)}},4473:(t,e,i)=>{"use strict";i.d(e,{A:()=>h});var n=i(1409),r=i(4238),s=i(8704),o=i(3474),a=i(6933);class l extends n.A{constructor(t){super({stopDown:r.W8}),t=t||{},this.kinetic_=t.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1;const e=t.condition?t.condition:(0,s.Q7)(s.TS,s.fs);this.condition_=t.onFocusOnly?(0,s.Q7)(s.eL,e):e,this.noKinetic_=!1}handleDragEvent(t){const e=t.map;this.panning_||(this.panning_=!0,e.getView().beginInteraction());const i=this.targetPointers,r=e.getEventPixel((0,n.v)(i));if(i.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(r[0],r[1]),this.lastCentroid){const e=[this.lastCentroid[0]-r[0],r[1]-this.lastCentroid[1]],i=t.map.getView();(0,a.hs)(e,i.getResolution()),(0,a.e$)(e,i.getRotation()),i.adjustCenterInternal(e)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=r,this.lastPointersCount_=i.length,t.originalEvent.preventDefault()}handleUpEvent(t){const e=t.map,i=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){const t=this.kinetic_.getDistance(),n=this.kinetic_.getAngle(),r=i.getCenterInternal(),s=e.getPixelFromCoordinateInternal(r),a=e.getCoordinateFromPixelInternal([s[0]-t*Math.cos(n),s[1]-t*Math.sin(n)]);i.animateInternal({center:i.getConstrainedCenter(a),duration:500,easing:o.vT})}return this.panning_&&(this.panning_=!1,i.endInteraction()),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0}handleDownEvent(t){if(this.targetPointers.length>0&&this.condition_(t)){const e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.cancelAnimations(),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1}}const h=/^(217|331)$/.test(i.j)?l:null},4495:(t,e,i)=>{"use strict";var n=i(9519),r=i(9039),s=i(4576).String;t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol("symbol detection");return!s(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4498:(t,e,i)=>{"use strict";if(i.d(e,{a$:()=>o,b8:()=>r,cq:()=>a,dv:()=>s}),/^(217|331)$/.test(i.j))var n=i(1597);function r(t){if(void 0!==t)return 0}function s(t){if(void 0!==t)return t}function o(t){const e=2*Math.PI/t;return function(t,i){return i?t:void 0!==t?t=Math.floor(t/e+.5)*e:void 0}}function a(t){const e=void 0===t?(0,n.eh)(5):t;return function(t,i){return i||void 0===t?t:Math.abs(t)<=e?0:t}}},4525:(t,e,i)=>{"use strict";var n=i(2514);t.exports=n}
vendor: 3,009 bytes, line 2
2,4576:function(t,e,i){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof i.g&&i.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4598:(t,e,i)=>{"use strict";var n=i(9039);t.exports=function(t,e){var i=[][t];return!!i&&n((function(){i.call(null,e||function(){return 1},1)}))}},4692:function(t,e){var i;!function(e,i){"use strict";"object"==typeof t.exports?t.exports=e.document?i(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return i(t)}:i(e)}("undefined"!=typeof window?window:this,(function(n,r){"use strict";var s=[],o=Object.getPrototypeOf,a=s.slice,l=s.flat?function(t){return s.flat.call(t)}:function(t){return s.concat.apply([],t)},h=s.push,c=s.indexOf,u={},d=u.toString,f=u.hasOwnProperty,p=f.toString,g=p.call(Object),m={},v=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},_=function(t){return null!=t&&t===t.window},y=n.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(t,e,i){var n,r,s=(i=i||y).createElement("script");if(s.text=t,e)for(n in x)(r=e[n]||e.getAttribute&&e.getAttribute(n))&&s.setAttribute(n,r);i.head.appendChild(s).parentNode.removeChild(s)}function b(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?u[d.call(t)]||"object":typeof t}var E="3.7.1",C=/HTML$/i,A=function(t,e){return new A.fn.init(t,e)};function S(t){var e=!!t&&"length"in t&&t.length,i=b(t);return!v(t)&&!_(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}function T(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}A.fn=A.prototype={jquery:E,constructor:A,length:0,toArray:function(){return a.call(this)},get:function(t){return null==t?a.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=A.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return A.each(this,t)},map:function(t){return this.pushStack(A.map(this,(function(e,i){return t.call(e,i,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(A.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(A.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:h,sort:s.sort,splice:s.splice},A.extend=A.fn.extend=function(){var t,e,i,n,r,s,o=arguments[0]||{},a=1,l=arguments.length,h=!1;for("boolean"==typeof o&&(h=o,o=arguments[a]||{},a++),"object"==typeof o||v(o)||(o={}),a===l&&(o=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)n=t[e],"__proto__"!==e&&o!==n&&(h&&n&&(A.isPlainObject(n)||(r=Array.isArray(n)))?(i=o[e],s=r&&!Array.isArray(i)?[]:r||A.isPlainObject(i)?i:{}
vendor: 23,734 bytes, line 2
2,r=!1,o[e]=A.extend(h,s,n)):void 0!==n&&(o[e]=n));return o},A.extend({expando:"jQuery"+(E+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==d.call(t)||(e=o(t))&&("function"!=typeof(i=f.call(e,"constructor")&&e.constructor)||p.call(i)!==g))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t,e,i){w(t,{nonce:e&&e.nonce},i)},each:function(t,e){var i,n=0;if(S(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},text:function(t){var e,i="",n=0,r=t.nodeType;if(!r)for(;e=t[n++];)i+=A.text(e);return 1===r||11===r?t.textContent:9===r?t.documentElement.textContent:3===r||4===r?t.nodeValue:i},makeArray:function(t,e){var i=e||[];return null!=t&&(S(Object(t))?A.merge(i,"string"==typeof t?[t]:t):h.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:c.call(e,t,i)},isXMLDoc:function(t){var e=t&&t.namespaceURI,i=t&&(t.ownerDocument||t).documentElement;return!C.test(e||i&&i.nodeName||"HTML")},merge:function(t,e){for(var i=+e.length,n=0,r=t.length;n<i;n++)t[r++]=e[n];return t.length=r,t},grep:function(t,e,i){for(var n=[],r=0,s=t.length,o=!i;r<s;r++)!e(t[r],r)!==o&&n.push(t[r]);return n},map:function(t,e,i){var n,r,s=0,o=[];if(S(t))for(n=t.length;s<n;s++)null!=(r=e(t[s],s,i))&&o.push(r);else for(s in t)null!=(r=e(t[s],s,i))&&o.push(r);return l(o)},guid:1,support:m}),"function"==typeof Symbol&&(A.fn[Symbol.iterator]=s[Symbol.iterator]),A.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){u["[object "+e+"]"]=e.toLowerCase()}));var I=s.pop,R=s.sort,D=s.splice,M="[\\x20\\t\\r\\n\\f]",L=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g");A.contains=function(t,e){var i=e&&e.parentNode;return t===i||!(!i||1!==i.nodeType||!(t.contains?t.contains(i):t.compareDocumentPosition&&16&t.compareDocumentPosition(i)))};var O=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function k(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}A.escapeSelector=function(t){return(t+"").replace(O,k)};var P=y,F=h;!function(){var t,e,i,r,o,l,h,u,d,p,g=F,v=A.expando,_=0,y=0,x=tt(),w=tt(),b=tt(),E=tt(),C=function(t,e){return t===e&&(o=!0),0},S="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",O="(?:\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",k="\\["+M+"*("+O+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+M+"*\\]",N=":("+O+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+k+")*)|.*)\\)|)",j=new RegExp(M+"+","g"),$=new RegExp("^"+M+"*,"+M+"*"),G=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),z=new RegExp(M+"|>"),q=new RegExp(N),W=new RegExp("^"+O+"$"),Y={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+k),PSEUDO:new RegExp("^"+N),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+S+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},H=/^(?:input|select|textarea|button)$/i,B=/^h\d$/i,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,X=/[+~]/,V=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),K=function(t,e){var i="0x"+t.slice(1)-65536;return e||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},U=function(){lt()},J=dt((function(t){return!0===t.disabled&&T(t,"fieldset")}),{dir:"parentNode",next:"legend"});try{g.apply(s=a.call(P.childNodes),P.childNodes),s[P.childNodes.length].nodeType}catch(t){g={apply:function(t,e){F.apply(t,a.call(e))},call:function(t){F.apply(t,a.call(arguments,1))}}}function Q(t,e,i,n){var r,s,o,a,h,c,f,p=e&&e.ownerDocument,_=e?e.nodeType:9;if(i=i||[],"string"!=typeof t||!t||1!==_&&9!==_&&11!==_)return i;if(!n&&(lt(e),e=e||l,u)){if(11!==_&&(h=Z.exec(t)))if(r=h[1]){if(9===_){if(!(o=e.getElementById(r)))return i;if(o.id===r)return g.call(i,o),i}else if(p&&(o=p.getElementById(r))&&Q.contains(e,o)&&o.id===r)return g.call(i,o),i}else{if(h[2])return g.apply(i,e.getElementsByTagName(t)),i;if((r=h[3])&&e.getElementsByClassName)return g.apply(i,e.getElementsByClassName(r)),i}if(!(E[t+" "]||d&&d.test(t))){if(f=t,p=e,1===_&&(z.test(t)||G.test(t))){for((p=X.test(t)&&at(e.parentNode)||e)==e&&m.scope||((a=e.getAttribute("id"))?a=A.escapeSelector(a):e.setAttribute("id",a=v)),s=(c=ct(t)).length;s--;)c[s]=(a?"#"+a:":scope")+" "+ut(c[s]);f=c.join(",")}try{return g.apply(i,p.querySelectorAll(f)),i}catch(e){E(t,!0)}finally{a===v&&e.removeAttribute("id")}}}return _t(t.replace(L,"$1"),e,i,n)}function tt(){var t=[];return function i(n,r){return t.push(n+" ")>e.cacheLength&&delete i[t.shift()],i[n+" "]=r}}function et(t){return t[v]=!0,t}function it(t){var e=l.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function nt(t){return function(e){return T(e,"input")&&e.type===t}}function rt(t){return function(e){return(T(e,"input")||T(e,"button"))&&e.type===t}}function st(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&J(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ot(t){return et((function(e){return e=+e,et((function(i,n){for(var r,s=t([],i.length,e),o=s.length;o--;)i[r=s[o]]&&(i[r]=!(n[r]=i[r]))}))}))}function at(t){return t&&void 0!==t.getElementsByTagName&&t}function lt(t){var i,n=t?t.ownerDocument||t:P;return n!=l&&9===n.nodeType&&n.documentElement?(h=(l=n).documentElement,u=!A.isXMLDoc(l),p=h.matches||h.webkitMatchesSelector||h.msMatchesSelector,h.msMatchesSelector&&P!=l&&(i=l.defaultView)&&i.top!==i&&i.addEventListener("unload",U),m.getById=it((function(t){return h.appendChild(t).id=A.expando,!l.getElementsByName||!l.getElementsByName(A.expando).length})),m.disconnectedMatch=it((function(t){return p.call(t,"*")})),m.scope=it((function(){return l.querySelectorAll(":scope")})),m.cssHas=it((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(t){return!0}})),m.getById?(e.filter.ID=function(t){var e=t.replace(V,K);return function(t){return t.getAttribute("id")===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&u){var i=e.getElementById(t);return i?[i]:[]}}):(e.filter.ID=function(t){var e=t.replace(V,K);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},e.find.ID=function(t,e){if(void 0!==e.getElementById&&u){var i,n,r,s=e.getElementById(t);if(s){if((i=s.getAttributeNode("id"))&&i.value===t)return[s];for(r=e.getElementsByName(t),n=0;s=r[n++];)if((i=s.getAttributeNode("id"))&&i.value===t)return[s]}return[]}}),e.find.TAG=function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):e.querySelectorAll(t)},e.find.CLASS=function(t,e){if(void 0!==e.getElementsByClassName&&u)return e.getElementsByClassName(t)},d=[],it((function(t){var e;h.appendChild(t).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",t.querySelectorAll("[selected]").length||d.push("\\["+M+"*(?:value|"+S+")"),t.querySelectorAll("[id~="+v+"-]").length||d.push("~="),t.querySelectorAll("a#"+v+"+*").length||d.push(".#.+[+~]"),t.querySelectorAll(":checked").length||d.push(":checked"),(e=l.createElement("input")).setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),h.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(e=l.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||d.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")")})),m.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),C=function(t,e){if(t===e)return o=!0,0;var i=!t.compareDocumentPosition-!e.compareDocumentPosition;return i||(1&(i=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!m.sortDetached&&e.compareDocumentPosition(t)===i?t===l||t.ownerDocument==P&&Q.contains(P,t)?-1:e===l||e.ownerDocument==P&&Q.contains(P,e)?1:r?c.call(r,t)-c.call(r,e):0:4&i?-1:1)},l):l}for(t in Q.matches=function(t,e){return Q(t,null,null,e)},Q.matchesSelector=function(t,e){if(lt(t),u&&!E[e+" "]&&(!d||!d.test(e)))try{var i=p.call(t,e);if(i||m.disconnectedMatch||t.document&&11!==t.document.nodeType)return i}catch(t){E(e,!0)}return Q(e,l,null,[t]).length>0},Q.contains=function(t,e){return(t.ownerDocument||t)!=l&&lt(t),A.contains(t,e)},Q.attr=function(t,i){(t.ownerDocument||t)!=l&&lt(t);var n=e.attrHandle[i.toLowerCase()],r=n&&f.call(e.attrHandle,i.toLowerCase())?n(t,i,!u):void 0;return void 0!==r?r:t.getAttribute(i)},Q.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},A.uniqueSort=function(t){var e,i=[],n=0,s=0;if(o=!m.sortStable,r=!m.sortStable&&a.call(t,0),R.call(t,C),o){for(;e=t[s++];)e===t[s]&&(n=i.push(s));for(;n--;)D.call(t,i[n],1)}return r=null,t},A.fn.uniqueSort=function(){return this.pushStack(A.uniqueSort(a.apply(this)))},e=A.expr={cacheLength:50,createPseudo:et,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(V,K),t[3]=(t[3]||t[4]||t[5]||"").replace(V,K),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||Q.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&Q.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&q.test(i)&&(e=ct(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(V,K).toLowerCase();return"*"===t?function(){return!0}:function(t){return T(t,e)}},CLASS:function(t){var e=x[t+" "];return e||(e=new RegExp("(^|"+M+")"+t+"("+M+"|$)"))&&x(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,i){return function(n){var r=Q.attr(n,t);return null==r?"!="===e:!e||(r+="","="===e?r===i:"!="===e?r!==i:"^="===e?i&&0===r.indexOf(i):"*="===e?i&&r.indexOf(i)>-1:"$="===e?i&&r.slice(-i.length)===i:"~="===e?(" "+r.replace(j," ")+" ").indexOf(i)>-1:"|="===e&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,r){var s="nth"!==t.slice(0,3),o="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===r?function(t){return!!t.parentNode}:function(e,i,l){var h,c,u,d,f,p=s!==o?"nextSibling":"previousSibling",g=e.parentNode,m=a&&e.nodeName.toLowerCase(),y=!l&&!a,x=!1;if(g){if(s){for(;p;){for(u=e;u=u[p];)if(a?T(u,m):1===u.nodeType)return!1;f=p="only"===t&&!f&&"nextSibling"}return!0}if(f=[o?g.firstChild:g.lastChild],o&&y){for(x=(d=(h=(c=g[v]||(g[v]={}))[t]||[])[0]===_&&h[1])&&h[2],u=d&&g.childNodes[d];u=++d&&u&&u[p]||(x=d=0)||f.pop();)if(1===u.nodeType&&++x&&u===e){c[t]=[_,d,x];break}}else if(y&&(x=d=(h=(c=e[v]||(e[v]={}))[t]||[])[0]===_&&h[1]),!1===x)for(;(u=++d&&u&&u[p]||(x=d=0)||f.pop())&&(!(a?T(u,m):1===u.nodeType)||!++x||(y&&((c=u[v]||(u[v]={}))[t]=[_,x]),u!==e)););return(x-=r)===n||x%n==0&&x/n>=0}}},PSEUDO:function(t,i){var n,r=e.pseudos[t]||e.setFilters[t.toLowerCase()]||Q.error("unsupported pseudo: "+t);return r[v]?r(i):r.length>1?(n=[t,t,"",i],e.setFilters.hasOwnProperty(t.toLowerCase())?et((function(t,e){for(var n,s=r(t,i),o=s.length;o--;)t[n=c.call(t,s[o])]=!(e[n]=s[o])})):function(t){return r(t,0,n)}):r}},pseudos:{not:et((function(t){var e=[],i=[],n=vt(t.replace(L,"$1"));return n[v]?et((function(t,e,i,r){for(var s,o=n(t,null,r,[]),a=t.length;a--;)(s=o[a])&&(t[a]=!(e[a]=s))})):function(t,r,s){return e[0]=t,n(e,null,s,i),e[0]=null,!i.pop()}})),has:et((function(t){return function(e){return Q(t,e).length>0}})),contains:et((function(t){return t=t.replace(V,K),function(e){return(e.textContent||A.text(e)).indexOf(t)>-1}})),lang:et((function(t){return W.test(t||"")||Q.error("unsupported lang: "+t),t=t.replace(V,K).toLowerCase(),function(e){var i;do{if(i=u?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(t){var e=n.location&&n.location.hash;return e&&e.slice(1)===t.id},root:function(t){return t===h},focus:function(t){return t===function(){try{return l.activeElement}catch(t){}}()&&l.hasFocus()&&!!(t.type||t.href||~t.tabIndex)},enabled:st(!1),disabled:st(!0),checked:function(t){return T(t,"input")&&!!t.checked||T(t,"option")&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!e.pseudos.empty(t)},header:function(t){return B.test(t.nodeName)},input:function(t){return H.test(t.nodeName)},button:function(t){return T(t,"input")&&"button"===t.type||T(t,"button")},text:function(t){var e;return T(t,"input")&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ot((function(){return[0]})),last:ot((function(t,e){return[e-1]})),eq:ot((function(t,e,i){return[i<0?i+e:i]})),even:ot((function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t})),odd:ot((function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t})),lt:ot((function(t,e,i){var n;for(n=i<0?i+e:i>e?e:i;--n>=0;)t.push(n);return t})),gt:ot((function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t}))}},e.pseudos.nth=e.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})e.pseudos[t]=nt(t);for(t in{submit:!0,reset:!0})e.pseudos[t]=rt(t);function ht(){}function ct(t,i){var n,r,s,o,a,l,h,c=w[t+" "];if(c)return i?0:c.slice(0);for(a=t,l=[],h=e.preFilter;a;){for(o in n&&!(r=$.exec(a))||(r&&(a=a.slice(r[0].length)||a),l.push(s=[])),n=!1,(r=G.exec(a))&&(n=r.shift(),s.push({value:n,type:r[0].replace(L," ")}),a=a.slice(n.length)),e.filter)!(r=Y[o].exec(a))||h[o]&&!(r=h[o](r))||(n=r.shift(),s.push({value:n,type:o,matches:r}),a=a.slice(n.length));if(!n)break}return i?a.length:a?Q.error(t):w(t,l).slice(0)}function ut(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function dt(t,e,i){var n=e.dir,r=e.next,s=r||n,o=i&&"parentNode"===s,a=y++;return e.first?function(e,i,r){for(;e=e[n];)if(1===e.nodeType||o)return t(e,i,r);return!1}:function(e,i,l){var h,c,u=[_,a];if(l){for(;e=e[n];)if((1===e.nodeType||o)&&t(e,i,l))return!0}else for(;e=e[n];)if(1===e.nodeType||o)if(c=e[v]||(e[v]={}),r&&T(e,r))e=e[n]||e;else{if((h=c[s])&&h[0]===_&&h[1]===a)return u[2]=h[2];if(c[s]=u,u[2]=t(e,i,l))return!0}return!1}}function ft(t){return t.length>1?function(e,i,n){for(var r=t.length;r--;)if(!t[r](e,i,n))return!1;return!0}:t[0]}function pt(t,e,i,n,r){for(var s,o=[],a=0,l=t.length,h=null!=e;a<l;a++)(s=t[a])&&(i&&!i(s,n,r)||(o.push(s),h&&e.push(a)));return o}function gt(t,e,i,n,r,s){return n&&!n[v]&&(n=gt(n)),r&&!r[v]&&(r=gt(r,s)),et((function(s,o,a,l){var h,u,d,f,p=[],m=[],v=o.length,_=s||function(t,e,i){for(var n=0,r=e.length;n<r;n++)Q(t,e[n],i);return i}(e||"*",a.nodeType?[a]:a,[]),y=!t||!s&&e?_:pt(_,p,t,a,l);if(i?i(y,f=r||(s?t:v||n)?[]:o,a,l):f=y,n)for(h=pt(f,m),n(h,[],a,l),u=h.length;u--;)(d=h[u])&&(f[m[u]]=!(y[m[u]]=d));if(s){if(r||t){if(r){for(h=[],u=f.length;u--;)(d=f[u])&&h.push(y[u]=d);r(null,f=[],h,l)}for(u=f.length;u--;)(d=f[u])&&(h=r?c.call(s,d):p[u])>-1&&(s[h]=!(o[h]=d))}}else f=pt(f===o?f.splice(v,f.length):f),r?r(null,o,f,l):g.apply(o,f)}))}function mt(t){for(var n,r,s,o=t.length,a=e.relative[t[0].type],l=a||e.relative[" "],h=a?1:0,u=dt((function(t){return t===n}),l,!0),d=dt((function(t){return c.call(n,t)>-1}),l,!0),f=[function(t,e,r){var s=!a&&(r||e!=i)||((n=e).nodeType?u(t,e,r):d(t,e,r));return n=null,s}];h<o;h++)if(r=e.relative[t[h].type])f=[dt(ft(f),r)];else{if((r=e.filter[t[h].type].apply(null,t[h].matches))[v]){for(s=++h;s<o&&!e.relative[t[s].type];s++);return gt(h>1&&ft(f),h>1&&ut(t.slice(0,h-1).concat({value:" "===t[h-2].type?"*":""})).replace(L,"$1"),r,h<s&&mt(t.slice(h,s)),s<o&&mt(t=t.slice(s)),s<o&&ut(t))}f.push(r)}return ft(f)}function vt(t,n){var r,s=[],o=[],a=b[t+" "];if(!a){for(n||(n=ct(t)),r=n.length;r--;)(a=mt(n[r]))[v]?s.push(a):o.push(a);a=b(t,function(t,n){var r=n.length>0,s=t.length>0,o=function(o,a,h,c,d){var f,p,m,v=0,y="0",x=o&&[],w=[],b=i,E=o||s&&e.find.TAG("*",d),C=_+=null==b?1:Math.random()||.1,S=E.length;for(d&&(i=a==l||a||d);y!==S&&null!=(f=E[y]);y++){if(s&&f){for(p=0,a||f.ownerDocument==l||(lt(f),h=!u);m=t[p++];)if(m(f,a||l,h)){g.call(c,f);break}d&&(_=C)}r&&((f=!m&&f)&&v--,o&&x.push(f))}if(v+=y,r&&y!==v){for(p=0;m=n[p++];)m(x,w,a,h);if(o){if(v>0)for(;y--;)x[y]||w[y]||(w[y]=I.call(c));w=pt(w)}g.apply(c,w),d&&!o&&w.length>0&&v+n.length>1&&A.uniqueSort(c)}return d&&(_=C,i=b),x};return r?et(o):o}(o,s)),a.selector=t}return a}function _t(t,i,n,r){var s,o,a,l,h,c="function"==typeof t&&t,d=!r&&ct(t=c.selector||t);if(n=n||[],1===d.length){if((o=d[0]=d[0].slice(0)).length>2&&"ID"===(a=o[0]).type&&9===i.nodeType&&u&&e.relative[o[1].type]){if(!(i=(e.find.ID(a.matches[0].replace(V,K),i)||[])[0]))return n;c&&(i=i.parentNode),t=t.slice(o.shift().value.length)}for(s=Y.needsContext.test(t)?0:o.length;s--&&(a=o[s],!e.relative[l=a.type]);)if((h=e.find[l])&&(r=h(a.matches[0].replace(V,K),X.test(o[0].type)&&at(i.parentNode)||i))){if(o.splice(s,1),!(t=r.length&&ut(o)))return g.apply(n,r),n;break}}return(c||vt(t,d))(r,i,!u,n,!i||X.test(t)&&at(i.parentNode)||i),n}ht.prototype=e.filters=e.pseudos,e.setFilters=new ht,m.sortStable=v.split("").sort(C).join("")===v,lt(),m.sortDetached=it((function(t){return 1&t.compareDocumentPosition(l.createElement("fieldset"))})),A.find=Q,A.expr[":"]=A.expr.pseudos,A.unique=A.uniqueSort,Q.compile=vt,Q.select=_t,Q.setDocument=lt,Q.tokenize=ct,Q.escape=A.escapeSelector,Q.getText=A.text,Q.isXML=A.isXMLDoc,Q.selectors=A.expr,Q.support=A.support,Q.uniqueSort=A.uniqueSort}();var N=function(t,e,i){for(var n=[],r=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&A(t).is(i))break;n.push(t)}return n},j=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},$=A.expr.match.needsContext,G=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function z(t,e,i){return v(e)?A.grep(t,(function(t,n){return!!e.call(t,n,t)!==i})):e.nodeType?A.grep(t,(function(t){return t===e!==i})):"string"!=typeof e?A.grep(t,(function(t){return c.call(e,t)>-1!==i})):A.filter(e,t,i)}A.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?A.find.matchesSelector(n,t)?[n]:[]:A.find.matches(t,A.grep(e,(function(t){return 1===t.nodeType})))},A.fn.extend({find:function(t){var e,i,n=this.length,r=this;if("string"!=typeof t)return this.pushStack(A(t).filter((function(){for(e=0;e<n;e++)if(A.contains(r[e],this))return!0})));for(i=this.pushStack([]),e=0;e<n;e++)A.find(t,r[e],i);return n>1?A.uniqueSort(i):i},filter:function(t){return this.pushStack(z(this,t||[],!1))},not:function(t){return this.pushStack(z(this,t||[],!0))},is:function(t){return!!z(this,"string"==typeof t&&$.test(t)?A(t):t||[],!1).length}});var q,W=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(A.fn.init=function(t,e,i){var n,r;if(!t)return this;if(i=i||q,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:W.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(e=e instanceof A?e[0]:e,A.merge(this,A.parseHTML(n[1],e&&e.nodeType?e.ownerDocument||e:y,!0)),G.test(n[1])&&A.isPlainObject(e))for(n in e)v(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(r=y.getElementById(n[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):v(t)?void 0!==i.ready?i.ready(t):t(A):A.makeArray(t,this)}).prototype=A.fn,q=A(y);var Y=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function B(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}A.fn.extend({has:function(t){var e=A(t,this),i=e.length;return this.filter((function(){for(var t=0;t<i;t++)if(A.contains(this,e[t]))return!0}))},closest:function(t,e){var i,n=0,r=this.length,s=[],o="string"!=typeof t&&A(t);if(!$.test(t))for(;n<r;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(o?o.index(i)>-1:1===i.nodeType&&A.find.matchesSelector(i,t))){s.push(i);break}return this.pushStack(s.length>1?A.uniqueSort(s):s)},index:function(t){return t?"string"==typeof t?c.call(A(t),this[0]):c.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(A.uniqueSort(A.merge(this.get(),A(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),A.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return N(t,"parentNode")},parentsUntil:function(t,e,i){return N(t,"parentNode",i)},next:function(t){return B(t,"nextSibling")},prev:function(t){return B(t,"previousSibling")},nextAll:function(t){return N(t,"nextSibling")},prevAll:function(t){return N(t,"previousSibling")},nextUntil:function(t,e,i){return N(t,"nextSibling",i)},prevUntil:function(t,e,i){return N(t,"previousSibling",i)},siblings:function(t){return j((t.parentNode||{}).firstChild,t)},children:function(t){return j(t.firstChild)},contents:function(t){return null!=t.contentDocument&&o(t.contentDocument)?t.contentDocument:(T(t,"template")&&(t=t.content||t),A.merge([],t.childNodes))}},(function(t,e){A.fn[t]=function(i,n){var r=A.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=A.filter(n,r)),this.length>1&&(H[t]||A.uniqueSort(r),Y.test(t)&&r.reverse()),this.pushStack(r)}}));var Z=/[^\x20\t\r\n\f]+/g;function X(t){return t}function V(t){throw t}function K(t,e,i,n){var r;try{t&&v(r=t.promise)?r.call(t).done(e).fail(i):t&&v(r=t.then)?r.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}A.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return A.each(t.match(Z)||[],(function(t,i){e[i]=!0})),e}(t):A.extend({},t);var e,i,n,r,s=[],o=[],a=-1,l=function(){for(r=r||t.once,n=e=!0;o.length;a=-1)for(i=o.shift();++a<s.length;)!1===s[a].apply(i[0],i[1])&&t.stopOnFalse&&(a=s.length,i=!1);t.memory||(i=!1),e=!1,r&&(s=i?[]:"")},h={add:function(){return s&&(i&&!e&&(a=s.length-1,o.push(i)),function e(i){A.each(i,(function(i,n){v(n)?t.unique&&h.has(n)||s.push(n):n&&n.length&&"string"!==b(n)&&e(n)}))}(arguments),i&&!e&&l()),this},remove:function(){return A.each(arguments,(function(t,e){for(var i;(i=A.inArray(e,s,i))>-1;)s.splice(i,1),i<=a&&a--})),this},has:function(t){return t?A.inArray(t,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return r=o=[],s=i="",this},disabled:function(){return!s},lock:function(){return r=o=[],i||e||(s=i=""),this},locked:function(){return!!r},fireWith:function(t,i){return r||(i=[t,(i=i||[]).slice?i.slice():i],o.push(i),e||l()),this},fire:function(){return h.fireWith(this,arguments),this},fired:function(){return!!n}};return h},A.extend({Deferred:function(t){var e=[["notify","progress",A.Callbacks("memory"),A.Callbacks("memory"),2],["resolve","done",A.Callbacks("once memory"),A.Callbacks("once memory"),0,"resolved"],["reject","fail",A.Callbacks("once memory"),A.Callbacks("once memory"),1,"rejected"]],i="pe
2nding",r={state:function(){return i},always:function(){return s.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return A.Deferred((function(i){A.each(e,(function(e,n){var r=v(t[n[4]])&&t[n[4]];s[n[1]]((function(){var t=r&&r.apply(this,arguments);t&&v(t.promise)?t.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(t,i,r){var s=0;function o(t,e,i,r){return function(){var a=this,l=arguments,h=function(){var n,h;if(!(t<s)){if((n=i.apply(a,l))===e.promise())throw new TypeError("Thenable self-resolution");h=n&&("object"==typeof n||"function"==typeof n)&&n.then,v(h)?r?h.call(n,o(s,e,X,r),o(s,e,V,r)):(s++,h.call(n,o(s,e,X,r),o(s,e,V,r),o(s,e,X,e.notifyWith))):(i!==X&&(a=void 0,l=[n]),(r||e.resolveWith)(a,l))}},c=r?h:function(){try{h()}catch(n){A.Deferred.exceptionHook&&A.Deferred.exceptionHook(n,c.error),t+1>=s&&(i!==V&&(a=void 0,l=[n]),e.rejectWith(a,l))}};t?c():(A.Deferred.getErrorHook?c.error=A.Deferred.getErrorHook():A.Deferred.getStackHook&&(c.error=A.Deferred.getStackHook()),n.setTimeout(c))}}return A.Deferred((function(n){e[0][3].add(o(0,n,v(r)?r:X,n.notifyWith)),e[1][3].add(o(0,n,v(t)?t:X)),e[2][3].add(o(0,n,v(i)?i:V))})).promise()},promise:function(t){return null!=t?A.extend(t,r):r}},s={};return A.each(e,(function(t,n){var o=n[2],a=n[5];r[n[1]]=o.add,a&&o.add((function(){i=a}),e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),o.add(n[3].fire),s[n[0]]=function(){return s[n[0]+"With"](this===s?void 0:this,arguments),this},s[n[0]+"With"]=o.fireWith})),r.promise(s),t&&t.call(s,s),s},when:function(t){var e=arguments.length,i=e,n=Array(i),r=a.call(arguments),s=A.Deferred(),o=function(t){return function(i){n[t]=this,r[t]=arguments.length>1?a.call(arguments):i,--e||s.resolveWith(n,r)}};if(e<=1&&(K(t,s.done(o(i)).resolve,s.reject,!e),"pending"===s.state()||v(r[i]&&r[i].then)))return s.then();for(;i--;)K(r[i],o(i),s.reject);return s.promise()}});var U=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;A.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&U.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},A.readyException=function(t){n.setTimeout((function(){throw t}))};var J=A.Deferred();function Q(){y.removeEventListener("DOMContentLoaded",Q),n.removeEventListener("load",Q),A.ready()}A.fn.ready=function(t){return J.then(t).catch((function(t){A.readyException(t)})),this},A.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--A.readyWait:A.isReady)||(A.isReady=!0,!0!==t&&--A.readyWait>0||J.resolveWith(y,[A]))}}),A.ready.then=J.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?n.setTimeout(A.ready):(y.addEventListener("DOMContentLoaded",Q),n.addEventListener("load",Q));var tt=function(t,e,i,n,r,s,o){var a=0,l=t.length,h=null==i;if("object"===b(i))for(a in r=!0,i)tt(t,e,a,i[a],!0,s,o);else if(void 0!==n&&(r=!0,v(n)||(o=!0),h&&(o?(e.call(t,n),e=null):(h=e,e=function(t,e,i){return h.call(A(t),i)})),e))for(;a<l;a++)e(t[a],i,o?n:n.call(t[a],a,e(t[a],i)));return r?t:h?e.call(t):l?e(t[0],i):s},et=/^-ms-/,it=/-([a-z])/g;function nt(t,e){return e.toUpperCase()}function rt(t){return t.replace(et,"ms-").replace(it,nt)}var st=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function ot(){this.expando=A.expando+ot.uid++}ot.uid=1,ot.prototype={cache:function(t){var e=t[this.expando];return e||(e={},st(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,r=this.cache(t);if("string"==typeof e)r[rt(e)]=i;else for(n in e)r[rt(n)]=e[n];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][rt(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(rt):(e=rt(e))in n?[e]:e.match(Z)||[]).length;for(;i--;)delete n[e[i]]}
vendor: 20,645 bytes, line 2
2(void 0===e||A.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!A.isEmptyObject(e)}};var at=new ot,lt=new ot,ht=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ct=/[A-Z]/g;function ut(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(ct,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:ht.test(t)?JSON.parse(t):t)}(i)}catch(t){}lt.set(t,e,i)}else i=void 0;return i}A.extend({hasData:function(t){return lt.hasData(t)||at.hasData(t)},data:function(t,e,i){return lt.access(t,e,i)},removeData:function(t,e){lt.remove(t,e)},_data:function(t,e,i){return at.access(t,e,i)},_removeData:function(t,e){at.remove(t,e)}}),A.fn.extend({data:function(t,e){var i,n,r,s=this[0],o=s&&s.attributes;if(void 0===t){if(this.length&&(r=lt.get(s),1===s.nodeType&&!at.get(s,"hasDataAttrs"))){for(i=o.length;i--;)o[i]&&0===(n=o[i].name).indexOf("data-")&&(n=rt(n.slice(5)),ut(s,n,r[n]));at.set(s,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){lt.set(this,t)})):tt(this,(function(e){var i;if(s&&void 0===e)return void 0!==(i=lt.get(s,t))||void 0!==(i=ut(s,t))?i:void 0;this.each((function(){lt.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){lt.remove(this,t)}))}}),A.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=at.get(t,e),i&&(!n||Array.isArray(i)?n=at.access(t,e,A.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=A.queue(t,e),n=i.length,r=i.shift(),s=A._queueHooks(t,e);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===e&&i.unshift("inprogress"),delete s.stop,r.call(t,(function(){A.dequeue(t,e)}),s)),!n&&s&&s.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return at.get(t,i)||at.access(t,i,{empty:A.Callbacks("once memory").add((function(){at.remove(t,[e+"queue",i])}))})}}),A.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?A.queue(this[0],t):void 0===e?this:this.each((function(){var i=A.queue(this,t,e);A._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&A.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){A.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,r=A.Deferred(),s=this,o=this.length,a=function(){--n||r.resolveWith(s,[s])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";o--;)(i=at.get(s[o],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),r.promise(e)}});var dt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ft=new RegExp("^(?:([+-])=|)("+dt+")([a-z%]*)$","i"),pt=["Top","Right","Bottom","Left"],gt=y.documentElement,mt=function(t){return A.contains(t.ownerDocument,t)},vt={composed:!0};gt.getRootNode&&(mt=function(t){return A.contains(t.ownerDocument,t)||t.getRootNode(vt)===t.ownerDocument});var _t=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&mt(t)&&"none"===A.css(t,"display")};function yt(t,e,i,n){var r,s,o=20,a=n?function(){return n.cur()}:function(){return A.css(t,e,"")},l=a(),h=i&&i[3]||(A.cssNumber[e]?"":"px"),c=t.nodeType&&(A.cssNumber[e]||"px"!==h&&+l)&&ft.exec(A.css(t,e));if(c&&c[3]!==h){for(l/=2,h=h||c[3],c=+l||1;o--;)A.style(t,e,c+h),(1-s)*(1-(s=a()/l||.5))<=0&&(o=0),c/=s;c*=2,A.style(t,e,c+h),i=i||[]}return i&&(c=+c||+l||0,r=i[1]?c+(i[1]+1)*i[2]:+i[2],n&&(n.unit=h,n.start=c,n.end=r)),r}var xt={};function wt(t){var e,i=t.ownerDocument,n=t.nodeName,r=xt[n];return r||(e=i.body.appendChild(i.createElement(n)),r=A.css(e,"display"),e.parentNode.removeChild(e),"none"===r&&(r="block"),xt[n]=r,r)}function bt(t,e){for(var i,n,r=[],s=0,o=t.length;s<o;s++)(n=t[s]).style&&(i=n.style.display,e?("none"===i&&(r[s]=at.get(n,"display")||null,r[s]||(n.style.display="")),""===n.style.display&&_t(n)&&(r[s]=wt(n))):"none"!==i&&(r[s]="none",at.set(n,"display",i)));for(s=0;s<o;s++)null!=r[s]&&(t[s].style.display=r[s]);return t}A.fn.extend({show:function(){return bt(this,!0)},hide:function(){return bt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){_t(this)?A(this).show():A(this).hide()}))}});var Et,Ct,At=/^(?:checkbox|radio)$/i,St=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Tt=/^$|^module$|\/(?:java|ecma)script/i;Et=y.createDocumentFragment().appendChild(y.createElement("div")),(Ct=y.createElement("input")).setAttribute("type","radio"),Ct.setAttribute("checked","checked"),Ct.setAttribute("name","t"),Et.appendChild(Ct),m.checkClone=Et.cloneNode(!0).cloneNode(!0).lastChild.checked,Et.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!Et.cloneNode(!0).lastChild.defaultValue,Et.innerHTML="<option></option>",m.option=!!Et.lastChild;var It={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Rt(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&T(t,e)?A.merge([t],i):i}function Dt(t,e){for(var i=0,n=t.length;i<n;i++)at.set(t[i],"globalEval",!e||at.get(e[i],"globalEval"))}It.tbody=It.tfoot=It.colgroup=It.caption=It.thead,It.th=It.td,m.option||(It.optgroup=It.option=[1,"<select multiple='multiple'>","</select>"]);var Mt=/<|&#?\w+;/;function Lt(t,e,i,n,r){for(var s,o,a,l,h,c,u=e.createDocumentFragment(),d=[],f=0,p=t.length;f<p;f++)if((s=t[f])||0===s)if("object"===b(s))A.merge(d,s.nodeType?[s]:s);else if(Mt.test(s)){for(o=o||u.appendChild(e.createElement("div")),a=(St.exec(s)||["",""])[1].toLowerCase(),l=It[a]||It._default,o.innerHTML=l[1]+A.htmlPrefilter(s)+l[2],c=l[0];c--;)o=o.lastChild;A.merge(d,o.childNodes),(o=u.firstChild).textContent=""}else d.push(e.createTextNode(s));for(u.textContent="",f=0;s=d[f++];)if(n&&A.inArray(s,n)>-1)r&&r.push(s);else if(h=mt(s),o=Rt(u.appendChild(s),"script"),h&&Dt(o),i)for(c=0;s=o[c++];)Tt.test(s.type||"")&&i.push(s);return u}var Ot=/^([^.]*)(?:\.(.+)|)/;function kt(){return!0}function Pt(){return!1}function Ft(t,e,i,n,r,s){var o,a;if("object"==typeof e){for(a in"string"!=typeof i&&(n=n||i,i=void 0),e)Ft(t,a,i,n,e[a],s);return t}if(null==n&&null==r?(r=i,n=i=void 0):null==r&&("string"==typeof i?(r=n,n=void 0):(r=n,n=i,i=void 0)),!1===r)r=Pt;else if(!r)return t;return 1===s&&(o=r,r=function(t){return A().off(t),o.apply(this,arguments)},r.guid=o.guid||(o.guid=A.guid++)),t.each((function(){A.event.add(this,e,r,n,i)}))}function Nt(t,e,i){i?(at.set(t,e,!1),A.event.add(t,e,{namespace:!1,handler:function(t){var i,n=at.get(this,e);if(1&t.isTrigger&&this[e]){if(n)(A.event.special[e]||{}).delegateType&&t.stopPropagation();else if(n=a.call(arguments),at.set(this,e,n),this[e](),i=at.get(this,e),at.set(this,e,!1),n!==i)return t.stopImmediatePropagation(),t.preventDefault(),i}else n&&(at.set(this,e,A.event.trigger(n[0],n.slice(1),this)),t.stopPropagation(),t.isImmediatePropagationStopped=kt)}})):void 0===at.get(t,e)&&A.event.add(t,e,kt)}A.event={global:{},add:function(t,e,i,n,r){var s,o,a,l,h,c,u,d,f,p,g,m=at.get(t);if(st(t))for(i.handler&&(i=(s=i).handler,r=s.selector),r&&A.find.matchesSelector(gt,r),i.guid||(i.guid=A.guid++),(l=m.events)||(l=m.events=Object.create(null)),(o=m.handle)||(o=m.handle=function(e){return void 0!==A&&A.event.triggered!==e.type?A.event.dispatch.apply(t,arguments):void 0}),h=(e=(e||"").match(Z)||[""]).length;h--;)f=g=(a=Ot.exec(e[h])||[])[1],p=(a[2]||"").split(".").sort(),f&&(u=A.event.special[f]||{},f=(r?u.delegateType:u.bindType)||f,u=A.event.special[f]||{},c=A.extend({type:f,origType:g,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&A.expr.match.needsContext.test(r),namespace:p.join(".")},s),(d=l[f])||((d=l[f]=[]).delegateCount=0,u.setup&&!1!==u.setup.call(t,n,p,o)||t.addEventListener&&t.addEventListener(f,o)),u.add&&(u.add.call(t,c),c.handler.guid||(c.handler.guid=i.guid)),r?d.splice(d.delegateCount++,0,c):d.push(c),A.event.global[f]=!0)},remove:function(t,e,i,n,r){var s,o,a,l,h,c,u,d,f,p,g,m=at.hasData(t)&&at.get(t);if(m&&(l=m.events)){for(h=(e=(e||"").match(Z)||[""]).length;h--;)if(f=g=(a=Ot.exec(e[h])||[])[1],p=(a[2]||"").split(".").sort(),f){for(u=A.event.special[f]||{},d=l[f=(n?u.delegateType:u.bindType)||f]||[],a=a[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),o=s=d.length;s--;)c=d[s],!r&&g!==c.origType||i&&i.guid!==c.guid||a&&!a.test(c.namespace)||n&&n!==c.selector&&("**"!==n||!c.selector)||(d.splice(s,1),c.selector&&d.delegateCount--,u.remove&&u.remove.call(t,c));o&&!d.length&&(u.teardown&&!1!==u.teardown.call(t,p,m.handle)||A.removeEvent(t,f,m.handle),delete l[f])}else for(f in l)A.event.remove(t,f+e[h],i,n,!0);A.isEmptyObject(l)&&at.remove(t,"handle events")}},dispatch:function(t){var e,i,n,r,s,o,a=new Array(arguments.length),l=A.event.fix(t),h=(at.get(this,"events")||Object.create(null))[l.type]||[],c=A.event.special[l.type]||{};for(a[0]=l,e=1;e<arguments.length;e++)a[e]=arguments[e];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(o=A.event.handlers.call(this,l,h),e=0;(r=o[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,i=0;(s=r.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==s.namespace&&!l.rnamespace.test(s.namespace)||(l.handleObj=s,l.data=s.data,void 0!==(n=((A.event.special[s.origType]||{}).handle||s.handler).apply(r.elem,a))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(t,e){var i,n,r,s,o,a=[],l=e.delegateCount,h=t.target;if(l&&h.nodeType&&!("click"===t.type&&t.button>=1))for(;h!==this;h=h.parentNode||this)if(1===h.nodeType&&("click"!==t.type||!0!==h.disabled)){for(s=[],o={},i=0;i<l;i++)void 0===o[r=(n=e[i]).selector+" "]&&(o[r]=n.needsContext?A(r,this).index(h)>-1:A.find(r,this,null,[h]).length),o[r]&&s.push(n);s.length&&a.push({elem:h,handlers:s})}return h=this,l<e.length&&a.push({elem:h,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(A.Event.prototype,t,{enumerable:!0,configurable:!0,get:v(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[A.expando]?t:new A.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return At.test(e.type)&&e.click&&T(e,"input")&&Nt(e,"click",!0),!1},trigger:function(t){var e=this||t;return At.test(e.type)&&e.click&&T(e,"input")&&Nt(e,"click"),!0},_default:function(t){var e=t.target;return At.test(e.type)&&e.click&&T(e,"input")&&at.get(e,"click")||T(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},A.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},A.Event=function(t,e){if(!(this instanceof A.Event))return new A.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?kt:Pt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&A.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[A.expando]=!0},A.Event.prototype={constructor:A.Event,isDefaultPrevented:Pt,isPropagationStopped:Pt,isImmediatePropagationStopped:Pt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=kt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=kt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=kt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},A.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},A.event.addProp),A.each({focus:"focusin",blur:"focusout"},(function(t,e){function i(t){if(y.documentMode){var i=at.get(this,"handle"),n=A.event.fix(t);n.type="focusin"===t.type?"focus":"blur",n.isSimulated=!0,i(t),n.target===n.currentTarget&&i(n)}else A.event.simulate(e,t.target,A.event.fix(t))}A.event.special[t]={setup:function(){var n;if(Nt(this,t,!0),!y.documentMode)return!1;(n=at.get(this,e))||this.addEventListener(e,i),at.set(this,e,(n||0)+1)},trigger:function(){return Nt(this,t),!0},teardown:function(){var t;if(!y.documentMode)return!1;(t=at.get(this,e)-1)?at.set(this,e,t):(this.removeEventListener(e,i),at.remove(this,e))},_default:function(e){return at.get(e.target,t)},delegateType:e},A.event.special[e]={setup:function(){var n=this.ownerDocument||this.document||this,r=y.documentMode?this:n,s=at.get(r,e);s||(y.documentMode?this.addEventListener(e,i):n.addEventListener(t,i,!0)),at.set(r,e,(s||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,r=y.documentMode?this:n,s=at.get(r,e)-1;s?at.set(r,e,s):(y.documentMode?this.removeEventListener(e,i):n.removeEventListener(t,i,!0),at.remove(r,e))}}})),A.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){A.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=t.relatedTarget,r=t.handleObj;return n&&(n===this||A.contains(this,n))||(t.type=r.origType,i=r.handler.apply(this,arguments),t.type=e),i}}})),A.fn.extend({on:function(t,e,i,n){return Ft(this,t,e,i,n)},one:function(t,e,i,n){return Ft(this,t,e,i,n,1)},off:function(t,e,i){var n,r;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,A(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=Pt),this.each((function(){A.event.remove(this,t,i,e)}))}});var jt=/<script|<style|<link/i,$t=/checked\s*(?:[^=]|=\s*.checked.)/i,Gt=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function zt(t,e){return T(t,"table")&&T(11!==e.nodeType?e:e.firstChild,"tr")&&A(t).children("tbody")[0]||t}function qt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Wt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Yt(t,e){var i,n,r,s,o,a;if(1===e.nodeType){if(at.hasData(t)&&(a=at.get(t).events))for(r in at.remove(e,"handle events"),a)for(i=0,n=a[r].length;i<n;i++)A.event.add(e,r,a[r][i]);lt.hasData(t)&&(s=lt.access(t),o=A.extend({},s),lt.set(e,o))}}function Ht(t,e){var i=e.nodeName.toLowerCase();"input"===i&&At.test(t.type)?e.checked=t.checked:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}function Bt(t,e,i,n){e=l(e);var r,s,o,a,h,c,u=0,d=t.length,f=d-1,p=e[0],g=v(p);if(g||d>1&&"string"==typeof p&&!m.checkClone&&$t.test(p))return t.each((function(r){var s=t.eq(r);g&&(e[0]=p.call(this,r,s.html())),Bt(s,e,i,n)}));if(d&&(s=(r=Lt(e,t[0].ownerDocument,!1,t,n)).firstChild,1===r.childNodes.length&&(r=s),s||n)){for(a=(o=A.map(Rt(r,"script"),qt)).length;u<d;u++)h=r,u!==f&&(h=A.clone(h,!0,!0),a&&A.merge(o,Rt(h,"script"))),i.call(t[u],h,u);if(a)for(c=o[o.length-1].ownerDocument,A.map(o,Wt),u=0;u<a;u++)h=o[u],Tt.test(h.type||"")&&!at.access(h,"globalEval")&&A.contains(c,h)&&(h.src&&"module"!==(h.type||"").toLowerCase()?A._evalUrl&&!h.noModule&&A._evalUrl(h.src,{nonce:h.nonce||h.getAttribute("nonce")},c):w(h.textContent.replace(Gt,""),h,c))}return t}function Zt(t,e,i){for(var n,r=e?A.filter(e,t):t,s=0;null!=(n=r[s]);s++)i||1!==n.nodeType||A.cleanData(Rt(n)),n.parentNode&&(i&&mt(n)&&Dt(Rt(n,"script")),n.parentNode.removeChild(n));return t}A.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var n,r,s,o,a=t.cloneNode(!0),l=mt(t);if(!(m.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||A.isXMLDoc(t)))for(o=Rt(a),n=0,r=(s=Rt(t)).length;n<r;n++)Ht(s[n],o[n]);if(e)if(i)for(s=s||Rt(t),o=o||Rt(a),n=0,r=s.length;n<r;n++)Yt(s[n],o[n]);else Yt(t,a);return(o=Rt(a,"script")).length>0&&Dt(o,!l&&Rt(t,"script")),a},cleanData:function(t){for(var e,i,n,r=A.event.special,s=0;void 0!==(i=t[s]);s++)if(st(i)){if(e=i[at.expando]){if(e.events)for(n in e.events)r[n]?A.event.remove(i,n):A.removeEvent(i,n,e.handle);i[at.expando]=void 0}i[lt.expando]&&(i[lt.expando]=void 0)}}}),A.fn.extend({detach:function(t){return Zt(this,t,!0)},remove:function(t){return Zt(this,t)},text:function(t){return tt(this,(function(t){return void 0===t?A.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Bt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||zt(this,t).appendChild(t)}))},prepend:function(){return Bt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=zt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Bt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Bt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(A.cleanData(Rt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return A.clone(this,t,e)}))},html:function(t){return tt(this,(function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!jt.test(t)&&!It[(St.exec(t)||["",""])[1].toLowerCase()]){t=A.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(A.cleanData(Rt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Bt(this,arguments,(function(e){var i=this.parentNode;A.inArray(this,t)<0&&(A.cleanData(Rt(this)),i&&i.replaceChild(e,this))}),t)}}),A.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){A.fn[t]=function(t){for(var i,n=[],r=A(t),s=r.length-1,o=0;o<=s;o++)i=o===s?this:this.clone(!0),A(r[o])[e](i),h.apply(n,i.get());return this.pushStack(n)}}));var Xt=new RegExp("^("+dt+")(?!px)[a-z%]+$","i"),Vt=/^--/,Kt=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=n),e.getComputedStyle(t)},Ut=function(t,e,i){var n,r,s={};for(r in e)s[r]=t.style[r],t.style[r]=e[r];for(r in n=i.call(t),e)t.style[r]=s[r];return n},Jt=new RegExp(pt.join("|"),"i");function Qt(t,e,i){var n,r,s,o,a=Vt.test(e),l=t.style;return(i=i||Kt(t))&&(o=i.getPropertyValue(e)||i[e],a&&o&&(o=o.replace(L,"$1")||void 0),""!==o||mt(t)||(o=A.style(t,e)),!m.pixelBoxStyles()&&Xt.test(o)&&Jt.test(e)&&(n=l.width,r=l.minWidth,s=l.maxWidth,l.minWidth=l.maxWidth=l.width=o,o=i.width,l.width=n,l.minWidth=r,l.maxWidth=s)),void 0!==o?o+"":o}function te(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function t(){if(c){h.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",gt.appendChild(h).appendChild(c);var t=n.getComputedStyle(c);i="1%"!==t.top,l=12===e(t.marginLeft),c.style.right="60%",o=36===e(t.right),r=36===e(t.width),c.style.position="absolute",s=12===e(c.offsetWidth/3),gt.removeChild(h),c=null}}function e(t){return Math.round(parseFloat(t))}var i,r,s,o,a,l,h=y.createElement("div"),c=y.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===c.style.backgroundClip,A.extend(m,{boxSizingReliable:function(){return t(),r},pixelBoxStyles:function(){return t(),o},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),s},reliableTrDimensions:function(){var t,e,i,r;return null==a&&(t=y.createElement("table"),e=y.createElement("tr"),i=y.createElement("div"),t.style.cssText="position:absolute;left:-11111px;border-collapse:separate",e.style.cssText="box-sizing:content-box;
2border:1px solid",e.style.height="1px",i.style.height="9px",i.style.display="block",gt.appendChild(t).appendChild(e).appendChild(i),r=n.getComputedStyle(e),a=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===e.offsetHeight,gt.removeChild(t)),a}}))}();var ee=["Webkit","Moz","ms"],ie=y.createElement("div").style,ne={};function re(t){return A.cssProps[t]||ne[t]||(t in ie?t:ne[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=ee.length;i--;)if((t=ee[i]+e)in ie)return t}(t)||t)}var se=/^(none|table(?!-c[ea]).+)/,oe={position:"absolute",visibility:"hidden",display:"block"},ae={letterSpacing:"0",fontWeight:"400"};function le(t,e,i){var n=ft.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function he(t,e,i,n,r,s){var o="width"===e?1:0,a=0,l=0,h=0;if(i===(n?"border":"content"))return 0;for(;o<4;o+=2)"margin"===i&&(h+=A.css(t,i+pt[o],!0,r)),n?("content"===i&&(l-=A.css(t,"padding"+pt[o],!0,r)),"margin"!==i&&(l-=A.css(t,"border"+pt[o]+"Width",!0,r))):(l+=A.css(t,"padding"+pt[o],!0,r),"padding"!==i?l+=A.css(t,"border"+pt[o]+"Width",!0,r):a+=A.css(t,"border"+pt[o]+"Width",!0,r));return!n&&s>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-s-l-a-.5))||0),l+h}function ce(t,e,i){var n=Kt(t),r=(!m.boxSizingReliable()||i)&&"border-box"===A.css(t,"boxSizing",!1,n),s=r,o=Qt(t,e,n),a="offset"+e[0].toUpperCase()+e.slice(1);if(Xt.test(o)){if(!i)return o;o="auto"}return(!m.boxSizingReliable()&&r||!m.reliableTrDimensions()&&T(t,"tr")||"auto"===o||!parseFloat(o)&&"inline"===A.css(t,"display",!1,n))&&t.getClientRects().length&&(r="border-box"===A.css(t,"boxSizing",!1,n),(s=a in t)&&(o=t[a])),(o=parseFloat(o)||0)+he(t,e,i||(r?"border":"content"),s,n,o)+"px"}function ue(t,e,i,n,r){return new ue.prototype.init(t,e,i,n,r)}A.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Qt(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,s,o,a=rt(e),l=Vt.test(e),h=t.style;if(l||(e=re(a)),o=A.cssHooks[e]||A.cssHooks[a],void 0===i)return o&&"get"in o&&void 0!==(r=o.get(t,!1,n))?r:h[e];"string"==(s=typeof i)&&(r=ft.exec(i))&&r[1]&&(i=yt(t,e,r),s="number"),null!=i&&i==i&&("number"!==s||l||(i+=r&&r[3]||(A.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==i||0!==e.indexOf("background")||(h[e]="inherit"),o&&"set"in o&&void 0===(i=o.set(t,i,n))||(l?h.setProperty(e,i):h[e]=i))}},css:function(t,e,i,n){var r,s,o,a=rt(e);return Vt.test(e)||(e=re(a)),(o=A.cssHooks[e]||A.cssHooks[a])&&"get"in o&&(r=o.get(t,!0,i)),void 0===r&&(r=Qt(t,e,n)),"normal"===r&&e in ae&&(r=ae[e]),""===i||i?(s=parseFloat(r),!0===i||isFinite(s)?s||0:r):r}}),A.each(["height","width"],(function(t,e){A.cssHooks[e]={get:function(t,i,n){if(i)return!se.test(A.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?ce(t,e,n):Ut(t,oe,(function(){return ce(t,e,n)}
vendor: 31,248 bytes, line 2
2))},set:function(t,i,n){var r,s=Kt(t),o=!m.scrollboxSize()&&"absolute"===s.position,a=(o||n)&&"border-box"===A.css(t,"boxSizing",!1,s),l=n?he(t,e,n,a,s):0;return a&&o&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(s[e])-he(t,e,"border",!1,s)-.5)),l&&(r=ft.exec(i))&&"px"!==(r[3]||"px")&&(t.style[e]=i,i=A.css(t,e)),le(0,i,l)}}})),A.cssHooks.marginLeft=te(m.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Qt(t,"marginLeft"))||t.getBoundingClientRect().left-Ut(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),A.each({margin:"",padding:"",border:"Width"},(function(t,e){A.cssHooks[t+e]={expand:function(i){for(var n=0,r={},s="string"==typeof i?i.split(" "):[i];n<4;n++)r[t+pt[n]+e]=s[n]||s[n-2]||s[0];return r}},"margin"!==t&&(A.cssHooks[t+e].set=le)})),A.fn.extend({css:function(t,e){return tt(this,(function(t,e,i){var n,r,s={},o=0;if(Array.isArray(e)){for(n=Kt(t),r=e.length;o<r;o++)s[e[o]]=A.css(t,e[o],!1,n);return s}return void 0!==i?A.style(t,e,i):A.css(t,e)}),t,e,arguments.length>1)}}),A.Tween=ue,ue.prototype={constructor:ue,init:function(t,e,i,n,r,s){this.elem=t,this.prop=i,this.easing=r||A.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=s||(A.cssNumber[i]?"":"px")},cur:function(){var t=ue.propHooks[this.prop];return t&&t.get?t.get(this):ue.propHooks._default.get(this)},run:function(t){var e,i=ue.propHooks[this.prop];return this.options.duration?this.pos=e=A.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):ue.propHooks._default.set(this),this}},ue.prototype.init.prototype=ue.prototype,ue.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=A.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){A.fx.step[t.prop]?A.fx.step[t.prop](t):1!==t.elem.nodeType||!A.cssHooks[t.prop]&&null==t.elem.style[re(t.prop)]?t.elem[t.prop]=t.now:A.style(t.elem,t.prop,t.now+t.unit)}}},ue.propHooks.scrollTop=ue.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},A.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},A.fx=ue.prototype.init,A.fx.step={};var de,fe,pe=/^(?:toggle|show|hide)$/,ge=/queueHooks$/;function me(){fe&&(!1===y.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(me):n.setTimeout(me,A.fx.interval),A.fx.tick())}function ve(){return n.setTimeout((function(){de=void 0})),de=Date.now()}function _e(t,e){var i,n=0,r={height:t};for(e=e?1:0;n<4;n+=2-e)r["margin"+(i=pt[n])]=r["padding"+i]=t;return e&&(r.opacity=r.width=t),r}function ye(t,e,i){for(var n,r=(xe.tweeners[e]||[]).concat(xe.tweeners["*"]),s=0,o=r.length;s<o;s++)if(n=r[s].call(i,e,t))return n}function xe(t,e,i){var n,r,s=0,o=xe.prefilters.length,a=A.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var e=de||ve(),i=Math.max(0,h.startTime+h.duration-e),n=1-(i/h.duration||0),s=0,o=h.tweens.length;s<o;s++)h.tweens[s].run(n);return a.notifyWith(t,[h,n,i]),n<1&&o?i:(o||a.notifyWith(t,[h,1,0]),a.resolveWith(t,[h]),!1)},h=a.promise({elem:t,props:A.extend({},e),opts:A.extend(!0,{specialEasing:{},easing:A.easing._default},i),originalProperties:e,originalOptions:i,startTime:de||ve(),duration:i.duration,tweens:[],createTween:function(e,i){var n=A.Tween(t,h.opts,e,i,h.opts.specialEasing[e]||h.opts.easing);return h.tweens.push(n),n},stop:function(e){var i=0,n=e?h.tweens.length:0;if(r)return this;for(r=!0;i<n;i++)h.tweens[i].run(1);return e?(a.notifyWith(t,[h,1,0]),a.resolveWith(t,[h,e])):a.rejectWith(t,[h,e]),this}}),c=h.props;for(function(t,e){var i,n,r,s,o;for(i in t)if(r=e[n=rt(i)],s=t[i],Array.isArray(s)&&(r=s[1],s=t[i]=s[0]),i!==n&&(t[n]=s,delete t[i]),(o=A.cssHooks[n])&&"expand"in o)for(i in s=o.expand(s),delete t[n],s)i in t||(t[i]=s[i],e[i]=r);else e[n]=r}(c,h.opts.specialEasing);s<o;s++)if(n=xe.prefilters[s].call(h,t,c,h.opts))return v(n.stop)&&(A._queueHooks(h.elem,h.opts.queue).stop=n.stop.bind(n)),n;return A.map(c,ye,h),v(h.opts.start)&&h.opts.start.call(t,h),h.progress(h.opts.progress).done(h.opts.done,h.opts.complete).fail(h.opts.fail).always(h.opts.always),A.fx.timer(A.extend(l,{elem:t,anim:h,queue:h.opts.queue})),h}A.Animation=A.extend(xe,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return yt(i.elem,t,ft.exec(e),i),i}]},tweener:function(t,e){v(t)?(e=t,t=["*"]):t=t.match(Z);for(var i,n=0,r=t.length;n<r;n++)i=t[n],xe.tweeners[i]=xe.tweeners[i]||[],xe.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,r,s,o,a,l,h,c,u="width"in e||"height"in e,d=this,f={},p=t.style,g=t.nodeType&&_t(t),m=at.get(t,"fxshow");for(n in i.queue||(null==(o=A._queueHooks(t,"fx")).unqueued&&(o.unqueued=0,a=o.empty.fire,o.empty.fire=function(){o.unqueued||a()}),o.unqueued++,d.always((function(){d.always((function(){o.unqueued--,A.queue(t,"fx").length||o.empty.fire()}))}))),e)if(r=e[n],pe.test(r)){if(delete e[n],s=s||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[n])continue;g=!0}f[n]=m&&m[n]||A.style(t,n)}if((l=!A.isEmptyObject(e))||!A.isEmptyObject(f))for(n in u&&1===t.nodeType&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],null==(h=m&&m.display)&&(h=at.get(t,"display")),"none"===(c=A.css(t,"display"))&&(h?c=h:(bt([t],!0),h=t.style.display||h,c=A.css(t,"display"),bt([t]))),("inline"===c||"inline-block"===c&&null!=h)&&"none"===A.css(t,"float")&&(l||(d.done((function(){p.display=h})),null==h&&(c=p.display,h="none"===c?"":c)),p.display="inline-block")),i.overflow&&(p.overflow="hidden",d.always((function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]}))),l=!1,f)l||(m?"hidden"in m&&(g=m.hidden):m=at.access(t,"fxshow",{display:h}),s&&(m.hidden=!g),g&&bt([t],!0),d.done((function(){for(n in g||bt([t]),at.remove(t,"fxshow"),f)A.style(t,n,f[n])}))),l=ye(g?m[n]:0,n,d),n in m||(m[n]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?xe.prefilters.unshift(t):xe.prefilters.push(t)}}),A.speed=function(t,e,i){var n=t&&"object"==typeof t?A.extend({},t):{complete:i||!i&&e||v(t)&&t,duration:t,easing:i&&e||e&&!v(e)&&e};return A.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in A.fx.speeds?n.duration=A.fx.speeds[n.duration]:n.duration=A.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){v(n.old)&&n.old.call(this),n.queue&&A.dequeue(this,n.queue)},n},A.fn.extend({fadeTo:function(t,e,i,n){return this.filter(_t).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var r=A.isEmptyObject(t),s=A.speed(e,i,n),o=function(){var e=xe(this,A.extend({},t),s);(r||at.get(this,"finish"))&&e.stop(!0)};return o.finish=o,r||!1===s.queue?this.each(o):this.queue(s.queue,o)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",s=A.timers,o=at.get(this);if(r)o[r]&&o[r].stop&&n(o[r]);else for(r in o)o[r]&&o[r].stop&&ge.test(r)&&n(o[r]);for(r=s.length;r--;)s[r].elem!==this||null!=t&&s[r].queue!==t||(s[r].anim.stop(i),e=!1,s.splice(r,1));!e&&i||A.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,i=at.get(this),n=i[t+"queue"],r=i[t+"queueHooks"],s=A.timers,o=n?n.length:0;for(i.finish=!0,A.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=s.length;e--;)s[e].elem===this&&s[e].queue===t&&(s[e].anim.stop(!0),s.splice(e,1));for(e=0;e<o;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish}))}}),A.each(["toggle","show","hide"],(function(t,e){var i=A.fn[e];A.fn[e]=function(t,n,r){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(_e(e,!0),t,n,r)}})),A.each({slideDown:_e("show"),slideUp:_e("hide"),slideToggle:_e("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){A.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}})),A.timers=[],A.fx.tick=function(){var t,e=0,i=A.timers;for(de=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||A.fx.stop(),de=void 0},A.fx.timer=function(t){A.timers.push(t),A.fx.start()},A.fx.interval=13,A.fx.start=function(){fe||(fe=!0,me())},A.fx.stop=function(){fe=null},A.fx.speeds={slow:600,fast:200,_default:400},A.fn.delay=function(t,e){return t=A.fx&&A.fx.speeds[t]||t,e=e||"fx",this.queue(e,(function(e,i){var r=n.setTimeout(e,t);i.stop=function(){n.clearTimeout(r)}}))},function(){var t=y.createElement("input"),e=y.createElement("select").appendChild(y.createElement("option"));t.type="checkbox",m.checkOn=""!==t.value,m.optSelected=e.selected,(t=y.createElement("input")).value="t",t.type="radio",m.radioValue="t"===t.value}();var we,be=A.expr.attrHandle;A.fn.extend({attr:function(t,e){return tt(this,A.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){A.removeAttr(this,t)}))}}),A.extend({attr:function(t,e,i){var n,r,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return void 0===t.getAttribute?A.prop(t,e,i):(1===s&&A.isXMLDoc(t)||(r=A.attrHooks[e.toLowerCase()]||(A.expr.match.bool.test(e)?we:void 0)),void 0!==i?null===i?void A.removeAttr(t,e):r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:(t.setAttribute(e,i+""),i):r&&"get"in r&&null!==(n=r.get(t,e))?n:null==(n=A.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!m.radioValue&&"radio"===e&&T(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,r=e&&e.match(Z);if(r&&1===t.nodeType)for(;i=r[n++];)t.removeAttribute(i)}}),we={set:function(t,e,i){return!1===e?A.removeAttr(t,i):t.setAttribute(i,i),i}},A.each(A.expr.match.bool.source.match(/\w+/g),(function(t,e){var i=be[e]||A.find.attr;be[e]=function(t,e,n){var r,s,o=e.toLowerCase();return n||(s=be[o],be[o]=r,r=null!=i(t,e,n)?o:null,be[o]=s),r}}));var Ee=/^(?:input|select|textarea|button)$/i,Ce=/^(?:a|area)$/i;function Ae(t){return(t.match(Z)||[]).join(" ")}function Se(t){return t.getAttribute&&t.getAttribute("class")||""}function Te(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(Z)||[]}A.fn.extend({prop:function(t,e){return tt(this,A.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[A.propFix[t]||t]}))}}),A.extend({prop:function(t,e,i){var n,r,s=t.nodeType;if(3!==s&&8!==s&&2!==s)return 1===s&&A.isXMLDoc(t)||(e=A.propFix[e]||e,r=A.propHooks[e]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:t[e]=i:r&&"get"in r&&null!==(n=r.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=A.find.attr(t,"tabindex");return e?parseInt(e,10):Ee.test(t.nodeName)||Ce.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(A.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),A.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){A.propFix[this.toLowerCase()]=this})),A.fn.extend({addClass:function(t){var e,i,n,r,s,o;return v(t)?this.each((function(e){A(this).addClass(t.call(this,e,Se(this)))})):(e=Te(t)).length?this.each((function(){if(n=Se(this),i=1===this.nodeType&&" "+Ae(n)+" "){for(s=0;s<e.length;s++)r=e[s],i.indexOf(" "+r+" ")<0&&(i+=r+" ");o=Ae(i),n!==o&&this.setAttribute("class",o)}})):this},removeClass:function(t){var e,i,n,r,s,o;return v(t)?this.each((function(e){A(this).removeClass(t.call(this,e,Se(this)))})):arguments.length?(e=Te(t)).length?this.each((function(){if(n=Se(this),i=1===this.nodeType&&" "+Ae(n)+" "){for(s=0;s<e.length;s++)for(r=e[s];i.indexOf(" "+r+" ")>-1;)i=i.replace(" "+r+" "," ");o=Ae(i),n!==o&&this.setAttribute("class",o)}})):this:this.attr("class","")},toggleClass:function(t,e){var i,n,r,s,o=typeof t,a="string"===o||Array.isArray(t);return v(t)?this.each((function(i){A(this).toggleClass(t.call(this,i,Se(this),e),e)})):"boolean"==typeof e&&a?e?this.addClass(t):this.removeClass(t):(i=Te(t),this.each((function(){if(a)for(s=A(this),r=0;r<i.length;r++)n=i[r],s.hasClass(n)?s.removeClass(n):s.addClass(n);else void 0!==t&&"boolean"!==o||((n=Se(this))&&at.set(this,"__className__",n),this.setAttribute&&this.setAttribute("class",n||!1===t?"":at.get(this,"__className__")||""))})))},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+Ae(Se(i))+" ").indexOf(e)>-1)return!0;return!1}});var Ie=/\r/g;A.fn.extend({val:function(t){var e,i,n,r=this[0];return arguments.length?(n=v(t),this.each((function(i){var r;1===this.nodeType&&(null==(r=n?t.call(this,i,A(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=A.map(r,(function(t){return null==t?"":t+""}))),(e=A.valHooks[this.type]||A.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=A.valHooks[r.type]||A.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(Ie,""):null==i?"":i:void 0}}),A.extend({valHooks:{option:{get:function(t){var e=A.find.attr(t,"value");return null!=e?e:Ae(A.text(t))}},select:{get:function(t){var e,i,n,r=t.options,s=t.selectedIndex,o="select-one"===t.type,a=o?null:[],l=o?s+1:r.length;for(n=s<0?l:o?s:0;n<l;n++)if(((i=r[n]).selected||n===s)&&!i.disabled&&(!i.parentNode.disabled||!T(i.parentNode,"optgroup"))){if(e=A(i).val(),o)return e;a.push(e)}return a},set:function(t,e){for(var i,n,r=t.options,s=A.makeArray(e),o=r.length;o--;)((n=r[o]).selected=A.inArray(A.valHooks.option.get(n),s)>-1)&&(i=!0);return i||(t.selectedIndex=-1),s}}}}),A.each(["radio","checkbox"],(function(){A.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=A.inArray(A(t).val(),e)>-1}},m.checkOn||(A.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}));var Re=n.location,De={guid:Date.now()},Me=/\?/;A.parseXML=function(t){var e,i;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){}return i=e&&e.getElementsByTagName("parsererror")[0],e&&!i||A.error("Invalid XML: "+(i?A.map(i.childNodes,(function(t){return t.textContent})).join("\n"):t)),e};var Le=/^(?:focusinfocus|focusoutblur)$/,Oe=function(t){t.stopPropagation()};A.extend(A.event,{trigger:function(t,e,i,r){var s,o,a,l,h,c,u,d,p=[i||y],g=f.call(t,"type")?t.type:t,m=f.call(t,"namespace")?t.namespace.split("."):[];if(o=d=a=i=i||y,3!==i.nodeType&&8!==i.nodeType&&!Le.test(g+A.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),h=g.indexOf(":")<0&&"on"+g,(t=t[A.expando]?t:new A.Event(g,"object"==typeof t&&t)).isTrigger=r?2:3,t.namespace=m.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),e=null==e?[t]:A.makeArray(e,[t]),u=A.event.special[g]||{},r||!u.trigger||!1!==u.trigger.apply(i,e))){if(!r&&!u.noBubble&&!_(i)){for(l=u.delegateType||g,Le.test(l+g)||(o=o.parentNode);o;o=o.parentNode)p.push(o),a=o;a===(i.ownerDocument||y)&&p.push(a.defaultView||a.parentWindow||n)}for(s=0;(o=p[s++])&&!t.isPropagationStopped();)d=o,t.type=s>1?l:u.bindType||g,(c=(at.get(o,"events")||Object.create(null))[t.type]&&at.get(o,"handle"))&&c.apply(o,e),(c=h&&o[h])&&c.apply&&st(o)&&(t.result=c.apply(o,e),!1===t.result&&t.preventDefault());return t.type=g,r||t.isDefaultPrevented()||u._default&&!1!==u._default.apply(p.pop(),e)||!st(i)||h&&v(i[g])&&!_(i)&&((a=i[h])&&(i[h]=null),A.event.triggered=g,t.isPropagationStopped()&&d.addEventListener(g,Oe),i[g](),t.isPropagationStopped()&&d.removeEventListener(g,Oe),A.event.triggered=void 0,a&&(i[h]=a)),t.result}},simulate:function(t,e,i){var n=A.extend(new A.Event,i,{type:t,isSimulated:!0});A.event.trigger(n,null,e)}}),A.fn.extend({trigger:function(t,e){return this.each((function(){A.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var i=this[0];if(i)return A.event.trigger(t,e,i,!0)}});var ke=/\[\]$/,Pe=/\r?\n/g,Fe=/^(?:submit|button|image|reset|file)$/i,Ne=/^(?:input|select|textarea|keygen)/i;function je(t,e,i,n){var r;if(Array.isArray(e))A.each(e,(function(e,r){i||ke.test(t)?n(t,r):je(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,i,n)}));else if(i||"object"!==b(e))n(t,e);else for(r in e)je(t+"["+r+"]",e[r],i,n)}A.param=function(t,e){var i,n=[],r=function(t,e){var i=v(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!A.isPlainObject(t))A.each(t,(function(){r(this.name,this.value)}));else for(i in t)je(i,t[i],e,r);return n.join("&")},A.fn.extend({serialize:function(){return A.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=A.prop(this,"elements");return t?A.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!A(this).is(":disabled")&&Ne.test(this.nodeName)&&!Fe.test(t)&&(this.checked||!At.test(t))})).map((function(t,e){var i=A(this).val();return null==i?null:Array.isArray(i)?A.map(i,(function(t){return{name:e.name,value:t.replace(Pe,"\r\n")}})):{name:e.name,value:i.replace(Pe,"\r\n")}})).get()}});var $e=/%20/g,Ge=/#.*$/,ze=/([?&])_=[^&]*/,qe=/^(.*?):[ \t]*([^\r\n]*)$/gm,We=/^(?:GET|HEAD)$/,Ye=/^\/\//,He={},Be={},Ze="*/".concat("*"),Xe=y.createElement("a");function Ve(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,r=0,s=e.toLowerCase().match(Z)||[];if(v(i))for(;n=s[r++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function Ke(t,e,i,n){var r={},s=t===Be;function o(a){var l;return r[a]=!0,A.each(t[a]||[],(function(t,a){var h=a(e,i,n);return"string"!=typeof h||s||r[h]?s?!(l=h):void 0:(e.dataTypes.unshift(h),o(h),!1)})),l}return o(e.dataTypes[0])||!r["*"]&&o("*")}function Ue(t,e){var i,n,r=A.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((r[i]?t:n||(n={}))[i]=e[i]);return n&&A.extend(!0,t,n),t}Xe.href=Re.href,A.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Re.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Re.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ze,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":A.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?Ue(Ue(t,A.ajaxSettings),e):Ue(A.ajaxSettings,t)},ajaxPrefilter:Ve(He),ajaxTransport:Ve(Be),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var i,r,s,o,a,l,h,c,u,d,f=A.ajaxSetup({},e),p=f.context||f,g=f.context&&(p.nodeType||p.jquery)?A(p):A.event,m=A.Deferred(),v=A.Callbacks("once memory"),_=f.statusCode||{},x={},w={},b="canceled",E={readyState:0,getResponseHeader:function(t){var e;if(h){if(!o)for(o={};e=qe.exec(s);)o[e[1].toLowerCase()+" "]=(o[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=o[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return h?s:null},setRequestHeader:function(t,e){return null==h&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,x[t]=e),this},overrideMimeType:function(t){return null==h&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(h)E.always(t[E.status]);else for(e in t)_[e]=[_[e],t[e]];return this},abort:function(t){var e=t||b;return i&&i.abort(e),C(0,e),this}};if(m.promise(E),f.url=((t||f.url||Re.href)+"").replace(Ye,Re.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(Z)||[""],null==f.crossDomain){l=y.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Xe.protocol+"//"+Xe.host!=l.protocol+"//"+l.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=A.param(f.data,f.traditional)),Ke(He,f,e,E),h)return E;for(u in(c=A.event&&f.global)&&0==A.active++&&A.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!We.test(f.type),r=f.url.replace(Ge,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace($e,"+")):(d=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Me.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(ze,"$1"),d=(Me.test(r)?"&":"?")+"_="+De.guid+++d),f.url=r+d),f.ifModified&&(A.lastModified[r]&&E.setRequestHeader("If-Modified-Since",A.lastModified[r]),A.etag[r]&&E.setRequestHeader("If-None-Match",A.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&E.setRequestHeader("Content-Type",f.contentType),E.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Ze+"; q=0.01":""):f.accepts["*"]),f.headers)E.setRequestHeader(u,f.headers[u]);if(f.beforeSend&&(!1===f.beforeSend.call(p,E,f)||h))return E.abort();if(b="abort",v.add(f.complete),E.done(f.success),E.fail(f.error),i=Ke(Be,f,e,E)){if(E.readyState=1,c&&g.trigger("ajaxSend",[E,f]),h)return E;f.async&&f.timeout>0&&(a=n.setTimeout((function(){E.abort("timeout")}),f.timeout));try{h=!1,i.send(x,C)}catch(t){if(h)throw t;C(-1,t)}}else C(-1,"No Transport");function C(t,e,o,l){var u,d,y,x,w,b=e;h||(h=!0,a&&n.clearTimeout(a),i=void 0,s=l||"",E.readyState=t>0?4:0,u=t>=200&&t<300||304===t,o&&(x=function(t,e,i){for(var n,r,s,o,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(r in a)if(a[r]&&a[r].test(n)){l.unshift(r);break}if(l[0]in i)s=l[0];else{for(r in i){if(!l[0]||t.converters[r+" "+l[0]]){s=r;break}o||(o=r)}s=s||o}if(s)return s!==l[0]&&l.unshift(s),i[s]}(f,E,o)),!u&&A.inArray("script",f.dataTypes)>-1&&A.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),x=function(t,e,i,n){var r,s,o,a,l,h={},c=t.dataTypes.slice();if(c[1])for(o in t.converters)h[o.toLowerCase()]=t.converters[o];for(s=c.shift();s;)if(t.responseFields[s]&&(i[t.responseFields[s]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=s,s=c.shift())if("*"===s)s=l;else if("*"!==l&&l!==s){if(!(o=h[l+" "+s]||h["* "+s]))for(r in h)if((a=r.split(" "))[1]===s&&(o=h[l+" "+a[0]]||h["* "+a[0]])){!0===o?o=h[r]:!0!==h[r]&&(s=a[0],c.unshift(a[1]));break}if(!0!==o)if(o&&t.throws)e=o(e);else try{e=o(e)}catch(t){return{state:"parsererror",error:o?t:"No conversion from "+l+" to "+s}}}return{state:"success",data:e}}(f,x,E,u),u?(f.ifModified&&((w=E.getResponseHeader("Last-Modified"))&&(A.lastModified[r]=w),(w=E.getResponseHeader("etag"))&&(A.etag[r]=w)),204===t||"HEAD"===f.type?b="nocontent":304===t?b="notmodified":(b=x.state,d=x.data,u=!(y=x.error))):(y=b,!t&&b||(b="error",t<0&&(t=0))),E.status=t,E.statusText=(e||b)+"",u?m.resolveWith(p,[d,b,E]):m.rejectWith(p,[E,b,y]),E.statusCode(_),_=void 0,c&&g.trigger(u?"ajaxSuccess":"ajaxError",[E,f,u?d:y]),v.fireWith(p,[E,b]),c&&(g.trigger("ajaxComplete",[E,f]),--A.active||A.event.trigger("ajaxStop")))}return E},getJSON:function(t,e,i){return A.get(t,e,i,"json")},getScript:function(t,e){return A.get(t,void 0,e,"script")}}),A.each(["get","post"],(function(t,e){A[e]=function(t,i,n,r){return v(i)&&(r=r||n,n=i,i=void 0),A.ajax(A.extend({url:t,type:e,dataType:r,data:i,success:n},A.isPlainObject(t)&&t))}})),A.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),A._evalUrl=function(t,e,i){return A.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){A.globalEval(t,e,i)}})},A.fn.extend({wrapAll:function(t){var e;return this[0]&&(v(t)&&(t=t.call(this[0])),e=A(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return v(t)?this.each((function(e){A(this).wrapInner(t.call(this,e))})):this.each((function(){var e=A(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)}))},wrap:function(t){var e=v(t);return this.each((function(i){A(this).wrapAll(e?t.call(this,i):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){A(this).replaceWith(this.childNodes)})),this}}),A.expr.pseudos.hidden=function(t){return!A.expr.pseudos.visible(t)},A.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},A.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var Je={0:200,1223:204},Qe=A.ajaxSettings.xhr();m.cors=!!Qe&&"withCredentials"in Qe,m.ajax=Qe=!!Qe,A.ajaxTransport((function(t){var e,i;if(m.cors||Qe&&!t.crossDomain)return{send:function(r,s){var o,a=t.xhr();if(a.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(o in t.xhrFields)a[o]=t.xhrFields[o];for(o in t.mimeType&&a.overrideMimeType&&a.overrideMimeType(t.mimeType),t.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)a.setRequestHeader(o,r[o]);e=function(t){return function(){e&&(e=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?s(0,"error"):s(a.status,a.statusText):s(Je[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=e(),i=a.onerror=a.ontimeout=e("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout((function(){e&&i()}))},e=e("abort");try{a.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}})),A.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),A.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return A.globalEval(t),t}}}),A.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),A.ajaxTransport("script",(function(t){var e,i;if(t.crossDomain||t.scriptAttrs)return{send:function(n,r){e=A("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&r("error"===t.type?404:200,t.type)}),y.head.appendChild(e[0])},abort:function(){i&&i()}}}));var ti,ei=[],ii=/(=)\?(?=&|$)|\?\?/;A.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=ei.pop()||A.expando+"_"+De.guid++;return this[t]=!0,t}}),A.ajaxPrefilter("json jsonp",(function(t,e,i){var r,s,o,a=!1!==t.jsonp&&(ii.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&ii.test(t.data)&&"data");if(a||"jsonp"===t.dataTypes[0])return r=t.jsonpCallback=v(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,a?t[a]=t[a].replace(ii,"$1"+r):!1!==t.jsonp&&(t.url+=(Me.test(t.url)?"&":"?")+t.jsonp+"="+r),t.converters["script json"]=function(){return o||A.error(r+" was not called"),o[0]},t.dataTypes[0]="json",s=n[r],n[r]=function(){o=arguments},i.always((function(){void 0===s?A(n).removeProp(r):n[r]=s,t[r]&&(t.jsonpCallback=e.jsonpCallback,ei.push(r)),o&&v(s)&&s(o[0]),o=s=void 0})),"script"})),m.createHTMLDocument=((ti=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===ti.childNodes.length),A.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(m.createHTMLDocument?((n=(e=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,e.head.appendChild(n)):e=y),s=!i&&[],(r=G.exec(t))?[e.createElement(r[1])]:(r=Lt([t],e,s),s&&s.length&&A(s).remove(),A.merge([],r.childNodes)));var n,r,s},A.fn.load=function(t,e,i){var n,r,s,o=this,a=t.indexOf(" ");return a>-1&&(n=Ae(t.slice(a)),t=t.slice(0,a)),v(e)?(i=e,e=void 0):e&&"object"==typeof e&&(r="POST"),o.length>0&&A.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){s=arguments,o.html(n?A("<div>").append(A.parseHTML(t)).find(n):t)})).always(i&&function(t,e){o.each((function(){i.apply(this,s||[t.responseText,e,t])}))}),this},A.expr.pseudos.animated=function(t){return A.grep(A.timers,(function(e){return t===e.elem})).length},A.offset={setOffset:function(t,e,i){var n,r,s,o,a,l,h=A.css(t,"position"),c=A(t),u={};"static"===h&&(t.style.position="relative"),a=c.offset(),s=A.css(t,"top"),l=A.css(t,"left"),("absolute"===h||"fixed"===h)&&(s+l).indexOf("auto")>-1?(o=(n=c.position()).top,r=n.left):(o=parseFloat(s)||0,r=parseFloat(l)||0),v(e)&&(e=e.call(t,i,A.extend({},a))),null!=e.top&&(u.top=e.top-a.top+o),null!=e.left&&(u.left=e.left-a.left+r),"using"in e?e.using.call(t,u):c.css(u)}},A.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){A.offset.setOffset(this,t,e)}));var e,i,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],r={top:0,left:0};if("fixed"===A.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===A.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((r=A(t).offset()).top+=A.css(t,"borderTopWidth",!0),r.left+=A.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-A.css(n,"marginTop",!0),left:e.left-r.left-A.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===A.css(t,"position");)t=t.offsetParent;return t||gt}))}}),A.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var i="pageYOffset"===e;A.fn[t]=function(n){return tt(this,(function(t,n,r){var s;if(_(t)?s=t:9===t.nodeType&&(s=t.defaultView),void 0===r)return s?s[e]:t[n];s?s.scrollTo(i?s.pageXOffset:r,i?r:s.pageYOffset):t[n]=r}),t,n,arguments.length)}})),A.each(["top","left"],(function(t,e){A.cssHooks[e]=te(m.pixelPosition,(function(t,i){if(i)return i=Qt(t,e),Xt.test(i)?A(t).position()[e]+"px":i}))})),A.each({Height:"height",Width:"width"},(function(t,e){A.each({padding:"inner"+t,content:e,"":"outer"+t},(function(i,n){A.fn[n]=function(r,s){var o=arguments.length&&(i||"boolean"!=typeof r),a=i||(!0===r||!0===s?"margin":"border");return tt(this,(function(e,i,r){var s;return _(e)?0===n.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(s=e.documentElement,Math.max(e.body["scroll"+t],s["scroll"+t],e.body["offset"+t],s["offset"+t],s["client"+t])):void 0===r?A.css(e,i,a):A.style(e,i,r,a)}),e,o?r:void 0,o)}}))})),A.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){A.fn[e]=function(t){return this.on(e,t)}}
2)),A.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.on("mouseenter",t).on("mouseleave",e||t)}}),A.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){A.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}}));var ni=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;A.proxy=function(t,e){var i,n,r;if("string"==typeof e&&(i=t[e],e=t,t=i),v(t))return n=a.call(arguments,2),r=function(){return t.apply(e||this,n.concat(a.call(arguments)))},r.guid=t.guid=t.guid||A.guid++,r},A.holdReady=function(t){t?A.readyWait++:A.ready(!0)},A.isArray=Array.isArray,A.parseJSON=JSON.parse,A.nodeName=T,A.isFunction=v,A.isWindow=_,A.camelCase=rt,A.type=b,A.now=Date.now,A.isNumeric=function(t){var e=A.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},A.trim=function(t){return null==t?"":(t+"").replace(ni,"$1")},void 0===(i=function(){return A}.apply(e,[]))||(t.exports=i);var ri=n.jQuery,si=n.$;return A.noConflict=function(t){return n.$===A&&(n.$=si),t&&n.jQuery===A&&(n.jQuery=ri),A},void 0===r&&(n.jQuery=n.$=A),A}))},4720:(t,e,i)=>{"use strict";i.d(e,{A:()=>z});var n=i(764),r=i(5341),s=i(9276),o=i(7733),a=i(3628),l=i(9700),h=i(6936),c=i(953),u=i(1426),d=i(9825),f=i(409),p=i(3530),g=i(6782);function m(t){return!0}function v(t){const e=(0,d.SR)(),i=t.length,n=new Array(i);for(let r=0;r<i;++r)n[r]=_(t[r],e);const r=(0,f.A)(),s=new Array(i);return function(t,o){if(r.properties=t.getPropertiesInternal(),r.resolution=o,e.featureId){const e=t.getId();r.featureId=void 0!==e?e:null}let a=0;for(let t=0;t<i;++t){const e=n[t](r);e&&(s[a]=e,a+=1)}return s.length=a,s}}function _(t,e){const i=y(t,"",e),n=x(t,"",e),r=function(t,e){const i="text-",n=b(t,i+"value",e);if(!n)return null;const r=y(t,i,e),s=y(t,i+"background-",e),o=x(t,i,e),a=x(t,i+"background-",e),l=b(t,i+"font",e),h=w(t,i+"max-angle",e),c=w(t,i+"offset-x",e),d=w(t,i+"offset-y",e),f=E(t,i+"overflow",e),p=b(t,i+"placement",e),g=w(t,i+"repeat",e),m=I(t,i+"scale",e),v=E(t,i+"rotate-with-view",e),_=w(t,i+"rotation",e),C=b(t,i+"align",e),S=b(t,i+"justify",e),T=b(t,i+"baseline",e),R=A(t,i+"padding",e),D=O(t,i+"declutter-mode"),M=new u.A({declutterMode:D});return function(t){if(M.setText(n(t)),r&&M.setFill(r(t)),s&&M.setBackgroundFill(s(t)),o&&M.setStroke(o(t)),a&&M.setBackgroundStroke(a(t)),l&&M.setFont(l(t)),h&&M.setMaxAngle(h(t)),c&&M.setOffsetX(c(t)),d&&M.setOffsetY(d(t)),f&&M.setOverflow(f(t)),p){const e=p(t);if("point"!==e&&"line"!==e)throw new Error("Expected point or line for text-placement");M.setPlacement(e)}if(g&&M.setRepeat(g(t)),m&&M.setScale(m(t)),v&&M.setRotateWithView(v(t)),_&&M.setRotation(_(t)),C){const e=C(t);if("left"!==e&&"center"!==e&&"right"!==e&&"end"!==e&&"start"!==e)throw new Error("Expected left, right, center, start, or end for text-align");M.setTextAlign(e)}if(S){const e=S(t);if("left"!==e&&"right"!==e&&"center"!==e)throw new Error("Expected left, right, or center for text-justify");M.setJustify(e)}if(T){const e=T(t);if("bottom"!==e&&"top"!==e&&"middle"!==e&&"alphabetic"!==e&&"hanging"!==e)throw new Error("Expected bottom, top, middle, alphabetic, or hanging for text-baseline");M.setTextBaseline(e)}return R&&M.setPadding(R(t)),M}}(t,e),a=function(t,e){return"icon-src"in t?function(t,e){const i="icon-",n=i+"src",r=P(t[n],n),s=S(t,i+"anchor",e),o=I(t,i+"scale",e),a=w(t,i+"opacity",e),h=S(t,i+"displacement",e),c=w(t,i+"rotation",e),u=E(t,i+"rotate-with-view",e),d=M(t,i+"anchor-origin"),f=L(t,i+"anchor-x-units"),p=L(t,i+"anchor-y-units"),g=function(t,e){const i=t[e];if(void 0!==i)return N(i,e)}(t,i+"color"),m=function(t,e){const i=t[e];if(void 0!==i){if("string"!=typeof i)throw new Error(`Expected a string for ${e}`);return i}}(t,i+"cross-origin"),v=function(t,e){const i=t[e];if(void 0!==i)return k(i,e)}(t,i+"offset"),_=M(t,i+"offset-origin"),y=R(t,i+"width"),x=R(t,i+"height"),b=D(t,i+"size"),C=O(t,i+"declutter-mode"),A=new l.A({src:r,anchorOrigin:d,anchorXUnits:f,anchorYUnits:p,color:g,crossOrigin:m,offset:v,offsetOrigin:_,height:x,width:y,size:b,declutterMode:C});return function(t){return a&&A.setOpacity(a(t)),h&&A.setDisplacement(h(t)),c&&A.setRotation(c(t)),u&&A.setRotateWithView(u(t)),o&&A.setScale(o(t)),s&&A.setAnchor(s(t)),A}}(t,e):"shape-points"in t?function(t,e){const i="shape-",n=i+"points",r=i+"radius",s=F(t[n],n),o=F(t[r],r),a=y(t,i,e),l=x(t,i,e),c=I(t,i+"scale",e),u=S(t,i+"displacement",e),d=w(t,i+"rotation",e),f=E(t,i+"rotate-with-view",e),p=R(t,i+"radius2"),g=R(t,i+"angle"),m=O(t,i+"declutter-mode"),v=new h.A({points:s,radius:o,radius2:p,angle:g,declutterMode:m});return function(t){return a&&v.setFill(a(t)),l&&v.setStroke(l(t)),u&&v.setDisplacement(u(t)),d&&v.setRotation(d(t)),f&&v.setRotateWithView(f(t)),c&&v.setScale(c(t)),v}}(t,e):"circle-radius"in t?function(t,e){const i="circle-",n=y(t,i,e),r=x(t,i,e),s=w(t,i+"radius",e),a=I(t,i+"scale",e),l=S(t,i+"displacement",e),h=w(t,i+"rotation",e),c=E(t,i+"rotate-with-view",e),u=O(t,i+"declutter-mode"),d=new o.A({radius:5,declutterMode:u});return function(t){return s&&d.setRadius(s(t)),n&&d.setFill(n(t)),r&&d.setStroke(r(t)),l&&d.setDisplacement(l(t)),h&&d.setRotation(h(t)),c&&d.setRotateWithView(c(t)),a&&d.setScale(a(t)),d}}(t,e):null}(t,e),c=w(t,"z-index",e);if(!(i||n||r||a||(0,p.p)(t)))throw new Error("No fill, stroke, point, or text symbolizer properties in style: "+JSON.stringify(t));const d=new s.Ay;return function(t){let e=!0;if(i){const n=i(t);
2n&&(e=!1),d.setFill(n)}if(n){const i=n(t);i&&(e=!1),d.setStroke(i)}if(r){const i=r(t);i&&(e=!1),d.setText(i)}if(a){const i=a(t);i&&(e=!1),d.setImage(i)}return c&&d.setZIndex(c(t)),e?null:d}}function y(t,e,i){let n;if(n=e+"fill-pattern-src"in t?function(t,e,i){const n=b(t,e+"pattern-src",i),r=T(t,e+"pattern-offset",i),s=T(t,e+"pattern-size",i),o=C(t,e+"color",i);return function(t){return{src:n(t),offset:r&&r(t),size:s&&s(t),color:o&&o(t)}}}(t,e+"fill-",i):C(t,e+"fill-color",i),!n)return null;const r=new a.A;return function(t){const e=n(t);return"none"===e?null:(r.setColor(e),r)}}function x(t,e,i){const n=w(t,e+"stroke-width",i),r=C(t,e+"stroke-color",i);if(!n&&!r)return null;const s=b(t,e+"stroke-line-cap",i),o=b(t,e+"stroke-line-join",i),a=A(t,e+"stroke-line-dash",i),l=w(t,e+"stroke-line-dash-offset",i),h=w(t,e+"stroke-miter-limit",i),u=new c.A;return function(t){if(r){const e=r(t);if("none"===e)return null;u.setColor(e)}if(n&&u.setWidth(n(t)),s){const e=s(t);if("butt"!==e&&"round"!==e&&"square"!==e)throw new Error("Expected butt, round, or square line cap");u.setLineCap(e)}if(o){const e=o(t);if("bevel"!==e&&"round"!==e&&"miter"!==e)throw new Error("Expected bevel, round, or miter line join");u.setLineJoin(e)}return a&&u.setLineDash(a(t)),l&&u.setLineDashOffset(l(t)),h&&u.setMiterLimit(h(t)),u}}function w(t,e,i){if(!(e in t))return;const n=(0,f.n)(t[e],d.wl,i);return function(t){return F(n(t),e)}}function b(t,e,i){if(!(e in t))return null;const n=(0,f.n)(t[e],d.cT,i);return function(t){return P(n(t),e)}}function E(t,e,i){if(!(e in t))return null;const n=(0,f.n)(t[e],d.T8,i);return function(t){const i=n(t);if("boolean"!=typeof i)throw new Error(`Expected a boolean for ${e}`);return i}}function C(t,e,i){if(!(e in t))return null;const n=(0,f.n)(t[e],d.mE|d.cT,i);return function(t){return N(n(t),e)}}function A(t,e,i){if(!(e in t))return null;const n=(0,f.n)(t[e],d.Fq,i);return function(t){return k(n(t),e)}}function S(t,e,i){if(!(e in t))return null;const n=(0,f.n)(t[e],d.Fq,i);return function(t){const i=k(n(t),e);if(2!==i.length)throw new Error(`Expected two numbers for ${e}`);return i}}function T(t,e,i){if(!(e in t))return null;const n=(0,f.n)(t[e],d.Fq,i);return function(t){return j(n(t),e)}}function I(t,e,i){if(!(e in t))return null;const n=(0,f.n)(t[e],d.Fq|d.wl,i);return function(t){return i=n(t),r=e,"number"==typeof i?i:j(i,r);var i,r}}function R(t,e){const i=t[e];if(void 0!==i){if("number"!=typeof i)throw new Error(`Expected a number for ${e}`);return i}}function D(t,e){const i=t[e];if(void 0!==i){if("number"==typeof i)return(0,g.xq)(i);if(!Array.isArray(i))throw new Error(`Expected a number or size array for ${e}`);if(2!==i.length||"number"!=typeof i[0]||"number"!=typeof i[1])throw new Error(`Expected a number or size array for ${e}`);return i}}function M(t,e){const i=t[e];if(void 0!==i){if("bottom-left"!==i&&"bottom-right"!==i&&"top-left"!==i&&"top-right"!==i)throw new Error(`Expected bottom-left, bottom-right, top-left, or top-right for ${e}`);return i}}function L(t,e){const i=t[e];if(void 0!==i){if("pixels"!==i&&"fraction"!==i)throw new Error(`Expected pixels or fraction for ${e}`);return i}}function O(t,e){const i=t[e];if(void 0!==i){if("string"!=typeof i)throw new Error(`Expected a string for ${e}`);if("declutter"!==i&&"obstacle"!==i&&"none"!==i)throw new Error(`Expected declutter, obstacle, or none for ${e}`);return i}}function k(t,e){if(!Array.isArray(t))throw new Error(`Expected an array for ${e}`);const i=t.length;for(let n=0;n<i;++n)if("number"!=typeof t[n])throw new Error(`Expected an array of numbers for ${e}`);return t}function P(t,e){if("string"!=typeof t)throw new Error(`Expected a string for ${e}`);return t}function F(t,e){if("number"!=typeof t)throw new Error(`Expected a number for ${e}`);return t}function N(t,e){if("string"==typeof t)return t;const i=k(t,e),n=i.length;if(n<3||n>4)throw new Error(`Expected a color with 3 or 4 values for ${e}`);return i}function j(t,e){const i=k(t,e);if(2!==i.length)throw new Error(`Expected an array of two numbers for ${e}`);return i}const $="renderOrder";class G extends n.A{constructor(t){t=t||{};const e=Object.assign({},t);delete e.style,delete e.renderBuffer,delete e.updateWhileAnimating,delete e.updateWhileInteracting,super(e),this.declutter_=t.declutter?String(t.declutter):void 0,this.renderBuffer_=void 0!==t.renderBuffer?t.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(t.style),this.updateWhileAnimating_=void 0!==t.updateWhileAnimating&&t.updateWhileAnimating,this.updateWhileInteracting_=void 0!==t.updateWhileInteracting&&t.updateWhileInteracting}getDeclutter(){return this.declutter_}getFeatures(t){return super.getFeatures(t)}getRenderBuffer(){return this.renderBuffer_}getRenderOrder(){return this.get($)}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}getUpdateWhileAnimating(){return this.updateWhileAnimating_}getUpdateWhileInteracting(){return this.updateWhileInteracting_}renderDeclutter(t,e){const i=this.getDeclutter();i in t.declutter==0&&(t.declutter[i]=new r(9)),this.getRenderer().renderDeclutter(t,e)}setRenderOrder(t){this.set($,t)}setStyle(t){this.style_=void 0===t?s.d1:t;const e=function(t){if(void 0===t)return s.d1;if(!t)return null;if("function"==typeof t)return t;if(t instanceof s.Ay)return t;if(!Array.isArray(t))return v([t]);if(0===t.length)return[];const e=t.length,i=t[0];if(i instanceof s.Ay){const i=new Array(e);for(let n=0;n<e;++n){const e=t[n];if(!(e instanceof s.Ay))throw new Error("Expected a list of style instances");i[n]=e}return i}if("style"in i){const i=new Array(e);for(let n=0;n<e;++n){const e=t[n];if(!("style"in e))throw new Error("Expected a list of rules with a style property");i[n]=e}return function(t){const e=(0,d.SR)(),i=function(t,e){const i=t.length,n=new Array(i);for(let r=0;r<i;++r){const i=t[r],s="filter"in i?(0,f.n)(i.filter,d.T8,e):m;let o;if(Array.isArray(i.style)){const t=i.style.length;o=new Array(t);for(let n=0;n<t;++n)o[n]=_(i.style[n],e)}else o=[_(i.style,e)];
2n[r]={filter:s,styles:o}}return function(e){const r=[];let s=!1;for(let o=0;o<i;++o)if((0,n[o].filter)(e)&&(!t[o].else||!s)){s=!0;for(const t of n[o].styles){const i=t(e);i&&r.push(i)}}return r}}(t,e),n=(0,f.A)();return function(t,r){if(n.properties=t.getPropertiesInternal(),n.resolution=r,e.featureId){const e=t.getId();n.featureId=void 0!==e?e:null}return e.geometryType&&(n.geometryType=(0,d.Ye)(t.getGeometry())),i(n)}}(i)}return v(t)}(t);this.styleFunction_=null===t?void 0:(0,s.mC)(e),this.changed()}}const z=G},4774:(t,e,i)=>{"use strict";i.d(e,{Ay:()=>g,v7:()=>p});var n=i(4120),r=i(4087),s=i(9703),o=i(915),a=i(7083),l=i(4238),h=i(7622);const c=(0,s.vt)();class u extends n.A{constructor(){super(),this.extent_=(0,o.S5)(),this.extentRevision_=-1,this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0,this.simplifyTransformedInternal=(0,l.B4)(((t,e,i)=>{if(!i)return this.getSimplifiedGeometry(e);const n=this.clone();return n.applyTransform(i),n.getSimplifiedGeometry(e)}))}simplifyTransformed(t,e){return this.simplifyTransformedInternal(this.getRevision(),t,e)}clone(){return(0,r.b0)()}closestPointXY(t,e,i,n){return(0,r.b0)()}containsXY(t,e){const i=this.getClosestPoint([t,e]);return i[0]===t&&i[1]===e}getClosestPoint(t,e){return e=e||[NaN,NaN],this.closestPointXY(t[0],t[1],e,1/0),e}intersectsCoordinate(t){return this.containsXY(t[0],t[1])}computeExtent(t){return(0,r.b0)()}getExtent(t){if(this.extentRevision_!=this.getRevision()){const t=this.computeExtent(this.extent_);(isNaN(t[0])||isNaN(t[1]))&&(0,o.aZ)(t),this.extentRevision_=this.getRevision()}return(0,o.$u)(this.extent_,t)}rotate(t,e){(0,r.b0)()}scale(t,e,i){(0,r.b0)()}simplify(t){return this.getSimplifiedGeometry(t*t)}getSimplifiedGeometry(t){return(0,r.b0)()}getType(){return(0,r.b0)()}applyTransform(t){(0,r.b0)()}intersectsExtent(t){return(0,r.b0)()}translate(t,e){(0,r.b0)()}transform(t,e){const i=(0,a.Jt)(t),n="tile-pixels"==i.getUnits()?function(t,n,r){const l=i.getExtent(),u=i.getWorldExtent(),d=(0,o.Oq)(u)/(0,o.Oq)(l);return(0,s.Zz)(c,u[0],u[3],d,-d,0,0,0),(0,h.Rc)(t,0,t.length,r,c,n),(0,a.RG)(i,e)(t,n,r)}:(0,a.RG)(i,e);return this.applyTransform(n),this}}const d=u;function f(t){let e;return"XY"==t?e=2:"XYZ"==t||"XYM"==t?e=3:"XYZM"==t&&(e=4),e}function p(t,e,i){const n=t.getFlatCoordinates();if(!n)return null;const r=t.getStride();return(0,h.Rc)(n,0,n.length,r,e,i)}const g=class extends d{constructor(){super(),this.layout="XY",this.stride=2,this.flatCoordinates}computeExtent(t){return(0,o.Vy)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)}getCoordinates(){return(0,r.b0)()}getFirstCoordinate(){return this.flatCoordinates.slice(0,this.stride)}getFlatCoordinates(){return this.flatCoordinates}getLastCoordinate(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)}getLayout(){return this.layout}getSimplifiedGeometry(t){if(this.simplifiedGeometryRevision!==this.getRevision()&&(this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;const e=this.getSimplifiedGeometryInternal(t);return e.getFlatCoordinates().length<this.flatCoordinates.length?e:(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)}getSimplifiedGeometryInternal(t){return this}getStride(){return this.stride}setFlatCoordinates(t,e){this.stride=f(t),this.layout=t,this.flatCoordinates=e}setCoordinates(t,e){(0,r.b0)()}setLayout(t,e,i){let n;if(t)n=f(t);else{for(let t=0;t<i;++t){if(0===e.length)return this.layout="XY",void(this.stride=2);e=e[0]}n=e.length,t=function(t){let e;return 2==t?e="XY":3==t?e="XYZ":4==t&&(e="XYZM"),e}(n)}this.layout=t,this.stride=n}applyTransform(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())}rotate(t,e){const i=this.getFlatCoordinates();if(i){const n=this.getStride();(0,h.e$)(i,0,i.length,n,t,e,i),this.changed()}}scale(t,e,i){void 0===e&&(e=t),i||(i=(0,o.q1)(this.getExtent()));const n=this.getFlatCoordinates();if(n){const r=this.getStride();(0,h.hs)(n,0,n.length,r,t,e,i,n),this.changed()}}translate(t,e){const i=this.getFlatCoordinates();if(i){const n=this.getStride();(0,h.Tl)(i,0,i.length,n,t,e,i),this.changed()}}}},4792:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n=/^(217|331)$/.test(i.j)?class{constructor(t,e,i){this.decay_=t,this.minVelocity_=e,this.delay_=i,this.points_=[],this.angle_=0,this.initialVelocity_=0}begin(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0}update(t,e){this.points_.push(t,e,Date.now())}end(){if(this.points_.length<6)return!1;const t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;let i=e-3;for(;i>0&&this.points_[i+2]>t;)i-=3;const n=this.points_[e+2]-this.points_[i+2];if(n<1e3/60)return!1;const r=this.points_[e]-this.points_[i],s=this.points_[e+1]-this.points_[i+1];return this.angle_=Math.atan2(s,r),this.initialVelocity_=Math.sqrt(r*r+s*s)/n,this.initialVelocity_>this.minVelocity_}getDistance(){return(this.minVelocity_-this.initialVelocity_)/this.decay_}getAngle(){return this.angle_}}:null},4883:(t,e,i)=>{"use strict";i(1629);var n=i(7015);t.exports=n("Array","forEach")},4901:t=>{"use strict";var e="object"==typeof document&&document.all;t.exports=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(t){return"function"==typeof t}},4913:(t,e,i)=>{"use strict";var n=i(3724),r=i(5917),s=i(8686),o=i(8551),a=i(6969),l=TypeError,h=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u="enumerable",d="configurable",f="writable";
2e.f=n?s?function(t,e,i){if(o(t),e=a(e),o(i),"function"==typeof t&&"prototype"===e&&"value"in i&&f in i&&!i[f]){var n=c(t,e);n&&n[f]&&(t[e]=i.value,i={configurable:d in i?i[d]:n[d],enumerable:u in i?i[u]:n[u],writable:!1})}return h(t,e,i)}:h:function(t,e,i){if(o(t),e=a(e),o(i),r)try{return h(t,e,i)}catch(t){}if("get"in i||"set"in i)throw new l("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},4969:(t,e,i)=>{"use strict";if(i.d(e,{A:()=>r}),/^(217|331)$/.test(i.j))var n=i(588);const r=/^(217|331)$/.test(i.j)?class{constructor(t){this.highWaterMark=void 0!==t?t:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}canExpireCache(){return this.highWaterMark>0&&this.getCount()>this.highWaterMark}expireCache(t){for(;this.canExpireCache();)this.pop()}clear(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}containsKey(t){return this.entries_.hasOwnProperty(t)}forEach(t){let e=this.oldest_;for(;e;)t(e.value_,e.key_,this),e=e.newer}get(t,e){const i=this.entries_[t];return(0,n.v)(void 0!==i,"Tried to get a value for a key that does not exist in the cache"),i===this.newest_||(i===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(i.newer.older=i.older,i.older.newer=i.newer),i.newer=null,i.older=this.newest_,this.newest_.newer=i,this.newest_=i),i.value_}remove(t){const e=this.entries_[t];return(0,n.v)(void 0!==e,"Tried to get a value for a key that does not exist in the cache"),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_}getCount(){return this.count_}getKeys(){const t=new Array(this.count_);let e,i=0;for(e=this.newest_;e;e=e.older)t[i++]=e.key_;return t}getValues(){const t=new Array(this.count_);let e,i=0;for(e=this.newest_;e;e=e.older)t[i++]=e.value_;return t}peekLast(){return this.oldest_.value_}peekLastKey(){return this.oldest_.key_}peekFirstKey(){return this.newest_.key_}peek(t){return this.entries_[t]?.value_}pop(){const t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_}replace(t,e){this.get(t),this.entries_[t].value_=e}set(t,e){(0,n.v)(!(t in this.entries_),"Tried to set a value for a key that is used already");const i={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=i:this.oldest_=i,this.newest_=i,this.entries_[t]=i,++this.count_}setSize(t){this.highWaterMark=t}}:null},5031:(t,e,i)=>{"use strict";var n=i(7751),r=i(9504),s=i(8480),o=i(3717),a=i(8551),l=r([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=s.f(a(t)),i=o.f;return i?l(e,i(t)):e}},5129:(t,e,i)=>{"use strict";i.d(e,{kU:()=>o,ln:()=>a});var n=i(3351),r=i(9888);function s(t,e,i){var n,s,o,a;n=t,s="active",a=i,(o=e)instanceof Array||(o=[o]),o.indexOf(a)<0?(0,r.vy)(n,s):(0,r.iQ)(n,s),function(t,e,i){"checkbox"===t.type&&(e instanceof Array||(e=[e]),t.checked=e.indexOf(i)>=0)}(t,e,i)}function o(t){var e=n.A.getUrlParams(),i=t.getAttribute("data-filter"),o=t.getAttribute("data-value"),a="true"===t.getAttribute("data-single-value"),l="true"===t.getAttribute("data-clear"),h=e[i]||[],c=(t.getAttribute("data-clear-params")||"").split(",");n.A.history.listen((function(e,r){var a=n.A.getUrlParams();s(t,a[i]||[],o)})),s(t,h,o),t.addEventListener("click",(function(t){var e=n.A.getUrlParams(),s=e[i]||[],h=t.target;h&&"checkbox"!==h.type&&t.preventDefault(),s instanceof Array||(s=[s]),(0,r.Z7)(s,o),a&&s.length>0&&(s=s.filter((function(t){return t===o}))),s=(0,r.Am)(s),e[i]=s,(l||e[i].length<1)&&delete e[i],c.forEach((function(t){t&&delete e[t]})),n.A.pushParams(e)}))}function a(t){var e=n.A.getUrlParams(),i=t.getAttribute("data-filter"),r=e[i]||"",s=(t.getAttribute("data-clear-params")||"").split(",");t.value=r,n.A.history.listen((function(e,r){var s=n.A.getUrlParams();t.value=s[i]||""})),t.addEventListener("keypress",(function(e){if(13===e.keyCode){var r=n.A.getUrlParams();
2t.value?r[i]=t.value:delete r[i],s.forEach((function(t){t&&delete r[t]})),n.A.pushParams(r)}}))}},5176:(t,e,i)=>{"use strict";i.d(e,{$N:()=>s,K5:()=>h,Si:()=>n,XI:()=>r,nT:()=>o});const n="ol-hidden",r="ol-unselectable",s="ol-control",o="ol-collapsed",a=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-z]+?)\\s*$"].join(""),"i"),l=/^(217|331)$/.test(i.j)?["style","variant","weight","size","lineHeight","family"]:null,h=function(t){const e=t.match(a);if(!e)return null;const i={lineHeight:"normal",size:"1.2em",style:"normal",weight:"normal",variant:"normal"};for(let t=0,n=l.length;t<n;++t){const n=e[t+1];void 0!==n&&(i[l[t]]=n)}return i.families=i.family.split(/,\s?/),i}},5220:(t,e,i)=>{"use strict";i.d(e,{A:()=>wt});var n=i(4120),r=i(71),s=i(2135),o=i(4720),a=i(25),l=i(4238),h=i(4087),c=i(9703),u=i(915),d=i(2241),f=i(764),p=i(6933);class g extends a.A{constructor(t){super(),this.map_=t}dispatchRenderEvent(t,e){(0,h.b0)()}calculateMatrices2D(t){const e=t.viewState,i=t.coordinateToPixelTransform,n=t.pixelToCoordinateTransform;(0,c.Zz)(i,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),(0,c.T9)(n,i)}forEachFeatureAtCoordinate(t,e,i,n,r,s,o,a){let l;const h=e.viewState;function c(t,e,i,n){return r.call(s,e,t?i:null,n)}const d=h.projection,g=(0,p.Li)(t.slice(),d),m=[[0,0]];if(d.canWrapX()&&n){const t=d.getExtent(),e=(0,u.RG)(t);m.push([-e,0],[e,0])}const v=e.layerStatesArray,_=v.length,y=[],x=[];for(let n=0;n<m.length;n++)for(let r=_-1;r>=0;--r){const s=v[r],u=s.layer;if(u.hasRenderer()&&(0,f.l)(s,h)&&o.call(a,u)){const r=u.getRenderer(),o=u.getSource();if(r&&o){const a=o.getWrapX()?g:t,h=c.bind(null,s.managed);x[0]=a[0]+m[n][0],x[1]=a[1]+m[n][1],l=r.forEachFeatureAtCoordinate(x,e,i,h,y)}if(l)return l}}if(0===y.length)return;const w=1/y.length;return y.forEach(((t,e)=>t.distanceSq+=e*w)),y.sort(((t,e)=>t.distanceSq-e.distanceSq)),y.some((t=>l=t.callback(t.feature,t.layer,t.geometry))),l}hasFeatureAtCoordinate(t,e,i,n,r,s){return void 0!==this.forEachFeatureAtCoordinate(t,e,i,n,l.rT,this,r,s)}getMap(){return this.map_}renderFrame(t){(0,h.b0)()}scheduleExpireIconCache(t){d.ue.canExpireCache()&&t.postRenderFunctions.push(m)}}function m(t,e){d.ue.expire()}const v=g;var _=i(8450),y=i(9960),x=i(3984),w=i(5176),b=i(8774),E=i(9438),C=i(8711);const A=class extends v{constructor(t){super(t),this.fontChangeListenerKey_=(0,E.KT)(b.yY,_.A.PROPERTYCHANGE,t.redrawText.bind(t)),this.element_=document.createElement("div");const e=this.element_.style;e.position="absolute",e.width="100%",e.height="100%",e.zIndex="0",this.element_.className=w.XI+" ol-layers";const i=t.getViewport();i.insertBefore(this.element_,i.firstChild||null),this.children_=[],this.renderedVisible_=!0}dispatchRenderEvent(t,e){const i=this.getMap();if(i.hasListener(t)){const n=new y.A(t,void 0,e);i.dispatchEvent(n)}}disposeInternal(){(0,E.JH)(this.fontChangeListenerKey_),this.element_.parentNode.removeChild(this.element_),super.disposeInternal()}renderFrame(t){if(!t)return void(this.renderedVisible_&&(this.element_.style.display="none",this.renderedVisible_=!1));this.calculateMatrices2D(t),this.dispatchRenderEvent(x.A.PRECOMPOSE,t);const e=t.layerStatesArray.sort((function(t,e){return t.zIndex-e.zIndex}));e.some((t=>
2t.layer instanceof o.A&&t.layer.getDeclutter()))&&(t.declutter={});const i=t.viewState;this.children_.length=0;const n=[];let r=null;for(let s=0,o=e.length;s<o;++s){const o=e[s];t.layerIndex=s;const a=o.layer,l=a.getSourceState();if(!(0,f.l)(o,i)||"ready"!=l&&"undefined"!=l){a.unrender();continue}const h=a.render(t,r);h&&(h!==r&&(this.children_.push(h),r=h),n.push(o))}this.declutter(t,n),(0,C.WM)(this.element_,this.children_),this.dispatchRenderEvent(x.A.POSTCOMPOSE,t),this.renderedVisible_||(this.element_.style.display="",this.renderedVisible_=!0),this.scheduleExpireIconCache(t)}declutter(t,e){if(t.declutter){for(let i=e.length-1;i>=0;--i){const n=e[i],r=n.layer;r.getDeclutter()&&r.renderDeclutter(t,n)}e.forEach((e=>e.layer.renderDeferred(t)))}}};var S=i(6837),T=i(8620),I=i(1685),R=i(588),D=i(3530);class M extends I.Ay{constructor(t,e){super(t),this.layer=e}}const L="layers";class O extends T.A{constructor(t){t=t||{};const e=Object.assign({},t);delete e.layers;let i=t.layers;super(e),this.on,this.once,this.un,this.layersListenerKeys_=[],this.listenerKeys_={},this.addChangeListener(L,this.handleLayersChanged_),i?Array.isArray(i)?i=new r.A(i.slice(),{unique:!0}):(0,R.v)("function"==typeof i.getArray,"Expected `layers` to be an array or a `Collection`"):i=new r.A(void 0,{unique:!0}),this.setLayers(i)}handleLayerChange_(){this.changed()}handleLayersChanged_(){this.layersListenerKeys_.forEach(E.JH),this.layersListenerKeys_.length=0;const t=this.getLayers();this.layersListenerKeys_.push((0,E.KT)(t,s.A.ADD,this.handleLayersAdd_,this),(0,E.KT)(t,s.A.REMOVE,this.handleLayersRemove_,this));for(const t in this.listenerKeys_)this.listenerKeys_[t].forEach(E.JH);(0,D.I)(this.listenerKeys_);const e=t.getArray();for(let t=0,i=e.length;t<i;t++){const i=e[t];this.registerLayerListeners_(i),this.dispatchEvent(new M("addlayer",i))}this.changed()}registerLayerListeners_(t){const e=[(0,E.KT)(t,_.A.PROPERTYCHANGE,this.handleLayerChange_,this),(0,E.KT)(t,S.A.CHANGE,this.handleLayerChange_,this)];t instanceof O&&e.push((0,E.KT)(t,"addlayer",this.handleLayerGroupAdd_,this),(0,E.KT)(t,"removelayer",this.handleLayerGroupRemove_,this)),this.listenerKeys_[(0,h.v6)(t)]=e}handleLayerGroupAdd_(t){this.dispatchEvent(new M("addlayer",t.layer))}handleLayerGroupRemove_(t){this.dispatchEvent(new M("removelayer",t.layer))}handleLayersAdd_(t){const e=t.element;this.registerLayerListeners_(e),this.dispatchEvent(new M("addlayer",e)),this.changed()}handleLayersRemove_(t){const e=t.element,i=(0,h.v6)(e);this.listenerKeys_[i].forEach(E.JH),delete this.listenerKeys_[i],this.dispatchEvent(new M("removelayer",e)),this.changed()}getLayers(){return this.get(L)}setLayers(t){const e=this.getLayers();if(e){const t=e.getArray();for(let e=0,i=t.length;e<i;++e)this.dispatchEvent(new M("removelayer",t[e]))}this.set(L,t)}getLayersArray(t){return t=void 0!==t?t:[],this.getLayers().forEach((function(e){e.getLayersArray(t)})),t}getLayerStatesArray(t){const e=void 0!==t?t:[],i=e.length;this.getLayers().forEach((function(t){t.getLayerStatesArray(e)}));const n=this.getLayerState();let r=n.zIndex;t||void 0!==n.zIndex||(r=0);for(let t=i,s=e.length;t<s;t++){const i=e[t];i.opacity*=n.opacity,i.visible=i.visible&&n.visible,i.maxResolution=Math.min(i.maxResolution,n.maxResolution),i.minResolution=Math.max(i.minResolution,n.minResolution),i.minZoom=Math.max(i.minZoom,n.minZoom),i.maxZoom=Math.min(i.maxZoom,n.maxZoom),void 0!==n.extent&&(void 0!==i.extent?i.extent=(0,u._N)(i.extent,n.extent):i.extent=n.extent),void 0===i.zIndex&&(i.zIndex=r)}return e}getSourceState(){return"ready"}}const k=O;class P extends I.Ay{constructor(t,e,i){super(t),this.map=e,this.frameState=void 0!==i?i:null}}const F=P,N=class extends F{constructor(t,e,i,n,r,s){super(t,e,r),this.originalEvent=i,this.pixel_=null,this.coordinate_=null,this.dragging=void 0!==n&&n,this.activePointers=s}get pixel(){return this.pixel_||(this.pixel_=this.map.getEventPixel(this.originalEvent)),this.pixel_}set pixel(t){this.pixel_=t}get coordinate(){return this.coordinate_||(this.coordinate_=this.map.getCoordinateFromPixel(this.pixel)),this.coordinate_}set coordinate(t){this.coordinate_=t}preventDefault(){super.preventDefault(),"preventDefault"in this.originalEvent&&this.originalEvent.preventDefault()}stopPropagation(){super.stopPropagation(),"stopPropagation"in this.originalEvent&&this.originalEvent.stopPropagation()}};var j=i(3445);const $="pointerdown";var G=i(9332),z=i(7771);class q extends G.A{constructor(t,e){super(t),this.map_=t,this.clickTimeoutId_,this.emulateClicks_=!1,this.dragging_=!1,this.dragListenerKeys_=[],this.moveTolerance_=void 0===e?1:e,this.down_=null;const i=this.map_.getViewport();this.activePointers_=[],this.trackedTouches_={},this.element_=i,this.pointerdownListenerKey_=(0,E.KT)(i,$,this.handlePointerDown_,this),this.originalPointerMoveEvent_,this.relayedListenerKey_=(0,E.KT)(i,"pointermove",this.relayMoveEvent_,this),this.boundHandleTouchMove_=this.handleTouchMove_.bind(this),this.element_.addEventListener(S.A.TOUCHMOVE,this.boundHandleTouchMove_,!!z.FT&&{passive:!1})}emulateClick_(t){let e=new N(j.A.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new N(j.A.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout((()=>{this.clickTimeoutId_=void 0;const e=new N(j.A.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}),250)}updateActivePointers_(t){const e=t,i=e.pointerId;if(e.type==j.A.POINTERUP||e.type==j.A.POINTERCANCEL){delete this.trackedTouches_[i];for(const t in this.trackedTouches_)if(this.trackedTouches_[t].target!==e.target){delete this.trackedTouches_[t];break}}else e.type!=j.A.POINTERDOWN&&e.type!=j.A.POINTERMOVE||(this.trackedTouches_[i]=e);this.activePointers_=Object.values(this.trackedTouches_)}handlePointerUp_(t){this.updateActivePointers_(t);const e=new N(j.A.POINTERUP,this.map_,t,void 0,void 0,this.activePointers_);this.dispatchEvent(e),this.emulateClicks_&&!e.defaultPrevented&&!this.dragging_&&this.isMouseActionButton_(t)&&this.emulateClick_(this.down_),0===this.activePointers_.length&&(this.dragListenerKeys_.forEach(E.JH),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null)}isMouseActionButton_(t){return 0===t.button}handlePointerDown_(t){this.emulateClicks_=0===this.activePointers_.length,this.updateActivePointers_(t);const e=new N(j.A.POINTERDOWN,this.map_,t,void 0,void 0,this.activePointers_);
2if(this.dispatchEvent(e),this.down_=new PointerEvent(t.type,t),Object.defineProperty(this.down_,"target",{writable:!1,value:t.target}),0===this.dragListenerKeys_.length){const t=this.map_.getOwnerDocument();this.dragListenerKeys_.push((0,E.KT)(t,j.A.POINTERMOVE,this.handlePointerMove_,this),(0,E.KT)(t,j.A.POINTERUP,this.handlePointerUp_,this),(0,E.KT)(this.element_,j.A.POINTERCANCEL,this.handlePointerUp_,this)),this.element_.getRootNode&&this.element_.getRootNode()!==t&&this.dragListenerKeys_.push((0,E.KT)(this.element_.getRootNode(),j.A.POINTERUP,this.handlePointerUp_,this))}}handlePointerMove_(t){if(this.isMoving_(t)){this.updateActivePointers_(t),this.dragging_=!0;const e=new N(j.A.POINTERDRAG,this.map_,t,this.dragging_,void 0,this.activePointers_);this.dispatchEvent(e)}}relayMoveEvent_(t){this.originalPointerMoveEvent_=t;const e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new N(j.A.POINTERMOVE,this.map_,t,e))}handleTouchMove_(t){const e=this.originalPointerMoveEvent_;e&&!e.defaultPrevented||"boolean"==typeof t.cancelable&&!0!==t.cancelable||t.preventDefault()}isMoving_(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_}disposeInternal(){this.relayedListenerKey_&&((0,E.JH)(this.relayedListenerKey_),this.relayedListenerKey_=null),this.element_.removeEventListener(S.A.TOUCHMOVE,this.boundHandleTouchMove_),this.pointerdownListenerKey_&&((0,E.JH)(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(E.JH),this.dragListenerKeys_.length=0,this.element_=null,super.disposeInternal()}}const W=q;var Y=i(2585);const H="layergroup",B="size",Z="target",X="view",V=1/0,K=class{constructor(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}}clear(){this.elements_.length=0,this.priorities_.length=0,(0,D.I)(this.queuedElements_)}dequeue(){const t=this.elements_,e=this.priorities_,i=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));const n=this.keyFunction_(i);return delete this.queuedElements_[n],i}enqueue(t){(0,R.v)(!(this.keyFunction_(t)in this.queuedElements_),"Tried to enqueue an `element` that was already added to the queue");const e=this.priorityFunction_(t);return e!=V&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)}getCount(){return this.elements_.length}getLeftChildIndex_(t){return 2*t+1}getRightChildIndex_(t){return 2*t+2}getParentIndex_(t){return t-1>>1}heapify_(){let t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)}isEmpty(){return 0===this.elements_.length}isKeyQueued(t){return t in this.queuedElements_}isQueued(t){return this.isKeyQueued(this.keyFunction_(t))}siftUp_(t){const e=this.elements_,i=this.priorities_,n=e.length,r=e[t],s=i[t],o=t;for(;t<n>>1;){const r=this.getLeftChildIndex_(t),s=this.getRightChildIndex_(t),o=s<n&&i[s]<i[r]?s:r;e[t]=e[o],i[t]=i[o],t=o}e[t]=r,i[t]=s,this.siftDown_(o,t)}siftDown_(t,e){const i=this.elements_,n=this.priorities_,r=i[e],s=n[e];for(;e>t;){const t=this.getParentIndex_(e);if(!(n[t]>s))break;i[e]=i[t],n[e]=n[t],e=t}i[e]=r,n[e]=s}reprioritize(){const t=this.priorityFunction_,e=this.elements_,i=this.priorities_;let n=0;const r=e.length;let s,o,a;for(o=0;o<r;++o)s=e[o],a=t(s),a==V?delete this.queuedElements_[this.keyFunction_(s)]:(i[n]=a,e[n++]=s);e.length=n,i.length=n,this.heapify_()}};var U=i(1078);const J=class extends K{constructor(t,e){super((function(e){return t.apply(null,e)}),(function(t){return t[0].getKey()})),this.boundHandleTileChange_=this.handleTileChange.bind(this),this.tileChangeCallback_=e,this.tilesLoading_=0,this.tilesLoadingKeys_={}}enqueue(t){const e=super.enqueue(t);return e&&t[0].addEventListener(S.A.CHANGE,this.boundHandleTileChange_),e}getTilesLoading(){return this.tilesLoading_}handleTileChange(t){const e=t.target,i=e.getState();if(i===U.A.LOADED||i===U.A.ERROR||i===U.A.EMPTY){i!==U.A.ERROR&&e.removeEventListener(S.A.CHANGE,this.boundHandleTileChange_);const t=e.getKey();t in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[t],--this.tilesLoading_),this.tileChangeCallback_()}}loadMoreTiles(t,e){let i,n,r,s=0;for(;this.tilesLoading_<t&&s<e&&this.getCount()>0;)n=this.dequeue()[0],r=n.getKey(),i=n.getState(),i!==U.A.IDLE||r in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++s,n.load())}};
2var Q=i(1765),tt=i(2703),et=i(7456),it=i(2898),nt=i(9186),rt=i(6068),st=i(4473),ot=i(4051),at=i(9163),lt=i(7507),ht=i(6856),ct=i(4792),ut=i(8751),dt=i(3711),ft=i(5243),pt=i(6514),gt=i(7083),mt=i(6782),vt=i(4422);function _t(t){t instanceof f.A?t.setMapInternal(null):t instanceof k&&t.getLayers().forEach(_t)}function yt(t,e){if(t instanceof f.A)t.setMapInternal(e);else if(t instanceof k){const i=t.getLayers().getArray();for(let t=0,n=i.length;t<n;++t)yt(i[t],e)}}class xt extends n.A{constructor(t){super(),t=t||{},this.on,this.once,this.un;const e=function(t){let e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);const i={},n=t.layers&&"function"==typeof t.layers.getLayers?t.layers:new k({layers:t.layers});let s,o,a;return i[H]=n,i[Z]=t.target,i[X]=t.view instanceof Q.Ay?t.view:new Q.Ay,void 0!==t.controls&&(Array.isArray(t.controls)?s=new r.A(t.controls.slice()):((0,R.v)("function"==typeof t.controls.getArray,"Expected `controls` to be an array or an `ol/Collection.js`"),s=t.controls)),void 0!==t.interactions&&(Array.isArray(t.interactions)?o=new r.A(t.interactions.slice()):((0,R.v)("function"==typeof t.interactions.getArray,"Expected `interactions` to be an array or an `ol/Collection.js`"),o=t.interactions)),void 0!==t.overlays?Array.isArray(t.overlays)?a=new r.A(t.overlays.slice()):((0,R.v)("function"==typeof t.overlays.getArray,"Expected `overlays` to be an array or an `ol/Collection.js`"),a=t.overlays):a=new r.A,{controls:s,interactions:o,keyboardEventTarget:e,overlays:a,values:i}}(t);this.renderComplete_,this.loaded_=!0,this.boundHandleBrowserEvent_=this.handleBrowserEvent.bind(this),this.maxTilesLoading_=void 0!==t.maxTilesLoading?t.maxTilesLoading:16,this.pixelRatio_=void 0!==t.pixelRatio?t.pixelRatio:z.cr,this.postRenderTimeoutHandle_,this.animationDelayKey_,this.animationDelay_=this.animationDelay_.bind(this),this.coordinateToPixelTransform_=(0,c.vt)(),this.pixelToCoordinateTransform_=(0,c.vt)(),this.frameIndex_=0,this.frameState_=null,this.previousExtent_=null,this.viewPropertyListenerKey_=null,this.viewChangeListenerKey_=null,this.layerGroupPropertyListenerKeys_=null,this.viewport_=document.createElement("div"),this.viewport_.className="ol-viewport"+("ontouchstart"in window?" ol-touch":""),this.viewport_.style.position="relative",this.viewport_.style.overflow="hidden",this.viewport_.style.width="100%",this.viewport_.style.height="100%",this.overlayContainer_=document.createElement("div"),this.overlayContainer_.style.position="absolute",this.overlayContainer_.style.zIndex="0",this.overlayContainer_.style.width="100%",this.overlayContainer_.style.height="100%",this.overlayContainer_.style.pointerEvents="none",this.overlayContainer_.className="ol-overlaycontainer",this.viewport_.appendChild(this.overlayContainer_),this.overlayContainerStopEvent_=document.createElement("div"),this.overlayContainerStopEvent_.style.position="absolute",this.overlayContainerStopEvent_.style.zIndex="0",this.overlayContainerStopEvent_.style.width="100%",this.overlayContainerStopEvent_.style.height="100%",this.overlayContainerStopEvent_.style.pointerEvents="none",this.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent",this.viewport_.appendChild(this.overlayContainerStopEvent_),this.mapBrowserEventHandler_=null,this.moveTolerance_=t.moveTolerance,this.keyboardEventTarget_=e.keyboardEventTarget,this.targetChangeHandlerKeys_=null,this.targetElement_=null,this.resizeObserver_=new ResizeObserver((()=>this.updateSize())),this.controls=e.controls||function(t){t=t||{};const e=new r.A;return(void 0===t.zoom||t.zoom)&&e.push(new nt.A(t.zoomOptions)),(void 0===t.rotate||t.rotate)&&e.push(new it.A(t.rotateOptions)),(void 0===t.attribution||t.attribution)&&e.push(new et.A(t.attributionOptions)),e}(),this.interactions=e.interactions||function(t){t=t||{};const e=new r.A,i=new ct.A(-.005,.05,100);return(void 0===t.altShiftDragRotate||t.altShiftDragRotate)&&e.push(new ot.A),(void 0===t.doubleClickZoom||t.doubleClickZoom)&&e.push(new rt.A({delta:t.zoomDelta,duration:t.zoomDuration})),(void 0===t.dragPan||t.dragPan)&&e.push(new st.A({onFocusOnly:t.onF
2ocusOnly,kinetic:i})),(void 0===t.pinchRotate||t.pinchRotate)&&e.push(new dt.A),(void 0===t.pinchZoom||t.pinchZoom)&&e.push(new ft.A({duration:t.zoomDuration})),(void 0===t.keyboard||t.keyboard)&&(e.push(new lt.A),e.push(new ht.A({delta:t.zoomDelta,duration:t.zoomDuration}))),(void 0===t.mouseWheelZoom||t.mouseWheelZoom)&&e.push(new ut.A({onFocusOnly:t.onFocusOnly,duration:t.zoomDuration})),(void 0===t.shiftDragZoom||t.shiftDragZoom)&&e.push(new at.A({duration:t.zoomDuration})),e}({onFocusOnly:!0}),this.overlays_=e.overlays,this.overlayIdIndex_={},this.renderer_=null,this.postRenderFunctions_=[],this.tileQueue_=new J(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.addChangeListener(H,this.handleLayerGroupChanged_),this.addChangeListener(X,this.handleViewChanged_),this.addChangeListener(B,this.handleSizeChanged_),this.addChangeListener(Z,this.handleTargetChanged_),this.setProperties(e.values);const i=this;!t.view||t.view instanceof Q.Ay||t.view.then((function(t){i.setView(new Q.Ay(t))})),this.controls.addEventListener(s.A.ADD,(t=>{t.element.setMap(this)})),this.controls.addEventListener(s.A.REMOVE,(t=>{t.element.setMap(null)})),this.interactions.addEventListener(s.A.ADD,(t=>{t.element.setMap(this)})),this.interactions.addEventListener(s.A.REMOVE,(t=>{t.element.setMap(null)})),this.overlays_.addEventListener(s.A.ADD,(t=>{this.addOverlayInternal_(t.element)})),this.overlays_.addEventListener(s.A.REMOVE,(t=>{const e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)})),this.controls.forEach((t=>{t.setMap(this)})),this.interactions.forEach((t=>{t.setMap(this)})),this.overlays_.forEach(this.addOverlayInternal_.bind(this))}addControl(t){this.getControls().push(t)}addInteraction(t){this.getInteractions().push(t)}addLayer(t){this.getLayerGroup().getLayers().push(t)}handleLayerAdd_(t){yt(t.layer,this)}addOverlay(t){this.getOverlays().push(t)}addOverlayInternal_(t){const e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)}disposeInternal(){this.controls.clear(),this.interactions.clear(),this.overlays_.clear(),this.resizeObserver_.disconnect(),this.setTarget(null),super.disposeInternal()}forEachFeatureAtPixel(t,e,i){if(!this.frameState_||!this.renderer_)return;const n=this.getCoordinateFromPixelInternal(t),r=void 0!==(i=void 0!==i?i:{}).hitTolerance?i.hitTolerance:0,s=void 0!==i.layerFilter?i.layerFilter:l.rT,o=!1!==i.checkWrapped;return this.renderer_.forEachFeatureAtCoordinate(n,this.frameState_,r,o,e,null,s,null)}getFeaturesAtPixel(t,e){const i=[];return this.forEachFeatureAtPixel(t,(function(t){i.push(t)}),e),i}getAllLayers(){const t=[];return function e(i){i.forEach((function(i){i instanceof k?e(i.getLayers()):t.push(i)}))}(this.getLayers()),t}hasFeatureAtPixel(t,e){if(!this.frameState_||!this.renderer_)return!1;const i=this.getCoordinateFromPixelInternal(t),n=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:l.rT,r=void 0!==e.hitTolerance?e.hitTolerance:0,s=!1!==e.checkWrapped;return this.renderer_.hasFeatureAtCoordinate(i,this.frameState_,r,s,n,null)}getEventCoordinate(t){return this.getCoordinateFromPixel(this.getEventPixel(t))}getEventCoordinateInternal(t){return this.getCoordinateFromPixelInternal(this.getEventPixel(t))}getEventPixel(t){const e=this.viewport_.getBoundingClientRect(),i=this.getSize(),n=e.width/i[0],r=e.height/i[1],s="changedTouches"in t?t.changedTouches[0]:t;return[(s.clientX-e.left)/n,(s.clientY-e.top)/r]}getTarget(){return this.get(Z)}getTargetElement(){return this.targetElement_}getCoordinateFromPixel(t){return(0,gt.te)(this.getCoordinateFromPixelInternal(t),this.getView().getProjection())}getCoordinateFromPixelInternal(t){const e=this.frameState_;return e?(0,c.Bb)(e.pixelToCoordinateTransform,t.slice()):null}getControls(){return this.controls}getOverlays(){return this.overlays_}getOverlayById(t){const e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null}getInteractions(){return this.interactions}getLayerGroup(){return this.get(H)}setLayers(t){const e=this.getLayerGroup();if(t instanceof r.A)return void e.setLayers(t);const i=e.getLayers();i.clear(),i.extend(t)}
2getLayers(){return this.getLayerGroup().getLayers()}getLoadingOrNotReady(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,i=t.length;e<i;++e){const i=t[e];if(!i.visible)continue;const n=i.layer.getRenderer();if(n&&!n.ready)return!0;const r=i.layer.getSource();if(r&&r.loading)return!0}return!1}getPixelFromCoordinate(t){const e=(0,gt.Ad)(t,this.getView().getProjection());return this.getPixelFromCoordinateInternal(e)}getPixelFromCoordinateInternal(t){const e=this.frameState_;return e?(0,c.Bb)(e.coordinateToPixelTransform,t.slice(0,2)):null}getRenderer(){return this.renderer_}getSize(){return this.get(B)}getView(){return this.get(X)}getViewport(){return this.viewport_}getOverlayContainer(){return this.overlayContainer_}getOverlayContainerStopEvent(){return this.overlayContainerStopEvent_}getOwnerDocument(){const t=this.getTargetElement();return t?t.ownerDocument:document}getTilePriority(t,e,i,n){return function(t,e,i,n,r){if(!t||!(i in t.wantedTiles))return V;if(!t.wantedTiles[i][e.getKey()])return V;const s=t.viewState.center,o=n[0]-s[0],a=n[1]-s[1];return 65536*Math.log(r)+Math.sqrt(o*o+a*a)/r}(this.frameState_,t,e,i,n)}handleBrowserEvent(t,e){e=e||t.type;const i=new N(e,this,t);this.handleMapBrowserEvent(i)}handleMapBrowserEvent(t){if(!this.frameState_)return;const e=t.originalEvent,i=e.type;if(i===$||i===S.A.WHEEL||i===S.A.KEYDOWN){const t=this.getOwnerDocument(),i=this.viewport_.getRootNode?this.viewport_.getRootNode():t,n=e.target;if(this.overlayContainerStopEvent_.contains(n)||!(i===t?t.documentElement:i).contains(n))return}if(t.frameState=this.frameState_,!1!==this.dispatchEvent(t)){const e=this.getInteractions().getArray().slice();for(let i=e.length-1;i>=0;i--){const n=e[i];if(n.getMap()===this&&n.getActive()&&this.getTargetElement()&&(!n.handleEvent(t)||t.propagationStopped))break}}}handlePostRender(){const t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){let i=this.maxTilesLoading_,n=i;if(t){const e=t.viewHints;if(e[tt.A.ANIMATING]||e[tt.A.INTERACTING]){const e=Date.now()-t.time>8;i=e?0:8,n=e?0:2}}e.getTilesLoading()<i&&(e.reprioritize(),e.loadMoreTiles(i,n))}t&&this.renderer_&&!t.animate&&(!0===this.renderComplete_?(this.hasListener(x.A.RENDERCOMPLETE)&&this.renderer_.dispatchRenderEvent(x.A.RENDERCOMPLETE,t),!1===this.loaded_&&(this.loaded_=!0,this.dispatchEvent(new F(Y.A.LOADEND,this,t)))):!0===this.loaded_&&(this.loaded_=!1,this.dispatchEvent(new F(Y.A.LOADSTART,this,t))));const i=this.postRenderFunctions_;for(let e=0,n=i.length;e<n;++e)i[e](this,t);i.length=0}handleSizeChanged_(){this.getView()&&!this.getView().getAnimating()&&this.getView().resolveConstraints(0),this.render()}handleTargetChanged_(){if(this.mapBrowserEventHandler_){for(let t=0,e=this.targetChangeHandlerKeys_.length;t<e;++t)(0,E.JH)(this.targetChangeHandlerKeys_[t]);this.targetChangeHandlerKeys_=null,this.viewport_.removeEventListener(S.A.CONTEXTMENU,this.boundHandleBrowserEvent_),this.viewport_.removeEventListener(S.A.WHEEL,this.boundHandleBrowserEvent_),this.mapBrowserEventHandler_.dispose(),this.mapBrowserEventHandler_=null,(0,C.bf)(this.viewport_)}if(this.targetElement_){this.resizeObserver_.unobserve(this.targetElement_);const t=this.targetElement_.getRootNode();t instanceof ShadowRoot&&this.resizeObserver_.unobserve(t.host),this.setSize(void 0)}const t=this.getTarget(),e="string"==typeof t?document.getElementById(t):t;if(this.targetElement_=e,e){e.appendChild(this.viewport_),this.renderer_||(this.renderer_=new A(this)),this.mapBrowserEventHandler_=new W(this,this.moveTolerance_);for(const t in j.A)this.mapBrowserEventHandler_.addEventListener(j.A[t],this.handleMapBrowserEvent.bind(this));this.viewport_.addEventListener(S.A.CONTEXTMENU,this.boundHandleBrowserEvent_,!1),this.viewport_.addEventListener(S.A.WHEEL,this.boundHandleBrowserEvent_,!!z.FT&&{passive:!1});const t=this.keyboardEventTarget_?this.keyboardEventTarget_:e;this.targetChangeHandlerKeys_=[(0,E.KT)(t,S.A.KEYDOWN,this.handleBrowserEvent,this),(0,E.KT)(t,S.A.KEYPRESS,this.handleBrowserEvent,this)];const i=e.getRootNode();i instanceof ShadowRoot&&this.resizeObserver_.observe(i.host),this.resizeObserver_.observe(e)}else this.renderer_&&(clearTimeout(this.postRenderTimeoutHandle_),this.postRenderTimeoutHandle_=void 0,this.postRenderFunctions_.length=0,this.renderer_.dispose(),this.renderer_=null),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0);this.updateSize()}handleTileChange_(){this.render()}handleViewPropertyChanged_(){this.render()}handleViewChanged_(){this.viewPropertyListenerKey_&&((0,E.JH)(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&((0,E.JH)(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);const t=this.getView();t&&(this.updateViewportSize_(this.getSize()),this.viewPropertyListenerKey_=(0,E.KT)(t,_.A.PROPERTYCHANGE,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=(0,E.KT)(t,S.A.CHANGE,this.handleViewPropertyChanged_,this),t.resolve
2Constraints(0)),this.render()}handleLayerGroupChanged_(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(E.JH),this.layerGroupPropertyListenerKeys_=null);const t=this.getLayerGroup();t&&(this.handleLayerAdd_(new M("addlayer",t)),this.layerGroupPropertyListenerKeys_=[(0,E.KT)(t,_.A.PROPERTYCHANGE,this.render,this),(0,E.KT)(t,S.A.CHANGE,this.render,this),(0,E.KT)(t,"addlayer",this.handleLayerAdd_,this),(0,E.KT)(t,"removelayer",this.handleLayerRemove_,this)]),this.render()}isRendered(){return!!this.frameState_}animationDelay_(){this.animationDelayKey_=void 0,this.renderFrame_(Date.now())}renderSync(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()}redrawText(){const t=this.getLayerGroup().getLayerStatesArray();for(let e=0,i=t.length;e<i;++e){const i=t[e].layer;i.hasRenderer()&&i.getRenderer().handleFontsChanged()}}render(){this.renderer_&&void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))}removeControl(t){return this.getControls().remove(t)}removeInteraction(t){return this.getInteractions().remove(t)}removeLayer(t){return this.getLayerGroup().getLayers().remove(t)}handleLayerRemove_(t){_t(t.layer)}removeOverlay(t){return this.getOverlays().remove(t)}renderFrame_(t){const e=this.getSize(),i=this.getView(),n=this.frameState_;let r=null;if(void 0!==e&&(0,mt.Ie)(e)&&i&&i.isDef()){const n=i.getHints(this.frameState_?this.frameState_.viewHints:void 0),s=i.getState();if(r={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,declutter:null,extent:(0,u.Bg)(s.center,s.resolution,s.rotation,e),index:this.frameIndex_++,layerIndex:0,layerStatesArray:this.getLayerGroup().getLayerStatesArray(),pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:e,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:s,viewHints:n,wantedTiles:{},mapId:(0,h.v6)(this),renderTargets:{}},s.nextCenter&&s.nextResolution){const t=isNaN(s.nextRotation)?s.rotation:s.nextRotation;r.nextExtent=(0,u.Bg)(s.nextCenter,s.nextResolution,t,e)}}this.frameState_=r,this.renderer_.renderFrame(r),r&&(r.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,r.postRenderFunctions),n&&(!this.previousExtent_||!(0,u.Im)(this.previousExtent_)&&!(0,u.aI)(r.extent,this.previousExtent_))&&(this.dispatchEvent(new F(Y.A.MOVESTART,this,n)),this.previousExtent_=(0,u.aZ)(this.previousExtent_)),this.previousExtent_&&!r.viewHints[tt.A.ANIMATING]&&!r.viewHints[tt.A.INTERACTING]&&!(0,u.aI)(r.extent,this.previousExtent_)&&(this.dispatchEvent(new F(Y.A.MOVEEND,this,r)),(0,u.o8)(r.extent,this.previousExtent_))),this.dispatchEvent(new F(Y.A.POSTRENDER,this,r)),this.renderComplete_=this.hasListener(Y.A.LOADSTART)||this.hasListener(Y.A.LOADEND)||this.hasListener(x.A.RENDERCOMPLETE)?!this.tileQueue_.getTilesLoading()&&!this.tileQueue_.getCount()&&!this.getLoadingOrNotReady():void 0,this.postRenderTimeoutHandle_||(this.postRenderTimeoutHandle_=setTimeout((()=>{this.postRenderTimeoutHandle_=void 0,this.handlePostRender()}),0))}setLayerGroup(t){const e=this.getLayerGroup();e&&this.handleLayerRemove_(new M("removelayer",e)),this.set(H,t)}setSize(t){this.set(B,t)}setTarget(t){this.set(Z,t)}setView(t){if(!t||t instanceof Q.Ay)return void this.set(X,t);this.set(X,new Q.Ay);const e=this;t.then((function(t){e.setView(new Q.Ay(t))}))}updateSize(){const t=this.getTargetElement();let e;if(t){const i=getComputedStyle(t),n=t.offsetWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight)-parseFloat(i.borderRightWidth),r=t.offsetHeight-parseFloat(i.borderTopWidth)-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom)-parseFloat(i.borderBottomWidth);isNaN(n)||isNaN(r)||(e=[n,r],!(0,mt.Ie)(e)&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)&&(0,vt.R8)("No map visible because the map container's width or height are 0."))}const i=this.getSize();!e||i&&(0,pt.aI)(e,i)||(this.setSize(e),this.updateViewportSize_(e))}updateViewportSize_(t){const e=this.getView();e&&e.setViewportSize(t)}
2}const wt=xt},5243:(t,e,i)=>{"use strict";i.d(e,{A:()=>o});var n=i(1409),r=i(4238);class s extends n.A{constructor(t){const e=t=t||{};e.stopDown||(e.stopDown=r.W8),super(e),this.anchor_=null,this.duration_=void 0!==t.duration?t.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}handleDragEvent(t){let e=1;const i=this.targetPointers[0],r=this.targetPointers[1],s=i.clientX-r.clientX,o=i.clientY-r.clientY,a=Math.sqrt(s*s+o*o);void 0!==this.lastDistance_&&(e=this.lastDistance_/a),this.lastDistance_=a;const l=t.map,h=l.getView();1!=e&&(this.lastScaleDelta_=e),this.anchor_=l.getCoordinateFromPixelInternal(l.getEventPixel((0,n.v)(this.targetPointers))),l.render(),h.adjustResolutionInternal(e,this.anchor_)}handleUpEvent(t){if(this.targetPointers.length<2){const e=t.map.getView(),i=this.lastScaleDelta_>1?1:-1;return e.endInteraction(this.duration_,i),!1}return!0}handleDownEvent(t){if(this.targetPointers.length>=2){const e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().beginInteraction(),!0}return!1}}const o=/^(217|331)$/.test(i.j)?s:null},5296:(t,e,i)=>{"use strict";i.d(e,{Ay:()=>b,VY:()=>E});var n=i(4774),r=i(1597);function s(t,e,i,n,s,o,a){const l=t[e],h=t[e+1],c=t[i]-l,u=t[i+1]-h;let d;if(0===c&&0===u)d=e;else{const f=((s-l)*c+(o-h)*u)/(c*c+u*u);if(f>1)d=i;else{if(f>0){for(let s=0;s<n;++s)a[s]=(0,r.Cc)(t[e+s],t[i+s],f);return void(a.length=n)}d=e}}for(let e=0;e<n;++e)a[e]=t[d+e];a.length=n}function o(t,e,i,n,s){let o=t[e],a=t[e+1];for(e+=n;e<i;e+=n){const i=t[e],n=t[e+1],l=(0,r.hG)(o,a,i,n);l>s&&(s=l),o=i,a=n}return s}function a(t,e,i,n,o,a,l,h,c,u,d){if(e==i)return u;let f,p;if(0===o){if(p=(0,r.hG)(l,h,t[e],t[e+1]),p<u){for(f=0;f<n;++f)c[f]=t[e+f];return c.length=n,p}return u}d=d||[NaN,NaN];let g=e+n;for(;g<i;)if(s(t,g-n,g,n,l,h,d),p=(0,r.hG)(l,h,d[0],d[1]),p<u){for(u=p,f=0;f<n;++f)c[f]=d[f];c.length=n,g+=n}else g+=n*Math.max((Math.sqrt(p)-Math.sqrt(u))/o|0,1);if(a&&(s(t,i-n,e,n,l,h,d),p=(0,r.hG)(l,h,d[0],d[1]),p<u)){for(u=p,f=0;f<n;++f)c[f]=d[f];c.length=n}return u}var l=i(915),h=i(2497),c=i(3671),u=i(6361);function d(t,e,i,n){let r=0,s=t[i-n],o=t[i-n+1];for(;e<i;e+=n){const i=t[e],n=t[e+1];r+=o*i-s*n,s=i,o=n}return r/2}class f extends n.Ay{constructor(t,e){super(),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===e||Array.isArray(t[0])?this.setCoordinates(t,e):this.setFlatCoordinates(e,t)}clone(){return new f(this.flatCoordinates.slice(),this.layout)}closestPointXY(t,e,i,n){return n<(0,l.Ld)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(o(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),a(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,i,n))}getArea(){return d(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getCoordinates(){return(0,u.n2)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)}getSimplifiedGeometryInternal(t){const e=[];return e.length=(0,c.P4)(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e,0),new f(e,"XY")}getType(){return"LinearRing"}intersectsExtent(t){return!1}setCoordinates(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=(0,h.z2)(this.flatCoordinates,0,t,this.stride),this.changed()}}const p=f;var g=i(4294),m=i(6514),v=i(2616),_=i(4350),y=i(2913),x=i(2845);class w extends n.Ay{constructor(t,e,i){super(),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,void 0!==e&&i?(this.setFlatCoordinates(e,t),this.ends_=i):this.setCoordinates(t,e)}appendLinearRing(t){this.flatCoordinates?(0,m.X$)(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()}clone(){const t=new w(this.flatCoordinates.slice(),this.layout,this.ends_.slice());return t.applyProperties(this),t}closestPointXY(t,e,i,n){return n<(0,l.Ld)(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(function(t,e,
2i,n,r){for(let s=0,a=i.length;s<a;++s){const a=i[s];r=o(t,e,a,n,r),e=a}return r}(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),function(t,e,i,n,r,s,o,l,h,c,u){u=u||[NaN,NaN];for(let d=0,f=i.length;d<f;++d){const f=i[d];c=a(t,e,f,n,r,s,o,l,h,c,u),e=f}return c}(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,i,n))}containsXY(t,e){return(0,x.zb)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)}getArea(){return function(t,e,i,n){let r=0;for(let s=0,o=i.length;s<o;++s){const o=i[s];r+=d(t,e,o,n),e=o}return r}(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)}getCoordinates(t){let e;return void 0!==t?(e=this.getOrientedFlatCoordinates().slice(),(0,y.ug)(e,0,this.ends_,this.stride,t)):e=this.flatCoordinates,(0,u.cD)(e,0,this.ends_,this.stride)}getEnds(){return this.ends_}getFlatInteriorPoint(){if(this.flatInteriorPointRevision_!=this.getRevision()){const t=(0,l.q1)(this.getExtent());this.flatInteriorPoint_=(0,v.J)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_}getInteriorPoint(){return new g.A(this.getFlatInteriorPoint(),"XYM")}getLinearRingCount(){return this.ends_.length}getLinearRing(t){return t<0||this.ends_.length<=t?null:new p(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)}getLinearRings(){const t=this.layout,e=this.flatCoordinates,i=this.ends_,n=[];let r=0;for(let s=0,o=i.length;s<o;++s){const o=i[s],a=new p(e.slice(r,o),t);n.push(a),r=o}return n}getOrientedFlatCoordinates(){if(this.orientedRevision_!=this.getRevision()){const t=this.flatCoordinates;(0,y.PA)(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=(0,y.ug)(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_}getSimplifiedGeometryInternal(t){const e=[],i=[];return e.length=(0,c.Hg)(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),e,0,i),new w(e,"XY",i)}getType(){return"Polygon"}intersectsExtent(t){return(0,_.HT)(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)}setCoordinates(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);const i=(0,h.KG)(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===i.length?0:i[i.length-1],this.changed()}}const b=w;function E(t){if((0,l.Im)(t))throw new Error("Cannot create polygon from empty extent");const e=t[0],i=t[1],n=t[2],r=t[3],s=[e,i,e,r,n,r,n,i,e,i];return new w(s,"XY",[s.length])}},5332:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",MAX_ZOOM:"maxZoom",MIN_ZOOM:"minZoom",SOURCE:"source",MAP:"map"}},5341:function(t){t.exports=function(){"use strict";function t(t,n,r,s,o){!function t(i,n,r,s,o){for(;s>r;){if(s-r>600){var a=s-r+1,l=n-r+1,h=Math.log(a),c=.5*Math.exp(2*h/3),u=.5*Math.sqrt(h*c*(a-c)/a)*(l-a/2<0?-1:1);t(i,n,Math.max(r,Math.floor(n-l*c/a+u)),Math.min(s,Math.floor(n+(a-l)*c/a+u)),o)}var d=i[n],f=r,p=s;for(e(i,r,n),o(i[s],d)>0&&e(i,r,s);f<p;){for(e(i,f,p),f++,p--;o(i[f],d)<0;)f++;for(;o(i[p],d)>0;)p--}0===o(i[r],d)?e(i,r,p):e(i,++p,s),p<=n&&(r=p+1),n<=p&&(s=p-1)}}(t,n,r||0,s||t.length-1,o||i)}function e(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function i(t,e){return t<e?-1:t>e?1:0}var n=function(t){void 0===t&&(t=9),this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()};function r(t,e,i){if(!i)return e.indexOf(t);for(var n=0;n<e.length;n++)if(i(t,e[n]))return n;return-1}function s(t,e){o(t,0,t.children.length,e,t)}function o(t,e,i,n,r){r||(r=p(null)),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(var s=e;s<i;s++){var o=t.children[s];a(r,t.leaf?n(o):o)}return r}function a(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function l(t,e){return t.minX-e.minX}function h(t,e){return t.minY-e.minY}
vendor: 4,271 bytes, line 2
2function c(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function u(t){return t.maxX-t.minX+(t.maxY-t.minY)}function d(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function f(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function p(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(e,i,n,r,s){for(var o=[i,n];o.length;)if(!((n=o.pop())-(i=o.pop())<=r)){var a=i+Math.ceil((n-i)/r/2)*r;t(e,a,i,n,s),o.push(i,a,a,n)}}return n.prototype.all=function(){return this._all(this.data,[])},n.prototype.search=function(t){var e=this.data,i=[];if(!f(t,e))return i;for(var n=this.toBBox,r=[];e;){for(var s=0;s<e.children.length;s++){var o=e.children[s],a=e.leaf?n(o):o;f(t,a)&&(e.leaf?i.push(o):d(t,a)?this._all(o,i):r.push(o))}e=r.pop()}return i},n.prototype.collides=function(t){var e=this.data;if(!f(t,e))return!1;for(var i=[];e;){for(var n=0;n<e.children.length;n++){var r=e.children[n],s=e.leaf?this.toBBox(r):r;if(f(t,s)){if(e.leaf||d(t,s))return!0;i.push(r)}}e=i.pop()}return!1},n.prototype.load=function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0;e<t.length;e++)this.insert(t[e]);return this}var i=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===i.height)this._splitRoot(this.data,i);else{if(this.data.height<i.height){var n=this.data;this.data=i,i=n}this._insert(i,this.data.height-i.height-1,!0)}else this.data=i;return this},n.prototype.insert=function(t){return t&&this._insert(t,this.data.height-1),this},n.prototype.clear=function(){return this.data=p([]),this},n.prototype.remove=function(t,e){if(!t)return this;for(var i,n,s,o=this.data,a=this.toBBox(t),l=[],h=[];o||l.length;){if(o||(o=l.pop(),n=l[l.length-1],i=h.pop(),s=!0),o.leaf){var c=r(t,o.children,e);if(-1!==c)return o.children.splice(c,1),l.push(o),this._condense(l),this}s||o.leaf||!d(o,a)?n?(i++,o=n.children[i],s=!1):o=null:(l.push(o),h.push(i),i=0,n=o,o=o.children[0])}return this},n.prototype.toBBox=function(t){return t},n.prototype.compareMinX=function(t,e){return t.minX-e.minX},n.prototype.compareMinY=function(t,e){return t.minY-e.minY},n.prototype.toJSON=function(){return this.data},n.prototype.fromJSON=function(t){return this.data=t,this},n.prototype._all=function(t,e){for(var i=[];t;)t.leaf?e.push.apply(e,t.children):i.push.apply(i,t.children),t=i.pop();return e},n.prototype._build=function(t,e,i,n){var r,o=i-e+1,a=this._maxEntries;if(o<=a)return s(r=p(t.slice(e,i+1)),this.toBBox),r;n||(n=Math.ceil(Math.log(o)/Math.log(a)),a=Math.ceil(o/Math.pow(a,n-1))),(r=p([])).leaf=!1,r.height=n;var l=Math.ceil(o/a),h=l*Math.ceil(Math.sqrt(a));g(t,e,i,h,this.compareMinX);for(var c=e;c<=i;c+=h){var u=Math.min(c+h-1,i);g(t,c,u,l,this.compareMinY);for(var d=c;d<=u;d+=l){var f=Math.min(d+l-1,u);r.children.push(this._build(t,d,f,n-1))}}return s(r,this.toBBox),r},n.prototype._chooseSubtree=function(t,e,i,n){for(;n.push(e),!e.leaf&&n.length-1!==i;){for(var r=1/0,s=1/0,o=void 0,a=0;a<e.children.length;a++){var l=e.children[a],h=c(l),u=(d=t,f=l,(Math.max(f.maxX,d.maxX)-Math.min(f.minX,d.minX))*(Math.max(f.maxY,d.maxY)-Math.min(f.minY,d.minY))-h);u<s?(s=u,r=h<r?h:r,o=l):u===s&&h<r&&(r=h,o=l)}e=o||e.children[0]}var d,f;return e},n.prototype._insert=function(t,e,i){var n=i?t:this.toBBox(t),r=[],s=this._chooseSubtree(n,this.data,e,r);for(s.children.push(t),a(s,n);e>=0&&r[e].children.length>this._maxEntries;)this._split(r,e),e--;this._adjustParentBBoxes(n,r,e)},n.prototype._split=function(t,e){var i=t[e],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);var o=this._chooseSplitIndex(i,r,n),a=p(i.children.splice(o,i.children.length-o));a.height=i.height,a.leaf=i.leaf,s(i,this.toBBox),s(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)},n.prototype._splitRoot=function(t,e){this.data=p([t,e]),this.data.height=t.height+1,this.data.leaf=!1,s(this.data,this.toBBox)},n.prototype._chooseSplitIndex=function(t,e,i){for(var n,r,s,a,l,h,u,d=1/0,f=1/0,p=e;p<=i-e;p++){var g=o(t,0,p,this.toBBox),m=o(t,p,i,this.toBBox),v=(r=g,s=m,void 0,void 0,void 0,void 0,a=Math.max(r.minX,s.minX),l=Math.max(r.minY,s.minY),h=Math.min(r.maxX,s.maxX),u=Math.min(r.maxY,s.maxY),Math.max(0,h-a)*Math.max(0,u-l)),_=c(g)+c(m);
2v<d?(d=v,n=p,f=_<f?_:f):v===d&&_<f&&(f=_,n=p)}return n||i-e},n.prototype._chooseSplitAxis=function(t,e,i){var n=t.leaf?this.compareMinX:l,r=t.leaf?this.compareMinY:h;this._allDistMargin(t,e,i,n)<this._allDistMargin(t,e,i,r)&&t.children.sort(n)},n.prototype._allDistMargin=function(t,e,i,n){t.children.sort(n);for(var r=this.toBBox,s=o(t,0,e,r),l=o(t,i-e,i,r),h=u(s)+u(l),c=e;c<i-e;c++){var d=t.children[c];a(s,t.leaf?r(d):d),h+=u(s)}for(var f=i-e-1;f>=e;f--){var p=t.children[f];a(l,t.leaf?r(p):p),h+=u(l)}return h},n.prototype._adjustParentBBoxes=function(t,e,i){for(var n=i;n>=0;n--)a(e[n],t)},n.prototype._condense=function(t){for(var e=t.length-1,i=void 0;e>=0;e--)0===t[e].children.length?e>0?(i=t[e-1].children).splice(i.indexOf(t[e]),1):this.clear():s(t[e],this.toBBox)},n}()},5397:(t,e,i)=>{"use strict";var n=i(7055),r=i(7750);t.exports=function(t){return n(r(t))}},5458:(t,e,i)=>{var n,r,s;r=[i(4692)],void 0===(s="function"==typeof(n=function(t){var e=function(){if(t&&t.fn&&t.fn.select2&&t.fn.select2.amd)var e=t.fn.select2.amd;var i,n,r;return e&&e.requirejs||(e?n=e:e={},function(t){var e,s,o,a,l={},h={},c={},u={},d=Object.prototype.hasOwnProperty,f=[].slice,p=/\.js$/;function g(t,e){return d.call(t,e)}function m(t,e){var i,n,r,s,o,a,l,h,u,d,f,g=e&&e.split("/"),m=c.map,v=m&&m["*"]||{};if(t){for(o=(t=t.split("/")).length-1,c.nodeIdCompat&&p.test(t[o])&&(t[o]=t[o].replace(p,"")),"."===t[0].charAt(0)&&g&&(t=g.slice(0,g.length-1).concat(t)),u=0;u<t.length;u++)if("."===(f=t[u]))t.splice(u,1),u-=1;else if(".."===f){if(0===u||1===u&&".."===t[2]||".."===t[u-1])continue;u>0&&(t.splice(u-1,2),u-=2)}t=t.join("/")}if((g||v)&&m){for(u=(i=t.split("/")).length;u>0;u-=1){if(n=i.slice(0,u).join("/"),g)for(d=g.length;d>0;d-=1)if((r=m[g.slice(0,d).join("/")])&&(r=r[n])){s=r,a=u;break}if(s)break;!l&&v&&v[n]&&(l=v[n],h=u)}!s&&l&&(s=l,a=h),s&&(i.splice(0,a,s),t=i.join("/"))}return t}function v(e,i){return function(){var n=f.call(arguments,0);return"string"!=typeof n[0]&&1===n.length&&n.push(null),s.apply(t,n.concat([e,i]))}}function _(t){return function(e){l[t]=e}}function y(i){if(g(h,i)){var n=h[i];delete h[i],u[i]=!0,e.apply(t,n)}if(!g(l,i)&&!g(u,i))throw new Error("No "+i);return l[i]}function x(t){var e,i=t?t.indexOf("!"):-1;return i>-1&&(e=t.substring(0,i),t=t.substring(i+1,t.length)),[e,t]}function w(t){return t?x(t):[]}function b(t){return function(){return c&&c.config&&c.config[t]||{}}}o=function(t,e){var i,n,r=x(t),s=r[0],o=e[1];return t=r[1],s&&(i=y(s=m(s,o))),s?t=i&&i.normalize?i.normalize(t,(n=o,function(t){return m(t,n)})):m(t,o):(s=(r=x(t=m(t,o)))[0],t=r[1],s&&(i=y(s))),{f:s?s+"!"+t:t,n:t,pr:s,p:i}},a={require:function(t){return v(t)},exports:function(t){var e=l[t];return void 0!==e?e:l[t]={}},module:function(t){return{id:t,uri:"",exports:l[t],config:b(t)}}},e=function(e,i,n,r){var s,c,d,f,p,m,x,b=[],E=typeof n;if(m=w(r=r||e),"undefined"===E||"function"===E){for(i=!i.length&&n.length?["require","exports","module"]:i,p=0;p<i.length;p+=1)if("require"===(c=(f=o(i[p],m)).f))b[p]=a.require(e);else if("exports"===c)b[p]=a.exports(e),x=!0;else if("module"===c)s=b[p]=a.module(e);else if(g(l,c)||g(h,c)||g(u,c))b[p]=y(c);else{if(!f.p)throw new Error(e+" missing "+c);f.p.load(f.n,v(r,!0),_(c),{}),b[p]=l[c]}d=n?n.apply(l[e],b):void 0,e&&(s&&s.exports!==t&&s.exports!==l[e]?l[e]=s.exports:d===t&&x||(l[e]=d))}else e&&(l[e]=n)},i=n=s=function(i,n,r,l,h){if("string"==typeof i)return a[i]?a[i](n):y(o(i,w(n)).f);if(!i.splice){if((c=i).deps&&s(c.deps,c.callback),!n)return;n.splice?(i=n,n=r,r=null):i=t}return n=n||function(){},"function"==typeof r&&(r=l,l=h),l?e(t,i,n,r):setTimeout((function(){e(t,i,n,r)}),4),s},s.config=function(t){return s(t)},i._defined=l,(r=function(t,e,i){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");e.splice||(i=e,e=[]),g(l,t)||g(h,t)||(h[t]=[t,e,i])}).amd={jQuery:!0}}(),e.requirejs=i,e.require=n,e.define=r),e.define("almond",(function(){})),e.define("jquery",[],(function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e})),e.define("select2/utils",["jquery"],(function(t){var e={};function i(t){var e=t.prototype,i=[];for(var n in e)"function"==typeof e[n]&&"constructor"!==n&&i.push(n);return i}e.Extend=function(t,e){var i={}.hasOwnProperty;function n(){this.constructor=t}for(var r in e)i.call(e,r)&&(t[r]=e[r]);return n.prototype=e.prototype,t.prototype=new n,t.__super__=e.prototype,t},e.Decorate=function(t,e){var n=i(e),r=i(t);function s(){var i=Array.prototype.unshift,n=e.prototype.constructor.length,r=t.prototype.constructor;n>0&&(i.call(arguments,t.prototype.constructor),r=e.prototype.constructor),r.apply(this,arguments)}e.displayName=t.displayName,s.prototype=new function(){this.constructor=s};for(var o=0;o<r.length;o++){var a=r[o];s.prototype[a]=t.prototype[a]}for(var l=function(t){var i=function(){};t in s.prototype&&(i=s.prototype[t]);var n=e.prototype[t];return function(){return Array.prototype.unshift.call(arguments,i),n.apply(this,arguments)}},h=0;h<n.length;h++){var c=n[h];s.prototype[c]=l(c)}return s};var n=function(){this.listeners={}};n.prototype.on=function(t,e){this.listeners=this.listeners||{},t in this.listeners?this.listeners[t].push(e):this.listeners[t]=[e]},n.prototype.trigger=function(t){var e=Array.prototype.slice,i=e.call(arguments,1
vendor: 5,400 bytes, line 2
2);this.listeners=this.listeners||{},null==i&&(i=[]),0===i.length&&i.push({}),i[0]._type=t,t in this.listeners&&this.invoke(this.listeners[t],e.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},n.prototype.invoke=function(t,e){for(var i=0,n=t.length;i<n;i++)t[i].apply(this,e)},e.Observable=n,e.generateChars=function(t){for(var e="",i=0;i<t;i++)e+=Math.floor(36*Math.random()).toString(36);return e},e.bind=function(t,e){return function(){t.apply(e,arguments)}},e._convertData=function(t){for(var e in t){var i=e.split("-"),n=t;if(1!==i.length){for(var r=0;r<i.length;r++){var s=i[r];(s=s.substring(0,1).toLowerCase()+s.substring(1))in n||(n[s]={}),r==i.length-1&&(n[s]=t[e]),n=n[s]}delete t[e]}}return t},e.hasScroll=function(e,i){var n=t(i),r=i.style.overflowX,s=i.style.overflowY;return(r!==s||"hidden"!==s&&"visible"!==s)&&("scroll"===r||"scroll"===s||n.innerHeight()<i.scrollHeight||n.innerWidth()<i.scrollWidth)},e.escapeMarkup=function(t){var e={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,(function(t){return e[t]}))},e.__cache={};var r=0;return e.GetUniqueElementId=function(t){var i=t.getAttribute("data-select2-id");return null!=i||(i=t.id?"select2-data-"+t.id:"select2-data-"+(++r).toString()+"-"+e.generateChars(4),t.setAttribute("data-select2-id",i)),i},e.StoreData=function(t,i,n){var r=e.GetUniqueElementId(t);e.__cache[r]||(e.__cache[r]={}),e.__cache[r][i]=n},e.GetData=function(i,n){var r=e.GetUniqueElementId(i);return n?e.__cache[r]&&null!=e.__cache[r][n]?e.__cache[r][n]:t(i).data(n):e.__cache[r]},e.RemoveData=function(t){var i=e.GetUniqueElementId(t);null!=e.__cache[i]&&delete e.__cache[i],t.removeAttribute("data-select2-id")},e.copyNonInternalCssClasses=function(t,e){var i=t.getAttribute("class").trim().split(/\s+/);i=i.filter((function(t){return 0===t.indexOf("select2-")}));var n=e.getAttribute("class").trim().split(/\s+/);n=n.filter((function(t){return 0!==t.indexOf("select2-")}));var r=i.concat(n);t.setAttribute("class",r.join(" "))},e})),e.define("select2/results",["jquery","./utils"],(function(t,e){function i(t,e,n){this.$element=t,this.data=n,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=t('<ul class="select2-results__options" role="listbox"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e,e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var i=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=t('<li role="alert" aria-live="assertive" class="select2-results__option"></li>'),r=this.options.get("translations").get(e.message);n.append(i(r(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(t){this.hideLoading();var e=[];if(null!=t.results&&0!==t.results.length){t.results=this.sort(t.results);for(var i=0;i<t.results.length;i++){var n=t.results[i],r=this.option(n);e.push(r)}this.$results.append(e)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(t,e){e.find(".select2-results").append(t)},i.prototype.sort=function(t){return this.options.get("sorter")(t)},i.prototype.highlightFirstItem=function(){var t=this.$results.find(".select2-results__option--selectable"),e=t.filter(".select2-results__option--selected");e.length>0?e.first().trigger("mouseenter"):t.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var i=this;this.data.current((function(n){var r=n.map((function(t){return t.id.toString()}));i.$results.find(".select2-results__option--selectable").each((function(){var i=t(this),n=e.GetData(this,"data"),s=""+n.id;null!=n.element&&n.element.selected||null==n.element&&r.indexOf(s)>-1?(this.classList.add("select2-results__option--selected"),i.attr("aria-selected","true")):(this.classList.remove("select2-results__option--selected"),i.attr("aria-selected","false"))}))}))},i.prototype.showLoading=function(t){this.hideLoading();var e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(t)},i=this.option(e);i.className+=" loading-results",this.$results.prepend(i)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(i){var n=document.createElement("li");n.classList.add("select2-results__option"),n.classList.add("select2-results__option--selectable");var r={role:"option"},s=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;for(var o in(null!=i.element&&s.call(i.element,":disabled")||null==i.element&&i.disabled)&&(r["aria-disabled"]="true",n.classList.remove("select2-results__option--selectable"),n.classList.add("select2-results__option--disabled")),null==i.id&&n.classList.remove("select2-results__option--selectable"),null!=i._resultId&&(n.id=i._resultId),i.title&&(n.title=i.title),i.children&&(r.role="group",r["aria-label"]=i.text,n.classList.remove("select2-results__option--selectable"),n.classList.add("select2-results__option--group")),r){var a=r[o];n.setAttribute(o,a)}
2if(i.children){var l=t(n),h=document.createElement("strong");h.className="select2-results__group",this.template(i,h);for(var c=[],u=0;u<i.children.length;u++){var d=i.children[u],f=this.option(d);c.push(f)}var p=t("<ul></ul>",{class:"select2-results__options select2-results__options--nested",role:"none"});p.append(c),l.append(h),l.append(p)}else this.template(i,n);return e.StoreData(n,"data",i),n},i.prototype.bind=function(i,n){var r=this,s=i.id+"-results";this.$results.attr("id",s),i.on("results:all",(function(t){r.clear(),r.append(t.data),i.isOpen()&&(r.setClasses(),r.highlightFirstItem())})),i.on("results:append",(function(t){r.append(t.data),i.isOpen()&&r.setClasses()})),i.on("query",(function(t){r.hideMessages(),r.showLoading(t)})),i.on("select",(function(){i.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),i.on("unselect",(function(){i.isOpen()&&(r.setClasses(),r.options.get("scrollAfterSelect")&&r.highlightFirstItem())})),i.on("open",(function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()})),i.on("close",(function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")})),i.on("results:toggle",(function(){var t=r.getHighlightedResults();0!==t.length&&t.trigger("mouseup")})),i.on("results:select",(function(){var t=r.getHighlightedResults();if(0!==t.length){var i=e.GetData(t[0],"data");t.hasClass("select2-results__option--selected")?r.trigger("close",{}):r.trigger("select",{data:i})}})),i.on("results:previous",(function(){var t=r.getHighlightedResults(),e=r.$results.find(".select2-results__option--selectable"),i=e.index(t);if(!(i<=0)){var n=i-1;0===t.length&&(n=0);var s=e.eq(n);s.trigger("mouseenter");var o=r.$results.offset().top,a=s.offset().top,l=r.$results.scrollTop()+(a-o);0===n?r.$results.scrollTop(0):a-o<0&&r.$results.scrollTop(l)}})),i.on("results:next",(function(){var t=r.getHighlightedResults(),e=r.$results.find(".select2-results__option--selectable"),i=e.index(t)+1;if(!(i>=e.length)){var n=e.eq(i);n.trigger("mouseenter");var s=r.$results.offset().top+r.$results.outerHeight(!1),o=n.offset().top+n.outerHeight(!1),a=r.$results.scrollTop()+o-s;0===i?r.$results.scrollTop(0):o>s&&r.$results.scrollTop(a)}})),i.on("results:focus",(function(t){t.element[0].classList.add("select2-results__option--highlighted"),t.element[0].setAttribute("aria-selected","true")})),i.on("results:message",(function(t){r.displayMessage(t)})),t.fn.mousewheel&&this.$results.on("mousewheel",(function(t){var e=r.$results.scrollTop(),i=r.$results.get(0).scrollHeight-e+t.deltaY,n=t.deltaY>0&&e-t.deltaY<=0,s=t.deltaY<0&&i<=r.$results.height();n?(r.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):s&&(r.$results.scrollTop(r.$results.get(0).scrollHeight-r.$results.height()),t.preventDefault(),t.stopPropagation())})),this.$results.on("mouseup",".select2-results__option--selectable",(function(i){var n=t(this),s=e.GetData(this,"data");n.hasClass("select2-results__option--selected")?r.options.get("multiple")?r.trigger("unselect",{originalEvent:i,data:s}):r.trigger("close",{}):r.trigger("select",{originalEvent:i,data:s})})),this.$results.on("mouseenter",".select2-results__option--selectable",(function(i){var n=e.GetData(this,"data");r.getHighlightedResults().removeClass("select2-results__option--highlighted").attr("aria-selected","false"),r.trigger("results:focus",{data:n,element:t(this)})}))},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var t=this.getHighlightedResults();if(0!==t.length){var e=this.$results.find(".select2-results__option--selectable").index(t),i=this.$results.offset().top,n=t.offset().top,r=this.$results.scrollTop()+(n-i),s=n-i;r-=2*t.outerHeight(!1),e<=2?this.$results.scrollTop(0):(s>this.$results.outerHeight()||s<0)&&this.$results.scrollTop(r)}},i.prototype.template=function(e,i){var n=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),s=n(e,i);null==s?i.style.display="none":"string"==typeof s?i.innerHTML=r(s):t(i).append(s)},i})),e.define("select2/keys",[],(function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}})),e.define("select2/selection/base",["jquery","../utils","../keys"],(function(t,e,
2i){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var i=t('<span class="select2-selection" role="combobox"  aria-haspopup="true" aria-expanded="false"></span>');return this._tabindex=0,null!=e.GetData(this.$element[0],"old-tabindex")?this._tabindex=e.GetData(this.$element[0],"old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),i.attr("title",this.$element.attr("title")),i.attr("tabindex",this._tabindex),i.attr("aria-disabled","false"),this.$selection=i,i},n.prototype.bind=function(t,e){var n=this,r=t.id+"-results";this.container=t,this.$selection.on("focus",(function(t){n.trigger("focus",t)})),this.$selection.on("blur",(function(t){n._handleBlur(t)})),this.$selection.on("keydown",(function(t){n.trigger("keypress",t),t.which===i.SPACE&&t.preventDefault()})),t.on("results:focus",(function(t){n.$selection.attr("aria-activedescendant",t.data._resultId)})),t.on("selection:update",(function(t){n.update(t.data)})),t.on("open",(function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",r),n._attachCloseHandler(t)})),t.on("close",(function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.trigger("focus"),n._detachCloseHandler(t)})),t.on("enable",(function(){n.$selection.attr("tabindex",n._tabindex),n.$selection.attr("aria-disabled","false")})),t.on("disable",(function(){n.$selection.attr("tabindex","-1"),n.$selection.attr("aria-disabled","true")}))},n.prototype._handleBlur=function(e){var i=this;window.setTimeout((function(){document.activeElement==i.$selection[0]||t.contains(i.$selection[0],document.activeElement)||i.trigger("blur",e)}),1)},n.prototype._attachCloseHandler=function(i){t(document.body).on("mousedown.select2."+i.id,(function(i){var n=t(i.target).closest(".select2");t(".select2.select2-container--open").each((function(){this!=n[0]&&e.GetData(this,"element").select2("close")}))}))},n.prototype._detachCloseHandler=function(e){t(document.body).off("mousedown.select2."+e.id)},n.prototype.position=function(t,e){e.find(".selection").append(t)},n.prototype.destroy=function(){this._detachCloseHandler(this.container)},n.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},n.prototype.isEnabled=function(){return!this.isDisabled()},n.prototype.isDisabled=function(){return this.options.get("disabled")},n})),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(t,e,i,n){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,e),r.prototype.render=function(){var t=r.__super__.render.call(this);return t[0].classList.add("select2-selection--single"),t.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),t},r.prototype.bind=function(t,e){var i=this;r.__super__.bind.apply(this,arguments);var n=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",n).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",n),this.$selection.attr("aria-controls",n),this.$selection.on("mousedown",(function(t){1===t.which&&i.trigger("toggle",{originalEvent:t})})),this.$selection.on("focus",(function(t){})),this.$selection.on("blur",(function(t){})),t.on("focus",(function(e){t.isOpen()||i.$selection.trigger("focus")}))},r.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},r.prototype.display=function(t,e){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(t,e))},r.prototype.selectionContainer=function(){return t("<span></span>")},r.prototype.update=function(t){if(0!==t.length){var e=t[0],i=this.$selection.find(".select2-selection__rendered"),n=this.display(e,i);i.empty().append(n);var r=e.title||e.text;r?i.attr("title",r):i.removeAttr("title")}else this.clear()},r}
2)),e.define("select2/selection/multiple",["jquery","./base","../utils"],(function(t,e,i){function n(t,e){n.__super__.constructor.apply(this,arguments)}return i.Extend(n,e),n.prototype.render=function(){var t=n.__super__.render.call(this);return t[0].classList.add("select2-selection--multiple"),t.html('<ul class="select2-selection__rendered"></ul>'),t},n.prototype.bind=function(e,r){var s=this;n.__super__.bind.apply(this,arguments);var o=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",o),this.$selection.on("click",(function(t){s.trigger("toggle",{originalEvent:t})})),this.$selection.on("click",".select2-selection__choice__remove",(function(e){if(!s.isDisabled()){var n=t(this).parent(),r=i.GetData(n[0],"data");s.trigger("unselect",{originalEvent:e,data:r})}})),this.$selection.on("keydown",".select2-selection__choice__remove",(function(t){s.isDisabled()||t.stopPropagation()}))},n.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},n.prototype.display=function(t,e){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(t,e))},n.prototype.selectionContainer=function(){return t('<li class="select2-selection__choice"><button type="button" class="select2-selection__choice__remove" tabindex="-1"><span aria-hidden="true">&times;</span></button><span class="select2-selection__choice__display"></span></li>')},n.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],n=this.$selection.find(".select2-selection__rendered").attr("id")+"-choice-",r=0;r<t.length;r++){var s=t[r],o=this.selectionContainer(),a=this.display(s,o),l=n+i.generateChars(4)+"-";s.id?l+=s.id:l+=i.generateChars(4),o.find(".select2-selection__choice__display").append(a).attr("id",l);var h=s.title||s.text;h&&o.attr("title",h);var c=this.options.get("translations").get("removeItem"),u=o.find(".select2-selection__choice__remove");u.attr("title",c()),u.attr("aria-label",c()),u.attr("aria-describedby",l),i.StoreData(o[0],"data",s),e.push(o)}this.$selection.find(".select2-selection__rendered").append(e)}},n})),e.define("select2/selection/placeholder",[],(function(){function t(t,e,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i)}return t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.createPlaceholder=function(t,e){var i=this.selectionContainer();i.html(this.display(e)),i[0].classList.add("select2-selection__placeholder"),i[0].classList.remove("select2-selection__choice");var n=e.title||e.text||i.text();return this.$selection.find(".select2-selection__rendered").attr("title",n),i},t.prototype.update=function(t,e){var i=1==e.length&&e[0].id!=this.placeholder.id;if(e.length>1||i)return t.call(this,e);this.clear();var n=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(n)},t})),e.define("select2/selection/allowClear",["jquery","../keys","../utils"],(function(t,e,i){function n(){}return n.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option."),this.$selection.on("mousedown",".select2-selection__clear",(function(t){n._handleClear(t)})),e.on("keypress",(function(t){n._handleKeyboardClear(t,e)}))},n.prototype._handleClear=function(t,e){if(!this.isDisabled()){var n=this.$selection.find(".select2-selection__clear");if(0!==n.length){e.stopPropagation();var r=i.GetData(n[0],"data"),s=this.$element.val();this.$element.val(this.placeholder.id);var o={data:r};if(this.trigger("clear",o),o.prevented)this.$element.val(s);else{for(var a=0;a<r.length;a++)if(o={data:r[a]},this.trigger("unselect",o),o.prevented)return void this.$element.val(s);this.$element.trigger("input").trigger("change"),this.trigger("toggle",{})}}}},n.prototype._handleKeyboardClear=function(t,i,n){n.isOpen()||i.which!=e.DELETE&&i.which!=e.BACKSPACE||this._handleClear(i)},n.prototype.update=function(e,n){if(e.call(this,n),this.$selection.find(".select2-selection__clear").remove(),this.$selection[0].classList.remove("select2-selection--clearable"),!(this.$selection.find(".select2-selection__placeholder").length>0||0===n.length)){var r=this.$selection.find(".select2-selection__rendered").attr("id"),s=this.options.get("translations").get("removeAllItems"),o=t('<button type="button" class="select2-selection__clear" tabindex="-1"><span aria-hidden="true">&times;</span></button>');o.attr("title",s()),o.attr("aria-label",s()),o.attr("aria-describedby",r),i.StoreData(o[0],"data",n),this.$selection.prepend(o),this.$selection[0].classList.add("select2-selection--clearable")}},n})),e.define("select2/selection/search",["jquery","../utils","../keys"],(function(t,e,
2i){function n(t,e,i){t.call(this,e,i)}return n.prototype.render=function(e){var i=this.options.get("translations").get("search"),n=t('<span class="select2-search select2-search--inline"><textarea class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" ></textarea></span>');this.$searchContainer=n,this.$search=n.find("textarea"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",i());var r=e.call(this);return this._transferTabIndex(),r.append(this.$searchContainer),r},n.prototype.bind=function(t,n,r){var s=this,o=n.id+"-results",a=n.id+"-container";t.call(this,n,r),s.$search.attr("aria-describedby",a),n.on("open",(function(){s.$search.attr("aria-controls",o),s.$search.trigger("focus")})),n.on("close",(function(){s.$search.val(""),s.resizeSearch(),s.$search.removeAttr("aria-controls"),s.$search.removeAttr("aria-activedescendant"),s.$search.trigger("focus")})),n.on("enable",(function(){s.$search.prop("disabled",!1),s._transferTabIndex()})),n.on("disable",(function(){s.$search.prop("disabled",!0)})),n.on("focus",(function(t){s.$search.trigger("focus")})),n.on("results:focus",(function(t){t.data._resultId?s.$search.attr("aria-activedescendant",t.data._resultId):s.$search.removeAttr("aria-activedescendant")})),this.$selection.on("focusin",".select2-search--inline",(function(t){s.trigger("focus",t)})),this.$selection.on("focusout",".select2-search--inline",(function(t){s._handleBlur(t)})),this.$selection.on("keydown",".select2-search--inline",(function(t){if(t.stopPropagation(),s.trigger("keypress",t),s._keyUpPrevented=t.isDefaultPrevented(),t.which===i.BACKSPACE&&""===s.$search.val()){var n=s.$selection.find(".select2-selection__choice").last();if(n.length>0){var r=e.GetData(n[0],"data");s.searchRemoveChoice(r),t.preventDefault()}}})),this.$selection.on("click",".select2-search--inline",(function(t){s.$search.val()&&t.stopPropagation()}));var l=document.documentMode,h=l&&l<=11;this.$selection.on("input.searchcheck",".select2-search--inline",(function(t){h?s.$selection.off("input.search input.searchcheck"):s.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(t){if(h&&"input"===t.type)s.$selection.off("input.search input.searchcheck");else{var e=t.which;e!=i.SHIFT&&e!=i.CTRL&&e!=i.ALT&&e!=i.TAB&&s.handleSearch(t)}}))},n.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},n.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},n.prototype.update=function(t,e){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.resizeSearch(),i&&this.$search.trigger("focus")},n.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},n.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="100%";""===this.$search.attr("placeholder")&&(t=.75*(this.$search.val().length+1)+"em"),this.$search.css("width",t)},n})),e.define("select2/selection/selectionCss",["../utils"],(function(t){function e(){}return e.prototype.render=function(e){var i=e.call(this),n=this.options.get("selectionCssClass")||"";return-1!==n.indexOf(":all:")&&(n=n.replace(":all:",""),t.copyNonInternalCssClasses(i[0],this.$element[0])),i.addClass(n),i},e})),e.define("select2/selection/eventRelay",["jquery"],(function(t){function e(){}return e.prototype.bind=function(e,i,n){var r=this,s=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],o=["opening","closing","selecting","unselecting","clearing"];e.call(this,i,n),i.on("*",(function(e,i){if(-1!==s.indexOf(e)){i=i||{};var n=t.Event("select2:"+e,{params:i});r.$element.trigger(n),-1!==o.indexOf(e)&&(i.prevented=n.isDefaultPrevented())}}))},e})),e.define("select2/translation",["jquery","require"],(function(t,e){function i(t){this.dict=t||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(t){return this.dict[t]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(t){if(!(t in i._cache)){var n=e(t);i._cache[t]=n}return new i(i._cache[t])},i})),e.define("select2/diacritics",[],(function(){return{"Ⓐ":"A",A:"A",À:"A",Á:"A",Â:"A",Ầ:"A",á
2º¤:"A",Ẫ:"A",Ẩ:"A",Ã:"A",Ā:"A",Ă:"A",Ằ:"A",Ắ:"A",Ẵ:"A",Ẳ:"A",Ȧ:"A",Ç :"A",Ä:"A",Ǟ:"A",Ả:"A",Å:"A",Ǻ:"A",Ǎ:"A",Ȁ:"A",Ȃ:"A",Ạ:"A",Ậ:"A",Ặ:"A",Ḁ:"A",Ą:"A",Ⱥ:"A",Ɐ:"A",Ꜳ:"AA",Æ:"AE",Ǽ:"AE",Ç¢:"AE",Ꜵ:"AO",Ꜷ:"AU",Ꜹ:"AV",Ꜻ:"AV",Ꜽ:"AY","Ⓑ":"B",ï¼¢:"B",Ḃ:"B",Ḅ:"B",Ḇ:"B",Ƀ:"B",Ƃ:"B",Ɓ:"B","Ⓒ":"C",ï¼£:"C",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",Ç:"C",Ḉ:"C",Ƈ:"C",È»:"C",Ꜿ:"C","Ⓓ":"D",D:"D",Ḋ:"D",Ď:"D",Ḍ:"D",Ḑ:"D",Ḓ:"D",Ḏ:"D",Đ:"D",Ƌ:"D",Ɗ:"D",Ɖ:"D",Ꝺ:"D",DZ:"DZ",DŽ:"DZ",Dz:"Dz",Dž:"Dz","Ⓔ":"E",ï¼¥:"E",È:"E",É:"E",Ê:"E",Ề:"E",Ế:"E",Ễ:"E",Ể:"E",Ẽ:"E",Ē:"E",Ḕ:"E",Ḗ:"E",Ĕ:"E",Ė:"E",Ë:"E",Ẻ:"E",Ě:"E",Ȅ:"E",Ȇ:"E",Ẹ:"E",Ệ:"E",Ȩ:"E",Ḝ:"E",Ę:"E",Ḙ:"E",Ḛ:"E",Ɛ:"E",Ǝ:"E","Ⓕ":"F",F:"F",Ḟ:"F",Ƒ:"F",Ꝼ:"F","Ⓖ":"G",ï¼§:"G",Ç´:"G",Ĝ:"G",Ḡ:"G",Ğ:"G",Ä :"G",Ǧ:"G",Ä¢:"G",Ǥ:"G",Ɠ:"G",Ꞡ:"G",Ᵹ:"G",Ꝿ:"G","Ⓗ":"H",H:"H",Ĥ:"H",Ḣ:"H",Ḧ:"H",Ȟ:"H",Ḥ:"H",Ḩ:"H",Ḫ:"H",Ħ:"H",â±§:"H",â±µ:"H",Ɥ:"H","Ⓘ":"I",I:"I",Ì:"I",Í:"I",Î:"I",Ĩ:"I",Ī:"I",Ĭ:"I",İ:"I",Ï:"I",Ḯ:"I",Ỉ:"I",Ǐ:"I",Ȉ:"I",Ȋ:"I",Ị:"I",Ä®:"I",Ḭ:"I",Ɨ:"I","Ⓙ":"J",J:"J",Ä´:"J",Ɉ:"J","Ⓚ":"K",K:"K",Ḱ:"K",Ǩ:"K",Ḳ:"K",Ķ:"K",Ḵ:"K",Ƙ:"K",Ⱪ:"K",Ꝁ:"K",Ꝃ:"K",Ꝅ:"K",Ꞣ:"K","Ⓛ":"L",L:"L",Ä¿:"L",Ĺ:"L",Ľ:"L",Ḷ:"L",Ḹ:"L",Ä»:"L",Ḽ:"L",Ḻ:"L",Ł:"L",Ƚ:"L",â±¢:"L",â± :"L",Ꝉ:"L",Ꝇ:"L",Ꞁ:"L",LJ:"LJ",Lj:"Lj","Ⓜ":"M",ï¼­:"M",Ḿ:"M",Ṁ:"M",Ṃ:"M",â±®:"M",Ɯ:"M","Ⓝ":"N",ï¼®:"N",Ǹ:"N",Ń:"N",Ñ:"N",Ṅ:"N",Ň:"N",Ṇ:"N",Ņ:"N",Ṋ:"N",Ṉ:"N",È :"N",Ɲ:"N",Ꞑ:"N",Ꞥ:"N",NJ:"NJ",Nj:"Nj","Ⓞ":"O",O:"O",Ò:"O",Ó:"O",Ô:"O",Ồ:"O",Ố:"O",Ỗ:"O",Ổ:"O",Õ:"O",Ṍ:"O",Ȭ:"O",Ṏ:"O",Ō:"O",Ṑ:"O",Ṓ:"O",Ŏ:"O",È®:"O",Ȱ:"O",Ö:"O",Ȫ:"O",Ỏ:"O",Ő:"O",Ǒ:"O",Ȍ:"O",Ȏ:"O",Æ :"O",Ờ:"O",Ớ:"O",á» :"O",Ở:"O",Ợ:"O",Ọ:"O",Ộ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Ɔ:"O",Ɵ:"O",Ꝋ:"O",Ꝍ:"O",Œ:"OE",Æ¢:"OI",Ꝏ:"OO",È¢:"OU","Ⓟ":"P",ï¼°:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P",â±£:"P",Ꝑ:"P",Ꝓ:"P",Ꝕ:"P","Ⓠ":"Q",ï¼±:"Q",Ꝗ:"Q",Ꝙ:"Q",Ɋ:"Q","Ⓡ":"R",ï¼²:"R",Ŕ:"R",Ṙ:"R",Ř:"R",Ȑ:"R",Ȓ:"R",Ṛ:"R",Ṝ:"R",Ŗ:"R",Ṟ:"R",Ɍ:"R",Ɽ:"R",Ꝛ:"R",Ꞧ:"R",Ꞃ:"R","Ⓢ":"S",ï¼³:"S",ẞ:"S",Ś:"S",Ṥ:"S",Ŝ:"S",á¹ :"S",Å :"S",Ṧ:"S",á¹¢:"S",Ṩ:"S",Ș:"S",Ş:"S",â±¾:"S",Ꞩ:"S",Ꞅ:"S","Ⓣ":"T",ï¼´:"T",Ṫ:"T",Ť:"T",Ṭ:"T",Ț:"T",Å¢:"T",á¹°:"T",á¹®:"T",Ŧ:"T",Ƭ:"T",Æ®:"T",Ⱦ:"T",Ꞇ:"T",Ꜩ:"TZ","Ⓤ":"U",ï¼µ:"U",Ù:"U",Ú:"U",Û:"U",Ũ:"U",Ṹ:"U",Ū:"U",Ṻ:"U",Ŭ:"U",Ü:"U",Ǜ:"U",Ǘ:"U",Ǖ:"U",Ǚ:"U",Ủ:"U",Å®:"U",Ű:"U",Ǔ:"U",Ȕ:"U",Ȗ:"U",Ư:"U",Ừ:"U",Ứ:"U",á»®:"U",Ử:"U",á»°:"U",Ụ:"U",á¹²:"U",Ų:"U",á¹¶:"U",á¹´:"U",Ʉ:"U","Ⓥ":"V",ï¼¶:"V",á¹¼:"V",á¹¾:"V",Ʋ:"V",Ꝟ:"V",Ʌ:"V",Ꝡ:"VY","Ⓦ":"W",ï¼·:"W",Ẁ:"W",Ẃ:"W",Å´:"W",Ẇ:"W",Ẅ:"W",Ẉ:"W",â±²:"W","Ⓧ":"X",X:"X",Ẋ:"X",Ẍ:"X","Ⓨ":"Y",ï¼¹:"Y",Ỳ:"Y",Ý:"Y",Ŷ:"Y",Ỹ:"Y",Ȳ:"Y",Ẏ:"Y",Ÿ:"Y",á»¶:"Y",á»´:"Y",Ƴ:"Y",Ɏ:"Y",Ỿ:"Y","Ⓩ":"Z",Z:"Z",Ź:"Z",Ẑ:"Z",Å»:"Z",Ž:"Z",Ẓ:"Z",Ẕ:"Z",Ƶ:"Z",Ȥ:"Z",Ɀ:"Z",Ⱬ:"Z",Ꝣ:"Z","ⓐ":"a",a:"a",ẚ:"a",à:"a",á:"a",â:"a",ầ:"a",ấ:"a",ẫ:"a",ẩ:"a",ã:"a",ā:"a",ă:"a",ằ:"a",ắ:"a",ẵ:"a",ẳ:"a",ȧ:"a",Ç¡:"a",ä:"a",ǟ:"a",ả:"a",Ã¥:"a",Ç»:"a",ǎ:"a",ȁ:"a",ȃ:"a",ạ:"a",ậ:"a",ặ:"a",ḁ:"a",ą:"a",â±¥:"a",ɐ:"a",ꜳ:"aa",æ:"ae",ǽ:"ae",Ç£:"ae",ꜵ:"ao",ꜷ:"au",ꜹ:"av",ꜻ:"av",ꜽ:"ay","ⓑ":"b",b:"b",ḃ:"b",ḅ:"b",ḇ:"b",ƀ:"b",ƃ:"b",ɓ:"b","ⓒ":"c",c:"c",ć:"c",ĉ:"c",ċ:"c",č:"c",ç:"c",ḉ:"c",ƈ:"c",ȼ:"c",ꜿ:"c",ↄ:"c","ⓓ":"d",d:"d",ḋ:"d",ď:"d",ḍ:"d",ḑ:"d",ḓ:"d",ḏ:"d",đ:"d",ƌ:"d",ɖ:"d",ɗ:"d",ꝺ:"d",dz:"dz",dž:"dz","ⓔ":"e",e:"e",è:"e",é:"e",ê:"e",ề:"e",ế:"e",ễ:"e",ể:"e",ẽ:"e",ē:"e",ḕ:"e",ḗ:"e",ĕ:"e",ė:"e",ë:"e",ẻ:"e",ě:"e",ȅ:"e",ȇ:"e",ẹ:"e",ệ:"e",È©:"e",ḝ:"e",ę:"e",ḙ:"e",ḛ:"e",ɇ:"e",ɛ:"e",ǝ:"e","ⓕ":"f",f:"f",ḟ:"f",ƒ:"f",ꝼ:"f","ⓖ":"g",g:"g",ǵ:"g",ĝ:"g",ḡ:"g",ğ:"g",Ä¡:"g",ǧ:"g",Ä£:"g",Ç¥:"g",É :"g",ꞡ:"g",áµ¹:"g",ꝿ:"g","ⓗ":"h",h:"h",Ä¥:"h",ḣ:"h",ḧ:"h",ȟ:"h",ḥ:"h",ḩ:"h",ḫ:"h",ẖ:"h",ħ:"h",ⱨ:"h",â±¶:"h",É¥:"h",ƕ:"hv","ⓘ":"i",i:"i",ì:"i",í:"i",î:"i",Ä©:"i",Ä«:"i",Ä­:"i",ï:"i",ḯ:"i",ỉ:"i",ǐ:"i",ȉ:"i",ȋ:"i",ị:"i",į:"i",ḭ:"i",ɨ:"i",ı:"i","ⓙ":"j",j:"j",ĵ:"j",ǰ:"j",ɉ:"j","ⓚ":"k",k:"k",ḱ:"k",Ç©:"k",ḳ:"k",Ä·:"k",ḵ:"k",ƙ:"k",ⱪ:"k",ꝁ:"k",ꝃ:"k",ꝅ:"k",ꞣ:"k","ⓛ"
2:"l",l:"l",ŀ:"l",ĺ:"l",ľ:"l",ḷ:"l",ḹ:"l",ļ:"l",ḽ:"l",ḻ:"l",ſ:"l",ł:"l",ƚ:"l",ɫ:"l",ⱡ:"l",ꝉ:"l",ꞁ:"l",ꝇ:"l",lj:"lj","ⓜ":"m",m:"m",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m",ɯ:"m","ⓝ":"n",n:"n",ǹ:"n",ń:"n",ñ:"n",ṅ:"n",ň:"n",ṇ:"n",ņ:"n",ṋ:"n",ṉ:"n",ƞ:"n",ɲ:"n",ʼn:"n",ꞑ:"n",ꞥ:"n",nj:"nj","ⓞ":"o",o:"o",ò:"o",ó:"o",ô:"o",ồ:"o",ố:"o",ỗ:"o",ổ:"o",õ:"o",ṍ:"o",ȭ:"o",ṏ:"o",ō:"o",ṑ:"o",ṓ:"o",ŏ:"o",ȯ:"o",ȱ:"o",ö:"o",ȫ:"o",ỏ:"o",ő:"o",ǒ:"o",ȍ:"o",ȏ:"o",ơ:"o",ờ:"o",ớ:"o",ỡ:"o",ở:"o",ợ:"o",ọ:"o",ộ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",ɔ:"o",ꝋ:"o",ꝍ:"o",ɵ:"o",œ:"oe",ƣ:"oi",ȣ:"ou",ꝏ:"oo","ⓟ":"p",p:"p",ṕ:"p",ṗ:"p",ƥ:"p",ᵽ:"p",ꝑ:"p",ꝓ:"p",ꝕ:"p","ⓠ":"q",q:"q",ɋ:"q",ꝗ:"q",ꝙ:"q","ⓡ":"r",r:"r",ŕ:"r",ṙ:"r",ř:"r",ȑ:"r",ȓ:"r",ṛ:"r",ṝ:"r",ŗ:"r",ṟ:"r",ɍ:"r",ɽ:"r",ꝛ:"r",ꞧ:"r",ꞃ:"r","ⓢ":"s",s:"s",ß:"s",ś:"s",ṥ:"s",ŝ:"s",ṡ:"s",š:"s",ṧ:"s",ṣ:"s",ṩ:"s",ș:"s",ş:"s",ȿ:"s",ꞩ:"s",ꞅ:"s",ẛ:"s","ⓣ":"t",t:"t",ṫ:"t",ẗ:"t",ť:"t",ṭ:"t",ț:"t",ţ:"t",ṱ:"t",ṯ:"t",ŧ:"t",ƭ:"t",ʈ:"t",ⱦ:"t",ꞇ:"t",ꜩ:"tz","ⓤ":"u",u:"u",ù:"u",ú:"u",û:"u",ũ:"u",ṹ:"u",ū:"u",ṻ:"u",ŭ:"u",ü:"u",ǜ:"u",ǘ:"u",ǖ:"u",ǚ:"u",ủ:"u",ů:"u",ű:"u",ǔ:"u",ȕ:"u",ȗ:"u",ư:"u",ừ:"u",ứ:"u",ữ:"u",ử:"u",ự:"u",ụ:"u",ṳ:"u",ų:"u",ṷ:"u",ṵ:"u",ʉ:"u","ⓥ":"v",v:"v",ṽ:"v",ṿ:"v",ʋ:"v",ꝟ:"v",ʌ:"v",ꝡ:"vy","ⓦ":"w",w:"w",ẁ:"w",ẃ:"w",ŵ:"w",ẇ:"w",ẅ:"w",ẘ:"w",ẉ:"w",ⱳ:"w","ⓧ":"x",x:"x",ẋ:"x",ẍ:"x","ⓨ":"y",y:"y",ỳ:"y",ý:"y",ŷ:"y",ỹ:"y",ȳ:"y",ẏ:"y",ÿ:"y",ỷ:"y",ẙ:"y",ỵ:"y",ƴ:"y",ɏ:"y",ỿ:"y","ⓩ":"z",z:"z",ź:"z",ẑ:"z",ż:"z",ž:"z",ẓ:"z",ẕ:"z",ƶ:"z",ȥ:"z",ɀ:"z",ⱬ:"z",ꝣ:"z",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Υ",Ϋ:"Υ",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ώ:"ω",ς:"σ","’":"'"}})),e.define("select2/data/base",["../utils"],(function(t){function e(t,i){e.__super__.constructor.call(this)}return t.Extend(e,t.Observable),e.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(t,e){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,i){var n=e.id+"-result-";return n+=t.generateChars(4),null!=i.id?n+="-"+i.id.toString():n+="-"+t.generateChars(4),n},e})),e.define("select2/data/select",["./base","../utils","jquery"],(function(t,e,i){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,t),n.prototype.current=function(t){var e=this;t(Array.prototype.map.call(this.$element[0].querySelectorAll(":checked"),(function(t){return e.item(i(t))})))},n.prototype.select=function(t){var e=this;if(t.selected=!0,null!=t.element&&"option"===t.element.tagName.toLowerCase())return t.element.selected=!0,void this.$element.trigger("input").trigger("change");if(this.$element.prop("multiple"))this.current((function(i){var n=[];(t=[t]).push.apply(t,i);for(var r=0;r<t.length;r++){var s=t[r].id;-1===n.indexOf(s)&&n.push(s)}e.$element.val(n),e.$element.trigger("input").trigger("change")}));else{var i=t.id;this.$element.val(i),this.$element.trigger("input").trigger("change")}},n.prototype.unselect=function(t){var e=this;if(this.$element.prop("multiple")){if(t.selected=!1,null!=t.element&&"option"===t.element.tagName.toLowerCase())return t.element.selected=!1,void this.$element.trigger("input").trigger("change");this.current((function(i){for(var n=[],r=0;r<i.length;r++){var s=i[r].id;s!==t.id&&-1===n.indexOf(s)&&n.push(s)}e.$element.val(n),e.$element.trigger("input").trigger("change")}))}},n.prototype.bind=function(t,e){var i=this;this.container=t,t.on("select",(function(t){i.select(t.data)})),t.on("unselect",(function(t){i.unselect(t.data)}))},n.prototype.destroy=function(){this.$element.find("*").each((function(){e.RemoveData(this)}))},n.prototype.query=function(t,e){var n=[],r=this;this.$element.children().each((function(){if("option"===this.tagName.toLowerCase()||"optgroup"===this.tagName.toLowerCase()){var e=i(this),s=r.item(e),o=r.matches(t,s);null!==o&&n.push(o)}})),e({results:n})},n.prototype.addOptions=function(t){this.$element.append(t)},n.prototype.option=function(t){var n;t.children?(n=document.createElement("optgroup")).label=t.text:void 0!==(n=document.createElement("option")).textContent?n.textContent=t.text:n.innerText=t.text,void 0!==t.id&&(n.value=t.id),t.disabled&&(n.disabled=!0),t.selected&&(n.selected=!0),t.title&&(n.title=t.title);var r=this._normalizeItem(t);return r.element=n,e.StoreData(n,"data",r),i(n)},n.prototype.item=function(t){var n={};if(null!=(n=e.GetData(t[0],"data")))return n;var r=t[0];if("option"===r.tagName.toLowerCase())n={id:t.val(),text:t.text(),disabled:t.prop("disabled"),selected:t.prop("selected"),title:t.prop("title")};
2else if("optgroup"===r.tagName.toLowerCase()){n={text:t.prop("label"),children:[],title:t.prop("title")};for(var s=t.children("option"),o=[],a=0;a<s.length;a++){var l=i(s[a]),h=this.item(l);o.push(h)}n.children=o}return(n=this._normalizeItem(n)).element=t[0],e.StoreData(t[0],"data",n),n},n.prototype._normalizeItem=function(t){t!==Object(t)&&(t={id:t,text:t});return null!=(t=i.extend({},{text:""},t)).id&&(t.id=t.id.toString()),null!=t.text&&(t.text=t.text.toString()),null==t._resultId&&t.id&&null!=this.container&&(t._resultId=this.generateResultId(this.container,t)),i.extend({},{selected:!1,disabled:!1},t)},n.prototype.matches=function(t,e){return this.options.get("matcher")(t,e)},n})),e.define("select2/data/array",["./select","../utils","jquery"],(function(t,e,i){function n(t,e){this._dataToConvert=e.get("data")||[],n.__super__.constructor.call(this,t,e)}return e.Extend(n,t),n.prototype.bind=function(t,e){n.__super__.bind.call(this,t,e),this.addOptions(this.convertToOptions(this._dataToConvert))},n.prototype.select=function(t){var e=this.$element.find("option").filter((function(e,i){return i.value==t.id.toString()}));0===e.length&&(e=this.option(t),this.addOptions(e)),n.__super__.select.call(this,t)},n.prototype.convertToOptions=function(t){var e=this,n=this.$element.find("option"),r=n.map((function(){return e.item(i(this)).id})).get(),s=[];function o(t){return function(){return i(this).val()==t.id}}for(var a=0;a<t.length;a++){var l=this._normalizeItem(t[a]);if(r.indexOf(l.id)>=0){var h=n.filter(o(l)),c=this.item(h),u=i.extend(!0,{},l,c),d=this.option(u);h.replaceWith(d)}else{var f=this.option(l);if(l.children){var p=this.convertToOptions(l.children);f.append(p)}s.push(f)}}return s},n})),e.define("select2/data/ajax",["./array","../utils","jquery"],(function(t,e,i){function n(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,t,e)}return e.Extend(n,t),n.prototype._applyDefaults=function(t){var e={data:function(t){return i.extend({},t,{q:t.term})},transport:function(t,e,n){var r=i.ajax(t);return r.then(e),r.fail(n),r}};return i.extend({},e,t,!0)},n.prototype.processResults=function(t){return t},n.prototype.query=function(t,e){var n=this;null!=this._request&&("function"==typeof this._request.abort&&this._request.abort(),this._request=null);var r=i.extend({type:"GET"},this.ajaxOptions);function s(){var i=r.transport(r,(function(i){var r=n.processResults(i,t);n.options.get("debug")&&window.console&&console.error&&(r&&r.results&&Array.isArray(r.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),e(r)}),(function(){(!("status"in i)||0!==i.status&&"0"!==i.status)&&n.trigger("results:message",{message:"errorLoading"})}));n._request=i}"function"==typeof r.url&&(r.url=r.url.call(this.$element,t)),"function"==typeof r.data&&(r.data=r.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(s,this.ajaxOptions.delay)):s()},n})),e.define("select2/data/tags",["jquery"],(function(t){function e(t,e,i){var n=i.get("tags"),r=i.get("createTag");void 0!==r&&(this.createTag=r);var s=i.get("insertTag");if(void 0!==s&&(this.insertTag=s),t.call(this,e,i),Array.isArray(n))for(var o=0;o<n.length;o++){var a=n[o],l=this._normalizeItem(a),h=this.option(l);this.$element.append(h)}}return e.prototype.query=function(t,e,i){var n=this;this._removeOldTags(),null!=e.term&&null==e.page?t.call(this,e,(function t(r,s){for(var o=r.results,a=0;a<o.length;a++){var l=o[a],h=null!=l.children&&!t({results:l.children},!0);if((l.text||"").toUpperCase()===(e.term||"").toUpperCase()||h)return!s&&(r.data=o,void i(r))}if(s)return!0;var c=n.createTag(e);if(null!=c){var u=n.option(c);u.attr("data-select2-tag","true"),n.addOptions([u]),n.insertTag(o,c)}r.results=o,i(r)})):t.call(this,e,i)},e.prototype.createTag=function(t,e){if(null==e.term)return null;var i=e.term.trim();return""===i?null:{id:i,text:i}}
2,e.prototype.insertTag=function(t,e,i){e.unshift(i)},e.prototype._removeOldTags=function(e){this.$element.find("option[data-select2-tag]").each((function(){this.selected||t(this).remove()}))},e})),e.define("select2/data/tokenizer",["jquery"],(function(t){function e(t,e,i){var n=i.get("tokenizer");void 0!==n&&(this.tokenizer=n),t.call(this,e,i)}return e.prototype.bind=function(t,e,i){t.call(this,e,i),this.$search=e.dropdown.$search||e.selection.$search||i.find(".select2-search__field")},e.prototype.query=function(e,i,n){var r=this;i.term=i.term||"";var s=this.tokenizer(i,this.options,(function(e){var i=r._normalizeItem(e);if(!r.$element.find("option").filter((function(){return t(this).val()===i.id})).length){var n=r.option(i);n.attr("data-select2-tag",!0),r._removeOldTags(),r.addOptions([n])}!function(t){r.trigger("select",{data:t})}(i)}));s.term!==i.term&&(this.$search.length&&(this.$search.val(s.term),this.$search.trigger("focus")),i.term=s.term),e.call(this,i,n)},e.prototype.tokenizer=function(e,i,n,r){for(var s=n.get("tokenSeparators")||[],o=i.term,a=0,l=this.createTag||function(t){return{id:t.term,text:t.term}};a<o.length;){var h=o[a];if(-1!==s.indexOf(h)){var c=o.substr(0,a),u=l(t.extend({},i,{term:c}));null!=u?(r(u),o=o.substr(a+1)||"",a=0):a++}else a++}return{term:o}},e})),e.define("select2/data/minimumInputLength",[],(function(){function t(t,e,i){this.minimumInputLength=i.get("minimumInputLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){e.term=e.term||"",e.term.length<this.minimumInputLength?this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:e.term,params:e}}):t.call(this,e,i)},t})),e.define("select2/data/maximumInputLength",[],(function(){function t(t,e,i){this.maximumInputLength=i.get("maximumInputLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){e.term=e.term||"",this.maximumInputLength>0&&e.term.length>this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):t.call(this,e,i)},t})),e.define("select2/data/maximumSelectionLength",[],(function(){function t(t,e,i){this.maximumSelectionLength=i.get("maximumSelectionLength"),t.call(this,e,i)}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("select",(function(){n._checkIfMaximumSelected()}))},t.prototype.query=function(t,e,i){var n=this;this._checkIfMaximumSelected((function(){t.call(n,e,i)}))},t.prototype._checkIfMaximumSelected=function(t,e){var i=this;this.current((function(t){var n=null!=t?t.length:0;i.maximumSelectionLength>0&&n>=i.maximumSelectionLength?i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}}):e&&e()}))},t})),e.define("select2/dropdown",["jquery","./utils"],(function(t,e){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=t('<span class="select2-dropdown"><span class="select2-results"></span></span>');return e.attr("dir",this.options.get("dir")),this.$dropdown=e,e},i.prototype.bind=function(){},i.prototype.position=function(t,e){},i.prototype.destroy=function(){this.$dropdown.remove()},i})),e.define("select2/dropdown/search",["jquery"],(function(t){function e(){}return e.prototype.render=function(e){var i=e.call(this),n=this.options.get("translations").get("search"),r=t('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocorrect="off" autocapitalize="none" spellcheck="false" role="searchbox" aria-autocomplete="list" /></span>');return this.$searchContainer=r,this.$search=r.find("input"),this.$search.prop("autocomplete",this.options.get("autocomplete")),this.$search.attr("aria-label",n()),i.prepend(r),i},e.prototype.bind=function(e,i,n){var r=this,s=i.id+"-results";e.call(this,i,n),this.$search.on("keydown",(function(t){r.trigger("keypress",t),r._keyUpPrevented=t.isDefaultPrevented()})),this.$search.on("input",(function(e){t(this).off("keyup")})),this.$search.on("keyup input",(function(t){r.handleSearch(t)})),i.on("open",(function(){r.$search.attr("tabindex",0),r.$search.attr("aria-controls",s),r.$search.trigger("focus"),window.setTimeout((function(){r.$search.trigger("focus")}),0)})),i.on("close",(function(){r.$search.attr("tabindex",-1),r.$search.removeAttr("aria-controls"),r.$search.removeAttr("aria-activedescendant"),r.$search.val(""),r.$search.trigger("blur")})),i.on("focus",(function(){i.isOpen()||r.$search.trigger("focus")})),i.on("results:all",(function(t){null!=t.query.term&&""!==t.query.term||(r.showSearch(t)?r.$searchContainer[0].classList.remove("select2-search--hide"):r.$searchContainer[0].classList.add("select2-search--hide"))})),i.on("results:focus",(function(t){t.data._resultId?r.$search.attr("aria-activedescendant",t.data._resultId):r.$search.removeAttr("aria-activedescendant")}))},e.prototype.handleSearch=function(t){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},e.prototype.showSearch=function(t,e){return!0},e})),e.define("select2/dropdown/hidePlaceholder",[],(function(){function t(t,e,i,n){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i,n)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var i=e.slice(0),n=e.length-1;n>=0;n--){var r=e[n];this.placeholder.id===r.id&&i.splice(n,1)}return i},t})),e.define("select2/dropdown/infiniteScroll",["jquery"],(function(t){function e(t,e,i,n){this.lastParams={},t.call(this,e,i,n),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())}
2,e.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("query",(function(t){n.lastParams=t,n.loading=!0})),e.on("query:append",(function(t){n.lastParams=t,n.loading=!0})),this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},e.prototype.loadMoreIfNeeded=function(){var e=t.contains(document.documentElement,this.$loadingMore[0]);!this.loading&&e&&this.$results.offset().top+this.$results.outerHeight(!1)+50>=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1)&&this.loadMore()},e.prototype.loadMore=function(){this.loading=!0;var e=t.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},e.prototype.createLoadingMore=function(){var e=t('<li class="select2-results__option select2-results__option--load-more"role="option" aria-disabled="true"></li>'),i=this.options.get("translations").get("loadingMore");return e.html(i(this.lastParams)),e},e})),e.define("select2/dropdown/attachBody",["jquery","../utils"],(function(t,e){function i(e,i,n){this.$dropdownParent=t(n.get("dropdownParent")||document.body),e.call(this,i,n)}return i.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("open",(function(){n._showDropdown(),n._attachPositioningHandler(e),n._bindContainerResultHandlers(e)})),e.on("close",(function(){n._hideDropdown(),n._detachPositioningHandler(e)})),this.$dropdownContainer.on("mousedown",(function(t){t.stopPropagation()}))},i.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},i.prototype.position=function(t,e,i){e.attr("class",i.attr("class")),e[0].classList.remove("select2"),e[0].classList.add("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=i},i.prototype.render=function(e){var i=t("<span></span>"),n=e.call(this);return i.append(n),this.$dropdownContainer=i,i},i.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},i.prototype._bindContainerResultHandlers=function(t,e){if(!this._containerResultsHandlersBound){var i=this;e.on("results:all",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("results:append",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("results:message",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("select",(function(){i._positionDropdown(),i._resizeDropdown()})),e.on("unselect",(function(){i._positionDropdown(),i._resizeDropdown()})),this._containerResultsHandlersBound=!0}},i.prototype._attachPositioningHandler=function(i,n){var r=this,s="scroll.select2."+n.id,o="resize.select2."+n.id,a="orientationchange.select2."+n.id,l=this.$container.parents().filter(e.hasScroll);l.each((function(){e.StoreData(this,"select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})})),l.on(s,(function(i){var n=e.GetData(this,"select2-scroll-position");t(this).scrollTop(n.y)})),t(window).on(s+" "+o+" "+a,(function(t){r._positionDropdown(),r._resizeDropdown()}))},i.prototype._detachPositioningHandler=function(i,n){var r="scroll.select2."+n.id,s="resize.select2."+n.id,o="orientationchange.select2."+n.id;this.$container.parents().filter(e.hasScroll).off(r),t(window).off(r+" "+s+" "+o)},i.prototype._positionDropdown=function(){var e=t(window),i=this.$dropdown[0].classList.contains("select2-dropdown--above"),n=this.$dropdown[0].classList.contains("select2-dropdown--below"),r=null,s=this.$container.offset();s.bottom=s.top+this.$container.outerHeight(!1);var o={height:this.$container.outerHeight(!1)};o.top=s.top,o.bottom=s.top+o.height;var a=this.$dropdown.outerHeight(!1),l=e.scrollTop(),h=e.scrollTop()+e.height(),c=l<s.top-a,u=h>s.bottom+a,d={left:s.left,top:o.bottom},f=this.$dropdownParent;"static"===f.css("position")&&(f=f.offsetParent());var p={top:0,left:0};(t.contains(document.body,f[0])||f[0].isConnected)&&(p=f.offset()),d.top-=p.top,d.left-=p.left,i||n||(r="below"),u||!c||i?!c&&u&&i&&(r="below"):r="above",("above"==r||i&&"below"!==r)&&(d.top=o.top-p.top-a),null!=r&&(this.$dropdown[0].classList.remove("select2-dropdown--below"),this.$dropdown[0].classList.remove("select2-dropdown--above"),this.$dropdown[0].classList.add("select2-dropdown--"+r),this.$container[0].classList.remove("select2-container--below"),this.$container[0].classList.remove("select2-container--above"),this.$container[0].classList.add("select2-container--"+r)),this.$dropdownContainer.css(d)},i.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.position="relative",t.width="auto"),this.$dropdown.css(t)},i.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},i})),e.define("select2/dropdown/minimumResultsForSearch",[],(function(){function t(e){for(var i=0,n=0;n<e.length;n++){var r=e[n];r.children?i+=t(r.children):i++}return i}function e(t,e,i,n){this.minimumResultsForSearch=i.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,i,n)}return e.prototype.showSearch=function(e,i){return!(t(i.data.results)<this.minimumResultsForSearch)&&e.call(this,i)},e})),e.define("select2/dropdown/selectOnClose",["../utils"],(function(t){function e(){}
2return e.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("close",(function(t){n._handleSelectOnClose(t)}))},e.prototype._handleSelectOnClose=function(e,i){if(i&&null!=i.originalSelect2Event){var n=i.originalSelect2Event;if("select"===n._type||"unselect"===n._type)return}var r=this.getHighlightedResults();if(!(r.length<1)){var s=t.GetData(r[0],"data");null!=s.element&&s.element.selected||null==s.element&&s.selected||this.trigger("select",{data:s})}},e})),e.define("select2/dropdown/closeOnSelect",[],(function(){function t(){}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("select",(function(t){n._selectTriggered(t)})),e.on("unselect",(function(t){n._selectTriggered(t)}))},t.prototype._selectTriggered=function(t,e){var i=e.originalEvent;i&&(i.ctrlKey||i.metaKey)||this.trigger("close",{originalEvent:i,originalSelect2Event:e})},t})),e.define("select2/dropdown/dropdownCss",["../utils"],(function(t){function e(){}return e.prototype.render=function(e){var i=e.call(this),n=this.options.get("dropdownCssClass")||"";return-1!==n.indexOf(":all:")&&(n=n.replace(":all:",""),t.copyNonInternalCssClasses(i[0],this.$element[0])),i.addClass(n),i},e})),e.define("select2/dropdown/tagsSearchHighlight",["../utils"],(function(t){function e(){}return e.prototype.highlightFirstItem=function(e){var i=this.$results.find(".select2-results__option--selectable:not(.select2-results__option--selected)");if(i.length>0){var n=i.first(),r=t.GetData(n[0],"data").element;if(r&&r.getAttribute&&"true"===r.getAttribute("data-select2-tag"))return void n.trigger("mouseenter")}e.call(this)},e})),e.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(t){var e=t.input.length-t.maximum,i="Please delete "+e+" character";return 1!=e&&(i+="s"),i},inputTooShort:function(t){return"Please enter "+(t.minimum-t.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(t){var e="You can only select "+t.maximum+" item";return 1!=t.maximum&&(e+="s"),e},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"},removeItem:function(){return"Remove item"},search:function(){return"Search"}}})),e.define("select2/defaults",["jquery","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/selectionCss","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./dropdown/dropdownCss","./dropdown/tagsSearchHighlight","./i18n/en"],(function(t,e,i,n,r,s,o,a,l,h,c,u,d,f,p,g,m,v,_,y,x,w,b,E,C,A,S,T,I,R,D){function M(){this.reset()}return M.prototype.apply=function(c){if(null==(c=t.extend(!0,{},this.defaults,c)).dataAdapter&&(null!=c.ajax?c.dataAdapter=p:null!=c.data?c.dataAdapter=f:c.dataAdapter=d,c.minimumInputLength>0&&(c.dataAdapter=h.Decorate(c.dataAdapter,v)),c.maximumInputLength>0&&(c.dataAdapter=h.Decorate(c.dataAdapter,_)),c.maximumSelectionLength>0&&(c.dataAdapter=h.Decorate(c.dataAdapter,y)),c.tags&&(c.dataAdapter=h.Decorate(c.dataAdapter,g)),null==c.tokenSeparators&&null==c.tokenizer||(c.dataAdapter=h.Decorate(c.dataAdapter,m))),null==c.resultsAdapter&&(c.resultsAdapter=e,null!=c.ajax&&(c.resultsAdapter=h.Decorate(c.resultsAdapter,E)),null!=c.placeholder&&(c.resultsAdapter=h.Decorate(c.resultsAdapter,b)),c.selectOnClose&&(c.resultsAdapter=h.Decorate(c.resultsAdapter,S)),c.tags&&(c.resultsAdapter=h.Decorate(c.resultsAdapter,R))),null==c.dropdownAdapter){if(c.multiple)c.dropdownAdapter=x;else{var u=h.Decorate(x,w);c.dropdownAdapter=u}0!==c.minimumResultsForSearch&&(c.dropdownAdapter=h.Decorate(c.dropdownAdapter,A)),c.closeOnSelect&&(c.dropdownAdapter=h.Decorate(c.dropdownAdapter,T)),null!=c.dropdownCssClass&&(c.dropdownAdapter=h.Decorate(c.dropdownAdapter,I)),c.dropdownAdapter=h.Decorate(c.dropdownAdapter,C)}null==c.selectionAdapter&&(c.multiple?c.selectionAdapter=n:c.selectionAdapter=i,null!=c.placeholder&&(c.selectionAdapter=h.Decorate(c.selectionAdapter,r)),c.allowClear&&(c.selectionAdapter=h.Decorate(c.selectionAdapter,s
2)),c.multiple&&(c.selectionAdapter=h.Decorate(c.selectionAdapter,o)),null!=c.selectionCssClass&&(c.selectionAdapter=h.Decorate(c.selectionAdapter,a)),c.selectionAdapter=h.Decorate(c.selectionAdapter,l)),c.language=this._resolveLanguage(c.language),c.language.push("en");for(var D=[],M=0;M<c.language.length;M++){var L=c.language[M];-1===D.indexOf(L)&&D.push(L)}return c.language=D,c.translations=this._processTranslations(c.language,c.debug),c},M.prototype.reset=function(){function e(t){return t.replace(/[^\u0000-\u007E]/g,(function(t){return u[t]||t}))}this.defaults={amdLanguageBase:"./i18n/",autocomplete:"off",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:h.escapeMarkup,language:{},matcher:function i(n,r){if(null==n.term||""===n.term.trim())return r;if(r.children&&r.children.length>0){for(var s=t.extend(!0,{},r),o=r.children.length-1;o>=0;o--)null==i(n,r.children[o])&&s.children.splice(o,1);return s.children.length>0?s:i(n,s)}var a=e(r.text).toUpperCase(),l=e(n.term).toUpperCase();return a.indexOf(l)>-1?r:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},M.prototype.applyFromElement=function(t,e){var i=t.language,n=this.defaults.language,r=e.prop("lang"),s=e.closest("[lang]").prop("lang"),o=Array.prototype.concat.call(this._resolveLanguage(r),this._resolveLanguage(i),this._resolveLanguage(n),this._resolveLanguage(s));return t.language=o,t},M.prototype._resolveLanguage=function(e){if(!e)return[];if(t.isEmptyObject(e))return[];if(t.isPlainObject(e))return[e];var i;i=Array.isArray(e)?e:[e];for(var n=[],r=0;r<i.length;r++)if(n.push(i[r]),"string"==typeof i[r]&&i[r].indexOf("-")>0){var s=i[r].split("-")[0];n.push(s)}return n},M.prototype._processTranslations=function(e,i){for(var n=new c,r=0;r<e.length;r++){var s=new c,o=e[r];if("string"==typeof o)try{s=c.loadPath(o)}catch(t){try{o=this.defaults.amdLanguageBase+o,s=c.loadPath(o)}catch(t){i&&window.console&&console.warn&&console.warn('Select2: The language file for "'+o+'" could not be automatically loaded. A fallback will be used instead.')}}else s=t.isPlainObject(o)?new c(o):o;n.extend(s)}return n},M.prototype.set=function(e,i){var n={};n[t.camelCase(e)]=i;var r=h._convertData(n);t.extend(!0,this.defaults,r)},new M})),e.define("select2/options",["jquery","./defaults","./utils"],(function(t,e,i){function n(t,i){this.options=t,null!=i&&this.fromElement(i),null!=i&&(this.options=e.applyFromElement(this.options,i)),this.options=e.apply(this.options)}return n.prototype.fromElement=function(e){var n=["select2"];null==this.options.multiple&&(this.options.multiple=e.prop("multiple")),null==this.options.disabled&&(this.options.disabled=e.prop("disabled")),null==this.options.autocomplete&&e.prop("autocomplete")&&(this.options.autocomplete=e.prop("autocomplete")),null==this.options.dir&&(e.prop("dir")?this.options.dir=e.prop("dir"):e.closest("[dir]").prop("dir")?this.options.dir=e.closest("[dir]").prop("dir"):this.options.dir="ltr"),e.prop("disabled",this.options.disabled),e.prop("multiple",this.options.multiple),i.GetData(e[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),i.StoreData(e[0],"data",i.GetData(e[0],"select2Tags")),i.StoreData(e[0],"tags",!0)),i.GetData(e[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),e.attr("ajax--url",i.GetData(e[0],"ajaxUrl")),i.StoreData(e[0],"ajax-Url",i.GetData(e[0],"ajaxUrl")));var r={};function s(t,e){return e.toUpperCase()}for(var o=0;o<e[0].attributes.length;o++){var a=e[0].attributes[o].name,l="data-";if(a.substr(0,5)==l){var h=a.substring(5),c=i.GetData(e[0],h);r[h.replace(/-([a-z])/g,s)]=c}}t.fn.jquery&&"1."==t.fn.jquery.substr(0,2)&&e[0].dataset&&(r=t.extend(!0,{},e[0].dataset,r));var u=t.extend(!0,{},i.GetData(e[0]),r);for(var d in u=i._convertData(u))n.indexOf(d)>-1||(t.isPlainObject(this.options[d])?t.extend(this.options[d],u[d]):this.options[d]=u[d]);return this},n.prototype.get=function(t){return this.options[t]},n.prototype.set=function(t,e){this.options[t]=e},n})),e.define("select2/core",["jquery","./options","./utils","./keys"],(function(t,e,
2i,n){var r=function(t,n){null!=i.GetData(t[0],"select2")&&i.GetData(t[0],"select2").destroy(),this.$element=t,this.id=this._generateId(t),n=n||{},this.options=new e(n,t),r.__super__.constructor.call(this);var s=t.attr("tabindex")||0;i.StoreData(t[0],"old-tabindex",s),t.attr("tabindex","-1");var o=this.options.get("dataAdapter");this.dataAdapter=new o(t,this.options);var a=this.render();this._placeContainer(a);var l=this.options.get("selectionAdapter");this.selection=new l(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,a);var h=this.options.get("dropdownAdapter");this.dropdown=new h(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,a);var c=this.options.get("resultsAdapter");this.results=new c(t,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var u=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(t){u.trigger("selection:update",{data:t})})),t[0].classList.add("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),i.StoreData(t[0],"select2",this),t.data("select2",this)};return i.Extend(r,i.Observable),r.prototype._generateId=function(t){return"select2-"+(null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+i.generateChars(2):i.generateChars(4)).replace(/(:|\.|\[|\]|,)/g,"")},r.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},r.prototype._resolveWidth=function(t,e){var i=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var n=this._resolveWidth(t,"style");return null!=n?n:this._resolveWidth(t,"element")}if("element"==e){var r=t.outerWidth(!1);return r<=0?"auto":r+"px"}if("style"==e){var s=t.attr("style");if("string"!=typeof s)return null;for(var o=s.split(";"),a=0,l=o.length;a<l;a+=1){var h=o[a].replace(/\s/g,"").match(i);if(null!==h&&h.length>=1)return h[1]}return null}return"computedstyle"==e?window.getComputedStyle(t[0]).width:e},r.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container),this.selection.bind(this,this.$container),this.dropdown.bind(this,this.$container),this.results.bind(this,this.$container)},r.prototype._registerDomEvents=function(){var t=this;this.$element.on("change.select2",(function(){t.dataAdapter.current((function(e){t.trigger("selection:update",{data:e})}))})),this.$element.on("focus.select2",(function(e){t.trigger("focus",e)})),this._syncA=i.bind(this._syncAttributes,this),this._syncS=i.bind(this._syncSubtree,this),this._observer=new window.MutationObserver((function(e){t._syncA(),t._syncS(e)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})},r.prototype._registerDataEvents=function(){var t=this;this.dataAdapter.on("*",(function(e,i){t.trigger(e,i)}))},r.prototype._registerSelectionEvents=function(){var t=this,e=["toggle","focus"];this.selection.on("toggle",(function(){t.toggleDropdown()})),this.selection.on("focus",(function(e){t.focus(e)})),this.selection.on("*",(function(i,n){-1===e.indexOf(i)&&t.trigger(i,n)}))},r.prototype._registerDropdownEvents=function(){var t=this;this.dropdown.on("*",(function(e,i){t.trigger(e,i)}))},r.prototype._registerResultsEvents=function(){var t=this;this.results.on("*",(function(e,i){t.trigger(e,i)}))},r.prototype._registerEvents=function(){var t=this;this.on("open",(function(){t.$container[0].classList.add("select2-container--open")})),this.on("close",(function(){t.$container[0].classList.remove("select2-container--open")})),this.on("enable",(function(){t.$container[0].classList.remove("select2-container--disabled")})),this.on("disable",(function(){t.$container[0].classList.add("select2-container--disabled")})),this.on("blur",(function(){t.$container[0].classList.remove("select2-container--focus")})),this.on("query",(function(e){t.isOpen()||t.trigger("open",{}),this.dataAdapter.query(e,(function(i){t.trigger("results:all",{data:i,query:e})}))})),this.on("query:append",(function(e){this.dataAdapter.query(e,(function(i){t.trigger("results:append",{data:i,query:e})}))})),this.on("keypress",(function(e){var i=e.which;t.isOpen()?i===n.ESC||i===n.UP&&e.altKey?(t.close(e),e.preventDefault()):i===n.ENTER||i===n.TAB?(t.trigger("results:select",{}),e.preventDefault()):i===n.SPACE&&e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):i===n.UP?(t.trigger("results:previous",{}),e.preventDefault()):i===n.DOWN&&(t.trigger("results:next",{}),e.preventDefault()):(i===n.ENTER||i===n.SPACE||i===n.DOWN&&e.altKey)&&(t.open(),e.preventDefault())}))},r.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled")),this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},r.prototype._isChangeMutation=function(t){var e=this;if(t.addedNodes&&t.addedNodes.length>0){for(var i=0;i<t.addedNodes.length;i++)if(t.addedNodes[i].selected)return!0}else{if(t.removedNodes&&t.removedNodes.length>0)return!0;
2if(Array.isArray(t))return t.some((function(t){return e._isChangeMutation(t)}))}return!1},r.prototype._syncSubtree=function(t){var e=this._isChangeMutation(t),i=this;e&&this.dataAdapter.current((function(t){i.trigger("selection:update",{data:t})}))},r.prototype.trigger=function(t,e){var i=r.__super__.trigger,n={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"};if(void 0===e&&(e={}),t in n){var s=n[t],o={prevented:!1,name:t,args:e};if(i.call(this,s,o),o.prevented)return void(e.prevented=!0)}i.call(this,t,e)},r.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},r.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},r.prototype.close=function(t){this.isOpen()&&this.trigger("close",{originalEvent:t})},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r.prototype.isOpen=function(){return this.$container[0].classList.contains("select2-container--open")},r.prototype.hasFocus=function(){return this.$container[0].classList.contains("select2-container--focus")},r.prototype.focus=function(t){this.hasFocus()||(this.$container[0].classList.add("select2-container--focus"),this.trigger("focus",{}))},r.prototype.enable=function(t){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.'),null!=t&&0!==t.length||(t=[!0]);var e=!t[0];this.$element.prop("disabled",e)},r.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var t=[];return this.dataAdapter.current((function(e){t=e})),t},r.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),null==t||0===t.length)return this.$element.val();var e=t[0];Array.isArray(e)&&(e=e.map((function(t){return t.toString()}))),this.$element.val(e).trigger("input").trigger("change")},r.prototype.destroy=function(){i.RemoveData(this.$container[0]),this.$container.remove(),this._observer.disconnect(),this._observer=null,this._syncA=null,this._syncS=null,this.$element.off(".select2"),this.$element.attr("tabindex",i.GetData(this.$element[0],"old-tabindex")),this.$element[0].classList.remove("select2-hidden-accessible"),this.$element.attr("aria-hidden","false"),i.RemoveData(this.$element[0]),this.$element.removeData("select2"),this.dataAdapter.destroy(),this.selection.destroy(),this.dropdown.destroy(),this.results.destroy(),this.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},r.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container[0].classList.add("select2-container--"+this.options.get("theme")),i.StoreData(e[0],"element",this.$element),e},r})),e.define("jquery-mousewheel",["jquery"],(function(t){return t})),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],(function(t,e,i,n,r){if(null==t.fn.select2){var s=["open","close","destroy"];t.fn.select2=function(e){if("object"==typeof(e=e||{}))return this.each((function(){var n=t.extend(!0,{},e);new i(t(this),n)})),this;if("string"==typeof e){var n,o=Array.prototype.slice.call(arguments,1);return this.each((function(){var t=r.GetData(this,"select2");null==t&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2."),n=t[e].apply(t,o)})),s.indexOf(e)>-1?this:n}throw new Error("Invalid arguments for Select2: "+e)}}return null==t.fn.select2.defaults&&(t.fn.select2.defaults=n),i})),{define:e.define,require:e.require}}(),i=e.require("jquery.select2");return t.fn.select2.amd=e,i})?n.apply(e,r):n)||(t.exports=s)},5610:(t,e,i)=>{"use strict";var n=i(1291),r=Math.max,s=Math.min;t.exports=function(t,e){var i=n(t);return i<0?r(i+e,0):s(i,e)}},5745:(t,e,i)=>{"use strict";var n=i(7629);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},5917:(t,e,i)=>{"use strict";var n=i(3724),r=i(9039),s=i(4055);t.exports=!n&&!r((function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a}))},5966:(t,e,i)=>{"use strict";var n=i(9306),r=i(4117);t.exports=function(t,e){var i=t[e];return r(i)?void 0:n(i)}},6008:(t,e,i)=>{"use strict";var n=i(1015);t.exports=n},6068:(t,e,i)=>{"use strict";i.d(e,{A:()=>
2o});var n=i(6739),r=i(3445);class s extends n.Ay{constructor(t){super(),t=t||{},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:250}handleEvent(t){let e=!1;if(t.type==r.A.DBLCLICK){const i=t.originalEvent,r=t.map,s=t.coordinate,o=i.shiftKey?-this.delta_:this.delta_,a=r.getView();(0,n.D2)(a,o,s,this.duration_),i.preventDefault(),e=!0}return!e}}const o=/^(217|331)$/.test(i.j)?s:null},6080:(t,e,i)=>{"use strict";var n=i(7476),r=i(9306),s=i(616),o=n(n.bind);t.exports=function(t,e){return r(t),void 0===e?t:s?o(t,e):function(){return t.apply(e,arguments)}}},6086:(t,e,i)=>{"use strict";i(7956)},6119:(t,e,i)=>{"use strict";var n=i(5745),r=i(3392),s=n("keys");t.exports=function(t){return s[t]||(s[t]=r(t))}},6141:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4}},6198:(t,e,i)=>{"use strict";var n=i(8014);t.exports=function(t){return n(t.length)}},6361:(t,e,i)=>{"use strict";function n(t,e,i,n,r){r=void 0!==r?r:[];let s=0;for(let o=e;o<i;o+=n)r[s++]=t.slice(o,o+n);return r.length=s,r}function r(t,e,i,r,s){s=void 0!==s?s:[];let o=0;for(let a=0,l=i.length;a<l;++a){const l=i[a];s[o++]=n(t,e,l,r,s[o]),e=l}return s.length=o,s}function s(t,e,i,n,s){s=void 0!==s?s:[];let o=0;for(let a=0,l=i.length;a<l;++a){const l=i[a];s[o++]=1===l.length&&l[0]===e?[]:r(t,e,l,n,s[o]),e=l[l.length-1]}return s.length=o,s}i.d(e,{Dz:()=>s,cD:()=>r,n2:()=>n})},6395:t=>{"use strict";t.exports=!1},6429:(t,e,i)=>{"use strict";i.d(e,{Ay:()=>l,I5:()=>r,VD:()=>s,kx:()=>a,th:()=>o});const n={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},r=[n.FILL],s=[n.STROKE],o=[n.BEGIN_PATH],a=[n.CLOSE_PATH],l=/^(217|331)$/.test(i.j)?n:null},6444:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var n=i(4120),r=i(7083);class s extends n.A{constructor(t){super(),this.projection=(0,r.Jt)(t.projection),this.attributions_=o(t.attributions),this.attributionsCollapsible_=void 0===t.attributionsCollapsible||t.attributionsCollapsible,this.loading=!1,this.state_=void 0!==t.state?t.state:"ready",this.wrapX_=void 0!==t.wrapX&&t.wrapX,this.interpolate_=!!t.interpolate,this.viewResolver=null,this.viewRejector=null;const e=this;this.viewPromise_=new Promise((function(t,i){e.viewResolver=t,e.viewRejector=i}))}getAttributions(){return this.attributions_}getAttributionsCollapsible(){return this.attributionsCollapsible_}getProjection(){return this.projection}getResolutions(t){return null}getView(){return this.viewPromise_}getState(){return this.state_}getWrapX(){return this.wrapX_}getInterpolate(){return this.interpolate_}refresh(){this.changed()}setAttributions(t){this.attributions_=o(t),this.changed()}setState(t){this.state_=t,this.changed()}}function o(t){return t?Array.isArray(t)?function(e){return t}:"function"==typeof t?t:function(e){return[t]}:null}const a=/^(217|331)$/.test(i.j)?s:null},6514:(t,e,i)=>{"use strict";function n(t,e,i){let n,s;i=i||r;let o=0,a=t.length,l=!1;for(;o<a;)n=o+(a-o>>1),s=+i(t[n],e),s<0?o=n+1:(a=n,l=!s);return l?o:~o}function r(t,e){return t>e?1:t<e?-1:0}function s(t,e,i){if(t[0]<=e)return 0;const n=t.length;if(e<=t[n-1])return n-1;if("function"==typeof i){for(let r=1;r<n;++r){const n=t[r];if(n===e)return r;if(n<e)return i(e,t[r-1],n)>0?r-1:r}return n-1}if(i>0){for(let i=1;i<n;++i)if(t[i]<e)return i-1;return n-1}if(i<0){for(let i=1;i<n;++i)if(t[i]<=e)return i;return n-1}for(let i=1;i<n;++i){if(t[i]==e)return i;if(t[i]<e)return t[i-1]-e<e-t[i]?i-1:i}return n-1}function o(t,e,i){for(;e<i;){const n=t[e];t[e]=t[i],t[i]=n,++e,--i}}function a(t,e){const i=Array.isArray(e)?e:[e],n=i.length;for(let e=0;e<n;e++)t[t.length]=i[e]}function l(t,e){const i=t.length;if(i!==e.length)return!1;for(let n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}function h(t,e,i){const n=e||r;return t.every((function(e,r){if(0===r)return!0;const s=n(t[r-1],e);return!(s>0||i&&0===s)}))}i.d(e,{El:()=>n,FT:()=>s,V_:()=>r,WC:()=>h,X$:()=>a,aI:()=>l,gI:()=>o})},6518:(t,e,i)=>{"use strict";var n=i(4576),r=i(7347).f,s=i(6699),o=i(6840),a=i(9433),l=i(7740),h=i(2796);t.exports=function(t,e){var i,c,u,d,f,p=t.target,g=t.global,m=t.stat;if(i=g?n:m?n[p]||a(p,{}):n[p]&&n[p].prototype)for(c in e){if(d=e[c],u=t.dontCallGetSet?(f=r(i,c))&&f.value:i[c],!h(g?c:p+(m?".":"#")+c,t.forced)&&void 0!==u){if(typeof d==typeof u)continue;l(d,u)}(t.sham||u&&u.sham)&&s(d,"sham",!0),o(i,c,d,t)}}},6699:(t,e,i)=>{"use strict";var n=i(3724),r=i(4913),s=i(6980);
2t.exports=n?function(t,e,i){return r.f(t,e,s(1,i))}:function(t,e,i){return t[e]=i,t}},6717:(t,e,i)=>{"use strict";i.d(e,{A:()=>l});var n=i(4120),r=i(6837),s=i(588),o=i(9438);class a extends n.A{constructor(t){if(super(),this.on,this.once,this.un,this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),t)if("function"==typeof t.getSimplifiedGeometry){const e=t;this.setGeometry(e)}else{const e=t;this.setProperties(e)}}clone(){const t=new a(this.hasProperties()?this.getProperties():null);t.setGeometryName(this.getGeometryName());const e=this.getGeometry();e&&t.setGeometry(e.clone());const i=this.getStyle();return i&&t.setStyle(i),t}getGeometry(){return this.get(this.geometryName_)}getId(){return this.id_}getGeometryName(){return this.geometryName_}getStyle(){return this.style_}getStyleFunction(){return this.styleFunction_}handleGeometryChange_(){this.changed()}handleGeometryChanged_(){this.geometryChangeKey_&&((0,o.JH)(this.geometryChangeKey_),this.geometryChangeKey_=null);const t=this.getGeometry();t&&(this.geometryChangeKey_=(0,o.KT)(t,r.A.CHANGE,this.handleGeometryChange_,this)),this.changed()}setGeometry(t){this.set(this.geometryName_,t)}setStyle(t){this.style_=t,this.styleFunction_=t?function(t){if("function"==typeof t)return t;let e;return Array.isArray(t)?e=t:((0,s.v)("function"==typeof t.getZIndex,"Expected an `ol/style/Style` or an array of `ol/style/Style.js`"),e=[t]),function(){return e}}(t):void 0,this.changed()}setId(t){this.id_=t,this.changed()}setGeometryName(t){this.removeChangeListener(this.geometryName_,this.handleGeometryChanged_),this.geometryName_=t,this.addChangeListener(this.geometryName_,this.handleGeometryChanged_),this.handleGeometryChanged_()}}const l=/^(217|331)$/.test(i.j)?a:null},6739:(t,e,i)=>{"use strict";i.d(e,{Ay:()=>h,e4:()=>a,D2:()=>l});var n=i(4120);const r="active";var s=i(3474);class o extends n.A{constructor(t){super(),this.on,this.once,this.un,t&&t.handleEvent&&(this.handleEvent=t.handleEvent),this.map_=null,this.setActive(!0)}getActive(){return this.get(r)}getMap(){return this.map_}handleEvent(t){return!0}setActive(t){this.set(r,t)}setMap(t){this.map_=t}}function a(t,e,i){const n=t.getCenterInternal();if(n){const r=[n[0]+e[0],n[1]+e[1]];t.animateInternal({duration:void 0!==i?i:250,easing:s.sn,center:t.getConstrainedCenter(r)})}}function l(t,e,i,n){const r=t.getZoom();if(void 0===r)return;const o=t.getConstrainedZoom(r+e),a=t.getResolutionForZoom(o);t.getAnimating()&&t.cancelAnimations(),t.animate({resolution:a,anchor:i,duration:void 0!==n?n:250,easing:s.vT})}const h=o},6758:(t,e,i)=>{"use strict";if(i.d(e,{A:()=>f}),/^(217|331)$/.test(i.j))var n=i(1110);if(/^(217|331)$/.test(i.j))var r=i(7115);if(/^(217|331)$/.test(i.j))var s=i(588);if(/^(217|331)$/.test(i.j))var o=i(1597);if(/^(217|331)$/.test(i.j))var a=i(915);if(/^(217|331)$/.test(i.j))var l=i(186);if(/^(217|331)$/.test(i.j))var h=i(4350);if(/^(217|331)$/.test(i.j))var c=i(6514);if(/^(217|331)$/.test(i.j))var u=i(6782);const d=/^(217|331)$/.test(i.j)?[0,0,0]:null,f=/^(217|331)$/.test(i.j)?class{constructor(t){let e;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,(0,s.v)((0,c.WC)(this.resolutions_,((t,e)=>e-t),!0),"`resolutions` must be sorted in descending order"),!t.origins)for(let t=0,i=this.resolutions_.length-1;t<i;++t)if(e){if(this.resolutions_[t]/this.resolutions_[t+1]!==e){e=void 0;break}}else e=this.resolutions_[t]/this.resolutions_[t+1];this.zoomFactor_=e,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==t.origin?t.origin:null,this.origins_=null,void 0!==t.origins&&(this.origins_=t.origins,(0,s.v)(this.origins_.length==this.resolutions_.length,"Number of `origins` and `resolutions` must be equal"));const i=t.extent;void 0===i||this.origin_||this.origins_||(this.origin_=(0,a.Py)(i)),(0,s.v)(!this.origin_&&this.origins_||this.origin_&&!this.origins_,"Either `origin` or `origins` must be configured, never both"),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,(0,s.v)(this.tileSizes_.length==this.resolutions_.length,"Number of `tileSizes` and `resolutions` must be equal")),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:r.R,(0,s.v)(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,"Either `tileSize` or `tileSizes` must be configured, never both"),this.extent_=void 0!==i?i:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],this.tmpExtent_=[0,0,0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map(((t,e)=>{const r=new n.A(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1));if(i){const t=this.getTileRangeForExtentAndZ(i,e);r.minX=Math.max(t.minX,r.minX),r.maxX=Math.min(t.maxX,r.maxX),r.minY=Math.max(t.minY,r.minY),r.maxY=Math.min(t.maxY,r.maxY)}return r})):i&&this.calculateTileRanges_(i)}forEachTileCoord(t,e,i){const n=this.getTileRangeForExtentAndZ(t,e);for(let t=n.minX,r=n.maxX;t<=r;++t)for(let r=n.minY,s=n.maxY;r<=s;++r)i([e,t,r])}forEachTileCoordParentTileRange(t,e,i,r){let s,o,a,l=null,h=t[0]-1;for(2===this.zoomFactor_?(o=t[1],a=t[2]):l=this.getTileCoordExtent(t,r);h>=this.minZoom;){if(void 0!==o&&void 0!==a?(o=Math.floor(o/2),a=Math.floor(a/2),s=(0,n.N)(o,o,a,a,i)):s=this.getTileRangeForExtentAndZ(l,h,i),e(h,s))return!0;--h}return!1}getExtent(){return this.extent_}getMaxZoom(){return this.maxZoom}getMinZoom(){return this.minZoom}getOrigin(t){return this.origin_?this.origin_:this.origins_[t]}getResolution(t){return this.resolutions_[t]}getResolutions(){return this.resolutions_}getTileCoordChildTileRange(t,e,i){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){const i=2*t[1],r=2*t[2];return(0,n.N)(i,i+1,r,r+1,e)}const r=this.getTileCoordExtent(t,i||this.tmpExtent_);return this.getTileRangeForExtentAndZ(r,t[0]+1,e)}return null}getTileRangeForTileCoordAndZ(t,e,i){if(e>this.maxZoom||e<this.minZoom)return null;const r=t[0],s=t[1],o=t[2];if(e===r)return(0,n.N)(s,o,s,o,i);if(this.zoomFactor_){const t=Math.pow(this.zoomFactor_,e-r),a=Math.floor(s*t),l=Math.floor(o*t);if(e<r)return(0,n.N)(a,a,l,l,i);const h=Math.floor(t*(s+1))-1,c=Math.floor(t*(o+1))-1;return(0,n.N)(a,h,l,c,i)}const a=this.getTileCoordExtent(t,this.tmpExtent_);return this.getTileRangeForExtentAndZ(a,e,i)}getTileRangeForExtentAndZ(t,e,i){this.getTileCoordForXYAndZ_(t[0],t[3],e,!1,d);const r=d[1],s=d[2];this.getTileCoordForXYAndZ_(t[2],t[1],e,!0,d);const o=d[1],a=d[2];return(0,n.N)(r,o,s,a,i)}getTileCoordCenter(t){const e=this.getOrigin(t[0]),i=this.getResolution(t[0]),n=(0,u.xq)(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*n[0]*i,e[1]-(t[2]+.5)*n[1]*i]}getTileCoordExtent(t,e){const i=this.getOrigin(t[0]),n=this.getResolution(t[0]),r=(0,u.xq)(this.getTileSize(t[0]),this.tmpSize_),s=i[0]+t[1]*r[0]*n,o=i[1]-(t[2]+1)*r[1]*n,l=s+r[0]*n,h=o+r[1]*n;return(0,a.N)(s,o,l,h,e)}
2getTileCoordForCoordAndResolution(t,e,i){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,i)}getTileCoordForXYAndResolution_(t,e,i,n,r){const s=this.getZForResolution(i),a=i/this.getResolution(s),h=this.getOrigin(s),c=(0,u.xq)(this.getTileSize(s),this.tmpSize_);let d=a*(t-h[0])/i/c[0],f=a*(h[1]-e)/i/c[1];return n?(d=(0,o.mk)(d,5)-1,f=(0,o.mk)(f,5)-1):(d=(0,o.RI)(d,5),f=(0,o.RI)(f,5)),(0,l.N)(s,d,f,r)}getTileCoordForXYAndZ_(t,e,i,n,r){const s=this.getOrigin(i),a=this.getResolution(i),h=(0,u.xq)(this.getTileSize(i),this.tmpSize_);let c=(t-s[0])/a/h[0],d=(s[1]-e)/a/h[1];return n?(c=(0,o.mk)(c,5)-1,d=(0,o.mk)(d,5)-1):(c=(0,o.RI)(c,5),d=(0,o.RI)(d,5)),(0,l.N)(i,c,d,r)}getTileCoordForCoordAndZ(t,e,i){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,i)}getTileCoordResolution(t){return this.resolutions_[t[0]]}getTileSize(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]}getFullTileRange(t){return this.fullTileRanges_?this.fullTileRanges_[t]:this.extent_?this.getTileRangeForExtentAndZ(this.extent_,t):null}getZForResolution(t,e){const i=(0,c.FT)(this.resolutions_,t,e||0);return(0,o.qE)(i,this.minZoom,this.maxZoom)}tileCoordIntersectsViewport(t,e){return(0,h.sj)(e,0,e.length,2,this.getTileCoordExtent(t))}calculateTileRanges_(t){const e=this.resolutions_.length,i=new Array(e);for(let n=this.minZoom;n<e;++n)i[n]=this.getTileRangeForExtentAndZ(t,n);this.fullTileRanges_=i}}:null},6782:(t,e,i)=>{"use strict";function n(t){return t[0]>0&&t[1]>0}function r(t,e,i){return void 0===i&&(i=[0,0]),i[0]=t[0]*e+.5|0,i[1]=t[1]*e+.5|0,i}function s(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:(e[0]=t,e[1]=t),e)}i.d(e,{Ie:()=>n,hs:()=>r,xq:()=>s})},6823:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},6837:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n={CHANGE:"change",ERROR:"error",BLUR:"blur",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",FOCUS:"focus",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",RESIZE:"resize",TOUCHMOVE:"touchmove",WHEEL:"wheel"}},6840:(t,e,i)=>{"use strict";var n=i(4901),r=i(4913),s=i(283),o=i(9433);t.exports=function(t,e,i,a){a||(a={});var l=a.enumerable,h=void 0!==a.name?a.name:e;if(n(i)&&s(i,h,a),a.global)l?t[e]=i:o(e,i);else{try{a.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=i:r.f(t,e,{value:i,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return t}},6856:(t,e,i)=>{"use strict";i.d(e,{A:()=>a});var n=i(6837),r=i(6739),s=i(8704);class o extends r.Ay{constructor(t){super(),t=t||{},this.condition_=t.condition?t.condition:function(t){return!(0,s.GB)(t)&&(0,s.tE)(t)},this.delta_=t.delta?t.delta:1,this.duration_=void 0!==t.duration?t.duration:100}handleEvent(t){let e=!1;if(t.type==n.A.KEYDOWN||t.type==n.A.KEYPRESS){const i=t.originalEvent,n=i.key;if(this.condition_(t)&&("+"===n||"-"===n)){const s=t.map,o="+"===n?this.delta_:-this.delta_,a=s.getView();(0,r.D2)(a,o,void 0,this.duration_),i.preventDefault(),e=!0}}return!e}}const a=/^(217|331)$/.test(i.j)?o:null},6933:(t,e,i)=>{"use strict";if(i.d(e,{Li:()=>l,WQ:()=>r,aI:()=>s,e$:()=>o,hs:()=>a}),/^(217|331)$/.test(i.j))var n=i(915);function r(t,e){return t[0]+=+e[0],t[1]+=+e[1],t}function s(t,e){let i=!0;for(let n=t.length-1;n>=0;--n)if(t[n]!=e[n]){i=!1;break}return i}function o(t,e){const i=Math.cos(e),n=Math.sin(e),r=t[0]*i-t[1]*n,s=t[1]*i+t[0]*n;return t[0]=r,t[1]=s,t}function a(t,e){return t[0]*=e,t[1]*=e,t}function l(t,e){if(e.canWrapX()){const i=(0,n.RG)(e.getExtent()),r=function(t,e,i){const r=e.getExtent();let s=0;return e.canWrapX()&&(t[0]<r[0]||t[0]>r[2])&&(i=i||(0,n.RG)(r),s=Math.floor((t[0]-r[0])/i)),s}(t,e,i);r&&(t[0]-=r*i)}return t}},6936:(t,e,i)=>{"use strict";i.d(e,{A:()=>c});var n=i(6141),r=i(940),s=i(9528),o=i(7295),a=i(8711),l=i(8774);class h extends r.A{constructor(t){super({opacity:1,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,rotation:void 0!==t.rotation?t.rotation:0,scale:void 0!==t.scale?t.scale:1,displacement:void 0!==t.displacement?t.displacement:[0,0],declutterMode:t.declutterMode}
2),this.canvases_,this.hitDetectionCanvas_=null,this.fill_=void 0!==t.fill?t.fill:null,this.origin_=[0,0],this.points_=t.points,this.radius_=t.radius,this.radius2_=t.radius2,this.angle_=void 0!==t.angle?t.angle:0,this.stroke_=void 0!==t.stroke?t.stroke:null,this.size_,this.renderOptions_,this.imageState_=this.fill_&&this.fill_.loading()?n.A.LOADING:n.A.LOADED,this.imageState_===n.A.LOADING&&this.ready().then((()=>this.imageState_=n.A.LOADED)),this.render()}clone(){const t=this.getScale(),e=new h({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(t)?t.slice():t,displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return e.setOpacity(this.getOpacity()),e}getAnchor(){const t=this.size_,e=this.getDisplacement(),i=this.getScaleArray();return[t[0]/2-e[0]/i[0],t[1]/2+e[1]/i[1]]}getAngle(){return this.angle_}getFill(){return this.fill_}setFill(t){this.fill_=t,this.render()}getHitDetectionImage(){return this.hitDetectionCanvas_||(this.hitDetectionCanvas_=this.createHitDetectionCanvas_(this.renderOptions_)),this.hitDetectionCanvas_}getImage(t){let e=this.canvases_[t];if(!e){const i=this.renderOptions_,n=(0,a.Y)(i.size*t,i.size*t);this.draw_(i,n,t),e=n.canvas,this.canvases_[t]=e}return e}getPixelRatio(t){return t}getImageSize(){return this.size_}getImageState(){return this.imageState_}getOrigin(){return this.origin_}getPoints(){return this.points_}getRadius(){return this.radius_}getRadius2(){return this.radius2_}getSize(){return this.size_}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t,this.render()}listenImageChange(t){}load(){}unlistenImageChange(t){}calculateLineJoinSize_(t,e,i){if(0===e||this.points_===1/0||"bevel"!==t&&"miter"!==t)return e;let n=this.radius_,r=void 0===this.radius2_?n:this.radius2_;if(n<r){const t=n;n=r,r=t}const s=void 0===this.radius2_?this.points_:2*this.points_,o=2*Math.PI/s,a=r*Math.sin(o),l=n-Math.sqrt(r*r-a*a),h=Math.sqrt(a*a+l*l),c=h/a;if("miter"===t&&c<=i)return c*e;const u=e/2/c,d=e/2*(l/h),f=Math.sqrt((n+u)*(n+u)+d*d)-n;if(void 0===this.radius2_||"bevel"===t)return 2*f;const p=n*Math.sin(o),g=r-Math.sqrt(n*n-p*p),m=Math.sqrt(p*p+g*g)/p;if(m<=i){const t=m*e/2-r-n;return 2*Math.max(f,t)}return 2*f}createRenderOptions(){let t,e=l._m,i=l._K,n=0,r=null,s=0,a=0;this.stroke_&&(t=(0,o.F)(this.stroke_.getColor()??l.NT),a=this.stroke_.getWidth()??l.aq,r=this.stroke_.getLineDash(),s=this.stroke_.getLineDashOffset()??0,i=this.stroke_.getLineJoin()??l._K,e=this.stroke_.getLineCap()??l._m,n=this.stroke_.getMiterLimit()??l.eL);const h=this.calculateLineJoinSize_(i,a,n),c=Math.max(this.radius_,this.radius2_||0);return{strokeStyle:t,strokeWidth:a,size:Math.ceil(2*c+h),lineCap:e,lineDash:r,lineDashOffset:s,lineJoin:i,miterLimit:n}}render(){this.renderOptions_=this.createRenderOptions();const t=this.renderOptions_.size;this.canvases_={},this.hitDetectionCanvas_=null,this.size_=[t,t]}draw_(t,e,i){if(e.scale(i,i),e.translate(t.size/2,t.size/2),this.createPath_(e),this.fill_){let t=this.fill_.getColor();null===t&&(t=l.qY),e.fillStyle=(0,o.F)(t),e.fill()}t.strokeStyle&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())}createHitDetectionCanvas_(t){let e;if(this.fill_){let i=this.fill_.getColor(),n=0;"string"==typeof i&&(i=(0,s._j)(i)),null===i?n=1:Array.isArray(i)&&(n=4===i.length?i[3]:1),0===n&&(e=(0,a.Y)(t.size,t.size),this.drawHitDetectionCanvas_(t,e))}return e?e.canvas:this.getImage(1)}createPath_(t){let e=this.points_;const i=this.radius_;if(e===1/0)t.arc(0,0,i,0,2*Math.PI);else{const n=void 0===this.radius2_?i:this.radius2_;void 0!==this.radius2_&&(e*=2);const r=this.angle_-Math.PI/2,s=2*Math.PI/e;for(let o=0;o<e;o++){const e=r+o*s,a=o%2==0?i:n;t.lineTo(a*Math.cos(e),a*Math.sin(e))}t.closePath()}}drawHitDetectionCanvas_(t,e){e.translate(t.size/2,t.size/2),this.createPath_(e),e.fillStyle=l.qY,e.fill(),t.strokeStyle&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke())}ready(){return this.fill_?this.fill_.ready():Promise.resolve()}}const c=/^(217|331)$/.test(i.j)?h:null}
2,6955:(t,e,i)=>{"use strict";var n=i(2140),r=i(4901),s=i(2195),o=i(8227)("toStringTag"),a=Object,l="Arguments"===s(function(){return arguments}());t.exports=n?s:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=a(t),o))?i:l?s(e):"Object"===(n=s(e))&&r(e.callee)?"Arguments":n}},6969:(t,e,i)=>{"use strict";var n=i(2777),r=i(757);t.exports=function(t){var e=n(t,"string");return r(e)?e:e+""}},6980:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},6994:(t,e,i)=>{var n,r,s;window,r=[i(2831),i(1485)],void 0===(s="function"==typeof(n=function(t,e){"use strict";var i=t.create("masonry");i.compatOptions.fitWidth="isFitWidth";var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var t=0;t<this.cols;t++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},n.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var t=this.items[0],i=t&&t.element;this.columnWidth=i&&e(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,r=this.containerWidth+this.gutter,s=r/n,o=n-r%n;s=Math[o&&o<1?"round":"floor"](s),this.cols=Math.max(s,1)},n.getContainerWidth=function(){var t=this._getOption("fitWidth")?this.element.parentNode:this.element,i=e(t);this.containerWidth=i&&i.innerWidth},n._getItemLayoutPosition=function(t){t.getSize();var e=t.size.outerWidth%this.columnWidth,i=Math[e&&e<1?"round":"ceil"](t.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);for(var n=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,t),r={x:this.columnWidth*n.col,y:n.y},s=n.y+t.size.outerHeight,o=i+n.col,a=n.col;a<o;a++)this.colYs[a]=s;return r},n._getTopColPosition=function(t){var e=this._getTopColGroup(t),i=Math.min.apply(Math,e);return{col:e.indexOf(i),y:i}},n._getTopColGroup=function(t){if(t<2)return this.colYs;for(var e=[],i=this.cols+1-t,n=0;n<i;n++)e[n]=this._getColGroupY(n,t);return e},n._getColGroupY=function(t,e){if(e<2)return this.colYs[t];var i=this.colYs.slice(t,t+e);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(t,e){var i=this.horizontalColIndex%this.cols;i=t>1&&i+t>this.cols?0:i;var n=e.size.outerWidth&&e.size.outerHeight;return this.horizontalColIndex=n?i+t:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,t)}},n._manageStamp=function(t){var i=e(t),n=this._getElementOffset(t),r=this._getOption("originLeft")?
2n.left:n.right,s=r+i.outerWidth,o=Math.floor(r/this.columnWidth);o=Math.max(0,o);var a=Math.floor(s/this.columnWidth);a-=s%this.columnWidth?0:1,a=Math.min(this.cols-1,a);for(var l=(this._getOption("originTop")?n.top:n.bottom)+i.outerHeight,h=o;h<=a;h++)this.colYs[h]=Math.max(l,this.colYs[h])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var t={height:this.maxY};return this._getOption("fitWidth")&&(t.width=this._getContainerFitWidth()),t},n._getContainerFitWidth=function(){for(var t=0,e=this.cols;--e&&0===this.colYs[e];)t++;return(this.cols-t)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var t=this.containerWidth;return this.getContainerWidth(),t!=this.containerWidth},i})?n.apply(e,r):n)||(t.exports=s)},7015:(t,e,i)=>{"use strict";var n=i(4576),r=i(9504);t.exports=function(t,e){return r(n[t].prototype[e])}},7016:(t,e,i)=>{"use strict";if(i.d(e,{w:()=>s}),/^(217|331)$/.test(i.j))var n=i(1597);if(/^(217|331)$/.test(i.j))var r=i(7622);function s(t,e,i,s,o,a,l,h,c,u,d,f){let p=t[e],g=t[e+1],m=0,v=0,_=0,y=0;function x(){m=p,v=g,p=t[e+=s],g=t[e+1],y+=_,_=Math.sqrt((p-m)*(p-m)+(g-v)*(g-v))}do{x()}while(e<i-s&&y+_<a);let w=0===_?0:(a-y)/_;const b=(0,n.Cc)(m,p,w),E=(0,n.Cc)(v,g,w),C=e-s,A=y,S=a+h*c(u,o,d);for(;e<i-s&&y+_<S;)x();w=0===_?0:(S-y)/_;const T=(0,n.Cc)(m,p,w),I=(0,n.Cc)(v,g,w);let R;if(f){const t=[b,E,T,I];(0,r.e$)(t,0,4,2,f,t,t),R=t[0]>t[2]}else R=b>T;const D=Math.PI,M=[],L=C+s===e;let O;if(_=0,y=A,p=t[e=C],g=t[e+1],L){x(),O=Math.atan2(g-v,p-m),R&&(O+=O>0?-D:D);const t=(T+b)/2,e=(I+E)/2;return M[0]=[t,e,(S-a)/2,O,o],M}for(let t=0,r=(o=o.replace(/\n/g," ")).length;t<r;){x();let f=Math.atan2(g-v,p-m);if(R&&(f+=f>0?-D:D),void 0!==O){let t=f-O;if(t+=t>D?-2*D:t<-D?2*D:0,Math.abs(t)>l)return null}O=f;const b=t;let E=0;for(;t<r;++t){const n=h*c(u,o[R?r-t-1:t],d);if(e+s<i&&y+_<a+E+n/2)break;E+=n}if(t===b)continue;const C=R?o.substring(r-b,r-t):o.substring(b,t);w=0===_?0:(a+E/2-y)/_;const A=(0,n.Cc)(m,p,w),S=(0,n.Cc)(v,g,w);M.push([A,S,E/2,f,C]),a+=E}return M}}
2,7040:(t,e,i)=>{"use strict";var n=i(4495);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7055:(t,e,i)=>{"use strict";var n=i(9504),r=i(9039),s=i(2195),o=Object,a=n("".split);t.exports=r((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"===s(t)?a(t,""):o(t)}:o},7083:(t,e,i)=>{"use strict";i.d(e,{Ig:()=>n.I,Av:()=>M,RJ:()=>C,tI:()=>O,Rb:()=>L,Ad:()=>z,SD:()=>W,Jt:()=>I,hO:()=>R,RG:()=>P,FO:()=>k,Tf:()=>$,te:()=>G,JR:()=>q,vN:()=>Y,pd:()=>F});var n=i(8100);const r=class{constructor(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit}canWrapX(){return this.canWrapX_}getCode(){return this.code_}getExtent(){return this.extent_}getUnits(){return this.units_}getMetersPerUnit(){return this.metersPerUnit_||n.I[this.units_]}getWorldExtent(){return this.worldExtent_}getAxisOrientation(){return this.axisOrientation_}isGlobal(){return this.global_}setGlobal(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)}getDefaultTileGrid(){return this.defaultTileGrid_}setDefaultTileGrid(t){this.defaultTileGrid_=t}setExtent(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)}setWorldExtent(t){this.worldExtent_=t}setGetPointResolution(t){this.getPointResolutionFunc_=t}getPointResolutionFunc(){return this.getPointResolutionFunc_}},s=6378137,o=Math.PI*s,a=[-o,-o,o,o],l=[-180,-85,180,85],h=s*Math.log(Math.tan(Math.PI/2));class c extends r{constructor(t){super({code:t,units:"m",extent:a,global:!0,worldExtent:l,getPointResolution:function(t,e){return t/Math.cosh(e[1]/s)}})}}const u=[new c("EPSG:3857"),new c("EPSG:102100"),new c("EPSG:102113"),new c("EPSG:900913"),new c("http://www.opengis.net/def/crs/EPSG/0/3857"),new c("http://www.opengis.net/gml/srs/epsg.xml#3857")];const d=[-180,-90,180,90],f=6378137*Math.PI/180;class p extends r{constructor(t,e){super({code:t,units:"degrees",extent:d,axisOrientation:e,global:!0,metersPerUnit:f,worldExtent:d})}}const g=[new p("CRS:84"),new p("EPSG:4326","neu"),new p("urn:ogc:def:crs:OGC:1.3:CRS84"),new p("urn:ogc:def:crs:OGC:2:84"),new p("http://www.opengis.net/def/crs/OGC/1.3/CRS84"),new p("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new p("http://www.opengis.net/def/crs/EPSG/0/4326","neu")];let m={},v={};function _(t,e,i){const n=t.getCode(),r=e.getCode();n in v||(v[n]={}),v[n][r]=i}var y=i(915),x=i(6933),w=i(2490),b=i(4422);let E=!0;function C(t){E=!(void 0===t||t)}function A(t,e){if(void 0!==e)for(let i=0,n=t.length;i<n;++i)e[i]=t[i];else e=t.slice();return e}function S(t,e){if(void 0!==e&&t!==e){for(let i=0,n=t.length;i<n;++i)e[i]=t[i];t=e}return t}function T(t){!function(t,e){m[t]=e}(t.getCode(),t),_(t,t,A)}function I(t){return"string"==typeof t?m[e=t]||m[e.replace(/urn:(x-)?ogc:def:crs:EPSG:(.*:)?(\w+)$/,"EPSG:$3")]||null:t||null;var e}function R(t,e,i,r){let s;const o=(t=I(t)).getPointResolutionFunc();if(o){if(s=o(e,i),r&&r!==t.getUnits()){const e=t.getMetersPerUnit();e&&(s=s*e/n.I[r])}}else{const o=t.getUnits();if("degrees"==o&&!r||"degrees"==r)s=e;else{const a=k(t,I("EPSG:4326"));if(a===S&&"degrees"!==o)s=e*t.getMetersPerUnit();else{let t=[i[0]-e/2,i[1],i[0]+e/2,i[1],i[0],i[1]-e/2,i[0],i[1]+e/2];t=a(t,t,2),s=((0,w.Yf)(t.slice(0,2),t.slice(2,4))+(0,w.Yf)(t.slice(4,6),t.slice(6,8)))/2}const l=r?n.I[r]:t.getMetersPerUnit();void 0!==l&&(s/=l)}}return s}function D(t){!function(t){t.forEach(T)}(t),t.forEach((function(e){t.forEach((function(t){e!==t&&_(e,t,A)}))}))}function M(t,e){return t?"string"==typeof t?I(t):t:I(e)}function L(t,e){return C(),F(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}function O(t,e){if(t===e)return!0;const i=t.getUnits()===e.getUnits();return(t.getCode()===e.getCode()||k(t,e)===A)&&i}function k(t,e){let i=function(t,e){let i;return t in v&&e in v[t]&&(i=v[t][e]),i}(t.getCode(),e.getCode());
2return i||(i=S),i}function P(t,e){return k(I(t),I(e))}function F(t,e,i){return P(e,i)(t,void 0,t.length)}function N(t,e,i,n){const r=P(e,i);return(0,y.NW)(t,r,void 0,n)}let j=null;function $(){return j}function G(t,e){return j?F(t,e,j):t}function z(t,e){return j?F(t,j,e):(E&&!(0,x.aI)(t,[0,0])&&t[0]>=-180&&t[0]<=180&&t[1]>=-90&&t[1]<=90&&(E=!1,(0,b.R8)("Call useGeographic() from ol/proj once to work with [longitude, latitude] coordinates.")),t)}function q(t,e){return j?N(t,e,j):t}function W(t,e){return j?N(t,j,e):t}function Y(t,e){if(!j)return t;const i=I(e).getMetersPerUnit(),n=j.getMetersPerUnit();return i&&n?t*i/n:t}var H,B,Z;D(u),D(g),H=u,B=function(t,e,i){const n=t.length;i=i>1?i:2,void 0===e&&(e=i>2?t.slice():new Array(n));for(let r=0;r<n;r+=i){e[r]=o*t[r]/180;let i=s*Math.log(Math.tan(Math.PI*(+t[r+1]+90)/360));i>h?i=h:i<-h&&(i=-h),e[r+1]=i}return e},Z=function(t,e,i){const n=t.length;i=i>1?i:2,void 0===e&&(e=i>2?t.slice():new Array(n));for(let r=0;r<n;r+=i)e[r]=180*t[r]/o,e[r+1]=360*Math.atan(Math.exp(t[r+1]/s))/Math.PI-90;return e},g.forEach((function(t){H.forEach((function(e){_(t,e,B),_(e,t,Z)}))}))},7115:(t,e,i)=>{"use strict";i.d(e,{L:()=>n,R:()=>r});const n=42,r=256},7175:(t,e,i)=>{"use strict";i(8505)},7275:(t,e,i)=>{"use strict";var n=i(3580);t.exports=n},7295:(t,e,i)=>{"use strict";if(i.d(e,{F:()=>l}),/^(217|331)$/.test(i.j))var n=i(6141);if(/^(217|331)$/.test(i.j))var r=i(8711);if(/^(217|331)$/.test(i.j))var s=i(7907);if(/^(217|331)$/.test(i.j))var o=i(2241);if(/^(217|331)$/.test(i.j))var a=i(9528);function l(t){return t?Array.isArray(t)?(0,a.dI)(t):"object"==typeof t&&"src"in t?function(t){if(!t.offset||!t.size)return o.ue.getPattern(t.src,"anonymous",t.color);const e=t.src+":"+t.offset,i=o.ue.getPattern(e,void 0,t.color);if(i)return i;const a=o.ue.get(t.src,"anonymous",null);if(a.getImageState()!==n.A.LOADED)return null;const l=(0,r.Y)(t.size[0],t.size[1]);return l.drawImage(a.getImage(1),t.offset[0],t.offset[1],t.size[0],t.size[1],0,0,t.size[0],t.size[1]),(0,s.J)(l.canvas,e,void 0,n.A.LOADED,t.color,!0),o.ue.getPattern(e,void 0,t.color)}(t):t:null}},7327:(t,e,i)=>{"use strict";if(i.d(e,{vU:()=>w}),/^(217|331)$/.test(i.j))var n=i(1765);if(/^(217|331)$/.test(i.j))var r=i(5220);if(/^(217|331)$/.test(i.j))var s=i(6717);if(/^(217|331)$/.test(i.j))var o=i(3504);if(/^(217|331)$/.test(i.j))var a=i(416);if(/^(217|331)$/.test(i.j))var l=i(4294);if(/^(217|331)$/.test(i.j))var h=i(8456);if(/^(217|331)$/.test(i.j))var c=i(2412);if(/^(217|331)$/.test(i.j))var u=i(9276);if(/^(217|331)$/.test(i.j))var d=i(9700);if(/^(217|331)$/.test(i.j))var f=i(915);var p=i(7083),g="pin-black",m="".concat(window.GLOBALS.webroot,"/customers/tgk/frontend/static/graphics/osm-").concat(g,".svg"),v=[{color:"red",id:"agendaPage_get"},{color:"black",id:"magazinPage_get"},{color:"green",id:"kulturplatzPage_get"}],_="EPSG:3857",y={switzerland:(0,p.Rb)([8.224103,46.822427]),thurgau:(0,p.Rb)([9.08537,47.535911])},x=/^(217|331)$/.test(i.j)?[]:null;function w(){var t=document.getElementById("ol-map");t&&window.mapCoords&&window.mapCoords.length>0&&function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(t){var i=new n.Ay({projection:_,zoom:15,center:y.thurgau}),w=new r.A({target:t,projection:_,layers:[new o.A({id:"background-layer",source:new h.A({url:"https://tile.osm.ch/osm-swiss-style/{z}/{x}/{y}.png",attributions:['Data &copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors <a href="https://opendatacommons.org/licenses/odbl/">ODbL</a>',' | Map by <a href="https://sosm.ch/">SOSM</a>',' | <a id="problem-attribution" href="http://www.openstreetmap.org/fixthemap?lat=0&lon=0&zoom=15">Report a problem</a>'],attributionsCollapsible:!1})})],view:i});if(e.forEach((function(t){return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(0!==e.length){x.push((0,p.Rb)([e.lng,e.lat]));var i,n,r,o,h=new c.A({features:[new s.A({geometry:new l.A((0,p.Rb)([e.lng,e.lat]))})]});t.addLayer(new a.A({title:"Company Location",source:h,style:new u.Ay({image:new d.A({src:(i=m,n=document.querySelector("body"),r=n.hasAttribute("id")?n.getAttribute("id"):null,o=v.find((function(t){return t.id===r})),o&&(i=i.replace(g,"pin-".concat(o.color))),i),anchor:[.5,1]})})}))}}(w,t)})),0!==x.length&&e.length>0){var b=(0,f.r)((0,f.Tr)(x),5e3);i.setCenter((0,f.q1)(b)),i.fit(b)}}}(t,window.mapCoords)}},7347:(t,e,i)=>{"use strict";var n=i(3724),r=i(9565),s=i(8773),o=i(6980),a=i(5397),l=i(6969),h=i(9297),c=i(5917),u=Object.getOwnPropertyDescriptor;e.f=n?u:function(t,e){if(t=a(t),e=l(e),c)try{return u(t,e)}catch(t){}if(h(t,e))return o(!r(s.f,t,e),t[e])}},7433:(t,e,i)=>{"use strict";var n=i(4376),r=i(3517),s=i(34),o=i(8227)("species"),a=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,(r(e)&&(e===a||n(e.prototype))||s(e)&&null===(e=e[o]))&&(e=void 0)),void 0===e?a:e}},7456:(t,e,i)=>{"use strict";i.d(e,{A:()=>c});var n=i(972),r=i(6837),s=i(5176),o=i(6514),a=i(8711),l=i(4238);class h extends n.A{constructor(t){t=t||{},super({element:document.createElement("div"),render:t.render,target:t.target}),this.ulElement_=document.createElement("ul"),this.collapsed_=void 0===t.collapsed||t.collapsed,this.userCollapsed_=this.collapsed_,this.overrideCollapsible_=void 0!==t.collapsible,this.collapsible_=void 0===t.collapsible||t.collapsible,this.collapsible_||(this.collapsed_=!1);const e=void 0!==t.className?t.className:"ol-attribution",i=void 0!==t.tipLabel?t.tipLabel:"Attributions",n=void 0!==t.expandClassName?t.expandClassName:e+"-expand",o=void 0!==t.collapseLabel?t.collapseLabel:"›",a=void 0!==t.collapseClassName?t.collapseClassName:e+"-collapse";"string"==typeof o?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=o,this.collapseLabel_.className=a):this.collapseLabel_=o;const l=void 0!==t.label?t.label:"i";"string"==typeof l?(this.label_=document.createElement("span"),this.label_.textContent=l,this.label_.className=n):this.label_=l;const h=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_;this.toggleButton_=document.createElement("button"),this.toggleButton_.setAttribute("type","button"),this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_)),this.toggleButton_.title=i,this.toggleButton_.appendChild(h),this.toggleButton_.addEventListener(r.A.CLICK,this.handleClick_.bind(this),!1);const c=e+" "+s.XI+" "+s.$N+(this.collapsed_&&this.collapsible_?" "+s.nT:"")+(this.collapsible_?"":" ol-uncollapsible"),u=this.element;u.className=c,u.appendChild(this.toggleButton_),u.appendChild(this.ulElement_),this.renderedAttributions_=[],this.renderedVisible_=!0}collectSourceAttributions_(t){const e=Array.from(new Set(this.getMap().getAllLayers().flatMap((e=>e.getAttributions(t))))),i=!this.getMap().getAllLayers().some((t=>t.getSource()&&!1===t.getSource().getAttributionsCollapsible()));return this.overrideCollapsible_||this.setCollapsible(i),e}async updateElement_(t){if(!t)return void(this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1));const e=await Promise.all(this.collectSourceAttributions_(t).map((t=>(0,l.hq)((()=>t))))),i=e.length>0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!(0,o.aI)(e,this.renderedAttributions_)){(0,a.gS)(this.ulElement_);for(let t=0,i=e.length;t<i;++t){const i=document.createElement("li");i.innerHTML=e[t],this.ulElement_.appendChild(i)}this.renderedAttributions_=e}}handleClick_(t){t.preventDefault(),this.handleToggle_(),this.userCollapsed_=this.collapsed_}handleToggle_(){this.element.classList.toggle(s.nT),this.collapsed_?(0,a.fo)(this.collapseLabel_,this.label_):(0,a.fo)(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_,this.toggleButton_.setAttribute("aria-expanded",String(!this.collapsed_))}getCollapsible(){return this.collapsible_}setCollapsible(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),this.userCollapsed_&&this.handleToggle_())}setCollapsed(t){this.userCollapsed_=t,this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()}getCollapsed(){return this.collapsed_}render(t){this.updateElement_(t.frameState)}}const c=/^(217|331)$/.test(i.j)?h:null},7476:(t,e,i)=>{"use strict";var n=i(2195),r=i(9504);t.exports=function(t){if("Function"===n(t))return r(t)}}
2,7507:(t,e,i)=>{"use strict";i.d(e,{A:()=>u});var n=i(6837),r=i(6739);const s="ArrowLeft",o="ArrowRight",a="ArrowDown";var l=i(8704),h=i(6933);class c extends r.Ay{constructor(t){super(),t=t||{},this.defaultCondition_=function(t){return(0,l.TS)(t)&&(0,l.tE)(t)},this.condition_=void 0!==t.condition?t.condition:this.defaultCondition_,this.duration_=void 0!==t.duration?t.duration:100,this.pixelDelta_=void 0!==t.pixelDelta?t.pixelDelta:128}handleEvent(t){let e=!1;if(t.type==n.A.KEYDOWN){const i=t.originalEvent,n=i.key;if(this.condition_(t)&&(n==a||n==s||n==o||"ArrowUp"==n)){const l=t.map.getView(),c=l.getResolution()*this.pixelDelta_;let u=0,d=0;n==a?d=-c:n==s?u=-c:n==o?u=c:d=c;const f=[u,d];(0,h.e$)(f,l.getRotation()),(0,r.e4)(l,f,this.duration_),i.preventDefault(),e=!0}}return!e}}const u=c},7622:(t,e,i)=>{"use strict";function n(t,e,i,n,r,s){s=s||[];let o=0;for(let a=e;a<i;a+=n){const e=t[a],i=t[a+1];s[o++]=r[0]*e+r[2]*i+r[4],s[o++]=r[1]*e+r[3]*i+r[5]}return s&&s.length!=o&&(s.length=o),s}function r(t,e,i,n,r,s,o){o=o||[];const a=Math.cos(r),l=Math.sin(r),h=s[0],c=s[1];let u=0;for(let r=e;r<i;r+=n){const e=t[r]-h,i=t[r+1]-c;o[u++]=h+e*a-i*l,o[u++]=c+e*l+i*a;for(let e=r+2;e<r+n;++e)o[u++]=t[e]}return o&&o.length!=u&&(o.length=u),o}function s(t,e,i,n,r,s,o,a){a=a||[];const l=o[0],h=o[1];let c=0;for(let o=e;o<i;o+=n){const e=t[o]-l,i=t[o+1]-h;a[c++]=l+r*e,a[c++]=h+s*i;for(let e=o+2;e<o+n;++e)a[c++]=t[e]}return a&&a.length!=c&&(a.length=c),a}function o(t,e,i,n,r,s,o){o=o||[];let a=0;for(let l=e;l<i;l+=n){o[a++]=t[l]+r,o[a++]=t[l+1]+s;for(let e=l+2;e<l+n;++e)o[a++]=t[e]}return o&&o.length!=a&&(o.length=a),o}i.d(e,{Rc:()=>n,Tl:()=>o,e$:()=>r,hs:()=>s})},7629:(t,e,i)=>{"use strict";var n=i(6395),r=i(4576),s=i(9433),o="__core-js_shared__",a=t.exports=r[o]||s(o,{});(a.versions||(a.versions=[])).push({version:"3.42.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"})},7733:(t,e,i)=>{"use strict";i.d(e,{A:()=>s});var n=i(6936);class r extends n.A{constructor(t){super({points:1/0,fill:(t=t||{radius:5}).fill,radius:t.radius,stroke:t.stroke,scale:void 0!==t.scale?t.scale:1,rotation:void 0!==t.rotation?t.rotation:0,rotateWithView:void 0!==t.rotateWithView&&t.rotateWithView,displacement:void 0!==t.displacement?t.displacement:[0,0],declutterMode:t.declutterMode})}clone(){const t=this.getScale(),e=new r({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),scale:Array.isArray(t)?t.slice():t,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()});return e.setOpacity(this.getOpacity()),e}setRadius(t){this.radius_=t,this.render()}}const s=/^(217|331)$/.test(i.j)?r:null},7740:(t,e,i)=>{"use strict";var n=i(9297),r=i(5031),s=i(7347),o=i(4913);t.exports=function(t,e,i){for(var a=r(e),l=o.f,h=s.f,c=0;c<a.length;c++){var u=a[c];n(t,u)||i&&n(i,u)||l(t,u,h(e,u))}}},7750:(t,e,i)=>{"use strict";var n=i(4117),r=TypeError;t.exports=function(t){if(n(t))throw new r("Can't call method on "+t);return t}},7751:(t,e,i)=>{"use strict";var n=i(4576),r=i(4901);t.exports=function(t,e){return arguments.length<2?(i=n[t],r(i)?i:void 0):n[t]&&n[t][e];var i}},7771:(t,e,i)=>{"use strict";i.d(e,{DT:()=>h,FT:()=>c,Wl:()=>l,_p:()=>r,cr:()=>a,ew:()=>o,j:()=>s});const n="undefined"!=typeof navigator&&void 0!==navigator.userAgent?navigator.userAgent.toLowerCase():"",r=n.includes("firefox"),s=(n.includes("safari")&&!n.includes("chrom")&&(n.includes("version/15.4")||/cpu (os|iphone os) 15_4 like mac os x/.test(n)),n.includes("webkit")&&!n.includes("edge")),o=n.includes("macintosh"),a="undefined"!=typeof devicePixelRatio?devicePixelRatio:1,l="undefined"!=typeof WorkerGlobalScope&&"undefined"!=typeof OffscreenCanvas&&self instanceof WorkerGlobalScope,h="undefined"!=typeof Image&&Image.prototype.decode,c=function(){let t=!1;try{const e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("_",null,e),window.removeEventListener("_",null,e)}catch(t){}return t}()},7782:(t,e,i)=>{"use strict";i(6008)},7907:(t,e,i)=>{"use strict";i.d(e,{J:()=>d});var n=i(9332),r=i(6837),s=i(6141),o=i(9528),a=i(8711),l=i(3938);if(/^(217|331)$/.test(i.j))var h=i(2241);let c=null;class u extends n.A{constructor(t,e,i,n,r){super(),this.hitDetectionImage_=null,this.image_=t,this.crossOrigin_=i,this.canvas_={},this.color_=r,this.imageState_=void 0===n?s.A.IDLE:n,this.size_=t&&t.width&&t.height?[t.width,t.height]:null,this.src_=e,this.tainted_,this.ready_=null}initializeImage_(){this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)}isTainted_(){if(void 0===this.tainted_&&this.imageState_===s.A.LOADED){c||(c=(0,a.Y)(1,1,void 0,{willReadFrequently:!0}
2)),c.drawImage(this.image_,0,0);try{c.getImageData(0,0,1,1),this.tainted_=!1}catch(t){c=null,this.tainted_=!0}}return!0===this.tainted_}dispatchChangeEvent_(){this.dispatchEvent(r.A.CHANGE)}handleImageError_(){this.imageState_=s.A.ERROR,this.dispatchChangeEvent_()}handleImageLoad_(){this.imageState_=s.A.LOADED,this.size_=[this.image_.width,this.image_.height],this.dispatchChangeEvent_()}getImage(t){return this.image_||this.initializeImage_(),this.replaceColor_(t),this.canvas_[t]?this.canvas_[t]:this.image_}getPixelRatio(t){return this.replaceColor_(t),this.canvas_[t]?t:1}getImageState(){return this.imageState_}getHitDetectionImage(){if(this.image_||this.initializeImage_(),!this.hitDetectionImage_)if(this.isTainted_()){const t=this.size_[0],e=this.size_[1],i=(0,a.Y)(t,e);i.fillRect(0,0,t,e),this.hitDetectionImage_=i.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_}getSize(){return this.size_}getSrc(){return this.src_}load(){if(this.imageState_===s.A.IDLE){this.image_||this.initializeImage_(),this.imageState_=s.A.LOADING;try{void 0!==this.src_&&(this.image_.src=this.src_)}catch(t){this.handleImageError_()}this.image_ instanceof HTMLImageElement&&(0,l.RA)(this.image_,this.src_).then((t=>{this.image_=t,this.handleImageLoad_()})).catch(this.handleImageError_.bind(this))}}replaceColor_(t){if(!this.color_||this.canvas_[t]||this.imageState_!==s.A.LOADED)return;const e=this.image_,i=document.createElement("canvas");i.width=Math.ceil(e.width*t),i.height=Math.ceil(e.height*t);const n=i.getContext("2d");n.scale(t,t),n.drawImage(e,0,0),n.globalCompositeOperation="multiply",n.fillStyle=(0,o.oJ)(this.color_),n.fillRect(0,0,i.width/t,i.height/t),n.globalCompositeOperation="destination-in",n.drawImage(e,0,0),this.canvas_[t]=i}ready(){return this.ready_||(this.ready_=new Promise((t=>{this.imageState_===s.A.LOADED||this.imageState_===s.A.ERROR?t():this.addEventListener(r.A.CHANGE,(function e(){this.imageState_!==s.A.LOADED&&this.imageState_!==s.A.ERROR||(this.removeEventListener(r.A.CHANGE,e),t())}))}))),this.ready_}}function d(t,e,i,n,r,s){let o=void 0===e?void 0:h.ue.get(e,i,r);return o||(o=new u(t,t&&"src"in t?t.src||void 0:e,i,n,r),h.ue.set(e,i,r,o,s)),s&&o&&!h.ue.getPattern(e,i,r)&&h.ue.set(e,i,r,o,s),o}},7956:(t,e,i)=>{"use strict";var n=i(4525);t.exports=n},8014:(t,e,i)=>{"use strict";var n=i(1291),r=Math.min;t.exports=function(t){var e=n(t);return e>0?r(e,9007199254740991):0}},8100:(t,e,i)=>{"use strict";i.d(e,{I:()=>n});const n={radians:6370997/(2*Math.PI),degrees:2*Math.PI*6370997/360,ft:.3048,m:1,"us-ft":1200/3937}},8130:(t,e,i)=>{"use strict";i.d(e,{A:()=>d});var n=i(6429),r=i(1580),s=i(2826),o=i(7295),a=i(915),l=i(8774),h=i(6514),c=i(6361);class u extends s.A{constructor(t,e,i,n){super(),this.tolerance=t,this.maxExtent=e,this.pixelRatio=n,this.maxLineWidth=0,this.resolution=i,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.tmpCoordinate_=[],this.hitDetectionInstructions=[],this.state={}}applyPixelRatio(t){const e=this.pixelRatio;return 1==e?t:t.map((function(t){return t*e}))}appendFlatPointCoordinates(t,e){const i=this.getBufferedMaxExtent(),n=this.tmpCoordinate_,r=this.coordinates;let s=r.length;for(let o=0,l=t.length;o<l;o+=e)n[0]=t[o],n[1]=t[o+1],(0,a.Ym)(i,n)&&(r[s++]=n[0],r[s++]=n[1]);return s}appendFlatLineCoordinates(t,e,i,n,s,o){const l=this.coordinates;let h=l.length;const c=this.getBufferedMaxExtent();o&&(e+=n);let u=t[e],d=t[e+1];const f=this.tmpCoordinate_;let p,g,m,v=!0;for(p=e+n;p<i;p+=n)f[0]=t[p],f[1]=t[p+1],m=(0,a.vz)(c,f),m!==g?(v&&(l[h++]=u,l[h++]=d,v=!1),l[h++]=f[0],l[h++]=f[1]):m===r.A.INTERSECTING?(l[h++]=f[0],l[h++]=f[1],v=!1):v=!0,u=f[0],d=f[1],g=m;return(s&&v||p===e+n)&&(l[h++]=u,l[h++]=d),h}drawCustomCoordinates_(t,e,i,n,r){for(let s=0,o=i.length;s<o;++s){const o=i[s],a=this.appendFlatLineCoordinates(t,e,o,n,!1,!1);r.push(a),e=o}return e}drawCustom(t,e,i,r,s){this.beginGeometry(t,e,s);const o=t.getType(),a=t.getStride(),l=this.coordinates.length;let h,u,d,f,p;switch(o){case"MultiPolygon":h=t.getOrientedFlatCoordinates(),f=[];const e=t.getEndss();p=0;for(let t=0,i=e.length;t<i;++t){const i=[];p=this.drawCustomCoordinates_(h,p,e[t],a,i),f.push(i)}this.instructions.push([n.Ay.CUSTOM,l,f,t,i,c.Dz,s]),this.hitDetectionInstructions.push([n.Ay.CUSTOM,l,f,t,r||i,c.Dz,
2s]);break;case"Polygon":case"MultiLineString":d=[],h="Polygon"==o?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),p=this.drawCustomCoordinates_(h,0,t.getEnds(),a,d),this.instructions.push([n.Ay.CUSTOM,l,d,t,i,c.cD,s]),this.hitDetectionInstructions.push([n.Ay.CUSTOM,l,d,t,r||i,c.cD,s]);break;case"LineString":case"Circle":h=t.getFlatCoordinates(),u=this.appendFlatLineCoordinates(h,0,h.length,a,!1,!1),this.instructions.push([n.Ay.CUSTOM,l,u,t,i,c.n2,s]),this.hitDetectionInstructions.push([n.Ay.CUSTOM,l,u,t,r||i,c.n2,s]);break;case"MultiPoint":h=t.getFlatCoordinates(),u=this.appendFlatPointCoordinates(h,a),u>l&&(this.instructions.push([n.Ay.CUSTOM,l,u,t,i,c.n2,s]),this.hitDetectionInstructions.push([n.Ay.CUSTOM,l,u,t,r||i,c.n2,s]));break;case"Point":h=t.getFlatCoordinates(),this.coordinates.push(h[0],h[1]),u=this.coordinates.length,this.instructions.push([n.Ay.CUSTOM,l,u,t,i,void 0,s]),this.hitDetectionInstructions.push([n.Ay.CUSTOM,l,u,t,r||i,void 0,s])}this.endGeometry(e)}beginGeometry(t,e,i){this.beginGeometryInstruction1_=[n.Ay.BEGIN_GEOMETRY,e,0,t,i],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[n.Ay.BEGIN_GEOMETRY,e,0,t,i],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)}finish(){return{instructions:this.instructions,hitDetectionInstructions:this.hitDetectionInstructions,coordinates:this.coordinates}}reverseHitDetectionInstructions(){const t=this.hitDetectionInstructions;let e;t.reverse();const i=t.length;let r,s,o=-1;for(e=0;e<i;++e)r=t[e],s=r[0],s==n.Ay.END_GEOMETRY?o=e:s==n.Ay.BEGIN_GEOMETRY&&(r[2]=e,(0,h.gI)(this.hitDetectionInstructions,o,e),o=-1)}setFillStrokeStyle(t,e){const i=this.state;if(t){const e=t.getColor();i.fillPatternScale=e&&"object"==typeof e&&"src"in e?this.pixelRatio:1,i.fillStyle=(0,o.F)(e||l.qY)}else i.fillStyle=void 0;if(e){const t=e.getColor();i.strokeStyle=(0,o.F)(t||l.NT);const n=e.getLineCap();i.lineCap=void 0!==n?n:l._m;const r=e.getLineDash();i.lineDash=r?r.slice():l.Oq;const s=e.getLineDashOffset();i.lineDashOffset=s||l.vk;const a=e.getLineJoin();i.lineJoin=void 0!==a?a:l._K;const h=e.getWidth();i.lineWidth=void 0!==h?h:l.aq;const c=e.getMiterLimit();i.miterLimit=void 0!==c?c:l.eL,i.lineWidth>this.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0}createFill(t){const e=t.fillStyle,i=[n.Ay.SET_FILL_STYLE,e];return"string"!=typeof e&&i.push(t.fillPatternScale),i}applyStroke(t){this.instructions.push(this.createStroke(t))}createStroke(t){return[n.Ay.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]}updateFillStyle(t,e){const i=t.fillStyle;"string"==typeof i&&t.currentFillStyle==i||(void 0!==i&&this.instructions.push(e.call(this,t)),t.currentFillStyle=i)}updateStrokeStyle(t,e){const i=t.strokeStyle,n=t.lineCap,r=t.lineDash,s=t.lineDashOffset,o=t.lineJoin,a=t.lineWidth,l=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=n||r!=t.currentLineDash&&!(0,h.aI)(t.currentLineDash,r)||t.currentLineDashOffset!=s||t.currentLineJoin!=o||t.currentLineWidth!=a||t.currentMiterLimit!=l)&&(void 0!==i&&e.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=n,t.currentLineDash=r,t.currentLineDashOffset=s,t.currentLineJoin=o,t.currentLineWidth=a,t.currentMiterLimit=l)}endGeometry(t){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;const e=[n.Ay.END_GEOMETRY,t];this.instructions.push(e),this.hitDetectionInstructions.push(e)}getBufferedMaxExtent(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=(0,a.o8)(this.maxExtent),this.maxLineWidth>0)){const t=this.resolution*(this.maxLineWidth+1)/2;(0,a.r)(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_}}const d=/^(217|331)$/.test(i.j)?u:null},8143:(t,e,i)=>{"use strict";i.d(e,{A:()=>h});var n=i(9332),r=i(6837),s=i(1078),o=i(4087),a=i(3474);class l extends n.A{constructor(t,e,i){super(),i=i||{},this.tileCoord=t,this.state=e,this.interimTile=null,this.key="",this.transition_=void 0===i.transition?250:i.transition,this.transitionStarts_={},this.interpolate=!!i.interpolate}changed(){this.dispatchEvent(r.A.CHANGE)}release(){this.state===s.A.ERROR&&this.setState(s.A.EMPTY)}getKey(){return this.key+"/"+this.tileCoord}getInterimTile(){let t=this.interimTile;if(!t)return this;do{if(t.getState()==s.A.LOADED)return this.transition_=0,t;t=t.interimTile}while(t);return this}refreshInterimChain(){let t=this.interimTile;if(!t)return;let e=this;do{if(t.getState()==s.A.LOADED){t.interimTile=null;break}t.getState()==s.A.LOADING?e=t:t.getState()==s.A.IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}getTileCoord(){return this.tileCoord}getState(){return this.state}setState(t){if(this.state!==s.A.ERROR&&this.state>t)throw new Error("Tile load sequence violation");this.state=t,this.changed()}load(){(0,o.b0)()}getAlpha(t,e){if(!this.transition_)return 1;let i=this.transitionStarts_[t];if(i){if(-1===i)return 1}else i=e,this.transitionStarts_[t]=i;const n=e-i+1e3/60;return n>=this.transition_?1:(0,a.a6)(n/this.transition_)}inTransition(t){return!!this.transition_&&-1!==this.transitionStarts_[t]}endTransition(t){this.transition_&&(this.transitionStarts_[t]=-1)}}const h=/^(217|331)$/.test(i.j)?l:null},8168:(t,e,i)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)({}).hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t},n.apply(null,arguments)}i.d(e,{A:()=>n})},8227:(t,e,i)=>{"use strict";var n=i(4576),r=i(5745),s=i(9297),o=i(3392),a=i(4495),l=i(7040),h=n.Symbol,c=r("wks"),u=l?h.for||h:h&&h.withoutSetter||o;t.exports=function(t){return s(c,t)||(c[t]=a&&s(h,t)?h[t]:u("Symbol."+t)),c[t]}},8418:(t,e,i)=>{"use strict";var n=i(8473);t.exports=n},8428:(t,e,i)=>{"use strict";function n(t,e,i,n){for(;e<i-n;){for(let r=0;r<n;++r){const s=t[e+r];t[e+r]=t[i-n+r],t[i-n+r]=s}e+=n,i-=n}}i.d(e,{G:()=>n})},8450:(t,e,i)=>{"use strict";i.d(e,{A:()=>n});const n={PROPERTYCHANGE:"propertychange"}},8456:(t,e,i)=>{"use strict";i.d(e,{A:()=>L});var n=i(6837),r=i(190),s=i(2963),o=i(4969),a=i(186);class l extends o.A{clear(){for(;this.getCount()>0;)this.pop().release();super.clear()}expireCache(t){for(;this.canExpireCache()&&!(this.peekLast().getKey()in t);)this.pop().release()}pruneExceptNewestZ(){if(0===this.getCount())return;const t=this.peekFirstKey(),e=(0,a.K)(t)[0];this.forEach((t=>{t.tileCoord[0]!==e&&(this.remove((0,a.i7)(t.tileCoord)),t.release()
2)}))}}const h=l;var c=i(1078);var u=i(1685),d=i(6444),f=i(4087),p=i(588),g=i(7083),m=i(6758),v=i(7115),_=i(915),y=i(6782);function x(t){let e=t.getDefaultTileGrid();return e||(e=function(t){return function(t,e,i,n){n=void 0!==n?n:"top-left";const r=w(t,e,i);return new m.A({extent:t,origin:(0,_.qF)(t,n),resolutions:r,tileSize:i})}(b(t),void 0,void 0,void 0)}(t),t.setDefaultTileGrid(e)),e}function w(t,e,i,n){e=void 0!==e?e:v.L,i=(0,y.xq)(void 0!==i?i:v.R);const r=(0,_.Oq)(t),s=(0,_.RG)(t);n=n>0?n:Math.max(s/i[0],r/i[1]);const o=e+1,a=new Array(o);for(let t=0;t<o;++t)a[t]=n/Math.pow(2,t);return a}function b(t){let e=(t=(0,g.Jt)(t)).getExtent();if(!e){const i=180*g.Ig.degrees/t.getMetersPerUnit();e=(0,_.N)(-i,-i,i,i)}return e}class E extends d.A{constructor(t){super({attributions:t.attributions,attributionsCollapsible:t.attributionsCollapsible,projection:t.projection,state:t.state,wrapX:t.wrapX,interpolate:t.interpolate}),this.on,this.once,this.un,this.opaque_=void 0!==t.opaque&&t.opaque,this.tilePixelRatio_=void 0!==t.tilePixelRatio?t.tilePixelRatio:1,this.tileGrid=void 0!==t.tileGrid?t.tileGrid:null;this.tileGrid&&(0,y.xq)(this.tileGrid.getTileSize(this.tileGrid.getMinZoom()),[256,256]),this.tileCache=new h(t.cacheSize||0),this.tmpSize=[0,0],this.key_=t.key||"",this.tileOptions={transition:t.transition,interpolate:t.interpolate},this.zDirection=t.zDirection?t.zDirection:0}canExpireCache(){return this.tileCache.canExpireCache()}expireCache(t,e){const i=this.getTileCacheForProjection(t);i&&i.expireCache(e)}forEachLoadedTile(t,e,i,n){const r=this.getTileCacheForProjection(t);if(!r)return!1;let s,o,l,h=!0;for(let t=i.minX;t<=i.maxX;++t)for(let u=i.minY;u<=i.maxY;++u)o=(0,a.dp)(e,t,u),l=!1,r.containsKey(o)&&(s=r.get(o),l=s.getState()===c.A.LOADED,l&&(l=!1!==n(s))),l||(h=!1);return h}getGutterForProjection(t){return 0}getKey(){return this.key_}setKey(t){this.key_!==t&&(this.key_=t,this.changed())}getOpaque(t){return this.opaque_}getResolutions(t){const e=t?this.getTileGridForProjection(t):this.tileGrid;return e?e.getResolutions():null}getTile(t,e,i,n,r){return(0,f.b0)()}getTileGrid(){return this.tileGrid}getTileGridForProjection(t){return this.tileGrid?this.tileGrid:x(t)}getTileCacheForProjection(t){const e=this.getProjection();return(0,p.v)(null===e||(0,g.tI)(e,t),"A VectorTile source can only be rendered if it has a projection compatible with the view projection."),this.tileCache}getTilePixelRatio(t){return this.tilePixelRatio_}getTilePixelSize(t,e,i){const n=this.getTileGridForProjection(i),r=this.getTilePixelRatio(e),s=(0,y.xq)(n.getTileSize(t),this.tmpSize);return 1==r?s:(0,y.hs)(s,r,this.tmpSize)}getTileCoordForTileUrlFunction(t,e){e=void 0!==e?e:this.getProjection();const i=this.getTileGridForProjection(e);return this.getWrapX()&&e.isGlobal()&&(t=function(t,e,i){const n=e[0],r=t.getTileCoordCenter(e),s=b(i);if(!(0,_.Ym)(s,r)){const e=(0,_.RG)(s),i=Math.ceil((s[0]-r[0])/e);return r[0]+=e*i,t.getTileCoordForCoordAndZ(r,n)}return e}(i,t,e)),(0,a.N5)(t,i)?t:null}clear(){this.tileCache.clear()}refresh(){this.clear(),super.refresh()}updateCacheSize(t,e){const i=this.getTileCacheForProjection(e);t>i.highWaterMark&&(i.highWaterMark=t)}useTile(t,e,i,n){}}class C extends u.Ay{constructor(t,e){super(t),this.tile=e}}const A=E;var S=i(1597);function T(t,e){const i=/\{z\}/g,n=/\{x\}/g,r=/\{y\}/g,s=/\{-y\}/g;return function(o,a,l){if(o)return t.replace(i,o[0].toString()).replace(n,o[1].toString()).replace(r,o[2].toString()).replace(s,(function(){const t=o[0],i=e.getFullTileRange(t);if(!i)throw new Error("The {-y} placeholder requires a tile grid with extent");return(i.getHeight()-o[2]-1).toString()}))}}class I extends A{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tilePixelRatio:t.tilePixelRatio,wrapX:t.wrapX,transition:t.transition,interpolate:t.interpolate,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.generateTileUrlFunction_=this.tileUrlFunction===I.prototype.tileUrlFunction,this.tileLoadFunction=t.tileLoadFunction,t.tileUrlFunction&&(this.tileUrlFunction=t.tileUrlFunction),this.urls=null,t.urls?this.setUrls(t.urls):t.url&&this.setUrl(t.url),this.tileLoadingKeys_={}}getTileLoadFunction(){return this.tileLoadFunction}getTileUrlFunction(){return Object.getPrototypeOf(this).tileUrlFunction===this.tileUrlFunction?this.tileUrlFunction.bind(this):this.tileUrlFunction}getUrls(){return this.urls}handleTileChange(t){const e=t.target,i=(0,f.v6)(e),n=e.getState();let r;n==c.A.LOADING?(this.tileLoadingKeys_[i]=!0,r="tileloadstart"):i in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[i],r=n==c.A.ERROR?"tileloaderror":n==c.A.LOADED?"tileloadend":void 0),null!=r&&this.dispatchEvent(new C(r,e))}setTileLoadFunction(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()}setTileUrlFunction(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),void 0!==e?this.setKey(e):this.changed()}setUrl(t){const e=function(t){const e=[];let i=/\{([a-z])-([a-z])\}/.exec(t);
2if(i){const n=i[1].charCodeAt(0),r=i[2].charCodeAt(0);let s;for(s=n;s<=r;++s)e.push(t.replace(i[0],String.fromCharCode(s)));return e}if(i=/\{(\d+)-(\d+)\}/.exec(t),i){const n=parseInt(i[2],10);for(let r=parseInt(i[1],10);r<=n;r++)e.push(t.replace(i[0],r.toString()));return e}return e.push(t),e}(t);this.urls=e,this.setUrls(e)}setUrls(t){this.urls=t;const e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(function(t,e){const i=t.length,n=new Array(i);for(let r=0;r<i;++r)n[r]=T(t[r],e);return function(t){return 1===t.length?t[0]:function(e,i,n){if(!e)return;const r=(0,a.tW)(e),s=(0,S.xP)(r,t.length);return t[s](e,i,n)}}(n)}(t,this.tileGrid),e):this.setKey(e)}tileUrlFunction(t,e,i){}useTile(t,e,i){const n=(0,a.dp)(t,e,i);this.tileCache.containsKey(n)&&this.tileCache.get(n)}}const R=I;function D(t,e){t.getImage().src=e}const M=class extends R{constructor(t){super({attributions:t.attributions,cacheSize:t.cacheSize,opaque:t.opaque,projection:t.projection,state:t.state,tileGrid:t.tileGrid,tileLoadFunction:t.tileLoadFunction?t.tileLoadFunction:D,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:t.wrapX,transition:t.transition,interpolate:void 0===t.interpolate||t.interpolate,key:t.key,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.crossOrigin=void 0!==t.crossOrigin?t.crossOrigin:null,this.tileClass=void 0!==t.tileClass?t.tileClass:r.A,this.tileCacheForProjection={},this.tileGridForProjection={},this.reprojectionErrorThreshold_=t.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}canExpireCache(){if(this.tileCache.canExpireCache())return!0;for(const t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1}expireCache(t,e){const i=this.getTileCacheForProjection(t);this.tileCache.expireCache(this.tileCache==i?e:{});for(const t in this.tileCacheForProjection){const n=this.tileCacheForProjection[t];n.expireCache(n==i?e:{})}}getGutterForProjection(t){return this.getProjection()&&t&&!(0,g.tI)(this.getProjection(),t)?0:this.getGutter()}getGutter(){return 0}getKey(){let t=super.getKey();return this.getInterpolate()||(t+=":disable-interpolation"),t}getOpaque(t){return!(this.getProjection()&&t&&!(0,g.tI)(this.getProjection(),t))&&super.getOpaque(t)}getTileGridForProjection(t){const e=this.getProjection();if(this.tileGrid&&(!e||(0,g.tI)(e,t)))return this.tileGrid;const i=(0,f.v6)(t);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=x(t)),this.tileGridForProjection[i]}getTileCacheForProjection(t){const e=this.getProjection();if(!e||(0,g.tI)(e,t))return this.tileCache;
2const i=(0,f.v6)(t);return i in this.tileCacheForProjection||(this.tileCacheForProjection[i]=new h(this.tileCache.highWaterMark)),this.tileCacheForProjection[i]}createTile_(t,e,i,r,s,o){const a=[t,e,i],l=this.getTileCoordForTileUrlFunction(a,s),h=l?this.tileUrlFunction(l,r,s):void 0,u=new this.tileClass(a,void 0!==h?c.A.IDLE:c.A.EMPTY,void 0!==h?h:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return u.key=o,u.addEventListener(n.A.CHANGE,this.handleTileChange.bind(this)),u}getTile(t,e,i,n,r){const o=this.getProjection();if(!o||!r||(0,g.tI)(o,r))return this.getTileInternal(t,e,i,n,o||r);const l=this.getTileCacheForProjection(r),h=[t,e,i];let c;const u=(0,a.i7)(h);l.containsKey(u)&&(c=l.get(u));const d=this.getKey();if(c&&c.key==d)return c;const f=this.getTileGridForProjection(o),p=this.getTileGridForProjection(r),m=this.getTileCoordForTileUrlFunction(h,r),v=new s.A(o,f,r,p,h,m,this.getTilePixelRatio(n),this.getGutter(),((t,e,i,n)=>this.getTileInternal(t,e,i,n,o)),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_,this.tileOptions);return v.key=d,c?(v.interimTile=c,v.refreshInterimChain(),l.replace(u,v)):l.set(u,v),v}getTileInternal(t,e,i,n,r){let s=null;const o=(0,a.dp)(t,e,i),l=this.getKey();if(this.tileCache.containsKey(o)){if(s=this.tileCache.get(o),s.key!=l){const a=s;s=this.createTile_(t,e,i,n,r,l),a.getState()==c.A.IDLE?s.interimTile=a.interimTile:s.interimTile=a,s.refreshInterimChain(),this.tileCache.replace(o,s)}}else s=this.createTile_(t,e,i,n,r,l),this.tileCache.set(o,s);return s}setRenderReprojectionEdges(t){if(this.renderReprojectionEdges_!=t){this.renderReprojectionEdges_=t;for(const t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear();this.changed()}}setTileGridForProjection(t,e){const i=(0,g.Jt)(t);if(i){const t=(0,f.v6)(i);t in this.tileGridForProjection||(this.tileGridForProjection[t]=e)}}clear(){super.clear();for(const t in this.tileCacheForProjection)this.tileCacheForProjection[t].clear()}},L=class extends M{constructor(t){const e=void 0!==(t=t||{}).projection?t.projection:"EPSG:3857",i=void 0!==t.tileGrid?t.tileGrid:function(t){const e=t||{},i=e.extent||(0,g.Jt)("EPSG:3857").getExtent(),n={extent:i,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:w(i,e.maxZoom,e.tileSize,e.maxResolution)};return new m.A(n)}({extent:b(e),maxResolution:t.maxResolution,maxZoom:t.maxZoom,minZoom:t.minZoom,tileSize:t.tileSize});super({attributions:t.attributions,cacheSize:t.cacheSize,crossOrigin:t.crossOrigin,interpolate:t.interpolate,opaque:t.opaque,projection:e,reprojectionErrorThreshold:t.reprojectionErrorThreshold,tileGrid:i,tileLoadFunction:t.tileLoadFunction,tilePixelRatio:t.tilePixelRatio,tileUrlFunction:t.tileUrlFunction,url:t.url,urls:t.urls,wrapX:void 0===t.wrapX||t.wrapX,transition:t.transition,attributionsCollapsible:t.attributionsCollapsible,zDirection:t.zDirection}),this.gutter_=void 0!==t.gutter?t.gutter:0}getGutter(){return this.gutter_}}},8473:(t,e,i)=>{"use strict";i(9085);var n=i(9167);t.exports=n.Object.assign},8480:(t,e,i)=>{"use strict";var n=i(1828),r=i(8727).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},8505:(t,e,i)=>{"use strict";var n=i(8514);t.exports=n},8514:(t,e,i)=>{"use strict";var n=i(7275);t.exports=n},8551:(t,e,i)=>{"use strict";var n=i(34),r=String,s=TypeError;t.exports=function(t){if(n(t))return t;throw new s(r(t)+" is not an object")}},8620:(t,e,i)=>{"use strict";i.d(e,{A:()=>h});var n=i(4120),r=i(5332),s=i(4087),o=i(588),a=i(1597);class l extends n.A{constructor(t){super(),this.on,this.once,this.un,this.background_=t.background;const e=Object.assign({},t);"object"==typeof t.properties&&(delete e.properties,Object.assign(e,t.properties)),e[r.A.OPACITY]=void 0!==t.opacity?t.opacity:1,(0,o.v)("number"==typeof e[r.A.OPACITY],"Layer opacity must be a number"),e[r.A.VISIBLE]=void 0===t.visible||t.visible,e[r.A.Z_INDEX]=t.zIndex,e[r.A.MAX_RESOLUTION]=void 0!==t.maxResolution?t.maxResolution:1/0,e[r.A.MIN_RESOLUTION]=void 0!==t.minResolution?t.minResolution:0,e[r.A.MIN_ZOOM]=void 0!==t.minZoom?t.minZoom:-1/0,e[r.A.MAX_ZOOM]=void 0!==t.maxZoom?t.maxZoom:1/0,this.className_=void 0!==e.className?e.className:"ol-layer",delete e.className,this.setProperties(e),this.state_=null}
2getBackground(){return this.background_}getClassName(){return this.className_}getLayerState(t){const e=this.state_||{layer:this,managed:void 0===t||t},i=this.getZIndex();return e.opacity=(0,a.qE)(Math.round(100*this.getOpacity())/100,0,1),e.visible=this.getVisible(),e.extent=this.getExtent(),e.zIndex=void 0!==i||e.managed?i:1/0,e.maxResolution=this.getMaxResolution(),e.minResolution=Math.max(this.getMinResolution(),0),e.minZoom=this.getMinZoom(),e.maxZoom=this.getMaxZoom(),this.state_=e,e}getLayersArray(t){return(0,s.b0)()}getLayerStatesArray(t){return(0,s.b0)()}getExtent(){return this.get(r.A.EXTENT)}getMaxResolution(){return this.get(r.A.MAX_RESOLUTION)}getMinResolution(){return this.get(r.A.MIN_RESOLUTION)}getMinZoom(){return this.get(r.A.MIN_ZOOM)}getMaxZoom(){return this.get(r.A.MAX_ZOOM)}getOpacity(){return this.get(r.A.OPACITY)}getSourceState(){return(0,s.b0)()}getVisible(){return this.get(r.A.VISIBLE)}getZIndex(){return this.get(r.A.Z_INDEX)}setBackground(t){this.background_=t,this.changed()}setExtent(t){this.set(r.A.EXTENT,t)}setMaxResolution(t){this.set(r.A.MAX_RESOLUTION,t)}setMinResolution(t){this.set(r.A.MIN_RESOLUTION,t)}setMaxZoom(t){this.set(r.A.MAX_ZOOM,t)}setMinZoom(t){this.set(r.A.MIN_ZOOM,t)}setOpacity(t){(0,o.v)("number"==typeof t,"Layer opacity must be a number"),this.set(r.A.OPACITY,t)}setVisible(t){this.set(r.A.VISIBLE,t)}setZIndex(t){this.set(r.A.Z_INDEX,t)}disposeInternal(){this.state_&&(this.state_.layer=null,this.state_=null),super.disposeInternal()}}const h=/^(217|331)$/.test(i.j)?l:null},8622:(t,e,i)=>{"use strict";var n=i(4576),r=i(4901),s=n.WeakMap;t.exports=r(s)&&/native code/.test(String(s))},8686:(t,e,i)=>{"use strict";var n=i(3724),r=i(9039);t.exports=n&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8704:(t,e,i)=>{"use strict";if(i.d(e,{A4:()=>g,GB:()=>d,Gk:()=>h,IO:()=>a,Kg:()=>f,Q7:()=>o,TS:()=>u,at:()=>c,eL:()=>l,fs:()=>m,tE:()=>p}),/^(217|331)$/.test(i.j))var n=i(4238);if(/^(217|331)$/.test(i.j))var r=i(7771);if(/^(217|331)$/.test(i.j))var s=i(588);function o(t){const e=arguments;return function(t){let i=!0;for(let n=0,r=e.length;n<r&&(i=i&&e[n](t),i);++n);return i}}const a=function(t){const e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},l=function(t){return!t.map.getTargetElement().hasAttribute("tabindex")||function(t){const e=t.map.getTargetElement(),i=t.map.getOwnerDocument().activeElement;return e.contains(i)}(t)},h=/^(217|331)$/.test(i.j)?n.rT:null,c=function(t){const e=t.originalEvent;return 0==e.button&&!(r.j&&r.ew&&e.ctrlKey)},u=function(t){const e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},d=function(t){const e=t.originalEvent;return r.ew?e.metaKey:e.ctrlKey},f=function(t){const e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},p=function(t){const e=t.originalEvent,i=e.target.tagName;return"INPUT"!==i&&"SELECT"!==i&&"TEXTAREA"!==i&&!e.target.isContentEditable},g=function(t){const e=t.originalEvent;return(0,s.v)(void 0!==e,"mapBrowserEvent must originate from a pointer event"),"mouse"==e.pointerType},m=function(t){const e=t.originalEvent;return(0,s.v)(void 0!==e,"mapBrowserEvent must originate from a pointer event"),e.isPrimary&&0===e.button}},8711:(t,e,i)=>{"use strict";if(i.d(e,{WM:()=>u,Y:()=>r,Yg:()=>a,bf:()=>h,fo:()=>l,gS:()=>c,lr:()=>o}),/^(217|331)$/.test(i.j))var n=i(7771);function r(t,e,i,r){let s;return s=i&&i.length?i.shift():n.Wl?new OffscreenCanvas(t||300,e||300):document.createElement("canvas"),t&&(s.width=t),e&&(s.height=e),s.getContext("2d",r)}let s;function o(){return s||(s=r(1,1)),s}function a(t){const e=t.canvas;e.width=1,e.height=1,t.clearRect(0,0,1,1)}function l(t,e){const i=e.parentNode;i&&i.replaceChild(t,e)}function h(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function c(t){for(;t.lastChild;)t.removeChild(t.lastChild)}function u(t,e){const i=t.childNodes;for(let n=0;;++n){const r=i[n],s=e[n];if(!r&&!s)break;r!==s&&(r?s?t.insertBefore(s,r):(t.removeChild(r),--n):t.appendChild(s))}}},8727:t=>{"use strict";
2t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},8751:(t,e,i)=>{"use strict";i.d(e,{A:()=>h});var n=i(6837),r=i(6739),s=i(7771),o=i(8704),a=i(1597);class l extends r.Ay{constructor(t){super(t=t||{}),this.totalDelta_=0,this.lastDelta_=0,this.maxDelta_=void 0!==t.maxDelta?t.maxDelta:1,this.duration_=void 0!==t.duration?t.duration:250,this.timeout_=void 0!==t.timeout?t.timeout:80,this.useAnchor_=void 0===t.useAnchor||t.useAnchor,this.constrainResolution_=void 0!==t.constrainResolution&&t.constrainResolution;const e=t.condition?t.condition:o.Gk;this.condition_=t.onFocusOnly?(0,o.Q7)(o.eL,e):e,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.deltaPerZoom_=300}endInteraction_(){this.trackpadTimeoutId_=void 0;const t=this.getMap();t&&t.getView().endInteraction(void 0,this.lastDelta_?this.lastDelta_>0?1:-1:0,this.lastAnchor_)}handleEvent(t){if(!this.condition_(t))return!0;if(t.type!==n.A.WHEEL)return!0;const e=t.map,i=t.originalEvent;let r;if(i.preventDefault(),this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==n.A.WHEEL&&(r=i.deltaY,s._p&&i.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(r/=s.cr),i.deltaMode===WheelEvent.DOM_DELTA_LINE&&(r*=40)),0===r)return!1;this.lastDelta_=r;const o=Date.now();void 0===this.startTime_&&(this.startTime_=o),(!this.mode_||o-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(r)<4?"trackpad":"wheel");const a=e.getView();if("trackpad"===this.mode_&&!a.getConstrainResolution()&&!this.constrainResolution_)return this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):(a.getAnimating()&&a.cancelAnimations(),a.beginInteraction()),this.trackpadTimeoutId_=setTimeout(this.endInteraction_.bind(this),this.timeout_),a.adjustZoom(-r/this.deltaPerZoom_,this.lastAnchor_),this.startTime_=o,!1;this.totalDelta_+=r;const l=Math.max(this.timeout_-(o-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,e),l),!1}handleWheelZoom_(t){const e=t.getView();e.getAnimating()&&e.cancelAnimations();let i=-(0,a.qE)(this.totalDelta_,-this.maxDelta_*this.deltaPerZoom_,this.maxDelta_*this.deltaPerZoom_)/this.deltaPerZoom_;(e.getConstrainResolution()||this.constrainResolution_)&&(i=i?i>0?1:-1:0),(0,r.D2)(e,i,this.lastAnchor_,this.duration_),this.mode_=void 0,this.totalDelta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0}setMouseAnchor(t){this.useAnchor_=t,t||(this.lastAnchor_=null)}}const h=/^(217|331)$/.test(i.j)?l:null},8773:(t,e)=>{"use strict";var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!i.call({1:2},1);e.f=r?function(t){var e=n(this,t);return!!e&&e.enumerable}:i},8774:(t,e,i)=>{"use strict";i.d(e,{Jw:()=>D,M8:()=>v,MY:()=>m,NT:()=>g,Oq:()=>u,TA:()=>I,Tq:()=>_,ZV:()=>l,_K:()=>f,_m:()=>c,aq:()=>y,eL:()=>p,fZ:()=>C,jT:()=>R,qY:()=>h,vk:()=>d,yY:()=>x});var n=i(4120),r=i(7771),s=i(3530),o=i(8711),a=i(5176);const l="10px sans-serif",h="#000",c="round",u=/^(217|331)$/.test(i.j)?[]:null,d=0,f="round",p=10,g="#000",m="center",v="middle",_=/^(217|331)$/.test(i.j)?[0,0,0,0]:null,y=1,x=new n.A;let w,b=null;const E={},C=function(){const t="32px ",e=["monospace","serif"],i=e.length,n="wmytzilWMYTZIL@#/&?$%10";let r,o;function l(r,s,a){let l=!0;for(let h=0;h<i;++h){const i=e[h];if(o=T(r+" "+s+" "+t+i,n),a!=i){const e=T(r+" "+s+" "+t+a+","+i,n);l=l&&e!=o}}return!!l}function h(){let t=!0;const e=x.getKeys();for(let i=0,n=e.length;i<n;++i){const n=e[i];x.get(n)<100&&(l.apply(this,n.split("\n"))?((0,s.I)(E),b=null,w=void 0,x.set(n,100)):(x.set(n,x.get(n)+1,!0),t=!1))}t&&(clearInterval(r),r=void 0)}return function(t){const e=(0,a.K5)(t);if(!e)return;const i=e.families;for(let t=0,n=i.length;t<n;++t){const n=i[t],s=e.style+"\n"+e.weight+"\n"+n;void 0===x.get(s)&&(x.set(s,100,!0),l(e.style,e.weight,n)||(x.set(s,0,!0),void 0===r&&(r=setInterval(h,32))))}}}(),A=function(){let t;return function(e){let i=E[e];if(null==i){if(r.Wl){const t=(0,a.K5)(e),n=S(e,"Žg");i=(isNaN(Number(t.lineHeight))?1.2:Number(t.lineHeight))*(n.actualBoundingBoxAscent+n.actualBoundingBoxDescent)}else t||(t=document.createElement("div"),t.innerHTML="M",t.style.minHeight="0",t.style.maxHeight="none",t.style.height="auto",t.style.padding="0",t.style.border="none",t.style.position="absolute",t.style.display="block",t.style.left="-99999px"),t.style.font=e,document.body.appendChild(t),i=t.offsetHeight,document.body.removeChild(t);E[e]=i}return i}}();function S(t,e){return b||(b=(0,o.Y)(1,1)),t!=w&&(b.font=t,w=b.font),b.measureText(e)}function T(t,e){return S(t,e).width}function I(t,e,i){if(e in i)return i[e];const n=e.split("\n").reduce(((e,i)=>Math.max(e,T(t,i))),0);return i[e]=n,n}function R(t,e){const i=[],n=[],r=[];let s=0,o=0,a=0,l=0;for(let h=0,c=e.length;h<=c;h+=2){const u=e[h];if("\n"===u||h===c){s=Math.max(s,o),r.push(o),o=0,a+=l,l=0;continue}const d=e[h+1]||t.font,f=T(d,u);i.push(f),o+=f;const p=A(d);n.push(p),l=Math.max(l,p)}return{width:s,height:a,widths:i,heights:n,lineWidths:r}}function D(t,e,i,n,r,s,o,a,l,h,c){t.save(),1!==i&&(void 0===t.globalAlpha?t.globalAlpha=t=>t.globalAlpha*=i:t.globalAlpha*=i),e&&t.transform.apply(t,e),n.contextInstructions?(t.translate(l,h),t.scale(c[0],c[1]),function(t,e){const i=t.contextInstructions;for(let t=0,n=i.length;t<n;t+=2)Array.isArray(i[t+1])?e[i[t]].apply(e,i[t+1]):e[i[t]]=i[t+1]}(n,t)):c[0]<0||c[1]<0?(t.translate(l,h),t.scale(c[0],c[1]),t.drawImage(n,r,s,o,a,0,0,o,a)):t.drawImage(n,r,s,o,a,l,h,o*c[0],a*c[1]),t.restore(
2)}},8940:(t,e,i)=>{"use strict";var n=i(4692),r=i.n(n);function s(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var o={autoShow:!1,autoHide:!1,autoPick:!1,inline:!1,container:null,trigger:null,language:"",format:"mm/dd/yyyy",date:null,startDate:null,endDate:null,startView:0,weekStart:0,yearFirst:!1,yearSuffix:"",days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],itemTag:"li",mutedClass:"muted",pickedClass:"picked",disabledClass:"disabled",highlightedClass:"highlighted",template:'<div class="datepicker-container"><div class="datepicker-panel" data-view="years picker"><ul><li data-view="years prev">&lsaquo;</li><li data-view="years current"></li><li data-view="years next">&rsaquo;</li></ul><ul data-view="years"></ul></div><div class="datepicker-panel" data-view="months picker"><ul><li data-view="year prev">&lsaquo;</li><li data-view="year current"></li><li data-view="year next">&rsaquo;</li></ul><ul data-view="months"></ul></div><div class="datepicker-panel" data-view="days picker"><ul><li data-view="month prev">&lsaquo;</li><li data-view="month current"></li><li data-view="month next">&rsaquo;</li></ul><ul data-view="week"></ul><ul data-view="days"></ul></div></div>',offset:10,zIndex:1e3,filter:null,show:null,hide:null,pick:null},a="undefined"!=typeof window,l=a?window:{},h=!!a&&"ontouchstart"in l.document.documentElement,c="datepicker",u="click.".concat(c),d="focus.".concat(c),f="hide.".concat(c),p="keyup.".concat(c),g="pick.".concat(c),m="resize.".concat(c),v="scroll.".concat(c),_="show.".concat(c),y="touchstart.".concat(c),x="".concat(c,"-hide"),w={},b=Object.prototype.toString;function E(t){return"string"==typeof t}var C=Number.isNaN||l.isNaN;function A(t){return"number"==typeof t&&!C(t)}function S(t){return void 0===t}function T(t){return"date"===(e=t,b.call(e).slice(8,-1).toLowerCase())&&!C(t.getTime());var e}function I(t,e){for(var i=arguments.length,n=new Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];return function(){for(var i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];return t.apply(e,n.concat(r))}}function R(t){return'[data-view="'.concat(t,'"]')}function D(t){return t%4==0&&t%100!=0||t%400==0}function M(t,e){return[31,D(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]}function L(t,e,i){return Math.min(i,M(t,e))}var O=/(y|m|d)+/g;function k(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=String(Math.abs(t)),n=i.length,r="";for(t<0&&(r+="-");n<e;)n+=1,r+="0";return r+i}var P=/\d+/g,F={show:function(){this.built||this.build(),this.shown||this.trigger(_).isDefaultPrevented()||(this.shown=!0,this.$picker.removeClass(x).on(u,r().proxy(this.click,this)),this.showView(this.options.startView),this.inline||(this.$scrollParent.on(v,r().proxy(this.place,this)),r()(window).on(m,this.onResize=I(this.place,this)),r()(document).on(u,this.onGlobalClick=I(this.globalClick,this)),r()(document).on(p,this.onGlobalKeyup=I(this.globalKeyup,this)),h&&r()(document).on(y,this.onTouchStart=I(this.touchstart,this)),this.place()))},hide:function(){this.shown&&(this.trigger(f).isDefaultPrevented()||(this.shown=!1,this.$picker.addClass(x).off(u,this.click),this.inline||(this.$scrollParent.off(v,this.place),r()(window).off(m,this.onResize),r()(document).off(u,this.onGlobalClick),r()(document).off(p,this.onGlobalKeyup),h&&r()(document).off(y,this.onTouchStart))))},toggle:function(){this.shown?this.hide():this.show()},update:function(){var t=this.getValue();t!==this.oldValue&&(this.setDate(t,!0),this.oldValue=t)},pick:function(t){var e=this.$element,i=this.date;this.trigger(g,{view:t||"",date:i}).isDefaultPrevented()||(i=this.formatDate(this.date),this.setValue(i),this.isInput&&(e.trigger("input"),e.trigger("change")))},reset:function(){this.setDate(this.initialDate,!0),this.setValue(this.initialValue),this.shown&&this.showView(this.options.startView)},getMonthName:function(t,e){var i=this.options,n=i.monthsShort,s=i.months;return r().isNumeric(t)?t=Number(t):S(e)&&(e=t),!0===e&&(s=n),s[A(t)?t:this.date.getMonth()]}
2,getDayName:function(t,e,i){var n=this.options,s=n.days;return r().isNumeric(t)?t=Number(t):(S(i)&&(i=e),S(e)&&(e=t)),i?s=n.daysMin:e&&(s=n.daysShort),s[A(t)?t:this.date.getDay()]},getDate:function(t){var e=this.date;return t?this.formatDate(e):new Date(e)},setDate:function(t,e){var i=this.options.filter;if(T(t)||E(t)){if(t=this.parseDate(t),r().isFunction(i)&&!1===i.call(this.$element,t,"day"))return;this.date=t,this.viewDate=new Date(t),e||this.pick(),this.built&&this.render()}},setStartDate:function(t){T(t)||E(t)?this.startDate=this.parseDate(t):this.startDate=null,this.built&&this.render()},setEndDate:function(t){T(t)||E(t)?this.endDate=this.parseDate(t):this.endDate=null,this.built&&this.render()},parseDate:function(t){var e=this.format,i=[];return T(t)||(E(t)&&(i=t.match(P)||[]),T(t=t?new Date(t):new Date)||(t=new Date),i.length===e.parts.length&&(r().each(i,(function(i,n){var r=parseInt(n,10);switch(e.parts[i]){case"yy":t.setFullYear(2e3+r);break;case"yyyy":t.setFullYear(2===n.length?2e3+r:r);break;case"mm":case"m":t.setMonth(r-1)}})),r().each(i,(function(i,n){var r=parseInt(n,10);switch(e.parts[i]){case"dd":case"d":t.setDate(r)}})))),new Date(t.getFullYear(),t.getMonth(),t.getDate())},formatDate:function(t){var e=this.format,i="";if(T(t)){var n=t.getFullYear(),s=t.getMonth(),o=t.getDate(),a={d:o,dd:k(o,2),m:s+1,mm:k(s+1,2),yy:String(n).substring(2),yyyy:k(n,4)};i=e.source,r().each(e.parts,(function(t,e){i=i.replace(e,a[e])}))}return i},destroy:function(){this.unbind(),this.unbuild(),this.$element.removeData(c)}},N={click:function(t){var e=r()(t.target),i=this.options,n=this.date,s=this.viewDate,o=this.format;if(t.stopPropagation(),t.preventDefault(),!e.hasClass("disabled")){var a=e.data("view"),l=s.getFullYear(),h=s.getMonth(),c=s.getDate();switch(a){case"years prev":case"years next":l="years prev"===a?l-10:l+10,s.setFullYear(l),s.setDate(L(l,h,c)),this.renderYears();break;case"year prev":case"year next":l="year prev"===a?l-1:l+1,s.setFullYear(l),s.setDate(L(l,h,c)),this.renderMonths();break;case"year current":o.hasYear&&this.showView(2);break;case"year picked":o.hasMonth?this.showView(1):(e.siblings(".".concat(i.pickedClass)).removeClass(i.pickedClass).data("view","year"),this.hideView()),this.pick("year");break;case"year":l=parseInt(e.text(),10),n.setDate(L(l,h,c)),n.setFullYear(l),s.setDate(L(l,h,c)),s.setFullYear(l),o.hasMonth?this.showView(1):(e.addClass(i.pickedClass).data("view","year picked").siblings(".".concat(i.pickedClass)).removeClass(i.pickedClass).data("view","year"),this.hideView()),this.pick("year");break;case"month prev":case"month next":(h="month prev"===a?h-1:h+1)<0?(l-=1,h+=12):h>11&&(l+=1,h-=12),s.setFullYear(l),s.setDate(L(l,h,c)),s.setMonth(h),this.renderDays();break;case"month current":o.hasMonth&&this.showView(1);break;case"month picked":o.hasDay?this.showView(0):(e.siblings(".".concat(i.pickedClass)).removeClass(i.pickedClass).data("view","month"),this.hideView()),this.pick("month");break;case"month":h=r().inArray(e.text(),i.monthsShort),n.setFullYear(l),n.setDate(L(l,h,c)),n.setMonth(h),s.setFullYear(l),s.setDate(L(l,h,c)),s.setMonth(h),o.hasDay?this.showView(0):(e.addClass(i.pickedClass).data("view","month picked").siblings(".".concat(i.pickedClass)).removeClass(i.pickedClass).data("view","month"),this.hideView()),this.pick("month");break;case"day prev":case"day next":case"day":"day prev"===a?h-=1:"day next"===a&&(h+=1),c=parseInt(e.text(),10),n.setDate(1),n.setFullYear(l),n.setMonth(h),n.setDate(c),s.setDate(1),s.setFullYear(l),s.setMonth(h),s.setDate(c),this.renderDays(),"day"===a&&this.hideView(),this.pick("day");break;case"day picked":this.hideView(),this.pick("day")}}},globalClick:function(t){for(var e=t.target,i=this.element,n=this.$trigger[0],r=!0;e!==document;){if(e===n||e===i){r=!1;break}e=e.parentNode}r&&this.hide()},keyup:function(){this.update()},globalKeyup:function(t){var e=t.target,i=t.key,n=t.keyCode;this.isInput&&e!==this.element&&this.shown&&("Tab"===i||9===n)&&this.hide()},touchstart:function(t){var e=t.target;this.isInput&&e!==this.element&&!r().contains(this.$picker[0],e)&&(this.hide(),this.element.blur())}},j={render:function(){this.renderYears(),this.renderMonths(),this.renderDays()},renderWeek:function(){var t=this,e=[],i=this.options,n=i.weekStart,s=i.daysMin;n=parseInt(n,10)%7,s=s.slice(n).concat(s.slice(0,n)),r().each(s,(function(i,n){e.push(t.createItem({text:n}))})),this.$week.html(e.join(""))},renderYears:function(){var t,e=this.options,i=this.startDate,n=this.endDate,r=e.disabledClass,s=e.filter,o=e.yearSuffix,a=this.viewDate.getFullYear(),l=(new Date).getFullYear(),h=this.date.getFullYear(),c=[],u=!1,d=!1;for(t=-5;t<=6;t+=1){var f=new Date(a+t,1,1),p=!1;i&&(p=f.getFullYear()<i.getFullYear(),-5===t&&(u=p)),!p&&n&&(p=f.getFullYear()>n.getFullYear(),6===t&&(d=p)),!p&&s&&(p=!1===s.call(this.$element,f,"year"));var g=a+t===h,m=g?"year picked":"year";c.push(this.createItem({picked:g,disabled:p,text:a+t,view:p?"year disabled":m,highlighted:f.getFullYear()===l}))}this.$yearsPrev.toggleClass(r,u),this.$yearsNext.toggleClass(r,d),this.$yearsCurrent.toggleClass(r,!0).html("".concat(a+-5+o," - ").concat(a+6).concat(o)),this.$years.html(c.join(""))},renderMonths:function(){var t,e=this.options,i=this.startDate,n=this.endDate,s=this.viewDate,o=e.disabledClass||"",a=e.monthsShort,l=r().isFunction(e.filter)&&e.filter,h=s.getFullYear(),c=new Date,u=c.getFullYear(),d=c.getMonth(),f=this.date.getFullYear(),p=this.date.getMonth(),g=[],m=!1,v=!1;for(t=0;t<=11;t+=1){var _=new Date(h,t,1),y=!1;i&&(y=(m=_.getFullYear()===i.getFullYear())&&_.getMonth()<i.getMonth()),!y&&n&&(y=(v=_.getFullYear()===n.getFullYear())&&_.getMonth()>n.getMonth()),!y&&l&&(y=!1===l.call(this.$element,_,"month"));var x=h===f&&t===p,w=x?"month picked":"month";g.push(this.createItem({disabled:y,picked:x,highlighted:h===u&&_.getMonth()===d,index:t,text:a[t],view:y?"month disabled":w}))}this.$yearPrev.toggleClass(o,m),this.$yearNext.toggleClass(o,v),this.$yearCurrent.toggleClass(o,m&&v).html(h+e.yearSuffix||""),this.$months.html(g.join(""))},renderDays:function(){var t,e,i,n=this.$element,r=this.options,s=this.startDate,o=this.endDate,a=this.viewDate,l=this.date,h=r.disabledClass,c=r.filter,u=r.months,d=r.weekStart,f=r.yearSuffix,p=a.getFullYear(),g=a.getMonth(),m=new Date,v=m.getFullYear(),_=m.getMonth(),y=m.getDate(),x=l.getFullYear(),w=l.getMonth(),b=l.getDate(),E=[],C=p,A=g,S=!1;0===g?(C-=1,A=11):A-=1,t=M(C,A);var T=new Date(p,g,1);for((i=T.getDay()-parseInt(d,10)%7)<=0&&(i+=7),s&&(S=T.getTime()<=s.getTime()),e=t-(i-1);e<=t;e+=1){var I=new Date(C,A,e),R=!1;
2s&&(R=I.getTime()<s.getTime()),!R&&c&&(R=!1===c.call(n,I,"day")),E.push(this.createItem({disabled:R,highlighted:C===v&&A===_&&I.getDate()===y,muted:!0,picked:C===x&&A===w&&e===b,text:e,view:"day prev"}))}var D=[],L=p,O=g,k=!1;11===g?(L+=1,O=0):O+=1,t=M(p,g),i=42-(E.length+t);var P=new Date(p,g,t);for(o&&(k=P.getTime()>=o.getTime()),e=1;e<=i;e+=1){var F=new Date(L,O,e),N=L===x&&O===w&&e===b,j=!1;o&&(j=F.getTime()>o.getTime()),!j&&c&&(j=!1===c.call(n,F,"day")),D.push(this.createItem({disabled:j,picked:N,highlighted:L===v&&O===_&&F.getDate()===y,muted:!0,text:e,view:"day next"}))}var $=[];for(e=1;e<=t;e+=1){var G=new Date(p,g,e),z=!1;s&&(z=G.getTime()<s.getTime()),!z&&o&&(z=G.getTime()>o.getTime()),!z&&c&&(z=!1===c.call(n,G,"day"));var q=p===x&&g===w&&e===b,W=q?"day picked":"day";$.push(this.createItem({disabled:z,picked:q,highlighted:p===v&&g===_&&G.getDate()===y,text:e,view:z?"day disabled":W}))}this.$monthPrev.toggleClass(h,S),this.$monthNext.toggleClass(h,k),this.$monthCurrent.toggleClass(h,S&&k).html(r.yearFirst?"".concat(p+f," ").concat(u[g]):"".concat(u[g]," ").concat(p).concat(f)),this.$days.html(E.join("")+$.join("")+D.join(""))}},$="".concat(c,"-top-left"),G="".concat(c,"-top-right"),z="".concat(c,"-bottom-left"),q="".concat(c,"-bottom-right"),W=[$,G,z,q].join(" "),Y=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.$element=r()(e),this.element=e,this.options=r().extend({},o,w[i.language],r().isPlainObject(i)&&i),this.$scrollParent=function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=r()(t),n=i.css("position"),s="absolute"===n,o=e?/auto|scroll|hidden/:/auto|scroll/,a=i.parents().filter((function(t,e){var i=r()(e);return(!s||"static"!==i.css("position"))&&o.test(i.css("overflow")+i.css("overflow-y")+i.css("overflow-x"))})).eq(0);return"fixed"!==n&&a.length?a:r()(t.ownerDocument||document)}(e,!0),this.built=!1,this.shown=!1,this.isInput=!1,this.inline=!1,this.initialValue="",this.initialDate=null,this.startDate=null,this.endDate=null,this.init()}var e,i,n;return e=t,i=[{key:"init",value:function(){var t=this.$element,e=this.options,i=e.startDate,n=e.endDate,s=e.date;this.$trigger=r()(e.trigger),this.isInput=t.is("input")||t.is("textarea"),this.inline=e.inline&&(e.container||!this.isInput),this.format=function(t){var e=String(t).toLowerCase(),i=e.match(O);if(!i||0===i.length)throw new Error("Invalid date format.");return t={source:e,parts:i},r().each(i,(function(e,i){switch(i){case"dd":case"d":t.hasDay=!0;break;case"mm":case"m":t.hasMonth=!0;break;case"yyyy":case"yy":t.hasYear=!0}})),t}(e.format);var o=this.getValue();this.initialValue=o,this.oldValue=o,s=this.parseDate(s||o),i&&(i=this.parseDate(i),s.getTime()<i.getTime()&&(s=new Date(i)),this.startDate=i),n&&(n=this.parseDate(n),i&&n.getTime()<i.getTime()&&(n=new Date(i)),s.getTime()>n.getTime()&&(s=new Date(n)),this.endDate=n),this.date=s,this.viewDate=new Date(s),this.initialDate=new Date(this.date),this.bind(),(e.autoShow||this.inline)&&this.show(),e.autoPick&&this.pick()}},{key:"build",value:function(){if(!this.built){this.built=!0;var t=this.$element,e=this.options,i=r()(e.template);this.$picker=i,this.$week=i.find(R("week")),this.$yearsPicker=i.find(R("years picker")),this.$yearsPrev=i.find(R("years prev")),this.$yearsNext=i.find(R("years next")),this.$yearsCurrent=i.find(R("years current")),this.$years=i.find(R("years")),this.$monthsPicker=i.find(R("months picker")),this.$yearPrev=i.find(R("year prev")),this.$yearNext=i.find(R("year next")),this.$yearCurrent=i.find(R("year current")),this.$months=i.find(R("months")),this.$daysPicker=i.find(R("days picker")),this.$monthPrev=i.find(R("month prev")),this.$monthNext=i.find(R("month next")),this.$monthCurrent=i.find(R("month current")),this.$days=i.find(R("days")),this.inline?r()(e.container||t).append(i.addClass("".concat(c,"-inline"))):(r()(document.body).append(i.addClass("".concat(c,"-dropdown"))),i.addClass(x).css({zIndex:parseInt(e.zIndex,10)})),this.renderWeek()}}},{key:"unbuild",value:function(){this.built&&(this.built=!1,this.$picker.remove())}},{key:"bind",value:function(){var t=this.options,e=this.$element;r().isFunction(t.show)&&e.on(_,t.show),r().isFunction(t.hide)&&e.on(f,t.hide),r().isFunction(t.pick)&&e.on(g,t.pick),this.isInput&&e.on(p,r().proxy(this.keyup,this)),this.inline||(t.trigger?this.$trigger.on(u,r().proxy(this.toggle,this)):this.isInput?e.on(d,r().proxy(this.show,this)):e.on(u,r().proxy(this.show,this)))}},{key:"unbind",value:function(){var t=this.$element,e=this.options;r().isFunction(e.show)&&t.off(_,e.show),r().isFunction(e.hide)&&t.off(f,e.hide),r().isFunction(e.pick)&&t.off(g,e.pick),this.isInput&&t.off(p,this.keyup),this.inline||(e.trigger?this.$trigger.off(u,this.toggle):this.isInput?t.off(d,this.show):t.off(u,this.show))}},{key:"showView",value:function(t){var e=this.$yearsPicker,i=this.$monthsPicker,n=this.$daysPicker,r=this.format;if(r.hasYear||r.hasMonth||r.hasDay)switch(Number(t)){case 2:i.addClass(x),n.addClass(x),r.hasYear?(this.renderYears(),e.removeClass(x),this.place()):this.showView(0);break;case 1:e.addClass(x),n.addClass(x),r.hasMonth?(this.renderMonths(),i.removeClass(x),this.place()):this.showView(2);break;default:e.addClass(x),i.addClass(x),r.hasDay?(this.renderDays(),n.removeClass(x),this.place()):this.showView(1)}}}
2,{key:"hideView",value:function(){!this.inline&&this.options.autoHide&&this.hide()}},{key:"place",value:function(){if(!this.inline){var t=this.$element,e=this.options,i=this.$picker,n=r()(document).outerWidth(),s=r()(document).outerHeight(),o=t.outerWidth(),a=t.outerHeight(),l=i.width(),h=i.height(),c=t.offset(),u=c.left,d=c.top,f=parseFloat(e.offset),p=$;C(f)&&(f=10),d>h&&d+a+h>s?(d-=h+f,p=z):d+=a+f,u+l>n&&(u+=o-l,p=p.replace("left","right")),i.removeClass(W).addClass(p).css({top:d,left:u})}}},{key:"trigger",value:function(t,e){var i=r().Event(t,e);return this.$element.trigger(i),i}},{key:"createItem",value:function(t){var e=this.options,i=e.itemTag,n={text:"",view:"",muted:!1,picked:!1,disabled:!1,highlighted:!1},s=[];return r().extend(n,t),n.muted&&s.push(e.mutedClass),n.highlighted&&s.push(e.highlightedClass),n.picked&&s.push(e.pickedClass),n.disabled&&s.push(e.disabledClass),"<".concat(i,' class="').concat(s.join(" "),'" data-view="').concat(n.view,'">').concat(n.text,"</").concat(i,">")}},{key:"getValue",value:function(){var t=this.$element;return this.isInput?t.val():t.text()}},{key:"setValue",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=this.$element;this.isInput?e.val(t):this.inline&&!this.options.container||e.text(t)}}],n=[{key:"setDefaults",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r().extend(o,w[t.language],r().isPlainObject(t)&&t)}}],i&&s(e.prototype,i),n&&s(e,n),t}();if(r().extend&&r().extend(Y.prototype,j,N,F),r().fn){var H=r().fn.datepicker;r().fn.datepicker=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];var s;return this.each((function(e,n){var o=r()(n),a="destroy"===t,l=o.data(c);if(!l){if(a)return;var h=r().extend({},o.data(),r().isPlainObject(t)&&t);l=new Y(n,h),o.data(c,l)}if(E(t)){var u=l[t];r().isFunction(u)&&(s=u.apply(l,i),a&&o.removeData(c))}})),S(s)?this:s},r().fn.datepicker.Constructor=Y,r().fn.datepicker.languages=w,r().fn.datepicker.setDefaults=Y.setDefaults,r().fn.datepicker.noConflict=function(){return r().fn.datepicker=H,this}}r().fn.datepicker.languages["de-CH"]={format:"dd.mm.yyyy",days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],daysShort:["So","Mo","Di","Mi","Do","Fr","Sa"],daysMin:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthsShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],weekStart:1,startView:0,yearFirst:!1,yearSuffix:""},r().fn.datepicker.setDefaults({format:"dd.mm.yyyy",autoHide:!0,language:"de-CH"})},8981:(t,e,i)=>{"use strict";var n=i(7750),r=Object;t.exports=function(t){return r(n(t))}},9039:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},9085:(t,e,i)=>{"use strict";var n=i(6518),r=i(4213);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},9163:(t,e,i)=>{"use strict";i.d(e,{A:()=>g});var n=i(1685),r=i(1409),s=i(25),o=i(5296);class a extends s.A{constructor(t){super(),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.style.pointerEvents="auto",this.element_.className="ol-box "+t,this.map_=null,this.startPixel_=null,this.endPixel_=null}disposeInternal(){this.setMap(null)}render_(){const t=this.startPixel_,e=this.endPixel_,i="px",n=this.element_.style;n.left=Math.min(t[0],e[0])+i,n.top=Math.min(t[1],e[1])+i,n.width=Math.abs(e[0]-t[0])+i,n.height=Math.abs(e[1]-t[1])+i}setMap(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);const t=this.element_.style;t.left="inherit",t.top="inherit",t.width="inherit",t.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)}setPixels(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()}createOrUpdateGeometry(){if(!this.map_)return;const t=this.startPixel_,e=this.endPixel_,i=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixelInternal,this.map_);i[4]=i[0].slice(),this.geometry_?this.geometry_.setCoordinates([i]):this.geometry_=new o.Ay([i])}getGeometry(){return this.geometry_}}const l=a;var h=i(8704);const c="boxcancel";class u extends n.Ay{constructor(t,e,i){super(t),this.coordinate=e,this.mapBrowserEvent=i}}class d extends r.A{constructor(t){super(),this.on,this.once,this.un,t=t||{},this.box_=new l(t.className||"ol-dragbox"),this.minArea_=void 0!==t.minArea?t.minArea:64,t.onBoxEnd&&(this.onBoxEnd=t.onBoxEnd),this.startPixel_=null,this.condition_=t.condition?t.condition:h.at,this.boxEndCondition_=t.boxEndCondition?t.boxEndCondition:this.defaultBoxEndCondition}
2defaultBoxEndCondition(t,e,i){const n=i[0]-e[0],r=i[1]-e[1];return n*n+r*r>=this.minArea_}getGeometry(){return this.box_.getGeometry()}handleDragEvent(t){this.startPixel_&&(this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new u("boxdrag",t.coordinate,t)))}handleUpEvent(t){if(!this.startPixel_)return!1;this.box_.setMap(null);const e=this.boxEndCondition_(t,this.startPixel_,t.pixel);return e&&this.onBoxEnd(t),this.dispatchEvent(new u(e?"boxend":c,t.coordinate,t)),!1}handleDownEvent(t){return!!this.condition_(t)&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new u("boxstart",t.coordinate,t)),!0)}onBoxEnd(t){}setActive(t){t||(this.box_.setMap(null),this.startPixel_&&(this.dispatchEvent(new u(c,this.startPixel_,null)),this.startPixel_=null)),super.setActive(t)}}const f=d;var p=i(3474);const g=class extends f{constructor(t){super({condition:(t=t||{}).condition?t.condition:h.Kg,className:t.className||"ol-dragzoom",minArea:t.minArea}),this.duration_=void 0!==t.duration?t.duration:200,this.out_=void 0!==t.out&&t.out}onBoxEnd(t){const e=this.getMap().getView();let i=this.getGeometry();if(this.out_){const t=e.rotatedExtentForGeometry(i),n=e.getResolutionForExtentInternal(t),r=e.getResolution()/n;i=i.clone(),i.scale(r*r)}e.fitInternal(i,{duration:this.duration_,easing:p.vT})}}},9167:(t,e,i)=>{"use strict";var n=i(4576);t.exports=n},9186:(t,e,i)=>{"use strict";i.d(e,{A:()=>l});var n=i(972),r=i(6837),s=i(5176),o=i(3474);class a extends n.A{constructor(t){t=t||{},super({element:document.createElement("div"),target:t.target});const e=void 0!==t.className?t.className:"ol-zoom",i=void 0!==t.delta?t.delta:1,n=void 0!==t.zoomInClassName?t.zoomInClassName:e+"-in",o=void 0!==t.zoomOutClassName?t.zoomOutClassName:e+"-out",a=void 0!==t.zoomInLabel?t.zoomInLabel:"+",l=void 0!==t.zoomOutLabel?t.zoomOutLabel:"–",h=void 0!==t.zoomInTipLabel?t.zoomInTipLabel:"Zoom in",c=void 0!==t.zoomOutTipLabel?t.zoomOutTipLabel:"Zoom out",u=document.createElement("button");u.className=n,u.setAttribute("type","button"),u.title=h,u.appendChild("string"==typeof a?document.createTextNode(a):a),u.addEventListener(r.A.CLICK,this.handleClick_.bind(this,i),!1);const d=document.createElement("button");d.className=o,d.setAttribute("type","button"),d.title=c,d.appendChild("string"==typeof l?document.createTextNode(l):l),d.addEventListener(r.A.CLICK,this.handleClick_.bind(this,-i),!1);const f=e+" "+s.XI+" "+s.$N,p=this.element;p.className=f,p.appendChild(u),p.appendChild(d),this.duration_=void 0!==t.duration?t.duration:250}handleClick_(t,e){e.preventDefault(),this.zoomByDelta_(t)}zoomByDelta_(t){const e=this.getMap().getView();if(!e)return;const i=e.getZoom();if(void 0!==i){const n=e.getConstrainedZoom(i+t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({zoom:n,duration:this.duration_,easing:o.vT})):e.setZoom(n)}}}const l=/^(217|331)$/.test(i.j)?a:null},9213:(t,e,i)=>{"use strict";var n=i(6080),r=i(9504),s=i(7055),o=i(8981),a=i(6198),l=i(1469),h=r([].push),c=function(t){var e=1===t,i=2===t,r=3===t,c=4===t,u=6===t,d=7===t,f=5===t||u;return function(p,g,m,v){for(var _,y,x=o(p),w=s(x),b=a(w),E=n(g,m),C=0,A=v||l,S=e?A(p,b):i||d?A(p,0):void 0;b>C;C++)if((f||C in w)&&(y=E(_=w[C],C,x),t))if(e)S[C]=y;else if(y)switch(t){case 3:return!0;case 5:return _;case 6:return C;case 2:h(S,_)}else switch(t){case 4:return!1;case 7:h(S,_)}return u?-1:r||c?c:S}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},9276:(t,e,i)=>{"use strict";if(i.d(e,{Ay:()=>d,d1:()=>c,mC:()=>l}),/^(217|331)$/.test(i.j))var n=i(7733);if(/^(217|331)$/.test(i.j))var r=i(3628);if(/^(217|331)$/.test(i.j))var s=i(953);if(/^(217|331)$/.test(i.j))var o=i(588);class a{constructor(t){t=t||{},this.geometry_=null,this.geometryFunction_=u,void 0!==t.geometry&&this.setGeometry(t.geometry),this.fill_=void 0!==t.fill?t.fill:null,this.image_=void 0!==t.image?t.image:null,this.renderer_=void 0!==t.renderer?t.renderer:null,this.hitDetectionRenderer_=void 0!==t.hitDetectionRenderer?t.hitDetectionRenderer:null,this.stroke_=void 0!==t.stroke?t.stroke:null,this.text_=void 0!==t.text?t.text:null,this.zIndex_=t.zIndex}clone(){let t=this.getGeometry();return t&&"object"==typeof t&&(t=t.clone()),new a({geometry:t??void 0,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,renderer:this.getRenderer()??void 0,stroke:this.getStroke()?this.get
2Stroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})}getRenderer(){return this.renderer_}setRenderer(t){this.renderer_=t}setHitDetectionRenderer(t){this.hitDetectionRenderer_=t}getHitDetectionRenderer(){return this.hitDetectionRenderer_}getGeometry(){return this.geometry_}getGeometryFunction(){return this.geometryFunction_}getFill(){return this.fill_}setFill(t){this.fill_=t}getImage(){return this.image_}setImage(t){this.image_=t}getStroke(){return this.stroke_}setStroke(t){this.stroke_=t}getText(){return this.text_}setText(t){this.text_=t}getZIndex(){return this.zIndex_}setGeometry(t){"function"==typeof t?this.geometryFunction_=t:"string"==typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=u,this.geometry_=t}setZIndex(t){this.zIndex_=t}}function l(t){let e;if("function"==typeof t)e=t;else{let i;Array.isArray(t)?i=t:((0,o.v)("function"==typeof t.getZIndex,"Expected an `Style` or an array of `Style`"),i=[t]),e=function(){return i}}return e}let h=null;function c(t,e){if(!h){const t=new r.A({color:"rgba(255,255,255,0.4)"}),e=new s.A({color:"#3399CC",width:1.25});h=[new a({image:new n.A({fill:t,stroke:e,radius:5}),fill:t,stroke:e})]}return h}function u(t){return t.getGeometry()}const d=/^(217|331)$/.test(i.j)?a:null},9297:(t,e,i)=>{"use strict";var n=i(9504),r=i(8981),s=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return s(r(t),e)}},9306:(t,e,i)=>{"use strict";var n=i(4901),r=i(6823),s=TypeError;t.exports=function(t){if(n(t))return t;throw new s(r(t)+" is not a function")}},9332:(t,e,i)=>{"use strict";i.d(e,{A:()=>l});var n=i(25),r=i(1685),s=i(4238),o=i(3530);class a extends n.A{constructor(t){super(),this.eventTarget_=t,this.pendingRemovals_=null,this.dispatching_=null,this.listeners_=null}addEventListener(t,e){if(!t||!e)return;const i=this.listeners_||(this.listeners_={}),n=i[t]||(i[t]=[]);n.includes(e)||n.push(e)}dispatchEvent(t){const e="string"==typeof t,i=e?t:t.type,n=this.listeners_&&this.listeners_[i];if(!n)return;const o=e?new r.Ay(t):t;o.target||(o.target=this.eventTarget_||this);const a=this.dispatching_||(this.dispatching_={}),l=this.pendingRemovals_||(this.pendingRemovals_={});let h;i in a||(a[i]=0,l[i]=0),++a[i];for(let t=0,e=n.length;t<e;++t)if(h="handleEvent"in n[t]?n[t].handleEvent(o):n[t].call(this,o),!1===h||o.propagationStopped){h=!1;break}if(0==--a[i]){let t=l[i];for(delete l[i];t--;)this.removeEventListener(i,s.tV);delete a[i]}return h}disposeInternal(){this.listeners_&&(0,o.I)(this.listeners_)}getListeners(t){return this.listeners_&&this.listeners_[t]||void 0}hasListener(t){return!!this.listeners_&&(t?t in this.listeners_:Object.keys(this.listeners_).length>0)}removeEventListener(t,e){if(!this.listeners_)return;const i=this.listeners_[t];if(!i)return;const n=i.indexOf(e);-1!==n&&(this.pendingRemovals_&&t in this.pendingRemovals_?(i[n]=s.tV,++this.pendingRemovals_[t]):(i.splice(n,1),0===i.length&&delete this.listeners_[t]))}}const l=/^(217|331)$/.test(i.j)?a:null},9432:(t,e,i)=>{"use strict";var n=i(6518),r=i(8981),s=i(1072);n({target:"Object",stat:!0,forced:i(9039)((function(){s(1)}))},{keys:function(t){return s(r(t))}})},9433:(t,e,i)=>{"use strict";var n=i(4576),r=Object.defineProperty;t.exports=function(t,e){try{r(n,t,{value:e,configurable:!0,writable:!0})}catch(i){n[t]=e}return e}},9438:(t,e,i)=>{"use strict";if(i.d(e,{JH:()=>o,Jz:()=>s,KT:()=>r}),/^(217|331)$/.test(i.j))var n=i(3530);function r(t,e,i,n,r){if(n&&n!==t&&(i=i.bind(n)),r){const n=i;i=function(){t.removeEventListener(e,i),n.apply(this,arguments)}}const s={target:t,type:e,listener:i};return t.addEventListener(e,i),s}function s(t,e,i,n){return r(t,e,i,n,!0)}function o(t){t&&t.target&&(t.target.removeEventListener(t.type,t.listener),(0,n.I)(t))}},9504:(t,e,i)=>{"use strict";var n=i(616),r=Function.prototype,s=r.call,o=n&&r.bind.bind(s,s);t.exports=n?o:function(t){return function(){return s.apply(t,arguments)}}},9519:(t,e,i)=>{"use strict";var n,r,s=i(4576),o=i(2839),a=s.process,l=s.Deno,h=a&&a.versions||l&&l.version,c=h&&h.v8;c&&(r=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>
2=74)&&(n=o.match(/Chrome\/(\d+)/))&&(r=+n[1]),t.exports=r},9528:(t,e,i)=>{"use strict";i.d(e,{_j:()=>b,oJ:()=>p,sH:()=>w,$C:()=>A,cD:()=>x,S8:()=>E,eE:()=>y,dI:()=>C,fu:()=>_});const n={name:"rgb",min:[0,0,0],max:[255,255,255],channel:["red","green","blue"],alias:["RGB"]},r={name:"xyz",min:[0,0,0],channel:["X","Y","Z"],alias:["XYZ","ciexyz","cie1931"],whitepoint:{2:{A:[109.85,100,35.585],C:[98.074,100,118.232],D50:[96.422,100,82.521],D55:[95.682,100,92.149],D65:[95.045592705167,100,108.9057750759878],D75:[94.972,100,122.638],F2:[99.187,100,67.395],F7:[95.044,100,108.755],F11:[100.966,100,64.37],E:[100,100,100]},10:{A:[111.144,100,35.2],C:[97.285,100,116.145],D50:[96.72,100,81.427],D55:[95.799,100,90.926],D65:[94.811,100,107.304],D75:[94.416,100,120.641],F2:[103.28,100,69.026],F7:[95.792,100,107.687],F11:[103.866,100,65.627],E:[100,100,100]}}};r.max=r.whitepoint[2].D65,r.rgb=function(t,e){e=e||r.whitepoint[2].E;var i,n,s,o=t[0]/e[0],a=t[1]/e[1],l=t[2]/e[2];return n=-.96924363628087*o+1.87596750150772*a+.041555057407175*l,s=.055630079696993*o+-.20397695888897*a+1.056971514242878*l,i=(i=3.240969941904521*o+-1.537383177570093*a+-.498610760293*l)>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*=12.92,[255*(i=Math.min(Math.max(0,i),1)),255*(n=Math.min(Math.max(0,n),1)),255*(s=Math.min(Math.max(0,s),1))]},n.xyz=function(t,e){var i=t[0]/255,n=t[1]/255,s=t[2]/255,o=.21263900587151*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)+.71516867876775*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)+.072192315360733*(s=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92),a=.019330818715591*i+.11919477979462*n+.95053215224966*s;return[(.41239079926595*i+.35758433938387*n+.18048078840183*s)*(e=e||r.whitepoint[2].E)[0],o*e[1],a*e[2]]};const s=r,o={name:"luv",min:[0,-134,-140],max:[100,224,122],channel:["lightness","u","v"],alias:["LUV","cieluv","cie1976"],xyz:function(t,e,i){var n,r,o,a,l,h,c,u,d;return o=t[0],a=t[1],l=t[2],0===o?[0,0,0]:(e=e||"D65",i=i||2,n=a/(13*o)+4*(c=s.whitepoint[i][e][0])/(c+15*(u=s.whitepoint[i][e][1])+3*(d=s.whitepoint[i][e][2]))||0,r=l/(13*o)+9*u/(c+15*u+3*d)||0,[9*(h=o>8?u*Math.pow((o+16)/116,3):u*o*.0011070564598794539)*n/(4*r)||0,h,h*(12-3*n-20*r)/(4*r)||0])}};s.luv=function(t,e,i){var n,r,o,a,l,h,c,u,d,f,p;e=e||"D65",i=i||2,f=4*(c=s.whitepoint[i][e][0])/(c+15*(u=s.whitepoint[i][e][1])+3*(d=s.whitepoint[i][e][2])),p=9*u/(c+15*u+3*d),n=4*(a=t[0])/(a+15*(l=t[1])+3*(h=t[2]))||0,r=9*l/(a+15*l+3*h)||0;var g=l/u;return[o=g<=.008856451679035631?903.2962962962961*g:116*Math.pow(g,1/3)-16,13*o*(n-f),13*o*(r-p)]};var a={name:"lchuv",channel:["lightness","chroma","hue"],alias:["LCHuv","cielchuv"],min:[0,0,0],max:[100,100,360],luv:function(t){var e,i=t[0],n=t[1];return e=t[2]/360*2*Math.PI,[i,n*Math.cos(e),n*Math.sin(e)]},xyz:function(t){return o.xyz(a.luv(t))}};const l=a;o.lchuv=function(t){var e=t[0],i=t[1],n=t[2],r=Math.sqrt(i*i+n*n),s=360*Math.atan2(n,i)/2/Math.PI;return s<0&&(s+=360),[e,r,s]},s.lchuv=function(t){return o.lchuv(s.luv(t))};const h={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],ol
2ive:[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]},c=function(t){var e,i,n=[],r=1;if("number"==typeof t)return{space:"rgb",values:[t>>>16,(65280&t)>>>8,255&t],alpha:1};if("number"==typeof t)return{space:"rgb",values:[t>>>16,(65280&t)>>>8,255&t],alpha:1};if(t=String(t).toLowerCase(),h[t])n=h[t].slice(),i="rgb";else if("transparent"===t)r=0,i="rgb",n=[0,0,0];else if("#"===t[0]){var s=t.slice(1),o=s.length;r=1,o<=4?(n=[parseInt(s[0]+s[0],16),parseInt(s[1]+s[1],16),parseInt(s[2]+s[2],16)],4===o&&(r=parseInt(s[3]+s[3],16)/255)):(n=[parseInt(s[0]+s[1],16),parseInt(s[2]+s[3],16),parseInt(s[4]+s[5],16)],8===o&&(r=parseInt(s[6]+s[7],16)/255)),n[0]||(n[0]=0),n[1]||(n[1]=0),n[2]||(n[2]=0),i="rgb"}else if(e=/^((?:rgba?|hs[lvb]a?|hwba?|cmyk?|xy[zy]|gray|lab|lchu?v?|[ly]uv|lms|oklch|oklab|color))\s*\(([^\)]*)\)/.exec(t)){var a=e[1],l="cmyk"===(i=a.replace(/a$/,""))?4:"gray"===i?1:3;n=e[2].trim().split(/\s*[,\/]\s*|\s+/),"color"===i&&(i=n.shift()),r=(n=n.map((function(t,e){if("%"===t[t.length-1])return t=parseFloat(t)/100,3===e?t:"rgb"===i?255*t:"h"===i[0]?100*t:"l"!==i[0]||e?"lab"===i?125*t:"lch"===i?e<2?150*t:360*t:"o"!==i[0]||e?"oklab"===i?.4*t:"oklch"===i?e<2?.4*t:360*t:t:t:100*t;if("h"===i[e]||2===e&&"h"===i[i.length-1]){if(void 0!==u[t])return u[t];if(t.endsWith("deg"))return parseFloat(t);if(t.endsWith("turn"))return 360*parseFloat(t);if(t.endsWith("grad"))return 360*parseFloat(t)/400;if(t.endsWith("rad"))return 180*parseFloat(t)/Math.PI}return"none"===t?0:parseFloat(t)}))).length>l?n.pop():1}else/[0-9](?:\s|\/|,)/.test(t)&&(n=t.match(/([0-9]+)/g).map((function(t){return parseFloat(t)})),i=t.match(/([a-z])/gi)?.join("")?.toLowerCase()||"rgb");return{space:i,values:n,alpha:r}};var u={red:0,orange:60,yellow:120,green:180,blue:240,purple:300};const d={name:"hsl",min:[0,0,0],max:[360,100,100],channel:["hue","saturation","lightness"],alias:["HSL"],rgb:function(t){var e,i,n,r,s,o=t[0]/360,a=t[1]/100,l=t[2]/100,h=0;if(0===a)return[s=255*l,s,s];for(e=2*l-(i=l<.5?l*(1+a):l+a-l*a),r=[0,0,0];h<3;)(n=o+1/3*-(h-1))<0?n++:n>1&&n--,s=6*n<1?e+6*(i-e)*n:2*n<1?i:3*n<2?e+(i-e)*(2/3-n)*6:e,r[h++]=255*s;return r}};n.hsl=function(t){var e,i,n=t[0]/255,r=t[1]/255,s=t[2]/255,o=Math.min(n,r,s),a=Math.max(n,r,s),l=a-o;return a===o?e=0:n===a?e=(r-s)/l:r===a?e=2+(s-n)/l:s===a&&(e=4+(n-r)/l),(e=Math.min(60*e,360))<0&&(e+=360),i=(o+a)/2,[e,100*(a===o?0:i<=.5?l/(a+o):l/(2-a-o)),100*i]};var f=i(1597);function p(t){return"string"==typeof t?t:C(t)}const g=1024,m={};let v=0;function _(t){if(4===t.length)return t;const e=t.slice();return e[3]=1,e}function y(t){const e=s.lchuv(n.xyz(t));return e[3]=t[3],e}function x(t){const e=s.rgb(l.xyz(t));return e[3]=t[3],e}function w(t){if(m.hasOwnProperty(t))return m[t];if(v>=g){let t=0;for(const e in m)3&t++||(delete m[e],--v)}const e=function(t){var e;Array.isArray(t)&&t.raw&&(t=String.raw(...arguments)),t instanceof Number&&(t=+t);var i=c(t);if(!i.space)return[];const r="h"===i.space[0]?d.min:n.min,s="h"===i.space[0]?d.max:n.max;return(e=Array(3))[0]=Math.min(Math.max(i.values[0],r[0]),s[0]),e[1]=Math.min(Math.max(i.values[1],r[1]),s[1]),e[2]=Math.min(Math.max(i.values[2],r[2]),s[2]),"h"===i.space[0]&&(e=d.rgb(e)),e.push(Math.min(Math.max(i.alpha,0),1)),e}(t);if(4!==e.length)throw new Error('Failed to parse "'+t+'" as color');for(const i of e)if(isNaN(i))throw new Error('Failed to parse "'+t+'" as color');return E(e),m[t]=e,++v,e}function b(t){return Array.isArray(t)?t:w(t)}function E(t){return t[0]=(0,f.qE)(t[0]+.5|0,0,255),t[1]=(0,f.qE)(t[1]+.5|0,0,255),t[2]=(0,f.qE)(t[2]+.5|0,0,255),t[3]=(0,f.qE)(t[3],0,1),t}function C(t){let e=t[0];e!=(0|e)&&(e=e+.5|0);let i=t[1];i!=(0|i)&&(i=i+.5|0);let n=t[2];return n!=(0|n)&&(n=n+.5|0),"rgba("+e+","+i+","+n+","+(void 0===t[3]?1:Math.round(1e3*t[3])/1e3)+")"}function A(t){try{return w(t),!0}catch(t){return!1}}}
2,9565:(t,e,i)=>{"use strict";var n=i(616),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},9617:(t,e,i)=>{"use strict";var n=i(5397),r=i(5610),s=i(6198),o=function(t){return function(e,i,o){var a=n(e),l=s(a);if(0===l)return!t&&-1;var h,c=r(o,l);if(t&&i!=i){for(;l>c;)if((h=a[c++])!=h)return!0}else for(;l>c;c++)if((t||c in a)&&a[c]===i)return t||c||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},9700:(t,e,i)=>{"use strict";i.d(e,{A:()=>d});var n=i(6837),r=i(6141),s=i(940),o=i(9528),a=i(588),l=i(7907),h=i(4087);function c(t,e,i,n){return void 0!==i&&void 0!==n?[i/t,n/e]:void 0!==i?i/t:void 0!==n?n/e:1}class u extends s.A{constructor(t){const e=void 0!==(t=t||{}).opacity?t.opacity:1,i=void 0!==t.rotation?t.rotation:0,n=void 0!==t.scale?t.scale:1,s=void 0!==t.rotateWithView&&t.rotateWithView;super({opacity:e,rotation:i,scale:n,displacement:void 0!==t.displacement?t.displacement:[0,0],rotateWithView:s,declutterMode:t.declutterMode}),this.anchor_=void 0!==t.anchor?t.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==t.anchorOrigin?t.anchorOrigin:"top-left",this.anchorXUnits_=void 0!==t.anchorXUnits?t.anchorXUnits:"fraction",this.anchorYUnits_=void 0!==t.anchorYUnits?t.anchorYUnits:"fraction",this.crossOrigin_=void 0!==t.crossOrigin?t.crossOrigin:null;const u=void 0!==t.img?t.img:null;let d,f=t.src;if((0,a.v)(!(void 0!==f&&u),"`image` and `src` cannot be provided at the same time"),void 0!==f&&0!==f.length||!u||(f=u.src||(0,h.v6)(u)),(0,a.v)(void 0!==f&&f.length>0,"A defined and non-empty `src` or `image` must be provided"),(0,a.v)(!((void 0!==t.width||void 0!==t.height)&&void 0!==t.scale),"`width` or `height` cannot be provided together with `scale`"),void 0!==t.src?d=r.A.IDLE:void 0!==u&&(d="complete"in u?u.complete?u.src?r.A.LOADED:r.A.IDLE:r.A.LOADING:r.A.LOADED),this.color_=void 0!==t.color?(0,o._j)(t.color):null,this.iconImage_=(0,l.J)(u,f,this.crossOrigin_,d,this.color_),this.offset_=void 0!==t.offset?t.offset:[0,0],this.offsetOrigin_=void 0!==t.offsetOrigin?t.offsetOrigin:"top-left",this.origin_=null,this.size_=void 0!==t.size?t.size:null,void 0!==t.width||void 0!==t.height){let e,i;if(t.size)[e,i]=t.size;else{const n=this.getImage(1);if(n.width&&n.height)e=n.width,i=n.height;else if(n instanceof HTMLImageElement){this.initialOptions_=t;const e=()=>{if(this.unlistenImageChange(e),!this.initialOptions_)return;const i=this.iconImage_.getSize();this.setScale(c(i[0],i[1],t.width,t.height))};return void this.listenImageChange(e)}}void 0!==e&&this.setScale(c(e,i,t.width,t.height))}}clone(){let t,e,i;return this.initialOptions_?(e=this.initialOptions_.width,i=this.initialOptions_.height):(t=this.getScale(),t=Array.isArray(t)?t.slice():t),new u({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,crossOrigin:this.crossOrigin_,offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,opacity:this.getOpacity(),rotateWithView:this.getRotateWithView(),rotation:this.getRotation(),scale:t,width:e,height:i,size:null!==this.size_?this.size_.slice():void 0,src:this.getSrc(),displacement:this.getDisplacement().slice(),declutterMode:this.getDeclutterMode()})}getAnchor(){let t=this.normalizedAnchor_;if(!t){t=this.anchor_;const e=this.getSize();if("fraction"==this.anchorXUnits_||"fraction"==this.anchorYUnits_){if(!e)return null;t=this.anchor_.slice(),"fraction"==this.anchorXUnits_&&(t[0]*=e[0]),"fraction"==this.anchorYUnits_&&(t[1]*=e[1])}if("top-left"!=this.anchorOrigin_){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),"top-right"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(t[0]=-t[0]+e[0]),"bottom-left"!=this.anchorOrigin_&&"bottom-right"!=this.anchorOrigin_||(t[1]=-t[1]+e[1])}this.normalizedAnchor_=t}const e=this.getDisplacement(),i=this.getScaleArray();return[t[0]-e[0]/i[0],t[1]+e[1]/i[1]]}setAnchor(t){this.anchor_=t,this.normalizedAnchor_=null}getColor(){return this.color_}getImage(t){return this.iconImage_.getImage(t)}getPixelRatio(t){return this.iconImage_.getPixelRatio(t)}getImageSize(){return this.iconImage_.getSize()}getImageState(){return this.iconImage_.getImageState()}getHitDetectionImage(){return this.iconImage_.getHitDetectionImage()}getOrigin(){if(this.origin_)return this.origin_;let t=this.offset_;if("top-left"!=this.offsetOrigin_){const e=this.getSize(),i=this.iconImage_.getSize();if(!e||!i)return null;t=t.slice(),"top-right"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(t[0]=i[0]-e[0]-t[0]),"bottom-left"!=this.offsetOrigin_&&"bottom-right"!=this.offsetOrigin_||(t[1]=i[1]-e[1]-t[1])}return this.origin_=t,this.origin_}getSrc(){return this.iconImage_.getSrc()}getSize(){return this.size_?this.size_:this.iconImage_.getSize()}getWidth(){const t=this.getScaleArray();return this.size_?this.size_[0]*t[0]:this.iconImage_.getImageState()==r.A.LOADED?this.iconImage_.getSize()[0]*t[0]:void 0}getHeight(){const t=this.getScaleArray();return this.size_?this.size_[1]*t[1]:this.iconImage_.getImageState()==r.A.LOADED?this.iconImage_.getSize()[1]*t[1]:void 0}setScale(t){delete this.initialOptions_,super.setScale(t)}listenImageChange(t){this.iconImage_.addEventListener(n.A.CHANGE,t)}load(){this.iconImage_.load()}unlistenImageChange(t){this.iconImage_.removeEventListener(n.A.CHANGE,t)}ready(){return this.iconImage_.ready()}}const d=/^(217|331)$/.test(i.j)?u:null},9703:(t,e,i)=>{"use strict";if(i.d(e,{Bb:()=>
2o,T9:()=>l,Zz:()=>a,dI:()=>c,k3:()=>s,vt:()=>r}),/^(217|331)$/.test(i.j))var n=i(588);function r(){return[1,0,0,1,0,0]}function s(t,e){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}function o(t,e){const i=e[0],n=e[1];return e[0]=t[0]*i+t[2]*n+t[4],e[1]=t[1]*i+t[3]*n+t[5],e}function a(t,e,i,n,r,s,o,a){const l=Math.sin(s),h=Math.cos(s);return t[0]=n*h,t[1]=r*l,t[2]=-n*l,t[3]=r*h,t[4]=o*n*h-a*n*l+e,t[5]=o*r*l+a*r*h+i,t}function l(t,e){const i=(r=e)[0]*r[3]-r[1]*r[2];var r;(0,n.v)(0!==i,"Transformation matrix cannot be inverted");const s=e[0],o=e[1],a=e[2],l=e[3],h=e[4],c=e[5];return t[0]=l/i,t[1]=-o/i,t[2]=-a/i,t[3]=s/i,t[4]=(a*c-l*h)/i,t[5]=-(s*c-o*h)/i,t}new Array(6);const h=/^(217|331)$/.test(i.j)?[1e6,1e6,1e6,1e6,2,2]:null;function c(t){return"matrix("+t.map(((t,e)=>Math.round(t*h[e])/h[e])).join(", ")+")"}},9786:(t,e,i)=>{var n,r;!function(s,o){"use strict";void 0===(r="function"==typeof(n=o)?n.call(e,i,e,t):n)||(t.exports=r)}(window,(function(){"use strict";var t=function(){var t=window.Element.prototype;if(t.matches)return"matches";if(t.matchesSelector)return"matchesSelector";for(var e=["webkit","moz","ms","o"],i=0;i<e.length;i++){var n=e[i]+"MatchesSelector";if(t[n])return n}}();return function(e,i){return e[t](i)}}))},9825:(t,e,i)=>{"use strict";i.d(e,{Fq:()=>u,SR:()=>w,T8:()=>a,Ye:()=>M,ZD:()=>E,_D:()=>y,cT:()=>h,go:()=>m,ho:()=>v,mE:()=>c,qg:()=>b,wl:()=>l});var n=i(6514),r=i(9528);let s=0;const o=0,a=1<<s++,l=1<<s++,h=1<<s++,c=1<<s++,u=1<<s++,d=1<<s++,f=Math.pow(2,6)-1,p={[a]:"boolean",[l]:"number",[h]:"string",[c]:"color",[u]:"number[]",[d]:"size"},g=Object.keys(p).map(Number).sort(n.V_);function m(t){const e=[];for(const n of g)(t&(i=n))===i&&e.push(p[n]);var i;return 0===e.length?"untyped":e.length<3?e.join(" or "):e.slice(0,-1).join(", ")+", or "+e[e.length-1]}function v(t,e){return!!(t&e)}function _(t,e){return t===e}class y{constructor(t,e){this.type=t,this.value=e}}class x{constructor(t,e,...i){this.type=t,this.operator=e,this.args=i}}function w(){return{variables:new Set,properties:new Set,featureId:!1,geometryType:!1,style:{}}}function b(t,e,i){switch(typeof t){case"boolean":return new y(a,t);case"number":return new y(i===d?d:l,t);case"string":{let e=h;return(0,r.$C)(t)&&(e|=c),_(e&i,o)||(e&=i),new y(e,t)}}if(!Array.isArray(t))throw new Error("Expression must be an array or a primitive value");if(0===t.length)throw new Error("Empty expression");if("string"==typeof t[0])return function(t,e,i){const n=t[0],r=C[n];if(!r)throw new Error(`Unknown operator: ${n}`);return r(t,e,i)}(t,e,i);for(const e of t)if("number"!=typeof e)throw new Error("Expected an array of numbers");let n=u;return 2===t.length?n|=d:3!==t.length&&4!==t.length||(n|=c),i&&(n&=i),new y(n,t)}const E={Get:"get",Var:"var",Concat:"concat",GeometryType:"geometry-type",Any:"any",All:"all",Not:"!",Resolution:"resolution",Zoom:"zoom",Time:"time",Equal:"==",NotEqual:"!=",GreaterThan:">",GreaterThanOrEqualTo:">=",LessThan:"<",LessThanOrEqualTo:"<=",Multiply:"*",Divide:"/",Add:"+",Subtract:"-",Clamp:"clamp",Mod:"%",Pow:"^",Abs:"abs",Floor:"floor",Ceil:"ceil",Round:"round",Sin:"sin",Cos:"cos",Atan:"atan",Sqrt:"sqrt",Match:"match",Between:"between",Interpolate:"interpolate",Coalesce:"coalesce",Case:"case",In:"in",Number:"number",String:"string",Array:"array",Color:"color",Id:"id",Band:"band",Palette:"palette",ToString:"to-string"},C={[E.Get]:D((([t,e])=>void 0!==e?function(t){switch(t){case"string":return h;case"color":return c;case"number":return l;case"boolean":return a;case"number[]":return u;default:throw new Error(`Unrecognized type hint: ${t}`)}}(e.value):f),S(1,2),(function(t,e){const i=b(t[1],e);if(!(i instanceof y))throw new Error("Expected a literal argument for get operation");if("string"!=typeof i.value)throw new Error("Expected a string argument for get operation");return e.properties.add(i.value),3===t.length?[i,b(t[2],e)]:[i]})),[E.Var]:D((([t])=>t.type),S(1,1),(function(t,e,i,n){const r=t[1];if("string"!=typeof r)throw new Error("Expected a string argument for var operation");if(e.variables.add(r),!("variables"in e.style)||void 0===e.style.variables[r])return[new y(f,r)];const s=b(e.style.variables[r],e);if(s.value=r,n&&!v(n,s.type))throw new Error(`The variable ${r} has type ${m(s.type)} but the following type was expected: ${m(n)}`);return[s]})),[E.Id]:D(l|h,A,(function(t,e){e.featureId=!0})),[E.Concat]:D(h,S(2,1/0),T(f)),[E.GeometryType]:D(h,A,(function(t,e){e.geometryType=!0})),[E.Resolution]:D(l,A),[E.Zoom]:D(l,A),[E.Time]:D(l,A),[E.Any]:D(a,S(2,1/0),T(a)),[E.All]:D(a,S(2,1/0),T(a)),[E.Not]:D(a,S(1,1),T(
2a)),[E.Equal]:D(a,S(2,2),T(f),I),[E.NotEqual]:D(a,S(2,2),T(f),I),[E.GreaterThan]:D(a,S(2,2),T(f),I),[E.GreaterThanOrEqualTo]:D(a,S(2,2),T(f),I),[E.LessThan]:D(a,S(2,2),T(f),I),[E.LessThanOrEqualTo]:D(a,S(2,2),T(f),I),[E.Multiply]:D((t=>{let e=l|c;for(let i=0;i<t.length;i++)e&=t[i].type;return e}),S(2,1/0),T(l|c),I),[E.Coalesce]:D((t=>{let e=f;for(let i=1;i<t.length;i+=2)e&=t[i].type;return e&=t[t.length-1].type,e}),S(2,1/0),T(f),I),[E.Divide]:D(l,S(2,2),T(l)),[E.Add]:D(l,S(2,1/0),T(l)),[E.Subtract]:D(l,S(2,2),T(l)),[E.Clamp]:D(l,S(3,3),T(l)),[E.Mod]:D(l,S(2,2),T(l)),[E.Pow]:D(l,S(2,2),T(l)),[E.Abs]:D(l,S(1,1),T(l)),[E.Floor]:D(l,S(1,1),T(l)),[E.Ceil]:D(l,S(1,1),T(l)),[E.Round]:D(l,S(1,1),T(l)),[E.Sin]:D(l,S(1,1),T(l)),[E.Cos]:D(l,S(1,1),T(l)),[E.Atan]:D(l,S(1,2),T(l)),[E.Sqrt]:D(l,S(1,1),T(l)),[E.Match]:D((t=>{let e=f;for(let i=2;i<t.length;i+=2)e&=t[i].type;return e&=t[t.length-1].type,e}),S(4,1/0),R,(function(t,e,i,n){const r=t.length-1;let s=b(t[1],e).type;const c=b(t[t.length-1],e);let u=void 0!==n?n&c.type:c.type;const d=new Array(r-2);for(let i=0;i<r-2;i+=2){const n=b(t[i+2],e),r=b(t[i+3],e);s&=n.type,u&=r.type,d[i]=n,d[i+1]=r}const f=h|l|a;if(!v(f,s))throw new Error(`Expected an input of type ${m(f)} for the interpolate operation, got ${m(s)} instead`);if(s&=f,_(u,o))throw new Error("Could not find a common output type for the following match operation: "+JSON.stringify(t));for(let i=0;i<r-2;i+=2){const n=b(t[i+2],e,s),r=b(t[i+3],e,u);d[i]=n,d[i+1]=r}return[b(t[1],e,s),...d,b(t[t.length-1],e,u)]})),[E.Between]:D(a,S(3,3),T(l)),[E.Interpolate]:D((t=>{let e=c|l;for(let i=3;i<t.length;i+=2)e&=t[i].type;return e}),S(6,1/0),R,(function(t,e,i,n){const r=t[1];let s;switch(r[0]){case"linear":s=1;break;case"exponential":if(s=r[1],"number"!=typeof s)throw new Error(`Expected a number base for exponential interpolation, got ${JSON.stringify(s)} instead`);break;default:s=null}if(!s)throw new Error(`Invalid interpolation type: ${JSON.stringify(r)}`);s=b(s,e);let o=b(t[2],e);if(!v(l,o.type))throw new Error(`Expected an input of type number for the interpolate operation, got ${m(o.type)} instead`);o=b(t[2],e,l);const a=new Array(t.length-3);for(let i=0;i<a.length;i+=2){let n=b(t[i+3],e);if(!v(l,n.type))throw new Error(`Expected all stop input values in the interpolate operation to be of type number, got ${m(n.type)} at position ${i+2} instead`);let r=b(t[i+4],e);if(!v(l|c,r.type))throw new Error(`Expected all stop output values in the interpolate operation to be a number or color, got ${m(r.type)} at position ${i+3} instead`);n=b(t[i+3],e,l),r=b(t[i+4],e,l|c),a[i]=n,a[i+1]=r}return[s,o,...a]})),[E.Case]:D((t=>{let e=f;for(let i=1;i<t.length;i+=2)e&=t[i].type;return e&=t[t.length-1].type,e}),S(3,1/0),(function(t,e){const i=t[0],n=t.length-1;if(n%2==0)throw new Error(`An odd amount of arguments was expected for operation ${i}, got ${JSON.stringify(n)} instead`)}),(function(t,e,i,n){const r=b(t[t.length-1],e,n);let s=void 0!==n?n&r.type:r.type;const l=new Array(t.length-1);for(let i=0;i<l.length-1;i+=2){const r=b(t[i+1],e),o=b(t[i+2],e,n);if(!v(a,r.type))throw new Error(`Expected all conditions in the case operation to be of type boolean, got ${m(r.type)} at position ${i} instead`);s&=o.type,l[i]=r,l[i+1]=o}if(_(s,o))throw new Error("Could not find a common output type for the following case operation: "+JSON.stringify(t));for(let i=0;i<l.length-1;i+=2)l[i+1]=b(t[i+2],e,s);return l[l.length-1]=b(t[t.length-1],e,s),l})),[E.In]:D(a,S(2,2),(function(t,e){let i=t[2];if(!Array.isArray(i))throw new Error('The "in" operator was provided a literal value which was not an array as second argument.');if("string"==typeof i[0]){if("literal"!==i[0])throw new Error('For the "in" operator, a string array should be wrapped in a "literal" operator to disambiguate from expressions.');if(!Array.isArray(i[1]))throw new Error('The "in" operator was provided a literal value which was not an array as second argument.');i=i[1]}let n=h|l;const r=new Array(i.length);for(let t=0;t<r.length;t++){const s=b(i[t],e);n&=s.type,r[t]=s}if(_(n,o))throw new Error("Could not find a common type for the following in operation: "+JSON.stringify(t));return[b(t[1],e,n),...r]}
2)),[E.Number]:D(l,S(1,1/0),T(f)),[E.String]:D(h,S(1,1/0),T(f)),[E.Array]:D((t=>2===t.length?u|d:3===t.length||4===t.length?u|c:u),S(1,1/0),T(l)),[E.Color]:D(c,S(1,4),T(l)),[E.Band]:D(l,S(1,3),T(l)),[E.Palette]:D(c,S(2,2),(function(t,e){const i=b(t[1],e,l);if(i.type!==l)throw new Error(`The first argument of palette must be an number, got ${m(i.type)} instead`);const n=t[2];if(!Array.isArray(n))throw new Error("The second argument of palette must be an array");const r=new Array(n.length);for(let t=0;t<r.length;t++){const i=b(n[t],e,c);if(!(i instanceof y))throw new Error(`The palette color at index ${t} must be a literal value`);if(!v(i.type,c))throw new Error(`The palette color at index ${t} should be of type color, got ${m(i.type)} instead`);r[t]=i}return[i,...r]})),[E.ToString]:D(h,S(1,1),T(a|l|h|c))};function A(t,e){const i=t[0];if(1!==t.length)throw new Error(`Expected no arguments for ${i} operation`);return[]}function S(t,e){return function(i,n){const r=i[0],s=i.length-1;if(t===e){if(s!==t)throw new Error(`Expected ${t} argument${1===t?"":"s"} for ${r}, got ${s}`)}else if(s<t||s>e)throw new Error(`Expected ${e===1/0?`${t} or more`:`${t} to ${e}`} arguments for ${r}, got ${s}`)}}function T(t){return function(e,i){const n=e[0],r=e.length-1,s=new Array(r);for(let o=0;o<r;++o){const r=b(e[o+1],i);if(!v(t,r.type)){const e=m(t),i=m(r.type);throw new Error(`Unexpected type for argument ${o} of ${n} operation, got ${e} but expected ${i}`)}r.type&=t,s[o]=r}return s}}function I(t,e,i){const n=t[0],r=t.length-1;let s=f;for(let t=0;t<i.length;++t)s&=i[t].type;if(s===o)throw new Error(`No common type could be found for arguments of ${n} operation`);const a=new Array(r);for(let i=0;i<r;++i)a[i]=b(t[i+1],e,s);return a}function R(t,e){const i=t[0],n=t.length-1;if(n%2==1)throw new Error(`An even amount of arguments was expected for operation ${i}, got ${JSON.stringify(n)} instead`)}function D(t,...e){return function(i,n,r){const s=i[0];let a=[];for(let t=0;t<e.length;t++)a=e[t](i,n,a,r)||a;let l="function"==typeof t?t(a):t;if(void 0!==r){if(!v(l,r))throw new Error(`The following expression was expected to return ${m(r)}, but returns ${m(l)} instead: ${JSON.stringify(i)}`);l&=r}if(l===o)throw new Error(`No matching type was found for the following expression: ${JSON.stringify(i)}`);return new x(l,s,...a)}}function M(t){if(!t)return"";const e=t.getType();switch(e){case"Point":case"LineString":case"Polygon":return e;case"MultiPoint":case"MultiLineString":case"MultiPolygon":return e.substring(5);case"Circle":return"Polygon";
2case"GeometryCollection":return M(t.getGeometries()[0]);default:return""}}},9888:(t,e,i)=>{"use strict";i.d(e,{Am:()=>o,Gm:()=>c,Qg:()=>u,X3:()=>s,Z7:()=>a,iQ:()=>l,vy:()=>h});var n=i(4692),r=i.n(n);function s(t,e){if(t&&t.length>0)for(var i=0;i<t.length;i++)e(t[i],i)}function o(t){return t.reduce((function(t,e){return t.indexOf(e)<0&&t.push(e),t}),[])}function a(t,e){var i=t.indexOf(e);return i<0?t.push(e):t.splice(i,1),t}function l(t,e){r()(t).addClass(e)}function h(t,e){r()(t).removeClass(e)}function c(t){return t&&t.length>0&&"/"!==t[0]&&(t="/"+t),window.GLOBALS.webroot+t}function u(){var t,e=window.rspkr||null;(null==e||null===(t=e.ui)||void 0===t?void 0:t.getActivePlayer())&&e.ui.getActivePlayer().close()}},9960:(t,e,i)=>{"use strict";i.d(e,{A:()=>s});var n=i(1685);class r extends n.Ay{constructor(t,e,i,n){super(t),this.inversePixelTransform=e,this.frameState=i,this.context=n}}const s=/^(217|331)$/.test(i.j)?r:null}}]);
3//# sourceMappingURL=shared.js.map

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.